import { i18n } from '@plugins/i18n';

export enum DocTypeCode {
  RESULT = 'Result',
  EPGU = 'ЕПГУ',
  EPGU_EXTRA = 'ЕПГУ-extra',
  MVZ = 'MVZ',
  CHECK = 'CHECK',
  LP = 'ЛП',
  SPECIALIST = 'specialist',
}

export const DocTypeLabel = {
  RESULT: i18n.t('base.documentType.documentResult').toString(),
  EPGU: i18n.t('base.documentType.applicantDocuments').toString(),
  EPGU_EXTRA: i18n.t('base.documentType.extraDocuments').toString(),
  MVZ: i18n.t('base.documentType.operatorDocuments').toString(),
  CHECK: i18n.t('base.documentType.criteriaDocuments').toString(),
  LP: i18n.t('base.documentType.personal').toString(),
  SPECIALIST: i18n.t('base.documentType.applicantSendDocuments').toString(),
};

export const DOC_TYPE_CONFIG = [
  {
    code: DocTypeCode.RESULT,
    label: DocTypeLabel.RESULT,
  },
  {
    code: DocTypeCode.EPGU,
    label: DocTypeLabel.EPGU,
  },
  {
    code: DocTypeCode.EPGU_EXTRA,
    label: DocTypeLabel.EPGU_EXTRA,
  },
  {
    code: DocTypeCode.MVZ,
    label: DocTypeLabel.MVZ,
  },
  {
    code: DocTypeCode.CHECK,
    label: DocTypeLabel.CHECK,
  },
  {
    code: DocTypeCode.EPGU,
    label: DocTypeLabel.EPGU,
  },
  {
    code: DocTypeCode.SPECIALIST,
    label: DocTypeLabel.SPECIALIST,
  },
];
