import { defineMessages } from 'react-intl';
const prefix = 'app.v2containers.SmsTrai.Create';
export default defineMessages({
  uploadFile: {
    id: `${prefix}.uploadFile`,
    defaultMessage: 'Upload file',
  },
  dropCsvFile: {
    id: `${prefix}.dropCsvFile`,
    defaultMessage: 'Drag and drop a CSV file here',
  },
  or: {
    id: `${prefix}.or`,
    defaultMessage: 'OR',
  },
  selectFileFromComputer: {
    id: `${prefix}.selectFileFromComputer`,
    defaultMessage: 'Select a file from computer',
  },
  numberOfRecords: {
    id: `${prefix}.numberOfRecords`,
    defaultMessage: '{value, number} Record{value, plural, one {} other {s}}',
  },
  sampleCsv: {
    id: `${prefix}.sampleCsv`,
    defaultMessage: 'Sample CSV',
  },
  uploadInstructions: {
    id: `${prefix}.uploadInstructions`,
    defaultMessage: 'Upload Instructions',
  },
  sampleFileInstruction: {
    id: `${prefix}.sampleFileInstruction`,
    defaultMessage: 'Users can also download {link} file and populate data. Please ensure that datatype is not changed.',
  },
  deferEdit: {
    id: `${prefix}.deferEdit`,
    defaultMessage: 'It is highly recommended to use a file directly downloaded from the DLT portal. Editing the file may cause data to truncate unexpectedly.',
  },
  rowLimitInstruction: {
    id: `${prefix}.rowLimitInstruction`,
    defaultMessage: 'Maximum 500 rows are allowed in a single file.',
  },
  mandatoryColInstruction: {
    id: `${prefix}.mandatoryColInstruction`,
    defaultMessage:
      'Please ensure that each template has the following mandatory fields: Template name, Template ID, Type, Sender ID, Approval status/Status, Template message.',
  },
  statusesInstruction: {
    id: `${prefix}.statusesInstruction`,
    defaultMessage: 'Only templates in the Approved/ Registered/ Active state will be uploaded.',
  },
  duplicateTemplateIdInstruction: {
    id: `${prefix}.duplicateTemplateIdInstruction`,
    defaultMessage: 'Existing templates with the same template ids will be overwritten.',
  },
  duplicateTemplateNameInstruction: {
    id: `${prefix}.duplicateTemplateNameInstruction`,
    defaultMessage: 'The template name needs to be unique. Any new template with a name matching the existing template name will not be created.',
  },
  trimInstruction: {
    id: `${prefix}.trimInstruction`,
    defaultMessage: 'Whitespaces will be trimmed from both ends for all template cells.',
  },
  tempInstruction: {
    id: `${prefix}.tempInstruction`,
    defaultMessage: 'In case the uploaded file with multiple templates is showing errors, but any campaign needs to be sent urgently, try uploading a single template (as required in the campaign) in Sample CSV.',
  },
  fileMinlengthError: {
    id: `${prefix}.fileMinlengthError`,
    defaultMessage: 'Please select a CSV file with minimum 1 row of data and 1 row of headers.',
  },
  fileMaxlengthError: {
    id: `${prefix}.fileMaxlengthError`,
    defaultMessage:
      'More then 500 records are not allowed for the selected file.',
  },
  mandatoryColErrorDescription: {
    id: `${prefix}.mandatoryColErrorDescription`,
    defaultMessage: 'Please include mandatory field Template name.',
  },
  headerAliasErrorDescription: {
    id: `${prefix}.headerAliasErrorDescription`,
    defaultMessage:
      'Please include mandatory field header. It can be {headerAliases}.',
  },
  templateIdAliasErrorDescription: {
    id: `${prefix}.templateIdAliasErrorDescription`,
    defaultMessage:
      'Please include mandatory field template id. It can be {templateIdAliases}.',
  },
  templateMessageAliasErrorDescription: {
    id: `${prefix}.templateMessageAliasErrorDescription`,
    defaultMessage:
      'Please include mandatory field template message. It can be {templateMessageAliases}.',
  },
  statusAliasErrorDescription: {
    id: `${prefix}.statusAliasErrorDescription`,
    defaultMessage:
      'Please include mandatory field status. It can be {statusAliases}.',
  },
  typeAliasErrorDescription: {
    id: `${prefix}.typeAliasErrorDescription`,
    defaultMessage:
      'Please include mandatory field type. It can be {typeAliases}.',
  },
  repetitiveColsErrorDescription: {
    id: `${prefix}.repetitiveColsErrorDescription`,
    defaultMessage:
      'Please remove repetitive fields ({repetitiveCols}) from the file.',
  },
  nonCsvErrorDescription: {
    id: `${prefix}.nonCsvErrorDescription`,
    defaultMessage: 'Please select a csv file.',
  },
  doneButtonLabel: {
    id: `${prefix}.doneButtonLabel`,
    defaultMessage: 'Done',
  },
  failedToUpload: {
    id: `${prefix}.failedToUpload`,
    defaultMessage: 'Failed to upload',
  },
  passedVal: {
    id: `${prefix}.passedVal`,
    defaultMessage: '{number} passed ',
  },
  failedVal: {
    id: `${prefix}.failedVal`,
    defaultMessage: '{number} failed ',
  },
  downloadIssues: {
    id: `${prefix}.downloadIssues`,
    defaultMessage: 'Download issues',
  },
  smsCreateNotification: {
    id: `${prefix}.smsCreateNotification`,
    defaultMessage: 'Sms templates created successfully',
  },
});
