@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,74 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* VERSION: 2.274.0
|
|
4
|
-
* BUILD_TIMESTAMP: 1787094663644
|
|
5
|
-
* BUILD_DATE: Tue Aug 18 2026 23:11:03 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: f159388091b6a2928e80ee1b0cbd31d037de5a6c
|
|
7
|
-
*/
|
|
8
|
-
import { Jt as e, Wt as t, c as n, lt as r } from "./options-BK6Zk2Oe.js";
|
|
9
|
-
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-lVLuHIkM.js";
|
|
10
|
-
import { n as c } from "./empties-COfIPxJ5.js";
|
|
11
|
-
import { u as l } from "./hooks-PN48cX8E.js";
|
|
12
|
-
import { C as u, S as d, f, u as p, v as m } from "./stepComponentHelpers-Darhp1Nn.js";
|
|
13
|
-
import { t as h } from "./FormFieldInputSelect-Cio6GCQa.js";
|
|
14
|
-
//#region src/components/FormFields/Country/CountryComponent.tsx
|
|
15
|
-
var g = /* @__PURE__ */ e(a(), 1), _ = s(), v = i(({ value: e, isErrored: t, options: n, onChange: r, onKeyDown: i, intl: a, placeholder: s = "", isRequired: c = !0, suppressPlaceholder: l = !1, disabled: u = !1 }) => /* @__PURE__ */ (0, _.jsx)(h, {
|
|
16
|
-
fieldId: "country",
|
|
17
|
-
options: n,
|
|
18
|
-
onChange: (e) => r(e),
|
|
19
|
-
onKeyDown: i,
|
|
20
|
-
placeholder: s || a.formatHTMLMessage({
|
|
21
|
-
id: "countryPlaceholder",
|
|
22
|
-
defaultMessage: "Country"
|
|
23
|
-
}),
|
|
24
|
-
value: n.find((t) => t.value === (e && e.value)),
|
|
25
|
-
isRequired: c,
|
|
26
|
-
label: /* @__PURE__ */ (0, _.jsx)(o, {
|
|
27
|
-
id: "country",
|
|
28
|
-
defaultMessage: "Country"
|
|
29
|
-
}),
|
|
30
|
-
errorMessage: t && /* @__PURE__ */ (0, _.jsx)(o, {
|
|
31
|
-
id: "errorId.invalidCountry",
|
|
32
|
-
defaultMessage: "Invalid country"
|
|
33
|
-
}),
|
|
34
|
-
showPlaceholderAndHideLabel: !!s,
|
|
35
|
-
suppressPlaceholder: l,
|
|
36
|
-
disabled: u
|
|
37
|
-
})), y = i(({ verificationService: e, viewModelDraftDecorator: i = void 0, intl: a, viewModel: o = void 0, nextFocusField: s = void 0, disabled: h = !1 }) => {
|
|
38
|
-
o && t.warn("viewModel prop is deprecated, use verificationService.viewModel instead"), s && t.warn("nextFocusField prop is deprecated");
|
|
39
|
-
let y = r(() => o.localeChoice.value, "en-US"), b = f(e.programTheme, a, y), { fieldValidationErrors: x } = e, S = b.length > 1, C = p("country")?.hidden, w = (t) => {
|
|
40
|
-
let r = n(e.viewModel, (e) => {
|
|
41
|
-
e.countryChoice = t || void 0, e.country = t ? t.value : void 0, i && i(e, t), e.organization &&= c.organization;
|
|
42
|
-
});
|
|
43
|
-
e.updateViewModel(r);
|
|
44
|
-
};
|
|
45
|
-
return g.useEffect(() => {
|
|
46
|
-
let t = b.some((e) => e.value === "US");
|
|
47
|
-
if (!S && !t) {
|
|
48
|
-
let t = e.viewModel.fieldsToSkipValidation ? [...e.viewModel.fieldsToSkipValidation, "country"] : [
|
|
49
|
-
"country",
|
|
50
|
-
"address1",
|
|
51
|
-
"postalCode",
|
|
52
|
-
"state",
|
|
53
|
-
"city"
|
|
54
|
-
];
|
|
55
|
-
e.updateViewModel(m(e.viewModel, "fieldsToSkipValidation", t));
|
|
56
|
-
}
|
|
57
|
-
}, [S]), g.useEffect(() => {
|
|
58
|
-
d(n(e.fieldValidationErrors, (t) => {
|
|
59
|
-
t.country &&= l("country", e.viewModel.countryChoice, e.formValidationOptions), "postalCode" in e.viewModel && e.viewModel.postalCode && (t.postalCode = l("postalCode", e.viewModel.postalCode, e.formValidationOptions));
|
|
60
|
-
}), e);
|
|
61
|
-
}, [e.viewModel.countryChoice]), !S || C ? null : /* @__PURE__ */ (0, _.jsx)(v, {
|
|
62
|
-
isRequired: !0,
|
|
63
|
-
options: b,
|
|
64
|
-
value: e.viewModel.countryChoice,
|
|
65
|
-
isErrored: !!x.country,
|
|
66
|
-
disabled: h,
|
|
67
|
-
onChange: async (t) => {
|
|
68
|
-
let n = t ? t.value : void 0;
|
|
69
|
-
w(t), u("country", n, e);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
//#endregion
|
|
74
|
-
export { y as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CountryComponentWrapper-C1CD8ZAg.js","names":[],"sources":["../../src/components/FormFields/Country/CountryComponent.tsx","../../src/components/FormFields/Country/CountryComponentWrapper.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\n\nexport const Country = ({\n value,\n isErrored,\n options,\n onChange,\n onKeyDown,\n intl,\n placeholder = \"\",\n isRequired = true,\n suppressPlaceholder = false,\n disabled = false,\n}: InputSelectComponentProps) => {\n const inputId = \"country\";\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(country: FormSelectChoice) => onChange(country)}\n onKeyDown={onKeyDown}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"countryPlaceholder\", defaultMessage: \"Country\" })\n }\n value={options.find((option) => option.value === (value && value.value))}\n isRequired={isRequired}\n label={<FormattedHTMLMessage id=\"country\" defaultMessage=\"Country\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage id=\"errorId.invalidCountry\" defaultMessage=\"Invalid country\" />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n suppressPlaceholder={suppressPlaceholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CountryComponent = injectIntl(Country);\n","import React from \"react\";\nimport produce from \"immer\";\nimport { type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport {\n type VerificationService,\n type Country,\n type FormSelectChoice,\n type ViewModel,\n type ErrorId,\n type FieldId,\n type WithOrganization,\n} from \"../../../lib/types/types\";\nimport {\n getSortedCountryChoices,\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n updateFieldValidationErrors,\n getFieldConfigByFieldId,\n} from \"../../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { validateFieldById } from \"../../../lib/validators/validators\";\nimport { blankOrganization } from \"../../../lib/types/empties\";\n\nimport { CountryComponent } from \"./CountryComponent\";\n\ntype CountryComponentWrapperProps = {\n verificationService: VerificationService;\n intl: InjectedIntl;\n viewModelDraftDecorator?: (\n draft: ViewModel,\n countryChoice?: FormSelectChoice<Country, string>,\n ) => void;\n disabled?: boolean;\n};\n\ntype DeprecatedProps = {\n viewModel?: ViewModel; // deprecated, uses verificationService.viewModel instead\n nextFocusField?: string; // deprecated\n};\n\nconst BaseCountryComponentWrapper = ({\n verificationService,\n viewModelDraftDecorator = undefined,\n intl,\n viewModel = undefined,\n nextFocusField = undefined,\n disabled = false,\n}: CountryComponentWrapperProps & DeprecatedProps) => {\n if (viewModel) {\n logger.warn(\"viewModel prop is deprecated, use verificationService.viewModel instead\");\n }\n if (nextFocusField) {\n logger.warn(\"nextFocusField prop is deprecated\");\n }\n const locale = getSafe(() => viewModel.localeChoice.value, \"en-US\");\n const countryChoices: FormSelectChoice<Country, string>[] = getSortedCountryChoices(\n verificationService.programTheme,\n intl,\n locale,\n );\n const { fieldValidationErrors } = verificationService;\n const hasMultipleCountries = countryChoices.length > 1;\n const isFieldHidden = getFieldConfigByFieldId(\"country\")?.hidden;\n\n const updateCountryChoice = (countryChoice?: FormSelectChoice<Country, string>) => {\n const nextState: ViewModel = produce(\n verificationService.viewModel,\n (draft: ViewModel & WithOrganization) => {\n draft.countryChoice = countryChoice || undefined;\n\n // Adds backwards compatibility with Age and Employment programs\n (draft as any).country = countryChoice ? countryChoice.value : undefined;\n if (viewModelDraftDecorator) {\n viewModelDraftDecorator(draft, countryChoice);\n }\n\n // Reset to a blank org when changing the country choice\n if (draft.organization) {\n draft.organization = blankOrganization.organization;\n }\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const includesUS = countryChoices.some((choice) => choice.value === \"US\");\n if (!hasMultipleCountries && !includesUS) {\n const fieldsToSkip: FieldId[] = verificationService.viewModel.fieldsToSkipValidation\n ? [...verificationService.viewModel.fieldsToSkipValidation, \"country\"]\n : [\"country\", \"address1\", \"postalCode\", \"state\", \"city\"];\n verificationService.updateViewModel(\n produceDraftViewModel(\n verificationService.viewModel,\n \"fieldsToSkipValidation\",\n fieldsToSkip,\n ),\n );\n }\n }, [hasMultipleCountries]);\n\n React.useEffect(() => {\n const updatedFieldValidationErrors = produce(\n verificationService.fieldValidationErrors,\n (draft) => {\n if (draft.country) {\n draft.country = validateFieldById(\n \"country\",\n verificationService.viewModel.countryChoice,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n if (\n \"postalCode\" in verificationService.viewModel &&\n verificationService.viewModel.postalCode\n ) {\n draft.postalCode = validateFieldById(\n \"postalCode\",\n verificationService.viewModel.postalCode,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n },\n );\n updateFieldValidationErrors(updatedFieldValidationErrors, verificationService);\n }, [verificationService.viewModel.countryChoice]);\n\n if (!hasMultipleCountries || isFieldHidden) {\n return null;\n }\n\n return (\n <CountryComponent\n isRequired\n options={countryChoices}\n value={verificationService.viewModel.countryChoice}\n isErrored={Boolean(fieldValidationErrors.country)}\n disabled={disabled}\n onChange={async (countryChoice: FormSelectChoice<Country, string>) => {\n const countryValue = countryChoice ? countryChoice.value : undefined;\n updateCountryChoice(countryChoice);\n updateFieldValidationErrorsByFieldId(\"country\", countryValue, verificationService);\n }}\n />\n );\n};\n\nexport const CountryComponentWrapper = injectIntl(BaseCountryComponentWrapper);\n"],"mappings":";;;;;;;4CA2CA,IAAA,GAtCA,EAAA,UAAA,cAAA,YAAA,aAAA,cAAA,SAAA,iBAAA,IAAA,gBAAA,IAAA,yBAAA,IAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;EAsCA,GC2Ga,IAA0B,GA3GF,EACnC,wBACA,6BAA0B,KAAA,GAC1B,SACA,eAAY,KAAA,GACZ,oBAAiB,KAAA,GACjB,cAAW,SACyC;CAIpD,AAHI,KACF,EAAO,KAAK,yEAAyE,GAEnF,KACF,EAAO,KAAK,mCAAmC;CAEjD,IAAM,IAAS,QAAc,EAAU,aAAa,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e,IAAgB,EAAc,QAAQ,KAAA;GAE3D,AADA,EAAoB,CAAa,GACjC,EAAqC,WAAW,GAAc,CAAmB;EACnF;CACD,CAAA;AAEL,CAE6E"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* WARNING: This file is intended to be used within MySheerID.
|
|
4
|
-
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* VERSION: 2.274.0
|
|
8
|
-
* BUILD_TIMESTAMP: 1787094668046
|
|
9
|
-
* BUILD_DATE: Tue Aug 18 2026 23:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
-
* BUILD_COMMIT: f159388091b6a2928e80ee1b0cbd31d037de5a6c
|
|
11
|
-
*/
|
|
12
|
-
import { Ht as e, Jt as t, Wt as n, p as r } from "./intl-TN1Dianl.js";
|
|
13
|
-
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-QRCZ6ZTK.js";
|
|
14
|
-
import { n as c } from "./empties-DctbDY5s.js";
|
|
15
|
-
import { u as l } from "./hooks-DLtMDttz.js";
|
|
16
|
-
import { C as u, S as d, f, u as p, v as m } from "./stepComponentHelpers-DeWac6nj.js";
|
|
17
|
-
import { t as h } from "./FormFieldInputSelect-BF_uqQju.js";
|
|
18
|
-
//#region src/components/FormFields/Country/CountryComponent.tsx
|
|
19
|
-
var g = /* @__PURE__ */ t(a(), 1), _ = s(), v = i(({ value: e, isErrored: t, options: n, onChange: r, onKeyDown: i, intl: a, placeholder: s = "", isRequired: c = !0, suppressPlaceholder: l = !1, disabled: u = !1 }) => /* @__PURE__ */ (0, _.jsx)(h, {
|
|
20
|
-
fieldId: "country",
|
|
21
|
-
options: n,
|
|
22
|
-
onChange: (e) => r(e),
|
|
23
|
-
onKeyDown: i,
|
|
24
|
-
placeholder: s || a.formatHTMLMessage({
|
|
25
|
-
id: "countryPlaceholder",
|
|
26
|
-
defaultMessage: "Country"
|
|
27
|
-
}),
|
|
28
|
-
value: n.find((t) => t.value === (e && e.value)),
|
|
29
|
-
isRequired: c,
|
|
30
|
-
label: /* @__PURE__ */ (0, _.jsx)(o, {
|
|
31
|
-
id: "country",
|
|
32
|
-
defaultMessage: "Country"
|
|
33
|
-
}),
|
|
34
|
-
errorMessage: t && /* @__PURE__ */ (0, _.jsx)(o, {
|
|
35
|
-
id: "errorId.invalidCountry",
|
|
36
|
-
defaultMessage: "Invalid country"
|
|
37
|
-
}),
|
|
38
|
-
showPlaceholderAndHideLabel: !!s,
|
|
39
|
-
suppressPlaceholder: l,
|
|
40
|
-
disabled: u
|
|
41
|
-
})), y = i(({ verificationService: t, viewModelDraftDecorator: i = void 0, intl: a, viewModel: o = void 0, nextFocusField: s = void 0, disabled: h = !1 }) => {
|
|
42
|
-
o && n.warn("viewModel prop is deprecated, use verificationService.viewModel instead"), s && n.warn("nextFocusField prop is deprecated");
|
|
43
|
-
let y = e(() => o.localeChoice.value, "en-US"), b = f(t.programTheme, a, y), { fieldValidationErrors: x } = t, S = b.length > 1, C = p("country")?.hidden, w = (e) => {
|
|
44
|
-
let n = r(t.viewModel, (t) => {
|
|
45
|
-
t.countryChoice = e || void 0, t.country = e ? e.value : void 0, i && i(t, e), t.organization &&= c.organization;
|
|
46
|
-
});
|
|
47
|
-
t.updateViewModel(n);
|
|
48
|
-
};
|
|
49
|
-
return g.useEffect(() => {
|
|
50
|
-
let e = b.some((e) => e.value === "US");
|
|
51
|
-
if (!S && !e) {
|
|
52
|
-
let e = t.viewModel.fieldsToSkipValidation ? [...t.viewModel.fieldsToSkipValidation, "country"] : [
|
|
53
|
-
"country",
|
|
54
|
-
"address1",
|
|
55
|
-
"postalCode",
|
|
56
|
-
"state",
|
|
57
|
-
"city"
|
|
58
|
-
];
|
|
59
|
-
t.updateViewModel(m(t.viewModel, "fieldsToSkipValidation", e));
|
|
60
|
-
}
|
|
61
|
-
}, [S]), g.useEffect(() => {
|
|
62
|
-
d(r(t.fieldValidationErrors, (e) => {
|
|
63
|
-
e.country &&= l("country", t.viewModel.countryChoice, t.formValidationOptions), "postalCode" in t.viewModel && t.viewModel.postalCode && (e.postalCode = l("postalCode", t.viewModel.postalCode, t.formValidationOptions));
|
|
64
|
-
}), t);
|
|
65
|
-
}, [t.viewModel.countryChoice]), !S || C ? null : /* @__PURE__ */ (0, _.jsx)(v, {
|
|
66
|
-
isRequired: !0,
|
|
67
|
-
options: b,
|
|
68
|
-
value: t.viewModel.countryChoice,
|
|
69
|
-
isErrored: !!x.country,
|
|
70
|
-
disabled: h,
|
|
71
|
-
onChange: async (e) => {
|
|
72
|
-
let n = e ? e.value : void 0;
|
|
73
|
-
w(e), u("country", n, t);
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
//#endregion
|
|
78
|
-
export { y as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CountryComponentWrapper-DeOnkeWj.js","names":[],"sources":["../../src/components/FormFields/Country/CountryComponent.tsx","../../src/components/FormFields/Country/CountryComponentWrapper.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\n\nexport const Country = ({\n value,\n isErrored,\n options,\n onChange,\n onKeyDown,\n intl,\n placeholder = \"\",\n isRequired = true,\n suppressPlaceholder = false,\n disabled = false,\n}: InputSelectComponentProps) => {\n const inputId = \"country\";\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(country: FormSelectChoice) => onChange(country)}\n onKeyDown={onKeyDown}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"countryPlaceholder\", defaultMessage: \"Country\" })\n }\n value={options.find((option) => option.value === (value && value.value))}\n isRequired={isRequired}\n label={<FormattedHTMLMessage id=\"country\" defaultMessage=\"Country\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage id=\"errorId.invalidCountry\" defaultMessage=\"Invalid country\" />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n suppressPlaceholder={suppressPlaceholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CountryComponent = injectIntl(Country);\n","import React from \"react\";\nimport produce from \"immer\";\nimport { type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport {\n type VerificationService,\n type Country,\n type FormSelectChoice,\n type ViewModel,\n type ErrorId,\n type FieldId,\n type WithOrganization,\n} from \"../../../lib/types/types\";\nimport {\n getSortedCountryChoices,\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n updateFieldValidationErrors,\n getFieldConfigByFieldId,\n} from \"../../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { validateFieldById } from \"../../../lib/validators/validators\";\nimport { blankOrganization } from \"../../../lib/types/empties\";\n\nimport { CountryComponent } from \"./CountryComponent\";\n\ntype CountryComponentWrapperProps = {\n verificationService: VerificationService;\n intl: InjectedIntl;\n viewModelDraftDecorator?: (\n draft: ViewModel,\n countryChoice?: FormSelectChoice<Country, string>,\n ) => void;\n disabled?: boolean;\n};\n\ntype DeprecatedProps = {\n viewModel?: ViewModel; // deprecated, uses verificationService.viewModel instead\n nextFocusField?: string; // deprecated\n};\n\nconst BaseCountryComponentWrapper = ({\n verificationService,\n viewModelDraftDecorator = undefined,\n intl,\n viewModel = undefined,\n nextFocusField = undefined,\n disabled = false,\n}: CountryComponentWrapperProps & DeprecatedProps) => {\n if (viewModel) {\n logger.warn(\"viewModel prop is deprecated, use verificationService.viewModel instead\");\n }\n if (nextFocusField) {\n logger.warn(\"nextFocusField prop is deprecated\");\n }\n const locale = getSafe(() => viewModel.localeChoice.value, \"en-US\");\n const countryChoices: FormSelectChoice<Country, string>[] = getSortedCountryChoices(\n verificationService.programTheme,\n intl,\n locale,\n );\n const { fieldValidationErrors } = verificationService;\n const hasMultipleCountries = countryChoices.length > 1;\n const isFieldHidden = getFieldConfigByFieldId(\"country\")?.hidden;\n\n const updateCountryChoice = (countryChoice?: FormSelectChoice<Country, string>) => {\n const nextState: ViewModel = produce(\n verificationService.viewModel,\n (draft: ViewModel & WithOrganization) => {\n draft.countryChoice = countryChoice || undefined;\n\n // Adds backwards compatibility with Age and Employment programs\n (draft as any).country = countryChoice ? countryChoice.value : undefined;\n if (viewModelDraftDecorator) {\n viewModelDraftDecorator(draft, countryChoice);\n }\n\n // Reset to a blank org when changing the country choice\n if (draft.organization) {\n draft.organization = blankOrganization.organization;\n }\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const includesUS = countryChoices.some((choice) => choice.value === \"US\");\n if (!hasMultipleCountries && !includesUS) {\n const fieldsToSkip: FieldId[] = verificationService.viewModel.fieldsToSkipValidation\n ? [...verificationService.viewModel.fieldsToSkipValidation, \"country\"]\n : [\"country\", \"address1\", \"postalCode\", \"state\", \"city\"];\n verificationService.updateViewModel(\n produceDraftViewModel(\n verificationService.viewModel,\n \"fieldsToSkipValidation\",\n fieldsToSkip,\n ),\n );\n }\n }, [hasMultipleCountries]);\n\n React.useEffect(() => {\n const updatedFieldValidationErrors = produce(\n verificationService.fieldValidationErrors,\n (draft) => {\n if (draft.country) {\n draft.country = validateFieldById(\n \"country\",\n verificationService.viewModel.countryChoice,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n if (\n \"postalCode\" in verificationService.viewModel &&\n verificationService.viewModel.postalCode\n ) {\n draft.postalCode = validateFieldById(\n \"postalCode\",\n verificationService.viewModel.postalCode,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n },\n );\n updateFieldValidationErrors(updatedFieldValidationErrors, verificationService);\n }, [verificationService.viewModel.countryChoice]);\n\n if (!hasMultipleCountries || isFieldHidden) {\n return null;\n }\n\n return (\n <CountryComponent\n isRequired\n options={countryChoices}\n value={verificationService.viewModel.countryChoice}\n isErrored={Boolean(fieldValidationErrors.country)}\n disabled={disabled}\n onChange={async (countryChoice: FormSelectChoice<Country, string>) => {\n const countryValue = countryChoice ? countryChoice.value : undefined;\n updateCountryChoice(countryChoice);\n updateFieldValidationErrorsByFieldId(\"country\", countryValue, verificationService);\n }}\n />\n );\n};\n\nexport const CountryComponentWrapper = injectIntl(BaseCountryComponentWrapper);\n"],"mappings":";;;;;;;4CA2CA,IAAA,GAtCA,EAAA,UAAA,cAAA,YAAA,aAAA,cAAA,SAAA,iBAAA,IAAA,gBAAA,IAAA,yBAAA,IAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;EAsCA,GC2Ga,IAA0B,GA3GF,EACnC,wBACA,6BAA0B,KAAA,GAC1B,SACA,eAAY,KAAA,GACZ,oBAAiB,KAAA,GACjB,cAAW,SACyC;CAIpD,AAHI,KACF,EAAO,KAAK,yEAAyE,GAEnF,KACF,EAAO,KAAK,mCAAmC;CAEjD,IAAM,IAAS,QAAc,EAAU,aAAa,OAAO,OAAO,GAC5D,IAAsD,EAC1D,EAAoB,cACpB,GACA,CACF,GACM,EAAE,6BAA0B,GAC5B,IAAuB,EAAe,SAAS,GAC/C,IAAgB,EAAwB,SAAS,GAAG,QAEpD,KAAuB,MAAsD;EACjF,IAAM,IAAuB,EAC3B,EAAoB,YACnB,MAAwC;GAUvC,AATA,EAAM,gBAAgB,KAAiB,KAAA,GAGvC,EAAe,UAAU,IAAgB,EAAc,QAAQ,KAAA,GAC3D,KACF,EAAwB,GAAO,CAAa,GAI9C,AACE,EAAM,iBAAe,EAAkB;EAE3C,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAgDA,OA9CA,EAAM,gBAAgB;EACpB,IAAM,IAAa,EAAe,MAAM,MAAW,EAAO,UAAU,IAAI;EACxE,IAAI,CAAC,KAAwB,CAAC,GAAY;GACxC,IAAM,IAA0B,EAAoB,UAAU,yBAC1D,CAAC,GAAG,EAAoB,UAAU,wBAAwB,SAAS,IACnE;IAAC;IAAW;IAAY;IAAc;IAAS;GAAM;GACzD,EAAoB,gBAClB,EACE,EAAoB,WACpB,0BACA,CACF,CACF;EACF;CACF,GAAG,CAAC,CAAoB,CAAC,GAEzB,EAAM,gBAAgB;EAuBpB,EAtBqC,EACnC,EAAoB,wBACnB,MAAU;GAQT,AAPA,AACE,EAAM,YAAU,EACd,WACA,EAAoB,UAAU,eAC9B,EAAoB,qBACtB,GAGA,gBAAgB,EAAoB,aACpC,EAAoB,UAAU,eAE9B,EAAM,aAAa,EACjB,cACA,EAAoB,UAAU,YAC9B,EAAoB,qBACtB;EAEJ,CAE0B,GAA8B,CAAmB;CAC/E,GAAG,CAAC,EAAoB,UAAU,aAAa,CAAC,GAE5C,CAAC,KAAwB,IACpB,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,YAAA;EACA,SAAS;EACT,OAAO,EAAoB,UAAU;EACrC,WAAW,EAAQ,EAAsB;EAC/B;EACV,UAAU,OAAO,MAAqD;GACpE,IAAM,IAAe,IAAgB,EAAc,QAAQ,KAAA;GAE3D,AADA,EAAoB,CAAa,GACjC,EAAqC,WAAW,GAAc,CAAmB;EACnF;CACD,CAAA;AAEL,CAE6E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormFieldLayout-BPBIL09f.js","names":[],"sources":["../../src/components/FieldLabel.tsx","../../src/components/FormFields/FormFieldLayout/WarningIcon.tsx","../../src/components/FormFields/FormFieldLayout/FormFieldLayout.tsx"],"sourcesContent":["import React from \"react\";\n\ninterface FieldLabelProps {\n text: React.ReactNode;\n htmlForLabel: string;\n id?: string;\n displayClasses?: string;\n isRequired?: boolean;\n children?: React.ReactNode;\n}\nconst isEmptyText = (allegedNode: React.ReactNode) =>\n !React.isValidElement(allegedNode) && allegedNode === \"\";\n\nexport const FieldLabel: React.FC<FieldLabelProps> = ({\n text,\n htmlForLabel,\n id,\n displayClasses,\n isRequired,\n children,\n}: FieldLabelProps) => (\n <label htmlFor={htmlForLabel}>\n <div id={id} className={`sid-field__label sid-l-space-btm-sm ${displayClasses}`}>\n <span className=\"sid-field__label-name\">\n {text}\n {isRequired && !isEmptyText(text) && (\n <span aria-hidden=\"true\" className=\"sid-field__label--required\">\n *\n </span>\n )}\n </span>\n\n {children && <div className=\"sid-field__label-explanation\">{children}</div>}\n </div>\n </label>\n);\n\nFieldLabel.defaultProps = {\n id: \"\",\n displayClasses: \"\",\n isRequired: true,\n children: null,\n};\n","import type React from \"react\";\n\nexport interface WarningIconProps {\n className?: string;\n}\nexport const WarningIcon: React.FC<WarningIconProps> = ({ className }) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n className={className}\n >\n <path\n fillRule=\"evenodd\"\n d=\"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n);\n","import type React from \"react\";\n\nimport { dashed } from \"../../../lib/utils/strings\";\nimport { FieldLabel } from \"../../FieldLabel\";\n\nimport { WarningIcon } from \"./WarningIcon\";\n\nexport interface FormFieldLayoutProps {\n fieldId: string; // should be camelCase\n label: React.ReactNode;\n isRequired: boolean;\n showPlaceholderAndHideLabel?: boolean;\n errorMessage?: React.ReactNode;\n warningMessage?: React.ReactNode;\n helperMessage?: React.ReactNode;\n children?: React.ReactNode;\n explanation?: React.ReactNode;\n containerId?: string;\n}\n\nexport const getFormFieldLabelHtmlId = (fieldId: string) => `sid-${dashed(fieldId)}-label`;\nexport const getFormFieldErrorHtmlId = (fieldId: string) => `sid-${dashed(fieldId)}-error`;\nexport const getFormFieldWarningHtmlId = (fieldId: string) => `sid-${dashed(fieldId)}-warning`;\nexport const getFormFieldHelperHtmlId = (fieldId: string) => `sid-${dashed(fieldId)}-helper`;\n\n/**\n * In the JSLIB, a FormField has a label, inline error message, and children like a text input\n * This component provides consistent structure, classnames and some accessibility considerations for all FormFields\n */\nexport const FormFieldLayout = ({\n fieldId,\n label,\n errorMessage,\n warningMessage,\n helperMessage,\n isRequired,\n showPlaceholderAndHideLabel = false,\n children,\n explanation = undefined,\n containerId = undefined,\n}: FormFieldLayoutProps) => {\n const labelHtmlId = getFormFieldLabelHtmlId(fieldId);\n const errorHtmlId = getFormFieldErrorHtmlId(fieldId);\n const warningHtmlId = getFormFieldWarningHtmlId(fieldId);\n const helperHtmlId = getFormFieldHelperHtmlId(fieldId);\n const containerClassName = containerId || `sid-${dashed(fieldId)}`;\n\n return (\n <div className={`sid-field ${containerClassName}`}>\n <div className=\"sid-l-space-top-md\" />\n\n <FieldLabel\n text={label}\n isRequired={isRequired}\n htmlForLabel={`sid-${dashed(fieldId)}`}\n id={labelHtmlId}\n displayClasses={`${explanation ? \"sid-field__label-with-explanation\" : \"\"}${\n explanation && showPlaceholderAndHideLabel ? \" \" : \"\"\n }${showPlaceholderAndHideLabel ? \"sid-h-screen-reader-only\" : \"\"}`}\n >\n {explanation && explanation}\n </FieldLabel>\n\n {children}\n\n {errorMessage && (\n <div className=\"sid-field-error\" id={errorHtmlId}>\n {errorMessage}\n </div>\n )}\n\n {!errorMessage && warningMessage && (\n <div className=\"sid-field-warning\" id={warningHtmlId}>\n <WarningIcon className=\"sid-field-warning__icon\" />\n <div className=\"sid-field-warning__message\">{warningMessage}</div>\n </div>\n )}\n\n {!errorMessage && !warningMessage && helperMessage && (\n <div className=\"sid-field-helper\" id={helperHtmlId}>\n {helperMessage}\n </div>\n )}\n </div>\n );\n};\n"],"mappings":";;;;4CAUM,KAAe,MACnB,CAAA,EAAO,eAAe,CAAW,KAAK,MAAgB,IAE3C,KAAyC,EACpD,SACA,iBACA,OACA,mBACA,eACA,kBAEA,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EAAA,KAAC,GAAD;IACE,MAAM;IACM;IACZ,cAAc,OAAO,EAAO,CAAO;IACnC,IAAI;IACJ,gBAAgB,GAAG,IAAc,sCAAsC,KACrE,KAAe,IAA8B,MAAM,KAClD,IAA8B,6BAA6B;cAE7D,KAAe;GACN,CAAA;GAEX;GAEA,KACC,iBAAA,GAAA,EAAA,KAAC,OAAD;IAAK,WAAU;IAAkB,IAAI;cAClC;GACE,CAAA;GAGN,CAAC,KAAgB,KAChB,iBAAA,GAAA,EAAA,MAAC,OAAD;IAAK,WAAU;IAAoB,IAAI;cAAvC,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAa,WAAU,0BAA2B,CAAA,GAClD,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eAA8B;IAAoB,CAAA,CAC9D;;GAGN,CAAC,KAAgB,CAAC,KAAkB,KACnC,iBAAA,GAAA,EAAA,KAAC,OAAD;IAAK,WAAU;IAAmB,IAAI;cACnC;GACE,CAAA;EAEJ;;AAET"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormFieldLayout-CuxYu2-h.js","names":[],"sources":["../../src/components/FieldLabel.tsx","../../src/components/FormFields/FormFieldLayout/WarningIcon.tsx","../../src/components/FormFields/FormFieldLayout/FormFieldLayout.tsx"],"sourcesContent":["import React from \"react\";\n\ninterface FieldLabelProps {\n text: React.ReactNode;\n htmlForLabel: string;\n id?: string;\n displayClasses?: string;\n isRequired?: boolean;\n children?: React.ReactNode;\n}\nconst isEmptyText = (allegedNode: React.ReactNode) =>\n !React.isValidElement(allegedNode) && allegedNode === \"\";\n\nexport const FieldLabel: React.FC<FieldLabelProps> = ({\n text,\n htmlForLabel,\n id,\n displayClasses,\n isRequired,\n children,\n}: FieldLabelProps) => (\n <label htmlFor={htmlForLabel}>\n <div id={id} className={`sid-field__label sid-l-space-btm-sm ${displayClasses}`}>\n <span className=\"sid-field__label-name\">\n {text}\n {isRequired && !isEmptyText(text) && (\n <span aria-hidden=\"true\" className=\"sid-field__label--required\">\n *\n </span>\n )}\n </span>\n\n {children && <div className=\"sid-field__label-explanation\">{children}</div>}\n </div>\n </label>\n);\n\nFieldLabel.defaultProps = {\n id: \"\",\n displayClasses: \"\",\n isRequired: true,\n children: null,\n};\n","import type React from \"react\";\n\nexport interface WarningIconProps {\n className?: string;\n}\nexport const WarningIcon: React.FC<WarningIconProps> = ({ className }) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n className={className}\n >\n <path\n fillRule=\"evenodd\"\n d=\"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n);\n","import type React from \"react\";\n\nimport { dashed } from \"../../../lib/utils/strings\";\nimport { FieldLabel } from \"../../FieldLabel\";\n\nimport { WarningIcon } from \"./WarningIcon\";\n\nexport interface FormFieldLayoutProps {\n fieldId: string; // should be camelCase\n label: React.ReactNode;\n isRequired: boolean;\n showPlaceholderAndHideLabel?: boolean;\n errorMessage?: React.ReactNode;\n warningMessage?: React.ReactNode;\n helperMessage?: React.ReactNode;\n children?: React.ReactNode;\n explanation?: React.ReactNode;\n containerId?: string;\n}\n\nexport const getFormFieldLabelHtmlId = (fieldId: string) => `sid-${dashed(fieldId)}-label`;\nexport const getFormFieldErrorHtmlId = (fieldId: string) => `sid-${dashed(fieldId)}-error`;\nexport const getFormFieldWarningHtmlId = (fieldId: string) => `sid-${dashed(fieldId)}-warning`;\nexport const getFormFieldHelperHtmlId = (fieldId: string) => `sid-${dashed(fieldId)}-helper`;\n\n/**\n * In the JSLIB, a FormField has a label, inline error message, and children like a text input\n * This component provides consistent structure, classnames and some accessibility considerations for all FormFields\n */\nexport const FormFieldLayout = ({\n fieldId,\n label,\n errorMessage,\n warningMessage,\n helperMessage,\n isRequired,\n showPlaceholderAndHideLabel = false,\n children,\n explanation = undefined,\n containerId = undefined,\n}: FormFieldLayoutProps) => {\n const labelHtmlId = getFormFieldLabelHtmlId(fieldId);\n const errorHtmlId = getFormFieldErrorHtmlId(fieldId);\n const warningHtmlId = getFormFieldWarningHtmlId(fieldId);\n const helperHtmlId = getFormFieldHelperHtmlId(fieldId);\n const containerClassName = containerId || `sid-${dashed(fieldId)}`;\n\n return (\n <div className={`sid-field ${containerClassName}`}>\n <div className=\"sid-l-space-top-md\" />\n\n <FieldLabel\n text={label}\n isRequired={isRequired}\n htmlForLabel={`sid-${dashed(fieldId)}`}\n id={labelHtmlId}\n displayClasses={`${explanation ? \"sid-field__label-with-explanation\" : \"\"}${\n explanation && showPlaceholderAndHideLabel ? \" \" : \"\"\n }${showPlaceholderAndHideLabel ? \"sid-h-screen-reader-only\" : \"\"}`}\n >\n {explanation && explanation}\n </FieldLabel>\n\n {children}\n\n {errorMessage && (\n <div className=\"sid-field-error\" id={errorHtmlId}>\n {errorMessage}\n </div>\n )}\n\n {!errorMessage && warningMessage && (\n <div className=\"sid-field-warning\" id={warningHtmlId}>\n <WarningIcon className=\"sid-field-warning__icon\" />\n <div className=\"sid-field-warning__message\">{warningMessage}</div>\n </div>\n )}\n\n {!errorMessage && !warningMessage && helperMessage && (\n <div className=\"sid-field-helper\" id={helperHtmlId}>\n {helperMessage}\n </div>\n )}\n </div>\n );\n};\n"],"mappings":";;;;4CAUM,KAAe,MACnB,CAAA,EAAO,eAAe,CAAW,KAAK,MAAgB,IAE3C,KAAyC,EACpD,SACA,iBACA,OACA,mBACA,eACA,kBAEA,iBAAA,GAAA,EAAA,KAAC,SAAD;CAAO,SAAS;WACd,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAS;EAAI,WAAW,uCAAuC;YAA/D,C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E,KAAe,IAA8B,MAAM,KAClD,IAA8B,6BAA6B;cAE7D,KAAe;GACN,CAAA;GAEX;GAEA,KACC,iBAAA,GAAA,EAAA,KAAC,OAAD;IAAK,WAAU;IAAkB,IAAI;cAClC;GACE,CAAA;GAGN,CAAC,KAAgB,KAChB,iBAAA,GAAA,EAAA,MAAC,OAAD;IAAK,WAAU;IAAoB,IAAI;cAAvC,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAa,WAAU,0BAA2B,CAAA,GAClD,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eAA8B;IAAoB,CAAA,CAC9D;;GAGN,CAAC,KAAgB,CAAC,KAAkB,KACnC,iBAAA,GAAA,EAAA,KAAC,OAAD;IAAK,WAAU;IAAmB,IAAI;cACnC;GACE,CAAA;EAEJ;;AAET"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectChoice-eq9jx2Ul.js","names":[],"sources":["../../src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectComponent.tsx","../../src/lib/utils/structures/FormSelectChoice.ts"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"../../../../lib/types/types\";\nimport { LoadingSpinnerComponent } from \"../../../LoadingSpinner/LoadingSpinnerComponent\";\n\ninterface InputSelectListProps {\n getItemProps: any;\n getMenuProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n ariaLabel: string;\n isOpen: boolean;\n isLoading?: boolean;\n}\n\nconst InputSelectList = ({\n getItemProps,\n getMenuProps,\n highlightedIndex,\n options,\n itemToString,\n ariaLabel,\n isOpen,\n isLoading = false,\n}: InputSelectListProps) => {\n const listItem = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-input-select-list__item ${\n highlightedIndex === index ? \"sid-input-select-list__item--highlighted\" : \"\"\n }`}\n {...getItemProps({\n item,\n index,\n key: item.value,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n const innerContent =\n options.length > 0 ? (\n options.map((option, index) => listItem(option, index))\n ) : (\n <div className=\"sid-input-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n\n return (\n <div {...getMenuProps({ \"aria-label\": ariaLabel })}>\n {isOpen ? (\n <div className=\"sid-input-select-list__menu\">\n {isLoading ? (\n <div className=\"sid-input-select-list__loading-spinner\">\n <LoadingSpinnerComponent />\n </div>\n ) : (\n innerContent\n )}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport const InputSelectListComponent = InputSelectList;\n","import { injectIntl, type InjectedIntlProps } from \"react-intl\";\n\ninterface InputSelectButtonProps extends InjectedIntlProps {\n clearSelection: () => void;\n getToggleButtonProps: any;\n isOpen: boolean;\n isClearable: boolean;\n disabled?: boolean;\n}\n\nconst InputSelectButton = ({\n clearSelection,\n disabled,\n getToggleButtonProps,\n isOpen,\n isClearable,\n intl,\n}: InputSelectButtonProps) => {\n const {\n onClick: onClickToggleButton,\n \"aria-haspopup\": ariaHaspopup,\n \"data-toggle\": dataToggle,\n onKeyUp,\n onKeyDown,\n onBlur,\n } = getToggleButtonProps();\n\n const ariaLabel = isClearable\n ? intl.formatMessage({\n id: \"clearAndOpenMenu\",\n defaultMessage: \"Clear selection and open menu\",\n })\n : intl.formatMessage({ id: \"openMenu\", defaultMessage: \"Open menu\" });\n\n return (\n <button\n aria-label={ariaLabel}\n aria-haspopup={ariaHaspopup}\n data-toggle={dataToggle}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onBlur={onBlur}\n className=\"sid-input-select-button\"\n disabled={disabled}\n type=\"button\"\n onClick={(event) => {\n if (typeof clearSelection === \"function\") clearSelection();\n if (typeof onClickToggleButton === \"function\") onClickToggleButton(event);\n }}\n >\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"#8E95A4\"\n strokeWidth=\"1.1px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n );\n};\n\nexport const InputSelectButtonComponent = injectIntl(InputSelectButton);\n","import type React from \"react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport {\n type FormSelectChoice,\n type InputSelectOnKeyDown,\n type FieldId,\n type ExtendedFieldId,\n} from \"../../../lib/types/types\";\nimport { setRef } from \"../../../lib/refs/refs\";\n\nimport { InputSelectListComponent } from \"./InputSelectList/InputSelectListComponent\";\nimport { InputSelectButtonComponent } from \"./InputSelectButton/InputSelectButtonComponent\";\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst filterOptions = (options: FormSelectChoice[], inputValue: string): FormSelectChoice[] => {\n const filteredOptions: FormSelectChoice[] = options.filter(\n (option) =>\n !inputValue ||\n option.label.toLowerCase().includes(inputValue.toLowerCase()) ||\n option.value.toString().toLowerCase().includes(inputValue.toLowerCase()),\n );\n return filteredOptions;\n};\n\nexport interface InputSelectProps {\n onChange: any;\n options: FormSelectChoice[];\n fieldId: FieldId | ExtendedFieldId;\n fieldLabelId?: string;\n className?: string;\n disabled?: boolean;\n inputId?: string;\n isErrored?: boolean;\n onKeyDown?: InputSelectOnKeyDown;\n placeholder?: string;\n suppressPlaceholder?: boolean;\n value?: FormSelectChoice;\n autoFocus?: boolean;\n ariaLabel?: string;\n ariaDescribedBy?: string;\n isRequired?: boolean;\n isLoading?: boolean;\n buttonRef?: string;\n role?: string;\n autoComplete?: string;\n}\n\nconst InputSelect = ({\n className,\n inputId,\n disabled,\n fieldId,\n fieldLabelId,\n isErrored,\n options,\n onKeyDown,\n onChange,\n placeholder,\n // Most invokers want placeholder hidden by css, so it can be easily shown when\n // customizing the implementation. Birth date is an example of an exception.\n suppressPlaceholder = true,\n value,\n autoFocus,\n ariaLabel,\n ariaDescribedBy,\n isRequired,\n isLoading = false,\n role = \"combobox\",\n autoComplete,\n}: InputSelectProps) => {\n const [inputState, setInputState] = useState(\"\");\n const items = inputState ? filterOptions(options, inputState) : options;\n\n const {\n getInputProps,\n getItemProps,\n getMenuProps,\n getToggleButtonProps,\n highlightedIndex,\n isOpen,\n selectItem,\n } = useCombobox<FormSelectChoice>({\n id: inputId,\n items,\n onInputValueChange({ inputValue }) {\n setInputState(inputValue);\n },\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n itemToString,\n selectedItem: value && value.value && value.label ? value : null,\n defaultHighlightedIndex: 0,\n });\n\n const handleOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (typeof onKeyDown === \"function\") {\n onKeyDown(event);\n }\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n // NOTE: Dependency array omitted to account for use of resetRef(), as useEffect with dep arr\n // will only trigger on initial render leaving the refs empty, this replicates prior version\n // where ref callback would trigger with each re-render\n useEffect(() => {\n setRef(fieldId, inputRef.current);\n });\n\n return (\n <div className={`sid-input-select-list ${className || \"\"}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps({\n ref: inputRef,\n onKeyDown: (event) => handleOnKeyDown(event),\n \"aria-labelledby\": fieldLabelId,\n })}\n // TODO resolve next line. Product needs this to autofocus, but linter says bad for accessibility\n // eslint-disable-next-line\n autoFocus={autoFocus}\n id={inputId}\n className={`sid-l-full-width sid-text-input ${\n suppressPlaceholder ? \"sid-hidden-placeholder\" : \"\"\n } ${isErrored ? \"sid-text-input--error\" : \"\"}`}\n disabled={disabled}\n placeholder={placeholder}\n aria-required={isRequired}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isErrored}\n role={role}\n autoComplete={autoComplete}\n />\n\n <InputSelectButtonComponent\n disabled={disabled}\n getToggleButtonProps={getToggleButtonProps}\n isOpen={isOpen}\n isClearable={!!value?.value}\n clearSelection={() => selectItem(undefined)}\n />\n\n <InputSelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={items}\n getItemProps={getItemProps}\n getMenuProps={getMenuProps}\n ariaLabel={ariaLabel}\n isOpen={isOpen}\n isLoading={isLoading}\n />\n </div>\n );\n};\n\nInputSelect.defaultProps = {\n className: undefined,\n disabled: false,\n inputId: undefined,\n isErrored: false,\n onKeyDown: undefined,\n placeholder: \"\",\n value: undefined,\n autoComplete: undefined,\n};\n\nexport const InputSelectComponent = InputSelect;\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type MsgFunction } from \"@/components/Message/Message\";\nimport { type MessageId } from \"@/lib/intl/types\";\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ntype compareLabelReturn = 1 | -1;\n\nexport const compareLabel = (\n a: FormSelectChoice<any>,\n b: FormSelectChoice<any>,\n): compareLabelReturn => {\n let sortValue: compareLabelReturn;\n\n try {\n sortValue = a.label.toUpperCase() > b.label.toUpperCase() ? 1 : -1;\n } catch (e) {\n sortValue = 1;\n }\n\n return sortValue;\n};\n\nexport const SortByLabel = (\n choices: FormSelectChoice<any, string>[],\n): FormSelectChoice<any, string>[] => choices.sort(compareLabel);\n\nexport const getFormFieldSelectOptions = (\n namespace: string,\n optionValues: string[] = [],\n msg: MsgFunction,\n): FormSelectChoice<string, string>[] => {\n const options: FormSelectChoice<string, string>[] = [];\n const omittedOptions: string[] = [];\n\n optionValues.forEach((value) => {\n if (typeof value === \"undefined\") return omittedOptions.push(\"undefined\");\n if (!value) return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"number\") return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"string\" && !value.trim())\n return omittedOptions.push(JSON.stringify(value));\n\n options.push({ value, label: msg({ id: `${namespace}.${value}` as MessageId }) });\n });\n\n if (omittedOptions.length > 0) {\n logger.warn(\n `FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${\n omittedOptions.length\n }): ${omittedOptions.join(\", \")}`,\n );\n }\n\n return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ChB;AAEA,IAAa,IAAuB,GCjKvB,KACX,GACA,MACuB;CACvB,IAAI;CAEJ,IAAI;EACF,IAAY,EAAE,MAAM,YAAY,IAAI,EAAE,MAAM,YAAY,IAAI,IAAI;CAClE,QAAY;EACV,IAAY;CACd;CAEA,OAAO;AACT,GAEa,KACX,MACoC,EAAQ,KAAK,CAAY,GAElD,KACX,GACA,IAAyB,CAAC,GAC1B,MACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectChoice-ktUJwtNJ.js","names":[],"sources":["../../src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectComponent.tsx","../../src/lib/utils/structures/FormSelectChoice.ts"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"../../../../lib/types/types\";\nimport { LoadingSpinnerComponent } from \"../../../LoadingSpinner/LoadingSpinnerComponent\";\n\ninterface InputSelectListProps {\n getItemProps: any;\n getMenuProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n ariaLabel: string;\n isOpen: boolean;\n isLoading?: boolean;\n}\n\nconst InputSelectList = ({\n getItemProps,\n getMenuProps,\n highlightedIndex,\n options,\n itemToString,\n ariaLabel,\n isOpen,\n isLoading = false,\n}: InputSelectListProps) => {\n const listItem = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-input-select-list__item ${\n highlightedIndex === index ? \"sid-input-select-list__item--highlighted\" : \"\"\n }`}\n {...getItemProps({\n item,\n index,\n key: item.value,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n const innerContent =\n options.length > 0 ? (\n options.map((option, index) => listItem(option, index))\n ) : (\n <div className=\"sid-input-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n\n return (\n <div {...getMenuProps({ \"aria-label\": ariaLabel })}>\n {isOpen ? (\n <div className=\"sid-input-select-list__menu\">\n {isLoading ? (\n <div className=\"sid-input-select-list__loading-spinner\">\n <LoadingSpinnerComponent />\n </div>\n ) : (\n innerContent\n )}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport const InputSelectListComponent = InputSelectList;\n","import { injectIntl, type InjectedIntlProps } from \"react-intl\";\n\ninterface InputSelectButtonProps extends InjectedIntlProps {\n clearSelection: () => void;\n getToggleButtonProps: any;\n isOpen: boolean;\n isClearable: boolean;\n disabled?: boolean;\n}\n\nconst InputSelectButton = ({\n clearSelection,\n disabled,\n getToggleButtonProps,\n isOpen,\n isClearable,\n intl,\n}: InputSelectButtonProps) => {\n const {\n onClick: onClickToggleButton,\n \"aria-haspopup\": ariaHaspopup,\n \"data-toggle\": dataToggle,\n onKeyUp,\n onKeyDown,\n onBlur,\n } = getToggleButtonProps();\n\n const ariaLabel = isClearable\n ? intl.formatMessage({\n id: \"clearAndOpenMenu\",\n defaultMessage: \"Clear selection and open menu\",\n })\n : intl.formatMessage({ id: \"openMenu\", defaultMessage: \"Open menu\" });\n\n return (\n <button\n aria-label={ariaLabel}\n aria-haspopup={ariaHaspopup}\n data-toggle={dataToggle}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onBlur={onBlur}\n className=\"sid-input-select-button\"\n disabled={disabled}\n type=\"button\"\n onClick={(event) => {\n if (typeof clearSelection === \"function\") clearSelection();\n if (typeof onClickToggleButton === \"function\") onClickToggleButton(event);\n }}\n >\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"#8E95A4\"\n strokeWidth=\"1.1px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n );\n};\n\nexport const InputSelectButtonComponent = injectIntl(InputSelectButton);\n","import type React from \"react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport {\n type FormSelectChoice,\n type InputSelectOnKeyDown,\n type FieldId,\n type ExtendedFieldId,\n} from \"../../../lib/types/types\";\nimport { setRef } from \"../../../lib/refs/refs\";\n\nimport { InputSelectListComponent } from \"./InputSelectList/InputSelectListComponent\";\nimport { InputSelectButtonComponent } from \"./InputSelectButton/InputSelectButtonComponent\";\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst filterOptions = (options: FormSelectChoice[], inputValue: string): FormSelectChoice[] => {\n const filteredOptions: FormSelectChoice[] = options.filter(\n (option) =>\n !inputValue ||\n option.label.toLowerCase().includes(inputValue.toLowerCase()) ||\n option.value.toString().toLowerCase().includes(inputValue.toLowerCase()),\n );\n return filteredOptions;\n};\n\nexport interface InputSelectProps {\n onChange: any;\n options: FormSelectChoice[];\n fieldId: FieldId | ExtendedFieldId;\n fieldLabelId?: string;\n className?: string;\n disabled?: boolean;\n inputId?: string;\n isErrored?: boolean;\n onKeyDown?: InputSelectOnKeyDown;\n placeholder?: string;\n suppressPlaceholder?: boolean;\n value?: FormSelectChoice;\n autoFocus?: boolean;\n ariaLabel?: string;\n ariaDescribedBy?: string;\n isRequired?: boolean;\n isLoading?: boolean;\n buttonRef?: string;\n role?: string;\n autoComplete?: string;\n}\n\nconst InputSelect = ({\n className,\n inputId,\n disabled,\n fieldId,\n fieldLabelId,\n isErrored,\n options,\n onKeyDown,\n onChange,\n placeholder,\n // Most invokers want placeholder hidden by css, so it can be easily shown when\n // customizing the implementation. Birth date is an example of an exception.\n suppressPlaceholder = true,\n value,\n autoFocus,\n ariaLabel,\n ariaDescribedBy,\n isRequired,\n isLoading = false,\n role = \"combobox\",\n autoComplete,\n}: InputSelectProps) => {\n const [inputState, setInputState] = useState(\"\");\n const items = inputState ? filterOptions(options, inputState) : options;\n\n const {\n getInputProps,\n getItemProps,\n getMenuProps,\n getToggleButtonProps,\n highlightedIndex,\n isOpen,\n selectItem,\n } = useCombobox<FormSelectChoice>({\n id: inputId,\n items,\n onInputValueChange({ inputValue }) {\n setInputState(inputValue);\n },\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n itemToString,\n selectedItem: value && value.value && value.label ? value : null,\n defaultHighlightedIndex: 0,\n });\n\n const handleOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (typeof onKeyDown === \"function\") {\n onKeyDown(event);\n }\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n // NOTE: Dependency array omitted to account for use of resetRef(), as useEffect with dep arr\n // will only trigger on initial render leaving the refs empty, this replicates prior version\n // where ref callback would trigger with each re-render\n useEffect(() => {\n setRef(fieldId, inputRef.current);\n });\n\n return (\n <div className={`sid-input-select-list ${className || \"\"}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps({\n ref: inputRef,\n onKeyDown: (event) => handleOnKeyDown(event),\n \"aria-labelledby\": fieldLabelId,\n })}\n // TODO resolve next line. Product needs this to autofocus, but linter says bad for accessibility\n // eslint-disable-next-line\n autoFocus={autoFocus}\n id={inputId}\n className={`sid-l-full-width sid-text-input ${\n suppressPlaceholder ? \"sid-hidden-placeholder\" : \"\"\n } ${isErrored ? \"sid-text-input--error\" : \"\"}`}\n disabled={disabled}\n placeholder={placeholder}\n aria-required={isRequired}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isErrored}\n role={role}\n autoComplete={autoComplete}\n />\n\n <InputSelectButtonComponent\n disabled={disabled}\n getToggleButtonProps={getToggleButtonProps}\n isOpen={isOpen}\n isClearable={!!value?.value}\n clearSelection={() => selectItem(undefined)}\n />\n\n <InputSelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={items}\n getItemProps={getItemProps}\n getMenuProps={getMenuProps}\n ariaLabel={ariaLabel}\n isOpen={isOpen}\n isLoading={isLoading}\n />\n </div>\n );\n};\n\nInputSelect.defaultProps = {\n className: undefined,\n disabled: false,\n inputId: undefined,\n isErrored: false,\n onKeyDown: undefined,\n placeholder: \"\",\n value: undefined,\n autoComplete: undefined,\n};\n\nexport const InputSelectComponent = InputSelect;\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type MsgFunction } from \"@/components/Message/Message\";\nimport { type MessageId } from \"@/lib/intl/types\";\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ntype compareLabelReturn = 1 | -1;\n\nexport const compareLabel = (\n a: FormSelectChoice<any>,\n b: FormSelectChoice<any>,\n): compareLabelReturn => {\n let sortValue: compareLabelReturn;\n\n try {\n sortValue = a.label.toUpperCase() > b.label.toUpperCase() ? 1 : -1;\n } catch (e) {\n sortValue = 1;\n }\n\n return sortValue;\n};\n\nexport const SortByLabel = (\n choices: FormSelectChoice<any, string>[],\n): FormSelectChoice<any, string>[] => choices.sort(compareLabel);\n\nexport const getFormFieldSelectOptions = (\n namespace: string,\n optionValues: string[] = [],\n msg: MsgFunction,\n): FormSelectChoice<string, string>[] => {\n const options: FormSelectChoice<string, string>[] = [];\n const omittedOptions: string[] = [];\n\n optionValues.forEach((value) => {\n if (typeof value === \"undefined\") return omittedOptions.push(\"undefined\");\n if (!value) return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"number\") return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"string\" && !value.trim())\n return omittedOptions.push(JSON.stringify(value));\n\n options.push({ value, label: msg({ id: `${namespace}.${value}` as MessageId }) });\n });\n\n if (omittedOptions.length > 0) {\n logger.warn(\n `FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${\n omittedOptions.length\n }): ${omittedOptions.join(\", \")}`,\n );\n }\n\n return options;\n};\n"],"mappings":";;;;;;4CAmEA,KAnDA,EAAA,iBAAA,iBAAA,qBAAA,YAAA,iBAAA,cAAA,WAAA,eAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,GCAa,IAA6B,GAvDf,EACzB,mBACA,aACA,yBACA,WACA,gBACA,cAC4B;CAC5B,IAAM,EACJ,SAAS,GACT,iBAAiB,GACjB,eAAe,GACf,YACA,cACA,cACE,EAAqB;CASzB,OACE,iBAAA,GAAA,EAAA,KAAC,UAAD;EACE,cATc,IACd,EAAK,cAAc;GACjB,IAAI;GACJ,gBAAgB;EAClB,CAAC,IACD,EAAK,cAAc;GAAE,IAAI;GAAY,gBAAgB;EAAY,CAAC;EAKlE,iBAAe;EACf,eAAa;EACJ;EACE;EACH;EACR,WAAU;EACA;EACV,MAAK;EACL,UAAU,MAAU;GAElB,AADI,OAAO,KAAmB,cAAY,EAAe,GACrD,OAAO,KAAwB,cAAY,EAAoB,CAAK;EAC1E;YAEA,iBAAA,GAAA,EAAA,KAAC,OAAD;GACE,SAAQ;GACR,qBAAoB;GACpB,OAAO;GACP,MAAK;GACL,QAAO;GACP,aAAY;GACZ,WAAW,IAAS,gBAAgB,KAAA;aAEpC,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,GAAE,oBAAqB,CAAA;EAC1B,CAAA;CACC,CAAA;AAEZ,CAEsE,GClDhE,KAAgB,MAA4B,IAAO,EAAK,QAAQ,IAEhE,KAAiB,GAA6B,MACN,EAAQ,QACjD,MACC,CAAC,KACD,EAAO,MAAM,YAAY,EAAE,SAAS,EAAW,YAAY,CAAC,KAC5D,EAAO,MAAM,SAAS,E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;IACoB;IACJ;IACd,SAAS;IACK;IACA;IACH;IACH;IACG;GACZ,CAAA;EACE;;AAET;AAEA,EAAY,eAAe;CACzB,WAAW,KAAA;CACX,UAAU;CACV,SAAS,KAAA;CACT,WAAW;CACX,WAAW,KAAA;CACX,aAAa;CACb,OAAO,KAAA;CACP,cAAc,KAAA;AAChB;AAEA,IAAa,IAAuB,GCjKvB,KACX,GACA,MACuB;CACvB,IAAI;CAEJ,IAAI;EACF,IAAY,EAAE,MAAM,YAAY,IAAI,EAAE,MAAM,YAAY,IAAI,IAAI;CAClE,QAAY;EACV,IAAY;CACd;CAEA,OAAO;AACT,GAEa,KACX,MACoC,EAAQ,KAAK,CAAY,GAElD,KACX,GACA,IAAyB,CAAC,GAC1B,MACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* VERSION: 2.274.0
|
|
4
|
-
* BUILD_TIMESTAMP: 1787094663644
|
|
5
|
-
* BUILD_DATE: Tue Aug 18 2026 23:11:03 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: f159388091b6a2928e80ee1b0cbd31d037de5a6c
|
|
7
|
-
*/
|
|
8
|
-
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-Cd3A-_0F.js";
|
|
9
|
-
export { e as default };
|