@sheerid/jslib 2.310.0 → 2.311.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 +1311 -1300
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-CDrwwuUJ.js → AddressComponent-CvNuqaMO.js} +6 -6
- package/chunk/{AddressComponent-CA5Jlokr.js.map → AddressComponent-CvNuqaMO.js.map} +1 -1
- package/chunk/{AddressComponent-CA5Jlokr.js → AddressComponent-D3J1ec4I.js} +6 -6
- package/chunk/{AddressComponent-CDrwwuUJ.js.map → AddressComponent-D3J1ec4I.js.map} +1 -1
- package/chunk/AnnouncingHeader-CM01vEpF.js +4 -4
- package/chunk/AnnouncingHeader-CSh0UW8I.js +4 -4
- package/chunk/{BirthDateComponent-BC0V70wK.js → BirthDateComponent-DbTRigG5.js} +6 -6
- package/chunk/{BirthDateComponent-BC0V70wK.js.map → BirthDateComponent-DbTRigG5.js.map} +1 -1
- package/chunk/{BirthDateComponent-yEKEOgR4.js → BirthDateComponent-Dq93H5fs.js} +6 -6
- package/chunk/{BirthDateComponent-yEKEOgR4.js.map → BirthDateComponent-Dq93H5fs.js.map} +1 -1
- package/chunk/{CaptchaComponent-DD3afqj9.js → CaptchaComponent-B1wduRz7.js} +10 -10
- package/chunk/{CaptchaComponent-DD3afqj9.js.map → CaptchaComponent-B1wduRz7.js.map} +1 -1
- package/chunk/{CaptchaComponent-DllbmDK0.js → CaptchaComponent-D-DQ7hgF.js} +10 -10
- package/chunk/{CaptchaComponent-DllbmDK0.js.map → CaptchaComponent-D-DQ7hgF.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CZIXysUs.js → ChangeLocaleComponent-DJ-OCTQZ.js} +8 -8
- package/chunk/{ChangeLocaleComponent-CZIXysUs.js.map → ChangeLocaleComponent-DJ-OCTQZ.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DPFet-3o.js → ChangeLocaleComponent-DP6rvRFM.js} +8 -8
- package/chunk/{ChangeLocaleComponent-DPFet-3o.js.map → ChangeLocaleComponent-DP6rvRFM.js.map} +1 -1
- package/chunk/{City-BmHGcOfW.js → City-BENIBYvt.js} +6 -6
- package/chunk/{City-BmHGcOfW.js.map → City-BENIBYvt.js.map} +1 -1
- package/chunk/{City-vvOBoUFQ.js → City-C_ojHI8D.js} +6 -6
- package/chunk/{City-vvOBoUFQ.js.map → City-C_ojHI8D.js.map} +1 -1
- package/chunk/{CollegeNameComponent-C9nkGO5e.js → CollegeNameComponent-BObW76RR.js} +9 -9
- package/chunk/{CollegeNameComponent-C9nkGO5e.js.map → CollegeNameComponent-BObW76RR.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DJOrJnLR.js → CollegeNameComponent-DEGHGVMH.js} +9 -9
- package/chunk/{CollegeNameComponent-DJOrJnLR.js.map → CollegeNameComponent-DEGHGVMH.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BN9qCovT.js +4 -4
- package/chunk/CopyToClipboardComponent-Dag4rxf8.js +4 -4
- package/chunk/{CountryComponentWrapper-nEV1lfX2.js → CountryComponentWrapper-B3pZNlgz.js} +11 -11
- package/chunk/{CountryComponentWrapper-nEV1lfX2.js.map → CountryComponentWrapper-B3pZNlgz.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-DOF9-DPR.js → CountryComponentWrapper-BD-OFB7m.js} +11 -11
- package/chunk/{CountryComponentWrapper-DOF9-DPR.js.map → CountryComponentWrapper-BD-OFB7m.js.map} +1 -1
- package/chunk/{DischargeDateComponent-ksjLguz4.js → DischargeDateComponent-CmYI7Fs4.js} +10 -10
- package/chunk/{DischargeDateComponent-ksjLguz4.js.map → DischargeDateComponent-CmYI7Fs4.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DYvLJwpw.js → DischargeDateComponent-DyrBA-sT.js} +10 -10
- package/chunk/{DischargeDateComponent-DYvLJwpw.js.map → DischargeDateComponent-DyrBA-sT.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DGpqJpL5.js → DriverLicenseNumberComponent-BSk91mS6.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-CRhCxL68.js.map → DriverLicenseNumberComponent-BSk91mS6.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-CRhCxL68.js → DriverLicenseNumberComponent-BxYhcuIZ.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-DGpqJpL5.js.map → DriverLicenseNumberComponent-BxYhcuIZ.js.map} +1 -1
- package/chunk/{EmailLoopPending-LIPLNEou.js → EmailLoopPending-D_3wymeU.js} +8 -8
- package/chunk/{EmailLoopPending-LIPLNEou.js.map → EmailLoopPending-D_3wymeU.js.map} +1 -1
- package/chunk/{EmailLoopPending-DT9iYVy1.js → EmailLoopPending-DzjNkzyL.js} +8 -8
- package/chunk/{EmailLoopPending-DT9iYVy1.js.map → EmailLoopPending-DzjNkzyL.js.map} +1 -1
- package/chunk/{ExtraMessage-D7iqKQh4.js → ExtraMessage-BuBnwExg.js} +5 -5
- package/chunk/{ExtraMessage-CreEN83x.js.map → ExtraMessage-BuBnwExg.js.map} +1 -1
- package/chunk/{ExtraMessage-CreEN83x.js → ExtraMessage-hgijE4nR.js} +5 -5
- package/chunk/{ExtraMessage-D7iqKQh4.js.map → ExtraMessage-hgijE4nR.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CO5Rbiyg.js → FirstResponderOrganizationComponent-D1BvAfUQ.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-CO5Rbiyg.js.map → FirstResponderOrganizationComponent-D1BvAfUQ.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-D7APONNn.js → FirstResponderOrganizationComponent-DbawjfXx.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-D7APONNn.js.map → FirstResponderOrganizationComponent-DbawjfXx.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Cmb-cNuJ.js → FormFieldInputSelect-BdcFitQM.js} +5 -5
- package/chunk/{FormFieldInputSelect-C5eFGFHW.js.map → FormFieldInputSelect-BdcFitQM.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-C5eFGFHW.js → FormFieldInputSelect-DWcxK7De.js} +5 -5
- package/chunk/{FormFieldInputSelect-Cmb-cNuJ.js.map → FormFieldInputSelect-DWcxK7De.js.map} +1 -1
- package/chunk/FormFieldLayout-KJilu-sR.js +4 -4
- package/chunk/FormFieldLayout-UCIBwDRH.js +4 -4
- package/chunk/FormFieldText-B_2IOFED.js +4 -4
- package/chunk/FormFieldText-CkPmuIPf.js +4 -4
- package/chunk/{FormFieldTypeahead-BQPF0pJC.js → FormFieldTypeahead-ChDQLWgJ.js} +11 -11
- package/chunk/{FormFieldTypeahead-BQPF0pJC.js.map → FormFieldTypeahead-ChDQLWgJ.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-m1BQ6dRR.js → FormFieldTypeahead-D_061VBz.js} +11 -11
- package/chunk/{FormFieldTypeahead-m1BQ6dRR.js.map → FormFieldTypeahead-D_061VBz.js.map} +1 -1
- package/chunk/{FormFooterComponent-BaO1YAjx.js → FormFooterComponent-Cpzral2z.js} +104 -104
- package/chunk/{FormFooterComponent-BaO1YAjx.js.map → FormFooterComponent-Cpzral2z.js.map} +1 -1
- package/chunk/{FormFooterComponent-CHMM9xXM.js → FormFooterComponent-D3c-ewUT.js} +47 -47
- package/chunk/{FormFooterComponent-CHMM9xXM.js.map → FormFooterComponent-D3c-ewUT.js.map} +1 -1
- package/chunk/{FormSelectChoice-Cj8dBkIe.js → FormSelectChoice-BQ03wMOm.js} +6 -6
- package/chunk/{FormSelectChoice-Cj8dBkIe.js.map → FormSelectChoice-BQ03wMOm.js.map} +1 -1
- package/chunk/{FormSelectChoice-CHdts_po.js → FormSelectChoice-C_d5rhmo.js} +6 -6
- package/chunk/{FormSelectChoice-CHdts_po.js.map → FormSelectChoice-C_d5rhmo.js.map} +1 -1
- package/chunk/InputText-Bvj815Th.js +4 -4
- package/chunk/InputText-C2qEtF0t.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-CvEYI4fg.js → LicensedProfessionalOrganizationComponent-C4XcmGi5.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-CvEYI4fg.js.map → LicensedProfessionalOrganizationComponent-C4XcmGi5.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Ii7qB1KH.js → LicensedProfessionalOrganizationComponent-DOWP33a5.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-Ii7qB1KH.js.map → LicensedProfessionalOrganizationComponent-DOWP33a5.js.map} +1 -1
- package/chunk/{LogoComponent-COor2zpj.js → LogoComponent-CsyobiEt.js} +5 -5
- package/chunk/{LogoComponent-CFElMGvH.js.map → LogoComponent-CsyobiEt.js.map} +1 -1
- package/chunk/{LogoComponent-CFElMGvH.js → LogoComponent-DYr4prM9.js} +5 -5
- package/chunk/{LogoComponent-COor2zpj.js.map → LogoComponent-DYr4prM9.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-BUUFcO8z.js → LowIncomeOrganizationComponent-Bt68GVWp.js} +10 -10
- package/chunk/{LowIncomeOrganizationComponent-BUUFcO8z.js.map → LowIncomeOrganizationComponent-Bt68GVWp.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CkCiLDt0.js → LowIncomeOrganizationComponent-vsoeNFLK.js} +10 -10
- package/chunk/{LowIncomeOrganizationComponent-CkCiLDt0.js.map → LowIncomeOrganizationComponent-vsoeNFLK.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CImYz1vZ.js → MedicalProfessionalOrganizationComponent-CZolO1PW.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-CImYz1vZ.js.map → MedicalProfessionalOrganizationComponent-CZolO1PW.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-fHnvPaDU.js → MedicalProfessionalOrganizationComponent-CaGfdO6x.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-fHnvPaDU.js.map → MedicalProfessionalOrganizationComponent-CaGfdO6x.js.map} +1 -1
- package/chunk/{MemberIdComponent-CiyaUSIN.js → MemberIdComponent-C7dBdn_t.js} +6 -6
- package/chunk/{MemberIdComponent-CiyaUSIN.js.map → MemberIdComponent-C7dBdn_t.js.map} +1 -1
- package/chunk/{MemberIdComponent-DkCrb8sm.js → MemberIdComponent-Chbh019E.js} +6 -6
- package/chunk/{MemberIdComponent-DkCrb8sm.js.map → MemberIdComponent-Chbh019E.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-Dh39caqm.js → MembershipOrganizationComponent-D-ZH4peG.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-Dh39caqm.js.map → MembershipOrganizationComponent-D-ZH4peG.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-G9l5YJAV.js → MembershipOrganizationComponent-Di6mpKm2.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-G9l5YJAV.js.map → MembershipOrganizationComponent-Di6mpKm2.js.map} +1 -1
- package/chunk/{Message-B_RKEVv2.js → Message-CT7bGfqP.js} +408 -394
- package/chunk/Message-CT7bGfqP.js.map +1 -0
- package/chunk/{Message-jhvpcui8.js → Message-DgJ0fCH2.js} +310 -296
- package/chunk/Message-DgJ0fCH2.js.map +1 -0
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-XKbJpeBB.js → PersonalInfoStepSubmitButton-C7SSnJjv.js} +8 -8
- package/chunk/{PersonalInfoStepSubmitButton-XKbJpeBB.js.map → PersonalInfoStepSubmitButton-C7SSnJjv.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-CzetrMl4.js → PersonalInfoStepSubmitButton-DmouLI73.js} +8 -8
- package/chunk/{PersonalInfoStepSubmitButton-CzetrMl4.js.map → PersonalInfoStepSubmitButton-DmouLI73.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-C72GphtU.js → PersonalInfoStepWrapper-DK0ZWU67.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-C72GphtU.js.map → PersonalInfoStepWrapper-DK0ZWU67.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-Cnse8JAf.js → PersonalInfoStepWrapper-vV6StMJO.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-Cnse8JAf.js.map → PersonalInfoStepWrapper-vV6StMJO.js.map} +1 -1
- package/chunk/{PostalCodeComponent-DzKFsVmZ.js → PostalCodeComponent-BgHVeMZc.js} +6 -6
- package/chunk/{PostalCodeComponent-Bhq1Okl6.js.map → PostalCodeComponent-BgHVeMZc.js.map} +1 -1
- package/chunk/{PostalCodeComponent-Bhq1Okl6.js → PostalCodeComponent-DKc1T76y.js} +6 -6
- package/chunk/{PostalCodeComponent-DzKFsVmZ.js.map → PostalCodeComponent-DKc1T76y.js.map} +1 -1
- package/chunk/{SSN-DwwJu9GH.js → SSN-Bcd5widF.js} +6 -6
- package/chunk/{SSN-DwwJu9GH.js.map → SSN-Bcd5widF.js.map} +1 -1
- package/chunk/{SSN-B2n_Gvf5.js → SSN-JKqxx-pg.js} +6 -6
- package/chunk/{SSN-B2n_Gvf5.js.map → SSN-JKqxx-pg.js.map} +1 -1
- package/chunk/{StateSelectComponent-2j4YT_bB.js → StateSelectComponent-CTZt_g4q.js} +6 -6
- package/chunk/{StateSelectComponent-2j4YT_bB.js.map → StateSelectComponent-CTZt_g4q.js.map} +1 -1
- package/chunk/{StateSelectComponent-D6kAZHc6.js → StateSelectComponent-DCTvDI_B.js} +6 -6
- package/chunk/{StateSelectComponent-D6kAZHc6.js.map → StateSelectComponent-DCTvDI_B.js.map} +1 -1
- package/chunk/{StatusComponent-CK6ZFKRm.js → StatusComponent-BBBHt-HS.js} +7 -7
- package/chunk/{StatusComponent-CK6ZFKRm.js.map → StatusComponent-BBBHt-HS.js.map} +1 -1
- package/chunk/{StatusComponent-DdTGrsZl.js → StatusComponent-DYnHvCJZ.js} +7 -7
- package/chunk/{StatusComponent-DdTGrsZl.js.map → StatusComponent-DYnHvCJZ.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CwM7MLuH.js → StepAgePersonalInfo-CKm4ynml.js} +18 -18
- package/chunk/{StepAgePersonalInfo-CwM7MLuH.js.map → StepAgePersonalInfo-CKm4ynml.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BHilnYDQ.js → StepAgePersonalInfo-DhiZP74A.js} +18 -18
- package/chunk/{StepAgePersonalInfo-BHilnYDQ.js.map → StepAgePersonalInfo-DhiZP74A.js.map} +1 -1
- package/chunk/StepCard-BEucy3JJ.js +4 -4
- package/chunk/StepCard-Blp7ZcI-.js +4 -4
- package/chunk/{StepCollectIdentifier-BPOXGTRD.js → StepCollectIdentifier-Bfdatx2N.js} +7 -7
- package/chunk/{StepCollectIdentifier-BPOXGTRD.js.map → StepCollectIdentifier-Bfdatx2N.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-B8oHm4pY.js → StepCollectIdentifier-CXxpJaSk.js} +7 -7
- package/chunk/{StepCollectIdentifier-B8oHm4pY.js.map → StepCollectIdentifier-CXxpJaSk.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CRvS_5S3.js → StepCollectMilitaryPersonalInfoComponent-B-iduusm.js} +23 -23
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CRvS_5S3.js.map → StepCollectMilitaryPersonalInfoComponent-B-iduusm.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-GnvZysih.js → StepCollectMilitaryPersonalInfoComponent-S-2NcxN5.js} +23 -23
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-GnvZysih.js.map → StepCollectMilitaryPersonalInfoComponent-S-2NcxN5.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-Bv-SCda7.js → StepCollectPersonalInfo-BFLzAzj_.js} +32 -32
- package/chunk/{StepCollectPersonalInfo-Bv-SCda7.js.map → StepCollectPersonalInfo-BFLzAzj_.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-BwD7UzHh.js → StepCollectPersonalInfo-DNcGTdm7.js} +32 -32
- package/chunk/{StepCollectPersonalInfo-BwD7UzHh.js.map → StepCollectPersonalInfo-DNcGTdm7.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-BBeoOSVF.js → StepCompleteAuthentication-B_0EZ3mH.js} +6 -6
- package/chunk/{StepCompleteAuthentication-BBeoOSVF.js.map → StepCompleteAuthentication-B_0EZ3mH.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-BMe7s_qR.js → StepCompleteAuthentication-Ds3ieihr.js} +6 -6
- package/chunk/{StepCompleteAuthentication-BMe7s_qR.js.map → StepCompleteAuthentication-Ds3ieihr.js.map} +1 -1
- package/chunk/{StepConsolation-Caze5btr.js → StepConsolation-D80IJyD-.js} +6 -6
- package/chunk/{StepConsolation-Caze5btr.js.map → StepConsolation-D80IJyD-.js.map} +1 -1
- package/chunk/{StepConsolation-BGOrLbzH.js → StepConsolation-DHZgZ028.js} +6 -6
- package/chunk/{StepConsolation-BGOrLbzH.js.map → StepConsolation-DHZgZ028.js.map} +1 -1
- package/chunk/{StepDocUpload-D0IxmE0P.js → StepDocUpload-B4kgRTLT.js} +11 -11
- package/chunk/{StepDocUpload-D0IxmE0P.js.map → StepDocUpload-B4kgRTLT.js.map} +1 -1
- package/chunk/{StepDocUpload-nT8znx0P.js → StepDocUpload-DHAALHxe.js} +11 -11
- package/chunk/{StepDocUpload-nT8znx0P.js.map → StepDocUpload-DHAALHxe.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CM5IRlqu.js → StepDriverLicensePersonalInfoComponent-BYYs2jVK.js} +14 -14
- package/chunk/{StepDriverLicensePersonalInfoComponent-CM5IRlqu.js.map → StepDriverLicensePersonalInfoComponent-BYYs2jVK.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-wvW59Tge.js → StepDriverLicensePersonalInfoComponent-C3M98kBD.js} +14 -14
- package/chunk/{StepDriverLicensePersonalInfoComponent-wvW59Tge.js.map → StepDriverLicensePersonalInfoComponent-C3M98kBD.js.map} +1 -1
- package/chunk/{StepEmailLoop-Do1RGSWH.js → StepEmailLoop-DepeMN4x.js} +9 -9
- package/chunk/{StepEmailLoop-Do1RGSWH.js.map → StepEmailLoop-DepeMN4x.js.map} +1 -1
- package/chunk/{StepEmailLoop-DidYd6Jn.js → StepEmailLoop-DzEVO6kL.js} +9 -9
- package/chunk/{StepEmailLoop-DidYd6Jn.js.map → StepEmailLoop-DzEVO6kL.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-ePSayAaT.js → StepEmploymentPersonalInfo-2v-7N8Ko.js} +19 -19
- package/chunk/{StepEmploymentPersonalInfo-ePSayAaT.js.map → StepEmploymentPersonalInfo-2v-7N8Ko.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-B-8A3qdb.js → StepEmploymentPersonalInfo-CixC7iay.js} +19 -19
- package/chunk/{StepEmploymentPersonalInfo-B-8A3qdb.js.map → StepEmploymentPersonalInfo-CixC7iay.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DcFARvoh.js → StepFirstResponderPersonalInfo--sNboMKr.js} +21 -21
- package/chunk/{StepFirstResponderPersonalInfo-DcFARvoh.js.map → StepFirstResponderPersonalInfo--sNboMKr.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DFuqzNs3.js → StepFirstResponderPersonalInfo-CQlS7pI9.js} +21 -21
- package/chunk/{StepFirstResponderPersonalInfo-DFuqzNs3.js.map → StepFirstResponderPersonalInfo-CQlS7pI9.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DOTlWwFp.js → StepGeneralIdentityPersonalInfoComponent-BBZ4swGc.js} +17 -17
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DOTlWwFp.js.map → StepGeneralIdentityPersonalInfoComponent-BBZ4swGc.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CxiV3C3o.js → StepGeneralIdentityPersonalInfoComponent-DXGHUC97.js} +17 -17
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CxiV3C3o.js.map → StepGeneralIdentityPersonalInfoComponent-DXGHUC97.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BFEiAsZN.js → StepHybridIdentityPersonalInfoComponent-4YJXpGjE.js} +18 -18
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BFEiAsZN.js.map → StepHybridIdentityPersonalInfoComponent-4YJXpGjE.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-e9EsweLX.js → StepHybridIdentityPersonalInfoComponent-C-W_X47Y.js} +18 -18
- package/chunk/{StepHybridIdentityPersonalInfoComponent-e9EsweLX.js.map → StepHybridIdentityPersonalInfoComponent-C-W_X47Y.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CXeoR-Ja.js → StepIDCheckLoop-BcK9rvfx.js} +6 -6
- package/chunk/{StepIDCheckLoop-CXeoR-Ja.js.map → StepIDCheckLoop-BcK9rvfx.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-Dxs0LQVC.js → StepIDCheckLoop-qn08Isgj.js} +6 -6
- package/chunk/{StepIDCheckLoop-Dxs0LQVC.js.map → StepIDCheckLoop-qn08Isgj.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DQGqtIzk.js → StepIDCheckLoopOnfido-C7K-XD9W.js} +8 -8
- package/chunk/{StepIDCheckLoopOnfido-DQGqtIzk.js.map → StepIDCheckLoopOnfido-C7K-XD9W.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CBXReFo-.js → StepIDCheckLoopOnfido-CgYMCEU2.js} +8 -8
- package/chunk/{StepIDCheckLoopOnfido-CBXReFo-.js.map → StepIDCheckLoopOnfido-CgYMCEU2.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BhCTKXX5.js → StepIDCheckLoopRegula-Bn4FDSrN.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-BhCTKXX5.js.map → StepIDCheckLoopRegula-Bn4FDSrN.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B_ChARZG.js → StepIDCheckLoopRegula-DUzU25W4.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-B_ChARZG.js.map → StepIDCheckLoopRegula-DUzU25W4.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-7X6Ug5e6.js → StepLicensedProfessionalPersonalInfo-B5tOSzBR.js} +20 -20
- package/chunk/{StepLicensedProfessionalPersonalInfo-7X6Ug5e6.js.map → StepLicensedProfessionalPersonalInfo-B5tOSzBR.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-DWFV8fJX.js → StepLicensedProfessionalPersonalInfo-jTZrj1Cy.js} +20 -20
- package/chunk/{StepLicensedProfessionalPersonalInfo-DWFV8fJX.js.map → StepLicensedProfessionalPersonalInfo-jTZrj1Cy.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-7M5oYf-0.js → StepLowIncomePersonalInfo-DuoWo6b_.js} +23 -23
- package/chunk/{StepLowIncomePersonalInfo-7M5oYf-0.js.map → StepLowIncomePersonalInfo-DuoWo6b_.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-lxsM0k2r.js → StepLowIncomePersonalInfo-HWLNrKzs.js} +23 -23
- package/chunk/{StepLowIncomePersonalInfo-lxsM0k2r.js.map → StepLowIncomePersonalInfo-HWLNrKzs.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BRAHgo2q.js → StepMedicalProfessionalPersonalInfo-6bfBdUoS.js} +21 -21
- package/chunk/{StepMedicalProfessionalPersonalInfo-BRAHgo2q.js.map → StepMedicalProfessionalPersonalInfo-6bfBdUoS.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-Bxd0ubJR.js → StepMedicalProfessionalPersonalInfo-gWyABlRt.js} +21 -21
- package/chunk/{StepMedicalProfessionalPersonalInfo-Bxd0ubJR.js.map → StepMedicalProfessionalPersonalInfo-gWyABlRt.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-kcXiXhpq.js → StepMemberPersonalInfo-BprECp9N.js} +16 -16
- package/chunk/{StepMemberPersonalInfo-kcXiXhpq.js.map → StepMemberPersonalInfo-BprECp9N.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-VDTyExYV.js → StepMemberPersonalInfo-CmJqrGta.js} +16 -16
- package/chunk/{StepMemberPersonalInfo-VDTyExYV.js.map → StepMemberPersonalInfo-CmJqrGta.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DmIFOPh5.js → StepMoverPersonalInfo-CcaJgChc.js} +14 -14
- package/chunk/{StepMoverPersonalInfo-DmIFOPh5.js.map → StepMoverPersonalInfo-CcaJgChc.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-l87LesOl.js → StepMoverPersonalInfo-DCTVw2gn.js} +14 -14
- package/chunk/{StepMoverPersonalInfo-l87LesOl.js.map → StepMoverPersonalInfo-DCTVw2gn.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CW4VkCwi.js → StepOverrideComponent-C5Y13rbf.js} +8 -8
- package/chunk/{StepOverrideComponent-CW4VkCwi.js.map → StepOverrideComponent-C5Y13rbf.js.map} +1 -1
- package/chunk/{StepOverrideComponent-z1Ikjz0f.js → StepOverrideComponent-DZOhA9ul.js} +8 -8
- package/chunk/{StepOverrideComponent-z1Ikjz0f.js.map → StepOverrideComponent-DZOhA9ul.js.map} +1 -1
- package/chunk/{StepSMSLoop-C0JrQqS1.js → StepSMSLoop-CRBDFQdo.js} +5 -5
- package/chunk/{StepSMSLoop-C0JrQqS1.js.map → StepSMSLoop-CRBDFQdo.js.map} +1 -1
- package/chunk/{StepSMSLoop-Dyl0Ff91.js → StepSMSLoop-CkjhIae7.js} +5 -5
- package/chunk/{StepSMSLoop-Dyl0Ff91.js.map → StepSMSLoop-CkjhIae7.js.map} +1 -1
- package/chunk/StepSSO-Bx1gQq5b.js +4 -4
- package/chunk/StepSSO-Cy9ViRyN.js +4 -4
- package/chunk/{StepSocialSecurityNumber-O5fPKiI9.js → StepSocialSecurityNumber-BLIZfrFZ.js} +9 -9
- package/chunk/{StepSocialSecurityNumber-O5fPKiI9.js.map → StepSocialSecurityNumber-BLIZfrFZ.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CUSbn9ky.js → StepSocialSecurityNumber-DApTJdb-.js} +9 -9
- package/chunk/{StepSocialSecurityNumber-CUSbn9ky.js.map → StepSocialSecurityNumber-DApTJdb-.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BAQArfCf.js → StepStudentPersonalInfo-B50F4cXq.js} +20 -20
- package/chunk/{StepStudentPersonalInfo-BAQArfCf.js.map → StepStudentPersonalInfo-B50F4cXq.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-Bamp_lx6.js → StepStudentPersonalInfo-BpjQ8PhZ.js} +20 -20
- package/chunk/{StepStudentPersonalInfo-Bamp_lx6.js.map → StepStudentPersonalInfo-BpjQ8PhZ.js.map} +1 -1
- package/chunk/{StepSuccess-CyJo0wX0.js → StepSuccess-55Pbqvdo.js} +9 -9
- package/chunk/{StepSuccess-CyJo0wX0.js.map → StepSuccess-55Pbqvdo.js.map} +1 -1
- package/chunk/{StepSuccess-DKEVbl6y.js → StepSuccess-CgUgnT8d.js} +9 -9
- package/chunk/{StepSuccess-DKEVbl6y.js.map → StepSuccess-CgUgnT8d.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-B0HB_FxE.js → StepTeacherPersonalInfo-DFsX9TOF.js} +17 -17
- package/chunk/{StepTeacherPersonalInfo-B0HB_FxE.js.map → StepTeacherPersonalInfo-DFsX9TOF.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BEucyFHS.js → StepTeacherPersonalInfo-DyuI8uXC.js} +17 -17
- package/chunk/{StepTeacherPersonalInfo-BEucyFHS.js.map → StepTeacherPersonalInfo-DyuI8uXC.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BFizJiyZ.js +4 -4
- package/chunk/StepThirdPartyLoop-C9d7QWS3.js +4 -4
- package/chunk/{TeacherSchoolComponent-BMr7mVpV.js → TeacherSchoolComponent-8sLi650G.js} +9 -9
- package/chunk/{TeacherSchoolComponent-BMr7mVpV.js.map → TeacherSchoolComponent-8sLi650G.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-V4lovHE4.js → TeacherSchoolComponent-ndTw5jmt.js} +9 -9
- package/chunk/{TeacherSchoolComponent-V4lovHE4.js.map → TeacherSchoolComponent-ndTw5jmt.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-CuWxA5IP.js → TestingRouteOverrides-DXjtFZZd.js} +5 -5
- package/chunk/{TestingRouteOverrides-CuWxA5IP.js.map → TestingRouteOverrides-DXjtFZZd.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-CeN5B954.js → TestingRouteOverrides-fnlJLg1Z.js} +5 -5
- package/chunk/{TestingRouteOverrides-CeN5B954.js.map → TestingRouteOverrides-fnlJLg1Z.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-DC8twM4t.js +4 -4
- package/chunk/countryUtils-CuD8ii9W.js +12 -0
- package/chunk/{countryUtils-C_UVEq-E.js.map → countryUtils-CuD8ii9W.js.map} +1 -1
- package/chunk/{countryUtils-y0ivUOdj.js → countryUtils-qQluGFWF.js} +5 -5
- package/chunk/{countryUtils-y0ivUOdj.js.map → countryUtils-qQluGFWF.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +4 -4
- package/chunk/da-DwrVoxto.js +4 -4
- package/chunk/de-IWGZLhgY.js +4 -4
- package/chunk/{downshift.esm-DLWkU0ic.js → downshift.esm-D6vAwNly.js} +121 -121
- package/chunk/{downshift.esm-DLWkU0ic.js.map → downshift.esm-D6vAwNly.js.map} +1 -1
- package/chunk/{downshift.esm-YF8KQ2l_.js → downshift.esm-IbJIH7kK.js} +5 -5
- package/chunk/{downshift.esm-YF8KQ2l_.js.map → downshift.esm-IbJIH7kK.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/{empties-CIHgi5OO.js → empties-BBKd53_B.js} +12 -5
- package/chunk/empties-BBKd53_B.js.map +1 -0
- package/chunk/{empties-CT4nwqif.js → empties-DcQjcgEV.js} +12 -5
- package/chunk/empties-DcQjcgEV.js.map +1 -0
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/getInstallType-BRxisNNY.js +4 -4
- package/chunk/getInstallType-DlS_DNKt.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/{hooks-CzvMG3Q7.js → hooks-B7aeAwHn.js} +6 -6
- package/chunk/hooks-B7aeAwHn.js.map +1 -0
- package/chunk/{hooks-Dc2ICkLE.js → hooks-D0X_qdc-.js} +6 -6
- package/chunk/hooks-D0X_qdc-.js.map +1 -0
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/i18next-iyVj5hRL.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/intl-BK4prEGw.js +4 -4
- package/chunk/is-CvmKEON9.js +4 -4
- package/chunk/it-CnmveGgC.js +4 -4
- package/chunk/iw-DFUYHkxF.js +4 -4
- package/chunk/ja-CjVb2tWW.js +4 -4
- package/chunk/jsx-runtime-BUMIo32n.js +4 -4
- package/chunk/jsx-runtime-DwmrsRqi.js +4 -4
- package/chunk/kk-Dvz4nK6K.js +4 -4
- package/chunk/ko-DzOqBMGC.js +4 -4
- package/chunk/lo-C2WPq55d.js +4 -4
- package/chunk/lt-BSDYvjTF.js +4 -4
- package/chunk/lv-CefDPT-M.js +4 -4
- package/chunk/mockProgramBranding-C9Ysu3Mp.js +26 -0
- package/chunk/mockProgramBranding-C9Ysu3Mp.js.map +1 -0
- package/chunk/mockProgramConfiguration-YBQMVL51.js +4 -4
- package/chunk/mockProgramI18n-CgYx_1_a.js +4 -4
- package/chunk/mockProgramTheme-Cfk2dzF3.js +4 -4
- package/chunk/mockProgramTheme-Cfk2dzF3.js.map +1 -1
- package/chunk/{mocks-aAiSx13N.js → mocks-DV23paUj.js} +5 -5
- package/chunk/{mocks-aAiSx13N.js.map → mocks-DV23paUj.js.map} +1 -1
- package/chunk/{mocks-Dbbpa-PB.js → mocks-R-p7VtJz.js} +5 -5
- package/chunk/{mocks-Dbbpa-PB.js.map → mocks-R-p7VtJz.js.map} +1 -1
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-r4JxFjsB.js → programThemeGetters-B9wBX-xJ.js} +1707 -1700
- package/chunk/programThemeGetters-B9wBX-xJ.js.map +1 -0
- package/chunk/{programThemeGetters-CGPGlO7Q.js → programThemeGetters-Bzh-58Ge.js} +77 -58
- package/chunk/programThemeGetters-Bzh-58Ge.js.map +1 -0
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/{stepComponentHelpers-CeJt7-iZ.js → stepComponentHelpers-CyqXTDdj.js} +6 -6
- package/chunk/{stepComponentHelpers-CeJt7-iZ.js.map → stepComponentHelpers-CyqXTDdj.js.map} +1 -1
- package/chunk/{stepComponentHelpers-Djs_ph7X.js → stepComponentHelpers-Dztw-HNP.js} +6 -6
- package/chunk/{stepComponentHelpers-Djs_ph7X.js.map → stepComponentHelpers-Dztw-HNP.js.map} +1 -1
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-6IQu9HGj.js → useCollectFieldsEndpoint-BsZtszzj.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-6IQu9HGj.js.map → useCollectFieldsEndpoint-BsZtszzj.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-NVMDQMeW.js → useCollectFieldsEndpoint-CDurKyGC.js} +13 -13
- package/chunk/{useCollectFieldsEndpoint-NVMDQMeW.js.map → useCollectFieldsEndpoint-CDurKyGC.js.map} +1 -1
- package/chunk/{useMetrics-CWz02hZz.js → useMetrics-C13Ap129.js} +5 -5
- package/chunk/{useMetrics-CWz02hZz.js.map → useMetrics-C13Ap129.js.map} +1 -1
- package/chunk/{useMetrics-D-HTNFpy.js → useMetrics-O66_lNx5.js} +5 -5
- package/chunk/{useMetrics-D-HTNFpy.js.map → useMetrics-O66_lNx5.js.map} +1 -1
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +896 -885
- package/sheerid.js.map +1 -1
- package/chunk/Message-B_RKEVv2.js.map +0 -1
- package/chunk/Message-jhvpcui8.js.map +0 -1
- package/chunk/countryUtils-C_UVEq-E.js +0 -12
- package/chunk/empties-CIHgi5OO.js.map +0 -1
- package/chunk/empties-CT4nwqif.js.map +0 -1
- package/chunk/hooks-CzvMG3Q7.js.map +0 -1
- package/chunk/hooks-Dc2ICkLE.js.map +0 -1
- package/chunk/programThemeGetters-CGPGlO7Q.js.map +0 -1
- package/chunk/programThemeGetters-r4JxFjsB.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-CRvS_5S3.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","status","choice","newValue","event","stateValue","stateChoice"],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\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 MilitaryStatusComponent } 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 { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!programConfiguration.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\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 <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"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: viewModel.organization.id,\n label: viewModel.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 updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"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 updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {programConfiguration.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"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 updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"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 {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAagD,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAY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YAAY;MACzB,GAAGtB,EAAoB,UAAU;MACjC,oBAAoB2B;KACtB,CAAC,GACDxD,EACE,sBACAwD,GACA3B,CACF;IACF;IACW;IACX,UAAU1B,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAiC,EAAA,IAAA,CAAClB,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAkB,EAAA,IAAA,CAAC3B,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC4C,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAjB,EAAA,IAAA,CAACzB,GAAD;IACE,MAAM4B,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAAH,EAAA,IAAA,CAAC3C,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-B-iduusm.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","status","choice","newValue","event","stateValue","stateChoice"],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\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 MilitaryStatusComponent } 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 { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!programConfiguration.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\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 <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"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: viewModel.organization.id,\n label: viewModel.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 updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"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 updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {programConfiguration.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"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 updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"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 {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAagD,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC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AAY;MACzB,GAAGtB,EAAoB,UAAU;MACjC,oBAAoB2B;KACtB,CAAC,GACDxD,EACE,sBACAwD,GACA3B,CACF;IACF;IACW;IACX,UAAU1B,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAiC,EAAA,IAAA,CAAClB,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAkB,EAAA,IAAA,CAAC3B,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC4C,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAjB,EAAA,IAAA,CAACzB,GAAD;IACE,MAAM4B,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAAH,EAAA,IAAA,CAAC3C,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.311.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793640327724
|
|
5
|
+
* BUILD_DATE: Mon Nov 02 2026 17:25:27 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
|
|
7
7
|
*/
|
|
8
8
|
import { dt as e, u as t } from "./i18next-iyVj5hRL.js";
|
|
9
9
|
import { n, t as r } from "./jsx-runtime-DwmrsRqi.js";
|
|
10
|
-
import { o as i } from "./programThemeGetters-
|
|
10
|
+
import { o as i } from "./programThemeGetters-B9wBX-xJ.js";
|
|
11
11
|
import { b as a } from "./runtimeTypes-B2AGNJMT.js";
|
|
12
|
-
import { h as o } from "./FormFooterComponent-
|
|
12
|
+
import { h as o } from "./FormFooterComponent-Cpzral2z.js";
|
|
13
13
|
import { a as s } from "./refs-Mq0rtW9K.js";
|
|
14
14
|
import { n as c } from "../sheerid.js";
|
|
15
|
-
import { t as l } from "./useCollectFieldsEndpoint-
|
|
16
|
-
import { d as u, f as d, r as f, t as p } from "./stepComponentHelpers-
|
|
17
|
-
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-
|
|
18
|
-
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-
|
|
19
|
-
import { i as S } from "./FormSelectChoice-
|
|
20
|
-
import { t as C } from "./BirthDateComponent-
|
|
21
|
-
import { t as w } from "./PostalCodeComponent-
|
|
22
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
23
|
-
import { t as E } from "./City-
|
|
24
|
-
import { t as D } from "./AddressComponent-
|
|
25
|
-
import { t as O } from "./ExtraMessage-
|
|
26
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
27
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
28
|
-
import { t as j } from "./countryUtils-
|
|
29
|
-
import { t as M } from "./StateSelectComponent-
|
|
30
|
-
import { n as N, r as P, t as F } from "./DischargeDateComponent-
|
|
31
|
-
import { t as I } from "./StatusComponent-
|
|
15
|
+
import { t as l } from "./useCollectFieldsEndpoint-BsZtszzj.js";
|
|
16
|
+
import { d as u, f as d, r as f, t as p } from "./stepComponentHelpers-CyqXTDdj.js";
|
|
17
|
+
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-D-DQ7hgF.js";
|
|
18
|
+
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-DmouLI73.js";
|
|
19
|
+
import { i as S } from "./FormSelectChoice-BQ03wMOm.js";
|
|
20
|
+
import { t as C } from "./BirthDateComponent-Dq93H5fs.js";
|
|
21
|
+
import { t as w } from "./PostalCodeComponent-DKc1T76y.js";
|
|
22
|
+
import { t as T } from "./CountryComponentWrapper-BD-OFB7m.js";
|
|
23
|
+
import { t as E } from "./City-C_ojHI8D.js";
|
|
24
|
+
import { t as D } from "./AddressComponent-CvNuqaMO.js";
|
|
25
|
+
import { t as O } from "./ExtraMessage-hgijE4nR.js";
|
|
26
|
+
import { t as k } from "./ChangeLocaleComponent-DP6rvRFM.js";
|
|
27
|
+
import { t as A } from "./PersonalInfoStepWrapper-vV6StMJO.js";
|
|
28
|
+
import { t as j } from "./countryUtils-CuD8ii9W.js";
|
|
29
|
+
import { t as M } from "./StateSelectComponent-DCTvDI_B.js";
|
|
30
|
+
import { n as N, r as P, t as F } from "./DischargeDateComponent-DyrBA-sT.js";
|
|
31
|
+
import { t as I } from "./StatusComponent-DYnHvCJZ.js";
|
|
32
32
|
//#region src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts
|
|
33
33
|
var L = (t, n, r, i) => {
|
|
34
34
|
let a = r.viewModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-GnvZysih.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","FormattedHTMLMessage","status","choice","newValue","event","stateValue","stateChoice"],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\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 MilitaryStatusComponent } 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 { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!programConfiguration.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\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 <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"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: viewModel.organization.id,\n label: viewModel.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 updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"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 updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {programConfiguration.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"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 updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"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 {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa+C,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC,EAAoB;CACtC,OAAOjD,EAAQgD,IAAY,M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oBAAoB4B;KACtB,CAAC,GACDzD,EACE,sBACAyD,GACA5B,CACF;IACF;IACW;IACX,UAAU1B,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAiC,EAAA,IAAA,CAAClB,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAkB,EAAA,IAAA,CAAC3B,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC4C,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAjB,EAAA,IAAA,CAACzB,GAAD;IACE,MAAM4B,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAAH,EAAA,IAAA,CAACkB,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-S-2NcxN5.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","FormattedHTMLMessage","status","choice","newValue","event","stateValue","stateChoice"],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\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 MilitaryStatusComponent } 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 { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!programConfiguration.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\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 <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"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: viewModel.organization.id,\n label: viewModel.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 updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"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 updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {programConfiguration.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"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 updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"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 {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa+C,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC,EAAoB;CACtC,OAAOjD,EAAQgD,IAAY,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,oBAAoB4B;KACtB,CAAC,GACDzD,EACE,sBACAyD,GACA5B,CACF;IACF;IACW;IACX,UAAU1B,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAiC,EAAA,IAAA,CAAClB,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAkB,EAAA,IAAA,CAAC3B,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC4C,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAjB,EAAA,IAAA,CAACzB,GAAD;IACE,MAAM4B,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAAH,EAAA,IAAA,CAACkB,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
@@ -4,43 +4,43 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.311.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793640334956
|
|
9
|
+
* BUILD_DATE: Mon Nov 02 2026 17:25:34 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 776e6da2b784d1da6b1de14b7ee019e118e6db8c
|
|
11
11
|
*/
|
|
12
12
|
import { At as e, Et as t, p as n, s as r } from "./intl-BK4prEGw.js";
|
|
13
13
|
import { S as ee, b as i, t as te, u as a } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { n as o, s, t as c } from "./jsx-runtime-BUMIo32n.js";
|
|
15
|
-
import { a as l } from "./Message-
|
|
16
|
-
import { o as u } from "./programThemeGetters-
|
|
17
|
-
import { p as ne, t as re, v as ie } from "./FormFooterComponent-
|
|
15
|
+
import { a as l } from "./Message-DgJ0fCH2.js";
|
|
16
|
+
import { o as u } from "./programThemeGetters-Bzh-58Ge.js";
|
|
17
|
+
import { p as ne, t as re, v as ie } from "./FormFooterComponent-D3c-ewUT.js";
|
|
18
18
|
import { t as ae } from "../_mysheerid-preview.js";
|
|
19
|
-
import { t as oe } from "./useCollectFieldsEndpoint-
|
|
20
|
-
import { d, f, i as se, l as ce, r as le, s as ue, t as p } from "./stepComponentHelpers-
|
|
21
|
-
import { a as de, i as fe, n as pe, o as me, s as m, t as h } from "./CaptchaComponent-
|
|
22
|
-
import { n as g, t as _ } from "./PersonalInfoStepSubmitButton-
|
|
23
|
-
import { i as v } from "./FormSelectChoice-
|
|
24
|
-
import { t as y } from "./BirthDateComponent-
|
|
25
|
-
import { t as b } from "./PostalCodeComponent-
|
|
26
|
-
import { t as x } from "./CountryComponentWrapper-
|
|
27
|
-
import { t as S } from "./City-
|
|
28
|
-
import { t as C } from "./AddressComponent-
|
|
29
|
-
import { t as w } from "./ExtraMessage-
|
|
30
|
-
import { t as T } from "./countryUtils-
|
|
31
|
-
import { t as E } from "./CollegeNameComponent-
|
|
32
|
-
import { t as D } from "./StateSelectComponent-
|
|
33
|
-
import { n as O, r as k, t as A } from "./DischargeDateComponent-
|
|
34
|
-
import { t as j } from "./DriverLicenseNumberComponent-
|
|
35
|
-
import { n as M, t as N } from "./LowIncomeOrganizationComponent-
|
|
36
|
-
import { t as P } from "./StatusComponent-
|
|
37
|
-
import { t as F } from "./FirstResponderOrganizationComponent-
|
|
38
|
-
import { t as I } from "./LicensedProfessionalOrganizationComponent-
|
|
39
|
-
import { t as he } from "./MedicalProfessionalOrganizationComponent-
|
|
40
|
-
import { t as L } from "./MemberIdComponent-
|
|
41
|
-
import { t as R } from "./MembershipOrganizationComponent-
|
|
42
|
-
import { t as ge } from "./TeacherSchoolComponent-
|
|
43
|
-
import { t as _e } from "./SSN-
|
|
19
|
+
import { t as oe } from "./useCollectFieldsEndpoint-CDurKyGC.js";
|
|
20
|
+
import { d, f, i as se, l as ce, r as le, s as ue, t as p } from "./stepComponentHelpers-Dztw-HNP.js";
|
|
21
|
+
import { a as de, i as fe, n as pe, o as me, s as m, t as h } from "./CaptchaComponent-B1wduRz7.js";
|
|
22
|
+
import { n as g, t as _ } from "./PersonalInfoStepSubmitButton-C7SSnJjv.js";
|
|
23
|
+
import { i as v } from "./FormSelectChoice-C_d5rhmo.js";
|
|
24
|
+
import { t as y } from "./BirthDateComponent-DbTRigG5.js";
|
|
25
|
+
import { t as b } from "./PostalCodeComponent-BgHVeMZc.js";
|
|
26
|
+
import { t as x } from "./CountryComponentWrapper-B3pZNlgz.js";
|
|
27
|
+
import { t as S } from "./City-BENIBYvt.js";
|
|
28
|
+
import { t as C } from "./AddressComponent-D3J1ec4I.js";
|
|
29
|
+
import { t as w } from "./ExtraMessage-BuBnwExg.js";
|
|
30
|
+
import { t as T } from "./countryUtils-qQluGFWF.js";
|
|
31
|
+
import { t as E } from "./CollegeNameComponent-BObW76RR.js";
|
|
32
|
+
import { t as D } from "./StateSelectComponent-CTZt_g4q.js";
|
|
33
|
+
import { n as O, r as k, t as A } from "./DischargeDateComponent-CmYI7Fs4.js";
|
|
34
|
+
import { t as j } from "./DriverLicenseNumberComponent-BSk91mS6.js";
|
|
35
|
+
import { n as M, t as N } from "./LowIncomeOrganizationComponent-Bt68GVWp.js";
|
|
36
|
+
import { t as P } from "./StatusComponent-BBBHt-HS.js";
|
|
37
|
+
import { t as F } from "./FirstResponderOrganizationComponent-DbawjfXx.js";
|
|
38
|
+
import { t as I } from "./LicensedProfessionalOrganizationComponent-C4XcmGi5.js";
|
|
39
|
+
import { t as he } from "./MedicalProfessionalOrganizationComponent-CZolO1PW.js";
|
|
40
|
+
import { t as L } from "./MemberIdComponent-Chbh019E.js";
|
|
41
|
+
import { t as R } from "./MembershipOrganizationComponent-Di6mpKm2.js";
|
|
42
|
+
import { t as ge } from "./TeacherSchoolComponent-ndTw5jmt.js";
|
|
43
|
+
import { t as _e } from "./SSN-Bcd5widF.js";
|
|
44
44
|
//#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
|
|
45
45
|
var z = /* @__PURE__ */ e(s(), 1), B = c(), V = ({ verificationService: e }) => {
|
|
46
46
|
let s = u(), c = e.viewModel, { updateViewModel: V } = e, [H, ve] = z.useState(void 0), U = (e) => H && H.some((t) => t.key === e), { fieldValidationErrors: W } = e, G = e.verificationResponse, ye = ne(G), K = (e, t) => {
|