@sheerid/jslib 2.274.0 → 2.276.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +44 -44
- package/chunk/{AddressComponent-BGFbAsvK.js → AddressComponent-C89pD6Mq.js} +7 -7
- package/chunk/{AddressComponent-BGFbAsvK.js.map → AddressComponent-C89pD6Mq.js.map} +1 -1
- package/chunk/{AddressComponent-DeQlodxe.js → AddressComponent-DeNJR0XJ.js} +7 -7
- package/chunk/{AddressComponent-DeQlodxe.js.map → AddressComponent-DeNJR0XJ.js.map} +1 -1
- package/chunk/{AnnouncingHeader-D01_AW-Z.js → AnnouncingHeader-BlnfAnLI.js} +6 -6
- package/chunk/{AnnouncingHeader-Ces-_Aei.js.map → AnnouncingHeader-BlnfAnLI.js.map} +1 -1
- package/chunk/{AnnouncingHeader-Ces-_Aei.js → AnnouncingHeader-CegZwDFd.js} +6 -6
- package/chunk/{AnnouncingHeader-D01_AW-Z.js.map → AnnouncingHeader-CegZwDFd.js.map} +1 -1
- package/chunk/{ApiUrls-CCrEMNcV.js → ApiUrls-Cn6zYY4_.js} +6 -6
- package/chunk/{ApiUrls-CCrEMNcV.js.map → ApiUrls-Cn6zYY4_.js.map} +1 -1
- package/chunk/{ApiUrls-CtTZRLIz.js → ApiUrls-DtgMSGlO.js} +6 -6
- package/chunk/{ApiUrls-CtTZRLIz.js.map → ApiUrls-DtgMSGlO.js.map} +1 -1
- package/chunk/{BirthDateComponent-DidDEb4J.js → BirthDateComponent-2CJqlbNU.js} +8 -8
- package/chunk/{BirthDateComponent-DidDEb4J.js.map → BirthDateComponent-2CJqlbNU.js.map} +1 -1
- package/chunk/{BirthDateComponent-DlrYopO3.js → BirthDateComponent-BYO6Kfgc.js} +8 -8
- package/chunk/{BirthDateComponent-DlrYopO3.js.map → BirthDateComponent-BYO6Kfgc.js.map} +1 -1
- package/chunk/{CaptchaComponent-CoUrV-PT.js → CaptchaComponent-CoajXhka.js} +17 -16
- package/chunk/CaptchaComponent-CoajXhka.js.map +1 -0
- package/chunk/{CaptchaComponent-D57Ffe6H.js → CaptchaComponent-DnyafWoN.js} +17 -16
- package/chunk/CaptchaComponent-DnyafWoN.js.map +1 -0
- package/chunk/{ChangeLocaleComponent-ClmSxxuE.js → ChangeLocaleComponent-C4jVlT7w.js} +8 -8
- package/chunk/{ChangeLocaleComponent-ClmSxxuE.js.map → ChangeLocaleComponent-C4jVlT7w.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-fFVOdtsS.js → ChangeLocaleComponent-Z-taCJ6R.js} +8 -8
- package/chunk/{ChangeLocaleComponent-fFVOdtsS.js.map → ChangeLocaleComponent-Z-taCJ6R.js.map} +1 -1
- package/chunk/{City-C1CWD14n.js → City-CEOnA40d.js} +7 -7
- package/chunk/{City-BJB8URp9.js.map → City-CEOnA40d.js.map} +1 -1
- package/chunk/{City-BJB8URp9.js → City-CHFvccq5.js} +7 -7
- package/chunk/{City-C1CWD14n.js.map → City-CHFvccq5.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BMBLbuQc.js → CollegeNameComponent-C-Vq-0f_.js} +9 -9
- package/chunk/{CollegeNameComponent-BMBLbuQc.js.map → CollegeNameComponent-C-Vq-0f_.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BnJDGc88.js → CollegeNameComponent-TPDjSelK.js} +9 -9
- package/chunk/{CollegeNameComponent-BnJDGc88.js.map → CollegeNameComponent-TPDjSelK.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-CWCaNcMS.js → CopyToClipboardComponent-BdTGehGx.js} +6 -6
- package/chunk/{CopyToClipboardComponent-C4DDGwe8.js.map → CopyToClipboardComponent-BdTGehGx.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-C4DDGwe8.js → CopyToClipboardComponent-DkrM2SFa.js} +6 -6
- package/chunk/{CopyToClipboardComponent-CWCaNcMS.js.map → CopyToClipboardComponent-DkrM2SFa.js.map} +1 -1
- package/chunk/CountryComponentWrapper-C45AFJGi.js +82 -0
- package/chunk/CountryComponentWrapper-C45AFJGi.js.map +1 -0
- package/chunk/CountryComponentWrapper-CsMhIsMa.js +78 -0
- package/chunk/CountryComponentWrapper-CsMhIsMa.js.map +1 -0
- package/chunk/{DischargeDateComponent-VzOdjzS5.js → DischargeDateComponent-W6LVGtRA.js} +11 -11
- package/chunk/{DischargeDateComponent-Rjgoohzn.js.map → DischargeDateComponent-W6LVGtRA.js.map} +1 -1
- package/chunk/{DischargeDateComponent-Rjgoohzn.js → DischargeDateComponent-YwN1LS7c.js} +11 -11
- package/chunk/{DischargeDateComponent-VzOdjzS5.js.map → DischargeDateComponent-YwN1LS7c.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-Cfjxx2ik.js → DriverLicenseNumberComponent-BgyfMAeh.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-CFbngokf.js.map → DriverLicenseNumberComponent-BgyfMAeh.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-CFbngokf.js → DriverLicenseNumberComponent-DWRBwzc1.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-Cfjxx2ik.js.map → DriverLicenseNumberComponent-DWRBwzc1.js.map} +1 -1
- package/chunk/{EmailLoopPending-C7lV28N9.js → EmailLoopPending-C7SKw1We.js} +11 -11
- package/chunk/{EmailLoopPending-BHVS5imA.js.map → EmailLoopPending-C7SKw1We.js.map} +1 -1
- package/chunk/{EmailLoopPending-BHVS5imA.js → EmailLoopPending-DbehVow3.js} +11 -11
- package/chunk/{EmailLoopPending-C7lV28N9.js.map → EmailLoopPending-DbehVow3.js.map} +1 -1
- package/chunk/{ExtraMessage-C2HFAvWw.js → ExtraMessage-CIU0SFFU.js} +7 -7
- package/chunk/{ExtraMessage-C2HFAvWw.js.map → ExtraMessage-CIU0SFFU.js.map} +1 -1
- package/chunk/{ExtraMessage-DU8TXgyJ.js → ExtraMessage-f9Om84tg.js} +7 -7
- package/chunk/{ExtraMessage-DU8TXgyJ.js.map → ExtraMessage-f9Om84tg.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Cojs7nNP.js → FirstResponderOrganizationComponent-CCzd7O89.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-Cojs7nNP.js.map → FirstResponderOrganizationComponent-CCzd7O89.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DaIpM9B_.js → FirstResponderOrganizationComponent-D3iJl4at.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-DaIpM9B_.js.map → FirstResponderOrganizationComponent-D3iJl4at.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BF_uqQju.js → FormFieldInputSelect-BAVhOrsd.js} +7 -7
- package/chunk/{FormFieldInputSelect-BF_uqQju.js.map → FormFieldInputSelect-BAVhOrsd.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Cio6GCQa.js → FormFieldInputSelect-BioVB7zS.js} +7 -7
- package/chunk/{FormFieldInputSelect-Cio6GCQa.js.map → FormFieldInputSelect-BioVB7zS.js.map} +1 -1
- package/chunk/{FormFieldLayout-CuxYu2-h.js → FormFieldLayout-Bav93prH.js} +8 -17
- package/chunk/FormFieldLayout-Bav93prH.js.map +1 -0
- package/chunk/{FormFieldLayout-BPBIL09f.js → FormFieldLayout-C-P2QCto.js} +8 -17
- package/chunk/FormFieldLayout-C-P2QCto.js.map +1 -0
- package/chunk/{FormFieldText-BTWjkwwz.js → FormFieldText-BPefsplc.js} +7 -7
- package/chunk/{FormFieldText-BTWjkwwz.js.map → FormFieldText-BPefsplc.js.map} +1 -1
- package/chunk/{FormFieldText-Qen7EAhG.js → FormFieldText-mvPCLbUG.js} +7 -7
- package/chunk/{FormFieldText-Qen7EAhG.js.map → FormFieldText-mvPCLbUG.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CEVrBhmP.js → FormFieldTypeahead-Cd4-ak1z.js} +15 -15
- package/chunk/{FormFieldTypeahead-CEVrBhmP.js.map → FormFieldTypeahead-Cd4-ak1z.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CTs2-gEo.js → FormFieldTypeahead-D5lcrGM-.js} +15 -15
- package/chunk/{FormFieldTypeahead-CTs2-gEo.js.map → FormFieldTypeahead-D5lcrGM-.js.map} +1 -1
- package/chunk/{FormFooterComponent-BYkrVAWO.js → FormFooterComponent-BEDJQK_Z.js} +14 -14
- package/chunk/{FormFooterComponent-BYkrVAWO.js.map → FormFooterComponent-BEDJQK_Z.js.map} +1 -1
- package/chunk/{FormFooterComponent-DSZX7clY.js → FormFooterComponent-BuRQRQFI.js} +14 -14
- package/chunk/{FormFooterComponent-DSZX7clY.js.map → FormFooterComponent-BuRQRQFI.js.map} +1 -1
- package/chunk/{FormSelectChoice-ktUJwtNJ.js → FormSelectChoice-BMOCwG1_.js} +12 -23
- package/chunk/FormSelectChoice-BMOCwG1_.js.map +1 -0
- package/chunk/{FormSelectChoice-eq9jx2Ul.js → FormSelectChoice-xPF_7dfg.js} +12 -23
- package/chunk/FormSelectChoice-xPF_7dfg.js.map +1 -0
- package/chunk/{InputText-C8Mt-ybW.js → InputText-B4CjWTez.js} +7 -7
- package/chunk/{InputText-Bw9hR6-E.js.map → InputText-B4CjWTez.js.map} +1 -1
- package/chunk/{InputText-Bw9hR6-E.js → InputText-Dc_DjXbQ.js} +7 -7
- package/chunk/{InputText-C8Mt-ybW.js.map → InputText-Dc_DjXbQ.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-B_kcJSx5.js → LicensedProfessionalOrganizationComponent-CP_MLvtk.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-B_kcJSx5.js.map → LicensedProfessionalOrganizationComponent-CP_MLvtk.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Bn6p2Wrg.js → LicensedProfessionalOrganizationComponent-Dwbseq8o.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-Bn6p2Wrg.js.map → LicensedProfessionalOrganizationComponent-Dwbseq8o.js.map} +1 -1
- package/chunk/{LogoComponent-BbW4WS1K.js → LogoComponent-BaBfWuKr.js} +6 -6
- package/chunk/{LogoComponent-BbW4WS1K.js.map → LogoComponent-BaBfWuKr.js.map} +1 -1
- package/chunk/{LogoComponent-CRfZyj0K.js → LogoComponent-DSoOQ1Uz.js} +6 -6
- package/chunk/{LogoComponent-CRfZyj0K.js.map → LogoComponent-DSoOQ1Uz.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DYt5-V2e.js → LowIncomeOrganizationComponent-BXmap6Rx.js} +12 -12
- package/chunk/{LowIncomeOrganizationComponent-DYt5-V2e.js.map → LowIncomeOrganizationComponent-BXmap6Rx.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Ddn9t9I5.js → LowIncomeOrganizationComponent-D8CNP5HY.js} +12 -12
- package/chunk/{LowIncomeOrganizationComponent-Ddn9t9I5.js.map → LowIncomeOrganizationComponent-D8CNP5HY.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CiFB27-_.js → MedicalProfessionalOrganizationComponent-BbYalsLY.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-CiFB27-_.js.map → MedicalProfessionalOrganizationComponent-BbYalsLY.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-Cjcj-Orv.js → MedicalProfessionalOrganizationComponent-KmjANRJ9.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-Cjcj-Orv.js.map → MedicalProfessionalOrganizationComponent-KmjANRJ9.js.map} +1 -1
- package/chunk/{MemberIdComponent-DbvTJcos.js → MemberIdComponent-TNTlU0wZ.js} +7 -7
- package/chunk/{MemberIdComponent-CuflPh6q.js.map → MemberIdComponent-TNTlU0wZ.js.map} +1 -1
- package/chunk/{MemberIdComponent-CuflPh6q.js → MemberIdComponent-ubWwGiAG.js} +7 -7
- package/chunk/{MemberIdComponent-DbvTJcos.js.map → MemberIdComponent-ubWwGiAG.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BoH-wjYj.js → MembershipOrganizationComponent-BlYWLmzA.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-B4S0h6q3.js.map → MembershipOrganizationComponent-BlYWLmzA.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-B4S0h6q3.js → MembershipOrganizationComponent-QqiCbPz3.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-BoH-wjYj.js.map → MembershipOrganizationComponent-QqiCbPz3.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-C7QmpcVd.js → PersonalInfoStepSubmitButton-DvMU95pj.js} +15 -15
- package/chunk/{PersonalInfoStepSubmitButton-C7QmpcVd.js.map → PersonalInfoStepSubmitButton-DvMU95pj.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-D55ut5Yp.js → PersonalInfoStepSubmitButton-_wFfZCyV.js} +15 -15
- package/chunk/{PersonalInfoStepSubmitButton-D55ut5Yp.js.map → PersonalInfoStepSubmitButton-_wFfZCyV.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-B084bLf0.js → PersonalInfoStepWrapper-BCe97Fbw.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-B084bLf0.js.map → PersonalInfoStepWrapper-BCe97Fbw.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-eaFX3Ju2.js → PersonalInfoStepWrapper-C-DG20qY.js} +8 -8
- package/chunk/{PersonalInfoStepWrapper-eaFX3Ju2.js.map → PersonalInfoStepWrapper-C-DG20qY.js.map} +1 -1
- package/chunk/{PostalCodeComponent-Cd3MQUvZ.js → PostalCodeComponent-BF8Fplpm.js} +7 -7
- package/chunk/{PostalCodeComponent-Bs9KyOzc.js.map → PostalCodeComponent-BF8Fplpm.js.map} +1 -1
- package/chunk/{PostalCodeComponent-Bs9KyOzc.js → PostalCodeComponent-Cn7FPVh2.js} +7 -7
- package/chunk/{PostalCodeComponent-Cd3MQUvZ.js.map → PostalCodeComponent-Cn7FPVh2.js.map} +1 -1
- package/chunk/{SSN-xvlX6KT5.js → SSN-CbSneflU.js} +8 -8
- package/chunk/{SSN-Bj9BhqVP.js.map → SSN-CbSneflU.js.map} +1 -1
- package/chunk/{SSN-Bj9BhqVP.js → SSN-DPn5f0xr.js} +8 -8
- package/chunk/{SSN-xvlX6KT5.js.map → SSN-DPn5f0xr.js.map} +1 -1
- package/chunk/{StateSelectComponent-bfYGRqFK.js → StateSelectComponent-BMxcczlp.js} +6 -6
- package/chunk/{StateSelectComponent-DB2ZVCla.js.map → StateSelectComponent-BMxcczlp.js.map} +1 -1
- package/chunk/{StateSelectComponent-DB2ZVCla.js → StateSelectComponent-Fwkoplfb.js} +6 -6
- package/chunk/{StateSelectComponent-bfYGRqFK.js.map → StateSelectComponent-Fwkoplfb.js.map} +1 -1
- package/chunk/{StatusComponent-B82t_yYt.js → StatusComponent-C--lHDG1.js} +8 -8
- package/chunk/{StatusComponent-B82t_yYt.js.map → StatusComponent-C--lHDG1.js.map} +1 -1
- package/chunk/{StatusComponent-DK_vIH9q.js → StatusComponent-DUPrDBFL.js} +8 -8
- package/chunk/{StatusComponent-DK_vIH9q.js.map → StatusComponent-DUPrDBFL.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Cd3A-_0F.js → StepActiveMilitaryPersonalInfoComponent-BQ1iNc2_.js} +43 -43
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Cd3A-_0F.js.map → StepActiveMilitaryPersonalInfoComponent-BQ1iNc2_.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-EQ6bJz4Q.js → StepActiveMilitaryPersonalInfoComponent-KweeN4OQ.js} +43 -43
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-EQ6bJz4Q.js.map → StepActiveMilitaryPersonalInfoComponent-KweeN4OQ.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CBZWwvsC.js → StepAgePersonalInfo-B3prBGtM.js} +31 -31
- package/chunk/{StepAgePersonalInfo-CBZWwvsC.js.map → StepAgePersonalInfo-B3prBGtM.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DGEVSOm6.js → StepAgePersonalInfo-Bqy4A9R_.js} +31 -31
- package/chunk/{StepAgePersonalInfo-DGEVSOm6.js.map → StepAgePersonalInfo-Bqy4A9R_.js.map} +1 -1
- package/chunk/{StepCard-CPjUPPj0.js → StepCard-DOhBSDPW.js} +5 -5
- package/chunk/{StepCard-CbZaVC-t.js.map → StepCard-DOhBSDPW.js.map} +1 -1
- package/chunk/{StepCard-CbZaVC-t.js → StepCard-Ym7mbGWv.js} +5 -5
- package/chunk/{StepCard-CPjUPPj0.js.map → StepCard-Ym7mbGWv.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CgDnf5rW.js → StepCollectIdentifier-BPVZi_2Z.js} +9 -9
- package/chunk/{StepCollectIdentifier-DdbkjInv.js.map → StepCollectIdentifier-BPVZi_2Z.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DdbkjInv.js → StepCollectIdentifier-DIYCPon1.js} +9 -9
- package/chunk/{StepCollectIdentifier-CgDnf5rW.js.map → StepCollectIdentifier-DIYCPon1.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-kyUWKjnU.js → StepCollectMilitaryStatusComponent-CNctoDoi.js} +5 -5
- package/chunk/StepCollectMilitaryStatusComponent-DCVnycL7.js +9 -0
- package/chunk/{StepCollectPersonalInfo-CrmZROYx.js → StepCollectPersonalInfo-BOCmDplo.js} +112 -116
- package/chunk/{StepCollectPersonalInfo-DCuE4DCp.js.map → StepCollectPersonalInfo-BOCmDplo.js.map} +1 -1
- package/chunk/StepCollectPersonalInfo-R9fs-nQd.js +362 -0
- package/chunk/{StepCollectPersonalInfo-CrmZROYx.js.map → StepCollectPersonalInfo-R9fs-nQd.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-DytIfFlB.js → StepCompleteAuthentication-BmYjAKgP.js} +9 -9
- package/chunk/{StepCompleteAuthentication-AKjdo3J9.js.map → StepCompleteAuthentication-BmYjAKgP.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-AKjdo3J9.js → StepCompleteAuthentication-Yz3dPahs.js} +9 -9
- package/chunk/{StepCompleteAuthentication-DytIfFlB.js.map → StepCompleteAuthentication-Yz3dPahs.js.map} +1 -1
- package/chunk/{StepConsolation-CoWUFyb8.js → StepConsolation-CuDYCCAE.js} +9 -9
- package/chunk/{StepConsolation-CUnbBuhu.js.map → StepConsolation-CuDYCCAE.js.map} +1 -1
- package/chunk/{StepConsolation-CUnbBuhu.js → StepConsolation-DPjGqB9c.js} +9 -9
- package/chunk/{StepConsolation-CoWUFyb8.js.map → StepConsolation-DPjGqB9c.js.map} +1 -1
- package/chunk/{StepDocUpload-RjZfQA5x.js → StepDocUpload-DXh4w_Gy.js} +13 -13
- package/chunk/{StepDocUpload-RjZfQA5x.js.map → StepDocUpload-DXh4w_Gy.js.map} +1 -1
- package/chunk/{StepDocUpload-CxMWqwg6.js → StepDocUpload-wmENbcHT.js} +13 -13
- package/chunk/{StepDocUpload-CxMWqwg6.js.map → StepDocUpload-wmENbcHT.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-Bi_QAHBT.js → StepDriverLicensePersonalInfoComponent-C89uw9hB.js} +16 -16
- package/chunk/{StepDriverLicensePersonalInfoComponent-Bi_QAHBT.js.map → StepDriverLicensePersonalInfoComponent-C89uw9hB.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CJolYOjr.js → StepDriverLicensePersonalInfoComponent-DsWHV5ef.js} +16 -16
- package/chunk/{StepDriverLicensePersonalInfoComponent-CJolYOjr.js.map → StepDriverLicensePersonalInfoComponent-DsWHV5ef.js.map} +1 -1
- package/chunk/{StepEmailLoop-DgiXMCz5.js → StepEmailLoop-CgImGOHm.js} +13 -13
- package/chunk/{StepEmailLoop-DgiXMCz5.js.map → StepEmailLoop-CgImGOHm.js.map} +1 -1
- package/chunk/{StepEmailLoop-Doiy14Hn.js → StepEmailLoop-qLTbVSgG.js} +13 -13
- package/chunk/{StepEmailLoop-Doiy14Hn.js.map → StepEmailLoop-qLTbVSgG.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-Ck7Qrd42.js → StepEmploymentPersonalInfo-BokWlHYE.js} +32 -32
- package/chunk/{StepEmploymentPersonalInfo-B7E-tWiE.js.map → StepEmploymentPersonalInfo-BokWlHYE.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-B7E-tWiE.js → StepEmploymentPersonalInfo-DmWrWi0w.js} +32 -32
- package/chunk/{StepEmploymentPersonalInfo-Ck7Qrd42.js.map → StepEmploymentPersonalInfo-DmWrWi0w.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-oR__DCIi.js → StepFirstResponderPersonalInfo--u-ggEEq.js} +21 -21
- package/chunk/{StepFirstResponderPersonalInfo-Bu--Ctxo.js.map → StepFirstResponderPersonalInfo--u-ggEEq.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-Bu--Ctxo.js → StepFirstResponderPersonalInfo-Cs4BiLuq.js} +21 -21
- package/chunk/{StepFirstResponderPersonalInfo-oR__DCIi.js.map → StepFirstResponderPersonalInfo-Cs4BiLuq.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BWsszzUk.js → StepGeneralIdentityPersonalInfoComponent-C0xjZ49y.js} +19 -19
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BWsszzUk.js.map → StepGeneralIdentityPersonalInfoComponent-C0xjZ49y.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C1LcXbVS.js → StepGeneralIdentityPersonalInfoComponent-DtnhsOS8.js} +19 -19
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C1LcXbVS.js.map → StepGeneralIdentityPersonalInfoComponent-DtnhsOS8.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-fcsS3HaW.js → StepHybridIdentityPersonalInfoComponent-BrfsVxoL.js} +20 -20
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DtVW5Ijk.js.map → StepHybridIdentityPersonalInfoComponent-BrfsVxoL.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DtVW5Ijk.js → StepHybridIdentityPersonalInfoComponent-DtWwTb-w.js} +20 -20
- package/chunk/{StepHybridIdentityPersonalInfoComponent-fcsS3HaW.js.map → StepHybridIdentityPersonalInfoComponent-DtWwTb-w.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CkrXFNDD.js → StepIDCheckLoop-CqMy-kih.js} +8 -8
- package/chunk/{StepIDCheckLoop-CkrXFNDD.js.map → StepIDCheckLoop-CqMy-kih.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-QwQxcr6G.js → StepIDCheckLoop-D3fkw6rR.js} +8 -8
- package/chunk/{StepIDCheckLoop-QwQxcr6G.js.map → StepIDCheckLoop-D3fkw6rR.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DiPll7qE.js → StepIDCheckLoopOnfido-CPqxoGK2.js} +12 -12
- package/chunk/{StepIDCheckLoopOnfido-DiPll7qE.js.map → StepIDCheckLoopOnfido-CPqxoGK2.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BxWt_tTD.js → StepIDCheckLoopOnfido-CuHGDZD7.js} +12 -12
- package/chunk/{StepIDCheckLoopOnfido-BxWt_tTD.js.map → StepIDCheckLoopOnfido-CuHGDZD7.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-Bdm-MlNE.js → StepIDCheckLoopRegula-B0OCBK0E.js} +10 -10
- package/chunk/{StepIDCheckLoopRegula-Bdm-MlNE.js.map → StepIDCheckLoopRegula-B0OCBK0E.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-C4VNjr3j.js → StepIDCheckLoopRegula-DgO-1qZp.js} +10 -10
- package/chunk/{StepIDCheckLoopRegula-C4VNjr3j.js.map → StepIDCheckLoopRegula-DgO-1qZp.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CFuD6VTH.js → StepInactiveMilitaryPersonalInfoComponent-BUL3KyDd.js} +60 -60
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CFuD6VTH.js.map → StepInactiveMilitaryPersonalInfoComponent-BUL3KyDd.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-E7wXl5fr.js → StepInactiveMilitaryPersonalInfoComponent-DD3ijaER.js} +60 -60
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-E7wXl5fr.js.map → StepInactiveMilitaryPersonalInfoComponent-DD3ijaER.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-7qvdOCxP.js → StepLicensedProfessionalPersonalInfo-BoMh77dS.js} +38 -38
- package/chunk/{StepLicensedProfessionalPersonalInfo-7qvdOCxP.js.map → StepLicensedProfessionalPersonalInfo-BoMh77dS.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-BPO41u3Q.js → StepLicensedProfessionalPersonalInfo-CJUnLQJn.js} +38 -38
- package/chunk/{StepLicensedProfessionalPersonalInfo-BPO41u3Q.js.map → StepLicensedProfessionalPersonalInfo-CJUnLQJn.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-sLsTIBCk.js → StepLowIncomePersonalInfo-KsWVTeO_.js} +53 -53
- package/chunk/{StepLowIncomePersonalInfo-DM27_Fv9.js.map → StepLowIncomePersonalInfo-KsWVTeO_.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-DM27_Fv9.js → StepLowIncomePersonalInfo-WixW7jSE.js} +53 -53
- package/chunk/{StepLowIncomePersonalInfo-sLsTIBCk.js.map → StepLowIncomePersonalInfo-WixW7jSE.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BKS432PR.js → StepMedicalProfessionalPersonalInfo-CkP3ijlv.js} +46 -46
- package/chunk/{StepMedicalProfessionalPersonalInfo-BKS432PR.js.map → StepMedicalProfessionalPersonalInfo-CkP3ijlv.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CXFjH431.js → StepMedicalProfessionalPersonalInfo-ZWnPprFj.js} +46 -46
- package/chunk/{StepMedicalProfessionalPersonalInfo-CXFjH431.js.map → StepMedicalProfessionalPersonalInfo-ZWnPprFj.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CqtZioX5.js → StepMemberPersonalInfo-BkdO0M03.js} +37 -37
- package/chunk/{StepMemberPersonalInfo-BfERXavf.js.map → StepMemberPersonalInfo-BkdO0M03.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BfERXavf.js → StepMemberPersonalInfo-iiEeEHMd.js} +37 -37
- package/chunk/{StepMemberPersonalInfo-CqtZioX5.js.map → StepMemberPersonalInfo-iiEeEHMd.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-B4uXChsu.js → StepMoverPersonalInfo-B8ulp8r4.js} +15 -15
- package/chunk/{StepMoverPersonalInfo-B4uXChsu.js.map → StepMoverPersonalInfo-B8ulp8r4.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CQprA7My.js → StepMoverPersonalInfo-ddojJbVP.js} +15 -15
- package/chunk/{StepMoverPersonalInfo-CQprA7My.js.map → StepMoverPersonalInfo-ddojJbVP.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BqQF_3dO.js → StepOverrideComponent-1C4izDUn.js} +13 -13
- package/chunk/StepOverrideComponent-1C4izDUn.js.map +1 -0
- package/chunk/{StepOverrideComponent-BfutBYKU.js → StepOverrideComponent-CW4AqS1W.js} +13 -13
- package/chunk/StepOverrideComponent-CW4AqS1W.js.map +1 -0
- package/chunk/{StepSMSLoop-BZS30ArE.js → StepSMSLoop-CYsBZ7tK.js} +9 -9
- package/chunk/{StepSMSLoop-BZS30ArE.js.map → StepSMSLoop-CYsBZ7tK.js.map} +1 -1
- package/chunk/{StepSMSLoop-CsN3smWP.js → StepSMSLoop-ZFEdfzI7.js} +9 -9
- package/chunk/{StepSMSLoop-CsN3smWP.js.map → StepSMSLoop-ZFEdfzI7.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-h5XRRxQ1.js → StepSocialSecurityNumber-2cDHkFtc.js} +13 -13
- package/chunk/{StepSocialSecurityNumber-CNYkj1us.js.map → StepSocialSecurityNumber-2cDHkFtc.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CNYkj1us.js → StepSocialSecurityNumber-S4ajjj2k.js} +13 -13
- package/chunk/{StepSocialSecurityNumber-h5XRRxQ1.js.map → StepSocialSecurityNumber-S4ajjj2k.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BK4Vzxug.js → StepStudentPersonalInfo-CPEy1x3k.js} +41 -41
- package/chunk/{StepStudentPersonalInfo-BK4Vzxug.js.map → StepStudentPersonalInfo-CPEy1x3k.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DMDBFsoT.js → StepStudentPersonalInfo-DNqHAtn-.js} +41 -41
- package/chunk/{StepStudentPersonalInfo-DMDBFsoT.js.map → StepStudentPersonalInfo-DNqHAtn-.js.map} +1 -1
- package/chunk/{StepSuccess-CpGC44L8.js → StepSuccess-CAGzawu7.js} +13 -13
- package/chunk/{StepSuccess-CpGC44L8.js.map → StepSuccess-CAGzawu7.js.map} +1 -1
- package/chunk/{StepSuccess-BTgPBEUH.js → StepSuccess-D_IWaCdF.js} +13 -13
- package/chunk/{StepSuccess-BTgPBEUH.js.map → StepSuccess-D_IWaCdF.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-3iYsyMc8.js → StepTeacherPersonalInfo-CJXMX4i-.js} +36 -36
- package/chunk/{StepTeacherPersonalInfo-3iYsyMc8.js.map → StepTeacherPersonalInfo-CJXMX4i-.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CCm_8ZHt.js → StepTeacherPersonalInfo-DuQ_2jzT.js} +36 -36
- package/chunk/{StepTeacherPersonalInfo-CCm_8ZHt.js.map → StepTeacherPersonalInfo-DuQ_2jzT.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-5OscH6cJ.js → TeacherSchoolComponent-3hHaynGt.js} +9 -9
- package/chunk/{TeacherSchoolComponent-5OscH6cJ.js.map → TeacherSchoolComponent-3hHaynGt.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-wTJoE5I1.js → TeacherSchoolComponent-CTUcGZBk.js} +9 -9
- package/chunk/{TeacherSchoolComponent-wTJoE5I1.js.map → TeacherSchoolComponent-CTUcGZBk.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-BeBP6XXB.js → TestingRouteOverrides-B51tlkPN.js} +6 -6
- package/chunk/{TestingRouteOverrides-BeBP6XXB.js.map → TestingRouteOverrides-B51tlkPN.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-Bt8QuyMY.js → TestingRouteOverrides-MQkB4gbS.js} +6 -6
- package/chunk/{TestingRouteOverrides-Bt8QuyMY.js.map → TestingRouteOverrides-MQkB4gbS.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-DDY8kVrd.js → VerificationApiClient-BuZNO3k4.js} +8 -8
- package/chunk/{VerificationApiClient-DDY8kVrd.js.map → VerificationApiClient-BuZNO3k4.js.map} +1 -1
- package/chunk/{VerificationApiClient-CV-pPSzS.js → VerificationApiClient-CSmDqqJd.js} +8 -8
- package/chunk/{VerificationApiClient-CV-pPSzS.js.map → VerificationApiClient-CSmDqqJd.js.map} +1 -1
- package/chunk/{VerificationApiUtils-DVXEkkFJ.js → VerificationApiUtils-BBxvDM3j.js} +7 -7
- package/chunk/{VerificationApiUtils-DVXEkkFJ.js.map → VerificationApiUtils-BBxvDM3j.js.map} +1 -1
- package/chunk/{VerificationApiUtils-V2wmWL9a.js → VerificationApiUtils-CFvFUGWV.js} +7 -7
- package/chunk/{VerificationApiUtils-V2wmWL9a.js.map → VerificationApiUtils-CFvFUGWV.js.map} +1 -1
- package/chunk/ar-Dh-2G5c3.js +4 -4
- package/chunk/bg-BbAhdJRh.js +4 -4
- package/chunk/bn-IN-Cx3Q5Utp.js +4 -4
- package/chunk/{countryUtils-QLzXPJsg.js → countryUtils-AmQexyFX.js} +5 -5
- package/chunk/{countryUtils-Bg9KdIbF.js.map → countryUtils-AmQexyFX.js.map} +1 -1
- package/chunk/countryUtils-_b1AEFmu.js +12 -0
- package/chunk/{countryUtils-QLzXPJsg.js.map → countryUtils-_b1AEFmu.js.map} +1 -1
- package/chunk/cs-CYGsmvju.js +4 -4
- package/chunk/da-COZWvvUD.js +4 -4
- package/chunk/de-BHclNQGr.js +4 -4
- package/chunk/{downshift.esm-Be27xbKJ.js → downshift.esm-TD1ZHIGw.js} +7 -7
- package/chunk/{downshift.esm-BMKqQbKD.js.map → downshift.esm-TD1ZHIGw.js.map} +1 -1
- package/chunk/{downshift.esm-BMKqQbKD.js → downshift.esm-a6BpIuFH.js} +7 -7
- package/chunk/{downshift.esm-Be27xbKJ.js.map → downshift.esm-a6BpIuFH.js.map} +1 -1
- package/chunk/el-Bv_XQ0FX.js +4 -4
- package/chunk/{empties-COfIPxJ5.js → empties-B6yh07nS.js} +5 -5
- package/chunk/{empties-COfIPxJ5.js.map → empties-B6yh07nS.js.map} +1 -1
- package/chunk/{empties-DctbDY5s.js → empties-Cng4q8t3.js} +5 -5
- package/chunk/{empties-DctbDY5s.js.map → empties-Cng4q8t3.js.map} +1 -1
- package/chunk/en-GB-CkENrh2I.js +4 -4
- package/chunk/es-BRKAFTKN.js +4 -4
- package/chunk/es-ES-BWfAbWbQ.js +4 -4
- package/chunk/et-CxMgVbW2.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BEC3aNBF.js +4 -4
- package/chunk/fi-BaP3FR15.js +4 -4
- package/chunk/fr-CA-CS4SuM-m.js +4 -4
- package/chunk/fr-DSU2B7p2.js +4 -4
- package/chunk/ga-DZEr9X_A.js +4 -4
- package/chunk/hi-IN-DvBVpWNQ.js +4 -4
- package/chunk/{hooks-PN48cX8E.js → hooks-B179G474.js} +7 -7
- package/chunk/{hooks-DLtMDttz.js.map → hooks-B179G474.js.map} +1 -1
- package/chunk/{hooks-DLtMDttz.js → hooks-D2tFSceS.js} +7 -7
- package/chunk/{hooks-PN48cX8E.js.map → hooks-D2tFSceS.js.map} +1 -1
- package/chunk/hr-CL1lHDbu.js +4 -4
- package/chunk/hu-Cf5Uq9R_.js +4 -4
- package/chunk/id-ay9yilKx.js +4 -4
- package/chunk/{intl-TN1Dianl.js → intl-Ft_65Lzo.js} +5 -5
- package/chunk/intl-Ft_65Lzo.js.map +1 -0
- package/chunk/is-tpzRyIZi.js +4 -4
- package/chunk/it-C3-BupR4.js +4 -4
- package/chunk/iw-CBna3XPT.js +4 -4
- package/chunk/ja-DvXOkZRn.js +4 -4
- package/chunk/{jsx-runtime-QRCZ6ZTK.js → jsx-runtime-Bq9F3xvK.js} +5 -5
- package/chunk/{jsx-runtime-QRCZ6ZTK.js.map → jsx-runtime-Bq9F3xvK.js.map} +1 -1
- package/chunk/{jsx-runtime-lVLuHIkM.js → jsx-runtime-DOqJBLjd.js} +5 -5
- package/chunk/{jsx-runtime-lVLuHIkM.js.map → jsx-runtime-DOqJBLjd.js.map} +1 -1
- package/chunk/kk-DGXgY6Uw.js +4 -4
- package/chunk/ko-BlUGwGxN.js +4 -4
- package/chunk/lo-DT6wxwS1.js +4 -4
- package/chunk/lt-CT5-H4ci.js +4 -4
- package/chunk/lv-CBMD1XRp.js +4 -4
- package/chunk/{militaryStepHelpers-W31scSUE.js → militaryStepHelpers-CJ4smMQ2.js} +5 -5
- package/chunk/{militaryStepHelpers-CF0fNRKQ.js.map → militaryStepHelpers-CJ4smMQ2.js.map} +1 -1
- package/chunk/{militaryStepHelpers-CF0fNRKQ.js → militaryStepHelpers-tnlMV7Ug.js} +5 -5
- package/chunk/{militaryStepHelpers-W31scSUE.js.map → militaryStepHelpers-tnlMV7Ug.js.map} +1 -1
- package/chunk/{mocks-l2e0aaeT.js → mocks-C1va3xs9.js} +6 -6
- package/chunk/{mocks-BN2OnOjp.js.map → mocks-C1va3xs9.js.map} +1 -1
- package/chunk/{mocks-BN2OnOjp.js → mocks-CoMRz_O2.js} +6 -6
- package/chunk/{mocks-l2e0aaeT.js.map → mocks-CoMRz_O2.js.map} +1 -1
- package/chunk/ms-DuxNeOgk.js +4 -4
- package/chunk/nl-BE-D028qM7-.js +4 -4
- package/chunk/nl-DEuaat_s.js +4 -4
- package/chunk/no-CjeRjD1D.js +4 -4
- package/chunk/{options-BK6Zk2Oe.js → options-Co1RW3vc.js} +5 -5
- package/chunk/options-Co1RW3vc.js.map +1 -0
- package/chunk/pl-X0qJw7IS.js +4 -4
- package/chunk/{programThemeGetters-DECHMs91.js → programThemeGetters-D2JwF5p-.js} +5 -5
- package/chunk/{programThemeGetters-4Wf-YSPx.js.map → programThemeGetters-D2JwF5p-.js.map} +1 -1
- package/chunk/{programThemeGetters-4Wf-YSPx.js → programThemeGetters-De_Bowzi.js} +5 -5
- package/chunk/{programThemeGetters-DECHMs91.js.map → programThemeGetters-De_Bowzi.js.map} +1 -1
- package/chunk/pt-BR-C6XmLn3o.js +4 -4
- package/chunk/pt-o7v4iOVx.js +4 -4
- package/chunk/{refs-6KTRrw-F.js → refs-BgqdAkVI.js} +5 -5
- package/chunk/{refs-6KTRrw-F.js.map → refs-BgqdAkVI.js.map} +1 -1
- package/chunk/{refs-B8CaE8yL.js → refs-Cz53Qfgi.js} +5 -5
- package/chunk/{refs-B8CaE8yL.js.map → refs-Cz53Qfgi.js.map} +1 -1
- package/chunk/ro-C74ZR3HS.js +4 -4
- package/chunk/ru-BA9P3RVu.js +4 -4
- package/chunk/sk-DmyizV49.js +4 -4
- package/chunk/sl-Cxm3YoWE.js +4 -4
- package/chunk/sr-gOtgEOlP.js +4 -4
- package/chunk/{stepComponentHelpers-DeWac6nj.js → stepComponentHelpers-2Sq02uha.js} +18 -18
- package/chunk/{stepComponentHelpers-Darhp1Nn.js.map → stepComponentHelpers-2Sq02uha.js.map} +1 -1
- package/chunk/{stepComponentHelpers-Darhp1Nn.js → stepComponentHelpers-uJDQGcgs.js} +18 -18
- package/chunk/{stepComponentHelpers-DeWac6nj.js.map → stepComponentHelpers-uJDQGcgs.js.map} +1 -1
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DnCUWo1-.js +4 -4
- package/chunk/sw-BY7XXvUU.js +4 -4
- package/chunk/ta-CVL0b6Hh.js +4 -4
- package/chunk/th-CyU0RW3x.js +4 -4
- package/chunk/tl-BfgQ0irB.js +4 -4
- package/chunk/tr-BPg_L4bY.js +4 -4
- package/chunk/uk-CNaioa7V.js +4 -4
- package/chunk/ur-Ht1Mcpm0.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-C63IlRvv.js → useCollectFieldsEndpoint-BU9xoRkC.js} +8 -8
- package/chunk/{useCollectFieldsEndpoint-C63IlRvv.js.map → useCollectFieldsEndpoint-BU9xoRkC.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-bttd-mOP.js → useCollectFieldsEndpoint-EgQ_hVpj.js} +8 -8
- package/chunk/{useCollectFieldsEndpoint-bttd-mOP.js.map → useCollectFieldsEndpoint-EgQ_hVpj.js.map} +1 -1
- package/chunk/{useMetrics-CiB8jnkE.js → useMetrics-DBzqwN2m.js} +7 -7
- package/chunk/{useMetrics-iqbs0R1u.js.map → useMetrics-DBzqwN2m.js.map} +1 -1
- package/chunk/{useMetrics-iqbs0R1u.js → useMetrics-saY5Oa2a.js} +7 -7
- package/chunk/{useMetrics-CiB8jnkE.js.map → useMetrics-saY5Oa2a.js.map} +1 -1
- package/chunk/vi-sI1BYLXG.js +4 -4
- package/chunk/zh-DNG4VB8r.js +4 -4
- package/chunk/zh-HK-5Y3ROXEm.js +4 -4
- package/chunk/zu-DNMG8Idu.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +5 -5
- package/sheerid-install.js.map +1 -1
- package/sheerid.css +4 -4
- package/sheerid.js +44 -44
- package/chunk/CaptchaComponent-CoUrV-PT.js.map +0 -1
- package/chunk/CaptchaComponent-D57Ffe6H.js.map +0 -1
- package/chunk/CountryComponentWrapper-C1CD8ZAg.js +0 -74
- package/chunk/CountryComponentWrapper-C1CD8ZAg.js.map +0 -1
- package/chunk/CountryComponentWrapper-DeOnkeWj.js +0 -78
- package/chunk/CountryComponentWrapper-DeOnkeWj.js.map +0 -1
- package/chunk/FormFieldLayout-BPBIL09f.js.map +0 -1
- package/chunk/FormFieldLayout-CuxYu2-h.js.map +0 -1
- package/chunk/FormSelectChoice-eq9jx2Ul.js.map +0 -1
- package/chunk/FormSelectChoice-ktUJwtNJ.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-Ciey9jqp.js +0 -9
- package/chunk/StepCollectPersonalInfo-DCuE4DCp.js +0 -358
- package/chunk/StepOverrideComponent-BfutBYKU.js.map +0 -1
- package/chunk/StepOverrideComponent-BqQF_3dO.js.map +0 -1
- package/chunk/countryUtils-Bg9KdIbF.js +0 -12
- package/chunk/intl-TN1Dianl.js.map +0 -1
- package/chunk/options-BK6Zk2Oe.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepInactiveMilitaryPersonalInfoComponent-E7wXl5fr.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepInactiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n InactiveMilitaryPersonalInfoViewModel,\n InactiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n CollectFieldsResponse,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { getOptions } from \"../../options/options\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { getFieldsToCollect } from \"../../lib/ServerApi/VerificationApiUtils\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepInactiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepInactiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepInactiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as InactiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as InactiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const [optionalFields, setOptionalFields] = React.useState([]);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateInactiveMilitaryViewModel = (\n key: keyof InactiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n React.useEffect(() => {\n (async () => {\n if (\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo &&\n viewModel.countryChoice?.value === \"US\"\n ) {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getFieldsToCollect(\n verificationResponse.verificationId,\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo,\n viewModel,\n );\n\n setOptionalFields(collectFieldsResponse?.fieldsToCollect?.optional?.map((f) => f.key));\n } catch (error) {\n logger.error(\n `Failed to determine fields to collect: ${error}`,\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo,\n );\n }\n }\n })();\n }, [verificationService.verificationResponse.currentStep, viewModel.countryChoice]);\n\n React.useEffect(() => {\n if (viewModel.countryChoice?.value !== \"US\") {\n setOptionalFields([]);\n }\n }, [viewModel.countryChoice]);\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"inactive-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateInactiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as InactiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as InactiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\n\n <DischargeDate\n mode={\n !!verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {optionalFields.includes(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateInactiveMilitaryViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {optionalFields.includes(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateInactiveMilitaryViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {optionalFields.includes(\"state\") && (\n <StateSelectComponent\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateInactiveMilitaryViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {optionalFields.includes(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectInactiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepInactiveMilitaryPersonalInfoComponent = injectIntl(\n StepInactiveMilitaryPersonalInfo,\n);\nexport default StepInactiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;4CAmEa,KAAoC,EAC/C,SACA,6BACoD;CACpD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,CAAC,GAAgB,KAAA,EAA2B,SAAS,CAAC,CAAC,GACvD,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAuDA,QA1CG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAdH;EACvB,IAAM,IAAY,EAAQ,SAAiB,CAAC,CAAC;EAE7C,AADA,EAAO,KAAK,6CAA6C,GACzD,EAAoB,WAClB,EAAsB,uBACtB,GACA,EAAoB,gCAAgC,EAAoB,oBAC1E;CACF,GAQa,GAGb,EAAM,gBA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ACA,GACA,CACF;IACF;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA4C,EACvD,CACF"}
|
|
1
|
+
{"version":3,"file":"StepInactiveMilitaryPersonalInfoComponent-DD3ijaER.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepInactiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n InactiveMilitaryPersonalInfoViewModel,\n InactiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n CollectFieldsResponse,\n State,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { getOptions } from \"../../options/options\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { getFieldsToCollect } from \"../../lib/ServerApi/VerificationApiUtils\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepInactiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepInactiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepInactiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as InactiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as InactiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const [optionalFields, setOptionalFields] = React.useState([]);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateInactiveMilitaryViewModel = (\n key: keyof InactiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n React.useEffect(() => {\n (async () => {\n if (\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo &&\n viewModel.countryChoice?.value === \"US\"\n ) {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getFieldsToCollect(\n verificationResponse.verificationId,\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo,\n viewModel,\n );\n\n setOptionalFields(collectFieldsResponse?.fieldsToCollect?.optional?.map((f) => f.key));\n } catch (error) {\n logger.error(\n `Failed to determine fields to collect: ${error}`,\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo,\n );\n }\n }\n })();\n }, [verificationService.verificationResponse.currentStep, viewModel.countryChoice]);\n\n React.useEffect(() => {\n if (viewModel.countryChoice?.value !== \"US\") {\n setOptionalFields([]);\n }\n }, [viewModel.countryChoice]);\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"inactive-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateInactiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as InactiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as InactiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\n\n <DischargeDate\n mode={\n !!verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {optionalFields.includes(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateInactiveMilitaryViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {optionalFields.includes(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateInactiveMilitaryViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {optionalFields.includes(\"state\") && (\n <StateSelectComponent\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateInactiveMilitaryViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {optionalFields.includes(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateInactiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectInactiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepInactiveMilitaryPersonalInfoComponent = injectIntl(\n StepInactiveMilitaryPersonalInfo,\n);\nexport default StepInactiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;4CAmEa,KAAoC,EAC/C,SACA,6BACoD;CACpD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,CAAC,GAAgB,KAAA,EAA2B,SAAS,CAAC,CAAC,GACvD,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAuDA,QA1CG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAdH;EACvB,IAAM,IAAY,EAAQ,SAAiB,CAAC,CAAC;EAE7C,AADA,EAAO,KAAK,6CAA6C,GACzD,EAAoB,WAClB,EAAsB,uBACtB,GACA,EAAoB,gCAAgC,EAAoB,oBAC1E;CACF,GAQa,GAGb,EAAM,gBAAgB;EACpB,CAAC,YAAY;GACX,IACE,EAAoB,qBAAqB,gBACvC,EAAsB,uCACxB,EAAU,eAAe,UAAU,MAEnC,IAAI;IAOF,GAAkB,MANyC,EACzD,EAAqB,gBACrB,EAAsB,qCACtB,CACF,IAEyC,iBAAiB,UAAU,KAAK,MAAM,EAAE,GAAG,CAAC;GACvF,SAAS,GAAO;IACd,EAAO,MACL,0CAA0C,KAC1C,EAAsB,mCACxB;GACF;EAEJ,GAAG;CACL,GAAG,CAAC,EAAoB,qBAAqB,aAAa,EAAU,aAAa,CAAC,GAElF,EAAM,gBAAgB;EACpB,AAAI,EAAU,eAAe,UAAU,QACrC,EAAkB,CAAC,CAAC;CAEx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ACvD,CACF"}
|
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Aug
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.276.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1787688588835
|
|
9
|
+
* BUILD_DATE: Tue Aug 25 2026 20:09:48 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 2d25c43e9725e6fd856b82b1bdf08408dfb6a86b
|
|
11
11
|
*/
|
|
12
|
-
import { Lt as e, p as t, s as n } from "./intl-
|
|
13
|
-
import { a as r, n as i, t as a } from "./jsx-runtime-
|
|
14
|
-
import { O as o } from "./FormFooterComponent-
|
|
12
|
+
import { Lt as e, p as t, s as n } from "./intl-Ft_65Lzo.js";
|
|
13
|
+
import { a as r, n as i, t as a } from "./jsx-runtime-Bq9F3xvK.js";
|
|
14
|
+
import { O as o } from "./FormFooterComponent-BuRQRQFI.js";
|
|
15
15
|
import { t as s } from "../_mysheerid-preview.js";
|
|
16
|
-
import { C as c,
|
|
17
|
-
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-
|
|
18
|
-
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-
|
|
19
|
-
import { t as b } from "./BirthDateComponent-
|
|
20
|
-
import { t as x } from "./PostalCodeComponent-
|
|
21
|
-
import { t as S } from "./CountryComponentWrapper-
|
|
22
|
-
import { t as C } from "./ExtraMessage-
|
|
23
|
-
import { t as w } from "./ChangeLocaleComponent-
|
|
24
|
-
import { t as T } from "./PersonalInfoStepWrapper-
|
|
25
|
-
import { t as E } from "./StatusComponent-
|
|
26
|
-
import { t as D } from "./LicensedProfessionalOrganizationComponent-
|
|
16
|
+
import { C as c, S as l, m as u, u as d } from "./stepComponentHelpers-2Sq02uha.js";
|
|
17
|
+
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-CoajXhka.js";
|
|
18
|
+
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-DvMU95pj.js";
|
|
19
|
+
import { t as b } from "./BirthDateComponent-BYO6Kfgc.js";
|
|
20
|
+
import { t as x } from "./PostalCodeComponent-BF8Fplpm.js";
|
|
21
|
+
import { t as S } from "./CountryComponentWrapper-C45AFJGi.js";
|
|
22
|
+
import { t as C } from "./ExtraMessage-CIU0SFFU.js";
|
|
23
|
+
import { t as w } from "./ChangeLocaleComponent-Z-taCJ6R.js";
|
|
24
|
+
import { t as T } from "./PersonalInfoStepWrapper-C-DG20qY.js";
|
|
25
|
+
import { t as E } from "./StatusComponent-DUPrDBFL.js";
|
|
26
|
+
import { t as D } from "./LicensedProfessionalOrganizationComponent-CP_MLvtk.js";
|
|
27
27
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
28
28
|
var O = a(), k = {
|
|
29
29
|
LICENSED_COSMETOLOGIST: "Licensed Cosmetologist",
|
|
@@ -56,7 +56,7 @@ var O = a(), k = {
|
|
|
56
56
|
/* @__PURE__ */ (0, O.jsx)(w, { verificationService: a }),
|
|
57
57
|
/* @__PURE__ */ (0, O.jsx)(S, {
|
|
58
58
|
verificationService: a,
|
|
59
|
-
disabled:
|
|
59
|
+
disabled: d("country")?.disabled
|
|
60
60
|
}),
|
|
61
61
|
/* @__PURE__ */ (0, O.jsx)(E, {
|
|
62
62
|
segmentId: "licensed-professional",
|
|
@@ -73,35 +73,35 @@ var O = a(), k = {
|
|
|
73
73
|
});
|
|
74
74
|
return t;
|
|
75
75
|
})(),
|
|
76
|
-
disabled:
|
|
76
|
+
disabled: d("statuses")?.disabled,
|
|
77
77
|
onChange: (e) => {
|
|
78
|
-
I("statuses", e ? [e.value] : []),
|
|
78
|
+
I("statuses", e ? [e.value] : []), l("statuses", e ? e.value : "", a);
|
|
79
79
|
}
|
|
80
80
|
}),
|
|
81
81
|
/* @__PURE__ */ (0, O.jsx)(D, {
|
|
82
82
|
isErrored: !!j.organization,
|
|
83
83
|
onChange: (e) => {
|
|
84
|
-
|
|
84
|
+
c(e, a), l("organization", e, a);
|
|
85
85
|
},
|
|
86
86
|
value: a.viewModel.organization,
|
|
87
87
|
verificationService: a,
|
|
88
|
-
disabled:
|
|
88
|
+
disabled: d("organization")?.disabled
|
|
89
89
|
}),
|
|
90
90
|
/* @__PURE__ */ (0, O.jsxs)("div", {
|
|
91
91
|
className: "sid-names",
|
|
92
92
|
children: [/* @__PURE__ */ (0, O.jsx)(f, {
|
|
93
93
|
value: A.firstName,
|
|
94
94
|
isErrored: !!j.firstName,
|
|
95
|
-
disabled:
|
|
95
|
+
disabled: d("firstName")?.disabled,
|
|
96
96
|
onChange: (e) => {
|
|
97
|
-
I("firstName", e),
|
|
97
|
+
I("firstName", e), l("firstName", e, a);
|
|
98
98
|
}
|
|
99
99
|
}), /* @__PURE__ */ (0, O.jsx)(p, {
|
|
100
100
|
value: A.lastName,
|
|
101
101
|
isErrored: !!j.lastName,
|
|
102
|
-
disabled:
|
|
102
|
+
disabled: d("lastName")?.disabled,
|
|
103
103
|
onChange: (e) => {
|
|
104
|
-
I("lastName", e),
|
|
104
|
+
I("lastName", e), l("lastName", e, a);
|
|
105
105
|
}
|
|
106
106
|
})]
|
|
107
107
|
}),
|
|
@@ -109,18 +109,18 @@ var O = a(), k = {
|
|
|
109
109
|
errorId: j.birthDate,
|
|
110
110
|
locale: P,
|
|
111
111
|
onChange: (e) => {
|
|
112
|
-
I("birthDate", e),
|
|
112
|
+
I("birthDate", e), l("birthDate", e, a);
|
|
113
113
|
},
|
|
114
114
|
value: A.birthDate,
|
|
115
|
-
disabled:
|
|
115
|
+
disabled: d("birthDate")?.disabled
|
|
116
116
|
}),
|
|
117
117
|
/* @__PURE__ */ (0, O.jsx)(x, {
|
|
118
118
|
isErrored: !!j.postalCode,
|
|
119
119
|
onChange: (e) => {
|
|
120
|
-
I("postalCode", e),
|
|
120
|
+
I("postalCode", e), l("postalCode", e, a);
|
|
121
121
|
},
|
|
122
122
|
value: A.postalCode,
|
|
123
|
-
disabled:
|
|
123
|
+
disabled: d("postalCode")?.disabled,
|
|
124
124
|
explanation: /* @__PURE__ */ (0, O.jsx)(i, {
|
|
125
125
|
id: "postalCodeExplanation",
|
|
126
126
|
defaultMessage: "Use the location on file with your licensing body"
|
|
@@ -134,20 +134,20 @@ var O = a(), k = {
|
|
|
134
134
|
defaultMessage: "Needed to send you your unique code"
|
|
135
135
|
}),
|
|
136
136
|
onChange: (e) => {
|
|
137
|
-
I("email", e),
|
|
137
|
+
I("email", e), l("email", e, a);
|
|
138
138
|
},
|
|
139
|
-
onKeyDown: (e) =>
|
|
140
|
-
disabled:
|
|
139
|
+
onKeyDown: (e) => u(e),
|
|
140
|
+
disabled: d("email")?.disabled
|
|
141
141
|
}),
|
|
142
142
|
a.programTheme.isSmsNotifierConfigured || a.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, O.jsx)(h, {
|
|
143
143
|
isRequired: !!a.programTheme.smsLoopEnabled,
|
|
144
144
|
value: A.phoneNumber,
|
|
145
145
|
isErrored: !!j.phoneNumber,
|
|
146
146
|
onChange: (e) => {
|
|
147
|
-
I("phoneNumber", e),
|
|
147
|
+
I("phoneNumber", e), l("phoneNumber", e, a);
|
|
148
148
|
},
|
|
149
149
|
selectedCountryCode: A.countryChoice && A.countryChoice.value,
|
|
150
|
-
disabled:
|
|
150
|
+
disabled: d("phoneNumber")?.disabled
|
|
151
151
|
}) : null,
|
|
152
152
|
F.customFormFields.map((e) => /* @__PURE__ */ (0, O.jsx)(m, {
|
|
153
153
|
config: e,
|
|
@@ -160,10 +160,10 @@ var O = a(), k = {
|
|
|
160
160
|
I("metadata", {
|
|
161
161
|
...a.viewModel.metadata,
|
|
162
162
|
marketConsentValue: e
|
|
163
|
-
}),
|
|
163
|
+
}), l("marketConsentValue", e, a);
|
|
164
164
|
},
|
|
165
165
|
viewModel: A,
|
|
166
|
-
disabled:
|
|
166
|
+
disabled: d("marketConsentValue")?.disabled
|
|
167
167
|
}),
|
|
168
168
|
/* @__PURE__ */ (0, O.jsx)(C, {
|
|
169
169
|
verificationService: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-7qvdOCxP.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type LicensedProfessionalStatus,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LicensedProfessionalStatus]: string;\n};\n\nconst defaultStatusMessages: DefaultStatusMessages = {\n LICENSED_COSMETOLOGIST: \"Licensed Cosmetologist\",\n LICENSED_REAL_ESTATE_AGENT: \"Licensed Real Estate Agent\",\n VETERINARIAN: \"Veterinarian\",\n CHILD_CARE_WORKER: \"Child Care Worker\",\n LIBRARIAN: \"Librarian\",\n INTERIOR_DESIGNER: \"Interior Designer\",\n ARCHITECT: \"Architect\",\n GENERAL_CONTRACTOR: \"General Contractor\",\n NUTRITION_PROFESSIONAL: \"Nutrition Professional\",\n};\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const getStatusLabel = (status: LicensedProfessionalStatus | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({ id: status, defaultMessage: defaultStatusMessages[status] });\n };\n\n const getAvailableLicensedProfessionalStatuses = () => {\n const availableStatusesResponse = verificationResponse.availableStatuses;\n const availableStatuses: FormSelectChoice[] = [];\n\n if (availableStatusesResponse) {\n for (const status of availableStatusesResponse) {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(status),\n });\n }\n }\n return availableStatuses;\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getAvailableLicensedProfessionalStatuses()}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoCom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AoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-BoMh77dS.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type LicensedProfessionalStatus,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LicensedProfessionalStatus]: string;\n};\n\nconst defaultStatusMessages: DefaultStatusMessages = {\n LICENSED_COSMETOLOGIST: \"Licensed Cosmetologist\",\n LICENSED_REAL_ESTATE_AGENT: \"Licensed Real Estate Agent\",\n VETERINARIAN: \"Veterinarian\",\n CHILD_CARE_WORKER: \"Child Care Worker\",\n LIBRARIAN: \"Librarian\",\n INTERIOR_DESIGNER: \"Interior Designer\",\n ARCHITECT: \"Architect\",\n GENERAL_CONTRACTOR: \"General Contractor\",\n NUTRITION_PROFESSIONAL: \"Nutrition Professional\",\n};\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const getStatusLabel = (status: LicensedProfessionalStatus | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({ id: status, defaultMessage: defaultStatusMessages[status] });\n };\n\n const getAvailableLicensedProfessionalStatuses = () => {\n const availableStatusesResponse = verificationResponse.availableStatuses;\n const availableStatuses: FormSelectChoice[] = [];\n\n if (availableStatusesResponse) {\n for (const status of availableStatusesResponse) {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(status),\n });\n }\n }\n return availableStatuses;\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getAvailableLicensedProfessionalStatuses()}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;aAgDM,IAA+C;CACnD,wBAAwB;CACxB,4BAA4B;CAC5B,cAAc;CACd,mBAAmB;CACnB,WAAW;CACX,mBAAmB;CACnB,WAAW;CACX,oBAAoB;CACpB,wBAAwB;AAC1B,GAuNa,IAAgD,GArNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,KAAkB,MACjB,IAGE,EAAK,kBAAkB;EAAE,IAAI;EAAQ,gBAAgB,EAAsB;CAAQ,CAAC,IAFlF;CAoBX,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO;KACL,OAAO,EAAU,WAAW,EAAU,SAAS,KAAK;KACpD,OAAO,EAAU,WAAW,EAAe,EAAU,SAAS,EAAE,IAAI;IACtE;IACA,WAAW,CAAC,CAAC,EAAsB;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AKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Aug
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.276.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1787688581348
|
|
5
|
+
* BUILD_DATE: Tue Aug 25 2026 20:09:41 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 2d25c43e9725e6fd856b82b1bdf08408dfb6a86b
|
|
7
7
|
*/
|
|
8
|
-
import { c as e, n as t, zt as n } from "./options-
|
|
9
|
-
import { a as r, n as i, t as a } from "./jsx-runtime-
|
|
10
|
-
import { w as o } from "./FormFooterComponent-
|
|
8
|
+
import { c as e, n as t, zt as n } from "./options-Co1RW3vc.js";
|
|
9
|
+
import { a as r, n as i, t as a } from "./jsx-runtime-DOqJBLjd.js";
|
|
10
|
+
import { w as o } from "./FormFooterComponent-BEDJQK_Z.js";
|
|
11
11
|
import { n as s } from "../sheerid.js";
|
|
12
|
-
import { C as c,
|
|
13
|
-
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-
|
|
14
|
-
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-
|
|
15
|
-
import { t as b } from "./BirthDateComponent-
|
|
16
|
-
import { t as x } from "./PostalCodeComponent-
|
|
17
|
-
import { t as S } from "./CountryComponentWrapper-
|
|
18
|
-
import { t as C } from "./ExtraMessage-
|
|
19
|
-
import { t as w } from "./ChangeLocaleComponent-
|
|
20
|
-
import { t as T } from "./PersonalInfoStepWrapper-
|
|
21
|
-
import { t as E } from "./StatusComponent-
|
|
22
|
-
import { t as D } from "./LicensedProfessionalOrganizationComponent-
|
|
12
|
+
import { C as c, S as l, m as u, u as d } from "./stepComponentHelpers-uJDQGcgs.js";
|
|
13
|
+
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-DnyafWoN.js";
|
|
14
|
+
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-_wFfZCyV.js";
|
|
15
|
+
import { t as b } from "./BirthDateComponent-2CJqlbNU.js";
|
|
16
|
+
import { t as x } from "./PostalCodeComponent-Cn7FPVh2.js";
|
|
17
|
+
import { t as S } from "./CountryComponentWrapper-CsMhIsMa.js";
|
|
18
|
+
import { t as C } from "./ExtraMessage-f9Om84tg.js";
|
|
19
|
+
import { t as w } from "./ChangeLocaleComponent-C4jVlT7w.js";
|
|
20
|
+
import { t as T } from "./PersonalInfoStepWrapper-BCe97Fbw.js";
|
|
21
|
+
import { t as E } from "./StatusComponent-C--lHDG1.js";
|
|
22
|
+
import { t as D } from "./LicensedProfessionalOrganizationComponent-Dwbseq8o.js";
|
|
23
23
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
24
24
|
var O = a(), k = {
|
|
25
25
|
LICENSED_COSMETOLOGIST: "Licensed Cosmetologist",
|
|
@@ -52,7 +52,7 @@ var O = a(), k = {
|
|
|
52
52
|
/* @__PURE__ */ (0, O.jsx)(w, { verificationService: a }),
|
|
53
53
|
/* @__PURE__ */ (0, O.jsx)(S, {
|
|
54
54
|
verificationService: a,
|
|
55
|
-
disabled:
|
|
55
|
+
disabled: d("country")?.disabled
|
|
56
56
|
}),
|
|
57
57
|
/* @__PURE__ */ (0, O.jsx)(E, {
|
|
58
58
|
segmentId: "licensed-professional",
|
|
@@ -69,35 +69,35 @@ var O = a(), k = {
|
|
|
69
69
|
});
|
|
70
70
|
return t;
|
|
71
71
|
})(),
|
|
72
|
-
disabled:
|
|
72
|
+
disabled: d("statuses")?.disabled,
|
|
73
73
|
onChange: (e) => {
|
|
74
|
-
I("statuses", e ? [e.value] : []),
|
|
74
|
+
I("statuses", e ? [e.value] : []), l("statuses", e ? e.value : "", a);
|
|
75
75
|
}
|
|
76
76
|
}),
|
|
77
77
|
/* @__PURE__ */ (0, O.jsx)(D, {
|
|
78
78
|
isErrored: !!j.organization,
|
|
79
79
|
onChange: (e) => {
|
|
80
|
-
|
|
80
|
+
c(e, a), l("organization", e, a);
|
|
81
81
|
},
|
|
82
82
|
value: a.viewModel.organization,
|
|
83
83
|
verificationService: a,
|
|
84
|
-
disabled:
|
|
84
|
+
disabled: d("organization")?.disabled
|
|
85
85
|
}),
|
|
86
86
|
/* @__PURE__ */ (0, O.jsxs)("div", {
|
|
87
87
|
className: "sid-names",
|
|
88
88
|
children: [/* @__PURE__ */ (0, O.jsx)(f, {
|
|
89
89
|
value: A.firstName,
|
|
90
90
|
isErrored: !!j.firstName,
|
|
91
|
-
disabled:
|
|
91
|
+
disabled: d("firstName")?.disabled,
|
|
92
92
|
onChange: (e) => {
|
|
93
|
-
I("firstName", e),
|
|
93
|
+
I("firstName", e), l("firstName", e, a);
|
|
94
94
|
}
|
|
95
95
|
}), /* @__PURE__ */ (0, O.jsx)(p, {
|
|
96
96
|
value: A.lastName,
|
|
97
97
|
isErrored: !!j.lastName,
|
|
98
|
-
disabled:
|
|
98
|
+
disabled: d("lastName")?.disabled,
|
|
99
99
|
onChange: (e) => {
|
|
100
|
-
I("lastName", e),
|
|
100
|
+
I("lastName", e), l("lastName", e, a);
|
|
101
101
|
}
|
|
102
102
|
})]
|
|
103
103
|
}),
|
|
@@ -105,18 +105,18 @@ var O = a(), k = {
|
|
|
105
105
|
errorId: j.birthDate,
|
|
106
106
|
locale: P,
|
|
107
107
|
onChange: (e) => {
|
|
108
|
-
I("birthDate", e),
|
|
108
|
+
I("birthDate", e), l("birthDate", e, a);
|
|
109
109
|
},
|
|
110
110
|
value: A.birthDate,
|
|
111
|
-
disabled:
|
|
111
|
+
disabled: d("birthDate")?.disabled
|
|
112
112
|
}),
|
|
113
113
|
/* @__PURE__ */ (0, O.jsx)(x, {
|
|
114
114
|
isErrored: !!j.postalCode,
|
|
115
115
|
onChange: (e) => {
|
|
116
|
-
I("postalCode", e),
|
|
116
|
+
I("postalCode", e), l("postalCode", e, a);
|
|
117
117
|
},
|
|
118
118
|
value: A.postalCode,
|
|
119
|
-
disabled:
|
|
119
|
+
disabled: d("postalCode")?.disabled,
|
|
120
120
|
explanation: /* @__PURE__ */ (0, O.jsx)(i, {
|
|
121
121
|
id: "postalCodeExplanation",
|
|
122
122
|
defaultMessage: "Use the location on file with your licensing body"
|
|
@@ -130,20 +130,20 @@ var O = a(), k = {
|
|
|
130
130
|
defaultMessage: "Needed to send you your unique code"
|
|
131
131
|
}),
|
|
132
132
|
onChange: (e) => {
|
|
133
|
-
I("email", e),
|
|
133
|
+
I("email", e), l("email", e, a);
|
|
134
134
|
},
|
|
135
|
-
onKeyDown: (e) =>
|
|
136
|
-
disabled:
|
|
135
|
+
onKeyDown: (e) => u(e),
|
|
136
|
+
disabled: d("email")?.disabled
|
|
137
137
|
}),
|
|
138
138
|
a.programTheme.isSmsNotifierConfigured || a.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, O.jsx)(h, {
|
|
139
139
|
isRequired: !!a.programTheme.smsLoopEnabled,
|
|
140
140
|
value: A.phoneNumber,
|
|
141
141
|
isErrored: !!j.phoneNumber,
|
|
142
142
|
onChange: (e) => {
|
|
143
|
-
I("phoneNumber", e),
|
|
143
|
+
I("phoneNumber", e), l("phoneNumber", e, a);
|
|
144
144
|
},
|
|
145
145
|
selectedCountryCode: A.countryChoice && A.countryChoice.value,
|
|
146
|
-
disabled:
|
|
146
|
+
disabled: d("phoneNumber")?.disabled
|
|
147
147
|
}) : null,
|
|
148
148
|
F.customFormFields.map((e) => /* @__PURE__ */ (0, O.jsx)(m, {
|
|
149
149
|
config: e,
|
|
@@ -156,10 +156,10 @@ var O = a(), k = {
|
|
|
156
156
|
I("metadata", {
|
|
157
157
|
...a.viewModel.metadata,
|
|
158
158
|
marketConsentValue: e
|
|
159
|
-
}),
|
|
159
|
+
}), l("marketConsentValue", e, a);
|
|
160
160
|
},
|
|
161
161
|
viewModel: A,
|
|
162
|
-
disabled:
|
|
162
|
+
disabled: d("marketConsentValue")?.disabled
|
|
163
163
|
}),
|
|
164
164
|
/* @__PURE__ */ (0, O.jsx)(C, {
|
|
165
165
|
verificationService: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-BPO41u3Q.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type LicensedProfessionalStatus,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LicensedProfessionalStatus]: string;\n};\n\nconst defaultStatusMessages: DefaultStatusMessages = {\n LICENSED_COSMETOLOGIST: \"Licensed Cosmetologist\",\n LICENSED_REAL_ESTATE_AGENT: \"Licensed Real Estate Agent\",\n VETERINARIAN: \"Veterinarian\",\n CHILD_CARE_WORKER: \"Child Care Worker\",\n LIBRARIAN: \"Librarian\",\n INTERIOR_DESIGNER: \"Interior Designer\",\n ARCHITECT: \"Architect\",\n GENERAL_CONTRACTOR: \"General Contractor\",\n NUTRITION_PROFESSIONAL: \"Nutrition Professional\",\n};\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const getStatusLabel = (status: LicensedProfessionalStatus | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({ id: status, defaultMessage: defaultStatusMessages[status] });\n };\n\n const getAvailableLicensedProfessionalStatuses = () => {\n const availableStatusesResponse = verificationResponse.availableStatuses;\n const availableStatuses: FormSelectChoice[] = [];\n\n if (availableStatusesResponse) {\n for (const status of availableStatusesResponse) {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(status),\n });\n }\n }\n return availableStatuses;\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getAvailableLicensedProfessionalStatuses()}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;aAgDM,IAA+C;CACnD,wBAAwB;CACxB,4BAA4B;CAC5B,cAAc;CACd,mBAAmB;CACnB,WAAW;CACX,mBAAmB;CACnB,WAAW;CACX,oBAAoB;CACpB,wBAAwB;AAC1B,GAuNa,IAAgD,GArNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,KAAkB,MACjB,IAGE,EAAK,kBAAkB;EAAE,IAAI;EAAQ,gBAAgB,EAAsB;CAAQ,CAAC,IAFlF;CAoBX,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CA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ACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-CJUnLQJn.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type LicensedProfessionalStatus,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LicensedProfessionalStatus]: string;\n};\n\nconst defaultStatusMessages: DefaultStatusMessages = {\n LICENSED_COSMETOLOGIST: \"Licensed Cosmetologist\",\n LICENSED_REAL_ESTATE_AGENT: \"Licensed Real Estate Agent\",\n VETERINARIAN: \"Veterinarian\",\n CHILD_CARE_WORKER: \"Child Care Worker\",\n LIBRARIAN: \"Librarian\",\n INTERIOR_DESIGNER: \"Interior Designer\",\n ARCHITECT: \"Architect\",\n GENERAL_CONTRACTOR: \"General Contractor\",\n NUTRITION_PROFESSIONAL: \"Nutrition Professional\",\n};\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const getStatusLabel = (status: LicensedProfessionalStatus | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({ id: status, defaultMessage: defaultStatusMessages[status] });\n };\n\n const getAvailableLicensedProfessionalStatuses = () => {\n const availableStatusesResponse = verificationResponse.availableStatuses;\n const availableStatuses: FormSelectChoice[] = [];\n\n if (availableStatusesResponse) {\n for (const status of availableStatusesResponse) {\n availableStatuses.push({\n value: status,\n label: getStatusLabel(status),\n });\n }\n }\n return availableStatuses;\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getAvailableLicensedProfessionalStatuses()}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;aAgDM,IAA+C;CACnD,wBAAwB;CACxB,4BAA4B;CAC5B,cAAc;CACd,mBAAmB;CACnB,WAAW;CACX,mBAAmB;CACnB,WAAW;CACX,oBAAoB;CACpB,wBAAwB;AAC1B,GAuNa,IAAgD,GArNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,KAAkB,MACjB,IAGE,EAAK,kBAAkB;EAAE,IAAI;EAAQ,gBAAgB,EAAsB;CAAQ,CAAC,IAFlF;CAoBX,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACr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