@sheerid/jslib 2.287.0 → 2.289.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 +900 -900
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-CJrrmHmU.js → AddressComponent-BFEdmLph.js} +6 -6
- package/chunk/{AddressComponent-CAljV9xQ.js.map → AddressComponent-BFEdmLph.js.map} +1 -1
- package/chunk/{AddressComponent-CAljV9xQ.js → AddressComponent-C2mollBp.js} +6 -6
- package/chunk/{AddressComponent-CJrrmHmU.js.map → AddressComponent-C2mollBp.js.map} +1 -1
- package/chunk/AnnouncingHeader-B0Ku-xl_.js +4 -4
- package/chunk/AnnouncingHeader-CXTQdbKG.js +4 -4
- package/chunk/{ApiUrls-Dz_hjktj.js → ApiUrls-mCK2IKFF.js} +5 -5
- package/chunk/{ApiUrls-Dz_hjktj.js.map → ApiUrls-mCK2IKFF.js.map} +1 -1
- package/chunk/{ApiUrls-DNSLMaf_.js → ApiUrls-ycoYioq4.js} +5 -5
- package/chunk/{ApiUrls-DNSLMaf_.js.map → ApiUrls-ycoYioq4.js.map} +1 -1
- package/chunk/{BirthDateComponent-C6inTN_d.js → BirthDateComponent-1FYtxavW.js} +6 -6
- package/chunk/{BirthDateComponent-B6CCdI1w.js.map → BirthDateComponent-1FYtxavW.js.map} +1 -1
- package/chunk/{BirthDateComponent-B6CCdI1w.js → BirthDateComponent-DbILUMIz.js} +6 -6
- package/chunk/{BirthDateComponent-C6inTN_d.js.map → BirthDateComponent-DbILUMIz.js.map} +1 -1
- package/chunk/{CaptchaComponent-BOIt_QNQ.js → CaptchaComponent-KFLJ56dX.js} +8 -8
- package/chunk/{CaptchaComponent-BOIt_QNQ.js.map → CaptchaComponent-KFLJ56dX.js.map} +1 -1
- package/chunk/{CaptchaComponent-COMDyzye.js → CaptchaComponent-L3WoxJAC.js} +8 -8
- package/chunk/{CaptchaComponent-COMDyzye.js.map → CaptchaComponent-L3WoxJAC.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BbkEb3a6.js → ChangeLocaleComponent-BcyU0Zgd.js} +6 -6
- package/chunk/{ChangeLocaleComponent-BbkEb3a6.js.map → ChangeLocaleComponent-BcyU0Zgd.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-jY0EP0y4.js → ChangeLocaleComponent-Wju8NvwL.js} +6 -6
- package/chunk/{ChangeLocaleComponent-jY0EP0y4.js.map → ChangeLocaleComponent-Wju8NvwL.js.map} +1 -1
- package/chunk/{City-D4i6_4Pu.js → City-BXTk8t3d.js} +6 -6
- package/chunk/{City-BEHiaazP.js.map → City-BXTk8t3d.js.map} +1 -1
- package/chunk/{City-BEHiaazP.js → City-mQnP6dP2.js} +6 -6
- package/chunk/{City-D4i6_4Pu.js.map → City-mQnP6dP2.js.map} +1 -1
- package/chunk/{CollegeNameComponent-Dlypt-Wd.js → CollegeNameComponent-Bov_i0oT.js} +7 -7
- package/chunk/{CollegeNameComponent-DNCDgzhk.js.map → CollegeNameComponent-Bov_i0oT.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DNCDgzhk.js → CollegeNameComponent-Df_VMbdr.js} +7 -7
- package/chunk/{CollegeNameComponent-Dlypt-Wd.js.map → CollegeNameComponent-Df_VMbdr.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BAOwMLHJ.js +4 -4
- package/chunk/CopyToClipboardComponent-BejK3fLR.js +4 -4
- package/chunk/{CountryComponentWrapper-D0nzEytT.js → CountryComponentWrapper-BSg_JhlH.js} +9 -9
- package/chunk/{CountryComponentWrapper-D0nzEytT.js.map → CountryComponentWrapper-BSg_JhlH.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-T2Bpp2gB.js → CountryComponentWrapper-dG5Zqfee.js} +9 -9
- package/chunk/{CountryComponentWrapper-T2Bpp2gB.js.map → CountryComponentWrapper-dG5Zqfee.js.map} +1 -1
- package/chunk/{DischargeDateComponent-C-HrV34I.js → DischargeDateComponent-C6BB3YwP.js} +8 -8
- package/chunk/{DischargeDateComponent-C-HrV34I.js.map → DischargeDateComponent-C6BB3YwP.js.map} +1 -1
- package/chunk/{DischargeDateComponent-bi1txW-r.js → DischargeDateComponent-D8yMgfh-.js} +8 -8
- package/chunk/{DischargeDateComponent-bi1txW-r.js.map → DischargeDateComponent-D8yMgfh-.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-ayI3u5Hr.js → DriverLicenseNumberComponent-C_wuryKm.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-CLNtUUgc.js.map → DriverLicenseNumberComponent-C_wuryKm.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-CLNtUUgc.js → DriverLicenseNumberComponent-i_ywdo3P.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-ayI3u5Hr.js.map → DriverLicenseNumberComponent-i_ywdo3P.js.map} +1 -1
- package/chunk/{EmailLoopPending-DNypwI3A.js → EmailLoopPending-DThAR1Iv.js} +6 -6
- package/chunk/{EmailLoopPending-D48nTSsQ.js.map → EmailLoopPending-DThAR1Iv.js.map} +1 -1
- package/chunk/{EmailLoopPending-D48nTSsQ.js → EmailLoopPending-Du6R4zif.js} +6 -6
- package/chunk/{EmailLoopPending-DNypwI3A.js.map → EmailLoopPending-Du6R4zif.js.map} +1 -1
- package/chunk/{ExtraMessage-D5tofP3l.js → ExtraMessage-BZ9XdOdL.js} +5 -5
- package/chunk/{ExtraMessage-D5tofP3l.js.map → ExtraMessage-BZ9XdOdL.js.map} +1 -1
- package/chunk/{ExtraMessage-D6mjCJWc.js → ExtraMessage-D1j0TLE3.js} +5 -5
- package/chunk/{ExtraMessage-D6mjCJWc.js.map → ExtraMessage-D1j0TLE3.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BXQqq3cc.js → FirstResponderOrganizationComponent-D5UbIVyE.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-BXQqq3cc.js.map → FirstResponderOrganizationComponent-D5UbIVyE.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Cz-4YY2n.js → FirstResponderOrganizationComponent-D9VmCGiC.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-Cz-4YY2n.js.map → FirstResponderOrganizationComponent-D9VmCGiC.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DfPHGWSM.js → FormFieldInputSelect-Cf2843FO.js} +5 -5
- package/chunk/{FormFieldInputSelect-BD0avAFv.js.map → FormFieldInputSelect-Cf2843FO.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BD0avAFv.js → FormFieldInputSelect-DFkZlHDE.js} +5 -5
- package/chunk/{FormFieldInputSelect-DfPHGWSM.js.map → FormFieldInputSelect-DFkZlHDE.js.map} +1 -1
- package/chunk/FormFieldLayout-DEKIQK2R.js +4 -4
- package/chunk/FormFieldLayout-NkmhFC9B.js +4 -4
- package/chunk/FormFieldText-Bn9WIKiI.js +4 -4
- package/chunk/FormFieldText-Py7x4EZ6.js +4 -4
- package/chunk/{FormFieldTypeahead-CexU7aJK.js → FormFieldTypeahead-CDKGsEZB.js} +7 -7
- package/chunk/{FormFieldTypeahead-CexU7aJK.js.map → FormFieldTypeahead-CDKGsEZB.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BGUkqjm_.js → FormFieldTypeahead-DWAxDXKP.js} +7 -7
- package/chunk/{FormFieldTypeahead-BGUkqjm_.js.map → FormFieldTypeahead-DWAxDXKP.js.map} +1 -1
- package/chunk/{FormFooterComponent-DdlG9tS3.js → FormFooterComponent-BrOM_pQ9.js} +7 -7
- package/chunk/{FormFooterComponent-DdlG9tS3.js.map → FormFooterComponent-BrOM_pQ9.js.map} +1 -1
- package/chunk/{FormFooterComponent-BiJ-9fwP.js → FormFooterComponent-CP0-Wobs.js} +7 -7
- package/chunk/{FormFooterComponent-BiJ-9fwP.js.map → FormFooterComponent-CP0-Wobs.js.map} +1 -1
- package/chunk/{FormSelectChoice-DiU96It5.js → FormSelectChoice-DWG9hYtf.js} +6 -6
- package/chunk/{FormSelectChoice-DK4cBs4M.js.map → FormSelectChoice-DWG9hYtf.js.map} +1 -1
- package/chunk/{FormSelectChoice-DK4cBs4M.js → FormSelectChoice-yNUPRIKO.js} +6 -6
- package/chunk/{FormSelectChoice-DiU96It5.js.map → FormSelectChoice-yNUPRIKO.js.map} +1 -1
- package/chunk/InputText-CMu4ei8e.js +4 -4
- package/chunk/InputText-dflyPe3J.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-DrNi1J9O.js → LicensedProfessionalOrganizationComponent-CdVLOkti.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-CRbyZ67V.js.map → LicensedProfessionalOrganizationComponent-CdVLOkti.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CRbyZ67V.js → LicensedProfessionalOrganizationComponent-FBu3_XDq.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-DrNi1J9O.js.map → LicensedProfessionalOrganizationComponent-FBu3_XDq.js.map} +1 -1
- package/chunk/LogoComponent-BDhMcJvy.js +4 -4
- package/chunk/LogoComponent-DASXTR4v.js +4 -4
- package/chunk/{LowIncomeOrganizationComponent-BqttAUep.js → LowIncomeOrganizationComponent-BI4Lscrc.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-BqttAUep.js.map → LowIncomeOrganizationComponent-BI4Lscrc.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DJeHRnKV.js → LowIncomeOrganizationComponent-DrNEvBR8.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-DJeHRnKV.js.map → LowIncomeOrganizationComponent-DrNEvBR8.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-StqqPfKh.js → MedicalProfessionalOrganizationComponent-BnVU_DtU.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-C9tC4-n0.js.map → MedicalProfessionalOrganizationComponent-BnVU_DtU.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-C9tC4-n0.js → MedicalProfessionalOrganizationComponent-i1AHUB2l.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-StqqPfKh.js.map → MedicalProfessionalOrganizationComponent-i1AHUB2l.js.map} +1 -1
- package/chunk/{MemberIdComponent--135FhsS.js → MemberIdComponent-BJIWA0U-.js} +6 -6
- package/chunk/{MemberIdComponent--135FhsS.js.map → MemberIdComponent-BJIWA0U-.js.map} +1 -1
- package/chunk/{MemberIdComponent-DK6TUfxB.js → MemberIdComponent-CJIKRgkP.js} +6 -6
- package/chunk/{MemberIdComponent-DK6TUfxB.js.map → MemberIdComponent-CJIKRgkP.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CTgnzgiz.js → MembershipOrganizationComponent-B2SfBgyQ.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-CTgnzgiz.js.map → MembershipOrganizationComponent-B2SfBgyQ.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DG2QLHC2.js → MembershipOrganizationComponent-lCfT5hKV.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-DG2QLHC2.js.map → MembershipOrganizationComponent-lCfT5hKV.js.map} +1 -1
- package/chunk/{Message-BBifXgZ3.js → Message-C5LUKoZw.js} +978 -976
- package/chunk/{Message-BBifXgZ3.js.map → Message-C5LUKoZw.js.map} +1 -1
- package/chunk/{Message-BL20LTBg.js → Message-CZD2IHWF.js} +5 -5
- package/chunk/{Message-BL20LTBg.js.map → Message-CZD2IHWF.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-BNUMtb0a.js → PersonalInfoStepSubmitButton-DnepwbFs.js} +10 -10
- package/chunk/{PersonalInfoStepSubmitButton-BNUMtb0a.js.map → PersonalInfoStepSubmitButton-DnepwbFs.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-NagYqca5.js → PersonalInfoStepSubmitButton-Q6g7KHwI.js} +10 -10
- package/chunk/{PersonalInfoStepSubmitButton-NagYqca5.js.map → PersonalInfoStepSubmitButton-Q6g7KHwI.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-9I7Aa79o.js → PersonalInfoStepWrapper-B7pfOMf3.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-9I7Aa79o.js.map → PersonalInfoStepWrapper-B7pfOMf3.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DaH1p-AU.js → PersonalInfoStepWrapper-D2GlDkO6.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-DaH1p-AU.js.map → PersonalInfoStepWrapper-D2GlDkO6.js.map} +1 -1
- package/chunk/{PostalCodeComponent-CuiH815C.js → PostalCodeComponent-C-0blxoe.js} +6 -6
- package/chunk/{PostalCodeComponent-CuiH815C.js.map → PostalCodeComponent-C-0blxoe.js.map} +1 -1
- package/chunk/{PostalCodeComponent-Dg4YvxkC.js → PostalCodeComponent-C50XmPmv.js} +6 -6
- package/chunk/{PostalCodeComponent-Dg4YvxkC.js.map → PostalCodeComponent-C50XmPmv.js.map} +1 -1
- package/chunk/{SSN-D3NAFGpA.js → SSN-CjLxLrYN.js} +6 -6
- package/chunk/{SSN-D3NAFGpA.js.map → SSN-CjLxLrYN.js.map} +1 -1
- package/chunk/{SSN-x8cc3vng.js → SSN-DBPw87L6.js} +6 -6
- package/chunk/{SSN-x8cc3vng.js.map → SSN-DBPw87L6.js.map} +1 -1
- package/chunk/{StateSelectComponent-B3BsbyFa.js → StateSelectComponent-C05RJO04.js} +6 -6
- package/chunk/{StateSelectComponent-B3BsbyFa.js.map → StateSelectComponent-C05RJO04.js.map} +1 -1
- package/chunk/{StateSelectComponent-DBYcxzkn.js → StateSelectComponent-og_G8R5A.js} +6 -6
- package/chunk/{StateSelectComponent-DBYcxzkn.js.map → StateSelectComponent-og_G8R5A.js.map} +1 -1
- package/chunk/{StatusComponent-Cv67yZ8R.js → StatusComponent-CceeOAxy.js} +7 -7
- package/chunk/{StatusComponent-BxbVuoiu.js.map → StatusComponent-CceeOAxy.js.map} +1 -1
- package/chunk/{StatusComponent-BxbVuoiu.js → StatusComponent-DPs6MHNn.js} +7 -7
- package/chunk/{StatusComponent-Cv67yZ8R.js.map → StatusComponent-DPs6MHNn.js.map} +1 -1
- package/chunk/StepAgePersonalInfo-Bwdjo9Zy.js +172 -0
- package/chunk/StepAgePersonalInfo-Bwdjo9Zy.js.map +1 -0
- package/chunk/StepAgePersonalInfo-DIOOXX9y.js +176 -0
- package/chunk/StepAgePersonalInfo-DIOOXX9y.js.map +1 -0
- package/chunk/StepCard-DQ9JkAjb.js +4 -4
- package/chunk/StepCard-EHeqFY3Y.js +4 -4
- package/chunk/{StepCollectIdentifier-DlpQHPwr.js → StepCollectIdentifier-CSGIiyFf.js} +9 -9
- package/chunk/{StepCollectIdentifier-DlpQHPwr.js.map → StepCollectIdentifier-CSGIiyFf.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-D4bSGAgT.js → StepCollectIdentifier-nrcBJaBK.js} +9 -9
- package/chunk/{StepCollectIdentifier-D4bSGAgT.js.map → StepCollectIdentifier-nrcBJaBK.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-MqA789NL.js → StepCollectMilitaryPersonalInfoComponent-B6L54gOh.js} +58 -58
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CQuEF5Hc.js.map → StepCollectMilitaryPersonalInfoComponent-B6L54gOh.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CQuEF5Hc.js → StepCollectMilitaryPersonalInfoComponent-BhWPQoWG.js} +58 -58
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-MqA789NL.js.map → StepCollectMilitaryPersonalInfoComponent-BhWPQoWG.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-Blkdueac.js → StepCollectPersonalInfo-DtyiAaDl.js} +36 -36
- package/chunk/{StepCollectPersonalInfo-DYZwWO8s.js.map → StepCollectPersonalInfo-DtyiAaDl.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DYZwWO8s.js → StepCollectPersonalInfo-Mn8W7-0u.js} +36 -36
- package/chunk/{StepCollectPersonalInfo-Blkdueac.js.map → StepCollectPersonalInfo-Mn8W7-0u.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-DmkwcwhP.js → StepCompleteAuthentication-CJpJoWRq.js} +8 -8
- package/chunk/{StepCompleteAuthentication-oWf-NQ40.js.map → StepCompleteAuthentication-CJpJoWRq.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-oWf-NQ40.js → StepCompleteAuthentication-kKdUhF9e.js} +8 -8
- package/chunk/{StepCompleteAuthentication-DmkwcwhP.js.map → StepCompleteAuthentication-kKdUhF9e.js.map} +1 -1
- package/chunk/{StepConsolation-CzjNEpxI.js → StepConsolation-DI8kcTkV.js} +5 -5
- package/chunk/{StepConsolation-CzjNEpxI.js.map → StepConsolation-DI8kcTkV.js.map} +1 -1
- package/chunk/{StepConsolation-D3E8Apmh.js → StepConsolation-DwEwhgzI.js} +5 -5
- package/chunk/{StepConsolation-D3E8Apmh.js.map → StepConsolation-DwEwhgzI.js.map} +1 -1
- package/chunk/{StepDocUpload-D3lwZHBr.js → StepDocUpload-Bv6M-Z6q.js} +6 -6
- package/chunk/{StepDocUpload-D3lwZHBr.js.map → StepDocUpload-Bv6M-Z6q.js.map} +1 -1
- package/chunk/{StepDocUpload-Ddu77ITg.js → StepDocUpload-IOE10Q6k.js} +6 -6
- package/chunk/{StepDocUpload-Ddu77ITg.js.map → StepDocUpload-IOE10Q6k.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-vg7monLn.js → StepDriverLicensePersonalInfoComponent-CT2uHtsZ.js} +28 -28
- package/chunk/{StepDriverLicensePersonalInfoComponent-BvwuFoXL.js.map → StepDriverLicensePersonalInfoComponent-CT2uHtsZ.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BvwuFoXL.js → StepDriverLicensePersonalInfoComponent-DxgQc-yw.js} +28 -28
- package/chunk/{StepDriverLicensePersonalInfoComponent-vg7monLn.js.map → StepDriverLicensePersonalInfoComponent-DxgQc-yw.js.map} +1 -1
- package/chunk/{StepEmailLoop-C2dukW7l.js → StepEmailLoop-Bo5BbGQu.js} +9 -9
- package/chunk/{StepEmailLoop-2BC_llWt.js.map → StepEmailLoop-Bo5BbGQu.js.map} +1 -1
- package/chunk/{StepEmailLoop-2BC_llWt.js → StepEmailLoop-j2264k-N.js} +9 -9
- package/chunk/{StepEmailLoop-C2dukW7l.js.map → StepEmailLoop-j2264k-N.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-Dubco5i-.js → StepEmploymentPersonalInfo-B2vkSor6.js} +23 -23
- package/chunk/{StepEmploymentPersonalInfo-CtYYyHKS.js.map → StepEmploymentPersonalInfo-B2vkSor6.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CtYYyHKS.js → StepEmploymentPersonalInfo-DuOMR21_.js} +23 -23
- package/chunk/{StepEmploymentPersonalInfo-Dubco5i-.js.map → StepEmploymentPersonalInfo-DuOMR21_.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-Cr3WqNMh.js → StepFirstResponderPersonalInfo-4wxW2cgL.js} +39 -39
- package/chunk/{StepFirstResponderPersonalInfo-CGYBZNTh.js.map → StepFirstResponderPersonalInfo-4wxW2cgL.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CGYBZNTh.js → StepFirstResponderPersonalInfo-CizcIcEl.js} +39 -39
- package/chunk/{StepFirstResponderPersonalInfo-Cr3WqNMh.js.map → StepFirstResponderPersonalInfo-CizcIcEl.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-5CpheLjr.js → StepGeneralIdentityPersonalInfoComponent-CTfP5Oeu.js} +37 -37
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-5CpheLjr.js.map → StepGeneralIdentityPersonalInfoComponent-CTfP5Oeu.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-ClVB43d-.js → StepGeneralIdentityPersonalInfoComponent-P8d-Wb4X.js} +37 -37
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-ClVB43d-.js.map → StepGeneralIdentityPersonalInfoComponent-P8d-Wb4X.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DxIZgVIN.js → StepHybridIdentityPersonalInfoComponent-BRmrt3mv.js} +40 -40
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BkYaeKq5.js.map → StepHybridIdentityPersonalInfoComponent-BRmrt3mv.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BkYaeKq5.js → StepHybridIdentityPersonalInfoComponent-ErhEZ-zI.js} +40 -40
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DxIZgVIN.js.map → StepHybridIdentityPersonalInfoComponent-ErhEZ-zI.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-D895wubp.js → StepIDCheckLoop-B3ClVxOi.js} +5 -5
- package/chunk/{StepIDCheckLoop-BKQMci0g.js.map → StepIDCheckLoop-B3ClVxOi.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BKQMci0g.js → StepIDCheckLoop-BCJs6usj.js} +5 -5
- package/chunk/{StepIDCheckLoop-D895wubp.js.map → StepIDCheckLoop-BCJs6usj.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-yLiY3DKt.js → StepIDCheckLoopOnfido-B4zpvkRd.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-yLiY3DKt.js.map → StepIDCheckLoopOnfido-B4zpvkRd.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DK9tXC19.js → StepIDCheckLoopOnfido-DRZ4kP4R.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-DK9tXC19.js.map → StepIDCheckLoopOnfido-DRZ4kP4R.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-Co5e1j2Q.js → StepIDCheckLoopRegula-CFgyZ_rn.js} +6 -6
- package/chunk/{StepIDCheckLoopRegula-BPQV1k_O.js.map → StepIDCheckLoopRegula-CFgyZ_rn.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BPQV1k_O.js → StepIDCheckLoopRegula-Db6p5Cwl.js} +6 -6
- package/chunk/{StepIDCheckLoopRegula-Co5e1j2Q.js.map → StepIDCheckLoopRegula-Db6p5Cwl.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-Dv46p6q2.js → StepLicensedProfessionalPersonalInfo-De005KQe.js} +39 -39
- package/chunk/{StepLicensedProfessionalPersonalInfo-Dv46p6q2.js.map → StepLicensedProfessionalPersonalInfo-De005KQe.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-b4RPIfkb.js → StepLicensedProfessionalPersonalInfo-uC90t0Ka.js} +39 -39
- package/chunk/{StepLicensedProfessionalPersonalInfo-b4RPIfkb.js.map → StepLicensedProfessionalPersonalInfo-uC90t0Ka.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BPH02BAz.js → StepLowIncomePersonalInfo-BXeW16K1.js} +51 -51
- package/chunk/{StepLowIncomePersonalInfo-BPH02BAz.js.map → StepLowIncomePersonalInfo-BXeW16K1.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-mgIrT_8x.js → StepLowIncomePersonalInfo-DeQ6ug4-.js} +51 -51
- package/chunk/{StepLowIncomePersonalInfo-mgIrT_8x.js.map → StepLowIncomePersonalInfo-DeQ6ug4-.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CO6Nog70.js → StepMedicalProfessionalPersonalInfo-DYhclBtt.js} +44 -44
- package/chunk/{StepMedicalProfessionalPersonalInfo-CO6Nog70.js.map → StepMedicalProfessionalPersonalInfo-DYhclBtt.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-MLaT1AQH.js → StepMedicalProfessionalPersonalInfo-EGaswECh.js} +44 -44
- package/chunk/{StepMedicalProfessionalPersonalInfo-MLaT1AQH.js.map → StepMedicalProfessionalPersonalInfo-EGaswECh.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DqO6GrME.js → StepMemberPersonalInfo-DmqP1UcS.js} +35 -35
- package/chunk/{StepMemberPersonalInfo-DLPHUDJS.js.map → StepMemberPersonalInfo-DmqP1UcS.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DLPHUDJS.js → StepMemberPersonalInfo-VUcdpf1p.js} +35 -35
- package/chunk/{StepMemberPersonalInfo-DqO6GrME.js.map → StepMemberPersonalInfo-VUcdpf1p.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CkjQ6i7V.js → StepMoverPersonalInfo-BAy0fOpJ.js} +28 -28
- package/chunk/{StepMoverPersonalInfo-B-EAZZTp.js.map → StepMoverPersonalInfo-BAy0fOpJ.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-B-EAZZTp.js → StepMoverPersonalInfo-CBaYoFQM.js} +28 -28
- package/chunk/{StepMoverPersonalInfo-CkjQ6i7V.js.map → StepMoverPersonalInfo-CBaYoFQM.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CeMHVu_2.js → StepOverrideComponent-BU8tncVB.js} +6 -6
- package/chunk/{StepOverrideComponent-BKM8B40J.js.map → StepOverrideComponent-BU8tncVB.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BKM8B40J.js → StepOverrideComponent-Bo0bkoYg.js} +6 -6
- package/chunk/{StepOverrideComponent-CeMHVu_2.js.map → StepOverrideComponent-Bo0bkoYg.js.map} +1 -1
- package/chunk/{StepSMSLoop-BwVhwpaO.js → StepSMSLoop-DLRGvoY8.js} +5 -5
- package/chunk/{StepSMSLoop-BwVhwpaO.js.map → StepSMSLoop-DLRGvoY8.js.map} +1 -1
- package/chunk/{StepSMSLoop-RYr51_dF.js → StepSMSLoop-usK-uwDi.js} +5 -5
- package/chunk/{StepSMSLoop-RYr51_dF.js.map → StepSMSLoop-usK-uwDi.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-D0vgQBsC.js → StepSocialSecurityNumber-Dr0IZbPK.js} +10 -10
- package/chunk/{StepSocialSecurityNumber-D0vgQBsC.js.map → StepSocialSecurityNumber-Dr0IZbPK.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-Dxoe5edN.js → StepSocialSecurityNumber-qFfdO1Gp.js} +10 -10
- package/chunk/{StepSocialSecurityNumber-Dxoe5edN.js.map → StepSocialSecurityNumber-qFfdO1Gp.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DX9xaTt3.js → StepStudentPersonalInfo-A3yGbDk7.js} +38 -38
- package/chunk/{StepStudentPersonalInfo-DX9xaTt3.js.map → StepStudentPersonalInfo-A3yGbDk7.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-ayiFsJov.js → StepStudentPersonalInfo-B-RKUSVb.js} +38 -38
- package/chunk/{StepStudentPersonalInfo-ayiFsJov.js.map → StepStudentPersonalInfo-B-RKUSVb.js.map} +1 -1
- package/chunk/{StepSuccess-B_jflAwW.js → StepSuccess-CDyGNq3Q.js} +6 -6
- package/chunk/{StepSuccess-BpxyX77R.js.map → StepSuccess-CDyGNq3Q.js.map} +1 -1
- package/chunk/{StepSuccess-BpxyX77R.js → StepSuccess-Dviigo8q.js} +6 -6
- package/chunk/{StepSuccess-B_jflAwW.js.map → StepSuccess-Dviigo8q.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-DOyQ1_dK.js → StepTeacherPersonalInfo-D4UTbPDB.js} +34 -34
- package/chunk/{StepTeacherPersonalInfo-CiGSwW0v.js.map → StepTeacherPersonalInfo-D4UTbPDB.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CiGSwW0v.js → StepTeacherPersonalInfo-DUZmMYli.js} +34 -34
- package/chunk/{StepTeacherPersonalInfo-DOyQ1_dK.js.map → StepTeacherPersonalInfo-DUZmMYli.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-Y3fcrHQz.js → TeacherSchoolComponent-CPoc8ceQ.js} +7 -7
- package/chunk/{TeacherSchoolComponent-BFtlvNC3.js.map → TeacherSchoolComponent-CPoc8ceQ.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BFtlvNC3.js → TeacherSchoolComponent-D_yKCvzI.js} +7 -7
- package/chunk/{TeacherSchoolComponent-Y3fcrHQz.js.map → TeacherSchoolComponent-D_yKCvzI.js.map} +1 -1
- package/chunk/TestingRouteOverrides-EggQSvgh.js +4 -4
- package/chunk/TestingRouteOverrides-ipf_F-iY.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-CB5rauS5.js +4 -4
- package/chunk/countryUtils-BBN8jYxF.js +4 -4
- package/chunk/countryUtils-n_5QoHGV.js +4 -4
- 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-DOLBdeca.js → downshift.esm-BbUU6siB.js} +5 -5
- package/chunk/{downshift.esm-BN-aEWbS.js.map → downshift.esm-BbUU6siB.js.map} +1 -1
- package/chunk/{downshift.esm-BN-aEWbS.js → downshift.esm-CF8pnAPi.js} +5 -5
- package/chunk/{downshift.esm-DOLBdeca.js.map → downshift.esm-CF8pnAPi.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-DHI3R7ys.js +4 -4
- package/chunk/empties-Dhc64eA5.js +4 -4
- package/chunk/en-GB-BBkjjtqq.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/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/hooks-BlwolTIT.js +4 -4
- package/chunk/hooks-gC9DtNY1.js +4 -4
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/intl-CvSmE54g.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-CyXcV_93.js +4 -4
- package/chunk/jsx-runtime-JSlXFmKD.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/mockProgramTheme-CBqgtg7A.js +4 -4
- package/chunk/mocks-Dpf6dNc6.js +4 -4
- package/chunk/mocks-DrV8NINc.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/options-CRzdSTAR.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/programThemeGetters-DYWYXv-a.js +4 -4
- package/chunk/programThemeGetters-VBnkSxuj.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-CcEMtmwt.js → stepComponentHelpers-Bxse3jnq.js} +37 -46
- package/chunk/stepComponentHelpers-Bxse3jnq.js.map +1 -0
- package/chunk/{stepComponentHelpers-BFyXhiWa.js → stepComponentHelpers-CQUMKZ_f.js} +37 -46
- package/chunk/stepComponentHelpers-CQUMKZ_f.js.map +1 -0
- 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-CIBjRIaL.js → useCollectFieldsEndpoint-BW9WTICZ.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-D65zxif7.js.map → useCollectFieldsEndpoint-BW9WTICZ.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-D65zxif7.js → useCollectFieldsEndpoint-DBKghe_8.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-CIBjRIaL.js.map → useCollectFieldsEndpoint-DBKghe_8.js.map} +1 -1
- package/chunk/useMetrics-C3KNudJk.js +4 -4
- package/chunk/useMetrics-Cjo0Vkjx.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 +37 -37
- package/chunk/StepAgePersonalInfo-Lx61MmjN.js +0 -175
- package/chunk/StepAgePersonalInfo-Lx61MmjN.js.map +0 -1
- package/chunk/StepAgePersonalInfo-TnXgTLlB.js +0 -171
- package/chunk/StepAgePersonalInfo-TnXgTLlB.js.map +0 -1
- package/chunk/stepComponentHelpers-BFyXhiWa.js.map +0 -1
- package/chunk/stepComponentHelpers-CcEMtmwt.js.map +0 -1
package/sheerid.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.289.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1789773568893
|
|
5
|
+
* BUILD_DATE: Fri Sep 18 2026 23:19:28 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 97371345cabb92f713fd30bd7baf2bb5e4a9f973
|
|
7
7
|
*/
|
|
8
8
|
import { D as e, E as t, Et as n, O as r, Ot as i, S as a, T as o, at as s, b as c, c as l, d as u, g as d, gt as f, h as p, i as m, l as h, lt as g, m as _, n as v, p as y, r as b, s as x, t as S, u as C, ut as w, y as T } from "./chunk/options-CRzdSTAR.js";
|
|
9
9
|
import { c as ee, i as E, n as D, t as O } from "./chunk/jsx-runtime-CyXcV_93.js";
|
|
10
|
-
import { A as k, D as te, O as A, P as j, S as ne, T as re, a as ie, c as ae, d as oe, f as se, g as ce, i as le, k as ue, m as de, o as fe, p as pe, r as me, s as he, t as M, u as ge, w as _e, x as ve } from "./chunk/Message-
|
|
10
|
+
import { A as k, D as te, O as A, P as j, S as ne, T as re, a as ie, c as ae, d as oe, f as se, g as ce, i as le, k as ue, m as de, o as fe, p as pe, r as me, s as he, t as M, u as ge, w as _e, x as ve } from "./chunk/Message-CZD2IHWF.js";
|
|
11
11
|
import { S as N, b as P, h as ye, x as be } from "./chunk/runtimeTypes-B2AGNJMT.js";
|
|
12
12
|
import { a as xe, i as Se, r as Ce, s as we, t as Te } from "./chunk/TestingRouteOverrides-EggQSvgh.js";
|
|
13
|
-
import { f as Ee, p as De, u as Oe } from "./chunk/ApiUrls-
|
|
14
|
-
import { C as ke, S as Ae, _ as je, a as Me, b as Ne, c as Pe, d as Fe, f as Ie, g as Le, h as Re, i as ze, l as Be, m as Ve, n as He, o as Ue, p as We, r as Ge, s as Ke, t as qe, u as Je, v as Ye, w as Xe, x as Ze, y as Qe } from "./chunk/FormFooterComponent-
|
|
13
|
+
import { f as Ee, p as De, u as Oe } from "./chunk/ApiUrls-ycoYioq4.js";
|
|
14
|
+
import { C as ke, S as Ae, _ as je, a as Me, b as Ne, c as Pe, d as Fe, f as Ie, g as Le, h as Re, i as ze, l as Be, m as Ve, n as He, o as Ue, p as We, r as Ge, s as Ke, t as qe, u as Je, v as Ye, w as Xe, x as Ze, y as Qe } from "./chunk/FormFooterComponent-CP0-Wobs.js";
|
|
15
15
|
import { i as $e } from "./chunk/programThemeGetters-VBnkSxuj.js";
|
|
16
16
|
import { a as et, i as tt, n as nt, r as rt, t as it } from "./chunk/hooks-gC9DtNY1.js";
|
|
17
17
|
import { i as at, s as ot, t as st } from "./chunk/refs-Mq0rtW9K.js";
|
|
@@ -902,37 +902,37 @@ var ft = /* @__PURE__ */ i(j(), 1), pt = /* @__PURE__ */ i(g(), 1), I = O(), mt
|
|
|
902
902
|
}, un = {
|
|
903
903
|
StepPendingComponent: Xt,
|
|
904
904
|
StepErrorComponent: ln,
|
|
905
|
-
StepStudentPersonalInfoComponent: F.lazy(() => import("./chunk/StepStudentPersonalInfo-
|
|
906
|
-
StepOverrideComponent: F.lazy(() => import("./chunk/StepOverrideComponent-
|
|
907
|
-
StepAgePersonalInfoComponent: F.lazy(() => import("./chunk/StepAgePersonalInfo-
|
|
908
|
-
StepSeniorPersonalInfoComponent: F.lazy(() => import("./chunk/StepAgePersonalInfo-
|
|
909
|
-
StepCollectMilitaryPersonalInfoComponent: F.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-
|
|
910
|
-
StepCollectMilitaryStatusComponent: F.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-
|
|
911
|
-
StepActiveMilitaryPersonalInfoComponent: F.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-
|
|
912
|
-
StepInactiveMilitaryPersonalInfoComponent: F.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-
|
|
913
|
-
StepDriverLicensePersonalInfoComponent: F.lazy(() => import("./chunk/StepDriverLicensePersonalInfoComponent-
|
|
914
|
-
StepEmploymentPersonalInfoComponent: F.lazy(() => import("./chunk/StepEmploymentPersonalInfo-
|
|
915
|
-
StepFirstResponderPersonalInfoComponent: F.lazy(() => import("./chunk/StepFirstResponderPersonalInfo-
|
|
916
|
-
StepGeneralIdentityPersonalInfoComponent: F.lazy(() => import("./chunk/StepGeneralIdentityPersonalInfoComponent-
|
|
917
|
-
StepHybridIdentityPersonalInfoComponent: F.lazy(() => import("./chunk/StepHybridIdentityPersonalInfoComponent-
|
|
918
|
-
StepIDCheckLoopComponent: F.lazy(() => import("./chunk/StepIDCheckLoop-
|
|
919
|
-
StepLicensedProfessionalPersonalInfoComponent: F.lazy(() => import("./chunk/StepLicensedProfessionalPersonalInfo-
|
|
920
|
-
StepLowIncomePersonalInfoComponent: F.lazy(() => import("./chunk/StepLowIncomePersonalInfo-
|
|
921
|
-
StepMedicalProfessionalPersonalInfoComponent: F.lazy(() => import("./chunk/StepMedicalProfessionalPersonalInfo-
|
|
922
|
-
StepMemberPersonalInfoComponent: F.lazy(() => import("./chunk/StepMemberPersonalInfo-
|
|
923
|
-
StepConsolationComponent: F.lazy(() => import("./chunk/StepConsolation-
|
|
924
|
-
StepDocUploadComponent: F.lazy(() => import("./chunk/StepDocUpload-
|
|
925
|
-
StepEmailLoopComponent: F.lazy(() => import("./chunk/StepEmailLoop-
|
|
926
|
-
StepPendingEmailLoopComponent: F.lazy(() => import("./chunk/EmailLoopPending-
|
|
927
|
-
StepMoverPersonalInfoComponent: F.lazy(() => import("./chunk/StepMoverPersonalInfo-
|
|
928
|
-
StepSMSLoopComponent: F.lazy(() => import("./chunk/StepSMSLoop-
|
|
929
|
-
StepSocialSecurity: F.lazy(() => import("./chunk/StepSocialSecurityNumber-
|
|
905
|
+
StepStudentPersonalInfoComponent: F.lazy(() => import("./chunk/StepStudentPersonalInfo-B-RKUSVb.js")),
|
|
906
|
+
StepOverrideComponent: F.lazy(() => import("./chunk/StepOverrideComponent-Bo0bkoYg.js")),
|
|
907
|
+
StepAgePersonalInfoComponent: F.lazy(() => import("./chunk/StepAgePersonalInfo-Bwdjo9Zy.js")),
|
|
908
|
+
StepSeniorPersonalInfoComponent: F.lazy(() => import("./chunk/StepAgePersonalInfo-Bwdjo9Zy.js")),
|
|
909
|
+
StepCollectMilitaryPersonalInfoComponent: F.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-B6L54gOh.js")),
|
|
910
|
+
StepCollectMilitaryStatusComponent: F.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-B6L54gOh.js")),
|
|
911
|
+
StepActiveMilitaryPersonalInfoComponent: F.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-B6L54gOh.js")),
|
|
912
|
+
StepInactiveMilitaryPersonalInfoComponent: F.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-B6L54gOh.js")),
|
|
913
|
+
StepDriverLicensePersonalInfoComponent: F.lazy(() => import("./chunk/StepDriverLicensePersonalInfoComponent-CT2uHtsZ.js")),
|
|
914
|
+
StepEmploymentPersonalInfoComponent: F.lazy(() => import("./chunk/StepEmploymentPersonalInfo-DuOMR21_.js")),
|
|
915
|
+
StepFirstResponderPersonalInfoComponent: F.lazy(() => import("./chunk/StepFirstResponderPersonalInfo-CizcIcEl.js")),
|
|
916
|
+
StepGeneralIdentityPersonalInfoComponent: F.lazy(() => import("./chunk/StepGeneralIdentityPersonalInfoComponent-CTfP5Oeu.js")),
|
|
917
|
+
StepHybridIdentityPersonalInfoComponent: F.lazy(() => import("./chunk/StepHybridIdentityPersonalInfoComponent-ErhEZ-zI.js")),
|
|
918
|
+
StepIDCheckLoopComponent: F.lazy(() => import("./chunk/StepIDCheckLoop-B3ClVxOi.js")),
|
|
919
|
+
StepLicensedProfessionalPersonalInfoComponent: F.lazy(() => import("./chunk/StepLicensedProfessionalPersonalInfo-uC90t0Ka.js")),
|
|
920
|
+
StepLowIncomePersonalInfoComponent: F.lazy(() => import("./chunk/StepLowIncomePersonalInfo-BXeW16K1.js")),
|
|
921
|
+
StepMedicalProfessionalPersonalInfoComponent: F.lazy(() => import("./chunk/StepMedicalProfessionalPersonalInfo-DYhclBtt.js")),
|
|
922
|
+
StepMemberPersonalInfoComponent: F.lazy(() => import("./chunk/StepMemberPersonalInfo-VUcdpf1p.js")),
|
|
923
|
+
StepConsolationComponent: F.lazy(() => import("./chunk/StepConsolation-DI8kcTkV.js")),
|
|
924
|
+
StepDocUploadComponent: F.lazy(() => import("./chunk/StepDocUpload-Bv6M-Z6q.js")),
|
|
925
|
+
StepEmailLoopComponent: F.lazy(() => import("./chunk/StepEmailLoop-j2264k-N.js")),
|
|
926
|
+
StepPendingEmailLoopComponent: F.lazy(() => import("./chunk/EmailLoopPending-Du6R4zif.js").then((e) => e.n)),
|
|
927
|
+
StepMoverPersonalInfoComponent: F.lazy(() => import("./chunk/StepMoverPersonalInfo-BAy0fOpJ.js")),
|
|
928
|
+
StepSMSLoopComponent: F.lazy(() => import("./chunk/StepSMSLoop-DLRGvoY8.js")),
|
|
929
|
+
StepSocialSecurity: F.lazy(() => import("./chunk/StepSocialSecurityNumber-qFfdO1Gp.js")),
|
|
930
930
|
StepSSOComponent: F.lazy(() => import("./chunk/StepSSO-ZHByQpHa.js")),
|
|
931
|
-
StepSuccessComponent: F.lazy(() => import("./chunk/StepSuccess-
|
|
932
|
-
StepTeacherPersonalInfoComponent: F.lazy(() => import("./chunk/StepTeacherPersonalInfo-
|
|
933
|
-
StepCompleteAuthentication: F.lazy(() => import("./chunk/StepCompleteAuthentication-
|
|
934
|
-
StepCollectIdentifierComponent: F.lazy(() => import("./chunk/StepCollectIdentifier-
|
|
935
|
-
StepCollectPersonalInfo: F.lazy(() => import("./chunk/StepCollectPersonalInfo-
|
|
931
|
+
StepSuccessComponent: F.lazy(() => import("./chunk/StepSuccess-CDyGNq3Q.js")),
|
|
932
|
+
StepTeacherPersonalInfoComponent: F.lazy(() => import("./chunk/StepTeacherPersonalInfo-DUZmMYli.js")),
|
|
933
|
+
StepCompleteAuthentication: F.lazy(() => import("./chunk/StepCompleteAuthentication-CJpJoWRq.js")),
|
|
934
|
+
StepCollectIdentifierComponent: F.lazy(() => import("./chunk/StepCollectIdentifier-nrcBJaBK.js")),
|
|
935
|
+
StepCollectPersonalInfo: F.lazy(() => import("./chunk/StepCollectPersonalInfo-Mn8W7-0u.js")),
|
|
936
936
|
StepThirdPartyLoopComponent: F.lazy(() => import("./chunk/StepThirdPartyLoop-BrKuZcYb.js"))
|
|
937
937
|
}, z = (e) => (N.info("getComponent", e), Dt(e) || un[e]), dn = () => /* @__PURE__ */ (0, I.jsx)(gt, {}), fn = ({ stepToLoad: e, verificationService: t }) => {
|
|
938
938
|
N.info(`LoadStepComponent: rendering step: ${e}`);
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* WARNING: This file is intended to be used within MySheerID.
|
|
4
|
-
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* VERSION: 2.287.0
|
|
8
|
-
* BUILD_TIMESTAMP: 1789665281474
|
|
9
|
-
* BUILD_DATE: Thu Sep 17 2026 17:14:41 GMT+0000 (Coordinated Universal Time)
|
|
10
|
-
* BUILD_COMMIT: 9a5a30040ec07861e609bafce1e2c77d4044026f
|
|
11
|
-
*/
|
|
12
|
-
import { Ot as e, s as t, wt as n } from "./intl-CvSmE54g.js";
|
|
13
|
-
import { b as r } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-JSlXFmKD.js";
|
|
15
|
-
import { p as c } from "./FormFooterComponent-DdlG9tS3.js";
|
|
16
|
-
import { t as l } from "../_mysheerid-preview.js";
|
|
17
|
-
import { t as u } from "./useCollectFieldsEndpoint-CIBjRIaL.js";
|
|
18
|
-
import { c as d, d as f, g as p, i as m, r as h, t as g } from "./stepComponentHelpers-CcEMtmwt.js";
|
|
19
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-BOIt_QNQ.js";
|
|
20
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-NagYqca5.js";
|
|
21
|
-
import { t as T } from "./BirthDateComponent-B6CCdI1w.js";
|
|
22
|
-
import { t as E } from "./PostalCodeComponent-CuiH815C.js";
|
|
23
|
-
import { t as D } from "./CountryComponentWrapper-D0nzEytT.js";
|
|
24
|
-
import { t as O } from "./City-BEHiaazP.js";
|
|
25
|
-
import { t as k } from "./AddressComponent-CJrrmHmU.js";
|
|
26
|
-
import { t as A } from "./ExtraMessage-D6mjCJWc.js";
|
|
27
|
-
import { t as j } from "./ChangeLocaleComponent-BbkEb3a6.js";
|
|
28
|
-
import { t as M } from "./PersonalInfoStepWrapper-DaH1p-AU.js";
|
|
29
|
-
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
30
|
-
var N = /* @__PURE__ */ e(a(), 1), P = s(), F = i(({ verificationService: e, intl: i }) => {
|
|
31
|
-
let a = e.viewModel, { fieldValidationErrors: s } = e, F = e.verificationResponse, I = c(F), L = n(() => a.countryChoice.value, h(g(e.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled, B = L !== "US" || e.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = t();
|
|
32
|
-
!s.phoneNumber && F.errorIds && F.errorIds.includes("invalidPhoneNumber") && e.updateFieldValidationErrors({
|
|
33
|
-
...s,
|
|
34
|
-
phoneNumber: "invalidPhoneNumber"
|
|
35
|
-
});
|
|
36
|
-
let U = (t, n) => {
|
|
37
|
-
let r = f(a, t, n);
|
|
38
|
-
e.updateViewModel(r);
|
|
39
|
-
}, { isFieldRequired: W } = u({
|
|
40
|
-
verificationId: F.verificationId,
|
|
41
|
-
currentStep: F.currentStep,
|
|
42
|
-
viewModel: a,
|
|
43
|
-
defaultRequiredFields: R
|
|
44
|
-
});
|
|
45
|
-
return N.useEffect(() => {
|
|
46
|
-
p("phoneNumber", a.phoneNumber, e);
|
|
47
|
-
}, [a.country]), /* @__PURE__ */ (0, P.jsxs)(M, {
|
|
48
|
-
verificationService: e,
|
|
49
|
-
step: F.currentStep,
|
|
50
|
-
children: [
|
|
51
|
-
/* @__PURE__ */ (0, P.jsx)(l, {
|
|
52
|
-
verificationService: e,
|
|
53
|
-
classNameIdentifier: "age"
|
|
54
|
-
}),
|
|
55
|
-
/* @__PURE__ */ (0, P.jsx)(j, { verificationService: e }),
|
|
56
|
-
/* @__PURE__ */ (0, P.jsx)(D, {
|
|
57
|
-
verificationService: e,
|
|
58
|
-
disabled: m("country")?.disabled
|
|
59
|
-
}),
|
|
60
|
-
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
61
|
-
className: "sid-names",
|
|
62
|
-
children: [/* @__PURE__ */ (0, P.jsx)(_, {
|
|
63
|
-
value: a.firstName,
|
|
64
|
-
isErrored: !!s.firstName,
|
|
65
|
-
disabled: m("firstName")?.disabled,
|
|
66
|
-
onChange: (t) => {
|
|
67
|
-
U("firstName", t), p("firstName", t, e);
|
|
68
|
-
}
|
|
69
|
-
}), /* @__PURE__ */ (0, P.jsx)(v, {
|
|
70
|
-
value: a.lastName,
|
|
71
|
-
isErrored: !!s.lastName,
|
|
72
|
-
disabled: m("lastName")?.disabled,
|
|
73
|
-
onChange: (t) => {
|
|
74
|
-
U("lastName", t), p("lastName", t, e);
|
|
75
|
-
}
|
|
76
|
-
})]
|
|
77
|
-
}),
|
|
78
|
-
/* @__PURE__ */ (0, P.jsx)(T, {
|
|
79
|
-
errorId: s.birthDate,
|
|
80
|
-
locale: V,
|
|
81
|
-
onChange: (t) => {
|
|
82
|
-
U("birthDate", t), p("birthDate", t, e);
|
|
83
|
-
},
|
|
84
|
-
value: a.birthDate,
|
|
85
|
-
disabled: m("birthDate")?.disabled
|
|
86
|
-
}),
|
|
87
|
-
W("city") && /* @__PURE__ */ (0, P.jsx)(O, {
|
|
88
|
-
value: a.city,
|
|
89
|
-
isRequired: !0,
|
|
90
|
-
isErrored: !!s.city,
|
|
91
|
-
errorId: s.city,
|
|
92
|
-
disabled: m("city")?.disabled,
|
|
93
|
-
onChange: (t) => {
|
|
94
|
-
U("city", t), p("city", t, e);
|
|
95
|
-
}
|
|
96
|
-
}),
|
|
97
|
-
W("address1") && /* @__PURE__ */ (0, P.jsx)(k, {
|
|
98
|
-
value: a.address1,
|
|
99
|
-
isRequired: !0,
|
|
100
|
-
isErrored: !!s.address1,
|
|
101
|
-
errorId: s.address1,
|
|
102
|
-
onChange: (t) => {
|
|
103
|
-
U("address1", t), p("address1", t, e);
|
|
104
|
-
}
|
|
105
|
-
}),
|
|
106
|
-
W("postalCode") && /* @__PURE__ */ (0, P.jsx)(E, {
|
|
107
|
-
isErrored: !!s.postalCode,
|
|
108
|
-
onChange: (t) => {
|
|
109
|
-
U("postalCode", t), p("postalCode", t, e);
|
|
110
|
-
},
|
|
111
|
-
value: a.postalCode,
|
|
112
|
-
disabled: m("postalCode")?.disabled
|
|
113
|
-
}),
|
|
114
|
-
/* @__PURE__ */ (0, P.jsx)(C, {
|
|
115
|
-
value: a.email,
|
|
116
|
-
isErrored: !!s.email,
|
|
117
|
-
explanation: /* @__PURE__ */ (0, P.jsx)(o, {
|
|
118
|
-
id: "emailExplanation",
|
|
119
|
-
defaultMessage: " "
|
|
120
|
-
}),
|
|
121
|
-
onChange: (t) => {
|
|
122
|
-
U("email", t), p("email", t, e);
|
|
123
|
-
},
|
|
124
|
-
onKeyDown: (e) => d(e),
|
|
125
|
-
disabled: m("email")?.disabled
|
|
126
|
-
}),
|
|
127
|
-
z ? /* @__PURE__ */ (0, P.jsx)(b, {
|
|
128
|
-
isRequired: B,
|
|
129
|
-
value: a.phoneNumber,
|
|
130
|
-
isErrored: !!s.phoneNumber,
|
|
131
|
-
onChange: (t) => {
|
|
132
|
-
U("phoneNumber", t), p("phoneNumber", t, e);
|
|
133
|
-
},
|
|
134
|
-
selectedCountryCode: a.countryChoice && a.countryChoice.value,
|
|
135
|
-
disabled: m("phoneNumber")?.disabled
|
|
136
|
-
}) : null,
|
|
137
|
-
H.customFormFields.map((t) => /* @__PURE__ */ (0, P.jsx)(y, {
|
|
138
|
-
config: t,
|
|
139
|
-
verificationService: e
|
|
140
|
-
})),
|
|
141
|
-
/* @__PURE__ */ (0, P.jsx)(x, {
|
|
142
|
-
verificationService: e,
|
|
143
|
-
isErrored: !!s.marketConsentValue,
|
|
144
|
-
onChange: (t) => {
|
|
145
|
-
U("metadata", {
|
|
146
|
-
...e.viewModel.metadata,
|
|
147
|
-
marketConsentValue: t
|
|
148
|
-
}), p("marketConsentValue", t, e);
|
|
149
|
-
},
|
|
150
|
-
viewModel: a,
|
|
151
|
-
disabled: m("marketConsentValue")?.disabled
|
|
152
|
-
}),
|
|
153
|
-
/* @__PURE__ */ (0, P.jsx)(A, {
|
|
154
|
-
verificationService: e,
|
|
155
|
-
suffix: "CollectAboveSubmit"
|
|
156
|
-
}),
|
|
157
|
-
/* @__PURE__ */ (0, P.jsx)(S, {
|
|
158
|
-
verificationService: e,
|
|
159
|
-
isErrored: !!s.captchaToken
|
|
160
|
-
}),
|
|
161
|
-
/* @__PURE__ */ (0, P.jsx)(w, {
|
|
162
|
-
step: r.collectAgePersonalInfo,
|
|
163
|
-
verificationService: e,
|
|
164
|
-
viewModel: a,
|
|
165
|
-
failedInstantMatch: I,
|
|
166
|
-
buttonText: /* @__PURE__ */ (0, P.jsx)(o, {
|
|
167
|
-
id: "step.personalInfo.submitButtonText",
|
|
168
|
-
defaultMessage: "Verify and continue"
|
|
169
|
-
})
|
|
170
|
-
})
|
|
171
|
-
]
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
//#endregion
|
|
175
|
-
export { F as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-Lx61MmjN.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\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 </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,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e;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* VERSION: 2.287.0
|
|
4
|
-
* BUILD_TIMESTAMP: 1789665276668
|
|
5
|
-
* BUILD_DATE: Thu Sep 17 2026 17:14:36 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: 9a5a30040ec07861e609bafce1e2c77d4044026f
|
|
7
|
-
*/
|
|
8
|
-
import { Ot as e, n as t, ut as n } from "./options-CRzdSTAR.js";
|
|
9
|
-
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-CyXcV_93.js";
|
|
10
|
-
import { b as s } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as c } from "./FormFooterComponent-BiJ-9fwP.js";
|
|
12
|
-
import { n as l } from "../sheerid.js";
|
|
13
|
-
import { t as u } from "./useCollectFieldsEndpoint-D65zxif7.js";
|
|
14
|
-
import { c as d, d as f, g as p, i as m, r as h, t as g } from "./stepComponentHelpers-BFyXhiWa.js";
|
|
15
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-COMDyzye.js";
|
|
16
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-BNUMtb0a.js";
|
|
17
|
-
import { t as T } from "./BirthDateComponent-C6inTN_d.js";
|
|
18
|
-
import { t as E } from "./PostalCodeComponent-Dg4YvxkC.js";
|
|
19
|
-
import { t as D } from "./CountryComponentWrapper-T2Bpp2gB.js";
|
|
20
|
-
import { t as O } from "./City-D4i6_4Pu.js";
|
|
21
|
-
import { t as k } from "./AddressComponent-CAljV9xQ.js";
|
|
22
|
-
import { t as A } from "./ExtraMessage-D5tofP3l.js";
|
|
23
|
-
import { t as j } from "./ChangeLocaleComponent-jY0EP0y4.js";
|
|
24
|
-
import { t as M } from "./PersonalInfoStepWrapper-9I7Aa79o.js";
|
|
25
|
-
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
26
|
-
var N = /* @__PURE__ */ e(i(), 1), P = o(), F = r(({ verificationService: e, intl: r }) => {
|
|
27
|
-
let i = e.viewModel, { fieldValidationErrors: o } = e, F = e.verificationResponse, I = c(F), L = n(() => i.countryChoice.value, h(g(e.programTheme, r)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled, B = L !== "US" || e.programTheme.smsLoopEnabled, V = i.localeChoice.value, H = t();
|
|
28
|
-
!o.phoneNumber && F.errorIds && F.errorIds.includes("invalidPhoneNumber") && e.updateFieldValidationErrors({
|
|
29
|
-
...o,
|
|
30
|
-
phoneNumber: "invalidPhoneNumber"
|
|
31
|
-
});
|
|
32
|
-
let U = (t, n) => {
|
|
33
|
-
let r = f(i, t, n);
|
|
34
|
-
e.updateViewModel(r);
|
|
35
|
-
}, { isFieldRequired: W } = u({
|
|
36
|
-
verificationId: F.verificationId,
|
|
37
|
-
currentStep: F.currentStep,
|
|
38
|
-
viewModel: i,
|
|
39
|
-
defaultRequiredFields: R
|
|
40
|
-
});
|
|
41
|
-
return N.useEffect(() => {
|
|
42
|
-
p("phoneNumber", i.phoneNumber, e);
|
|
43
|
-
}, [i.country]), /* @__PURE__ */ (0, P.jsxs)(M, {
|
|
44
|
-
verificationService: e,
|
|
45
|
-
step: F.currentStep,
|
|
46
|
-
children: [
|
|
47
|
-
/* @__PURE__ */ (0, P.jsx)(l, {
|
|
48
|
-
verificationService: e,
|
|
49
|
-
classNameIdentifier: "age"
|
|
50
|
-
}),
|
|
51
|
-
/* @__PURE__ */ (0, P.jsx)(j, { verificationService: e }),
|
|
52
|
-
/* @__PURE__ */ (0, P.jsx)(D, {
|
|
53
|
-
verificationService: e,
|
|
54
|
-
disabled: m("country")?.disabled
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
57
|
-
className: "sid-names",
|
|
58
|
-
children: [/* @__PURE__ */ (0, P.jsx)(_, {
|
|
59
|
-
value: i.firstName,
|
|
60
|
-
isErrored: !!o.firstName,
|
|
61
|
-
disabled: m("firstName")?.disabled,
|
|
62
|
-
onChange: (t) => {
|
|
63
|
-
U("firstName", t), p("firstName", t, e);
|
|
64
|
-
}
|
|
65
|
-
}), /* @__PURE__ */ (0, P.jsx)(v, {
|
|
66
|
-
value: i.lastName,
|
|
67
|
-
isErrored: !!o.lastName,
|
|
68
|
-
disabled: m("lastName")?.disabled,
|
|
69
|
-
onChange: (t) => {
|
|
70
|
-
U("lastName", t), p("lastName", t, e);
|
|
71
|
-
}
|
|
72
|
-
})]
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ (0, P.jsx)(T, {
|
|
75
|
-
errorId: o.birthDate,
|
|
76
|
-
locale: V,
|
|
77
|
-
onChange: (t) => {
|
|
78
|
-
U("birthDate", t), p("birthDate", t, e);
|
|
79
|
-
},
|
|
80
|
-
value: i.birthDate,
|
|
81
|
-
disabled: m("birthDate")?.disabled
|
|
82
|
-
}),
|
|
83
|
-
W("city") && /* @__PURE__ */ (0, P.jsx)(O, {
|
|
84
|
-
value: i.city,
|
|
85
|
-
isRequired: !0,
|
|
86
|
-
isErrored: !!o.city,
|
|
87
|
-
errorId: o.city,
|
|
88
|
-
disabled: m("city")?.disabled,
|
|
89
|
-
onChange: (t) => {
|
|
90
|
-
U("city", t), p("city", t, e);
|
|
91
|
-
}
|
|
92
|
-
}),
|
|
93
|
-
W("address1") && /* @__PURE__ */ (0, P.jsx)(k, {
|
|
94
|
-
value: i.address1,
|
|
95
|
-
isRequired: !0,
|
|
96
|
-
isErrored: !!o.address1,
|
|
97
|
-
errorId: o.address1,
|
|
98
|
-
onChange: (t) => {
|
|
99
|
-
U("address1", t), p("address1", t, e);
|
|
100
|
-
}
|
|
101
|
-
}),
|
|
102
|
-
W("postalCode") && /* @__PURE__ */ (0, P.jsx)(E, {
|
|
103
|
-
isErrored: !!o.postalCode,
|
|
104
|
-
onChange: (t) => {
|
|
105
|
-
U("postalCode", t), p("postalCode", t, e);
|
|
106
|
-
},
|
|
107
|
-
value: i.postalCode,
|
|
108
|
-
disabled: m("postalCode")?.disabled
|
|
109
|
-
}),
|
|
110
|
-
/* @__PURE__ */ (0, P.jsx)(C, {
|
|
111
|
-
value: i.email,
|
|
112
|
-
isErrored: !!o.email,
|
|
113
|
-
explanation: /* @__PURE__ */ (0, P.jsx)(a, {
|
|
114
|
-
id: "emailExplanation",
|
|
115
|
-
defaultMessage: " "
|
|
116
|
-
}),
|
|
117
|
-
onChange: (t) => {
|
|
118
|
-
U("email", t), p("email", t, e);
|
|
119
|
-
},
|
|
120
|
-
onKeyDown: (e) => d(e),
|
|
121
|
-
disabled: m("email")?.disabled
|
|
122
|
-
}),
|
|
123
|
-
z ? /* @__PURE__ */ (0, P.jsx)(b, {
|
|
124
|
-
isRequired: B,
|
|
125
|
-
value: i.phoneNumber,
|
|
126
|
-
isErrored: !!o.phoneNumber,
|
|
127
|
-
onChange: (t) => {
|
|
128
|
-
U("phoneNumber", t), p("phoneNumber", t, e);
|
|
129
|
-
},
|
|
130
|
-
selectedCountryCode: i.countryChoice && i.countryChoice.value,
|
|
131
|
-
disabled: m("phoneNumber")?.disabled
|
|
132
|
-
}) : null,
|
|
133
|
-
H.customFormFields.map((t) => /* @__PURE__ */ (0, P.jsx)(y, {
|
|
134
|
-
config: t,
|
|
135
|
-
verificationService: e
|
|
136
|
-
})),
|
|
137
|
-
/* @__PURE__ */ (0, P.jsx)(x, {
|
|
138
|
-
verificationService: e,
|
|
139
|
-
isErrored: !!o.marketConsentValue,
|
|
140
|
-
onChange: (t) => {
|
|
141
|
-
U("metadata", {
|
|
142
|
-
...e.viewModel.metadata,
|
|
143
|
-
marketConsentValue: t
|
|
144
|
-
}), p("marketConsentValue", t, e);
|
|
145
|
-
},
|
|
146
|
-
viewModel: i,
|
|
147
|
-
disabled: m("marketConsentValue")?.disabled
|
|
148
|
-
}),
|
|
149
|
-
/* @__PURE__ */ (0, P.jsx)(A, {
|
|
150
|
-
verificationService: e,
|
|
151
|
-
suffix: "CollectAboveSubmit"
|
|
152
|
-
}),
|
|
153
|
-
/* @__PURE__ */ (0, P.jsx)(S, {
|
|
154
|
-
verificationService: e,
|
|
155
|
-
isErrored: !!o.captchaToken
|
|
156
|
-
}),
|
|
157
|
-
/* @__PURE__ */ (0, P.jsx)(w, {
|
|
158
|
-
step: s.collectAgePersonalInfo,
|
|
159
|
-
verificationService: e,
|
|
160
|
-
viewModel: i,
|
|
161
|
-
failedInstantMatch: I,
|
|
162
|
-
buttonText: /* @__PURE__ */ (0, P.jsx)(a, {
|
|
163
|
-
id: "step.personalInfo.submitButtonText",
|
|
164
|
-
defaultMessage: "Verify and continue"
|
|
165
|
-
})
|
|
166
|
-
})
|
|
167
|
-
]
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
//#endregion
|
|
171
|
-
export { F as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-TnXgTLlB.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\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 </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePers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AAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepComponentHelpers-BFyXhiWa.js","names":[],"sources":["../../src/lib/utils/browser/inputHelpers.ts","../../src/lib/utils/getSafe.ts","../../src/lib/utils/stepComponentHelpers/stepComponentHelpers.ts"],"sourcesContent":["import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type ExtendedFieldId, type FieldId } from \"../../types/types\";\nimport { getRefByFieldId } from \"../../refs/refs\";\n\n/**\n * @private\n */\nexport const setFocus = (fieldId: FieldId | ExtendedFieldId) => {\n const fieldRef = getRefByFieldId(fieldId);\n\n if (fieldRef) {\n try {\n fieldRef.focus();\n } catch (e) {\n logger.error(\n `The ref '${fieldRef}' could not be focused. Is the ref an HTMLInputElement or HTMLButtonElement?`,\n \"ref error\",\n );\n }\n } else {\n logger.error(\n `A ref for fieldId '${fieldId}' could not be found. Has the ref been registered using setRef()?`,\n \"ref error\",\n );\n }\n};\n","/**\n * Avoid \"can't access property of undefined\" errors in a more readable way.\n * @param fn Function that wraps a nested property access\n * @param defaultVal Optional - the value to return if property access failed\n */\n\nexport function getSafe<T>(fn: () => T, defaultVal?: T): T | undefined {\n try {\n return fn();\n } catch (e) {\n return defaultVal;\n }\n}\n","import { produce } from \"immer\";\nimport { type InjectedIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { EventName, recordGaEvent } from \"@/lib/GoogleAnalytics/ga\";\n\nimport {\n type FieldId,\n type FieldValidationErrors,\n type Organization,\n type VerificationService,\n type FieldContent,\n type FieldRef,\n type ExtendedFieldId,\n type WithOrganization,\n type InputSelectOnKeyDown,\n type FormSelectChoice,\n type Country,\n type ProgramTheme,\n type Locale,\n type ViewModel,\n type State,\n type FieldDescription,\n type AllStatuses,\n type PersonalInfoFieldId,\n type Options,\n} from \"../../types/types\";\nimport { type VerificationStepsEnum } from \"../../types/runtimeTypes\";\nimport { blankOrganization } from \"../../types/empties\";\nimport {\n validateFieldById,\n getFieldValidationErrors,\n isFormErrored,\n} from \"../../validators/validators\";\nimport { setFocus } from \"../browser/inputHelpers\";\nimport { getRefByFieldId, getRefs } from \"../../refs/refs\";\nimport { getSafe } from \"../getSafe\";\nimport {\n getConfiguredCountries,\n getConfiguredStates,\n} from \"../../ProgramTheme/programThemeGetters\";\nimport { getQueryParamsFromUrl } from \"../routing/Url\";\nimport { FIELD_IDS } from \"../../../constants\";\nimport { getOptions } from \"../../../options/options\";\n\nexport const updateViewModelOrganization = (\n organization: Organization,\n verificationService: VerificationService,\n) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const nextState = produce(viewModel, (draft) => {\n draft.organization = organization\n ? {\n id: organization.id,\n idExtended: organization.idExtended,\n name: organization.name,\n city: organization.city,\n state: organization.state,\n source: organization.source,\n }\n : blankOrganization.organization;\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n });\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const populateViewModelFromQueryParams = (verificationService: VerificationService) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const queryParams = getQueryParamsFromUrl();\n\n const nextState = produce(viewModel, (draft) => {\n Object.keys(viewModel).forEach((key) => {\n if (queryParams.has(key)) {\n draft[key] = queryParams.get(key);\n }\n });\n });\n\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const updateFieldValidationErrors = (\n fieldValidationErrors: FieldValidationErrors,\n verificationService: VerificationService,\n) => {\n verificationService.updateFieldValidationErrors(fieldValidationErrors);\n};\n\nexport const updateFieldValidationErrorsByFieldId = (\n fieldId: FieldId | ExtendedFieldId,\n value: FieldContent,\n verificationService: VerificationService,\n) => {\n const { fieldValidationErrors } = verificationService;\n const nextState = produce(fieldValidationErrors, (draft) => {\n if (draft[fieldId]) {\n draft[fieldId] = validateFieldById(fieldId, value, verificationService.formValidationOptions);\n }\n });\n updateFieldValidationErrors(nextState, verificationService);\n};\n\nexport const shouldCollectAddressFields = (\n countryChoice: FormSelectChoice<Country, string>,\n countries: Country[],\n): boolean =>\n (getSafe(() => countries.length === 1) && getSafe(() => countries[0]) === \"US\") ||\n getSafe(() => countryChoice.value === \"US\") ||\n getSafe(() => countryChoice.value === undefined);\n\nexport const getStatusLabel = (intl: InjectedIntl, status: AllStatuses | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({\n id: status,\n defaultMessage: status,\n });\n};\n\nexport const getStatusOptions = (\n intl: InjectedIntl,\n statuses: AllStatuses[] | undefined,\n): FormSelectChoice[] => {\n if (!statuses) {\n return [];\n }\n return statuses.map((status) => ({\n value: status,\n label: getStatusLabel(intl, status),\n }));\n};\n\nexport const orgToOption = (org: Organization) => ({\n value: org.id,\n label: org.name,\n country: org.country,\n});\n\n/**\n * @private\n */\nexport const getFieldDisplayOrderFromRefs = (): FieldId[] | ExtendedFieldId[] => {\n const refs: FieldRef[] = getRefs();\n const fieldDisplayOrder: FieldId | ExtendedFieldId[] = [];\n\n refs.map((refObject: FieldRef) => fieldDisplayOrder.push(refObject.fieldId));\n\n return fieldDisplayOrder;\n};\n\n/**\n * HD-638 - focus on year, rather than month (which is an open <select> that covers error msg)\n */\nexport const adjustFirstErroredFieldId = (\n firstErroredFieldId: FieldId | ExtendedFieldId,\n): FieldId | ExtendedFieldId => {\n if (firstErroredFieldId === \"birthDate\" || firstErroredFieldId === \"birthDateDay\") {\n return \"birthDateYear\";\n }\n return firstErroredFieldId;\n};\n\n/**\n * @private\n */\nexport const getFirstErroredFieldId = (\n fieldDisplayOrder: FieldId[] | ExtendedFieldId[],\n fieldValidationErrors: FieldValidationErrors,\n): FieldId | ExtendedFieldId => {\n let firstErroredFieldId: FieldId | ExtendedFieldId;\n\n fieldDisplayOrder.reverse().forEach((field) => {\n if (fieldValidationErrors[field]) {\n firstErroredFieldId = field;\n }\n });\n\n return adjustFirstErroredFieldId(firstErroredFieldId);\n};\n\n/**\n * @private\n */\nexport const handleEmailOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const submitButtonRef: HTMLElement = getRefByFieldId(\"submitButton\");\n if (event.key === \"Enter\" && submitButtonRef) {\n submitButtonRef.click();\n }\n};\n\n/**\n * @deprecated Accessibility standards prevent setting focus without user keyboard interaction\n */\nexport const handleCountryOnKeyDown: InputSelectOnKeyDown = (\n event: React.KeyboardEvent<HTMLInputElement>,\n) => {\n if (event.key === \"Tab\" && !event.shiftKey) {\n event.preventDefault();\n setFocus(\"organization\");\n }\n};\n\n/**\n * @public\n */\nexport const submitForm = (\n viewModel: ViewModel,\n verificationService: VerificationService,\n step: VerificationStepsEnum,\n successCallback?: () => void,\n) => {\n const currentFieldValidationErrors = getFieldValidationErrors(\n viewModel,\n verificationService.formValidationOptions,\n );\n const isFormValid = !isFormErrored(currentFieldValidationErrors);\n\n if (isFormValid) {\n logger.info(`${step} submitting form`);\n verificationService.submitStep(step, viewModel, verificationService.verificationResponse);\n if (successCallback) {\n successCallback();\n }\n } else {\n const fieldDisplayOrder: FieldId[] | ExtendedFieldId[] = getFieldDisplayOrderFromRefs();\n const firstErroredFieldId: FieldId | ExtendedFieldId = getFirstErroredFieldId(\n fieldDisplayOrder,\n currentFieldValidationErrors,\n );\n recordGaEvent({\n eventName: EventName.INVALID_FORM_SUBMIT,\n params: {\n fieldValidationErrors: JSON.stringify(currentFieldValidationErrors),\n },\n });\n updateFieldValidationErrors(currentFieldValidationErrors, verificationService);\n setFocus(firstErroredFieldId);\n }\n};\n\n/**\n * @private\n */\nexport const getAvailableCountryChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<Country, string>[] => {\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n return availableCountries.map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }));\n};\n\n/**\n * @private\n */\nexport const getSortedIdCheckCountryChoices = (\n countries: Country[],\n intl: InjectedIntl,\n locale?: Locale,\n): FormSelectChoice<Country, string>[] => {\n const localeAwareSorter = (a, b) => Intl.Collator(locale).compare(a.label, b.label);\n return countries\n .map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }))\n .sort(localeAwareSorter);\n};\n\nexport const getAvailableStateChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<State, string>[] => {\n const availableStates: State[] = getConfiguredStates(programTheme);\n return availableStates.map((stateCode) => ({\n value: stateCode,\n label: intl.formatHTMLMessage({\n id: `states.${stateCode}`,\n defaultMessage: stateCode,\n }),\n }));\n};\n\n/**\n * @deprecated Not used anywhere and performs a noop.\n */\nexport const produceDraftViewModelWithRequiredFields = <T extends ViewModel>(\n previousModel: T,\n newRequiredFields?: FieldDescription[],\n conditionalRequiredFieldKeys?: (keyof T)[],\n) => {\n logger.info(\n \"produceDraftViewModelWithRequiredFields received. This method is now deprecated and performs a noop, returning previousViewModel\",\n {\n previousModel,\n newRequiredFields,\n conditionalRequiredFieldKeys,\n },\n );\n\n return previousModel;\n};\n\nexport const produceDraftViewModelWithAllRequiredFields = <T extends ViewModel>(\n viewModel: T,\n newRequiredFields: FieldDescription[],\n) =>\n produce(viewModel, (draft: T) => {\n FIELD_IDS.forEach((requiredFieldKey) => {\n if (newRequiredFields.some((field) => field.key === requiredFieldKey)) {\n (draft[requiredFieldKey] as any) =\n viewModel[requiredFieldKey] !== undefined ? viewModel[requiredFieldKey] : \"\";\n } else {\n delete draft[requiredFieldKey];\n }\n });\n });\n\n/**\n * @private\n */\nexport const getDefaultCountryChoice = (\n countryChoices: FormSelectChoice<Country, string>[],\n): FormSelectChoice<Country, string> => {\n if (countryChoices.length > 0) {\n return countryChoices[0];\n }\n return { value: \"US\", label: \"United States\" };\n};\n\n/**\n * @private\n */\nexport const produceDraftViewModel = <T extends ViewModel>(\n previousModel: T,\n key: keyof T,\n value: any,\n) =>\n produce(previousModel, (draft: T) => {\n (draft[key] as any) = value;\n });\n\n/**\n * @private\n */\nexport const getRememberMeRedirectDestination = (\n locale: Locale,\n programId: string,\n verificationId: string,\n): string => {\n const supportBasePreviewUrl = \"https://support-preview.sheerid.net\";\n const supportBaseProdUrl = \"https://support.sheerid.com\";\n let baseUrl = supportBaseProdUrl;\n const { host } = new URL(window.location.href);\n\n if (host.includes(\"preview\") || host.includes(\"localhost\")) {\n baseUrl = supportBasePreviewUrl;\n }\n\n return `${baseUrl}/${locale}/${programId}/${verificationId}/remember-me/`;\n};\n\nexport const getFieldConfigByFieldId = (\n fieldId: PersonalInfoFieldId,\n options: Options = getOptions(),\n) => {\n const fieldConfig = options.formFieldConfig;\n return fieldConfig.find((option) => option.fieldId === fieldId);\n};\n"],"mappings":";;;;;;;AAQA,IAAa,KAAY,MAAuC;CAC9D,IAAM,IAAW,EAAgB,CAAO;CAExC,IAAI,GACF,IAAI;EACF,EAAS,MAAM;CACjB,QAAY;EACV,EAAO,MACL,YAAY,EAAS,+EACrB,WACF;CACF;MAEA,EAAO,MACL,sBAAsB,EAAQ,oEAC9B,WACF;AAEJ;;;ACpBA,SAAgB,EAAW,GAAa,GAA+B;CACrE,IAAI;EACF,OAAO,EAAG;CACZ,QAAY;EACV,OAAO;CACT;AACF;;;ACkCA,IAAa,KACX,GACA,MACG;CACH,IAAM,IAAY,EAAoB,WAChC,IAAY,EAAQ,IAAY,MAAU;EAW9C,AAVA,EAAM,eAAe,IACjB;GACE,IAAI,EAAa;GACjB,YAAY,EAAa;GACzB,MAAM,EAAa;GACnB,MAAM,EAAa;GACn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KAA9B,EAAU,KAExD,OAAO,EAAM;CAEjB,CAAC;AACH,CAAC,GAKU,KACX,MAEI,EAAe,SAAS,IACnB,EAAe,KAEjB;CAAE,OAAO;CAAM,OAAO;AAAgB,GAMlC,KACX,GACA,GACA,MAEA,EAAQ,IAAgB,MAAa;CACnC,EAAO,KAAe;AACxB,CAAC,GAKU,KACX,GACA,GACA,MACW;CACX,IAEI,IAAU,+BACR,EAAE,YAAS,IAAI,IAAI,OAAO,SAAS,IAAI;CAM7C,QAJI,EAAK,SAAS,SAAS,KAAK,EAAK,SAAS,WAAW,OACvD,IAAU,wCAGL,GAAG,EAAQ,GAAG,EAAO,GAAG,EAAU,GAAG,EAAe;AAC7D,GAEa,KACX,GACA,IAAmB,EAAW,MAEV,EAAQ,gBACT,MAAM,MAAW,EAAO,YAAY,CAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepComponentHelpers-CcEMtmwt.js","names":[],"sources":["../../src/lib/utils/browser/inputHelpers.ts","../../src/lib/utils/getSafe.ts","../../src/lib/utils/stepComponentHelpers/stepComponentHelpers.ts"],"sourcesContent":["import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type ExtendedFieldId, type FieldId } from \"../../types/types\";\nimport { getRefByFieldId } from \"../../refs/refs\";\n\n/**\n * @private\n */\nexport const setFocus = (fieldId: FieldId | ExtendedFieldId) => {\n const fieldRef = getRefByFieldId(fieldId);\n\n if (fieldRef) {\n try {\n fieldRef.focus();\n } catch (e) {\n logger.error(\n `The ref '${fieldRef}' could not be focused. Is the ref an HTMLInputElement or HTMLButtonElement?`,\n \"ref error\",\n );\n }\n } else {\n logger.error(\n `A ref for fieldId '${fieldId}' could not be found. Has the ref been registered using setRef()?`,\n \"ref error\",\n );\n }\n};\n","/**\n * Avoid \"can't access property of undefined\" errors in a more readable way.\n * @param fn Function that wraps a nested property access\n * @param defaultVal Optional - the value to return if property access failed\n */\n\nexport function getSafe<T>(fn: () => T, defaultVal?: T): T | undefined {\n try {\n return fn();\n } catch (e) {\n return defaultVal;\n }\n}\n","import { produce } from \"immer\";\nimport { type InjectedIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { EventName, recordGaEvent } from \"@/lib/GoogleAnalytics/ga\";\n\nimport {\n type FieldId,\n type FieldValidationErrors,\n type Organization,\n type VerificationService,\n type FieldContent,\n type FieldRef,\n type ExtendedFieldId,\n type WithOrganization,\n type InputSelectOnKeyDown,\n type FormSelectChoice,\n type Country,\n type ProgramTheme,\n type Locale,\n type ViewModel,\n type State,\n type FieldDescription,\n type AllStatuses,\n type PersonalInfoFieldId,\n type Options,\n} from \"../../types/types\";\nimport { type VerificationStepsEnum } from \"../../types/runtimeTypes\";\nimport { blankOrganization } from \"../../types/empties\";\nimport {\n validateFieldById,\n getFieldValidationErrors,\n isFormErrored,\n} from \"../../validators/validators\";\nimport { setFocus } from \"../browser/inputHelpers\";\nimport { getRefByFieldId, getRefs } from \"../../refs/refs\";\nimport { getSafe } from \"../getSafe\";\nimport {\n getConfiguredCountries,\n getConfiguredStates,\n} from \"../../ProgramTheme/programThemeGetters\";\nimport { getQueryParamsFromUrl } from \"../routing/Url\";\nimport { FIELD_IDS } from \"../../../constants\";\nimport { getOptions } from \"../../../options/options\";\n\nexport const updateViewModelOrganization = (\n organization: Organization,\n verificationService: VerificationService,\n) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const nextState = produce(viewModel, (draft) => {\n draft.organization = organization\n ? {\n id: organization.id,\n idExtended: organization.idExtended,\n name: organization.name,\n city: organization.city,\n state: organization.state,\n source: organization.source,\n }\n : blankOrganization.organization;\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n });\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const populateViewModelFromQueryParams = (verificationService: VerificationService) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const queryParams = getQueryParamsFromUrl();\n\n const nextState = produce(viewModel, (draft) => {\n Object.keys(viewModel).forEach((key) => {\n if (queryParams.has(key)) {\n draft[key] = queryParams.get(key);\n }\n });\n });\n\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const updateFieldValidationErrors = (\n fieldValidationErrors: FieldValidationErrors,\n verificationService: VerificationService,\n) => {\n verificationService.updateFieldValidationErrors(fieldValidationErrors);\n};\n\nexport const updateFieldValidationErrorsByFieldId = (\n fieldId: FieldId | ExtendedFieldId,\n value: FieldContent,\n verificationService: VerificationService,\n) => {\n const { fieldValidationErrors } = verificationService;\n const nextState = produce(fieldValidationErrors, (draft) => {\n if (draft[fieldId]) {\n draft[fieldId] = validateFieldById(fieldId, value, verificationService.formValidationOptions);\n }\n });\n updateFieldValidationErrors(nextState, verificationService);\n};\n\nexport const shouldCollectAddressFields = (\n countryChoice: FormSelectChoice<Country, string>,\n countries: Country[],\n): boolean =>\n (getSafe(() => countries.length === 1) && getSafe(() => countries[0]) === \"US\") ||\n getSafe(() => countryChoice.value === \"US\") ||\n getSafe(() => countryChoice.value === undefined);\n\nexport const getStatusLabel = (intl: InjectedIntl, status: AllStatuses | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({\n id: status,\n defaultMessage: status,\n });\n};\n\nexport const getStatusOptions = (\n intl: InjectedIntl,\n statuses: AllStatuses[] | undefined,\n): FormSelectChoice[] => {\n if (!statuses) {\n return [];\n }\n return statuses.map((status) => ({\n value: status,\n label: getStatusLabel(intl, status),\n }));\n};\n\nexport const orgToOption = (org: Organization) => ({\n value: org.id,\n label: org.name,\n country: org.country,\n});\n\n/**\n * @private\n */\nexport const getFieldDisplayOrderFromRefs = (): FieldId[] | ExtendedFieldId[] => {\n const refs: FieldRef[] = getRefs();\n const fieldDisplayOrder: FieldId | ExtendedFieldId[] = [];\n\n refs.map((refObject: FieldRef) => fieldDisplayOrder.push(refObject.fieldId));\n\n return fieldDisplayOrder;\n};\n\n/**\n * HD-638 - focus on year, rather than month (which is an open <select> that covers error msg)\n */\nexport const adjustFirstErroredFieldId = (\n firstErroredFieldId: FieldId | ExtendedFieldId,\n): FieldId | ExtendedFieldId => {\n if (firstErroredFieldId === \"birthDate\" || firstErroredFieldId === \"birthDateDay\") {\n return \"birthDateYear\";\n }\n return firstErroredFieldId;\n};\n\n/**\n * @private\n */\nexport const getFirstErroredFieldId = (\n fieldDisplayOrder: FieldId[] | ExtendedFieldId[],\n fieldValidationErrors: FieldValidationErrors,\n): FieldId | ExtendedFieldId => {\n let firstErroredFieldId: FieldId | ExtendedFieldId;\n\n fieldDisplayOrder.reverse().forEach((field) => {\n if (fieldValidationErrors[field]) {\n firstErroredFieldId = field;\n }\n });\n\n return adjustFirstErroredFieldId(firstErroredFieldId);\n};\n\n/**\n * @private\n */\nexport const handleEmailOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const submitButtonRef: HTMLElement = getRefByFieldId(\"submitButton\");\n if (event.key === \"Enter\" && submitButtonRef) {\n submitButtonRef.click();\n }\n};\n\n/**\n * @deprecated Accessibility standards prevent setting focus without user keyboard interaction\n */\nexport const handleCountryOnKeyDown: InputSelectOnKeyDown = (\n event: React.KeyboardEvent<HTMLInputElement>,\n) => {\n if (event.key === \"Tab\" && !event.shiftKey) {\n event.preventDefault();\n setFocus(\"organization\");\n }\n};\n\n/**\n * @public\n */\nexport const submitForm = (\n viewModel: ViewModel,\n verificationService: VerificationService,\n step: VerificationStepsEnum,\n successCallback?: () => void,\n) => {\n const currentFieldValidationErrors = getFieldValidationErrors(\n viewModel,\n verificationService.formValidationOptions,\n );\n const isFormValid = !isFormErrored(currentFieldValidationErrors);\n\n if (isFormValid) {\n logger.info(`${step} submitting form`);\n verificationService.submitStep(step, viewModel, verificationService.verificationResponse);\n if (successCallback) {\n successCallback();\n }\n } else {\n const fieldDisplayOrder: FieldId[] | ExtendedFieldId[] = getFieldDisplayOrderFromRefs();\n const firstErroredFieldId: FieldId | ExtendedFieldId = getFirstErroredFieldId(\n fieldDisplayOrder,\n currentFieldValidationErrors,\n );\n recordGaEvent({\n eventName: EventName.INVALID_FORM_SUBMIT,\n params: {\n fieldValidationErrors: JSON.stringify(currentFieldValidationErrors),\n },\n });\n updateFieldValidationErrors(currentFieldValidationErrors, verificationService);\n setFocus(firstErroredFieldId);\n }\n};\n\n/**\n * @private\n */\nexport const getAvailableCountryChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<Country, string>[] => {\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n return availableCountries.map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }));\n};\n\n/**\n * @private\n */\nexport const getSortedIdCheckCountryChoices = (\n countries: Country[],\n intl: InjectedIntl,\n locale?: Locale,\n): FormSelectChoice<Country, string>[] => {\n const localeAwareSorter = (a, b) => Intl.Collator(locale).compare(a.label, b.label);\n return countries\n .map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }))\n .sort(localeAwareSorter);\n};\n\nexport const getAvailableStateChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<State, string>[] => {\n const availableStates: State[] = getConfiguredStates(programTheme);\n return availableStates.map((stateCode) => ({\n value: stateCode,\n label: intl.formatHTMLMessage({\n id: `states.${stateCode}`,\n defaultMessage: stateCode,\n }),\n }));\n};\n\n/**\n * @deprecated Not used anywhere and performs a noop.\n */\nexport const produceDraftViewModelWithRequiredFields = <T extends ViewModel>(\n previousModel: T,\n newRequiredFields?: FieldDescription[],\n conditionalRequiredFieldKeys?: (keyof T)[],\n) => {\n logger.info(\n \"produceDraftViewModelWithRequiredFields received. This method is now deprecated and performs a noop, returning previousViewModel\",\n {\n previousModel,\n newRequiredFields,\n conditionalRequiredFieldKeys,\n },\n );\n\n return previousModel;\n};\n\nexport const produceDraftViewModelWithAllRequiredFields = <T extends ViewModel>(\n viewModel: T,\n newRequiredFields: FieldDescription[],\n) =>\n produce(viewModel, (draft: T) => {\n FIELD_IDS.forEach((requiredFieldKey) => {\n if (newRequiredFields.some((field) => field.key === requiredFieldKey)) {\n (draft[requiredFieldKey] as any) =\n viewModel[requiredFieldKey] !== undefined ? viewModel[requiredFieldKey] : \"\";\n } else {\n delete draft[requiredFieldKey];\n }\n });\n });\n\n/**\n * @private\n */\nexport const getDefaultCountryChoice = (\n countryChoices: FormSelectChoice<Country, string>[],\n): FormSelectChoice<Country, string> => {\n if (countryChoices.length > 0) {\n return countryChoices[0];\n }\n return { value: \"US\", label: \"United States\" };\n};\n\n/**\n * @private\n */\nexport const produceDraftViewModel = <T extends ViewModel>(\n previousModel: T,\n key: keyof T,\n value: any,\n) =>\n produce(previousModel, (draft: T) => {\n (draft[key] as any) = value;\n });\n\n/**\n * @private\n */\nexport const getRememberMeRedirectDestination = (\n locale: Locale,\n programId: string,\n verificationId: string,\n): string => {\n const supportBasePreviewUrl = \"https://support-preview.sheerid.net\";\n const supportBaseProdUrl = \"https://support.sheerid.com\";\n let baseUrl = supportBaseProdUrl;\n const { host } = new URL(window.location.href);\n\n if (host.includes(\"preview\") || host.includes(\"localhost\")) {\n baseUrl = supportBasePreviewUrl;\n }\n\n return `${baseUrl}/${locale}/${programId}/${verificationId}/remember-me/`;\n};\n\nexport const getFieldConfigByFieldId = (\n fieldId: PersonalInfoFieldId,\n options: Options = getOptions(),\n) => {\n const fieldConfig = options.formFieldConfig;\n return fieldConfig.find((option) => option.fieldId === fieldId);\n};\n"],"mappings":";;;;;;;AAQA,IAAa,KAAY,MAAuC;CAC9D,IAAM,IAAW,EAAgB,CAAO;CAExC,IAAI,GACF,IAAI;EACF,EAAS,MAAM;CACjB,QAAY;EACV,EAAO,MACL,YAAY,EAAS,+EACrB,WACF;CACF;MAEA,EAAO,MACL,sBAAsB,EAAQ,oEAC9B,WACF;AAEJ;;;ACpBA,SAAgB,EAAW,GAAa,GAA+B;CACrE,IAAI;EACF,OA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