import { defineMessages , MessageDescriptor } from 'react-intl' ; interface IReviewMessages extends Record < string | number | symbol , MessageDescriptor > { additionalComments : MessageDescriptor ; backToPreview : MessageDescriptor ; editApplicationConfirmationTitle : MessageDescriptor ; editApplicationConfirmation : MessageDescriptor ; editDocuments : MessageDescriptor ; formDataHeader : MessageDescriptor ; headerSubjectWithName : MessageDescriptor ; headerSubjectWithoutName : MessageDescriptor ; previewName : MessageDescriptor ; previewTitle : MessageDescriptor ; registerActionDescription : MessageDescriptor ; registerActionDescriptionComplete : MessageDescriptor ; registerActionDescriptionIncomplete : MessageDescriptor ; registerActionTitle : MessageDescriptor ; registerConfirmationTitle : MessageDescriptor ; approvalActionDescriptionComplete : MessageDescriptor ; approvalActionDescriptionIncomplete : MessageDescriptor ; approvalActionTitle : MessageDescriptor ; reviewActionDescriptionComplete : MessageDescriptor ; reviewActionDescriptionIncomplete : MessageDescriptor ; reviewActionTitle : MessageDescriptor ; reviewName : MessageDescriptor ; reviewTitle : MessageDescriptor ; submitConfirmationDesc : MessageDescriptor ; submitConfirmationTitle : MessageDescriptor ; validateConfirmationDesc : MessageDescriptor ; validateConfirmationTitle : MessageDescriptor ; valueApprove : MessageDescriptor ; zeroDocumentsText : MessageDescriptor ; validateCompleteApplicationActionTitle : MessageDescriptor ; validateCompleteApplicationActionDescription : MessageDescriptor ; validateApplicationActionModalTitle : MessageDescriptor ; validateApplicationActionModalDescription : MessageDescriptor ; govtName : MessageDescriptor ; documentForWhom : MessageDescriptor ; } const messagesToDefine = { validateCompleteApplicationActionTitle : { id : 'validate.complete.application.action.title' , defaultMessage : 'Send for approval or reject?' } , validateCompleteApplicationActionDescription : { id : 'validate.complete.application.action.description' , defaultMessage : 'By sending for approval you confirm that the application is ready for approval' } , validateApplicationActionModalTitle : { id : 'validate.application.action.modal.title' , defaultMessage : 'Send for approval?' } , validateApplicationActionModalDescription : { id : 'validate.application.action.modal.description' , defaultMessage : 'This application will be sent to the registrar for them to register' } , additionalComments : { defaultMessage : 'Any additional comments?' , description : 'Label for input Additional comments' , id : 'review.inputs.additionalComments' } , backToPreview : { defaultMessage : 'Back to Preview' , description : 'Preview button on edit modal' , id : 'review.edit.modal.backToPreview' } , editApplicationConfirmationTitle : { defaultMessage : 'Edit application?' , description : 'Edit modal confirmation title' , id : 'review.edit.modal.confirmationTitle' } , editApplicationConfirmation : { defaultMessage : 'A record will be created of any changes you make.' , description : 'Edit modal confirmation text' , id : 'review.edit.modal.confirmationText' } , editDocuments : { defaultMessage : 'Add attachement' , description : 'Edit documents text' , id : 'review.documents.editDocuments' } , formDataHeader : { defaultMessage : '{isDraft, select, true {Check responses with the applicant before sending for review} false {Review the answers with the supporting documents}}' , description : 'Label for form data header text' , id : 'review.formData.header' } , headerSubjectWithName : { defaultMessage : '{eventType, select, birth {Birth} death {Death}} Application for {name}' , description : 'Header subject that shows which application type to review with applicant name' , id : 'review.header.subject.subjectWitName' } , headerSubjectWithoutName : { defaultMessage : '{eventType, select, birth {Birth} death {Death}} Application' , description : 'Header subject that shows which application type to review' , id : 'review.header.subject.subjectWithoutName' } , previewName : { defaultMessage : 'Preview' , description : 'Form section name for Preview' , id : 'register.form.section.preview.name' } , previewTitle : { defaultMessage : 'Preview' , description : 'Form section title for Preview' , id : 'register.form.section.preview.title' } , registerActionDescription : { defaultMessage : 'By registering you confirm that you have reviewed this application and satisfied it fulfils requirements required for registration. ' , id : 'review.actions.description' } , registerActionDescriptionComplete : { defaultMessage : 'By clicking register, you confirm that the information is correct and has been reviewed by the applicant. The applicant understands that it will be used to register the {eventType, select, birth {birth application} death {death application}} and for planning purposes.\n\nBy registering this {eventType, select, birth {birth application} death {death application}}, a {eventType, select, birth {birth} death {death}} certificate will be generated with your signature for issuance.' , id : 'review.actions.desc.regConfComp' } , registerActionDescriptionIncomplete : { defaultMessage : 'Mandatory information is missing. Please add this information so that you can complete the registration process.' , id : 'review.actions.desc.regConfInComp' } , registerActionTitle : { defaultMessage : 'Ready to register?' , id : 'review.actions.title.registerActionTitle' } , registerConfirmationTitle : { defaultMessage : 'Register this {event}?' , description : 'Title for register confirmation modal' , id : 'review.modal.title.registerConfirmation' } , approvalActionDescriptionComplete : { defaultMessage : 'By sending for approval you confirm that the application is ready for approval.' , description : 'Description for review action component when complete application' , id : 'misc.description.Complete' } , approvalActionDescriptionIncomplete : { defaultMessage : 'Mandatory information is missing. Please add this information so that you can send for approval.' , id : 'misc.description.inComplete' } , approvalActionTitle : { defaultMessage : 'Send for {draftStatus, select, true {approval} false {approval or reject}}?' , description : 'Title for review action component' , id : 'misc.title.applicationStatus' } , reviewActionDescriptionComplete : { defaultMessage : 'By sending this application for review you confirm that the information has been reviewed by the applicant and that they are aware that they will receive an SMS with a tracking ID and details of how to collect the {eventType, select, birth {birth} death {death}} certificate' , description : 'Description for review action component when complete application' , id : 'review.actions.description.confirmComplete' } , reviewActionDescriptionIncomplete : { defaultMessage : 'By sending this incomplete application, there will be a digital record made.\n\nTell the applicant that they will receive an SMS with a tracking ID. They will need this to complete the application at a registration office within 30 days. The applicant will need to provide all mandatory information before the {eventType, select, birth {birth application} death {death application}} can be registered.' , description : 'Description for review action component when incomplete application' , id : 'review.actions.description.confirmInComplete' } , reviewActionTitle : { defaultMessage : 'Application {completeApplication, select, true {complete} false {incomplete}}' , description : 'Title for review action component' , id : 'review.actions.title.applicationStatus' } , reviewName : { defaultMessage : 'Review' , description : 'Form section name for Review' , id : 'review.form.section.review.name' } , reviewTitle : { defaultMessage : 'Review' , description : 'Form section title for Review' , id : 'review.form.section.review.title' } , submitConfirmationDesc : { defaultMessage : '{completeApplication, select, true {This application will be sent to the registrar for them to review.} false {This application will be sent to the Registrar for completion. Please inform the Applicant that they will need to visit the office with the missing information and supporting documents.}}' , description : 'Submit description text on modal' , id : 'review.modal.desc.submitConfirmation' } , submitConfirmationTitle : { defaultMessage : '{completeApplication, select, true {Send application for review?} false {Send incomplete application?}}' , description : 'Submit title text on modal' , id : 'review.modal.title.submitConfirmation' } , validateConfirmationDesc : { defaultMessage : 'This application will be sent to the registrar for them to approve.' , description : 'Description for validate confirmation modal' , id : 'register.form.modal.desc.validateConfirmation' } , validateConfirmationTitle : { defaultMessage : 'Send for approval?' , description : 'Title for validate confirmation modal' , id : 'register.form.modal.title.validateConfirmation' } , valueApprove : { defaultMessage : 'Send for approval' , description : 'Label for Send For Approval button' , id : 'review.button.approve' } , zeroDocumentsText : { defaultMessage : 'No supporting documents for {section, select, child {child} mother {mother} father {father} deceased {deceased} informant {informant} primaryCaregiver {parents}}' , description : 'Zero documents text' , id : 'review.documents.zeroDocumentsText' } , govtName : { id : 'review.header.title.govtName' , defaultMessage : 'Government of the peoples republic of Bangladesh' , description : 'Header title that shows bgd govt name' } , documentForWhom : { defaultMessage : `{section, select, child {Child's} mother {Mother's} father {Father's} deceased {Deceased's} informant {Applicant's} applicant {Applicant's} primaryCaregiver {Parents' } parent {Parents' }}` , description : 'Describes for whom the document has been uploaded' , id : 'review.documents.documentForWhom' } } ; export const messages = defineMessages ( messagesToDefine ) ;