@sheerid/jslib 2.279.0 → 2.280.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 +808 -808
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-BXt3LO3L.js → AddressComponent-Dt6V7nTl.js} +8 -8
- package/chunk/{AddressComponent-BXt3LO3L.js.map → AddressComponent-Dt6V7nTl.js.map} +1 -1
- package/chunk/{AddressComponent-lF-v0RZf.js → AddressComponent-jYt6u6Og.js} +8 -8
- package/chunk/{AddressComponent-lF-v0RZf.js.map → AddressComponent-jYt6u6Og.js.map} +1 -1
- package/chunk/{AnnouncingHeader-YPjBYzsZ.js → AnnouncingHeader-DXfeQFzD.js} +6 -6
- package/chunk/{AnnouncingHeader-CCVSQeQR.js.map → AnnouncingHeader-DXfeQFzD.js.map} +1 -1
- package/chunk/{AnnouncingHeader-CCVSQeQR.js → AnnouncingHeader-DgKb4Oci.js} +6 -6
- package/chunk/{AnnouncingHeader-YPjBYzsZ.js.map → AnnouncingHeader-DgKb4Oci.js.map} +1 -1
- package/chunk/{ApiUrls-K7CaWewT.js → ApiUrls-DU5mINxc.js} +13 -13
- package/chunk/{ApiUrls-K7CaWewT.js.map → ApiUrls-DU5mINxc.js.map} +1 -1
- package/chunk/{ApiUrls-CKbVuRAx.js → ApiUrls-iC5Epdhr.js} +13 -13
- package/chunk/{ApiUrls-CKbVuRAx.js.map → ApiUrls-iC5Epdhr.js.map} +1 -1
- package/chunk/{BirthDateComponent-CD4M-BN9.js → BirthDateComponent-C31Jxnf9.js} +8 -8
- package/chunk/{BirthDateComponent-CD4M-BN9.js.map → BirthDateComponent-C31Jxnf9.js.map} +1 -1
- package/chunk/{BirthDateComponent-D3HhW2Lq.js → BirthDateComponent-J3GXZush.js} +8 -8
- package/chunk/{BirthDateComponent-D3HhW2Lq.js.map → BirthDateComponent-J3GXZush.js.map} +1 -1
- package/chunk/{CaptchaComponent-_azicSSq.js → CaptchaComponent-BrH791mU.js} +136 -136
- package/chunk/{CaptchaComponent-DlgV116k.js.map → CaptchaComponent-BrH791mU.js.map} +1 -1
- package/chunk/{CaptchaComponent-DlgV116k.js → CaptchaComponent-D3gR_wiv.js} +123 -123
- package/chunk/{CaptchaComponent-_azicSSq.js.map → CaptchaComponent-D3gR_wiv.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DaswLDgf.js → ChangeLocaleComponent-4lrBj9C8.js} +9 -9
- package/chunk/{ChangeLocaleComponent-DaswLDgf.js.map → ChangeLocaleComponent-4lrBj9C8.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-oYqC5rPO.js → ChangeLocaleComponent-mFvHcArW.js} +9 -9
- package/chunk/{ChangeLocaleComponent-oYqC5rPO.js.map → ChangeLocaleComponent-mFvHcArW.js.map} +1 -1
- package/chunk/{City-DT_jbaQV.js → City-4Y-JSMns.js} +8 -8
- package/chunk/{City-Ca92IEBF.js.map → City-4Y-JSMns.js.map} +1 -1
- package/chunk/{City-Ca92IEBF.js → City-C9ODgW6J.js} +8 -8
- package/chunk/{City-DT_jbaQV.js.map → City-C9ODgW6J.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BPwD0IZd.js → CollegeNameComponent-Bx67cbxR.js} +9 -9
- package/chunk/{CollegeNameComponent-BPwD0IZd.js.map → CollegeNameComponent-Bx67cbxR.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CPHVzAfn.js → CollegeNameComponent-DERbwtnk.js} +9 -9
- package/chunk/{CollegeNameComponent-CPHVzAfn.js.map → CollegeNameComponent-DERbwtnk.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-DGi3bxV2.js → CopyToClipboardComponent-B1sjjnah.js} +9 -9
- package/chunk/{CopyToClipboardComponent-DGi3bxV2.js.map → CopyToClipboardComponent-B1sjjnah.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-cLuyXFes.js → CopyToClipboardComponent-kC3bs3Rs.js} +9 -9
- package/chunk/{CopyToClipboardComponent-cLuyXFes.js.map → CopyToClipboardComponent-kC3bs3Rs.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-DziHrBMX.js → CountryComponentWrapper-CR9HrOiD.js} +12 -12
- package/chunk/{CountryComponentWrapper-BfX4aqM2.js.map → CountryComponentWrapper-CR9HrOiD.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BfX4aqM2.js → CountryComponentWrapper-Dp_Lw4Jz.js} +12 -12
- package/chunk/{CountryComponentWrapper-DziHrBMX.js.map → CountryComponentWrapper-Dp_Lw4Jz.js.map} +1 -1
- package/chunk/{DischargeDateComponent-BrNcDHcj.js → DischargeDateComponent-CVzCNByg.js} +18 -18
- package/chunk/{DischargeDateComponent-BrNcDHcj.js.map → DischargeDateComponent-CVzCNByg.js.map} +1 -1
- package/chunk/{DischargeDateComponent-Caq0MbSz.js → DischargeDateComponent-CwuBWpWv.js} +15 -15
- package/chunk/{DischargeDateComponent-Caq0MbSz.js.map → DischargeDateComponent-CwuBWpWv.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-BeJbl-IS.js → DriverLicenseNumberComponent-Bc6KjLgw.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-BeJbl-IS.js.map → DriverLicenseNumberComponent-Bc6KjLgw.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DqHVF2Mw.js → DriverLicenseNumberComponent-Dc0IOI_1.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-DqHVF2Mw.js.map → DriverLicenseNumberComponent-Dc0IOI_1.js.map} +1 -1
- package/chunk/{EmailLoopPending-i9SDmULt.js → EmailLoopPending-CgRp0qIE.js} +22 -22
- package/chunk/{EmailLoopPending-Dc_6ANLw.js.map → EmailLoopPending-CgRp0qIE.js.map} +1 -1
- package/chunk/{EmailLoopPending-Dc_6ANLw.js → EmailLoopPending-k272doKR.js} +20 -20
- package/chunk/{EmailLoopPending-i9SDmULt.js.map → EmailLoopPending-k272doKR.js.map} +1 -1
- package/chunk/{ExtraMessage-owvdVH7U.js → ExtraMessage-BqOf0zRz.js} +7 -7
- package/chunk/{ExtraMessage-BCHypT6I.js.map → ExtraMessage-BqOf0zRz.js.map} +1 -1
- package/chunk/{ExtraMessage-BCHypT6I.js → ExtraMessage-DNaGfjEE.js} +7 -7
- package/chunk/{ExtraMessage-owvdVH7U.js.map → ExtraMessage-DNaGfjEE.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Cq8brgQb.js → FirstResponderOrganizationComponent-C4O8PWXy.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-Cq8brgQb.js.map → FirstResponderOrganizationComponent-C4O8PWXy.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-zm8038ks.js → FirstResponderOrganizationComponent-CmNIF2iC.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-zm8038ks.js.map → FirstResponderOrganizationComponent-CmNIF2iC.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-CTkrJXtl.js → FormFieldInputSelect-BaYOGEm0.js} +7 -7
- package/chunk/{FormFieldInputSelect-B56HjXNt.js.map → FormFieldInputSelect-BaYOGEm0.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-B56HjXNt.js → FormFieldInputSelect-DDcenZW0.js} +7 -7
- package/chunk/{FormFieldInputSelect-CTkrJXtl.js.map → FormFieldInputSelect-DDcenZW0.js.map} +1 -1
- package/chunk/{FormFieldLayout-C4SCdGBC.js → FormFieldLayout-B0rAKucV.js} +6 -6
- package/chunk/{FormFieldLayout-C4SCdGBC.js.map → FormFieldLayout-B0rAKucV.js.map} +1 -1
- package/chunk/{FormFieldLayout-Cj_v9kYa.js → FormFieldLayout-CRoiILDA.js} +6 -6
- package/chunk/{FormFieldLayout-Cj_v9kYa.js.map → FormFieldLayout-CRoiILDA.js.map} +1 -1
- package/chunk/{FormFieldText-BbdrtNh_.js → FormFieldText-4HZU3C1Z.js} +7 -7
- package/chunk/{FormFieldText-BbdrtNh_.js.map → FormFieldText-4HZU3C1Z.js.map} +1 -1
- package/chunk/{FormFieldText-Gf13Luq7.js → FormFieldText-hOha2vTr.js} +7 -7
- package/chunk/{FormFieldText-Gf13Luq7.js.map → FormFieldText-hOha2vTr.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DV-Vbq4P.js → FormFieldTypeahead-BCZ6Nsns.js} +115 -115
- package/chunk/{FormFieldTypeahead-DV-Vbq4P.js.map → FormFieldTypeahead-BCZ6Nsns.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-rknI__Ge.js → FormFieldTypeahead-Cv1WXfhF.js} +118 -118
- package/chunk/{FormFieldTypeahead-rknI__Ge.js.map → FormFieldTypeahead-Cv1WXfhF.js.map} +1 -1
- package/chunk/{FormFooterComponent-CKDwnyg2.js → FormFooterComponent-D9mEMiRZ.js} +494 -498
- package/chunk/FormFooterComponent-D9mEMiRZ.js.map +1 -0
- package/chunk/{FormFooterComponent-DEFTsR2L.js → FormFooterComponent-oaSe-Xzj.js} +459 -463
- package/chunk/FormFooterComponent-oaSe-Xzj.js.map +1 -0
- package/chunk/{FormSelectChoice-CNxt_oMb.js → FormSelectChoice-C8zbGNXM.js} +16 -16
- package/chunk/{FormSelectChoice-BLwNcyNA.js.map → FormSelectChoice-C8zbGNXM.js.map} +1 -1
- package/chunk/{FormSelectChoice-BLwNcyNA.js → FormSelectChoice-DhgV7HJV.js} +16 -16
- package/chunk/{FormSelectChoice-CNxt_oMb.js.map → FormSelectChoice-DhgV7HJV.js.map} +1 -1
- package/chunk/{InputText-BXPuBlPq.js → InputText-BZv5j2AC.js} +7 -7
- package/chunk/{InputText-BXPuBlPq.js.map → InputText-BZv5j2AC.js.map} +1 -1
- package/chunk/{InputText-h_myNeHr.js → InputText-CeC4vzEI.js} +7 -7
- package/chunk/{InputText-h_myNeHr.js.map → InputText-CeC4vzEI.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BbKzyFwo.js → LicensedProfessionalOrganizationComponent-BXcQ9OAk.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-BbKzyFwo.js.map → LicensedProfessionalOrganizationComponent-BXcQ9OAk.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-MO7F0SpQ.js → LicensedProfessionalOrganizationComponent-BY-_49Un.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-MO7F0SpQ.js.map → LicensedProfessionalOrganizationComponent-BY-_49Un.js.map} +1 -1
- package/chunk/{LogoComponent-Do8K5ydz.js → LogoComponent-DIcMbBgg.js} +6 -6
- package/chunk/{LogoComponent-Do8K5ydz.js.map → LogoComponent-DIcMbBgg.js.map} +1 -1
- package/chunk/{LogoComponent-Dx1G-rzE.js → LogoComponent-U1dLeCEh.js} +6 -6
- package/chunk/{LogoComponent-Dx1G-rzE.js.map → LogoComponent-U1dLeCEh.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-eipgmum9.js → LowIncomeOrganizationComponent-BRvt-ulP.js} +17 -17
- package/chunk/{LowIncomeOrganizationComponent-DjlrreR8.js.map → LowIncomeOrganizationComponent-BRvt-ulP.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DjlrreR8.js → LowIncomeOrganizationComponent-DGK9gkyA.js} +17 -17
- package/chunk/{LowIncomeOrganizationComponent-eipgmum9.js.map → LowIncomeOrganizationComponent-DGK9gkyA.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-BCYOuT46.js → MedicalProfessionalOrganizationComponent-CTJ3FmrY.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-BTlqVGFC.js.map → MedicalProfessionalOrganizationComponent-CTJ3FmrY.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-BTlqVGFC.js → MedicalProfessionalOrganizationComponent-DH5zW7H6.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-BCYOuT46.js.map → MedicalProfessionalOrganizationComponent-DH5zW7H6.js.map} +1 -1
- package/chunk/{MemberIdComponent-BRu3zJYi.js → MemberIdComponent-BAFAN1PO.js} +8 -8
- package/chunk/{MemberIdComponent-BRu3zJYi.js.map → MemberIdComponent-BAFAN1PO.js.map} +1 -1
- package/chunk/{MemberIdComponent-DDoGHydu.js → MemberIdComponent-DFE0KKa8.js} +8 -8
- package/chunk/{MemberIdComponent-DDoGHydu.js.map → MemberIdComponent-DFE0KKa8.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CPvwsgGQ.js → MembershipOrganizationComponent-Bqfrzd_X.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-CPvwsgGQ.js.map → MembershipOrganizationComponent-Bqfrzd_X.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-E2KnhazB.js → MembershipOrganizationComponent-CmgEVqRQ.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-E2KnhazB.js.map → MembershipOrganizationComponent-CmgEVqRQ.js.map} +1 -1
- package/chunk/{Message-C8RQk5lc.js → Message-8LvAVwXZ.js} +2001 -2001
- package/chunk/{Message-C8RQk5lc.js.map → Message-8LvAVwXZ.js.map} +1 -1
- package/chunk/{Message-Sbek6JOj.js → Message-C8ZwB4H_.js} +533 -533
- package/chunk/{Message-Sbek6JOj.js.map → Message-C8ZwB4H_.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-DGdDk2n_.js → PersonalInfoStepSubmitButton-CaE4yvTG.js} +18 -18
- package/chunk/{PersonalInfoStepSubmitButton-DGdDk2n_.js.map → PersonalInfoStepSubmitButton-CaE4yvTG.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-ksVF3h1P.js → PersonalInfoStepSubmitButton-huS5DiV5.js} +18 -18
- package/chunk/{PersonalInfoStepSubmitButton-ksVF3h1P.js.map → PersonalInfoStepSubmitButton-huS5DiV5.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-BUOcq-Sb.js → PersonalInfoStepWrapper-CoL68lv9.js} +20 -20
- package/chunk/{PersonalInfoStepWrapper-BUOcq-Sb.js.map → PersonalInfoStepWrapper-CoL68lv9.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-bFDtj-hV.js → PersonalInfoStepWrapper-D6RA9ErC.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-bFDtj-hV.js.map → PersonalInfoStepWrapper-D6RA9ErC.js.map} +1 -1
- package/chunk/{PostalCodeComponent-C6gU75E3.js → PostalCodeComponent-BJJkLSwH.js} +8 -8
- package/chunk/{PostalCodeComponent-C6gU75E3.js.map → PostalCodeComponent-BJJkLSwH.js.map} +1 -1
- package/chunk/{PostalCodeComponent-DShP_eiB.js → PostalCodeComponent-gktdA05J.js} +8 -8
- package/chunk/{PostalCodeComponent-DShP_eiB.js.map → PostalCodeComponent-gktdA05J.js.map} +1 -1
- package/chunk/{SSN-X45bqqG5.js → SSN-D32o5tdz.js} +9 -9
- package/chunk/{SSN-BF8VH8xi.js.map → SSN-D32o5tdz.js.map} +1 -1
- package/chunk/{SSN-BF8VH8xi.js → SSN-RI7wGUeN.js} +9 -9
- package/chunk/{SSN-X45bqqG5.js.map → SSN-RI7wGUeN.js.map} +1 -1
- package/chunk/{StateSelectComponent-DEsJPcGo.js → StateSelectComponent-CUkPmdgD.js} +7 -7
- package/chunk/{StateSelectComponent-DEsJPcGo.js.map → StateSelectComponent-CUkPmdgD.js.map} +1 -1
- package/chunk/{StateSelectComponent-MEcusWyr.js → StateSelectComponent-IqnD_yvb.js} +7 -7
- package/chunk/{StateSelectComponent-MEcusWyr.js.map → StateSelectComponent-IqnD_yvb.js.map} +1 -1
- package/chunk/{StatusComponent-DP2VlynN.js → StatusComponent-B9rfe8oP.js} +8 -8
- package/chunk/{StatusComponent-BlVRLPOR.js.map → StatusComponent-B9rfe8oP.js.map} +1 -1
- package/chunk/{StatusComponent-BlVRLPOR.js → StatusComponent-Domycxys.js} +8 -8
- package/chunk/{StatusComponent-DP2VlynN.js.map → StatusComponent-Domycxys.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BfVe24h1.js → StepAgePersonalInfo-CkvJUnK6.js} +58 -58
- package/chunk/{StepAgePersonalInfo-BfVe24h1.js.map → StepAgePersonalInfo-CkvJUnK6.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BsftVg7L.js → StepAgePersonalInfo-DYee4Bdk.js} +58 -58
- package/chunk/{StepAgePersonalInfo-BsftVg7L.js.map → StepAgePersonalInfo-DYee4Bdk.js.map} +1 -1
- package/chunk/{StepCard-CWT2BiAH.js → StepCard-BgkQO1Vv.js} +5 -5
- package/chunk/{StepCard-B0o7IN6g.js.map → StepCard-BgkQO1Vv.js.map} +1 -1
- package/chunk/{StepCard-B0o7IN6g.js → StepCard-CdjikmfN.js} +5 -5
- package/chunk/{StepCard-CWT2BiAH.js.map → StepCard-CdjikmfN.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DWxYhtYJ.js → StepCollectIdentifier-CZPgIiri.js} +9 -9
- package/chunk/{StepCollectIdentifier-DWxYhtYJ.js.map → StepCollectIdentifier-CZPgIiri.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-BbSr7Z9A.js → StepCollectIdentifier-z7v0uFVo.js} +9 -9
- package/chunk/{StepCollectIdentifier-BbSr7Z9A.js.map → StepCollectIdentifier-z7v0uFVo.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-Bf8Y4oMV.js → StepCollectMilitaryPersonalInfoComponent-aLezCfcI.js} +24 -24
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-Bf8Y4oMV.js.map → StepCollectMilitaryPersonalInfoComponent-aLezCfcI.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CXBsaj89.js → StepCollectMilitaryPersonalInfoComponent-eHNUb4js.js} +24 -24
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CXBsaj89.js.map → StepCollectMilitaryPersonalInfoComponent-eHNUb4js.js.map} +1 -1
- package/chunk/StepCollectPersonalInfo-BH2TbclC.js +372 -0
- package/chunk/{StepCollectPersonalInfo-Dl1oW7u9.js.map → StepCollectPersonalInfo-BH2TbclC.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-CpZ03KDD.js → StepCollectPersonalInfo-mmn3gr1x.js} +53 -53
- package/chunk/{StepCollectPersonalInfo-CpZ03KDD.js.map → StepCollectPersonalInfo-mmn3gr1x.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-mYpzxp_K.js → StepCompleteAuthentication-aZqH2zX2.js} +21 -21
- package/chunk/{StepCompleteAuthentication-BZrnQ5_y.js.map → StepCompleteAuthentication-aZqH2zX2.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-BZrnQ5_y.js → StepCompleteAuthentication-wMkyc86t.js} +21 -21
- package/chunk/{StepCompleteAuthentication-mYpzxp_K.js.map → StepCompleteAuthentication-wMkyc86t.js.map} +1 -1
- package/chunk/{StepConsolation-CyFzsf7D.js → StepConsolation-DRnpaPIB.js} +9 -9
- package/chunk/{StepConsolation-B-89ZSSf.js.map → StepConsolation-DRnpaPIB.js.map} +1 -1
- package/chunk/{StepConsolation-B-89ZSSf.js → StepConsolation-Dv1D8Kkg.js} +9 -9
- package/chunk/{StepConsolation-CyFzsf7D.js.map → StepConsolation-Dv1D8Kkg.js.map} +1 -1
- package/chunk/{StepDocUpload-Da23Nac7.js → StepDocUpload-CyqOFprF.js} +219 -219
- package/chunk/{StepDocUpload-Da23Nac7.js.map → StepDocUpload-CyqOFprF.js.map} +1 -1
- package/chunk/{StepDocUpload-BhSHl2xg.js → StepDocUpload-DALptUyS.js} +507 -507
- package/chunk/{StepDocUpload-BhSHl2xg.js.map → StepDocUpload-DALptUyS.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DZREXMwQ.js → StepDriverLicensePersonalInfoComponent-BxHNa8Y6.js} +16 -16
- package/chunk/{StepDriverLicensePersonalInfoComponent-BzzPdAKT.js.map → StepDriverLicensePersonalInfoComponent-BxHNa8Y6.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BzzPdAKT.js → StepDriverLicensePersonalInfoComponent-vwgnq6DB.js} +16 -16
- package/chunk/{StepDriverLicensePersonalInfoComponent-DZREXMwQ.js.map → StepDriverLicensePersonalInfoComponent-vwgnq6DB.js.map} +1 -1
- package/chunk/{StepEmailLoop-DROpnxge.js → StepEmailLoop-BEIC15oF.js} +16 -16
- package/chunk/{StepEmailLoop-D84khZXV.js.map → StepEmailLoop-BEIC15oF.js.map} +1 -1
- package/chunk/{StepEmailLoop-D84khZXV.js → StepEmailLoop-CDFx1DYG.js} +16 -16
- package/chunk/{StepEmailLoop-DROpnxge.js.map → StepEmailLoop-CDFx1DYG.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-D7RPMyzC.js → StepEmploymentPersonalInfo-BdPNUH_U.js} +20 -20
- package/chunk/{StepEmploymentPersonalInfo-BGr1Yvq_.js.map → StepEmploymentPersonalInfo-BdPNUH_U.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BGr1Yvq_.js → StepEmploymentPersonalInfo-WW3m6eci.js} +20 -20
- package/chunk/{StepEmploymentPersonalInfo-D7RPMyzC.js.map → StepEmploymentPersonalInfo-WW3m6eci.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DQCaR_hD.js → StepFirstResponderPersonalInfo-CtkSlAqn.js} +30 -30
- package/chunk/{StepFirstResponderPersonalInfo-CjNdy_IK.js.map → StepFirstResponderPersonalInfo-CtkSlAqn.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CjNdy_IK.js → StepFirstResponderPersonalInfo-duACveZS.js} +26 -26
- package/chunk/{StepFirstResponderPersonalInfo-DQCaR_hD.js.map → StepFirstResponderPersonalInfo-duACveZS.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DRxMlfke.js → StepGeneralIdentityPersonalInfoComponent-BsZXHtwX.js} +19 -19
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BsDZlyGG.js.map → StepGeneralIdentityPersonalInfoComponent-BsZXHtwX.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BsDZlyGG.js → StepGeneralIdentityPersonalInfoComponent-D9svwHkN.js} +19 -19
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DRxMlfke.js.map → StepGeneralIdentityPersonalInfoComponent-D9svwHkN.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DmXgxIAw.js → StepHybridIdentityPersonalInfoComponent-BBXGkQ13.js} +20 -20
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BGVL9sDI.js.map → StepHybridIdentityPersonalInfoComponent-BBXGkQ13.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BGVL9sDI.js → StepHybridIdentityPersonalInfoComponent-ClebDHVj.js} +20 -20
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DmXgxIAw.js.map → StepHybridIdentityPersonalInfoComponent-ClebDHVj.js.map} +1 -1
- package/chunk/StepIDCheckLoop-B1ZBa2cL.js +24 -0
- package/chunk/{StepIDCheckLoop-DTIF9BCb.js.map → StepIDCheckLoop-B1ZBa2cL.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DTIF9BCb.js → StepIDCheckLoop-DYhoRoFm.js} +8 -8
- package/chunk/{StepIDCheckLoop-9dhIxbuJ.js.map → StepIDCheckLoop-DYhoRoFm.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DEwJWvD5.js → StepIDCheckLoopOnfido-XnkRtW2L.js} +44 -44
- package/chunk/{StepIDCheckLoopOnfido-BxY2wBPp.js.map → StepIDCheckLoopOnfido-XnkRtW2L.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BxY2wBPp.js → StepIDCheckLoopOnfido-aRk8hzdK.js} +43 -43
- package/chunk/{StepIDCheckLoopOnfido-DEwJWvD5.js.map → StepIDCheckLoopOnfido-aRk8hzdK.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-CnxabsF_.js → StepIDCheckLoopRegula-BljVwImZ.js} +22 -22
- package/chunk/{StepIDCheckLoopRegula-B6NsjTDL.js.map → StepIDCheckLoopRegula-BljVwImZ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B6NsjTDL.js → StepIDCheckLoopRegula-Cf7ASD1i.js} +22 -22
- package/chunk/{StepIDCheckLoopRegula-CnxabsF_.js.map → StepIDCheckLoopRegula-Cf7ASD1i.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-Bxh1PYd4.js → StepLicensedProfessionalPersonalInfo-D6n29Iss.js} +20 -20
- package/chunk/{StepLicensedProfessionalPersonalInfo-Bxh1PYd4.js.map → StepLicensedProfessionalPersonalInfo-D6n29Iss.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-avWn-HsU.js → StepLicensedProfessionalPersonalInfo-hXd4L7zJ.js} +20 -20
- package/chunk/{StepLicensedProfessionalPersonalInfo-avWn-HsU.js.map → StepLicensedProfessionalPersonalInfo-hXd4L7zJ.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-Du_sG7Xc.js → StepLowIncomePersonalInfo-B9rvMh5D.js} +32 -32
- package/chunk/{StepLowIncomePersonalInfo-Du_sG7Xc.js.map → StepLowIncomePersonalInfo-B9rvMh5D.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-qYLCAzKx.js → StepLowIncomePersonalInfo-Dt3q7Wto.js} +32 -32
- package/chunk/{StepLowIncomePersonalInfo-qYLCAzKx.js.map → StepLowIncomePersonalInfo-Dt3q7Wto.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-B9f28oQh.js → StepMedicalProfessionalPersonalInfo-Dj00ow88.js} +26 -26
- package/chunk/{StepMedicalProfessionalPersonalInfo-B9f28oQh.js.map → StepMedicalProfessionalPersonalInfo-Dj00ow88.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-C9owmZP4.js → StepMedicalProfessionalPersonalInfo-bFiCwH3X.js} +26 -26
- package/chunk/{StepMedicalProfessionalPersonalInfo-C9owmZP4.js.map → StepMedicalProfessionalPersonalInfo-bFiCwH3X.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-B3abjYzP.js → StepMemberPersonalInfo-D5G1Esfb.js} +58 -58
- package/chunk/{StepMemberPersonalInfo-B3abjYzP.js.map → StepMemberPersonalInfo-D5G1Esfb.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BjwgnTyJ.js → StepMemberPersonalInfo-DXQDbgye.js} +58 -58
- package/chunk/{StepMemberPersonalInfo-BjwgnTyJ.js.map → StepMemberPersonalInfo-DXQDbgye.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BuAttGuv.js → StepMoverPersonalInfo-BoV-SR2Q.js} +49 -49
- package/chunk/{StepMoverPersonalInfo-BuAttGuv.js.map → StepMoverPersonalInfo-BoV-SR2Q.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DHQ4lFop.js → StepMoverPersonalInfo-C4dW2U-w.js} +49 -49
- package/chunk/{StepMoverPersonalInfo-DHQ4lFop.js.map → StepMoverPersonalInfo-C4dW2U-w.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BECVh2YW.js → StepOverrideComponent-BLPmVFvp.js} +21 -21
- package/chunk/{StepOverrideComponent-BbflJqAn.js.map → StepOverrideComponent-BLPmVFvp.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BbflJqAn.js → StepOverrideComponent-jBI8dQE7.js} +21 -21
- package/chunk/{StepOverrideComponent-BECVh2YW.js.map → StepOverrideComponent-jBI8dQE7.js.map} +1 -1
- package/chunk/{StepSMSLoop-DaWjEr_v.js → StepSMSLoop-BN32oj1H.js} +20 -20
- package/chunk/{StepSMSLoop-DBLKaJge.js.map → StepSMSLoop-BN32oj1H.js.map} +1 -1
- package/chunk/{StepSMSLoop-DBLKaJge.js → StepSMSLoop-Cyus2TEa.js} +22 -22
- package/chunk/{StepSMSLoop-DaWjEr_v.js.map → StepSMSLoop-Cyus2TEa.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-O1UZ-5U6.js → StepSocialSecurityNumber-BlzVBYtJ.js} +31 -27
- package/chunk/{StepSocialSecurityNumber-O1UZ-5U6.js.map → StepSocialSecurityNumber-BlzVBYtJ.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-rJXiboT7.js → StepSocialSecurityNumber-DSnFbXs9.js} +16 -20
- package/chunk/{StepSocialSecurityNumber-rJXiboT7.js.map → StepSocialSecurityNumber-DSnFbXs9.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CDJ5MqYn.js → StepStudentPersonalInfo-03QpIWkq.js} +66 -66
- package/chunk/{StepStudentPersonalInfo-CDJ5MqYn.js.map → StepStudentPersonalInfo-03QpIWkq.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-tgT5jO54.js → StepStudentPersonalInfo-BxyMqSGg.js} +67 -67
- package/chunk/{StepStudentPersonalInfo-tgT5jO54.js.map → StepStudentPersonalInfo-BxyMqSGg.js.map} +1 -1
- package/chunk/{StepSuccess-CLv_-kPd.js → StepSuccess--jHHRqxE.js} +31 -31
- package/chunk/{StepSuccess-C1pgML90.js.map → StepSuccess--jHHRqxE.js.map} +1 -1
- package/chunk/{StepSuccess-C1pgML90.js → StepSuccess-CY2liqnE.js} +31 -31
- package/chunk/{StepSuccess-CLv_-kPd.js.map → StepSuccess-CY2liqnE.js.map} +1 -1
- package/chunk/StepTeacherPersonalInfo-C8Limyv9.js +150 -0
- package/chunk/{StepTeacherPersonalInfo-BndXbwZz.js.map → StepTeacherPersonalInfo-C8Limyv9.js.map} +1 -1
- package/chunk/StepTeacherPersonalInfo-CDiyDDoq.js +154 -0
- package/chunk/{StepTeacherPersonalInfo-DttiAJyO.js.map → StepTeacherPersonalInfo-CDiyDDoq.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-CnBfquOO.js → TeacherSchoolComponent-Bau63Qxf.js} +9 -9
- package/chunk/{TeacherSchoolComponent-CnBfquOO.js.map → TeacherSchoolComponent-Bau63Qxf.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-DOAXb1sf.js → TeacherSchoolComponent-DgOYDpYq.js} +9 -9
- package/chunk/{TeacherSchoolComponent-DOAXb1sf.js.map → TeacherSchoolComponent-DgOYDpYq.js.map} +1 -1
- package/chunk/TestingRouteOverrides-CVTgdIFf.js +77 -0
- package/chunk/{TestingRouteOverrides-CAGESMw9.js.map → TestingRouteOverrides-CVTgdIFf.js.map} +1 -1
- package/chunk/TestingRouteOverrides-CfhNQg5b.js +81 -0
- package/chunk/{TestingRouteOverrides-CrhfSmLr.js.map → TestingRouteOverrides-CfhNQg5b.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-Dh-2G5c3.js +4 -4
- package/chunk/bg-BbAhdJRh.js +4 -4
- package/chunk/bn-IN-Cx3Q5Utp.js +4 -4
- package/chunk/{countryUtils-AR9k3KRg.js → countryUtils-D3poSBsN.js} +5 -5
- package/chunk/{countryUtils-AR9k3KRg.js.map → countryUtils-D3poSBsN.js.map} +1 -1
- package/chunk/countryUtils-DhafHNJu.js +12 -0
- package/chunk/{countryUtils-DWqId-zY.js.map → countryUtils-DhafHNJu.js.map} +1 -1
- package/chunk/cs-CYGsmvju.js +4 -4
- package/chunk/da-COZWvvUD.js +4 -4
- package/chunk/de-BHclNQGr.js +4 -4
- package/chunk/{downshift.esm-GP9lYKvI.js → downshift.esm-CP7HkAFI.js} +7 -7
- package/chunk/{downshift.esm-CljItZH3.js.map → downshift.esm-CP7HkAFI.js.map} +1 -1
- package/chunk/{downshift.esm-CljItZH3.js → downshift.esm-DiHkspCQ.js} +7 -7
- package/chunk/{downshift.esm-GP9lYKvI.js.map → downshift.esm-DiHkspCQ.js.map} +1 -1
- package/chunk/el-Bv_XQ0FX.js +4 -4
- package/chunk/{empties-B6naRhes.js → empties-BAB8wNt9.js} +5 -5
- package/chunk/{empties-Crmkxudi.js.map → empties-BAB8wNt9.js.map} +1 -1
- package/chunk/{empties-Crmkxudi.js → empties-Tz4MgFii.js} +49 -49
- package/chunk/{empties-B6naRhes.js.map → empties-Tz4MgFii.js.map} +1 -1
- package/chunk/en-GB-CkENrh2I.js +4 -4
- package/chunk/es-BRKAFTKN.js +4 -4
- package/chunk/es-ES-BWfAbWbQ.js +4 -4
- package/chunk/et-CxMgVbW2.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BEC3aNBF.js +4 -4
- package/chunk/fi-BaP3FR15.js +4 -4
- package/chunk/fr-CA-CS4SuM-m.js +4 -4
- package/chunk/fr-DSU2B7p2.js +4 -4
- package/chunk/ga-DZEr9X_A.js +4 -4
- package/chunk/hi-IN-DvBVpWNQ.js +4 -4
- package/chunk/{hooks-ChQrxN58.js → hooks-C64fd9ZU.js} +80 -80
- package/chunk/{hooks-C15H5pD-.js.map → hooks-C64fd9ZU.js.map} +1 -1
- package/chunk/{hooks-C15H5pD-.js → hooks-DuYcWWea.js} +75 -75
- package/chunk/{hooks-ChQrxN58.js.map → hooks-DuYcWWea.js.map} +1 -1
- package/chunk/hr-CL1lHDbu.js +4 -4
- package/chunk/hu-Cf5Uq9R_.js +4 -4
- package/chunk/id-ay9yilKx.js +4 -4
- package/chunk/{intl-e5WHiYfA.js → intl-COP5OPN0.js} +322 -319
- package/chunk/intl-COP5OPN0.js.map +1 -0
- package/chunk/is-tpzRyIZi.js +4 -4
- package/chunk/it-C3-BupR4.js +4 -4
- package/chunk/iw-CBna3XPT.js +4 -4
- package/chunk/ja-DvXOkZRn.js +4 -4
- package/chunk/{jsx-runtime-LqzCS-0D.js → jsx-runtime-CCEfa_da.js} +18 -18
- package/chunk/{jsx-runtime-Ini3eO9_.js.map → jsx-runtime-CCEfa_da.js.map} +1 -1
- package/chunk/{jsx-runtime-Ini3eO9_.js → jsx-runtime-CeCA46f-.js} +18 -18
- package/chunk/{jsx-runtime-LqzCS-0D.js.map → jsx-runtime-CeCA46f-.js.map} +1 -1
- package/chunk/kk-DGXgY6Uw.js +4 -4
- package/chunk/ko-BlUGwGxN.js +4 -4
- package/chunk/lo-DT6wxwS1.js +4 -4
- package/chunk/lt-CT5-H4ci.js +4 -4
- package/chunk/lv-CBMD1XRp.js +4 -4
- package/chunk/{mocks-DGc1byho.js → mocks-CeB2B-__.js} +6 -6
- package/chunk/{mocks-DGc1byho.js.map → mocks-CeB2B-__.js.map} +1 -1
- package/chunk/{mocks-RU9BGNOn.js → mocks-R7IOaaBN.js} +9 -9
- package/chunk/{mocks-RU9BGNOn.js.map → mocks-R7IOaaBN.js.map} +1 -1
- package/chunk/ms-DuxNeOgk.js +4 -4
- package/chunk/nl-BE-D028qM7-.js +4 -4
- package/chunk/nl-DEuaat_s.js +4 -4
- package/chunk/no-CjeRjD1D.js +4 -4
- package/chunk/{options-pBCAJBwS.js → options-sWzacjlS.js} +309 -306
- package/chunk/{options-pBCAJBwS.js.map → options-sWzacjlS.js.map} +1 -1
- package/chunk/pl-X0qJw7IS.js +4 -4
- package/chunk/{programThemeGetters-C9Sw0RZq.js → programThemeGetters-BnS5Q93M.js} +29 -25
- package/chunk/{programThemeGetters-C9Sw0RZq.js.map → programThemeGetters-BnS5Q93M.js.map} +1 -1
- package/chunk/programThemeGetters-D44jbcz5.js +149 -0
- package/chunk/{programThemeGetters-uLsgGat1.js.map → programThemeGetters-D44jbcz5.js.map} +1 -1
- package/chunk/pt-BR-C6XmLn3o.js +4 -4
- package/chunk/pt-o7v4iOVx.js +4 -4
- package/chunk/{refs-CGvEbCaw.js → refs-CYbzNJIm.js} +5 -5
- package/chunk/{refs-CGvEbCaw.js.map → refs-CYbzNJIm.js.map} +1 -1
- package/chunk/{refs-CI3K5ndt.js → refs-DiYh48lF.js} +5 -5
- package/chunk/{refs-CI3K5ndt.js.map → refs-DiYh48lF.js.map} +1 -1
- package/chunk/ro-C74ZR3HS.js +4 -4
- package/chunk/ru-BA9P3RVu.js +4 -4
- package/chunk/sk-DmyizV49.js +4 -4
- package/chunk/sl-Cxm3YoWE.js +4 -4
- package/chunk/sr-gOtgEOlP.js +4 -4
- package/chunk/{stepComponentHelpers-Cm0-8yXr.js → stepComponentHelpers-CEcpJGQG.js} +24 -24
- package/chunk/{stepComponentHelpers-BOwTk6Tq.js.map → stepComponentHelpers-CEcpJGQG.js.map} +1 -1
- package/chunk/{stepComponentHelpers-BOwTk6Tq.js → stepComponentHelpers-DoMfmu_O.js} +34 -34
- package/chunk/{stepComponentHelpers-Cm0-8yXr.js.map → stepComponentHelpers-DoMfmu_O.js.map} +1 -1
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DnCUWo1-.js +4 -4
- package/chunk/sw-BY7XXvUU.js +4 -4
- package/chunk/ta-CVL0b6Hh.js +4 -4
- package/chunk/th-CyU0RW3x.js +4 -4
- package/chunk/tl-BfgQ0irB.js +4 -4
- package/chunk/tr-BPg_L4bY.js +4 -4
- package/chunk/uk-CNaioa7V.js +4 -4
- package/chunk/ur-Ht1Mcpm0.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-D_Qf33n2.js → useCollectFieldsEndpoint-Ce16y3_V.js} +19 -19
- package/chunk/{useCollectFieldsEndpoint-D_Qf33n2.js.map → useCollectFieldsEndpoint-Ce16y3_V.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-jY0agtQB.js → useCollectFieldsEndpoint-DZRtkBor.js} +19 -19
- package/chunk/{useCollectFieldsEndpoint-jY0agtQB.js.map → useCollectFieldsEndpoint-DZRtkBor.js.map} +1 -1
- package/chunk/{useMetrics-O5xTFm6y.js → useMetrics-Bqc9pEAl.js} +19 -19
- package/chunk/{useMetrics-O5xTFm6y.js.map → useMetrics-Bqc9pEAl.js.map} +1 -1
- package/chunk/{useMetrics-BrHWTzbP.js → useMetrics-Lk6qCoTA.js} +19 -19
- package/chunk/{useMetrics-BrHWTzbP.js.map → useMetrics-Lk6qCoTA.js.map} +1 -1
- package/chunk/vi-sI1BYLXG.js +4 -4
- package/chunk/zh-DNG4VB8r.js +4 -4
- package/chunk/zh-HK-5Y3ROXEm.js +4 -4
- package/chunk/zu-DNMG8Idu.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +262 -262
- package/sheerid.js.map +1 -1
- package/chunk/FormFooterComponent-CKDwnyg2.js.map +0 -1
- package/chunk/FormFooterComponent-DEFTsR2L.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-Dl1oW7u9.js +0 -372
- package/chunk/StepIDCheckLoop-9dhIxbuJ.js +0 -24
- package/chunk/StepTeacherPersonalInfo-BndXbwZz.js +0 -150
- package/chunk/StepTeacherPersonalInfo-DttiAJyO.js +0 -154
- package/chunk/TestingRouteOverrides-CAGESMw9.js +0 -81
- package/chunk/TestingRouteOverrides-CrhfSmLr.js +0 -77
- package/chunk/countryUtils-DWqId-zY.js +0 -12
- package/chunk/intl-e5WHiYfA.js.map +0 -1
- package/chunk/programThemeGetters-uLsgGat1.js +0 -153
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.280.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1789074197174
|
|
5
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:17 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { a as r, n as i, t as a } from "./jsx-runtime-
|
|
10
|
-
import { h as o } from "./FormFooterComponent-
|
|
8
|
+
import { It as e, c as t, n } from "./options-sWzacjlS.js";
|
|
9
|
+
import { a as r, n as i, t as a } from "./jsx-runtime-CeCA46f-.js";
|
|
10
|
+
import { h as o } from "./FormFooterComponent-D9mEMiRZ.js";
|
|
11
11
|
import { n as s } from "../sheerid.js";
|
|
12
|
-
import { t as c } from "./useCollectFieldsEndpoint-
|
|
13
|
-
import { _ as l, c as u, g as d, i as f, o as p, s as m } from "./stepComponentHelpers-
|
|
14
|
-
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-
|
|
15
|
-
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-
|
|
16
|
-
import { t as C } from "./BirthDateComponent-
|
|
17
|
-
import { t as w } from "./PostalCodeComponent-
|
|
18
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
19
|
-
import { t as E } from "./ExtraMessage-
|
|
20
|
-
import { t as D } from "./ChangeLocaleComponent-
|
|
21
|
-
import { t as O } from "./PersonalInfoStepWrapper-
|
|
22
|
-
import { t as k } from "./countryUtils-
|
|
23
|
-
import { t as A } from "./StatusComponent-
|
|
24
|
-
import { t as j } from "./LicensedProfessionalOrganizationComponent-
|
|
12
|
+
import { t as c } from "./useCollectFieldsEndpoint-Ce16y3_V.js";
|
|
13
|
+
import { _ as l, c as u, g as d, i as f, o as p, s as m } from "./stepComponentHelpers-DoMfmu_O.js";
|
|
14
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-BrH791mU.js";
|
|
15
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-huS5DiV5.js";
|
|
16
|
+
import { t as C } from "./BirthDateComponent-C31Jxnf9.js";
|
|
17
|
+
import { t as w } from "./PostalCodeComponent-gktdA05J.js";
|
|
18
|
+
import { t as T } from "./CountryComponentWrapper-CR9HrOiD.js";
|
|
19
|
+
import { t as E } from "./ExtraMessage-DNaGfjEE.js";
|
|
20
|
+
import { t as D } from "./ChangeLocaleComponent-4lrBj9C8.js";
|
|
21
|
+
import { t as O } from "./PersonalInfoStepWrapper-D6RA9ErC.js";
|
|
22
|
+
import { t as k } from "./countryUtils-DhafHNJu.js";
|
|
23
|
+
import { t as A } from "./StatusComponent-Domycxys.js";
|
|
24
|
+
import { t as j } from "./LicensedProfessionalOrganizationComponent-BY-_49Un.js";
|
|
25
25
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
26
26
|
var M = a(), N = r(({ intl: r, verificationService: a }) => {
|
|
27
27
|
let N = a.viewModel, { fieldValidationErrors: P } = a, F = a.verificationResponse, I = o(F), L = N.localeChoice.value, R = n(), { availableStatuses: z } = c({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-Bxh1PYd4.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicens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AAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-D6n29Iss.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;aA+Pa,IAAgD,GAhNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EA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IA"}
|
|
@@ -4,28 +4,28 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.280.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1789074204977
|
|
9
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:24 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { a as r, n as i, t as a } from "./jsx-runtime-
|
|
14
|
-
import { p as o } from "./FormFooterComponent-
|
|
12
|
+
import { Pt as e, p as t, s as n } from "./intl-COP5OPN0.js";
|
|
13
|
+
import { a as r, n as i, t as a } from "./jsx-runtime-CCEfa_da.js";
|
|
14
|
+
import { p as o } from "./FormFooterComponent-oaSe-Xzj.js";
|
|
15
15
|
import { t as s } from "../_mysheerid-preview.js";
|
|
16
|
-
import { t as c } from "./useCollectFieldsEndpoint-
|
|
17
|
-
import { _ as l, c as u, g as d, i as f, o as p, s as m } from "./stepComponentHelpers-
|
|
18
|
-
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-
|
|
19
|
-
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-
|
|
20
|
-
import { t as C } from "./BirthDateComponent-
|
|
21
|
-
import { t as w } from "./PostalCodeComponent-
|
|
22
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
23
|
-
import { t as E } from "./ExtraMessage-
|
|
24
|
-
import { t as D } from "./ChangeLocaleComponent-
|
|
25
|
-
import { t as O } from "./PersonalInfoStepWrapper-
|
|
26
|
-
import { t as k } from "./countryUtils-
|
|
27
|
-
import { t as A } from "./StatusComponent-
|
|
28
|
-
import { t as j } from "./LicensedProfessionalOrganizationComponent-
|
|
16
|
+
import { t as c } from "./useCollectFieldsEndpoint-DZRtkBor.js";
|
|
17
|
+
import { _ as l, c as u, g as d, i as f, o as p, s as m } from "./stepComponentHelpers-CEcpJGQG.js";
|
|
18
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-D3gR_wiv.js";
|
|
19
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-CaE4yvTG.js";
|
|
20
|
+
import { t as C } from "./BirthDateComponent-J3GXZush.js";
|
|
21
|
+
import { t as w } from "./PostalCodeComponent-BJJkLSwH.js";
|
|
22
|
+
import { t as T } from "./CountryComponentWrapper-Dp_Lw4Jz.js";
|
|
23
|
+
import { t as E } from "./ExtraMessage-BqOf0zRz.js";
|
|
24
|
+
import { t as D } from "./ChangeLocaleComponent-mFvHcArW.js";
|
|
25
|
+
import { t as O } from "./PersonalInfoStepWrapper-CoL68lv9.js";
|
|
26
|
+
import { t as k } from "./countryUtils-D3poSBsN.js";
|
|
27
|
+
import { t as A } from "./StatusComponent-B9rfe8oP.js";
|
|
28
|
+
import { t as j } from "./LicensedProfessionalOrganizationComponent-BXcQ9OAk.js";
|
|
29
29
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
30
30
|
var M = a(), N = r(({ intl: r, verificationService: a }) => {
|
|
31
31
|
let N = a.viewModel, { fieldValidationErrors: P } = a, F = a.verificationResponse, I = o(F), L = N.localeChoice.value, R = n(), { availableStatuses: z } = c({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-avWn-HsU.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;aA+Pa,IAAgD,GAhNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA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cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-hXd4L7zJ.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;aA+Pa,IAAgD,GAhNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO;KACL,OAAO,EAAU,WAAW,EAAU,SAAS,KAAK;KACpD,OAAO,EAAU,WAAW,EAAe,GAAM,EAA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;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
package/chunk/{StepLowIncomePersonalInfo-Du_sG7Xc.js → StepLowIncomePersonalInfo-B9rvMh5D.js}
RENAMED
|
@@ -4,47 +4,47 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.280.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1789074204977
|
|
9
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:24 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-
|
|
14
|
-
import { n as l } from "./empties-
|
|
15
|
-
import { p as u } from "./FormFooterComponent-
|
|
16
|
-
import { f as d } from "./programThemeGetters-
|
|
12
|
+
import { Gt as e, Pt as t, Vt as n, p as r, s as i } from "./intl-COP5OPN0.js";
|
|
13
|
+
import { a, c as o, n as s, t as c } from "./jsx-runtime-CCEfa_da.js";
|
|
14
|
+
import { n as l } from "./empties-BAB8wNt9.js";
|
|
15
|
+
import { p as u } from "./FormFooterComponent-oaSe-Xzj.js";
|
|
16
|
+
import { f as d } from "./programThemeGetters-BnS5Q93M.js";
|
|
17
17
|
import { t as f } from "../_mysheerid-preview.js";
|
|
18
|
-
import { t as p } from "./useCollectFieldsEndpoint-
|
|
19
|
-
import { _ as m, c as h, g, i as _, l as v, n as y, o as b, s as x } from "./stepComponentHelpers-
|
|
20
|
-
import { a as S, i as C, n as w, o as T, s as E, t as D } from "./CaptchaComponent-
|
|
21
|
-
import { n as O, t as k } from "./PersonalInfoStepSubmitButton-
|
|
22
|
-
import { t as A } from "./BirthDateComponent-
|
|
23
|
-
import { t as j } from "./PostalCodeComponent-
|
|
24
|
-
import { t as M } from "./CountryComponentWrapper-
|
|
25
|
-
import { t as N } from "./City-
|
|
26
|
-
import { t as P } from "./AddressComponent-
|
|
27
|
-
import { t as F } from "./ChangeLocaleComponent-
|
|
28
|
-
import { t as ee } from "./PersonalInfoStepWrapper-
|
|
29
|
-
import { t as I } from "./countryUtils-
|
|
30
|
-
import { t as L } from "./StateSelectComponent-
|
|
31
|
-
import { n as R, t as z } from "./LowIncomeOrganizationComponent-
|
|
32
|
-
import { t as B } from "./StatusComponent-
|
|
18
|
+
import { t as p } from "./useCollectFieldsEndpoint-DZRtkBor.js";
|
|
19
|
+
import { _ as m, c as h, g, i as _, l as v, n as y, o as b, s as x } from "./stepComponentHelpers-CEcpJGQG.js";
|
|
20
|
+
import { a as S, i as C, n as w, o as T, s as E, t as D } from "./CaptchaComponent-D3gR_wiv.js";
|
|
21
|
+
import { n as O, t as k } from "./PersonalInfoStepSubmitButton-CaE4yvTG.js";
|
|
22
|
+
import { t as A } from "./BirthDateComponent-J3GXZush.js";
|
|
23
|
+
import { t as j } from "./PostalCodeComponent-BJJkLSwH.js";
|
|
24
|
+
import { t as M } from "./CountryComponentWrapper-Dp_Lw4Jz.js";
|
|
25
|
+
import { t as N } from "./City-4Y-JSMns.js";
|
|
26
|
+
import { t as P } from "./AddressComponent-Dt6V7nTl.js";
|
|
27
|
+
import { t as F } from "./ChangeLocaleComponent-mFvHcArW.js";
|
|
28
|
+
import { t as ee } from "./PersonalInfoStepWrapper-CoL68lv9.js";
|
|
29
|
+
import { t as I } from "./countryUtils-D3poSBsN.js";
|
|
30
|
+
import { t as L } from "./StateSelectComponent-IqnD_yvb.js";
|
|
31
|
+
import { n as R, t as z } from "./LowIncomeOrganizationComponent-BRvt-ulP.js";
|
|
32
|
+
import { t as B } from "./StatusComponent-B9rfe8oP.js";
|
|
33
33
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
34
|
-
var V = /* @__PURE__ */
|
|
34
|
+
var V = /* @__PURE__ */ e(o(), 1), H = c(), U = a(({ intl: e, verificationService: a }) => {
|
|
35
35
|
let { viewModel: o } = a, c = i();
|
|
36
|
-
if (!d(o)) return
|
|
36
|
+
if (!d(o)) return n.error("Expected LowIncomePersonalInfoViewModel"), null;
|
|
37
37
|
let { fieldValidationErrors: U } = a, { verificationResponse: W } = a, G = u(W), { availableStatuses: K } = p({
|
|
38
38
|
verificationId: W.verificationId,
|
|
39
39
|
currentStep: W.currentStep,
|
|
40
40
|
viewModel: o
|
|
41
|
-
}), q = o.countryChoice?.value, J = I(a.programTheme, q), Y = x(
|
|
41
|
+
}), q = o.countryChoice?.value, J = I(a.programTheme, q), Y = x(e, K ?? W.availableStatuses), X = o.localeChoice.value, Z = o.statuses[0] ? o.statuses[0] : void 0, Q = Z === "SNAP_BENEFITS", $ = (e, t) => {
|
|
42
42
|
if (!d(o)) {
|
|
43
|
-
|
|
43
|
+
n.error("Expected LowIncomePersonalInfoViewModel");
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
let i = r(o, (
|
|
47
|
-
e
|
|
46
|
+
let i = r(o, (n) => {
|
|
47
|
+
n[e] = t;
|
|
48
48
|
});
|
|
49
49
|
a.updateViewModel(i);
|
|
50
50
|
};
|
|
@@ -68,7 +68,7 @@ var V = /* @__PURE__ */ n(o(), 1), H = c(), U = a(({ intl: n, verificationServic
|
|
|
68
68
|
segmentId: "low-income",
|
|
69
69
|
value: {
|
|
70
70
|
value: o.statuses ? o.statuses[0] : "",
|
|
71
|
-
label: o.statuses ? b(
|
|
71
|
+
label: o.statuses ? b(e, o.statuses[0]) : ""
|
|
72
72
|
},
|
|
73
73
|
isErrored: !!U.statuses,
|
|
74
74
|
disabled: J || _("statuses")?.disabled,
|
|
@@ -158,7 +158,7 @@ var V = /* @__PURE__ */ n(o(), 1), H = c(), U = a(({ intl: n, verificationServic
|
|
|
158
158
|
}),
|
|
159
159
|
/* @__PURE__ */ (0, H.jsx)(L, {
|
|
160
160
|
isRequired: !0,
|
|
161
|
-
options: y(a.programTheme,
|
|
161
|
+
options: y(a.programTheme, e),
|
|
162
162
|
value: o.state || void 0,
|
|
163
163
|
isErrored: !!U.state,
|
|
164
164
|
disabled: _("state")?.disabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-Du_sG7Xc.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"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 <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowI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B,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,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,CAEsF"}
|
|
1
|
+
{"version":3,"file":"StepLowIncomePersonalInfo-B9rvMh5D.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"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 <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\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;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,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,CAEsF"}
|
package/chunk/{StepLowIncomePersonalInfo-qYLCAzKx.js → StepLowIncomePersonalInfo-Dt3q7Wto.js}
RENAMED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.280.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1789074197174
|
|
5
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:17 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-
|
|
10
|
-
import { n as l } from "./empties-
|
|
11
|
-
import { h as u } from "./FormFooterComponent-
|
|
12
|
-
import { f as d } from "./programThemeGetters-
|
|
8
|
+
import { Gt as e, It as t, Vt as n, c as r, n as i } from "./options-sWzacjlS.js";
|
|
9
|
+
import { a, c as o, n as s, t as c } from "./jsx-runtime-CeCA46f-.js";
|
|
10
|
+
import { n as l } from "./empties-Tz4MgFii.js";
|
|
11
|
+
import { h as u } from "./FormFooterComponent-D9mEMiRZ.js";
|
|
12
|
+
import { f as d } from "./programThemeGetters-D44jbcz5.js";
|
|
13
13
|
import { n as f } from "../sheerid.js";
|
|
14
|
-
import { t as p } from "./useCollectFieldsEndpoint-
|
|
15
|
-
import { _ as m, c as h, g, i as _, l as v, n as y, o as b, s as x } from "./stepComponentHelpers-
|
|
16
|
-
import { a as S, i as C, n as w, o as T, s as E, t as D } from "./CaptchaComponent-
|
|
17
|
-
import { n as O, t as k } from "./PersonalInfoStepSubmitButton-
|
|
18
|
-
import { t as A } from "./BirthDateComponent-
|
|
19
|
-
import { t as j } from "./PostalCodeComponent-
|
|
20
|
-
import { t as M } from "./CountryComponentWrapper-
|
|
21
|
-
import { t as N } from "./City-
|
|
22
|
-
import { t as P } from "./AddressComponent-
|
|
23
|
-
import { t as F } from "./ChangeLocaleComponent-
|
|
24
|
-
import { t as ee } from "./PersonalInfoStepWrapper-
|
|
25
|
-
import { t as I } from "./countryUtils-
|
|
26
|
-
import { t as L } from "./StateSelectComponent-
|
|
27
|
-
import { n as R, t as z } from "./LowIncomeOrganizationComponent-
|
|
28
|
-
import { t as B } from "./StatusComponent-
|
|
14
|
+
import { t as p } from "./useCollectFieldsEndpoint-Ce16y3_V.js";
|
|
15
|
+
import { _ as m, c as h, g, i as _, l as v, n as y, o as b, s as x } from "./stepComponentHelpers-DoMfmu_O.js";
|
|
16
|
+
import { a as S, i as C, n as w, o as T, s as E, t as D } from "./CaptchaComponent-BrH791mU.js";
|
|
17
|
+
import { n as O, t as k } from "./PersonalInfoStepSubmitButton-huS5DiV5.js";
|
|
18
|
+
import { t as A } from "./BirthDateComponent-C31Jxnf9.js";
|
|
19
|
+
import { t as j } from "./PostalCodeComponent-gktdA05J.js";
|
|
20
|
+
import { t as M } from "./CountryComponentWrapper-CR9HrOiD.js";
|
|
21
|
+
import { t as N } from "./City-C9ODgW6J.js";
|
|
22
|
+
import { t as P } from "./AddressComponent-jYt6u6Og.js";
|
|
23
|
+
import { t as F } from "./ChangeLocaleComponent-4lrBj9C8.js";
|
|
24
|
+
import { t as ee } from "./PersonalInfoStepWrapper-D6RA9ErC.js";
|
|
25
|
+
import { t as I } from "./countryUtils-DhafHNJu.js";
|
|
26
|
+
import { t as L } from "./StateSelectComponent-CUkPmdgD.js";
|
|
27
|
+
import { n as R, t as z } from "./LowIncomeOrganizationComponent-DGK9gkyA.js";
|
|
28
|
+
import { t as B } from "./StatusComponent-Domycxys.js";
|
|
29
29
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
30
|
-
var V = /* @__PURE__ */
|
|
30
|
+
var V = /* @__PURE__ */ e(o(), 1), H = c(), U = a(({ intl: e, verificationService: a }) => {
|
|
31
31
|
let { viewModel: o } = a, c = i();
|
|
32
|
-
if (!d(o)) return
|
|
32
|
+
if (!d(o)) return n.error("Expected LowIncomePersonalInfoViewModel"), null;
|
|
33
33
|
let { fieldValidationErrors: U } = a, { verificationResponse: W } = a, G = u(W), { availableStatuses: K } = p({
|
|
34
34
|
verificationId: W.verificationId,
|
|
35
35
|
currentStep: W.currentStep,
|
|
36
36
|
viewModel: o
|
|
37
|
-
}), q = o.countryChoice?.value, J = I(a.programTheme, q), Y = x(
|
|
37
|
+
}), q = o.countryChoice?.value, J = I(a.programTheme, q), Y = x(e, K ?? W.availableStatuses), X = o.localeChoice.value, Z = o.statuses[0] ? o.statuses[0] : void 0, Q = Z === "SNAP_BENEFITS", $ = (e, t) => {
|
|
38
38
|
if (!d(o)) {
|
|
39
|
-
|
|
39
|
+
n.error("Expected LowIncomePersonalInfoViewModel");
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
let i = r(o, (
|
|
43
|
-
e
|
|
42
|
+
let i = r(o, (n) => {
|
|
43
|
+
n[e] = t;
|
|
44
44
|
});
|
|
45
45
|
a.updateViewModel(i);
|
|
46
46
|
};
|
|
@@ -64,7 +64,7 @@ var V = /* @__PURE__ */ n(o(), 1), H = c(), U = a(({ intl: n, verificationServic
|
|
|
64
64
|
segmentId: "low-income",
|
|
65
65
|
value: {
|
|
66
66
|
value: o.statuses ? o.statuses[0] : "",
|
|
67
|
-
label: o.statuses ? b(
|
|
67
|
+
label: o.statuses ? b(e, o.statuses[0]) : ""
|
|
68
68
|
},
|
|
69
69
|
isErrored: !!U.statuses,
|
|
70
70
|
disabled: J || _("statuses")?.disabled,
|
|
@@ -154,7 +154,7 @@ var V = /* @__PURE__ */ n(o(), 1), H = c(), U = a(({ intl: n, verificationServic
|
|
|
154
154
|
}),
|
|
155
155
|
/* @__PURE__ */ (0, H.jsx)(L, {
|
|
156
156
|
isRequired: !0,
|
|
157
|
-
options: y(a.programTheme,
|
|
157
|
+
options: y(a.programTheme, e),
|
|
158
158
|
value: o.state || void 0,
|
|
159
159
|
isErrored: !!U.state,
|
|
160
160
|
disabled: _("state")?.disabled,
|