@sheerid/jslib 2.312.0 → 2.313.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 +776 -763
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-DeEEaX9k.js → AddressComponent-BHiOCbUv.js} +5 -5
- package/chunk/{AddressComponent-BoIXEkQ1.js.map → AddressComponent-BHiOCbUv.js.map} +1 -1
- package/chunk/{AddressComponent-BoIXEkQ1.js → AddressComponent-xHLmwR7C.js} +5 -5
- package/chunk/{AddressComponent-DeEEaX9k.js.map → AddressComponent-xHLmwR7C.js.map} +1 -1
- package/chunk/AnnouncingHeader-CM01vEpF.js +4 -4
- package/chunk/AnnouncingHeader-CSh0UW8I.js +4 -4
- package/chunk/{BirthDateComponent-D7BbQdeu.js → BirthDateComponent-CRbZs5-I.js} +5 -5
- package/chunk/{BirthDateComponent-D7BbQdeu.js.map → BirthDateComponent-CRbZs5-I.js.map} +1 -1
- package/chunk/{BirthDateComponent-Dwfl6tYR.js → BirthDateComponent-D5pVkYha.js} +5 -5
- package/chunk/{BirthDateComponent-Dwfl6tYR.js.map → BirthDateComponent-D5pVkYha.js.map} +1 -1
- package/chunk/{CaptchaComponent-BbQTpmWe.js → CaptchaComponent-Bay_IP0-.js} +8 -8
- package/chunk/{CaptchaComponent-BbQTpmWe.js.map → CaptchaComponent-Bay_IP0-.js.map} +1 -1
- package/chunk/{CaptchaComponent-DMFt9cDO.js → CaptchaComponent-DpiYztJ5.js} +8 -8
- package/chunk/{CaptchaComponent-DMFt9cDO.js.map → CaptchaComponent-DpiYztJ5.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-AKQ7gIkP.js → ChangeLocaleComponent-BMuiuSyJ.js} +8 -8
- package/chunk/{ChangeLocaleComponent-AKQ7gIkP.js.map → ChangeLocaleComponent-BMuiuSyJ.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BOFrHFyG.js → ChangeLocaleComponent-Bmq-3m3v.js} +8 -8
- package/chunk/{ChangeLocaleComponent-BOFrHFyG.js.map → ChangeLocaleComponent-Bmq-3m3v.js.map} +1 -1
- package/chunk/{City-D6VlEIOj.js → City-CFAsI7Sk.js} +5 -5
- package/chunk/{City-D4to8D65.js.map → City-CFAsI7Sk.js.map} +1 -1
- package/chunk/{City-D4to8D65.js → City-SZ26Bigy.js} +5 -5
- package/chunk/{City-D6VlEIOj.js.map → City-SZ26Bigy.js.map} +1 -1
- package/chunk/{CollegeNameComponent-kUPYCkq1.js → CollegeNameComponent-BGNJ8dpo.js} +8 -8
- package/chunk/{CollegeNameComponent-kUPYCkq1.js.map → CollegeNameComponent-BGNJ8dpo.js.map} +1 -1
- package/chunk/{CollegeNameComponent-882Xs3gD.js → CollegeNameComponent-CXQ4oYar.js} +8 -8
- package/chunk/{CollegeNameComponent-882Xs3gD.js.map → CollegeNameComponent-CXQ4oYar.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BN9qCovT.js +4 -4
- package/chunk/CopyToClipboardComponent-Dag4rxf8.js +4 -4
- package/chunk/{CountryComponentWrapper-DN99F8hI.js → CountryComponentWrapper-BlVfixh4.js} +8 -8
- package/chunk/{CountryComponentWrapper-DN99F8hI.js.map → CountryComponentWrapper-BlVfixh4.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-DNNtLmuf.js → CountryComponentWrapper-Ck2iP9bh.js} +8 -8
- package/chunk/{CountryComponentWrapper-DNNtLmuf.js.map → CountryComponentWrapper-Ck2iP9bh.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DON4nxw_.js → DischargeDateComponent-C8PJeyup.js} +9 -9
- package/chunk/{DischargeDateComponent-DON4nxw_.js.map → DischargeDateComponent-C8PJeyup.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CbU9Hmdp.js → DischargeDateComponent-DzNKj6v5.js} +9 -9
- package/chunk/{DischargeDateComponent-CbU9Hmdp.js.map → DischargeDateComponent-DzNKj6v5.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DhfLaFR5.js → DriverLicenseNumberComponent-9PlXE0Yo.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-DRiQa6Ga.js.map → DriverLicenseNumberComponent-9PlXE0Yo.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DRiQa6Ga.js → DriverLicenseNumberComponent-B383rPMu.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-DhfLaFR5.js.map → DriverLicenseNumberComponent-B383rPMu.js.map} +1 -1
- package/chunk/{EmailLoopPending-DDfDm16i.js → EmailLoopPending-29RXro2U.js} +6 -6
- package/chunk/{EmailLoopPending-DDfDm16i.js.map → EmailLoopPending-29RXro2U.js.map} +1 -1
- package/chunk/{EmailLoopPending-DXsNsJrc.js → EmailLoopPending-pvrnAh2C.js} +6 -6
- package/chunk/{EmailLoopPending-DXsNsJrc.js.map → EmailLoopPending-pvrnAh2C.js.map} +1 -1
- package/chunk/{ExtraMessage-DeGK3KwO.js → ExtraMessage-CBPYszyt.js} +5 -5
- package/chunk/{ExtraMessage-CYfaHVd1.js.map → ExtraMessage-CBPYszyt.js.map} +1 -1
- package/chunk/{ExtraMessage-CYfaHVd1.js → ExtraMessage-QVMqiZm3.js} +5 -5
- package/chunk/{ExtraMessage-DeGK3KwO.js.map → ExtraMessage-QVMqiZm3.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-GbRQ8ejW.js → FirstResponderOrganizationComponent-CjhnnEGx.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-GbRQ8ejW.js.map → FirstResponderOrganizationComponent-CjhnnEGx.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CEJ4sBZm.js → FirstResponderOrganizationComponent-DyWgLJrZ.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-CEJ4sBZm.js.map → FirstResponderOrganizationComponent-DyWgLJrZ.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-7FX3KIMN.js → FormFieldInputSelect-TMLbT75m.js} +5 -5
- package/chunk/{FormFieldInputSelect-7FX3KIMN.js.map → FormFieldInputSelect-TMLbT75m.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-CmGuSZoU.js → FormFieldInputSelect-bCj6cOF6.js} +5 -5
- package/chunk/{FormFieldInputSelect-CmGuSZoU.js.map → FormFieldInputSelect-bCj6cOF6.js.map} +1 -1
- package/chunk/FormFieldLayout-KJilu-sR.js +4 -4
- package/chunk/FormFieldLayout-UCIBwDRH.js +4 -4
- package/chunk/FormFieldText-B_2IOFED.js +4 -4
- package/chunk/FormFieldText-CkPmuIPf.js +4 -4
- package/chunk/{FormFieldTypeahead-0YtLKYp9.js → FormFieldTypeahead-D65hqbmm.js} +8 -8
- package/chunk/{FormFieldTypeahead-0YtLKYp9.js.map → FormFieldTypeahead-D65hqbmm.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-Bn4oW-PC.js → FormFieldTypeahead-pQn7b3qO.js} +8 -8
- package/chunk/{FormFieldTypeahead-Bn4oW-PC.js.map → FormFieldTypeahead-pQn7b3qO.js.map} +1 -1
- package/chunk/{FormFooterComponent-Brab2xcp.js → FormFooterComponent-AuOOdrTD.js} +8 -8
- package/chunk/{FormFooterComponent-Brab2xcp.js.map → FormFooterComponent-AuOOdrTD.js.map} +1 -1
- package/chunk/{FormFooterComponent-he4l6p39.js → FormFooterComponent-DBtwjSTL.js} +8 -8
- package/chunk/{FormFooterComponent-he4l6p39.js.map → FormFooterComponent-DBtwjSTL.js.map} +1 -1
- package/chunk/{FormSelectChoice-D5wZk7cJ.js → FormSelectChoice-6hD-rK1b.js} +6 -6
- package/chunk/{FormSelectChoice-D5wZk7cJ.js.map → FormSelectChoice-6hD-rK1b.js.map} +1 -1
- package/chunk/{FormSelectChoice-CSGgtlv8.js → FormSelectChoice-DFY-ryks.js} +6 -6
- package/chunk/{FormSelectChoice-CSGgtlv8.js.map → FormSelectChoice-DFY-ryks.js.map} +1 -1
- package/chunk/InputText-Bvj815Th.js +4 -4
- package/chunk/InputText-C2qEtF0t.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-Dja--YUF.js → LicensedProfessionalOrganizationComponent-BGQZWcaF.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-Dja--YUF.js.map → LicensedProfessionalOrganizationComponent-BGQZWcaF.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CCx7V-Xr.js → LicensedProfessionalOrganizationComponent-z7QjAVXa.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-CCx7V-Xr.js.map → LicensedProfessionalOrganizationComponent-z7QjAVXa.js.map} +1 -1
- package/chunk/{LogoComponent-C9UuIyxD.js → LogoComponent-BSmQaKpz.js} +5 -5
- package/chunk/{LogoComponent-C4UN1JY9.js.map → LogoComponent-BSmQaKpz.js.map} +1 -1
- package/chunk/{LogoComponent-C4UN1JY9.js → LogoComponent-Bj0nuSsL.js} +5 -5
- package/chunk/{LogoComponent-C9UuIyxD.js.map → LogoComponent-Bj0nuSsL.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-BCi1j6_X.js → LowIncomeOrganizationComponent-BqbzF7QP.js} +9 -9
- package/chunk/{LowIncomeOrganizationComponent-BCi1j6_X.js.map → LowIncomeOrganizationComponent-BqbzF7QP.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CX8q3MDL.js → LowIncomeOrganizationComponent-DfcG7yCt.js} +9 -9
- package/chunk/{LowIncomeOrganizationComponent-CX8q3MDL.js.map → LowIncomeOrganizationComponent-DfcG7yCt.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-go1qSqrP.js → MedicalProfessionalOrganizationComponent-6KnihjFH.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-go1qSqrP.js.map → MedicalProfessionalOrganizationComponent-6KnihjFH.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CVig_7kH.js → MedicalProfessionalOrganizationComponent-BlHxJHTt.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-CVig_7kH.js.map → MedicalProfessionalOrganizationComponent-BlHxJHTt.js.map} +1 -1
- package/chunk/{MemberIdComponent-CDJ_XPc-.js → MemberIdComponent--hy77hro.js} +5 -5
- package/chunk/{MemberIdComponent-BABnLSRG.js.map → MemberIdComponent--hy77hro.js.map} +1 -1
- package/chunk/{MemberIdComponent-BABnLSRG.js → MemberIdComponent-CxKnpzyG.js} +5 -5
- package/chunk/{MemberIdComponent-CDJ_XPc-.js.map → MemberIdComponent-CxKnpzyG.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BX7n9J08.js → MembershipOrganizationComponent-C2tLFp9O.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-BX7n9J08.js.map → MembershipOrganizationComponent-C2tLFp9O.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-Dm6IXak0.js → MembershipOrganizationComponent-CiSCMO-v.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-Dm6IXak0.js.map → MembershipOrganizationComponent-CiSCMO-v.js.map} +1 -1
- package/chunk/{Message-D2kP5FCJ.js → Message-CftKT89p.js} +6 -6
- package/chunk/{Message-D2kP5FCJ.js.map → Message-CftKT89p.js.map} +1 -1
- package/chunk/{Message-C6bKPcuM.js → Message-Dn888b-7.js} +6 -6
- package/chunk/{Message-C6bKPcuM.js.map → Message-Dn888b-7.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-DJ7FqfAK.js → PersonalInfoStepSubmitButton-CR8ta98F.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-DJ7FqfAK.js.map → PersonalInfoStepSubmitButton-CR8ta98F.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-Cz5Ik4p9.js → PersonalInfoStepSubmitButton-CTdBFGeG.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-Cz5Ik4p9.js.map → PersonalInfoStepSubmitButton-CTdBFGeG.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-C4g9QHwO.js → PersonalInfoStepWrapper-CPDfbnD6.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-C4g9QHwO.js.map → PersonalInfoStepWrapper-CPDfbnD6.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-Fjv1zouY.js → PersonalInfoStepWrapper-DbqQudr4.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-Fjv1zouY.js.map → PersonalInfoStepWrapper-DbqQudr4.js.map} +1 -1
- package/chunk/{PostalCodeComponent-B1MM4Jgt.js → PostalCodeComponent-D-7iqpnt.js} +5 -5
- package/chunk/{PostalCodeComponent-B1MM4Jgt.js.map → PostalCodeComponent-D-7iqpnt.js.map} +1 -1
- package/chunk/{PostalCodeComponent-BrHnEVhq.js → PostalCodeComponent-tJKRpJv-.js} +5 -5
- package/chunk/{PostalCodeComponent-BrHnEVhq.js.map → PostalCodeComponent-tJKRpJv-.js.map} +1 -1
- package/chunk/{SSN-CgB4E28t.js → SSN-B5YqbTT5.js} +5 -5
- package/chunk/{SSN-CgB4E28t.js.map → SSN-B5YqbTT5.js.map} +1 -1
- package/chunk/{SSN-DkEJjIbj.js → SSN-BQppmw27.js} +5 -5
- package/chunk/{SSN-DkEJjIbj.js.map → SSN-BQppmw27.js.map} +1 -1
- package/chunk/{StateSelectComponent-CQqOuxkD.js → StateSelectComponent-CWadMo4I.js} +6 -6
- package/chunk/{StateSelectComponent-CQqOuxkD.js.map → StateSelectComponent-CWadMo4I.js.map} +1 -1
- package/chunk/{StateSelectComponent-DtQwQzeh.js → StateSelectComponent-DpYIJuax.js} +6 -6
- package/chunk/{StateSelectComponent-DtQwQzeh.js.map → StateSelectComponent-DpYIJuax.js.map} +1 -1
- package/chunk/{StatusComponent-rLMrqvfx.js → StatusComponent-BBX4mkER.js} +6 -6
- package/chunk/{StatusComponent-9j39XhzT.js.map → StatusComponent-BBX4mkER.js.map} +1 -1
- package/chunk/{StatusComponent-9j39XhzT.js → StatusComponent-Ct5RQIkF.js} +6 -6
- package/chunk/{StatusComponent-rLMrqvfx.js.map → StatusComponent-Ct5RQIkF.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BpWfNhEv.js → StepAgePersonalInfo-1PdZQGtF.js} +17 -17
- package/chunk/{StepAgePersonalInfo-BpWfNhEv.js.map → StepAgePersonalInfo-1PdZQGtF.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-3pMQ5xmu.js → StepAgePersonalInfo-D-tK0wBW.js} +17 -17
- package/chunk/{StepAgePersonalInfo-3pMQ5xmu.js.map → StepAgePersonalInfo-D-tK0wBW.js.map} +1 -1
- package/chunk/StepCard-BEucy3JJ.js +4 -4
- package/chunk/StepCard-Blp7ZcI-.js +4 -4
- package/chunk/{StepCollectIdentifier-D3JteRRF.js → StepCollectIdentifier-DBzFener.js} +6 -6
- package/chunk/{StepCollectIdentifier-D3JteRRF.js.map → StepCollectIdentifier-DBzFener.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-Df1zQTCd.js → StepCollectIdentifier-itJ5kD--.js} +6 -6
- package/chunk/{StepCollectIdentifier-Df1zQTCd.js.map → StepCollectIdentifier-itJ5kD--.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-D5fEULP8.js → StepCollectMilitaryPersonalInfoComponent-CJ6z6yOJ.js} +22 -22
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-D5fEULP8.js.map → StepCollectMilitaryPersonalInfoComponent-CJ6z6yOJ.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CB3PLlYb.js → StepCollectMilitaryPersonalInfoComponent-D6XSgd_g.js} +22 -22
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CB3PLlYb.js.map → StepCollectMilitaryPersonalInfoComponent-D6XSgd_g.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-CX8h-lLL.js → StepCollectPersonalInfo-CceFy_mY.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-CX8h-lLL.js.map → StepCollectPersonalInfo-CceFy_mY.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-Dht8LiHk.js → StepCollectPersonalInfo-D2aFS5zY.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-Dht8LiHk.js.map → StepCollectPersonalInfo-D2aFS5zY.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-B_0EZ3mH.js +4 -4
- package/chunk/StepCompleteAuthentication-Ds3ieihr.js +4 -4
- package/chunk/{StepConsolation-wLDs-0mg.js → StepConsolation-B5w29LmQ.js} +6 -6
- package/chunk/{StepConsolation-wLDs-0mg.js.map → StepConsolation-B5w29LmQ.js.map} +1 -1
- package/chunk/{StepConsolation-C0N1GRlI.js → StepConsolation-uujlfm7I.js} +6 -6
- package/chunk/{StepConsolation-C0N1GRlI.js.map → StepConsolation-uujlfm7I.js.map} +1 -1
- package/chunk/{StepDocUpload-BGvgOCT5.js → StepDocUpload-BWHsVHYJ.js} +8 -8
- package/chunk/{StepDocUpload-BGvgOCT5.js.map → StepDocUpload-BWHsVHYJ.js.map} +1 -1
- package/chunk/{StepDocUpload-DssMCn-U.js → StepDocUpload-CCakJpRJ.js} +8 -8
- package/chunk/{StepDocUpload-DssMCn-U.js.map → StepDocUpload-CCakJpRJ.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-5h_59-g_.js → StepDriverLicensePersonalInfoComponent-BsO8PaEy.js} +13 -13
- package/chunk/{StepDriverLicensePersonalInfoComponent-5h_59-g_.js.map → StepDriverLicensePersonalInfoComponent-BsO8PaEy.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CedsuuPs.js → StepDriverLicensePersonalInfoComponent-DBJI6e7M.js} +13 -13
- package/chunk/{StepDriverLicensePersonalInfoComponent-CedsuuPs.js.map → StepDriverLicensePersonalInfoComponent-DBJI6e7M.js.map} +1 -1
- package/chunk/{StepEmailLoop-BgyTBu-u.js → StepEmailLoop-C-1f3M13.js} +7 -7
- package/chunk/{StepEmailLoop-BgyTBu-u.js.map → StepEmailLoop-C-1f3M13.js.map} +1 -1
- package/chunk/{StepEmailLoop-pva3laoI.js → StepEmailLoop-CRuym7fa.js} +7 -7
- package/chunk/{StepEmailLoop-pva3laoI.js.map → StepEmailLoop-CRuym7fa.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DZA-WCNB.js → StepEmploymentPersonalInfo-CNMdyOJ_.js} +18 -18
- package/chunk/{StepEmploymentPersonalInfo-DZA-WCNB.js.map → StepEmploymentPersonalInfo-CNMdyOJ_.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-Dfp9QW8-.js → StepEmploymentPersonalInfo-CdJDYIwe.js} +18 -18
- package/chunk/{StepEmploymentPersonalInfo-Dfp9QW8-.js.map → StepEmploymentPersonalInfo-CdJDYIwe.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BnZfWlpa.js → StepFirstResponderPersonalInfo-AXfXETg6.js} +19 -19
- package/chunk/{StepFirstResponderPersonalInfo-BnZfWlpa.js.map → StepFirstResponderPersonalInfo-AXfXETg6.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DlDcx7Yv.js → StepFirstResponderPersonalInfo-BqRzEbuo.js} +19 -19
- package/chunk/{StepFirstResponderPersonalInfo-DlDcx7Yv.js.map → StepFirstResponderPersonalInfo-BqRzEbuo.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-SCTgUH4L.js → StepGeneralIdentityPersonalInfoComponent-C7tkvOBU.js} +16 -16
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-SCTgUH4L.js.map → StepGeneralIdentityPersonalInfoComponent-C7tkvOBU.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Bv8tMoOR.js → StepGeneralIdentityPersonalInfoComponent-CUn2efgL.js} +16 -16
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Bv8tMoOR.js.map → StepGeneralIdentityPersonalInfoComponent-CUn2efgL.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C7pMYvY6.js → StepHybridIdentityPersonalInfoComponent-B8SSBkHj.js} +17 -17
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C7pMYvY6.js.map → StepHybridIdentityPersonalInfoComponent-B8SSBkHj.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Cxl0Wslc.js → StepHybridIdentityPersonalInfoComponent-DtLvoAhk.js} +17 -17
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Cxl0Wslc.js.map → StepHybridIdentityPersonalInfoComponent-DtLvoAhk.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DXEqOxvC.js → StepIDCheckLoop-BuNNOIEe.js} +5 -5
- package/chunk/{StepIDCheckLoop-DXEqOxvC.js.map → StepIDCheckLoop-BuNNOIEe.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CLO_MLrV.js → StepIDCheckLoop-CVfnTFcW.js} +5 -5
- package/chunk/{StepIDCheckLoop-CLO_MLrV.js.map → StepIDCheckLoop-CVfnTFcW.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-yilH13Ng.js → StepIDCheckLoopOnfido-CTFc-TCg.js} +8 -8
- package/chunk/{StepIDCheckLoopOnfido-yilH13Ng.js.map → StepIDCheckLoopOnfido-CTFc-TCg.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-ZLbrVHIN.js → StepIDCheckLoopOnfido-DTkwFKIA.js} +8 -8
- package/chunk/{StepIDCheckLoopOnfido-ZLbrVHIN.js.map → StepIDCheckLoopOnfido-DTkwFKIA.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-CFVUDpKU.js → StepIDCheckLoopRegula-jXzfuOeA.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-CFVUDpKU.js.map → StepIDCheckLoopRegula-jXzfuOeA.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-hP3n4GeO.js → StepIDCheckLoopRegula-rDapkJ6d.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-hP3n4GeO.js.map → StepIDCheckLoopRegula-rDapkJ6d.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-oemUzTIe.js → StepLicensedProfessionalPersonalInfo-BrIV2PqV.js} +19 -19
- package/chunk/{StepLicensedProfessionalPersonalInfo-oemUzTIe.js.map → StepLicensedProfessionalPersonalInfo-BrIV2PqV.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-LYFcQDpP.js → StepLicensedProfessionalPersonalInfo-SbTP67r7.js} +19 -19
- package/chunk/{StepLicensedProfessionalPersonalInfo-LYFcQDpP.js.map → StepLicensedProfessionalPersonalInfo-SbTP67r7.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-SmoWqnNE.js → StepLowIncomePersonalInfo-BMESrbPv.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-SmoWqnNE.js.map → StepLowIncomePersonalInfo-BMESrbPv.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-B-DGFkrI.js → StepLowIncomePersonalInfo-C5_F7QeG.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-B-DGFkrI.js.map → StepLowIncomePersonalInfo-C5_F7QeG.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-Dom3M0nW.js → StepMedicalProfessionalPersonalInfo--mcpwTM-.js} +20 -20
- package/chunk/{StepMedicalProfessionalPersonalInfo-Dom3M0nW.js.map → StepMedicalProfessionalPersonalInfo--mcpwTM-.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DKA5np85.js → StepMedicalProfessionalPersonalInfo-dLbOXQIJ.js} +20 -20
- package/chunk/{StepMedicalProfessionalPersonalInfo-DKA5np85.js.map → StepMedicalProfessionalPersonalInfo-dLbOXQIJ.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DNhZGs2f.js → StepMemberPersonalInfo-BKHMUtj2.js} +15 -15
- package/chunk/{StepMemberPersonalInfo-DNhZGs2f.js.map → StepMemberPersonalInfo-BKHMUtj2.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CvATZvNo.js → StepMemberPersonalInfo-Bcbs11kI.js} +15 -15
- package/chunk/{StepMemberPersonalInfo-CvATZvNo.js.map → StepMemberPersonalInfo-Bcbs11kI.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DbSAn1aA.js → StepMoverPersonalInfo-BKJIrW0I.js} +13 -13
- package/chunk/{StepMoverPersonalInfo-DbSAn1aA.js.map → StepMoverPersonalInfo-BKJIrW0I.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BLqEaySL.js → StepMoverPersonalInfo-DHGhPTGD.js} +13 -13
- package/chunk/{StepMoverPersonalInfo-BLqEaySL.js.map → StepMoverPersonalInfo-DHGhPTGD.js.map} +1 -1
- package/chunk/{StepOverrideComponent-ghp8yoRN.js → StepOverrideComponent-7rPDbArF.js} +7 -7
- package/chunk/{StepOverrideComponent-ghp8yoRN.js.map → StepOverrideComponent-7rPDbArF.js.map} +1 -1
- package/chunk/{StepOverrideComponent-C9h9fP27.js → StepOverrideComponent-BegU2Ypq.js} +7 -7
- package/chunk/{StepOverrideComponent-C9h9fP27.js.map → StepOverrideComponent-BegU2Ypq.js.map} +1 -1
- package/chunk/{StepSMSLoop-CDRG7-3o.js → StepSMSLoop-WMnyUemP.js} +5 -5
- package/chunk/{StepSMSLoop-CDRG7-3o.js.map → StepSMSLoop-WMnyUemP.js.map} +1 -1
- package/chunk/{StepSMSLoop-wiA0rt4U.js → StepSMSLoop-k6YbuoGy.js} +5 -5
- package/chunk/{StepSMSLoop-wiA0rt4U.js.map → StepSMSLoop-k6YbuoGy.js.map} +1 -1
- package/chunk/StepSSO-Bx1gQq5b.js +4 -4
- package/chunk/StepSSO-Cy9ViRyN.js +4 -4
- package/chunk/{StepSocialSecurityNumber-CGZhAqYm.js → StepSocialSecurityNumber-Djep-ZY1.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-CGZhAqYm.js.map → StepSocialSecurityNumber-Djep-ZY1.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-ZJ1ZNHjg.js → StepSocialSecurityNumber-DwYQJFSw.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-ZJ1ZNHjg.js.map → StepSocialSecurityNumber-DwYQJFSw.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-B8QwLWUK.js → StepStudentPersonalInfo-3JoFLWbf.js} +18 -18
- package/chunk/{StepStudentPersonalInfo-B8QwLWUK.js.map → StepStudentPersonalInfo-3JoFLWbf.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BXWQv_JA.js → StepStudentPersonalInfo-DbSj3RAG.js} +18 -18
- package/chunk/{StepStudentPersonalInfo-BXWQv_JA.js.map → StepStudentPersonalInfo-DbSj3RAG.js.map} +1 -1
- package/chunk/{StepSuccess-DmWCexUW.js → StepSuccess-Detlzl_x.js} +6 -6
- package/chunk/{StepSuccess-DmWCexUW.js.map → StepSuccess-Detlzl_x.js.map} +1 -1
- package/chunk/{StepSuccess-DZ-fwvIw.js → StepSuccess-QubTi-Zr.js} +6 -6
- package/chunk/{StepSuccess-DZ-fwvIw.js.map → StepSuccess-QubTi-Zr.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BRTHwZ0Z.js → StepTeacherPersonalInfo-CcCuMb2Q.js} +16 -16
- package/chunk/{StepTeacherPersonalInfo-BRTHwZ0Z.js.map → StepTeacherPersonalInfo-CcCuMb2Q.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BcCWpqUN.js → StepTeacherPersonalInfo-DgbTjRnf.js} +16 -16
- package/chunk/{StepTeacherPersonalInfo-BcCWpqUN.js.map → StepTeacherPersonalInfo-DgbTjRnf.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BFizJiyZ.js +4 -4
- package/chunk/StepThirdPartyLoop-C9d7QWS3.js +4 -4
- package/chunk/{TeacherSchoolComponent-DLxAYJLl.js → TeacherSchoolComponent-B6wZwHb1.js} +8 -8
- package/chunk/{TeacherSchoolComponent-DLxAYJLl.js.map → TeacherSchoolComponent-B6wZwHb1.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-aOI2VcI5.js → TeacherSchoolComponent-DF0oyfLp.js} +8 -8
- package/chunk/{TeacherSchoolComponent-aOI2VcI5.js.map → TeacherSchoolComponent-DF0oyfLp.js.map} +1 -1
- package/chunk/TestingRouteOverrides-DXjtFZZd.js +4 -4
- package/chunk/TestingRouteOverrides-fnlJLg1Z.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-DC8twM4t.js +4 -4
- package/chunk/countryUtils-CF4wYFAO.js +12 -0
- package/chunk/{countryUtils-D1471i0b.js.map → countryUtils-CF4wYFAO.js.map} +1 -1
- package/chunk/{countryUtils-KL2KBMOv.js → countryUtils-DVCfJNrG.js} +5 -5
- package/chunk/{countryUtils-KL2KBMOv.js.map → countryUtils-DVCfJNrG.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +4 -4
- package/chunk/da-DwrVoxto.js +4 -4
- package/chunk/de-IWGZLhgY.js +4 -4
- package/chunk/{downshift.esm-3XGVdV4K.js → downshift.esm-Dg8Q4WfY.js} +5 -5
- package/chunk/{downshift.esm-3XGVdV4K.js.map → downshift.esm-Dg8Q4WfY.js.map} +1 -1
- package/chunk/{downshift.esm-DmlDHS_b.js → downshift.esm-Dnlt_89v.js} +5 -5
- package/chunk/{downshift.esm-DmlDHS_b.js.map → downshift.esm-Dnlt_89v.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-BBKd53_B.js +4 -4
- package/chunk/empties-DcQjcgEV.js +4 -4
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/getInstallType-BRxisNNY.js +4 -4
- package/chunk/getInstallType-DlS_DNKt.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/hooks-B7aeAwHn.js +4 -4
- package/chunk/hooks-B7aeAwHn.js.map +1 -1
- package/chunk/hooks-D0X_qdc-.js +4 -4
- package/chunk/hooks-D0X_qdc-.js.map +1 -1
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/i18next-iyVj5hRL.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/intl-BK4prEGw.js +4 -4
- package/chunk/is-CvmKEON9.js +4 -4
- package/chunk/it-CnmveGgC.js +4 -4
- package/chunk/iw-DFUYHkxF.js +4 -4
- package/chunk/ja-CjVb2tWW.js +4 -4
- package/chunk/jsx-runtime-BUMIo32n.js +4 -4
- package/chunk/jsx-runtime-DwmrsRqi.js +4 -4
- package/chunk/kk-Dvz4nK6K.js +4 -4
- package/chunk/ko-DzOqBMGC.js +4 -4
- package/chunk/lo-C2WPq55d.js +4 -4
- package/chunk/lt-BSDYvjTF.js +4 -4
- package/chunk/lv-CefDPT-M.js +4 -4
- package/chunk/mockProgramBranding-C9Ysu3Mp.js +4 -4
- package/chunk/{mockProgramConfiguration-YBQMVL51.js → mockProgramConfiguration-BNqSCrMG.js} +6 -5
- package/chunk/{mockProgramConfiguration-YBQMVL51.js.map → mockProgramConfiguration-BNqSCrMG.js.map} +1 -1
- package/chunk/mockProgramI18n-CgYx_1_a.js +4 -4
- package/chunk/mockProgramTheme-Cfk2dzF3.js +4 -4
- package/chunk/mocks-DV23paUj.js +4 -4
- package/chunk/mocks-R-p7VtJz.js +4 -4
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-DXn-alcY.js → programThemeGetters-Dcff4Bu0.js} +5 -5
- package/chunk/{programThemeGetters-DXn-alcY.js.map → programThemeGetters-Dcff4Bu0.js.map} +1 -1
- package/chunk/{programThemeGetters-C8JS1yEr.js → programThemeGetters-Ds4txnn8.js} +5 -5
- package/chunk/{programThemeGetters-C8JS1yEr.js.map → programThemeGetters-Ds4txnn8.js.map} +1 -1
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/stepComponentHelpers-CyqXTDdj.js +4 -4
- package/chunk/stepComponentHelpers-Dztw-HNP.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-84_Wz8sd.js → useCollectFieldsEndpoint-CslbAox0.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-84_Wz8sd.js.map → useCollectFieldsEndpoint-CslbAox0.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-CXmPHndq.js → useCollectFieldsEndpoint-Dye0dLpF.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-CXmPHndq.js.map → useCollectFieldsEndpoint-Dye0dLpF.js.map} +1 -1
- package/chunk/useMetrics-C13Ap129.js +4 -4
- package/chunk/useMetrics-O66_lNx5.js +4 -4
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +1276 -1263
- package/sheerid.js.map +1 -1
- package/chunk/countryUtils-D1471i0b.js +0 -12
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.313.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793730421508
|
|
5
|
+
* BUILD_DATE: Tue Nov 03 2026 18:27:01 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 68b00c11ee3e150081caff4f99f9dec6ca549588
|
|
7
7
|
*/
|
|
8
8
|
import { dt as e, u as t } from "./i18next-iyVj5hRL.js";
|
|
9
9
|
import { n, t as r } from "./jsx-runtime-DwmrsRqi.js";
|
|
10
|
-
import { o as i } from "./programThemeGetters-
|
|
10
|
+
import { o as i } from "./programThemeGetters-Ds4txnn8.js";
|
|
11
11
|
import { b as a } from "./runtimeTypes-B2AGNJMT.js";
|
|
12
|
-
import { h as o } from "./FormFooterComponent-
|
|
12
|
+
import { h as o } from "./FormFooterComponent-DBtwjSTL.js";
|
|
13
13
|
import { n as s } from "../sheerid.js";
|
|
14
|
-
import { t as c } from "./useCollectFieldsEndpoint-
|
|
14
|
+
import { t as c } from "./useCollectFieldsEndpoint-Dye0dLpF.js";
|
|
15
15
|
import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-CyqXTDdj.js";
|
|
16
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-
|
|
17
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-
|
|
18
|
-
import { i as x } from "./FormSelectChoice-
|
|
19
|
-
import { t as S } from "./BirthDateComponent-
|
|
20
|
-
import { t as C } from "./PostalCodeComponent-
|
|
21
|
-
import { t as w } from "./CountryComponentWrapper-
|
|
22
|
-
import { t as T } from "./ExtraMessage-
|
|
23
|
-
import { t as E } from "./ChangeLocaleComponent-
|
|
24
|
-
import { t as D } from "./PersonalInfoStepWrapper-
|
|
25
|
-
import { t as O } from "./countryUtils-
|
|
26
|
-
import { t as k } from "./StatusComponent-
|
|
27
|
-
import { t as A } from "./LicensedProfessionalOrganizationComponent-
|
|
16
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-Bay_IP0-.js";
|
|
17
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-CTdBFGeG.js";
|
|
18
|
+
import { i as x } from "./FormSelectChoice-DFY-ryks.js";
|
|
19
|
+
import { t as S } from "./BirthDateComponent-CRbZs5-I.js";
|
|
20
|
+
import { t as C } from "./PostalCodeComponent-tJKRpJv-.js";
|
|
21
|
+
import { t as w } from "./CountryComponentWrapper-BlVfixh4.js";
|
|
22
|
+
import { t as T } from "./ExtraMessage-CBPYszyt.js";
|
|
23
|
+
import { t as E } from "./ChangeLocaleComponent-Bmq-3m3v.js";
|
|
24
|
+
import { t as D } from "./PersonalInfoStepWrapper-CPDfbnD6.js";
|
|
25
|
+
import { t as O } from "./countryUtils-CF4wYFAO.js";
|
|
26
|
+
import { t as k } from "./StatusComponent-Ct5RQIkF.js";
|
|
27
|
+
import { t as A } from "./LicensedProfessionalOrganizationComponent-BGQZWcaF.js";
|
|
28
28
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
29
29
|
var j = r(), M = ({ verificationService: r }) => {
|
|
30
30
|
let M = i(), N = r.viewModel, { fieldValidationErrors: P } = r, F = r.verificationResponse, I = o(F), L = N.localeChoice.value, R = t(), { availableStatuses: z } = c({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-oemUzTIe.js","names":["produce","LicensedProfessionalStatusComponent","LicensedProfessionalOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StatusComponent","LicensedProfessionalOrganizationComponent","import_jsx_runtime","StepLicensedProfessionalPersonalInfoComponent","programConfiguration","viewModel","verificationService","verificationResponse","failedInstantMatch","locale","options","dynamicStatuses","statusOptions","countryChoiceValue","needToPickCountry","updateLicensedProfessionalViewModel","nextState","key","value","option","fieldValidationErrors","FormattedHTMLMessage","updatedStatuses","status","choice","newValue","event"],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\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 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}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\n );\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\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 {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.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"],"mappings":";;;;;;;;;;;;;;;;;;;;;A,aAgDawC,KAAiD,EAC5D,6BACwD;CACxD,IAAMC,IAAuB7B,EAAwB,GAC/C8B,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BC,IACJD,EAAoB,sBAChBE,IAAqB/B,EAAsB8B,CAAoB,GAE/DE,IAASJ,EAAU,aAAa,OAChCK,IAAUrC,EAAW,GAErB,EAAE,mBAAmBsC,MAAoBhC,EAAyB;EACtE,gBAAgB4B,EAAqB;EACrC,aAAaA,EAAqB;EAClC;CACF,CAAC,GAEKK,IAAgBpB,EACnBmB,KAAmBJ,EAAqB,iBAC3C,GAEMM,IAAqBR,EAAU,eAAe,OAC9CS,IAAoBf,EAAyBK,GAAsBS,CAAkB,GAErFE,KACJ,GACA,MACG;EACH,IAAMC,IAAuDrD,EAC3D0C,IACC,MAAqD;GACpD,EAAOY,KAAeC;EACxB,CACF;EACA,EAAoB,gBAAgBF,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAAd,EAAA,KAAA,CAACJ,GAAD;EACuB;EACrB,MAAMS,EAAqB;EAF7B,UAAA;GAIE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alPersonalInfo-BrIV2PqV.js","names":["produce","LicensedProfessionalStatusComponent","LicensedProfessionalOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StatusComponent","LicensedProfessionalOrganizationComponent","import_jsx_runtime","StepLicensedProfessionalPersonalInfoComponent","programConfiguration","viewModel","verificationService","verificationResponse","failedInstantMatch","locale","options","dynamicStatuses","statusOptions","countryChoiceValue","needToPickCountry","updateLicensedProfessionalViewModel","nextState","key","value","option","fieldValidationErrors","FormattedHTMLMessage","updatedStatuses","status","choice","newValue","event"],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\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 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}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\n );\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\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 {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.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"],"mappings":";;;;;;;;;;;;;;;;;;;;;A,aAgDawC,KAAiD,EAC5D,6BACwD;CACxD,IAAMC,IAAuB7B,EAAwB,GAC/C8B,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BC,IACJD,EAAoB,sBAChBE,IAAqB/B,EAAsB8B,CAAoB,GAE/DE,IAASJ,EAAU,aAAa,OAChCK,IAAUrC,EAAW,GAErB,EAAE,mBAAmBsC,MAAoBhC,EAAyB;EACtE,gBAAgB4B,EAAqB;EACrC,aAAaA,EAAqB;EAClC;CACF,CAAC,GAEKK,IAAgBpB,EACnBmB,KAAmBJ,EAAqB,iBAC3C,GAEMM,IAAqBR,EAAU,eAAe,OAC9CS,IAAoBf,EAAyBK,GAAsBS,CAAkB,GAErFE,KACJ,GACA,MACG;EACH,IAAMC,IAAuDrD,EAC3D0C,IACC,MAAqD;GACpD,EAAOY,KAAeC;EACxB,CACF;EACA,EAAoB,gBAAgBF,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAAd,EAAA,KAAA,CAACJ,GAAD;EACuB;EACrB,MAAMS,EAAqB;EAF7B,UAAA;GAIE,iBAAA,GAAAL,EAAA,IAAA,CAACxB,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAAwB,EAAA,IAAA,CAACL,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAAK,EAAA,IAAA,CAACP,GAAD;IACuB;IACrB,UAAUZ,EAAwB,SAAS,CAAC,EAAE;GAC/C,CAAA;GAED,iBAAA,GAAAmB,EAAA,IAAA,CAACtC,GAAD;IACE,WAAU;IACV,OAAOgD,EAAc,MAAM,MAAWO,EAAO,UAAUd,EAAU,SA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AU,cAAc;IACxE,UAAUtB,EAAwB,aAAa,CAAC,EAAE;GACnD,CAAA,IACC;GAEH2B,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAAR,EAAA,IAAA,CAAChB,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAAgB,EAAA,IAAA,CAAC/B,GAAD;IACuB;IACrB,WAAW,CAAC,CAACiD,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJAL,EAAoC,YAAY;MAC9C,GAAGT,EAAoB,UAAU;MACjC,oBAAoBmB;KACtB,CAAC,GACD7C,EAAqC,sBAAsB6C,GAAUnB,CAAmB;IAC1F;IACW;IACX,UAAUvB,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GAED,iBAAA,GAAAmB,EAAA,IAAA,CAACN,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAM,EAAA,IAAA,CAACb,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC+B,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAlB,EAAA,IAAA,CAACX,GAAD;IACE,MAAMf,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA0B,EAAA,IAAA,CAACmB,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
@@ -4,31 +4,31 @@
|
|
|
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.313.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793730429946
|
|
9
|
+
* BUILD_DATE: Tue Nov 03 2026 18:27:09 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 68b00c11ee3e150081caff4f99f9dec6ca549588
|
|
11
11
|
*/
|
|
12
12
|
import { p as e, s as t } from "./intl-BK4prEGw.js";
|
|
13
13
|
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { n as r, t as i } from "./jsx-runtime-BUMIo32n.js";
|
|
15
|
-
import { o as a } from "./programThemeGetters-
|
|
16
|
-
import { m as o } from "./FormFooterComponent-
|
|
15
|
+
import { o as a } from "./programThemeGetters-Dcff4Bu0.js";
|
|
16
|
+
import { m as o } from "./FormFooterComponent-AuOOdrTD.js";
|
|
17
17
|
import { t as s } from "../_mysheerid-preview.js";
|
|
18
|
-
import { t as c } from "./useCollectFieldsEndpoint-
|
|
18
|
+
import { t as c } from "./useCollectFieldsEndpoint-CslbAox0.js";
|
|
19
19
|
import { d as l, f as u, r as d, t as f } from "./stepComponentHelpers-Dztw-HNP.js";
|
|
20
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-
|
|
21
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-
|
|
22
|
-
import { i as x } from "./FormSelectChoice-
|
|
23
|
-
import { t as S } from "./BirthDateComponent-
|
|
24
|
-
import { t as C } from "./PostalCodeComponent-
|
|
25
|
-
import { t as w } from "./CountryComponentWrapper-
|
|
26
|
-
import { t as T } from "./ExtraMessage-
|
|
27
|
-
import { t as E } from "./ChangeLocaleComponent-
|
|
28
|
-
import { t as D } from "./PersonalInfoStepWrapper-
|
|
29
|
-
import { t as O } from "./countryUtils-
|
|
30
|
-
import { t as k } from "./StatusComponent-
|
|
31
|
-
import { t as A } from "./LicensedProfessionalOrganizationComponent-
|
|
20
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-DpiYztJ5.js";
|
|
21
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-CR8ta98F.js";
|
|
22
|
+
import { i as x } from "./FormSelectChoice-6hD-rK1b.js";
|
|
23
|
+
import { t as S } from "./BirthDateComponent-D5pVkYha.js";
|
|
24
|
+
import { t as C } from "./PostalCodeComponent-D-7iqpnt.js";
|
|
25
|
+
import { t as w } from "./CountryComponentWrapper-Ck2iP9bh.js";
|
|
26
|
+
import { t as T } from "./ExtraMessage-QVMqiZm3.js";
|
|
27
|
+
import { t as E } from "./ChangeLocaleComponent-BMuiuSyJ.js";
|
|
28
|
+
import { t as D } from "./PersonalInfoStepWrapper-DbqQudr4.js";
|
|
29
|
+
import { t as O } from "./countryUtils-DVCfJNrG.js";
|
|
30
|
+
import { t as k } from "./StatusComponent-BBX4mkER.js";
|
|
31
|
+
import { t as A } from "./LicensedProfessionalOrganizationComponent-z7QjAVXa.js";
|
|
32
32
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
33
33
|
var j = i(), M = ({ verificationService: i }) => {
|
|
34
34
|
let M = a(), N = i.viewModel, { fieldValidationErrors: P } = i, F = i.verificationResponse, I = o(F), L = N.localeChoice.value, R = t(), { availableStatuses: z } = c({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-LYFcQDpP.js","names":["produce","LicensedProfessionalStatusComponent","LicensedProfessionalOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StatusComponent","LicensedProfessionalOrganizationComponent","import_jsx_runtime","StepLicensedProfessionalPersonalInfoComponent","programConfiguration","viewModel","verificationService","verificationResponse","failedInstantMatch","locale","options","dynamicStatuses","statusOptions","countryChoiceValue","needToPickCountry","updateLicensedProfessionalViewModel","nextState","key","value","option","fieldValidationErrors","updatedStatuses","status","choice","newValue","event"],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\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 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}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\n );\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\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 {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.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"],"mappings":";;;;;;;;;;;;;;;;;;;;;A,aAgDayC,KAAiD,EAC5D,6BACwD;CACxD,IAAMC,IAAuB5B,EAAwB,GAC/C6B,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BC,IACJD,EAAoB,sBAChBE,IAAqB/B,EAAsB8B,CAAoB,GAE/DE,IAASJ,EAAU,aAAa,OAChCK,IAAUtC,EAAW,GAErB,EAAE,mBAAmBuC,MAAoBhC,EAAyB;EACtE,gBAAgB4B,EAAqB;EACrC,aAAaA,EAAqB;EAClC;CACF,CAAC,GAEKK,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O;GAAsB,CAAA;GAErF,iBAAA,GAAAM,EAAA,IAAA,CAACb,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC+B,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAlB,EAAA,IAAA,CAACX,GAAD;IACE,MAAMlB,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA6B,EAAA,IAAA,CAAC5B,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-SbTP67r7.js","names":["produce","LicensedProfessionalStatusComponent","LicensedProfessionalOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StatusComponent","LicensedProfessionalOrganizationComponent","import_jsx_runtime","StepLicensedProfessionalPersonalInfoComponent","programConfiguration","viewModel","verificationService","verificationResponse","failedInstantMatch","locale","options","dynamicStatuses","statusOptions","countryChoiceValue","needToPickCountry","updateLicensedProfessionalViewModel","nextState","key","value","option","fieldValidationErrors","updatedStatuses","status","choice","newValue","event"],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\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 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}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\n );\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\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 {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.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"],"mappings":";;;;;;;;;;;;;;;;;;;;;A,aAgDayC,KAAiD,EAC5D,6BACwD;CACxD,IAAMC,IAAuB5B,EAAwB,GAC/C6B,IAAYC,EAAoB,WAChC,EAAE,6BAA0BA,GAC5BC,IACJD,EAAoB,sBAChBE,IAAqB/B,EAAsB8B,CAAoB,GAE/DE,IAASJ,EAAU,aAAa,OAChCK,IAAUtC,EAAW,GAErB,EAAE,mBAAmBuC,MAAoBhC,EAAyB;EACtE,gBAAgB4B,EAAqB;EACrC,aAAaA,EAAqB;EAClC;CACF,CAAC,GAEKK,IAAgBpB,EACnBmB,KAAmBJ,EAAqB,iBAC3C,GAEMM,IAAqBR,EAAU,eAAe,OAC9CS,IAAoBf,EAAyBK,GAAsBS,CAAkB,GAErFE,KACJ,GACA,MACG;EACH,IAAMC,IAAuDtD,EAC3D2C,IACC,MAAqD;GACpD,EAAOY,KAAeC;EACxB,CACF;EACA,EAAoB,gBAAgBF,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAAd,EAAA,KAAA,CAACJ,GAAD;EACuB;EACrB,MAAMS,EAAqB;EAF7B,UAAA;GAIE,iBAAA,G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js → StepLowIncomePersonalInfo-BMESrbPv.js}
RENAMED
|
@@ -4,34 +4,34 @@
|
|
|
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.313.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793730429946
|
|
9
|
+
* BUILD_DATE: Tue Nov 03 2026 18:27:09 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 68b00c11ee3e150081caff4f99f9dec6ca549588
|
|
11
11
|
*/
|
|
12
12
|
import { At as e, p as t, s as n } from "./intl-BK4prEGw.js";
|
|
13
13
|
import { S as r, b as i } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { n as a, s as o, t as s } from "./jsx-runtime-BUMIo32n.js";
|
|
15
|
-
import { o as c } from "./programThemeGetters-
|
|
15
|
+
import { o as c } from "./programThemeGetters-Dcff4Bu0.js";
|
|
16
16
|
import { a as l } from "./empties-DcQjcgEV.js";
|
|
17
|
-
import { C as u, m as d } from "./FormFooterComponent-
|
|
17
|
+
import { C as u, m as d } from "./FormFooterComponent-AuOOdrTD.js";
|
|
18
18
|
import { t as f } from "../_mysheerid-preview.js";
|
|
19
|
-
import { t as p } from "./useCollectFieldsEndpoint-
|
|
19
|
+
import { t as p } from "./useCollectFieldsEndpoint-CslbAox0.js";
|
|
20
20
|
import { d as m, f as h, i as g, r as _, t as v } from "./stepComponentHelpers-Dztw-HNP.js";
|
|
21
|
-
import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-
|
|
22
|
-
import { n as T, t as E } from "./PersonalInfoStepSubmitButton-
|
|
23
|
-
import { i as D } from "./FormSelectChoice-
|
|
24
|
-
import { t as O } from "./BirthDateComponent-
|
|
25
|
-
import { t as k } from "./PostalCodeComponent-
|
|
26
|
-
import { t as A } from "./CountryComponentWrapper-
|
|
27
|
-
import { t as j } from "./City-
|
|
28
|
-
import { t as M } from "./AddressComponent-
|
|
29
|
-
import { t as N } from "./ChangeLocaleComponent-
|
|
30
|
-
import { t as P } from "./PersonalInfoStepWrapper-
|
|
31
|
-
import { t as F } from "./countryUtils-
|
|
32
|
-
import { t as I } from "./StateSelectComponent-
|
|
33
|
-
import { n as L, t as R } from "./LowIncomeOrganizationComponent-
|
|
34
|
-
import { t as z } from "./StatusComponent-
|
|
21
|
+
import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-DpiYztJ5.js";
|
|
22
|
+
import { n as T, t as E } from "./PersonalInfoStepSubmitButton-CR8ta98F.js";
|
|
23
|
+
import { i as D } from "./FormSelectChoice-6hD-rK1b.js";
|
|
24
|
+
import { t as O } from "./BirthDateComponent-D5pVkYha.js";
|
|
25
|
+
import { t as k } from "./PostalCodeComponent-D-7iqpnt.js";
|
|
26
|
+
import { t as A } from "./CountryComponentWrapper-Ck2iP9bh.js";
|
|
27
|
+
import { t as j } from "./City-CFAsI7Sk.js";
|
|
28
|
+
import { t as M } from "./AddressComponent-xHLmwR7C.js";
|
|
29
|
+
import { t as N } from "./ChangeLocaleComponent-BMuiuSyJ.js";
|
|
30
|
+
import { t as P } from "./PersonalInfoStepWrapper-DbqQudr4.js";
|
|
31
|
+
import { t as F } from "./countryUtils-DVCfJNrG.js";
|
|
32
|
+
import { t as I } from "./StateSelectComponent-DpYIJuax.js";
|
|
33
|
+
import { n as L, t as R } from "./LowIncomeOrganizationComponent-DfcG7yCt.js";
|
|
34
|
+
import { t as z } from "./StatusComponent-BBX4mkER.js";
|
|
35
35
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
36
36
|
var B = /* @__PURE__ */ e(o(), 1), V = s(), H = ({ verificationService: e }) => {
|
|
37
37
|
let o = c(), { viewModel: s } = e, H = n();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-SmoWqnNE.js","names":["produce","LowIncomeOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","__toESM","fn","getOptions","logger","VerificationStepsEnum","FormattedHTMLMessage","require_react","require_jsx_runtime","useProgramConfiguration","blankOrganization","isLowIncomeVM","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","orgToOption","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","EBTCardNumberComponent","LowIncomeOrganizationComponent","StatusComponent","import_react","import_jsx_runtime","StepLowIncomePersonalInfoComponent","programConfiguration","verificationService","options","viewModel","verificationResponse","failedInstantMatch","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","selectedStatus","isSelectedStatusSnapBenefits","updateLowIncomeViewModel","nextState","key","value","remaining","id","option","fieldValidationErrors","updatedStatuses","status","newValue","choice","stateValue","stateChoice","event"],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\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 getFieldConfigByFieldId,\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}\nexport const StepLowIncomePersonalInfoComponent = ({\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\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 =\n verificationService.verificationResponse as LowIncomePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\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(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LowIncomeStatus[],\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\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 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 {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;A,4CA2DakD,KAAsC,EACjD,6BAC6C;CAC7C,IAAMC,IAAuBnC,EAAwB,GAC/C,EAAE,iBAAcoC,GAChBC,IAAU3C,EAAW;CAE3B,IAAI,CAACQ,EAAcoC,CAAS,GAE1B,OADA3C,EAAO,MAAM,yCAAyC,GAC/C;CAGT,IAAM,EAAE,6BAA0ByC,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBrC,EAAsB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ACnC,OAAOG,EAAU;IACjB,WAAW,CAAC,CAACiB,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADAP,EAAyB,eAAeU,CAAQ,GAChDpD,EAAqC,eAAeoD,GAAUtB,CAAmB;IACnF;IACA,qBAAqBE,EAAU,iBAAiBA,EAAU,cAAc;IACxE,UAAU5B,EAAwB,aAAa,CAAC,EAAE;GACnD,CAAA,IACC;IACF2B,EAAQ,oBAAoB,CAAC,EAAA,CAAG,KAAK,MACrC,iBAAA,GAAAJ,EAAA,IAAA,CAACpB,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAAoB,EAAA,IAAA,CAAC1C,GAAD;IACuB;IACrB,WAAW,CAAC,CAACgE,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJAP,EAAyB,YAAY;MACnC,GAAGZ,EAAoB,UAAU;MACjC,oBAAoBsB;KACtB,CAAC,GACDpD,EAAqC,sBAAsBoD,GAAUtB,CAAmB;IAC1F;IACW;IACX,UAAU1B,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GACD,iBAAA,GAAAuB,EAAA,IAAA,CAACjB,GAAD;IACuB;IACrB,WAAW,CAAC,CAACuC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAAtB,EAAA,IAAA,CAACf,GAAD;IACE,MAAMtB,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAAqC,EAAA,IAAA,CAACpC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepLowIncomePersonalInfo-BMESrbPv.js","names":["produce","LowIncomeOrganization","FirstName","LastName","BirthDate","Email","PhoneNumber","MarketConsentWrapper","__toESM","fn","getOptions","logger","VerificationStepsEnum","FormattedHTMLMessage","require_react","require_jsx_runtime","useProgramConfiguration","blankOrganization","isLowIncomeVM","hasFailedInstantMatch","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","orgToOption","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","EBTCardNumberComponent","LowIncomeOrganizationComponent","StatusComponent","import_react","import_jsx_runtime","StepLowIncomePersonalInfoComponent","programConfiguration","verificationService","options","viewModel","verificationResponse","failedInstantMatch","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","selectedStatus","isSelectedStatusSnapBenefits","updateLowIncomeViewModel","nextState","key","value","remaining","id","option","fieldValidationErrors","updatedStatuses","status","newValue","choice","stateValue","stateChoice","event"],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\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 getFieldConfigByFieldId,\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}\nexport const StepLowIncomePersonalInfoComponent = ({\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const programConfiguration = useProgramConfiguration();\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 =\n verificationService.verificationResponse as LowIncomePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\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(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LowIncomeStatus[],\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\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 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 {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;A,4CA2DakD,KAAsC,EACjD,6BAC6C;CAC7C,IAAMC,IAAuBnC,EAAwB,GAC/C,EAAE,iBAAcoC,GAChBC,IAAU3C,EAAW;CAE3B,IAAI,CAACQ,EAAcoC,CAAS,GAE1B,OADA3C,EAAO,MAAM,yCAAyC,GAC/C;CAGT,IAAM,EAAE,6BAA0ByC,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBrC,EAAsBoC,CAAoB,GAE/D,EAAE,mBAAmBE,MAAoBpC,EAAyB;EACtE,gBAAgBkC,EAAqB;EACrC,aAAaA,EAAqB;EAClC;CACF,CAAC,GAEKG,IAAqBJ,EAAU,eAAe,OAC9CK,IAAoBhB,EAAyBQ,GAAsBO,CAAkB,GAErFE,IAAgBzB,EACnBsB,KAAmBF,EAAqB,iBAC3C,GAEMM,IAASP,EAAU,aAAa,OAEhCQ,IAAiBR,EAAU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,CAAG,KAAK,MACrC,iBAAA,GAAAJ,EAAA,IAAA,CAACpB,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAAoB,EAAA,IAAA,CAAC1C,GAAD;IACuB;IACrB,WAAW,CAAC,CAACgE,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJAP,EAAyB,YAAY;MACnC,GAAGZ,EAAoB,UAAU;MACjC,oBAAoBsB;KACtB,CAAC,GACDpD,EAAqC,sBAAsBoD,GAAUtB,CAAmB;IAC1F;IACW;IACX,UAAU1B,EAAwB,oBAAoB,CAAC,EAAE;GAC1D,CAAA;GACD,iBAAA,GAAAuB,EAAA,IAAA,CAACjB,GAAD;IACuB;IACrB,WAAW,CAAC,CAACuC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAAtB,EAAA,IAAA,CAACf,GAAD;IACE,MAAMtB,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAAqC,EAAA,IAAA,CAACpC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
package/chunk/{StepLowIncomePersonalInfo-B-DGFkrI.js → StepLowIncomePersonalInfo-C5_F7QeG.js}
RENAMED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.313.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793730421508
|
|
5
|
+
* BUILD_DATE: Tue Nov 03 2026 18:27:01 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 68b00c11ee3e150081caff4f99f9dec6ca549588
|
|
7
7
|
*/
|
|
8
8
|
import { At as e, dt as t, u as n } from "./i18next-iyVj5hRL.js";
|
|
9
9
|
import { n as r, s as i, t as a } from "./jsx-runtime-DwmrsRqi.js";
|
|
10
|
-
import { o } from "./programThemeGetters-
|
|
10
|
+
import { o } from "./programThemeGetters-Ds4txnn8.js";
|
|
11
11
|
import { S as s, b as c } from "./runtimeTypes-B2AGNJMT.js";
|
|
12
12
|
import { a as l } from "./empties-BBKd53_B.js";
|
|
13
|
-
import { E as u, h as d } from "./FormFooterComponent-
|
|
13
|
+
import { E as u, h as d } from "./FormFooterComponent-DBtwjSTL.js";
|
|
14
14
|
import { n as f } from "../sheerid.js";
|
|
15
|
-
import { t as p } from "./useCollectFieldsEndpoint-
|
|
15
|
+
import { t as p } from "./useCollectFieldsEndpoint-Dye0dLpF.js";
|
|
16
16
|
import { d as m, f as h, i as g, r as _, t as v } from "./stepComponentHelpers-CyqXTDdj.js";
|
|
17
|
-
import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-
|
|
18
|
-
import { n as T, t as E } from "./PersonalInfoStepSubmitButton-
|
|
19
|
-
import { i as D } from "./FormSelectChoice-
|
|
20
|
-
import { t as O } from "./BirthDateComponent-
|
|
21
|
-
import { t as k } from "./PostalCodeComponent-
|
|
22
|
-
import { t as A } from "./CountryComponentWrapper-
|
|
23
|
-
import { t as j } from "./City-
|
|
24
|
-
import { t as M } from "./AddressComponent-
|
|
25
|
-
import { t as N } from "./ChangeLocaleComponent-
|
|
26
|
-
import { t as P } from "./PersonalInfoStepWrapper-
|
|
27
|
-
import { t as F } from "./countryUtils-
|
|
28
|
-
import { t as I } from "./StateSelectComponent-
|
|
29
|
-
import { n as L, t as R } from "./LowIncomeOrganizationComponent-
|
|
30
|
-
import { t as z } from "./StatusComponent-
|
|
17
|
+
import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-Bay_IP0-.js";
|
|
18
|
+
import { n as T, t as E } from "./PersonalInfoStepSubmitButton-CTdBFGeG.js";
|
|
19
|
+
import { i as D } from "./FormSelectChoice-DFY-ryks.js";
|
|
20
|
+
import { t as O } from "./BirthDateComponent-CRbZs5-I.js";
|
|
21
|
+
import { t as k } from "./PostalCodeComponent-tJKRpJv-.js";
|
|
22
|
+
import { t as A } from "./CountryComponentWrapper-BlVfixh4.js";
|
|
23
|
+
import { t as j } from "./City-SZ26Bigy.js";
|
|
24
|
+
import { t as M } from "./AddressComponent-BHiOCbUv.js";
|
|
25
|
+
import { t as N } from "./ChangeLocaleComponent-Bmq-3m3v.js";
|
|
26
|
+
import { t as P } from "./PersonalInfoStepWrapper-CPDfbnD6.js";
|
|
27
|
+
import { t as F } from "./countryUtils-CF4wYFAO.js";
|
|
28
|
+
import { t as I } from "./StateSelectComponent-CWadMo4I.js";
|
|
29
|
+
import { n as L, t as R } from "./LowIncomeOrganizationComponent-BqbzF7QP.js";
|
|
30
|
+
import { t as z } from "./StatusComponent-Ct5RQIkF.js";
|
|
31
31
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
32
32
|
var B = /* @__PURE__ */ e(i(), 1), V = a(), H = ({ verificationService: e }) => {
|
|
33
33
|
let i = o(), { viewModel: a } = e, H = n();
|