@sheerid/jslib 2.316.0 → 2.317.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 +36 -36
- package/chunk/AddressComponent-BxavEqNN.js +4 -4
- package/chunk/AddressComponent-D2mEkfix.js +4 -4
- package/chunk/AnnouncingHeader-C3W0VQzV.js +4 -4
- package/chunk/AnnouncingHeader-OtaykXZw.js +4 -4
- package/chunk/{ApiUrls-C604MmkC.js → ApiUrls-BW8MkgqK.js} +5 -5
- package/chunk/{ApiUrls-C604MmkC.js.map → ApiUrls-BW8MkgqK.js.map} +1 -1
- package/chunk/{ApiUrls-DC453lFN.js → ApiUrls-DjPCY66L.js} +5 -5
- package/chunk/{ApiUrls-DC453lFN.js.map → ApiUrls-DjPCY66L.js.map} +1 -1
- package/chunk/{BirthDateComponent-BwcAqOFe.js → BirthDateComponent-bxdYsOrJ.js} +5 -5
- package/chunk/{BirthDateComponent-BwcAqOFe.js.map → BirthDateComponent-bxdYsOrJ.js.map} +1 -1
- package/chunk/{BirthDateComponent-d6voii3J.js → BirthDateComponent-kIkfY0Fo.js} +5 -5
- package/chunk/{BirthDateComponent-d6voii3J.js.map → BirthDateComponent-kIkfY0Fo.js.map} +1 -1
- package/chunk/{CaptchaComponent-Cw4MkQRy.js → CaptchaComponent-BcQgxG0o.js} +5 -5
- package/chunk/{CaptchaComponent-Cw4MkQRy.js.map → CaptchaComponent-BcQgxG0o.js.map} +1 -1
- package/chunk/{CaptchaComponent-Da7DkPA_.js → CaptchaComponent-CxRzUQTM.js} +5 -5
- package/chunk/{CaptchaComponent-Da7DkPA_.js.map → CaptchaComponent-CxRzUQTM.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CUEmQuoA.js → ChangeLocaleComponent-fYWBTVHc.js} +5 -5
- package/chunk/{ChangeLocaleComponent-CUEmQuoA.js.map → ChangeLocaleComponent-fYWBTVHc.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent--uRPSHsI.js → ChangeLocaleComponent-ry8sqUF9.js} +5 -5
- package/chunk/{ChangeLocaleComponent--uRPSHsI.js.map → ChangeLocaleComponent-ry8sqUF9.js.map} +1 -1
- package/chunk/City-CR2xigNn.js +4 -4
- package/chunk/City-DoccJLpM.js +4 -4
- package/chunk/{CollegeNameComponent-DwA9T43o.js → CollegeNameComponent-RmDbu_if.js} +6 -6
- package/chunk/{CollegeNameComponent-DwA9T43o.js.map → CollegeNameComponent-RmDbu_if.js.map} +1 -1
- package/chunk/{CollegeNameComponent-gIG7563E.js → CollegeNameComponent-pSsPQBKE.js} +6 -6
- package/chunk/{CollegeNameComponent-gIG7563E.js.map → CollegeNameComponent-pSsPQBKE.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-DdLZvzfB.js +4 -4
- package/chunk/CopyToClipboardComponent-De_3_3VT.js +4 -4
- package/chunk/{CountryComponentWrapper-D6bRhqUP.js → CountryComponentWrapper-CA5QjkzI.js} +5 -5
- package/chunk/{CountryComponentWrapper-D6bRhqUP.js.map → CountryComponentWrapper-CA5QjkzI.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-PZKJeo-8.js → CountryComponentWrapper-DC2xpwfp.js} +5 -5
- package/chunk/{CountryComponentWrapper-PZKJeo-8.js.map → CountryComponentWrapper-DC2xpwfp.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DllDTFXI.js → DischargeDateComponent-DRJdJ-cl.js} +7 -7
- package/chunk/{DischargeDateComponent-DllDTFXI.js.map → DischargeDateComponent-DRJdJ-cl.js.map} +1 -1
- package/chunk/{DischargeDateComponent-sCHfnq4x.js → DischargeDateComponent-pWkyMum3.js} +7 -7
- package/chunk/{DischargeDateComponent-sCHfnq4x.js.map → DischargeDateComponent-pWkyMum3.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-CdRJgKXz.js +4 -4
- package/chunk/DriverLicenseNumberComponent-iE4uZhjY.js +4 -4
- package/chunk/{EmailLoopPending-B3Y7-M0k.js → EmailLoopPending-BLMa8Lz3.js} +5 -5
- package/chunk/{EmailLoopPending-B3Y7-M0k.js.map → EmailLoopPending-BLMa8Lz3.js.map} +1 -1
- package/chunk/{EmailLoopPending-DPEx2yPl.js → EmailLoopPending-jjuq_4Uo.js} +5 -5
- package/chunk/{EmailLoopPending-DPEx2yPl.js.map → EmailLoopPending-jjuq_4Uo.js.map} +1 -1
- package/chunk/ExtraMessage-CR5rN46Q.js +4 -4
- package/chunk/ExtraMessage-Dy5YujvI.js +4 -4
- package/chunk/{FirstResponderOrganizationComponent-CrsqGhmT.js → FirstResponderOrganizationComponent-CkVB_46d.js} +6 -6
- package/chunk/{FirstResponderOrganizationComponent-CrsqGhmT.js.map → FirstResponderOrganizationComponent-CkVB_46d.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Bnqi3SpC.js → FirstResponderOrganizationComponent-DdaFCoI4.js} +6 -6
- package/chunk/{FirstResponderOrganizationComponent-Bnqi3SpC.js.map → FirstResponderOrganizationComponent-DdaFCoI4.js.map} +1 -1
- package/chunk/FormFieldInputSelect-DCe1fl-X.js +4 -4
- package/chunk/FormFieldInputSelect-wzL--dyG.js +4 -4
- package/chunk/FormFieldLayout-Cx2ljZnE.js +4 -4
- package/chunk/FormFieldLayout-eZlxsUFO.js +4 -4
- package/chunk/FormFieldText-BqN10-Wh.js +4 -4
- package/chunk/FormFieldText-CSfUMOnT.js +4 -4
- package/chunk/{FormFieldTypeahead-CP2_PAIw.js → FormFieldTypeahead-CVBnJBm4.js} +6 -6
- package/chunk/{FormFieldTypeahead-CP2_PAIw.js.map → FormFieldTypeahead-CVBnJBm4.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CoH3Km-j.js → FormFieldTypeahead-ldbp18yE.js} +6 -6
- package/chunk/{FormFieldTypeahead-CoH3Km-j.js.map → FormFieldTypeahead-ldbp18yE.js.map} +1 -1
- package/chunk/{FormFooterComponent-BNcMAlwo.js → FormFooterComponent-DIRoNXm5.js} +7 -7
- package/chunk/{FormFooterComponent-BNcMAlwo.js.map → FormFooterComponent-DIRoNXm5.js.map} +1 -1
- package/chunk/{FormFooterComponent-CCnomymd.js → FormFooterComponent-DTMJcOBW.js} +7 -7
- package/chunk/{FormFooterComponent-CCnomymd.js.map → FormFooterComponent-DTMJcOBW.js.map} +1 -1
- package/chunk/FormSelectChoice-BtoOF4T1.js +4 -4
- package/chunk/FormSelectChoice-OvLHNUCT.js +4 -4
- package/chunk/InputText-CofmfudI.js +4 -4
- package/chunk/InputText-Dcl3FSxA.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-BpaFeYR-.js → LicensedProfessionalOrganizationComponent-B5ocf0y_.js} +6 -6
- package/chunk/{LicensedProfessionalOrganizationComponent-BpaFeYR-.js.map → LicensedProfessionalOrganizationComponent-B5ocf0y_.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Do2puR4-.js → LicensedProfessionalOrganizationComponent-rrBsVHE5.js} +6 -6
- package/chunk/{LicensedProfessionalOrganizationComponent-Do2puR4-.js.map → LicensedProfessionalOrganizationComponent-rrBsVHE5.js.map} +1 -1
- package/chunk/LogoComponent-1FE2nzPz.js +4 -4
- package/chunk/LogoComponent-Dwrer09q.js +4 -4
- package/chunk/{LowIncomeOrganizationComponent-ClsRb34i.js → LowIncomeOrganizationComponent-CjDP857_.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-ClsRb34i.js.map → LowIncomeOrganizationComponent-CjDP857_.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DtM5LGeH.js → LowIncomeOrganizationComponent-R4Pb3Dzo.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-DtM5LGeH.js.map → LowIncomeOrganizationComponent-R4Pb3Dzo.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DH-kRN2y.js → MedicalProfessionalOrganizationComponent-BZ7zk4-L.js} +6 -6
- package/chunk/{MedicalProfessionalOrganizationComponent-DH-kRN2y.js.map → MedicalProfessionalOrganizationComponent-BZ7zk4-L.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-BGx4efvQ.js → MedicalProfessionalOrganizationComponent-DtU45g6N.js} +6 -6
- package/chunk/{MedicalProfessionalOrganizationComponent-BGx4efvQ.js.map → MedicalProfessionalOrganizationComponent-DtU45g6N.js.map} +1 -1
- package/chunk/MemberIdComponent-Bwd8_Zby.js +4 -4
- package/chunk/MemberIdComponent-Op5eJ6S1.js +4 -4
- package/chunk/{MembershipOrganizationComponent-B7Xe1YGg.js → MembershipOrganizationComponent-B-1ae88w.js} +6 -6
- package/chunk/{MembershipOrganizationComponent-B7Xe1YGg.js.map → MembershipOrganizationComponent-B-1ae88w.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-jn62suuT.js → MembershipOrganizationComponent-DjnLvZUD.js} +6 -6
- package/chunk/{MembershipOrganizationComponent-jn62suuT.js.map → MembershipOrganizationComponent-DjnLvZUD.js.map} +1 -1
- package/chunk/Message-B40rYRnQ.js +4 -4
- package/chunk/Message-DeYfEIfJ.js +4 -4
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-CT7lguuZ.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-jF2Q-TQ1.js +4 -4
- package/chunk/{PersonalInfoStepWrapper-8bWmgyhA.js → PersonalInfoStepWrapper-83-yLjnF.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-8bWmgyhA.js.map → PersonalInfoStepWrapper-83-yLjnF.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-Wq0T4gth.js → PersonalInfoStepWrapper-B6KYjnG-.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-Wq0T4gth.js.map → PersonalInfoStepWrapper-B6KYjnG-.js.map} +1 -1
- package/chunk/PostalCodeComponent-CM7B9nbQ.js +4 -4
- package/chunk/PostalCodeComponent-DOaiP-XH.js +4 -4
- package/chunk/SSN-CLdLfiNj.js +4 -4
- package/chunk/SSN-CxrFw1Bw.js +4 -4
- package/chunk/StateSelectComponent-Bs0zMXwM.js +4 -4
- package/chunk/StateSelectComponent-CDUxaxhl.js +4 -4
- package/chunk/StatusComponent-B9xHqfyT.js +4 -4
- package/chunk/StatusComponent-wmBrTgh8.js +4 -4
- package/chunk/{StepAgePersonalInfo-Bbh1q-Ny.js → StepAgePersonalInfo-B8PrGThF.js} +11 -11
- package/chunk/{StepAgePersonalInfo-Bbh1q-Ny.js.map → StepAgePersonalInfo-B8PrGThF.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-8s929DzY.js → StepAgePersonalInfo-BGxLAl7s.js} +11 -11
- package/chunk/{StepAgePersonalInfo-8s929DzY.js.map → StepAgePersonalInfo-BGxLAl7s.js.map} +1 -1
- package/chunk/StepCard-C1asZqmo.js +4 -4
- package/chunk/StepCard-CSGX5DWE.js +4 -4
- package/chunk/{StepCollectIdentifier-eNuejbhk.js → StepCollectIdentifier-C0kP46YS.js} +5 -5
- package/chunk/{StepCollectIdentifier-eNuejbhk.js.map → StepCollectIdentifier-C0kP46YS.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-BnKW0Kpp.js → StepCollectIdentifier-CwcEqKDP.js} +5 -5
- package/chunk/{StepCollectIdentifier-BnKW0Kpp.js.map → StepCollectIdentifier-CwcEqKDP.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CvVnTjMm.js → StepCollectMilitaryPersonalInfoComponent-D3ww_3aJ.js} +13 -13
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CvVnTjMm.js.map → StepCollectMilitaryPersonalInfoComponent-D3ww_3aJ.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-IUKAcF4m.js → StepCollectMilitaryPersonalInfoComponent-DowmOzeP.js} +13 -13
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-IUKAcF4m.js.map → StepCollectMilitaryPersonalInfoComponent-DowmOzeP.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DmTVCQ3_.js → StepCollectPersonalInfo-BMljSHTw.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-DmTVCQ3_.js.map → StepCollectPersonalInfo-BMljSHTw.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-Bxj7rasK.js → StepCollectPersonalInfo-svrF-haJ.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-Bxj7rasK.js.map → StepCollectPersonalInfo-svrF-haJ.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-Bjs9HhHK.js +4 -4
- package/chunk/StepCompleteAuthentication-CK8SYf3r.js +4 -4
- package/chunk/{StepConsolation-Do3BvzLY.js → StepConsolation-BRcJHP3o.js} +5 -5
- package/chunk/{StepConsolation-Do3BvzLY.js.map → StepConsolation-BRcJHP3o.js.map} +1 -1
- package/chunk/{StepConsolation-qIEGxdup.js → StepConsolation-CI7sVIqL.js} +5 -5
- package/chunk/{StepConsolation-qIEGxdup.js.map → StepConsolation-CI7sVIqL.js.map} +1 -1
- package/chunk/{StepDocUpload-Dwczk00D.js → StepDocUpload-83N8pygz.js} +5 -5
- package/chunk/{StepDocUpload-Dwczk00D.js.map → StepDocUpload-83N8pygz.js.map} +1 -1
- package/chunk/{StepDocUpload-DZFVexGs.js → StepDocUpload-BMWwE_AC.js} +5 -5
- package/chunk/{StepDocUpload-DZFVexGs.js.map → StepDocUpload-BMWwE_AC.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BWtUxbIw.js → StepDriverLicensePersonalInfoComponent-Bxtbt_va.js} +8 -8
- package/chunk/{StepDriverLicensePersonalInfoComponent-BWtUxbIw.js.map → StepDriverLicensePersonalInfoComponent-Bxtbt_va.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CE_p8hWp.js → StepDriverLicensePersonalInfoComponent-XMehNxRD.js} +8 -8
- package/chunk/{StepDriverLicensePersonalInfoComponent-CE_p8hWp.js.map → StepDriverLicensePersonalInfoComponent-XMehNxRD.js.map} +1 -1
- package/chunk/{StepEmailLoop-CPF3-q6j.js → StepEmailLoop-BWsv5YAe.js} +6 -6
- package/chunk/{StepEmailLoop-CPF3-q6j.js.map → StepEmailLoop-BWsv5YAe.js.map} +1 -1
- package/chunk/{StepEmailLoop-CuJwIM1_.js → StepEmailLoop-Dkvzpmnv.js} +6 -6
- package/chunk/{StepEmailLoop-CuJwIM1_.js.map → StepEmailLoop-Dkvzpmnv.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DkDvxjer.js → StepEmploymentPersonalInfo-9DtJG0OG.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-DkDvxjer.js.map → StepEmploymentPersonalInfo-9DtJG0OG.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-D5nZkseJ.js → StepEmploymentPersonalInfo-DcrTaYs9.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-D5nZkseJ.js.map → StepEmploymentPersonalInfo-DcrTaYs9.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CLxwkudV.js → StepFirstResponderPersonalInfo-DJQLw5Gz.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-CLxwkudV.js.map → StepFirstResponderPersonalInfo-DJQLw5Gz.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-HdJfcO_z.js → StepFirstResponderPersonalInfo-QdGZolBt.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-HdJfcO_z.js.map → StepFirstResponderPersonalInfo-QdGZolBt.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-xgXKl9_S.js → StepGeneralIdentityPersonalInfoComponent-Dh6BJB1t.js} +9 -9
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-xgXKl9_S.js.map → StepGeneralIdentityPersonalInfoComponent-Dh6BJB1t.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DJ-NhRjo.js → StepGeneralIdentityPersonalInfoComponent-ZjDeJobc.js} +9 -9
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DJ-NhRjo.js.map → StepGeneralIdentityPersonalInfoComponent-ZjDeJobc.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DIJLJ-No.js → StepHybridIdentityPersonalInfoComponent-Bvh8lwUm.js} +9 -9
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DIJLJ-No.js.map → StepHybridIdentityPersonalInfoComponent-Bvh8lwUm.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BjSAtSa6.js → StepHybridIdentityPersonalInfoComponent-Cvt2WqE-.js} +9 -9
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BjSAtSa6.js.map → StepHybridIdentityPersonalInfoComponent-Cvt2WqE-.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DUYjdP69.js → StepIDCheckLoop-CnDiyP5v.js} +5 -5
- package/chunk/{StepIDCheckLoop-DUYjdP69.js.map → StepIDCheckLoop-CnDiyP5v.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-qIX2zLc8.js → StepIDCheckLoop-D8ZfXDBq.js} +5 -5
- package/chunk/{StepIDCheckLoop-qIX2zLc8.js.map → StepIDCheckLoop-D8ZfXDBq.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CV3kt9oK.js → StepIDCheckLoopOnfido-BQTO-ZjX.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-CV3kt9oK.js.map → StepIDCheckLoopOnfido-BQTO-ZjX.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-tvPCLWF8.js → StepIDCheckLoopOnfido-Cz_KDqce.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-tvPCLWF8.js.map → StepIDCheckLoopOnfido-Cz_KDqce.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-De-6wF71.js → StepIDCheckLoopRegula-CqtTkiTH.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-De-6wF71.js.map → StepIDCheckLoopRegula-CqtTkiTH.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BILUu5tf.js → StepIDCheckLoopRegula-DOjIf5b1.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-BILUu5tf.js.map → StepIDCheckLoopRegula-DOjIf5b1.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CG3ysYv5.js → StepLicensedProfessionalPersonalInfo-BqOrgGC-.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-CG3ysYv5.js.map → StepLicensedProfessionalPersonalInfo-BqOrgGC-.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-1usJS0LC.js → StepLicensedProfessionalPersonalInfo-DfC84v9R.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-1usJS0LC.js.map → StepLicensedProfessionalPersonalInfo-DfC84v9R.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BDfU93Fg.js → StepLowIncomePersonalInfo-BnY61mtT.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-BDfU93Fg.js.map → StepLowIncomePersonalInfo-BnY61mtT.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-Gb1n2pGQ.js → StepLowIncomePersonalInfo-aXEdCTis.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-Gb1n2pGQ.js.map → StepLowIncomePersonalInfo-aXEdCTis.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DMrAMdhg.js → StepMedicalProfessionalPersonalInfo-BObFYNXH.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-DMrAMdhg.js.map → StepMedicalProfessionalPersonalInfo-BObFYNXH.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-39h1tErA.js → StepMedicalProfessionalPersonalInfo-D-vCCbDa.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-39h1tErA.js.map → StepMedicalProfessionalPersonalInfo-D-vCCbDa.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BcAmXMmQ.js → StepMemberPersonalInfo-Df2h7qx9.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-BcAmXMmQ.js.map → StepMemberPersonalInfo-Df2h7qx9.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BaXygfnb.js → StepMemberPersonalInfo-H6gzvuNW.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-BaXygfnb.js.map → StepMemberPersonalInfo-H6gzvuNW.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BGrXmC7p.js → StepMoverPersonalInfo-Ctw7ccFv.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-BGrXmC7p.js.map → StepMoverPersonalInfo-Ctw7ccFv.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BaKNdrcZ.js → StepMoverPersonalInfo-D4B7swpv.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-BaKNdrcZ.js.map → StepMoverPersonalInfo-D4B7swpv.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BB3pmLMm.js → StepOverrideComponent-Bck1K04G.js} +5 -5
- package/chunk/{StepOverrideComponent-BB3pmLMm.js.map → StepOverrideComponent-Bck1K04G.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Bs0kS5Fn.js → StepOverrideComponent-iDjPqAR2.js} +5 -5
- package/chunk/{StepOverrideComponent-Bs0kS5Fn.js.map → StepOverrideComponent-iDjPqAR2.js.map} +1 -1
- package/chunk/{StepSMSLoop-ChHl3FJv.js → StepSMSLoop-CGtTYLbc.js} +5 -5
- package/chunk/{StepSMSLoop-ChHl3FJv.js.map → StepSMSLoop-CGtTYLbc.js.map} +1 -1
- package/chunk/{StepSMSLoop-BzPFHGko.js → StepSMSLoop-c7kP2jy5.js} +5 -5
- package/chunk/{StepSMSLoop-BzPFHGko.js.map → StepSMSLoop-c7kP2jy5.js.map} +1 -1
- package/chunk/StepSSO-Bx1gQq5b.js +4 -4
- package/chunk/StepSSO-Cy9ViRyN.js +4 -4
- package/chunk/{StepSocialSecurityNumber-DWVLAzbC.js → StepSocialSecurityNumber-BHv0Bt2k.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-DWVLAzbC.js.map → StepSocialSecurityNumber-BHv0Bt2k.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-D-MJ_k8J.js → StepSocialSecurityNumber-BSAtj_K2.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-D-MJ_k8J.js.map → StepSocialSecurityNumber-BSAtj_K2.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BBZZ7gam.js → StepStudentPersonalInfo-Bag5Kgd_.js} +12 -12
- package/chunk/{StepStudentPersonalInfo-BBZZ7gam.js.map → StepStudentPersonalInfo-Bag5Kgd_.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BUc4GbpM.js → StepStudentPersonalInfo-BntVlKi2.js} +12 -12
- package/chunk/{StepStudentPersonalInfo-BUc4GbpM.js.map → StepStudentPersonalInfo-BntVlKi2.js.map} +1 -1
- package/chunk/{StepSuccess-CZdiXPoC.js → StepSuccess-DR2pvLHS.js} +5 -5
- package/chunk/{StepSuccess-CZdiXPoC.js.map → StepSuccess-DR2pvLHS.js.map} +1 -1
- package/chunk/{StepSuccess-l84qE6Kp.js → StepSuccess-ecXvbpeb.js} +5 -5
- package/chunk/{StepSuccess-l84qE6Kp.js.map → StepSuccess-ecXvbpeb.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-Bn402aTO.js → StepTeacherPersonalInfo-D0lKFaXs.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-Bn402aTO.js.map → StepTeacherPersonalInfo-D0lKFaXs.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BuMUyAcB.js → StepTeacherPersonalInfo-FlD-0o5A.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-BuMUyAcB.js.map → StepTeacherPersonalInfo-FlD-0o5A.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BFizJiyZ.js +4 -4
- package/chunk/StepThirdPartyLoop-C9d7QWS3.js +4 -4
- package/chunk/{TeacherSchoolComponent-D9ZZzXXt.js → TeacherSchoolComponent-B0s64Bhp.js} +6 -6
- package/chunk/{TeacherSchoolComponent-D9ZZzXXt.js.map → TeacherSchoolComponent-B0s64Bhp.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-uIDJa9LF.js → TeacherSchoolComponent-l50LtXsx.js} +6 -6
- package/chunk/{TeacherSchoolComponent-uIDJa9LF.js.map → TeacherSchoolComponent-l50LtXsx.js.map} +1 -1
- package/chunk/TestingRouteOverrides-Dq_tcy8v.js +4 -4
- package/chunk/TestingRouteOverrides-FmMiDhr9.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-DbvSVsoF.js → VerificationApiClient-CHi0UX_i.js} +5 -5
- package/chunk/{VerificationApiClient-DbvSVsoF.js.map → VerificationApiClient-CHi0UX_i.js.map} +1 -1
- package/chunk/{VerificationApiClient-D-j3JgWo.js → VerificationApiClient-Cui8NrWG.js} +5 -5
- package/chunk/{VerificationApiClient-D-j3JgWo.js.map → VerificationApiClient-Cui8NrWG.js.map} +1 -1
- 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-B-On7swF.js +12 -0
- package/chunk/{countryUtils-Ckbc78Ow.js.map → countryUtils-B-On7swF.js.map} +1 -1
- package/chunk/{countryUtils-DGu3xN9n.js → countryUtils-BkkPBUCD.js} +5 -5
- package/chunk/{countryUtils-DGu3xN9n.js.map → countryUtils-BkkPBUCD.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-BHmrbwB5.js +4 -4
- package/chunk/downshift.esm-Bo38bpfV.js +4 -4
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-DtevBq9w.js +4 -4
- package/chunk/empties-xLh6FzDA.js +4 -4
- 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-D4L3tNqJ.js +4 -4
- package/chunk/hooks-D4L3tNqJ.js.map +1 -1
- package/chunk/hooks-df3XJbin.js +4 -4
- package/chunk/hooks-df3XJbin.js.map +1 -1
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/index.es-Cir3-TDI.js +4 -4
- package/chunk/index.es-Dw43pp1V.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-DQgZVOUX.js +4 -4
- package/chunk/jsx-runtime-h9ybVYa3.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 +4 -4
- package/chunk/mockProgramConfiguration-BNqSCrMG.js +4 -4
- package/chunk/mockProgramI18n-CgYx_1_a.js +4 -4
- package/chunk/mockProgramTheme-Cfk2dzF3.js +4 -4
- package/chunk/mocks-D7frr82N.js +4 -4
- package/chunk/mocks-jT71x7MH.js +4 -4
- 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-B2hrl_I4.js +4 -4
- package/chunk/programThemeGetters-BhNmQw7_.js +4 -4
- 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-3SlH9niv.js +4 -4
- package/chunk/stepComponentHelpers-BcYAcI_q.js +4 -4
- 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-1jasoT_J.js → useCollectFieldsEndpoint-Bek3y_4G.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-1jasoT_J.js.map → useCollectFieldsEndpoint-Bek3y_4G.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-CE4ZmnRu.js → useCollectFieldsEndpoint-Bjk1VgyF.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-CE4ZmnRu.js.map → useCollectFieldsEndpoint-Bjk1VgyF.js.map} +1 -1
- package/chunk/useMetrics-B96ha_3m.js +4 -4
- package/chunk/useMetrics-BV3Mnauz.js +4 -4
- 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 +36 -36
- package/chunk/countryUtils-Ckbc78Ow.js +0 -12
package/chunk/{StepCollectIdentifier-eNuejbhk.js.map → StepCollectIdentifier-C0kP46YS.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-C0kP46YS.js","names":["produce","Email","FormFooter","fn","VerificationStepsEnum","require_jsx_runtime","hasFailedInstantMatch","FormFooterComponent","FormattedHTMLMessage","PersonalInfoHeader","updateFieldValidationErrorsByFieldId","handleEmailOnKeyDown","EmailComponent","PersonalInfoStepSubmitButton","import_jsx_runtime","StepCollectIdentifierComponent","viewModel","verificationService","verificationResponse","failedInstantMatch","updateCollectIdentifierViewmodel","nextState","key","value","fieldValidationErrors","newValue","event"],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;;;;A,aAqFae,KA7DkB,EAAE,6BAAsD;CACrF,IAAMC,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BC,IAAuBD,EAAoB,sBAC3CE,IAAqBb,EAAsBY,CAAoB,GAE/DE,KAAoC,GAAuC,MAAe;EAC9F,IAAMC,IAAwCrB,EAC5CgB,IACC,MAAsC;GACrC,EAAOM,KAAeC;EACxB,CACF;EACA,EAAoB,gBAAgBF,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAAP,EAAA,KAAA,CAAC,OAAD;EACE,IAAG;EACH,WAAU;EAFZ,UAAA,CAIE,iBAAA,GAAAA,EAAA,KAAA,CAAC,OAAD;GAAK,MAAK;GAAV,UAAA;IACE,iBAAA,GAAAA,EAAA,IAAA,CAACL,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAAK,EAAA,IAAA,CAACb,GAAD;KACE,OAAOe,EAAU;KACjB,WAAW,CAAC,CAACQ,EAAsB;KACnC,aACE,iBAAA,GAAAV,EAAA,IAAA,CAACN,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADAY,EAAiC,SAASK,CAAQ,GAClDf,EAAqC,SAASe,GAAUR,CAAmB;KAC7E;KACA,YAAY,MAAiDN,EAAqBe,CAAK;IACxF,CAAA;IAED,iBAAA,GAAAZ,EAAA,IAAA,CAACD,GAAD;KACE,MAAMT,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAAU,EAAA,IAAA,CAACN,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;EACL,CAAA,GAAA,iBAAA,GAAAM,EAAA,IAAA,CAACZ,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Wed Nov 04 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.317.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793828551263
|
|
5
|
+
* BUILD_DATE: Wed Nov 04 2026 21:42:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: cfcae53b477fea0855447c301740825340a005f8
|
|
7
7
|
*/
|
|
8
8
|
import { bt as e } from "./empties-xLh6FzDA.js";
|
|
9
9
|
import { t } from "./jsx-runtime-h9ybVYa3.js";
|
|
10
10
|
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as r, t as i } from "./FormFooterComponent-
|
|
11
|
+
import { h as r, t as i } from "./FormFooterComponent-DTMJcOBW.js";
|
|
12
12
|
import { t as a } from "./index.es-Dw43pp1V.js";
|
|
13
13
|
import { n as o } from "../sheerid.js";
|
|
14
14
|
import { d as s, r as c } from "./stepComponentHelpers-BcYAcI_q.js";
|
package/chunk/{StepCollectIdentifier-BnKW0Kpp.js.map → StepCollectIdentifier-CwcEqKDP.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-CwcEqKDP.js","names":["produce","Email","FormFooter","fn","VerificationStepsEnum","hasFailedInstantMatch","FormFooterComponent","FormattedHTMLMessage","PersonalInfoHeader","updateFieldValidationErrorsByFieldId","handleEmailOnKeyDown","EmailComponent","PersonalInfoStepSubmitButton","import_jsx_runtime","require_jsx_runtime","StepCollectIdentifierComponent","viewModel","verificationService","verificationResponse","failedInstantMatch","updateCollectIdentifierViewmodel","nextState","key","value","fieldValidationErrors","newValue","event"],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;;;;A,aAqFae,KA7DkB,EAAE,6BAAsD;CACrF,IAAMC,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BC,IAAuBD,EAAoB,sBAC3CE,IAAqBd,EAAsBa,CAAoB,GAE/DE,KAAoC,GAAuC,MAAe;EAC9F,IAAMC,IAAwCrB,EAC5CgB,IACC,MAAsC;GACrC,EAAOM,KAAeC;EACxB,CACF;EACA,EAAoB,gBAAgBF,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAAR,EAAA,KAAA,CAAC,OAAD;EACE,IAAG;EACH,WAAU;EAFZ,UAAA,CAIE,iBAAA,GAAAA,EAAA,KAAA,CAAC,OAAD;GAAK,MAAK;GAAV,UAAA;IACE,iBAAA,GAAAA,EAAA,IAAA,CAACL,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAAK,EAAA,IAAA,CAACZ,GAAD;KACE,OAAOe,EAAU;KACjB,WAAW,CAAC,CAACQ,EAAsB;KACnC,aACE,iBAAA,GAAAX,EAAA,IAAA,CAACN,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADAa,EAAiC,SAASK,CAAQ,GAClDhB,EAAqC,SAASgB,GAAUR,CAAmB;KAC7E;KACA,YAAY,MAAiDP,EAAqBgB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAAb,EAAA,IAAA,CAACD,GAAD;KACE,MAAMR,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAAS,EAAA,IAAA,CAACN,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;EACL,CAAA,GAAA,iBAAA,GAAAM,EAAA,IAAA,CAACX,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -4,35 +4,35 @@
|
|
|
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: Wed Nov 04 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.317.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793828555691
|
|
9
|
+
* BUILD_DATE: Wed Nov 04 2026 21:42:35 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: cfcae53b477fea0855447c301740825340a005f8
|
|
11
11
|
*/
|
|
12
12
|
import { S as e, g as t } from "./empties-DtevBq9w.js";
|
|
13
13
|
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { t as r } from "./jsx-runtime-DQgZVOUX.js";
|
|
15
15
|
import { o as i } from "./programThemeGetters-B2hrl_I4.js";
|
|
16
|
-
import { m as a } from "./FormFooterComponent-
|
|
16
|
+
import { m as a } from "./FormFooterComponent-DIRoNXm5.js";
|
|
17
17
|
import { a as o } from "./refs-Mq0rtW9K.js";
|
|
18
18
|
import { t as s } from "./index.es-Cir3-TDI.js";
|
|
19
19
|
import { t as c } from "../_mysheerid-preview.js";
|
|
20
|
-
import { t as l } from "./useCollectFieldsEndpoint-
|
|
20
|
+
import { t as l } from "./useCollectFieldsEndpoint-Bjk1VgyF.js";
|
|
21
21
|
import { d as u, f as d, r as f, t as p } from "./stepComponentHelpers-3SlH9niv.js";
|
|
22
|
-
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-
|
|
22
|
+
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-BcQgxG0o.js";
|
|
23
23
|
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-CT7lguuZ.js";
|
|
24
24
|
import { i as S } from "./FormSelectChoice-BtoOF4T1.js";
|
|
25
|
-
import { t as C } from "./BirthDateComponent-
|
|
25
|
+
import { t as C } from "./BirthDateComponent-kIkfY0Fo.js";
|
|
26
26
|
import { t as w } from "./PostalCodeComponent-CM7B9nbQ.js";
|
|
27
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
27
|
+
import { t as T } from "./CountryComponentWrapper-CA5QjkzI.js";
|
|
28
28
|
import { t as E } from "./City-CR2xigNn.js";
|
|
29
29
|
import { t as D } from "./AddressComponent-D2mEkfix.js";
|
|
30
30
|
import { t as O } from "./ExtraMessage-CR5rN46Q.js";
|
|
31
|
-
import { t as k } from "./ChangeLocaleComponent
|
|
32
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
33
|
-
import { t as j } from "./countryUtils-
|
|
31
|
+
import { t as k } from "./ChangeLocaleComponent-ry8sqUF9.js";
|
|
32
|
+
import { t as A } from "./PersonalInfoStepWrapper-B6KYjnG-.js";
|
|
33
|
+
import { t as j } from "./countryUtils-BkkPBUCD.js";
|
|
34
34
|
import { t as M } from "./StateSelectComponent-CDUxaxhl.js";
|
|
35
|
-
import { n as N, r as P, t as F } from "./DischargeDateComponent-
|
|
35
|
+
import { n as N, r as P, t as F } from "./DischargeDateComponent-DRJdJ-cl.js";
|
|
36
36
|
import { t as I } from "./StatusComponent-B9xHqfyT.js";
|
|
37
37
|
//#region src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts
|
|
38
38
|
var L = (t, n, r, i) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-CvVnTjMm.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","resetRefs","FormattedHTMLMessage","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,EAAoB;CACtC,OAAOlD,EAAQiD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CAACC,KAAqBA,EAAkB,WAAW,MACrDF,EAAM,uBAAuB,KAAK,QAAQ,GAGxCH,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH,G;AC4BA,SAAwBO,EAAyC,EAAE,0BAA8B;CAC/F,IAAMC,IAAuB5C,EAAwB,GAC/CkC,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BU,IAAuBV,EAAoB,sBAG3CW,IA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,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-D3ww_3aJ.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","resetRefs","FormattedHTMLMessage","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,EAAoB;CACtC,OAAOlD,EAAQiD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CAACC,KAAqBA,EAAkB,WAAW,MACrDF,EAAM,uBAAuB,KAAK,QAAQ,GAGxCH,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH,G;AC4BA,SAAwBO,EAAyC,EAAE,0BAA8B;CAC/F,IAAMC,IAAuB5C,EAAwB,GAC/CkC,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BU,IAAuBV,EAAoB,sBAG3CW,IAA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CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Wed Nov 04 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.317.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793828551263
|
|
5
|
+
* BUILD_DATE: Wed Nov 04 2026 21:42:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: cfcae53b477fea0855447c301740825340a005f8
|
|
7
7
|
*/
|
|
8
8
|
import { bt as e, y as t } from "./empties-xLh6FzDA.js";
|
|
9
9
|
import { t as n } from "./jsx-runtime-h9ybVYa3.js";
|
|
10
10
|
import { o as r } from "./programThemeGetters-BhNmQw7_.js";
|
|
11
11
|
import { b as i } from "./runtimeTypes-B2AGNJMT.js";
|
|
12
|
-
import { h as a } from "./FormFooterComponent-
|
|
12
|
+
import { h as a } from "./FormFooterComponent-DTMJcOBW.js";
|
|
13
13
|
import { a as o } from "./refs-Mq0rtW9K.js";
|
|
14
14
|
import { t as s } from "./index.es-Dw43pp1V.js";
|
|
15
15
|
import { n as c } from "../sheerid.js";
|
|
16
|
-
import { t as l } from "./useCollectFieldsEndpoint-
|
|
16
|
+
import { t as l } from "./useCollectFieldsEndpoint-Bek3y_4G.js";
|
|
17
17
|
import { d as u, f as d, r as f, t as p } from "./stepComponentHelpers-BcYAcI_q.js";
|
|
18
|
-
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-
|
|
18
|
+
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-CxRzUQTM.js";
|
|
19
19
|
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-jF2Q-TQ1.js";
|
|
20
20
|
import { i as S } from "./FormSelectChoice-OvLHNUCT.js";
|
|
21
|
-
import { t as C } from "./BirthDateComponent-
|
|
21
|
+
import { t as C } from "./BirthDateComponent-bxdYsOrJ.js";
|
|
22
22
|
import { t as w } from "./PostalCodeComponent-DOaiP-XH.js";
|
|
23
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
23
|
+
import { t as T } from "./CountryComponentWrapper-DC2xpwfp.js";
|
|
24
24
|
import { t as E } from "./City-DoccJLpM.js";
|
|
25
25
|
import { t as D } from "./AddressComponent-BxavEqNN.js";
|
|
26
26
|
import { t as O } from "./ExtraMessage-Dy5YujvI.js";
|
|
27
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
28
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
29
|
-
import { t as j } from "./countryUtils-
|
|
27
|
+
import { t as k } from "./ChangeLocaleComponent-fYWBTVHc.js";
|
|
28
|
+
import { t as A } from "./PersonalInfoStepWrapper-83-yLjnF.js";
|
|
29
|
+
import { t as j } from "./countryUtils-B-On7swF.js";
|
|
30
30
|
import { t as M } from "./StateSelectComponent-Bs0zMXwM.js";
|
|
31
|
-
import { n as N, r as P, t as F } from "./DischargeDateComponent-
|
|
31
|
+
import { n as N, r as P, t as F } from "./DischargeDateComponent-pWkyMum3.js";
|
|
32
32
|
import { t as I } from "./StatusComponent-wmBrTgh8.js";
|
|
33
33
|
//#region src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts
|
|
34
34
|
var L = (t, n, r, i) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-IUKAcF4m.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","resetRefs","FormattedHTMLMessage","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,EAAoB;CACtC,OAAOlD,EAAQiD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CAACC,KAAqBA,EAAkB,WAAW,MACrDF,EAAM,uBAAuB,KAAK,QAAQ,GAGxCH,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH,G;AC4BA,SAAwBO,EAAyC,EAAE,0BAA8B;CAC/F,IAAMC,IAAuB7C,EAAwB,GAC/CmC,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BU,IAAuBV,EAAoB,sBAG3CW,IAAqB7C,EAAsB4C,CAAoB,GAS/DE,IAHJF,EAAqB,gBACnB7C,EAAsB,uCACtB4C,EAAqB,mCAErB,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmBI,GACnB,oBACA,uBACE3C,EAAyB;EAC3B,gBAAgBwC,EAAqB;EACrC,aAAa7C,EAAsB;EACnC;EACA,uBAAuB+C;CACzB,CAAC,GAEKE,IAAqBf,EAAU,eAAe,OAC9CgB,IAAoBvB,EAAyBiB,GAAsBK,CAAkB,GAErFE,IAAgBjC,EACnB8B,KACEH,EAA2D,qBAC3DV,EA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cAAcwD,GAAU3B,CAAmB;IAClF;IACA,OAAOD,EAAU;IACjB,UAAUzB,EAAwB,YAAY,CAAC,EAAE;GAClD,CAAA;GAGF4C,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAAX,EAAA,IAAA,CAAC9B,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA8B,EAAA,IAAA,CAAC/C,GAAD;IACuB;IACrB,WAAW,CAAC,CAACgE,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJAF,EAAe,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,CAACvC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-DowmOzeP.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","resetRefs","FormattedHTMLMessage","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,EAAoB;CACtC,OAAOlD,EAAQiD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CAACC,KAAqBA,EAAkB,WAAW,MACrDF,EAAM,uBAAuB,KAAK,QAAQ,GAGxCH,MAAQ,aACV,EAAM,eAAe;GAAE,IAAI;GAAG,MAAM;EAAG;CAE3C,CAAC;AACH,G;AC4BA,SAAwBO,EAAyC,EAAE,0BAA8B;CAC/F,IAAMC,IAAuB7C,EAAwB,GAC/CmC,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BU,IAAuBV,EAAoB,sBAG3CW,IAAqB7C,EAAsB4C,CAAoB,GAS/DE,IAHJF,EAAqB,gBACnB7C,EAAsB,uCACtB4C,EAAqB,mCAErB,CAAC,EAAE,KAAK,gBAAgB,CAAC,IACzB,CAAC,GAEC,EACJ,mBAAmBI,GACnB,oBACA,uBACE3C,EAAyB;EAC3B,gBAAgBwC,EAAqB;EACrC,aAAa7C,EAAsB;EACnC;EACA,uBAAuB+C;CACzB,CAAC,GAEKE,IAAqBf,EAAU,eAAe,OAC9CgB,IAAoBvB,EAAyBiB,GAAsBK,CAAkB,GAErFE,IAAgBjC,EACnB8B,KACEH,EAA2D,qBAC3DV,EAAoB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cwD,GAAU3B,CAAmB;IAClF;IACA,OAAOD,EAAU;IACjB,UAAUzB,EAAwB,YAAY,CAAC,EAAE;GAClD,CAAA;GAGF4C,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAAX,EAAA,IAAA,CAAC9B,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA8B,EAAA,IAAA,CAAC/C,GAAD;IACuB;IACrB,WAAW,CAAC,CAACgE,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJAF,EAAe,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,CAACvC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Wed Nov 04 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.317.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793828551263
|
|
5
|
+
* BUILD_DATE: Wed Nov 04 2026 21:42:31 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: cfcae53b477fea0855447c301740825340a005f8
|
|
7
7
|
*/
|
|
8
8
|
import { bt as e, xt as t, y as n, zt as r } from "./empties-xLh6FzDA.js";
|
|
9
9
|
import { r as i, t as a } from "./jsx-runtime-h9ybVYa3.js";
|
|
10
10
|
import { o } from "./programThemeGetters-BhNmQw7_.js";
|
|
11
11
|
import { S as ee, b as s, t as te, u as c } from "./runtimeTypes-B2AGNJMT.js";
|
|
12
|
-
import { n as ne } from "./VerificationApiClient-
|
|
13
|
-
import { C as re, h as ie, t as ae } from "./FormFooterComponent-
|
|
12
|
+
import { n as ne } from "./VerificationApiClient-CHi0UX_i.js";
|
|
13
|
+
import { C as re, h as ie, t as ae } from "./FormFooterComponent-DTMJcOBW.js";
|
|
14
14
|
import { t as l } from "./index.es-Dw43pp1V.js";
|
|
15
15
|
import { n as u } from "../sheerid.js";
|
|
16
|
-
import { t as oe } from "./useCollectFieldsEndpoint-
|
|
16
|
+
import { t as oe } from "./useCollectFieldsEndpoint-Bek3y_4G.js";
|
|
17
17
|
import { d, f, i as se, l as ce, r as le, s as ue, t as p } from "./stepComponentHelpers-BcYAcI_q.js";
|
|
18
|
-
import { a as de, i as fe, n as pe, o as me, s as m, t as h } from "./CaptchaComponent-
|
|
18
|
+
import { a as de, i as fe, n as pe, o as me, s as m, t as h } from "./CaptchaComponent-CxRzUQTM.js";
|
|
19
19
|
import { n as g, t as _ } from "./PersonalInfoStepSubmitButton-jF2Q-TQ1.js";
|
|
20
20
|
import { i as v } from "./FormSelectChoice-OvLHNUCT.js";
|
|
21
|
-
import { t as y } from "./BirthDateComponent-
|
|
21
|
+
import { t as y } from "./BirthDateComponent-bxdYsOrJ.js";
|
|
22
22
|
import { t as b } from "./PostalCodeComponent-DOaiP-XH.js";
|
|
23
|
-
import { t as x } from "./CountryComponentWrapper-
|
|
23
|
+
import { t as x } from "./CountryComponentWrapper-DC2xpwfp.js";
|
|
24
24
|
import { t as S } from "./City-DoccJLpM.js";
|
|
25
25
|
import { t as C } from "./AddressComponent-BxavEqNN.js";
|
|
26
26
|
import { t as w } from "./ExtraMessage-Dy5YujvI.js";
|
|
27
|
-
import { t as T } from "./countryUtils-
|
|
28
|
-
import { t as E } from "./CollegeNameComponent-
|
|
27
|
+
import { t as T } from "./countryUtils-B-On7swF.js";
|
|
28
|
+
import { t as E } from "./CollegeNameComponent-RmDbu_if.js";
|
|
29
29
|
import { t as D } from "./StateSelectComponent-Bs0zMXwM.js";
|
|
30
|
-
import { n as O, r as k, t as A } from "./DischargeDateComponent-
|
|
30
|
+
import { n as O, r as k, t as A } from "./DischargeDateComponent-pWkyMum3.js";
|
|
31
31
|
import { t as j } from "./DriverLicenseNumberComponent-iE4uZhjY.js";
|
|
32
|
-
import { n as M, t as N } from "./LowIncomeOrganizationComponent-
|
|
32
|
+
import { n as M, t as N } from "./LowIncomeOrganizationComponent-CjDP857_.js";
|
|
33
33
|
import { t as P } from "./StatusComponent-wmBrTgh8.js";
|
|
34
|
-
import { t as F } from "./FirstResponderOrganizationComponent-
|
|
35
|
-
import { t as I } from "./LicensedProfessionalOrganizationComponent-
|
|
36
|
-
import { t as he } from "./MedicalProfessionalOrganizationComponent-
|
|
34
|
+
import { t as F } from "./FirstResponderOrganizationComponent-DdaFCoI4.js";
|
|
35
|
+
import { t as I } from "./LicensedProfessionalOrganizationComponent-rrBsVHE5.js";
|
|
36
|
+
import { t as he } from "./MedicalProfessionalOrganizationComponent-BZ7zk4-L.js";
|
|
37
37
|
import { t as L } from "./MemberIdComponent-Op5eJ6S1.js";
|
|
38
|
-
import { t as R } from "./MembershipOrganizationComponent-
|
|
39
|
-
import { t as ge } from "./TeacherSchoolComponent-
|
|
38
|
+
import { t as R } from "./MembershipOrganizationComponent-DjnLvZUD.js";
|
|
39
|
+
import { t as ge } from "./TeacherSchoolComponent-B0s64Bhp.js";
|
|
40
40
|
import { t as _e } from "./SSN-CLdLfiNj.js";
|
|
41
41
|
//#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
|
|
42
42
|
var z = /* @__PURE__ */ r(i(), 1), B = a(), V = ({ verificationService: r }) => {
|