text: export const editable = (state = {}) => ({
  
      isNew() {
          // console.debug('isNew', !state.createdDate);
          return !state.createdDate;
      },
  
      isLatestPublishedVersion() {
          //console.debug('isLatestSavedVersion');
          if (!state.versions) {
              return null;
          }
          return state.latestPublishedVersion?.version === state.version;
      },
  
      isNewVersion() {
          //console.debug('isNewVersion', state.administrativeStatus === 'INTERNAL' && state.version !== '1');
          return state.administrativeStatus === 'INTERNAL'
              && state.version !== '1';
      },
  
      isEditableId() {
          return state.isNew();
      },
  
      isEditableShortName() {
          return true;
      },
  
      isEditableName() {
          return true;
      },
  
      isEditableStatus() {
          return true;
      },
  
      isEditableOwningSection() {
          return true;
      },
  
      isEditableClassificationFamily() {
          return true;
      },
  
      isEditableVersionValidFrom() {
          //console.debug('isEditableVersionValidFrom');
  
          return !state.isPublished
      },
  
      isEditableVersionValidUntil() {
          //console.debug('isEditableVersionValidUntil');
          return !state.isPublished || state.isLatestPublishedVersion();
      },
  
      isEditableOrigins() {
          // console.debug('isEditableOrigins', !state.isPublished);
          return !state.isPublished;
      },
  
      isEditableDescription() {
          return true;
      },
  
      isEditableVersionRationale() {
          return !state.isPublished;
      },
  
      isEditableCodes() {
          // console.debug('isEditableCodes ', !state.isPublished)7
          return !state.isPublished;
      }
  });