@sheerid/jslib 2.275.0 → 2.277.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 +873 -869
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-DeQlodxe.js → AddressComponent-C3iwf09x.js} +7 -7
- package/chunk/{AddressComponent-BGFbAsvK.js.map → AddressComponent-C3iwf09x.js.map} +1 -1
- package/chunk/{AddressComponent-BGFbAsvK.js → AddressComponent-oDHvr6bn.js} +7 -7
- package/chunk/{AddressComponent-DeQlodxe.js.map → AddressComponent-oDHvr6bn.js.map} +1 -1
- package/chunk/{AnnouncingHeader-D01_AW-Z.js → AnnouncingHeader-CCVSQeQR.js} +6 -6
- package/chunk/{AnnouncingHeader-Ces-_Aei.js.map → AnnouncingHeader-CCVSQeQR.js.map} +1 -1
- package/chunk/{AnnouncingHeader-Ces-_Aei.js → AnnouncingHeader-YPjBYzsZ.js} +6 -6
- package/chunk/{AnnouncingHeader-D01_AW-Z.js.map → AnnouncingHeader-YPjBYzsZ.js.map} +1 -1
- package/chunk/{ApiUrls-CHE6ck1K.js → ApiUrls-BEuqNxHS.js} +12 -8
- package/chunk/ApiUrls-BEuqNxHS.js.map +1 -0
- package/chunk/ApiUrls-C93kMsSC.js +44 -0
- package/chunk/ApiUrls-C93kMsSC.js.map +1 -0
- package/chunk/{BirthDateComponent-DA7yEebd.js → BirthDateComponent-MZDnneXy.js} +8 -8
- package/chunk/{BirthDateComponent-BzelVdwE.js.map → BirthDateComponent-MZDnneXy.js.map} +1 -1
- package/chunk/{BirthDateComponent-BzelVdwE.js → BirthDateComponent-f9e4it7x.js} +8 -8
- package/chunk/{BirthDateComponent-DA7yEebd.js.map → BirthDateComponent-f9e4it7x.js.map} +1 -1
- package/chunk/{CaptchaComponent-CaHSH2GC.js → CaptchaComponent-CCq7YSum.js} +137 -136
- package/chunk/CaptchaComponent-CCq7YSum.js.map +1 -0
- package/chunk/{CaptchaComponent-DD6kFSw9.js → CaptchaComponent-hqx9tSkk.js} +136 -135
- package/chunk/CaptchaComponent-hqx9tSkk.js.map +1 -0
- package/chunk/{ChangeLocaleComponent-BcCMSbju.js → ChangeLocaleComponent-CKKK4OcA.js} +8 -8
- package/chunk/{ChangeLocaleComponent-BcCMSbju.js.map → ChangeLocaleComponent-CKKK4OcA.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-l5uhn4km.js → ChangeLocaleComponent-DtJjnuBc.js} +8 -8
- package/chunk/{ChangeLocaleComponent-l5uhn4km.js.map → ChangeLocaleComponent-DtJjnuBc.js.map} +1 -1
- package/chunk/{City-C1CWD14n.js → City-CUVEjTrI.js} +7 -7
- package/chunk/{City-BJB8URp9.js.map → City-CUVEjTrI.js.map} +1 -1
- package/chunk/{City-BJB8URp9.js → City-Drub1WX8.js} +7 -7
- package/chunk/{City-C1CWD14n.js.map → City-Drub1WX8.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CN-yzFPS.js → CollegeNameComponent-4QYMIIcd.js} +9 -9
- package/chunk/{CollegeNameComponent-CBZS1qbH.js.map → CollegeNameComponent-4QYMIIcd.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CBZS1qbH.js → CollegeNameComponent-C47D3rO4.js} +9 -9
- package/chunk/{CollegeNameComponent-CN-yzFPS.js.map → CollegeNameComponent-C47D3rO4.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-CWCaNcMS.js → CopyToClipboardComponent-DGi3bxV2.js} +9 -9
- package/chunk/{CopyToClipboardComponent-C4DDGwe8.js.map → CopyToClipboardComponent-DGi3bxV2.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-C4DDGwe8.js → CopyToClipboardComponent-cLuyXFes.js} +9 -9
- package/chunk/{CopyToClipboardComponent-CWCaNcMS.js.map → CopyToClipboardComponent-cLuyXFes.js.map} +1 -1
- package/chunk/CountryComponentWrapper-B3Ki9bAz.js +78 -0
- package/chunk/CountryComponentWrapper-B3Ki9bAz.js.map +1 -0
- package/chunk/CountryComponentWrapper-DeR9PrA2.js +82 -0
- package/chunk/CountryComponentWrapper-DeR9PrA2.js.map +1 -0
- package/chunk/{DischargeDateComponent-NhaY0FfR.js → DischargeDateComponent-Btg3v71t.js} +21 -21
- package/chunk/{DischargeDateComponent-NhaY0FfR.js.map → DischargeDateComponent-Btg3v71t.js.map} +1 -1
- package/chunk/{DischargeDateComponent-BWErN092.js → DischargeDateComponent-CqKUrGE0.js} +21 -21
- package/chunk/{DischargeDateComponent-BWErN092.js.map → DischargeDateComponent-CqKUrGE0.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-CFbngokf.js → DriverLicenseNumberComponent-B2arYwHU.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-CFbngokf.js.map → DriverLicenseNumberComponent-B2arYwHU.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-Cfjxx2ik.js → DriverLicenseNumberComponent-ByNoEq6v.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-Cfjxx2ik.js.map → DriverLicenseNumberComponent-ByNoEq6v.js.map} +1 -1
- package/chunk/{EmailLoopPending-DsovStZB.js → EmailLoopPending-HyZBgisU.js} +25 -25
- package/chunk/{EmailLoopPending-CKVWdwQ0.js.map → EmailLoopPending-HyZBgisU.js.map} +1 -1
- package/chunk/{EmailLoopPending-CKVWdwQ0.js → EmailLoopPending-ojWCBFjq.js} +24 -24
- package/chunk/{EmailLoopPending-DsovStZB.js.map → EmailLoopPending-ojWCBFjq.js.map} +1 -1
- package/chunk/{ExtraMessage-CpDDdKiN.js → ExtraMessage-BXxlQROb.js} +7 -7
- package/chunk/{ExtraMessage-CpDDdKiN.js.map → ExtraMessage-BXxlQROb.js.map} +1 -1
- package/chunk/{ExtraMessage-DNuEH_rP.js → ExtraMessage-PLTUBdhw.js} +7 -7
- package/chunk/{ExtraMessage-DNuEH_rP.js.map → ExtraMessage-PLTUBdhw.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BwVToZUo.js → FirstResponderOrganizationComponent-BiI8JG49.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-BwVToZUo.js.map → FirstResponderOrganizationComponent-BiI8JG49.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-NdnMGarL.js → FirstResponderOrganizationComponent-BwzXdBV-.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-NdnMGarL.js.map → FirstResponderOrganizationComponent-BwzXdBV-.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-C81cxxxF.js → FormFieldInputSelect-C6OyLsWL.js} +7 -7
- package/chunk/{FormFieldInputSelect-C81cxxxF.js.map → FormFieldInputSelect-C6OyLsWL.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-ChTWVZ0h.js → FormFieldInputSelect-Cl4QZ12h.js} +7 -7
- package/chunk/{FormFieldInputSelect-ChTWVZ0h.js.map → FormFieldInputSelect-Cl4QZ12h.js.map} +1 -1
- package/chunk/{FormFieldLayout-CuxYu2-h.js → FormFieldLayout-C4SCdGBC.js} +8 -17
- package/chunk/FormFieldLayout-C4SCdGBC.js.map +1 -0
- package/chunk/{FormFieldLayout-BPBIL09f.js → FormFieldLayout-Cj_v9kYa.js} +8 -17
- package/chunk/FormFieldLayout-Cj_v9kYa.js.map +1 -0
- package/chunk/{FormFieldText-Qen7EAhG.js → FormFieldText-BbdrtNh_.js} +7 -7
- package/chunk/{FormFieldText-BTWjkwwz.js.map → FormFieldText-BbdrtNh_.js.map} +1 -1
- package/chunk/{FormFieldText-BTWjkwwz.js → FormFieldText-Gf13Luq7.js} +7 -7
- package/chunk/{FormFieldText-Qen7EAhG.js.map → FormFieldText-Gf13Luq7.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-C8HgVKr6.js → FormFieldTypeahead-DTFxOQnf.js} +70 -70
- package/chunk/{FormFieldTypeahead-C8HgVKr6.js.map → FormFieldTypeahead-DTFxOQnf.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CAjM5rBm.js → FormFieldTypeahead-DbrQgvbJ.js} +85 -85
- package/chunk/{FormFieldTypeahead-CAjM5rBm.js.map → FormFieldTypeahead-DbrQgvbJ.js.map} +1 -1
- package/chunk/{FormFooterComponent-BdT7rv1y.js → FormFooterComponent-B2W5vjOS.js} +1949 -1942
- package/chunk/{FormFooterComponent-BdT7rv1y.js.map → FormFooterComponent-B2W5vjOS.js.map} +1 -1
- package/chunk/{FormFooterComponent-B_Wh4HXO.js → FormFooterComponent-CaOt9TQw.js} +196 -189
- package/chunk/FormFooterComponent-CaOt9TQw.js.map +1 -0
- package/chunk/{FormSelectChoice-qC0WYy1y.js → FormSelectChoice-C4LlT7fR.js} +19 -30
- package/chunk/FormSelectChoice-C4LlT7fR.js.map +1 -0
- package/chunk/{FormSelectChoice-cr9QsYX9.js → FormSelectChoice-CClt04rV.js} +19 -30
- package/chunk/FormSelectChoice-CClt04rV.js.map +1 -0
- package/chunk/{InputText-C8Mt-ybW.js → InputText-BXPuBlPq.js} +7 -7
- package/chunk/{InputText-Bw9hR6-E.js.map → InputText-BXPuBlPq.js.map} +1 -1
- package/chunk/{InputText-Bw9hR6-E.js → InputText-h_myNeHr.js} +7 -7
- package/chunk/{InputText-C8Mt-ybW.js.map → InputText-h_myNeHr.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Qr_OcT4S.js → LicensedProfessionalOrganizationComponent-wJSn67h6.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-DD5D6T1j.js.map → LicensedProfessionalOrganizationComponent-wJSn67h6.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-DD5D6T1j.js → LicensedProfessionalOrganizationComponent-wfXwXvVc.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-Qr_OcT4S.js.map → LicensedProfessionalOrganizationComponent-wfXwXvVc.js.map} +1 -1
- package/chunk/{LogoComponent-BbW4WS1K.js → LogoComponent-Do8K5ydz.js} +6 -6
- package/chunk/{LogoComponent-BbW4WS1K.js.map → LogoComponent-Do8K5ydz.js.map} +1 -1
- package/chunk/{LogoComponent-CRfZyj0K.js → LogoComponent-Dx1G-rzE.js} +6 -6
- package/chunk/{LogoComponent-CRfZyj0K.js.map → LogoComponent-Dx1G-rzE.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-C-ILtROJ.js → LowIncomeOrganizationComponent-C3Dc7HeO.js} +20 -20
- package/chunk/{LowIncomeOrganizationComponent-C-ILtROJ.js.map → LowIncomeOrganizationComponent-C3Dc7HeO.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-ChuZO5oy.js → LowIncomeOrganizationComponent-D8RlrBXa.js} +20 -20
- package/chunk/{LowIncomeOrganizationComponent-ChuZO5oy.js.map → LowIncomeOrganizationComponent-D8RlrBXa.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-wF2iUUU3.js → MedicalProfessionalOrganizationComponent-BlEmZTpI.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-QlMPcO92.js.map → MedicalProfessionalOrganizationComponent-BlEmZTpI.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-QlMPcO92.js → MedicalProfessionalOrganizationComponent-DS1iVIfQ.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-wF2iUUU3.js.map → MedicalProfessionalOrganizationComponent-DS1iVIfQ.js.map} +1 -1
- package/chunk/{MemberIdComponent-DbvTJcos.js → MemberIdComponent-5OnkQeLm.js} +7 -7
- package/chunk/{MemberIdComponent-CuflPh6q.js.map → MemberIdComponent-5OnkQeLm.js.map} +1 -1
- package/chunk/{MemberIdComponent-CuflPh6q.js → MemberIdComponent-sR9aGDN4.js} +7 -7
- package/chunk/{MemberIdComponent-DbvTJcos.js.map → MemberIdComponent-sR9aGDN4.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CvpHrQlx.js → MembershipOrganizationComponent-BrbunU1_.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-CvpHrQlx.js.map → MembershipOrganizationComponent-BrbunU1_.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-rAlof4zj.js → MembershipOrganizationComponent-UqzaA4bV.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-rAlof4zj.js.map → MembershipOrganizationComponent-UqzaA4bV.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-D55ut5Yp.js → PersonalInfoStepSubmitButton-DA3ceOLw.js} +27 -25
- package/chunk/PersonalInfoStepSubmitButton-DA3ceOLw.js.map +1 -0
- package/chunk/{PersonalInfoStepSubmitButton-C7QmpcVd.js → PersonalInfoStepSubmitButton-D_Y9q0Iy.js} +19 -17
- package/chunk/PersonalInfoStepSubmitButton-D_Y9q0Iy.js.map +1 -0
- package/chunk/{PersonalInfoStepWrapper-CQ-P1pon.js → PersonalInfoStepWrapper-6neTJTQD.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-CQ-P1pon.js.map → PersonalInfoStepWrapper-6neTJTQD.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-C3OKK8Mh.js → PersonalInfoStepWrapper-Dsb0Qcv5.js} +21 -21
- package/chunk/{PersonalInfoStepWrapper-C3OKK8Mh.js.map → PersonalInfoStepWrapper-Dsb0Qcv5.js.map} +1 -1
- package/chunk/{PostalCodeComponent-Cd3MQUvZ.js → PostalCodeComponent-BhBBSAL-.js} +7 -7
- package/chunk/{PostalCodeComponent-Bs9KyOzc.js.map → PostalCodeComponent-BhBBSAL-.js.map} +1 -1
- package/chunk/{PostalCodeComponent-Bs9KyOzc.js → PostalCodeComponent-DKC3DspF.js} +7 -7
- package/chunk/{PostalCodeComponent-Cd3MQUvZ.js.map → PostalCodeComponent-DKC3DspF.js.map} +1 -1
- package/chunk/{SSN-Bj9BhqVP.js → SSN-7DHOlAAq.js} +8 -8
- package/chunk/{SSN-Bj9BhqVP.js.map → SSN-7DHOlAAq.js.map} +1 -1
- package/chunk/{SSN-xvlX6KT5.js → SSN-DlBvRiaZ.js} +8 -8
- package/chunk/{SSN-xvlX6KT5.js.map → SSN-DlBvRiaZ.js.map} +1 -1
- package/chunk/{StateSelectComponent-B2sfW_tb.js → StateSelectComponent-BXHXB6Kn.js} +6 -6
- package/chunk/{StateSelectComponent-B2sfW_tb.js.map → StateSelectComponent-BXHXB6Kn.js.map} +1 -1
- package/chunk/{StateSelectComponent-CCIlFilV.js → StateSelectComponent-lM5e-_1v.js} +6 -6
- package/chunk/{StateSelectComponent-CCIlFilV.js.map → StateSelectComponent-lM5e-_1v.js.map} +1 -1
- package/chunk/{StatusComponent-AEKNerJR.js → StatusComponent-BTvs1WVn.js} +15 -14
- package/chunk/StatusComponent-BTvs1WVn.js.map +1 -0
- package/chunk/{StatusComponent-DFtcHMpS.js → StatusComponent-BxQNsHYs.js} +15 -14
- package/chunk/StatusComponent-BxQNsHYs.js.map +1 -0
- package/chunk/StepAgePersonalInfo-BOnOqXxm.js +174 -0
- package/chunk/{StepAgePersonalInfo-BHWaDlVH.js.map → StepAgePersonalInfo-BOnOqXxm.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CH3r6vpW.js → StepAgePersonalInfo-UWfkIpnn.js} +43 -47
- package/chunk/{StepAgePersonalInfo-CH3r6vpW.js.map → StepAgePersonalInfo-UWfkIpnn.js.map} +1 -1
- package/chunk/{StepCard-CPjUPPj0.js → StepCard-B0o7IN6g.js} +5 -5
- package/chunk/{StepCard-CPjUPPj0.js.map → StepCard-B0o7IN6g.js.map} +1 -1
- package/chunk/{StepCard-CbZaVC-t.js → StepCard-CWT2BiAH.js} +5 -5
- package/chunk/{StepCard-CbZaVC-t.js.map → StepCard-CWT2BiAH.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-BcbSXA5J.js → StepCollectIdentifier-CtpUvhZs.js} +11 -11
- package/chunk/{StepCollectIdentifier-BcbSXA5J.js.map → StepCollectIdentifier-CtpUvhZs.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-lhrdWP-H.js → StepCollectIdentifier-D7bSwvYI.js} +15 -15
- package/chunk/{StepCollectIdentifier-lhrdWP-H.js.map → StepCollectIdentifier-D7bSwvYI.js.map} +1 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-BcmZhgl3.js +245 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-BcmZhgl3.js.map +1 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CHxXr8xM.js +249 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CHxXr8xM.js.map +1 -0
- package/chunk/StepCollectPersonalInfo-BlAJbqgb.js +372 -0
- package/chunk/StepCollectPersonalInfo-BlAJbqgb.js.map +1 -0
- package/chunk/StepCollectPersonalInfo-CzLVKlZ3.js +368 -0
- package/chunk/StepCollectPersonalInfo-CzLVKlZ3.js.map +1 -0
- package/chunk/{StepCompleteAuthentication-AKjdo3J9.js → StepCompleteAuthentication-Cnv_QzG7.js} +21 -21
- package/chunk/{StepCompleteAuthentication-AKjdo3J9.js.map → StepCompleteAuthentication-Cnv_QzG7.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-DytIfFlB.js → StepCompleteAuthentication-D7NH3MFa.js} +21 -21
- package/chunk/{StepCompleteAuthentication-DytIfFlB.js.map → StepCompleteAuthentication-D7NH3MFa.js.map} +1 -1
- package/chunk/{StepConsolation-DO8Lm9dv.js → StepConsolation-BrzJnbYN.js} +9 -9
- package/chunk/{StepConsolation-CExfIb_j.js.map → StepConsolation-BrzJnbYN.js.map} +1 -1
- package/chunk/{StepConsolation-CExfIb_j.js → StepConsolation-C5ZHdmQ6.js} +9 -9
- package/chunk/{StepConsolation-DO8Lm9dv.js.map → StepConsolation-C5ZHdmQ6.js.map} +1 -1
- package/chunk/{StepDocUpload-CYElBSeV.js → StepDocUpload-BuH-EW5U.js} +214 -214
- package/chunk/{StepDocUpload-CYElBSeV.js.map → StepDocUpload-BuH-EW5U.js.map} +1 -1
- package/chunk/{StepDocUpload--1-U-569.js → StepDocUpload-D2_e55pR.js} +221 -221
- package/chunk/{StepDocUpload--1-U-569.js.map → StepDocUpload-D2_e55pR.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-ByLP9CLy.js → StepDriverLicensePersonalInfoComponent-DcVZb5ke.js} +32 -32
- package/chunk/{StepDriverLicensePersonalInfoComponent-ByLP9CLy.js.map → StepDriverLicensePersonalInfoComponent-DcVZb5ke.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CpfSPJBD.js → StepDriverLicensePersonalInfoComponent-UZoq9OhC.js} +36 -36
- package/chunk/{StepDriverLicensePersonalInfoComponent-CpfSPJBD.js.map → StepDriverLicensePersonalInfoComponent-UZoq9OhC.js.map} +1 -1
- package/chunk/{StepEmailLoop-Bok5TmMG.js → StepEmailLoop-138hnevc.js} +17 -17
- package/chunk/{StepEmailLoop-Bok5TmMG.js.map → StepEmailLoop-138hnevc.js.map} +1 -1
- package/chunk/{StepEmailLoop-CdREX-4w.js → StepEmailLoop-p3PjfBvc.js} +17 -17
- package/chunk/{StepEmailLoop-CdREX-4w.js.map → StepEmailLoop-p3PjfBvc.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-XVAvZ0te.js → StepEmploymentPersonalInfo-CIb2V_Aj.js} +44 -44
- package/chunk/{StepEmploymentPersonalInfo-DqFNiu3C.js.map → StepEmploymentPersonalInfo-CIb2V_Aj.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DqFNiu3C.js → StepEmploymentPersonalInfo-txyihsja.js} +48 -48
- package/chunk/{StepEmploymentPersonalInfo-XVAvZ0te.js.map → StepEmploymentPersonalInfo-txyihsja.js.map} +1 -1
- package/chunk/StepFirstResponderPersonalInfo-CSGMgT02.js +186 -0
- package/chunk/StepFirstResponderPersonalInfo-CSGMgT02.js.map +1 -0
- package/chunk/StepFirstResponderPersonalInfo-gF_5zHxj.js +182 -0
- package/chunk/StepFirstResponderPersonalInfo-gF_5zHxj.js.map +1 -0
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BfYxugan.js → StepGeneralIdentityPersonalInfoComponent-Cgp_PX5L.js} +45 -45
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BfYxugan.js.map → StepGeneralIdentityPersonalInfoComponent-Cgp_PX5L.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BqHvbrkO.js → StepGeneralIdentityPersonalInfoComponent-D4wP5D1G.js} +41 -41
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BqHvbrkO.js.map → StepGeneralIdentityPersonalInfoComponent-D4wP5D1G.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C4SFltJf.js → StepHybridIdentityPersonalInfoComponent-Cez-TR1Z.js} +44 -44
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C4SFltJf.js.map → StepHybridIdentityPersonalInfoComponent-Cez-TR1Z.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-D2bEcQKw.js → StepHybridIdentityPersonalInfoComponent-ChtlT4nZ.js} +48 -48
- package/chunk/{StepHybridIdentityPersonalInfoComponent-D2bEcQKw.js.map → StepHybridIdentityPersonalInfoComponent-ChtlT4nZ.js.map} +1 -1
- package/chunk/StepIDCheckLoop-CX6VsvAJ.js +24 -0
- package/chunk/{StepIDCheckLoop-BDark2Di.js.map → StepIDCheckLoop-CX6VsvAJ.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BDark2Di.js → StepIDCheckLoop-DFhu-v9n.js} +8 -8
- package/chunk/{StepIDCheckLoop-C0g-rLtR.js.map → StepIDCheckLoop-DFhu-v9n.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BzrLqUIy.js → StepIDCheckLoopOnfido-0o-ZdynC.js} +48 -48
- package/chunk/{StepIDCheckLoopOnfido-CpsFKeIS.js.map → StepIDCheckLoopOnfido-0o-ZdynC.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CpsFKeIS.js → StepIDCheckLoopOnfido-CiuUU7f9.js} +53 -53
- package/chunk/{StepIDCheckLoopOnfido-BzrLqUIy.js.map → StepIDCheckLoopOnfido-CiuUU7f9.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-nvw5YyKo.js → StepIDCheckLoopRegula-D5Ln2I62.js} +21 -21
- package/chunk/{StepIDCheckLoopRegula-DBaRIxgp.js.map → StepIDCheckLoopRegula-D5Ln2I62.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DBaRIxgp.js → StepIDCheckLoopRegula-D94f7Ccr.js} +21 -21
- package/chunk/{StepIDCheckLoopRegula-nvw5YyKo.js.map → StepIDCheckLoopRegula-D94f7Ccr.js.map} +1 -1
- package/chunk/StepLicensedProfessionalPersonalInfo-BHInsLPJ.js +180 -0
- package/chunk/StepLicensedProfessionalPersonalInfo-BHInsLPJ.js.map +1 -0
- package/chunk/StepLicensedProfessionalPersonalInfo-CHQbAgsG.js +176 -0
- package/chunk/StepLicensedProfessionalPersonalInfo-CHQbAgsG.js.map +1 -0
- package/chunk/StepLowIncomePersonalInfo-DVDI4DRm.js +234 -0
- package/chunk/StepLowIncomePersonalInfo-DVDI4DRm.js.map +1 -0
- package/chunk/StepLowIncomePersonalInfo-oBDI4ML2.js +238 -0
- package/chunk/StepLowIncomePersonalInfo-oBDI4ML2.js.map +1 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-DmoUExs9.js +208 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-DmoUExs9.js.map +1 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-_x2wcVNS.js +212 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-_x2wcVNS.js.map +1 -0
- package/chunk/StepMemberPersonalInfo-BAjKLJCl.js +153 -0
- package/chunk/{StepMemberPersonalInfo-JVdhDDsO.js.map → StepMemberPersonalInfo-BAjKLJCl.js.map} +1 -1
- package/chunk/StepMemberPersonalInfo-CI9Q06Ic.js +157 -0
- package/chunk/{StepMemberPersonalInfo-oxD7cpuH.js.map → StepMemberPersonalInfo-CI9Q06Ic.js.map} +1 -1
- package/chunk/StepMoverPersonalInfo-CVT4pPa6.js +144 -0
- package/chunk/{StepMoverPersonalInfo-DQ6omvFs.js.map → StepMoverPersonalInfo-CVT4pPa6.js.map} +1 -1
- package/chunk/StepMoverPersonalInfo-DIkMi5zU.js +140 -0
- package/chunk/{StepMoverPersonalInfo-DoRQ7YwV.js.map → StepMoverPersonalInfo-DIkMi5zU.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Bk4iLCjb.js → StepOverrideComponent-B9HVSPlq.js} +16 -16
- package/chunk/StepOverrideComponent-B9HVSPlq.js.map +1 -0
- package/chunk/{StepOverrideComponent-BScdpQsD.js → StepOverrideComponent-DOBT7C22.js} +16 -16
- package/chunk/StepOverrideComponent-DOBT7C22.js.map +1 -0
- package/chunk/{StepSMSLoop-Qhui36Ad.js → StepSMSLoop-BM7UE2tP.js} +20 -20
- package/chunk/{StepSMSLoop-CKgyKNf3.js.map → StepSMSLoop-BM7UE2tP.js.map} +1 -1
- package/chunk/{StepSMSLoop-CKgyKNf3.js → StepSMSLoop-Wr-MrFaf.js} +19 -19
- package/chunk/{StepSMSLoop-Qhui36Ad.js.map → StepSMSLoop-Wr-MrFaf.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-B73JU0Vm.js → StepSocialSecurityNumber-DepVz3V7.js} +26 -26
- package/chunk/{StepSocialSecurityNumber-B73JU0Vm.js.map → StepSocialSecurityNumber-DepVz3V7.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CxzmRJyj.js → StepSocialSecurityNumber-LcWg-zo5.js} +26 -26
- package/chunk/{StepSocialSecurityNumber-CxzmRJyj.js.map → StepSocialSecurityNumber-LcWg-zo5.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-qiawIhbf.js → StepStudentPersonalInfo-CxPq9ICS.js} +47 -47
- package/chunk/{StepStudentPersonalInfo-DSlm69iu.js.map → StepStudentPersonalInfo-CxPq9ICS.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DSlm69iu.js → StepStudentPersonalInfo-DQMWaRSa.js} +77 -77
- package/chunk/{StepStudentPersonalInfo-qiawIhbf.js.map → StepStudentPersonalInfo-DQMWaRSa.js.map} +1 -1
- package/chunk/{StepSuccess-CY6HRbL0.js → StepSuccess-C3a0CPsE.js} +30 -30
- package/chunk/{StepSuccess-BFHXLjzL.js.map → StepSuccess-C3a0CPsE.js.map} +1 -1
- package/chunk/{StepSuccess-BFHXLjzL.js → StepSuccess-CvK7t1zN.js} +29 -29
- package/chunk/{StepSuccess-CY6HRbL0.js.map → StepSuccess-CvK7t1zN.js.map} +1 -1
- package/chunk/StepTeacherPersonalInfo-DhOL3_0H.js +154 -0
- package/chunk/{StepTeacherPersonalInfo-BzO0_kSV.js.map → StepTeacherPersonalInfo-DhOL3_0H.js.map} +1 -1
- package/chunk/StepTeacherPersonalInfo-_Wwkq-dn.js +150 -0
- package/chunk/{StepTeacherPersonalInfo-D5JC_By3.js.map → StepTeacherPersonalInfo-_Wwkq-dn.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-DUAkXH8Y.js → TeacherSchoolComponent-3HVz97q_.js} +9 -9
- package/chunk/{TeacherSchoolComponent-DSr16b-J.js.map → TeacherSchoolComponent-3HVz97q_.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-DSr16b-J.js → TeacherSchoolComponent-BwLUGmNi.js} +9 -9
- package/chunk/{TeacherSchoolComponent-DUAkXH8Y.js.map → TeacherSchoolComponent-BwLUGmNi.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-Bt8QuyMY.js → TestingRouteOverrides-CAGESMw9.js} +26 -26
- package/chunk/{TestingRouteOverrides-BeBP6XXB.js.map → TestingRouteOverrides-CAGESMw9.js.map} +1 -1
- package/chunk/TestingRouteOverrides-CrhfSmLr.js +77 -0
- package/chunk/{TestingRouteOverrides-Bt8QuyMY.js.map → TestingRouteOverrides-CrhfSmLr.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-xKQFqber.js → VerificationApiClient-BcE3SjuJ.js} +377 -414
- package/chunk/{VerificationApiClient-CNCGYJN0.js.map → VerificationApiClient-BcE3SjuJ.js.map} +1 -1
- package/chunk/{VerificationApiClient-CNCGYJN0.js → VerificationApiClient-fJ7P4ejD.js} +424 -421
- package/chunk/{VerificationApiClient-xKQFqber.js.map → VerificationApiClient-fJ7P4ejD.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-AR9k3KRg.js} +5 -5
- package/chunk/{countryUtils-Bg9KdIbF.js.map → countryUtils-AR9k3KRg.js.map} +1 -1
- package/chunk/countryUtils-DWqId-zY.js +12 -0
- package/chunk/{countryUtils-QLzXPJsg.js.map → countryUtils-DWqId-zY.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-lpoogWsV.js → downshift.esm-BKI3sFd7.js} +7 -7
- package/chunk/{downshift.esm-lpoogWsV.js.map → downshift.esm-BKI3sFd7.js.map} +1 -1
- package/chunk/{downshift.esm-BLpaOzFc.js → downshift.esm-DryiNDJI.js} +7 -7
- package/chunk/{downshift.esm-BLpaOzFc.js.map → downshift.esm-DryiNDJI.js.map} +1 -1
- package/chunk/el-Bv_XQ0FX.js +4 -4
- package/chunk/{empties-DctbDY5s.js → empties-B6naRhes.js} +64 -73
- package/chunk/empties-B6naRhes.js.map +1 -0
- package/chunk/{empties-COfIPxJ5.js → empties-Crmkxudi.js} +64 -73
- package/chunk/empties-Crmkxudi.js.map +1 -0
- 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-DLtMDttz.js → hooks-C15H5pD-.js} +481 -481
- package/chunk/hooks-C15H5pD-.js.map +1 -0
- package/chunk/{hooks-PN48cX8E.js → hooks-ChQrxN58.js} +480 -480
- package/chunk/hooks-ChQrxN58.js.map +1 -0
- 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-e5WHiYfA.js} +8 -7
- package/chunk/intl-e5WHiYfA.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-lVLuHIkM.js → jsx-runtime-Ini3eO9_.js} +18 -18
- package/chunk/{jsx-runtime-QRCZ6ZTK.js.map → jsx-runtime-Ini3eO9_.js.map} +1 -1
- package/chunk/{jsx-runtime-QRCZ6ZTK.js → jsx-runtime-LqzCS-0D.js} +18 -18
- package/chunk/{jsx-runtime-lVLuHIkM.js.map → jsx-runtime-LqzCS-0D.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/{mocks-BN2OnOjp.js → mocks-DGc1byho.js} +10 -9
- package/chunk/{mocks-l2e0aaeT.js.map → mocks-DGc1byho.js.map} +1 -1
- package/chunk/{mocks-l2e0aaeT.js → mocks-RU9BGNOn.js} +9 -8
- package/chunk/{mocks-BN2OnOjp.js.map → mocks-RU9BGNOn.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-pBCAJBwS.js} +8 -7
- package/chunk/options-pBCAJBwS.js.map +1 -0
- package/chunk/pl-X0qJw7IS.js +4 -4
- package/chunk/{programThemeGetters-4Wf-YSPx.js → programThemeGetters-C9Sw0RZq.js} +45 -45
- package/chunk/{programThemeGetters-4Wf-YSPx.js.map → programThemeGetters-C9Sw0RZq.js.map} +1 -1
- package/chunk/programThemeGetters-uLsgGat1.js +153 -0
- package/chunk/{programThemeGetters-DECHMs91.js.map → programThemeGetters-uLsgGat1.js.map} +1 -1
- package/chunk/pt-BR-C6XmLn3o.js +4 -4
- package/chunk/pt-o7v4iOVx.js +4 -4
- package/chunk/{refs-B8CaE8yL.js → refs-CGvEbCaw.js} +5 -5
- package/chunk/{refs-6KTRrw-F.js.map → refs-CGvEbCaw.js.map} +1 -1
- package/chunk/{refs-6KTRrw-F.js → refs-CI3K5ndt.js} +5 -5
- package/chunk/{refs-B8CaE8yL.js.map → refs-CI3K5ndt.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-BdqtwfRd.js +133 -0
- package/chunk/stepComponentHelpers-BdqtwfRd.js.map +1 -0
- package/chunk/stepComponentHelpers-DIHMDrmF.js +129 -0
- package/chunk/stepComponentHelpers-DIHMDrmF.js.map +1 -0
- 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-BsX_IHLN.js +62 -0
- package/chunk/useCollectFieldsEndpoint-BsX_IHLN.js.map +1 -0
- package/chunk/useCollectFieldsEndpoint-D7OQBDpX.js +66 -0
- package/chunk/useCollectFieldsEndpoint-D7OQBDpX.js.map +1 -0
- package/chunk/{useMetrics-CiB8jnkE.js → useMetrics-BrHWTzbP.js} +19 -19
- package/chunk/{useMetrics-iqbs0R1u.js.map → useMetrics-BrHWTzbP.js.map} +1 -1
- package/chunk/{useMetrics-iqbs0R1u.js → useMetrics-O5xTFm6y.js} +19 -19
- package/chunk/{useMetrics-CiB8jnkE.js.map → useMetrics-O5xTFm6y.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 +284 -280
- package/sheerid.js.map +1 -1
- package/chunk/ApiUrls-CHE6ck1K.js.map +0 -1
- package/chunk/ApiUrls-bBmJ3tKE.js +0 -40
- package/chunk/ApiUrls-bBmJ3tKE.js.map +0 -1
- package/chunk/CaptchaComponent-CaHSH2GC.js.map +0 -1
- package/chunk/CaptchaComponent-DD6kFSw9.js.map +0 -1
- package/chunk/CountryComponentWrapper-CEbjr-D-.js +0 -78
- package/chunk/CountryComponentWrapper-CEbjr-D-.js.map +0 -1
- package/chunk/CountryComponentWrapper-Df9x54iO.js +0 -74
- package/chunk/CountryComponentWrapper-Df9x54iO.js.map +0 -1
- package/chunk/FormFieldLayout-BPBIL09f.js.map +0 -1
- package/chunk/FormFieldLayout-CuxYu2-h.js.map +0 -1
- package/chunk/FormFooterComponent-B_Wh4HXO.js.map +0 -1
- package/chunk/FormSelectChoice-cr9QsYX9.js.map +0 -1
- package/chunk/FormSelectChoice-qC0WYy1y.js.map +0 -1
- package/chunk/PersonalInfoStepSubmitButton-C7QmpcVd.js.map +0 -1
- package/chunk/PersonalInfoStepSubmitButton-D55ut5Yp.js.map +0 -1
- package/chunk/StatusComponent-AEKNerJR.js.map +0 -1
- package/chunk/StatusComponent-DFtcHMpS.js.map +0 -1
- package/chunk/StepActiveMilitaryPersonalInfoComponent-AJL4fROB.js +0 -179
- package/chunk/StepActiveMilitaryPersonalInfoComponent-AJL4fROB.js.map +0 -1
- package/chunk/StepActiveMilitaryPersonalInfoComponent-Blc8C61_.js +0 -183
- package/chunk/StepActiveMilitaryPersonalInfoComponent-Blc8C61_.js.map +0 -1
- package/chunk/StepAgePersonalInfo-BHWaDlVH.js +0 -170
- package/chunk/StepCollectMilitaryStatusComponent-CYQ-3N3X.js +0 -13
- package/chunk/StepCollectMilitaryStatusComponent-DxU3lmaC.js +0 -9
- package/chunk/StepCollectPersonalInfo-CdPFtWnn.js +0 -358
- package/chunk/StepCollectPersonalInfo-CdPFtWnn.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-CdkTtRFu.js +0 -362
- package/chunk/StepCollectPersonalInfo-CdkTtRFu.js.map +0 -1
- package/chunk/StepFirstResponderPersonalInfo-C9AchvP4.js +0 -172
- package/chunk/StepFirstResponderPersonalInfo-C9AchvP4.js.map +0 -1
- package/chunk/StepFirstResponderPersonalInfo-CR6tqqbj.js +0 -176
- package/chunk/StepFirstResponderPersonalInfo-CR6tqqbj.js.map +0 -1
- package/chunk/StepIDCheckLoop-C0g-rLtR.js +0 -24
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-BA-Z6yOh.js +0 -241
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-BA-Z6yOh.js.map +0 -1
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-CEAoUlPI.js +0 -237
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-CEAoUlPI.js.map +0 -1
- package/chunk/StepLicensedProfessionalPersonalInfo-BDOe8tXK.js +0 -190
- package/chunk/StepLicensedProfessionalPersonalInfo-BDOe8tXK.js.map +0 -1
- package/chunk/StepLicensedProfessionalPersonalInfo-CvHsH0eA.js +0 -186
- package/chunk/StepLicensedProfessionalPersonalInfo-CvHsH0eA.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-Dy3cf7Vq.js +0 -223
- package/chunk/StepLowIncomePersonalInfo-Dy3cf7Vq.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-Xn7Si16w.js +0 -227
- package/chunk/StepLowIncomePersonalInfo-Xn7Si16w.js.map +0 -1
- package/chunk/StepMedicalProfessionalPersonalInfo-C4RpaXrw.js +0 -207
- package/chunk/StepMedicalProfessionalPersonalInfo-C4RpaXrw.js.map +0 -1
- package/chunk/StepMedicalProfessionalPersonalInfo-Cdjst53o.js +0 -203
- package/chunk/StepMedicalProfessionalPersonalInfo-Cdjst53o.js.map +0 -1
- package/chunk/StepMemberPersonalInfo-JVdhDDsO.js +0 -157
- package/chunk/StepMemberPersonalInfo-oxD7cpuH.js +0 -153
- package/chunk/StepMoverPersonalInfo-DQ6omvFs.js +0 -140
- package/chunk/StepMoverPersonalInfo-DoRQ7YwV.js +0 -144
- package/chunk/StepOverrideComponent-BScdpQsD.js.map +0 -1
- package/chunk/StepOverrideComponent-Bk4iLCjb.js.map +0 -1
- package/chunk/StepTeacherPersonalInfo-BzO0_kSV.js +0 -150
- package/chunk/StepTeacherPersonalInfo-D5JC_By3.js +0 -154
- package/chunk/TestingRouteOverrides-BeBP6XXB.js +0 -77
- package/chunk/VerificationApiUtils-EYLI_y22.js +0 -25
- package/chunk/VerificationApiUtils-EYLI_y22.js.map +0 -1
- package/chunk/VerificationApiUtils-PcnM2IQD.js +0 -21
- package/chunk/VerificationApiUtils-PcnM2IQD.js.map +0 -1
- package/chunk/countryUtils-Bg9KdIbF.js +0 -12
- package/chunk/empties-COfIPxJ5.js.map +0 -1
- package/chunk/empties-DctbDY5s.js.map +0 -1
- package/chunk/hooks-DLtMDttz.js.map +0 -1
- package/chunk/hooks-PN48cX8E.js.map +0 -1
- package/chunk/intl-TN1Dianl.js.map +0 -1
- package/chunk/militaryStepHelpers-CF0fNRKQ.js +0 -26
- package/chunk/militaryStepHelpers-CF0fNRKQ.js.map +0 -1
- package/chunk/militaryStepHelpers-W31scSUE.js +0 -22
- package/chunk/militaryStepHelpers-W31scSUE.js.map +0 -1
- package/chunk/options-BK6Zk2Oe.js.map +0 -1
- package/chunk/programThemeGetters-DECHMs91.js +0 -153
- package/chunk/stepComponentHelpers-Darhp1Nn.js +0 -170
- package/chunk/stepComponentHelpers-Darhp1Nn.js.map +0 -1
- package/chunk/stepComponentHelpers-DeWac6nj.js +0 -174
- package/chunk/stepComponentHelpers-DeWac6nj.js.map +0 -1
- package/chunk/useCollectFieldsEndpoint-BToJZbHd.js +0 -37
- package/chunk/useCollectFieldsEndpoint-BToJZbHd.js.map +0 -1
- package/chunk/useCollectFieldsEndpoint-CqUxwQWc.js +0 -41
- package/chunk/useCollectFieldsEndpoint-CqUxwQWc.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectChoice-cr9QsYX9.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,Q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AAI,GAChC,GAGK;AACT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectChoice-qC0WYy1y.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,WAA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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":"PersonalInfoStepSubmitButton-C7QmpcVd.js","names":[],"sources":["../../src/components/FormFields/Email/EmailComponent.tsx","../../src/components/PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;\n}\n\nexport const Email = ({\n value,\n isErrored,\n onChange,\n explanation = \"\",\n intl,\n onKeyDown = () => {},\n onBlur = () => {},\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & PassedProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"email\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"email\"\n value={value}\n onChange={onChange}\n type=\"email\"\n autoComplete=\"email\"\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"emailAddressPlaceholder\", defaultMessage: \"Email\" })\n }\n label={<FormattedHTMLMessage id=\"emailAddress\" defaultMessage=\"Email address\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage id=\"errorId.invalidEmail\" defaultMessage=\"Invalid email\" />\n )\n }\n explanation={explanation}\n showPlaceholderAndHideLabel={!!placeholder}\n onKeyDown={(e) => onKeyDown(e)}\n onBlur={(e) => onBlur(e)}\n disabled={disabled}\n />\n );\n};\n\nexport const EmailComponent = injectIntl(Email);\n","import type React from \"react\";\nimport { useEffect } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type VerificationService, type ViewModel } from \"../../lib/types/types\";\nimport { submitForm } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { isFormFilled } from \"../../lib/validators/validators\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport {\n type CollectStepStartEvent,\n type CollectStepSubmitEvent,\n CustomMetricNames,\n EventName,\n recordGaEvent,\n} from \"../../lib/GoogleAnalytics/ga\";\nimport {\n COLLECT_INFO_SUBMISSION_TIME,\n COLLECT_INFO_SUBMIT,\n useMetrics,\n} from \"../FeatureFlags/useMetrics\";\n\ninterface PersonalInfoStepSubmitButtonProps {\n step: CollectInfoSteps;\n verificationService: VerificationService;\n viewModel: ViewModel;\n buttonText: React.ReactNode;\n failedInstantMatch?: boolean;\n}\n\nconst wrapperClassNames: Record<CollectInfoSteps, string> = {\n collectStudentPersonalInfo: \"sid-student--submit\",\n collectSeniorPersonalInfo: \"sid-senior-submit\",\n collectTeacherPersonalInfo: \"sid-teacher-submit\",\n collectMoverPersonalInfo: \"sid-mover-submit\",\n collectInactiveMilitaryPersonalInfo: \"sid-inactive-military-submit sid-military-submit\",\n collectActiveMilitaryPersonalInfo: \"sid-active-military-personal-submit sid-military-submit\",\n collectMilitaryStatus: \"\",\n collectMemberPersonalInfo: \"sid-member-submit\",\n collectMedicalProfessionalPersonalInfo: \"sid-medical-submit\",\n collectLowIncomePersonalInfo: \"sid-low-income-submit\",\n collectLicensedProfessionalPersonalInfo: \"sid-licensed-professional-submit\",\n collectHybridIdentityPersonalInfo: \"sid-hybrid-identity-submit\",\n collectGeneralIdentityPersonalInfo: \"sid-general-identity-submit\",\n collectDriverLicensePersonalInfo: \"sid-drivers-license-submit\",\n collectFirstResponderPersonalInfo: \"sid-first-responder-personal-info-submit\",\n collectEmployeePersonalInfo: \"sid-employment-submit\",\n collectAgePersonalInfo: \"sid-age-personal-info-submit\",\n collectIdentifier: \"sid-identifier-submit\",\n collectPersonalInfo: \"sid-personal-info-submit\",\n};\n\nconst buttonClassNames: Record<CollectInfoSteps, string> = {\n collectStudentPersonalInfo: \"sid-student-submit-btn\",\n collectSeniorPersonalInfo: \"sid-senior-submit-btn\",\n collectTeacherPersonalInfo: \"sid-teacher-submit-btn\",\n collectMoverPersonalInfo: \"sid-mover-submit-btn\",\n collectInactiveMilitaryPersonalInfo: \"sid-inactive-military-submit-btn sid-military-submit-btn\",\n collectActiveMilitaryPersonalInfo:\n \"sid-active-military-personal-submit-btn sid-military-submit-btn\",\n collectMilitaryStatus: \"\",\n collectMemberPersonalInfo: \"sid-member-submit-btn\",\n collectMedicalProfessionalPersonalInfo: \"sid-medical-submit-btn\",\n collectLowIncomePersonalInfo: \"sid-low-income-submit-btn\",\n collectLicensedProfessionalPersonalInfo: \"sid-licensed-professional-submit-btn\",\n collectHybridIdentityPersonalInfo: \"sid-hybrid-identity-submit-btn\",\n collectGeneralIdentityPersonalInfo: \"sid-general-identity-submit-btn\",\n collectDriverLicensePersonalInfo: \"sid-drivers-license-submit-btn\",\n collectFirstResponderPersonalInfo: \"sid-first-responder-submit-btn\",\n collectEmployeePersonalInfo: \"sid-employment-submit-btn\",\n collectAgePersonalInfo: \"sid-age-personal-info-btn\",\n collectIdentifier: \"sid-identifier-submit-btn\",\n collectPersonalInfo: \"sid-personal-info-submit-btn\",\n};\n\nconst usesWrapperID: CollectInfoSteps[] = [\n VerificationStepsEnum.collectMoverPersonalInfo,\n VerificationStepsEnum.collectStudentPersonalInfo,\n VerificationStepsEnum.collectEmployeePersonalInfo,\n];\n\n/**\n * A shared wrapper for all personal info collect steps.\n */\nexport const PersonalInfoStepSubmitButton: React.FC<PersonalInfoStepSubmitButtonProps> = ({\n step,\n verificationService,\n viewModel,\n buttonText,\n failedInstantMatch = false,\n}) => {\n const { userDidConvert, getTimeOnForm } = useMetrics({\n segment: verificationService.verificationResponse.segment,\n programId: verificationService.programId,\n });\n\n useEffect(() => {\n const event: CollectStepStartEvent = {\n eventName: EventName.COLLECT_STARTED,\n params: {},\n };\n\n recordGaEvent(event);\n }, []);\n\n const successCallback = () => {\n try {\n const event: CollectStepSubmitEvent = {\n eventName: EventName.COLLECT_SUBMITTED,\n params: {\n [CustomMetricNames.EVENT_DURATION]: getTimeOnForm().duration,\n },\n };\n recordGaEvent(event);\n } catch (e) {\n logger.warn(\"Unable to measure time on form\");\n }\n\n userDidConvert(COLLECT_INFO_SUBMIT, COLLECT_INFO_SUBMISSION_TIME);\n };\n\n // The majority of the class/id dancing in this component are to support the\n // existing inconsistencies in our different collect info steps when they were\n // brought together into this shared component. When we get away from css based\n // customization this can get much saner\n const wrapperCls = wrapperClassNames[step];\n const buttonCls = buttonClassNames[step];\n\n const btnId = usesWrapperID.includes(step)\n ? \"sid-submit-wrapper__collect-info\"\n : \"sid-submit-btn-collect-info\";\n\n const btnText = failedInstantMatch ? (\n <FormattedHTMLMessage id=\"tryAgain\" defaultMessage=\"Try Again\" />\n ) : (\n buttonText\n );\n\n const textSpanProps =\n step === VerificationStepsEnum.collectEmployeePersonalInfo\n ? { className: \"sid-employment-submit-btn__text\" }\n : {};\n const isDisabled = !isFormFilled(viewModel, verificationService.formValidationOptions);\n\n return (\n <div className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\">\n <div className={`${wrapperCls} sid-submit`}>\n <button\n id={btnId}\n onClick={() => submitForm(viewModel, verificationService, step, successCallback)}\n type=\"submit\"\n className={`sid-btn ${buttonCls} sid-btn--dark sid-l-full-width ${\n isDisabled ? \"sid-btn--disabled-like\" : \"\"\n }`}\n aria-labelledby=\"verify-status-text\"\n ref={(button) => setRef(\"submitButton\", button)}\n aria-disabled={isDisabled}\n data-testid=\"submit-button\"\n >\n <span id=\"verify-status-text\" {...textSpanProps}>\n {btnText}\n </span>\n </button>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;aAyDa,IAAiB,GA3CR,EACpB,UACA,cACA,aACA,iBAAc,IACd,SACA,qBAAkB,CAAC,GACnB,kBAAe,CAAC,GAChB,iBAAc,IACd,cAAW,SAEW,EAAwB,OAAO,GAAG,SAG/C,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACG;CACV,MAAK;CACL,cAAa;CACb,aACE,KACA,EAAK,kBAAkB;EAAE,IAAI;EAA2B,gBAAgB;CAAQ,CAAC;CAEnF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAe,gBAAe;CAAiB,CAAA;CAC/E,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAuB,gBAAe;CAAiB,CAAA;CAGvE;CACb,6BAA6B,CAAC,CAAC;CAC/B,YAAY,MAAM,EAAU,CAAC;CAC7B,SAAS,MAAM,EAAO,CAAC;CACb;AACX,CAAA,CAIyC,kCCzBxC,IAAsD;CAC1D,4BAA4B;CAC5B,2BAA2B;CAC3B,4BAA4B;CAC5B,0BAA0B;CAC1B,qCAAqC;CACrC,mCAAmC;CACnC,uBAAuB;CACvB,2BAA2B;CAC3B,wCAAwC;CACxC,8BAA8B;CAC9B,yCAAyC;CACzC,mCAAmC;CACnC,oCAAoC;CACpC,kCAAkC;CAClC,mCAAmC;CACnC,6BAA6B;CAC7B,wBAAwB;CACxB,mBAAmB;CACnB,qBAAqB;AACvB,GAEM,IAAqD;CACzD,4BAA4B;CAC5B,2BAA2B;CAC3B,4BAA4B;CAC5B,0BAA0B;CAC1B,qCAAqC;CACrC,mCACE;CACF,uBAAuB;CACvB,2BAA2B;CAC3B,wCAAwC;CACxC,8BAA8B;CAC9B,yCAAyC;CAC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,MAAM,MAAW,EAAO,gBAAgB,CAAM;IAC9C,iBAAe;IACf,eAAY;cAEZ,iBAAA,GAAA,EAAA,KAAC,QAAD;KAAM,IAAG;KAAqB,GAAI;eAC/B;IACG,CAAA;GACA,CAAA;EACL,CAAA;CACF,CAAA;AAET"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PersonalInfoStepSubmitButton-D55ut5Yp.js","names":[],"sources":["../../src/components/FormFields/Email/EmailComponent.tsx","../../src/components/PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;\n}\n\nexport const Email = ({\n value,\n isErrored,\n onChange,\n explanation = \"\",\n intl,\n onKeyDown = () => {},\n onBlur = () => {},\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & PassedProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"email\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"email\"\n value={value}\n onChange={onChange}\n type=\"email\"\n autoComplete=\"email\"\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"emailAddressPlaceholder\", defaultMessage: \"Email\" })\n }\n label={<FormattedHTMLMessage id=\"emailAddress\" defaultMessage=\"Email address\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage id=\"errorId.invalidEmail\" defaultMessage=\"Invalid email\" />\n )\n }\n explanation={explanation}\n showPlaceholderAndHideLabel={!!placeholder}\n onKeyDown={(e) => onKeyDown(e)}\n onBlur={(e) => onBlur(e)}\n disabled={disabled}\n />\n );\n};\n\nexport const EmailComponent = injectIntl(Email);\n","import type React from \"react\";\nimport { useEffect } from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type VerificationService, type ViewModel } from \"../../lib/types/types\";\nimport { submitForm } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { isFormFilled } from \"../../lib/validators/validators\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport {\n type CollectStepStartEvent,\n type CollectStepSubmitEvent,\n CustomMetricNames,\n EventName,\n recordGaEvent,\n} from \"../../lib/GoogleAnalytics/ga\";\nimport {\n COLLECT_INFO_SUBMISSION_TIME,\n COLLECT_INFO_SUBMIT,\n useMetrics,\n} from \"../FeatureFlags/useMetrics\";\n\ninterface PersonalInfoStepSubmitButtonProps {\n step: CollectInfoSteps;\n verificationService: VerificationService;\n viewModel: ViewModel;\n buttonText: React.ReactNode;\n failedInstantMatch?: boolean;\n}\n\nconst wrapperClassNames: Record<CollectInfoSteps, string> = {\n collectStudentPersonalInfo: \"sid-student--submit\",\n collectSeniorPersonalInfo: \"sid-senior-submit\",\n collectTeacherPersonalInfo: \"sid-teacher-submit\",\n collectMoverPersonalInfo: \"sid-mover-submit\",\n collectInactiveMilitaryPersonalInfo: \"sid-inactive-military-submit sid-military-submit\",\n collectActiveMilitaryPersonalInfo: \"sid-active-military-personal-submit sid-military-submit\",\n collectMilitaryStatus: \"\",\n collectMemberPersonalInfo: \"sid-member-submit\",\n collectMedicalProfessionalPersonalInfo: \"sid-medical-submit\",\n collectLowIncomePersonalInfo: \"sid-low-income-submit\",\n collectLicensedProfessionalPersonalInfo: \"sid-licensed-professional-submit\",\n collectHybridIdentityPersonalInfo: \"sid-hybrid-identity-submit\",\n collectGeneralIdentityPersonalInfo: \"sid-general-identity-submit\",\n collectDriverLicensePersonalInfo: \"sid-drivers-license-submit\",\n collectFirstResponderPersonalInfo: \"sid-first-responder-personal-info-submit\",\n collectEmployeePersonalInfo: \"sid-employment-submit\",\n collectAgePersonalInfo: \"sid-age-personal-info-submit\",\n collectIdentifier: \"sid-identifier-submit\",\n collectPersonalInfo: \"sid-personal-info-submit\",\n};\n\nconst buttonClassNames: Record<CollectInfoSteps, string> = {\n collectStudentPersonalInfo: \"sid-student-submit-btn\",\n collectSeniorPersonalInfo: \"sid-senior-submit-btn\",\n collectTeacherPersonalInfo: \"sid-teacher-submit-btn\",\n collectMoverPersonalInfo: \"sid-mover-submit-btn\",\n collectInactiveMilitaryPersonalInfo: \"sid-inactive-military-submit-btn sid-military-submit-btn\",\n collectActiveMilitaryPersonalInfo:\n \"sid-active-military-personal-submit-btn sid-military-submit-btn\",\n collectMilitaryStatus: \"\",\n collectMemberPersonalInfo: \"sid-member-submit-btn\",\n collectMedicalProfessionalPersonalInfo: \"sid-medical-submit-btn\",\n collectLowIncomePersonalInfo: \"sid-low-income-submit-btn\",\n collectLicensedProfessionalPersonalInfo: \"sid-licensed-professional-submit-btn\",\n collectHybridIdentityPersonalInfo: \"sid-hybrid-identity-submit-btn\",\n collectGeneralIdentityPersonalInfo: \"sid-general-identity-submit-btn\",\n collectDriverLicensePersonalInfo: \"sid-drivers-license-submit-btn\",\n collectFirstResponderPersonalInfo: \"sid-first-responder-submit-btn\",\n collectEmployeePersonalInfo: \"sid-employment-submit-btn\",\n collectAgePersonalInfo: \"sid-age-personal-info-btn\",\n collectIdentifier: \"sid-identifier-submit-btn\",\n collectPersonalInfo: \"sid-personal-info-submit-btn\",\n};\n\nconst usesWrapperID: CollectInfoSteps[] = [\n VerificationStepsEnum.collectMoverPersonalInfo,\n VerificationStepsEnum.collectStudentPersonalInfo,\n VerificationStepsEnum.collectEmployeePersonalInfo,\n];\n\n/**\n * A shared wrapper for all personal info collect steps.\n */\nexport const PersonalInfoStepSubmitButton: React.FC<PersonalInfoStepSubmitButtonProps> = ({\n step,\n verificationService,\n viewModel,\n buttonText,\n failedInstantMatch = false,\n}) => {\n const { userDidConvert, getTimeOnForm } = useMetrics({\n segment: verificationService.verificationResponse.segment,\n programId: verificationService.programId,\n });\n\n useEffect(() => {\n const event: CollectStepStartEvent = {\n eventName: EventName.COLLECT_STARTED,\n params: {},\n };\n\n recordGaEvent(event);\n }, []);\n\n const successCallback = () => {\n try {\n const event: CollectStepSubmitEvent = {\n eventName: EventName.COLLECT_SUBMITTED,\n params: {\n [CustomMetricNames.EVENT_DURATION]: getTimeOnForm().duration,\n },\n };\n recordGaEvent(event);\n } catch (e) {\n logger.warn(\"Unable to measure time on form\");\n }\n\n userDidConvert(COLLECT_INFO_SUBMIT, COLLECT_INFO_SUBMISSION_TIME);\n };\n\n // The majority of the class/id dancing in this component are to support the\n // existing inconsistencies in our different collect info steps when they were\n // brought together into this shared component. When we get away from css based\n // customization this can get much saner\n const wrapperCls = wrapperClassNames[step];\n const buttonCls = buttonClassNames[step];\n\n const btnId = usesWrapperID.includes(step)\n ? \"sid-submit-wrapper__collect-info\"\n : \"sid-submit-btn-collect-info\";\n\n const btnText = failedInstantMatch ? (\n <FormattedHTMLMessage id=\"tryAgain\" defaultMessage=\"Try Again\" />\n ) : (\n buttonText\n );\n\n const textSpanProps =\n step === VerificationStepsEnum.collectEmployeePersonalInfo\n ? { className: \"sid-employment-submit-btn__text\" }\n : {};\n const isDisabled = !isFormFilled(viewModel, verificationService.formValidationOptions);\n\n return (\n <div className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\">\n <div className={`${wrapperCls} sid-submit`}>\n <button\n id={btnId}\n onClick={() => submitForm(viewModel, verificationService, step, successCallback)}\n type=\"submit\"\n className={`sid-btn ${buttonCls} sid-btn--dark sid-l-full-width ${\n isDisabled ? \"sid-btn--disabled-like\" : \"\"\n }`}\n aria-labelledby=\"verify-status-text\"\n ref={(button) => setRef(\"submitButton\", button)}\n aria-disabled={isDisabled}\n data-testid=\"submit-button\"\n >\n <span id=\"verify-status-text\" {...textSpanProps}>\n {btnText}\n </span>\n </button>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;aAyDa,IAAiB,GA3CR,EACpB,UACA,cACA,aACA,iBAAc,IACd,SACA,qBAAkB,CAAC,GACnB,kBAAe,CAAC,GAChB,iBAAc,IACd,cAAW,SAEW,EAAwB,OAAO,GAAG,SAG/C,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACG;CACV,MAAK;CACL,cAAa;CACb,aACE,KACA,EAAK,kBAAkB;EAAE,IAAI;EAA2B,gBAAgB;CAAQ,CAAC;CAEnF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAe,gBAAe;CAAiB,CAAA;CAC/E,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAuB,gBAAe;CAAiB,CAAA;CAGvE;CACb,6BAA6B,CAAC,CAAC;CAC/B,YAAY,MAAM,EAAU,CAAC;CAC7B,SAAS,MAAM,EAAO,CAAC;CACb;AACX,CAAA,CAIyC,kCCzBxC,IAAsD;CAC1D,4BAA4B;CAC5B,2BAA2B;CAC3B,4BAA4B;CAC5B,0BAA0B;CAC1B,qCAAqC;CACrC,mCAAmC;CACnC,uBAAuB;CACvB,2BAA2B;CAC3B,wCAAwC;CACxC,8BAA8B;CAC9B,yCAAyC;CACzC,mCAAmC;CACnC,oCAAoC;CACpC,kCAAkC;CAClC,mCAAmC;CACnC,6BAA6B;CAC7B,wBAAwB;CACxB,mBAAmB;CACnB,qBAAqB;AACvB,GAEM,IAAqD;CACzD,4BAA4B;CAC5B,2BAA2B;CAC3B,4BAA4B;CAC5B,0BAA0B;CAC1B,qCAAqC;CACrC,mCACE;CACF,uBAAuB;CACvB,2BAA2B;CAC3B,wCAAwC;CACxC,8BAA8B;CAC9B,yCAAyC;CACzC,mCAAmC;CACnC,oCAAoC;CACpC,kCAAkC;CAClC,mCAA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,eAAY;cAEZ,iBAAA,GAAA,EAAA,KAAC,QAAD;KAAM,IAAG;KAAqB,GAAI;eAC/B;IACG,CAAA;GACA,CAAA;EACL,CAAA;CACF,CAAA;AAET"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusComponent-AEKNerJR.js","names":[],"sources":["../../src/components/FormFields/Status/StatusComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\n\ninterface StatusComponentProps<T = FormSelectChoice> extends InputSelectComponentProps<T> {\n segmentId: string;\n errorId?: string;\n}\n\nexport const Status = ({\n value,\n isErrored,\n errorId = \"invalidStatus\",\n options,\n onChange,\n intl,\n placeholder = \"\",\n onKeyDown = undefined,\n segmentId,\n disabled = false,\n label = <FormattedHTMLMessage id=\"status\" defaultMessage=\"Status\" />,\n}: StatusComponentProps) => {\n const inputId = `${segmentId}-status`;\n const hasOnlyOneOption = options.length === 1;\n const isFieldHidden =\n getFieldConfigByFieldId(\"status\")?.hidden || getFieldConfigByFieldId(\"statuses\")?.hidden;\n\n React.useEffect(() => {\n if (hasOnlyOneOption) {\n onChange(options[0]);\n }\n }, []);\n\n if (hasOnlyOneOption || isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(status: FormSelectChoice) => onChange(status)}\n onKeyDown={onKeyDown}\n value={options.find((option) => option.value === (value && value.value))}\n placeholder={\n placeholder || intl.formatHTMLMessage({ id: \"statusPlaceholder\", defaultMessage: \"Status\" })\n }\n showPlaceholderAndHideLabel={!!placeholder}\n isRequired\n containerId={`sid-${inputId}`}\n label={label}\n disabled={disabled}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id={`errorId.${errorId}`}\n defaultMessage={`Invalid ${segmentId} status`}\n />\n )\n }\n />\n );\n};\n\nexport const StatusComponent = injectIntl(Status);\n"],"mappings":";;;;;4CAoEa,IAAkB,GAvDR,EACrB,UACA,cACA,aAAU,iBACV,YACA,aACA,SACA,iBAAc,IACd,eAAY,KAAA,GACZ,cACA,cAAW,IACX,WAAQ,iBAAA,GAAA,EAAA,KAAC,GAAD;CAAsB,IAAG;CAAS,gBAAe;AAAU,CAAA,QACzC;CAC1B,IAAM,IAAU,GAAG,EAAU,UACvB,IAAmB,EAAQ,WAAW,GACtC,IACJ,EAAwB,QAAQ,GAAG,UAAU,EAAwB,UAAU,GAAG;CAYpF,OAVA,EAAM,gBAAgB;EACpB,AAAI,KACF,EAAS,EAAQ,EAAE;CAEvB,GAAG,CAAC,CAAC,GAED,KAAoB,IACf,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACA;EACT,WAAW,MAA6B,EAAS,CAAM;EAC5C;EACX,OAAO,EAAQ,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;EACvE,aACE,KAAe,EAAK,kBAAkB;GAAE,IAAI;GAAqB,gBAAgB;EAAS,CAAC;EAE7F,6BAA6B,CAAC,CAAC;EAC/B,YAAA;EACA,aAAa,OAAO;EACb;EACG;EACV,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAI,WAAW;GACf,gBAAgB,WAAW,EAAU;EACtC,CAAA;CAGN,CAAA;AAEL,CAEgD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusComponent-DFtcHMpS.js","names":[],"sources":["../../src/components/FormFields/Status/StatusComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\n\ninterface StatusComponentProps<T = FormSelectChoice> extends InputSelectComponentProps<T> {\n segmentId: string;\n errorId?: string;\n}\n\nexport const Status = ({\n value,\n isErrored,\n errorId = \"invalidStatus\",\n options,\n onChange,\n intl,\n placeholder = \"\",\n onKeyDown = undefined,\n segmentId,\n disabled = false,\n label = <FormattedHTMLMessage id=\"status\" defaultMessage=\"Status\" />,\n}: StatusComponentProps) => {\n const inputId = `${segmentId}-status`;\n const hasOnlyOneOption = options.length === 1;\n const isFieldHidden =\n getFieldConfigByFieldId(\"status\")?.hidden || getFieldConfigByFieldId(\"statuses\")?.hidden;\n\n React.useEffect(() => {\n if (hasOnlyOneOption) {\n onChange(options[0]);\n }\n }, []);\n\n if (hasOnlyOneOption || isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(status: FormSelectChoice) => onChange(status)}\n onKeyDown={onKeyDown}\n value={options.find((option) => option.value === (value && value.value))}\n placeholder={\n placeholder || intl.formatHTMLMessage({ id: \"statusPlaceholder\", defaultMessage: \"Status\" })\n }\n showPlaceholderAndHideLabel={!!placeholder}\n isRequired\n containerId={`sid-${inputId}`}\n label={label}\n disabled={disabled}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id={`errorId.${errorId}`}\n defaultMessage={`Invalid ${segmentId} status`}\n />\n )\n }\n />\n );\n};\n\nexport const StatusComponent = injectIntl(Status);\n"],"mappings":";;;;;4CAoEa,IAAkB,GAvDR,EACrB,UACA,cACA,aAAU,iBACV,YACA,aACA,SACA,iBAAc,IACd,eAAY,KAAA,GACZ,cACA,cAAW,IACX,WAAQ,iBAAA,GAAA,EAAA,KAAC,GAAD;CAAsB,IAAG;CAAS,gBAAe;AAAU,CAAA,QACzC;CAC1B,IAAM,IAAU,GAAG,EAAU,UACvB,IAAmB,EAAQ,WAAW,GACtC,IACJ,EAAwB,QAAQ,GAAG,UAAU,EAAwB,UAAU,GAAG;CAYpF,OAVA,EAAM,gBAAgB;EACpB,AAAI,KACF,EAAS,EAAQ,EAAE;CAEvB,GAAG,CAAC,CAAC,GAED,KAAoB,IACf,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACA;EACT,WAAW,MAA6B,EAAS,CAAM;EAC5C;EACX,OAAO,EAAQ,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;EACvE,aACE,KAAe,EAAK,kBAAkB;GAAE,IAAI;GAAqB,gBAAgB;EAAS,CAAC;EAE7F,6BAA6B,CAAC,CAAC;EAC/B,YAAA;EACA,aAAa,OAAO;EACb;EACG;EACV,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAI,WAAW;GACf,gBAAgB,WAAW,EAAU;EACtC,CAAA;CAGN,CAAA;AAEL,CAEgD"}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* VERSION: 2.275.0
|
|
4
|
-
* BUILD_TIMESTAMP: 1787352272226
|
|
5
|
-
* BUILD_DATE: Fri Aug 21 2026 22:44:32 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: 30913cd7a2f4f6324e4692d7ed7cde8020560774
|
|
7
|
-
*/
|
|
8
|
-
import { Dt as e, Wt as t, c as n, n as r, zt as i } from "./options-BK6Zk2Oe.js";
|
|
9
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-lVLuHIkM.js";
|
|
10
|
-
import { w as l } from "./FormFooterComponent-BdT7rv1y.js";
|
|
11
|
-
import { a as u } from "./refs-B8CaE8yL.js";
|
|
12
|
-
import { n as d } from "../sheerid.js";
|
|
13
|
-
import { C as f, h as p, m, o as h, u as g, w as _ } from "./stepComponentHelpers-Darhp1Nn.js";
|
|
14
|
-
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-DD6kFSw9.js";
|
|
15
|
-
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-D55ut5Yp.js";
|
|
16
|
-
import { t as E } from "./BirthDateComponent-BzelVdwE.js";
|
|
17
|
-
import { t as D } from "./CountryComponentWrapper-Df9x54iO.js";
|
|
18
|
-
import { t as O } from "./ExtraMessage-CpDDdKiN.js";
|
|
19
|
-
import { t as k } from "./ChangeLocaleComponent-l5uhn4km.js";
|
|
20
|
-
import { t as A } from "./PersonalInfoStepWrapper-CQ-P1pon.js";
|
|
21
|
-
import { n as j, r as M, t as N } from "./DischargeDateComponent-NhaY0FfR.js";
|
|
22
|
-
import { t as P } from "./StatusComponent-AEKNerJR.js";
|
|
23
|
-
import { t as F } from "./militaryStepHelpers-W31scSUE.js";
|
|
24
|
-
o();
|
|
25
|
-
var I = c(), L = ({ intl: a, verificationService: o }) => {
|
|
26
|
-
let c = o.viewModel, L = o.previousViewModel, { fieldValidationErrors: R } = o, z = o.verificationResponse, B = l(z), V = h(o, a), H = c.localeChoice.value, U = r(), W = (e, t) => {
|
|
27
|
-
o.updateViewModel(F(e, t, o, V));
|
|
28
|
-
};
|
|
29
|
-
return (c.status && L && L.status !== c.status || c.status && o.verificationResponse.currentStep === i.collectMilitaryStatus) && (() => {
|
|
30
|
-
let e = n(c, () => {});
|
|
31
|
-
t.info("StepMilitaryStatusComponent submitting form"), o.submitStep(i.collectMilitaryStatus, e, o.previousVerificationResponse || o.verificationResponse);
|
|
32
|
-
})(), u(), /* @__PURE__ */ (0, I.jsxs)(A, {
|
|
33
|
-
verificationService: o,
|
|
34
|
-
step: z.currentStep,
|
|
35
|
-
className: "sid-military-personal-info-container",
|
|
36
|
-
children: [/* @__PURE__ */ (0, I.jsx)(d, {
|
|
37
|
-
verificationService: o,
|
|
38
|
-
classNameIdentifier: "active-military-personal-info"
|
|
39
|
-
}), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
|
|
40
|
-
/* @__PURE__ */ (0, I.jsx)(k, { verificationService: o }),
|
|
41
|
-
/* @__PURE__ */ (0, I.jsx)(D, {
|
|
42
|
-
verificationService: o,
|
|
43
|
-
disabled: g("country")?.disabled
|
|
44
|
-
}),
|
|
45
|
-
V ? /* @__PURE__ */ (0, I.jsx)(P, {
|
|
46
|
-
segmentId: "military",
|
|
47
|
-
value: {
|
|
48
|
-
value: c.status,
|
|
49
|
-
label: m(a, c.status, e)
|
|
50
|
-
},
|
|
51
|
-
isErrored: !!R.status,
|
|
52
|
-
errorId: "invalidMilitaryStatus",
|
|
53
|
-
options: V,
|
|
54
|
-
disabled: g("status")?.disabled,
|
|
55
|
-
onChange: (e) => {
|
|
56
|
-
W("status", e ? e.value : ""), f("status", e ? e.value : "", o);
|
|
57
|
-
}
|
|
58
|
-
}) : null,
|
|
59
|
-
/* @__PURE__ */ (0, I.jsx)(j, {
|
|
60
|
-
isErrored: !!R.organization,
|
|
61
|
-
onChange: (e) => {
|
|
62
|
-
_(e, o), f("organization", e, o);
|
|
63
|
-
},
|
|
64
|
-
value: {
|
|
65
|
-
value: o.viewModel.organization.id,
|
|
66
|
-
label: o.viewModel.organization.name
|
|
67
|
-
},
|
|
68
|
-
verificationService: o,
|
|
69
|
-
disabled: g("organization")?.disabled
|
|
70
|
-
}),
|
|
71
|
-
/* @__PURE__ */ (0, I.jsxs)("div", {
|
|
72
|
-
className: "sid-names",
|
|
73
|
-
children: [/* @__PURE__ */ (0, I.jsx)(v, {
|
|
74
|
-
value: c.firstName,
|
|
75
|
-
isErrored: !!R.firstName,
|
|
76
|
-
disabled: g("firstName")?.disabled,
|
|
77
|
-
onChange: (e) => {
|
|
78
|
-
W("firstName", e), f("firstName", e, o);
|
|
79
|
-
}
|
|
80
|
-
}), /* @__PURE__ */ (0, I.jsx)(y, {
|
|
81
|
-
value: c.lastName,
|
|
82
|
-
isErrored: !!R.lastName,
|
|
83
|
-
disabled: g("lastName")?.disabled,
|
|
84
|
-
onChange: (e) => {
|
|
85
|
-
W("lastName", e), f("lastName", e, o);
|
|
86
|
-
}
|
|
87
|
-
})]
|
|
88
|
-
}),
|
|
89
|
-
/* @__PURE__ */ (0, I.jsx)(E, {
|
|
90
|
-
errorId: R.birthDate,
|
|
91
|
-
locale: H,
|
|
92
|
-
onChange: (e) => {
|
|
93
|
-
W("birthDate", e), f("birthDate", e, o);
|
|
94
|
-
},
|
|
95
|
-
value: c.birthDate,
|
|
96
|
-
disabled: g("birthDate")?.disabled
|
|
97
|
-
}),
|
|
98
|
-
!!o.programTheme.transitionalMilitaryValidityDays && /* @__PURE__ */ (0, I.jsx)(N, {
|
|
99
|
-
mode: "date",
|
|
100
|
-
errorId: R.dischargeDate,
|
|
101
|
-
onChange: (e) => {
|
|
102
|
-
W("dischargeDate", e), f("dischargeDate", e, o);
|
|
103
|
-
},
|
|
104
|
-
value: c.dischargeDate,
|
|
105
|
-
locale: H,
|
|
106
|
-
disabled: g("dischargeDate")?.disabled
|
|
107
|
-
}),
|
|
108
|
-
o.programTheme.strictMilitaryValidationEnabled && /* @__PURE__ */ (0, I.jsx)(M, {
|
|
109
|
-
errorId: R.activeDutyStartDate,
|
|
110
|
-
locale: H,
|
|
111
|
-
onChange: (e) => {
|
|
112
|
-
W("activeDutyStartDate", e), f("activeDutyStartDate", e, o);
|
|
113
|
-
},
|
|
114
|
-
value: c.activeDutyStartDate,
|
|
115
|
-
disabled: g("activeDutyStartDate")?.disabled,
|
|
116
|
-
isRequired: g("activeDutyStartDate")?.requireIfOptional
|
|
117
|
-
}),
|
|
118
|
-
/* @__PURE__ */ (0, I.jsx)(w, {
|
|
119
|
-
value: c.email,
|
|
120
|
-
isErrored: !!R.email,
|
|
121
|
-
explanation: /* @__PURE__ */ (0, I.jsx)(s, {
|
|
122
|
-
id: "emailExplanation",
|
|
123
|
-
defaultMessage: "Personal email address is recommended"
|
|
124
|
-
}),
|
|
125
|
-
onChange: (e) => {
|
|
126
|
-
W("email", e), f("email", e, o);
|
|
127
|
-
},
|
|
128
|
-
onKeyDown: (e) => p(e),
|
|
129
|
-
disabled: g("email")?.disabled
|
|
130
|
-
}),
|
|
131
|
-
o.programTheme.isSmsNotifierConfigured || o.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, I.jsx)(x, {
|
|
132
|
-
isRequired: !!o.programTheme.smsLoopEnabled,
|
|
133
|
-
value: c.phoneNumber,
|
|
134
|
-
isErrored: !!R.phoneNumber,
|
|
135
|
-
onChange: (e) => {
|
|
136
|
-
W("phoneNumber", e), f("phoneNumber", e, o);
|
|
137
|
-
},
|
|
138
|
-
selectedCountryCode: c.countryChoice && c.countryChoice.value,
|
|
139
|
-
disabled: g("phoneNumber")?.disabled
|
|
140
|
-
}) : null,
|
|
141
|
-
U.customFormFields.map((e) => /* @__PURE__ */ (0, I.jsx)(b, {
|
|
142
|
-
config: e,
|
|
143
|
-
verificationService: o
|
|
144
|
-
})),
|
|
145
|
-
/* @__PURE__ */ (0, I.jsx)(S, {
|
|
146
|
-
verificationService: o,
|
|
147
|
-
isErrored: !!R.marketConsentValue,
|
|
148
|
-
onChange: (e) => {
|
|
149
|
-
W("metadata", {
|
|
150
|
-
...o.viewModel.metadata,
|
|
151
|
-
marketConsentValue: e
|
|
152
|
-
}), f("marketConsentValue", e, o);
|
|
153
|
-
},
|
|
154
|
-
viewModel: c,
|
|
155
|
-
disabled: g("marketConsentValue")?.disabled
|
|
156
|
-
}),
|
|
157
|
-
/* @__PURE__ */ (0, I.jsx)(O, {
|
|
158
|
-
verificationService: o,
|
|
159
|
-
suffix: "CollectAboveSubmit"
|
|
160
|
-
}),
|
|
161
|
-
/* @__PURE__ */ (0, I.jsx)(C, {
|
|
162
|
-
verificationService: o,
|
|
163
|
-
isErrored: !!R.captchaToken
|
|
164
|
-
}),
|
|
165
|
-
/* @__PURE__ */ (0, I.jsx)(T, {
|
|
166
|
-
step: i.collectActiveMilitaryPersonalInfo,
|
|
167
|
-
verificationService: o,
|
|
168
|
-
viewModel: c,
|
|
169
|
-
failedInstantMatch: B,
|
|
170
|
-
buttonText: /* @__PURE__ */ (0, I.jsx)(s, {
|
|
171
|
-
id: "step.personalInfo.submitButtonText",
|
|
172
|
-
defaultMessage: "Verify My Military Status"
|
|
173
|
-
})
|
|
174
|
-
})
|
|
175
|
-
] })]
|
|
176
|
-
});
|
|
177
|
-
}, R = a(L);
|
|
178
|
-
//#endregion
|
|
179
|
-
export { L as StepActiveMilitaryPersonalInfo, R as StepActiveMilitaryPersonalInfoComponent, R as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-AJL4fROB.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.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 ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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 { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\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 { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\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 // 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=\"active-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 updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\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 ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\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 updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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.collectActiveMilitaryPersonalInfo}\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 StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,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;CAwBA,QAXG,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,GAIb,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;EAC3B,WAAU;YAHZ,CAKE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACuB;GACrB,qBAAoB;EACrB,CAAA,GAED,iBAAA,GAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA;G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OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAA8B,eAAe,CAAQ,GACrD,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,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,EAA8B,YAAY;MACxC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EACE,sBACA,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,IAA0C,EAAW,CAA8B"}
|
|
@@ -1,183 +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.275.0
|
|
8
|
-
* BUILD_TIMESTAMP: 1787352276442
|
|
9
|
-
* BUILD_DATE: Fri Aug 21 2026 22:44:36 GMT+0000 (Coordinated Universal Time)
|
|
10
|
-
* BUILD_COMMIT: 30913cd7a2f4f6324e4692d7ed7cde8020560774
|
|
11
|
-
*/
|
|
12
|
-
import { Lt as e, Tt as t, Wt as n, p as r, s as i } from "./intl-TN1Dianl.js";
|
|
13
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-QRCZ6ZTK.js";
|
|
14
|
-
import { O as l } from "./FormFooterComponent-B_Wh4HXO.js";
|
|
15
|
-
import { a as u } from "./refs-6KTRrw-F.js";
|
|
16
|
-
import { t as d } from "../_mysheerid-preview.js";
|
|
17
|
-
import { C as f, h as p, m, o as h, u as g, w as _ } from "./stepComponentHelpers-DeWac6nj.js";
|
|
18
|
-
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-CaHSH2GC.js";
|
|
19
|
-
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-C7QmpcVd.js";
|
|
20
|
-
import { t as E } from "./BirthDateComponent-DA7yEebd.js";
|
|
21
|
-
import { t as D } from "./CountryComponentWrapper-CEbjr-D-.js";
|
|
22
|
-
import { t as O } from "./ExtraMessage-DNuEH_rP.js";
|
|
23
|
-
import { t as k } from "./ChangeLocaleComponent-BcCMSbju.js";
|
|
24
|
-
import { t as A } from "./PersonalInfoStepWrapper-C3OKK8Mh.js";
|
|
25
|
-
import { n as j, r as M, t as N } from "./DischargeDateComponent-BWErN092.js";
|
|
26
|
-
import { t as P } from "./StatusComponent-DFtcHMpS.js";
|
|
27
|
-
import { t as F } from "./militaryStepHelpers-CF0fNRKQ.js";
|
|
28
|
-
o();
|
|
29
|
-
var I = c(), L = ({ intl: a, verificationService: o }) => {
|
|
30
|
-
let c = o.viewModel, L = o.previousViewModel, { fieldValidationErrors: R } = o, z = o.verificationResponse, B = l(z), V = h(o, a), H = c.localeChoice.value, U = i(), W = (e, t) => {
|
|
31
|
-
o.updateViewModel(F(e, t, o, V));
|
|
32
|
-
};
|
|
33
|
-
return (c.status && L && L.status !== c.status || c.status && o.verificationResponse.currentStep === e.collectMilitaryStatus) && (() => {
|
|
34
|
-
let t = r(c, () => {});
|
|
35
|
-
n.info("StepMilitaryStatusComponent submitting form"), o.submitStep(e.collectMilitaryStatus, t, o.previousVerificationResponse || o.verificationResponse);
|
|
36
|
-
})(), u(), /* @__PURE__ */ (0, I.jsxs)(A, {
|
|
37
|
-
verificationService: o,
|
|
38
|
-
step: z.currentStep,
|
|
39
|
-
className: "sid-military-personal-info-container",
|
|
40
|
-
children: [/* @__PURE__ */ (0, I.jsx)(d, {
|
|
41
|
-
verificationService: o,
|
|
42
|
-
classNameIdentifier: "active-military-personal-info"
|
|
43
|
-
}), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
|
|
44
|
-
/* @__PURE__ */ (0, I.jsx)(k, { verificationService: o }),
|
|
45
|
-
/* @__PURE__ */ (0, I.jsx)(D, {
|
|
46
|
-
verificationService: o,
|
|
47
|
-
disabled: g("country")?.disabled
|
|
48
|
-
}),
|
|
49
|
-
V ? /* @__PURE__ */ (0, I.jsx)(P, {
|
|
50
|
-
segmentId: "military",
|
|
51
|
-
value: {
|
|
52
|
-
value: c.status,
|
|
53
|
-
label: m(a, c.status, t)
|
|
54
|
-
},
|
|
55
|
-
isErrored: !!R.status,
|
|
56
|
-
errorId: "invalidMilitaryStatus",
|
|
57
|
-
options: V,
|
|
58
|
-
disabled: g("status")?.disabled,
|
|
59
|
-
onChange: (e) => {
|
|
60
|
-
W("status", e ? e.value : ""), f("status", e ? e.value : "", o);
|
|
61
|
-
}
|
|
62
|
-
}) : null,
|
|
63
|
-
/* @__PURE__ */ (0, I.jsx)(j, {
|
|
64
|
-
isErrored: !!R.organization,
|
|
65
|
-
onChange: (e) => {
|
|
66
|
-
_(e, o), f("organization", e, o);
|
|
67
|
-
},
|
|
68
|
-
value: {
|
|
69
|
-
value: o.viewModel.organization.id,
|
|
70
|
-
label: o.viewModel.organization.name
|
|
71
|
-
},
|
|
72
|
-
verificationService: o,
|
|
73
|
-
disabled: g("organization")?.disabled
|
|
74
|
-
}),
|
|
75
|
-
/* @__PURE__ */ (0, I.jsxs)("div", {
|
|
76
|
-
className: "sid-names",
|
|
77
|
-
children: [/* @__PURE__ */ (0, I.jsx)(v, {
|
|
78
|
-
value: c.firstName,
|
|
79
|
-
isErrored: !!R.firstName,
|
|
80
|
-
disabled: g("firstName")?.disabled,
|
|
81
|
-
onChange: (e) => {
|
|
82
|
-
W("firstName", e), f("firstName", e, o);
|
|
83
|
-
}
|
|
84
|
-
}), /* @__PURE__ */ (0, I.jsx)(y, {
|
|
85
|
-
value: c.lastName,
|
|
86
|
-
isErrored: !!R.lastName,
|
|
87
|
-
disabled: g("lastName")?.disabled,
|
|
88
|
-
onChange: (e) => {
|
|
89
|
-
W("lastName", e), f("lastName", e, o);
|
|
90
|
-
}
|
|
91
|
-
})]
|
|
92
|
-
}),
|
|
93
|
-
/* @__PURE__ */ (0, I.jsx)(E, {
|
|
94
|
-
errorId: R.birthDate,
|
|
95
|
-
locale: H,
|
|
96
|
-
onChange: (e) => {
|
|
97
|
-
W("birthDate", e), f("birthDate", e, o);
|
|
98
|
-
},
|
|
99
|
-
value: c.birthDate,
|
|
100
|
-
disabled: g("birthDate")?.disabled
|
|
101
|
-
}),
|
|
102
|
-
!!o.programTheme.transitionalMilitaryValidityDays && /* @__PURE__ */ (0, I.jsx)(N, {
|
|
103
|
-
mode: "date",
|
|
104
|
-
errorId: R.dischargeDate,
|
|
105
|
-
onChange: (e) => {
|
|
106
|
-
W("dischargeDate", e), f("dischargeDate", e, o);
|
|
107
|
-
},
|
|
108
|
-
value: c.dischargeDate,
|
|
109
|
-
locale: H,
|
|
110
|
-
disabled: g("dischargeDate")?.disabled
|
|
111
|
-
}),
|
|
112
|
-
o.programTheme.strictMilitaryValidationEnabled && /* @__PURE__ */ (0, I.jsx)(M, {
|
|
113
|
-
errorId: R.activeDutyStartDate,
|
|
114
|
-
locale: H,
|
|
115
|
-
onChange: (e) => {
|
|
116
|
-
W("activeDutyStartDate", e), f("activeDutyStartDate", e, o);
|
|
117
|
-
},
|
|
118
|
-
value: c.activeDutyStartDate,
|
|
119
|
-
disabled: g("activeDutyStartDate")?.disabled,
|
|
120
|
-
isRequired: g("activeDutyStartDate")?.requireIfOptional
|
|
121
|
-
}),
|
|
122
|
-
/* @__PURE__ */ (0, I.jsx)(w, {
|
|
123
|
-
value: c.email,
|
|
124
|
-
isErrored: !!R.email,
|
|
125
|
-
explanation: /* @__PURE__ */ (0, I.jsx)(s, {
|
|
126
|
-
id: "emailExplanation",
|
|
127
|
-
defaultMessage: "Personal email address is recommended"
|
|
128
|
-
}),
|
|
129
|
-
onChange: (e) => {
|
|
130
|
-
W("email", e), f("email", e, o);
|
|
131
|
-
},
|
|
132
|
-
onKeyDown: (e) => p(e),
|
|
133
|
-
disabled: g("email")?.disabled
|
|
134
|
-
}),
|
|
135
|
-
o.programTheme.isSmsNotifierConfigured || o.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, I.jsx)(x, {
|
|
136
|
-
isRequired: !!o.programTheme.smsLoopEnabled,
|
|
137
|
-
value: c.phoneNumber,
|
|
138
|
-
isErrored: !!R.phoneNumber,
|
|
139
|
-
onChange: (e) => {
|
|
140
|
-
W("phoneNumber", e), f("phoneNumber", e, o);
|
|
141
|
-
},
|
|
142
|
-
selectedCountryCode: c.countryChoice && c.countryChoice.value,
|
|
143
|
-
disabled: g("phoneNumber")?.disabled
|
|
144
|
-
}) : null,
|
|
145
|
-
U.customFormFields.map((e) => /* @__PURE__ */ (0, I.jsx)(b, {
|
|
146
|
-
config: e,
|
|
147
|
-
verificationService: o
|
|
148
|
-
})),
|
|
149
|
-
/* @__PURE__ */ (0, I.jsx)(S, {
|
|
150
|
-
verificationService: o,
|
|
151
|
-
isErrored: !!R.marketConsentValue,
|
|
152
|
-
onChange: (e) => {
|
|
153
|
-
W("metadata", {
|
|
154
|
-
...o.viewModel.metadata,
|
|
155
|
-
marketConsentValue: e
|
|
156
|
-
}), f("marketConsentValue", e, o);
|
|
157
|
-
},
|
|
158
|
-
viewModel: c,
|
|
159
|
-
disabled: g("marketConsentValue")?.disabled
|
|
160
|
-
}),
|
|
161
|
-
/* @__PURE__ */ (0, I.jsx)(O, {
|
|
162
|
-
verificationService: o,
|
|
163
|
-
suffix: "CollectAboveSubmit"
|
|
164
|
-
}),
|
|
165
|
-
/* @__PURE__ */ (0, I.jsx)(C, {
|
|
166
|
-
verificationService: o,
|
|
167
|
-
isErrored: !!R.captchaToken
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ (0, I.jsx)(T, {
|
|
170
|
-
step: e.collectActiveMilitaryPersonalInfo,
|
|
171
|
-
verificationService: o,
|
|
172
|
-
viewModel: c,
|
|
173
|
-
failedInstantMatch: B,
|
|
174
|
-
buttonText: /* @__PURE__ */ (0, I.jsx)(s, {
|
|
175
|
-
id: "step.personalInfo.submitButtonText",
|
|
176
|
-
defaultMessage: "Verify My Military Status"
|
|
177
|
-
})
|
|
178
|
-
})
|
|
179
|
-
] })]
|
|
180
|
-
});
|
|
181
|
-
}, R = a(L);
|
|
182
|
-
//#endregion
|
|
183
|
-
export { L as StepActiveMilitaryPersonalInfo, R as StepActiveMilitaryPersonalInfoComponent, R as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-Blc8C61_.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.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 ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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 { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\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 { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\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 // 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=\"active-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 updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\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 ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\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 updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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.collectActiveMilitaryPersonalInfo}\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 StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAA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