@sheerid/jslib 2.304.0 → 2.306.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 +1096 -1103
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-OHgf-_sl.js → AddressComponent-CcEzpDGt.js} +8 -8
- package/chunk/{AddressComponent-DIp4rtF_.js.map → AddressComponent-CcEzpDGt.js.map} +1 -1
- package/chunk/{AddressComponent-DIp4rtF_.js → AddressComponent-uJCuo22u.js} +8 -8
- package/chunk/{AddressComponent-OHgf-_sl.js.map → AddressComponent-uJCuo22u.js.map} +1 -1
- package/chunk/{AnnouncingHeader-zH7WLU2-.js → AnnouncingHeader-DKOYC3b9.js} +6 -6
- package/chunk/{AnnouncingHeader-CnV2m0Ak.js.map → AnnouncingHeader-DKOYC3b9.js.map} +1 -1
- package/chunk/{AnnouncingHeader-CnV2m0Ak.js → AnnouncingHeader-gJrk6VDV.js} +6 -6
- package/chunk/{AnnouncingHeader-zH7WLU2-.js.map → AnnouncingHeader-gJrk6VDV.js.map} +1 -1
- package/chunk/{BirthDateComponent-oQPnVqSa.js → BirthDateComponent-DPwL_esM.js} +8 -8
- package/chunk/{BirthDateComponent-CucjHQqp.js.map → BirthDateComponent-DPwL_esM.js.map} +1 -1
- package/chunk/{BirthDateComponent-CucjHQqp.js → BirthDateComponent-c3-VfXxt.js} +8 -8
- package/chunk/{BirthDateComponent-oQPnVqSa.js.map → BirthDateComponent-c3-VfXxt.js.map} +1 -1
- package/chunk/{CaptchaComponent-D98si3Jy.js → CaptchaComponent-3YIkG9Wr.js} +54 -54
- package/chunk/{CaptchaComponent-D98si3Jy.js.map → CaptchaComponent-3YIkG9Wr.js.map} +1 -1
- package/chunk/{CaptchaComponent-DqGHJA-M.js → CaptchaComponent-B9U-3SMZ.js} +88 -88
- package/chunk/{CaptchaComponent-DqGHJA-M.js.map → CaptchaComponent-B9U-3SMZ.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-C8snL44m.js → ChangeLocaleComponent-FiBBf-GR.js} +9 -9
- package/chunk/{ChangeLocaleComponent-C8snL44m.js.map → ChangeLocaleComponent-FiBBf-GR.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CeHqgN6J.js → ChangeLocaleComponent-k7OjzNbY.js} +9 -9
- package/chunk/{ChangeLocaleComponent-CeHqgN6J.js.map → ChangeLocaleComponent-k7OjzNbY.js.map} +1 -1
- package/chunk/{City-7bUXB6DM.js → City-DWGcObHo.js} +8 -8
- package/chunk/{City-7bUXB6DM.js.map → City-DWGcObHo.js.map} +1 -1
- package/chunk/{City-aUxxLZ7_.js → City-PTqumFny.js} +8 -8
- package/chunk/{City-aUxxLZ7_.js.map → City-PTqumFny.js.map} +1 -1
- package/chunk/{CollegeNameComponent-YAs8pRV4.js → CollegeNameComponent-CxOhMPuq.js} +11 -11
- package/chunk/{CollegeNameComponent-B5as2wyn.js.map → CollegeNameComponent-CxOhMPuq.js.map} +1 -1
- package/chunk/{CollegeNameComponent-B5as2wyn.js → CollegeNameComponent-O9Aa01US.js} +11 -11
- package/chunk/{CollegeNameComponent-YAs8pRV4.js.map → CollegeNameComponent-O9Aa01US.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-BdrpxpHJ.js → CopyToClipboardComponent-BorxChs8.js} +9 -9
- package/chunk/{CopyToClipboardComponent-BdrpxpHJ.js.map → CopyToClipboardComponent-BorxChs8.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-Dm3-3x4b.js → CopyToClipboardComponent-ystjPwTW.js} +9 -9
- package/chunk/{CopyToClipboardComponent-Dm3-3x4b.js.map → CopyToClipboardComponent-ystjPwTW.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-IoxuPmMC.js → CountryComponentWrapper-CZK3RrMe.js} +12 -12
- package/chunk/{CountryComponentWrapper-BTUytS2o.js.map → CountryComponentWrapper-CZK3RrMe.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BTUytS2o.js → CountryComponentWrapper-DangmyAi.js} +29 -29
- package/chunk/{CountryComponentWrapper-IoxuPmMC.js.map → CountryComponentWrapper-DangmyAi.js.map} +1 -1
- package/chunk/{DischargeDateComponent-Cy1_zOya.js → DischargeDateComponent-CS7xH5hw.js} +16 -16
- package/chunk/{DischargeDateComponent-CTZiOL4E.js.map → DischargeDateComponent-CS7xH5hw.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CTZiOL4E.js → DischargeDateComponent-D7ahRNvU.js} +17 -17
- package/chunk/{DischargeDateComponent-Cy1_zOya.js.map → DischargeDateComponent-D7ahRNvU.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-CxSJbkjt.js → DriverLicenseNumberComponent-CIqKv5_E.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-CxSJbkjt.js.map → DriverLicenseNumberComponent-CIqKv5_E.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-Rky9SG-A.js → DriverLicenseNumberComponent-riQXCF7X.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-Rky9SG-A.js.map → DriverLicenseNumberComponent-riQXCF7X.js.map} +1 -1
- package/chunk/{EmailLoopPending-BZWT0n5I.js → EmailLoopPending-BvvnCpWf.js} +12 -12
- package/chunk/{EmailLoopPending-BZWT0n5I.js.map → EmailLoopPending-BvvnCpWf.js.map} +1 -1
- package/chunk/{EmailLoopPending-C319a8WP.js → EmailLoopPending-CfFPbM5A.js} +14 -14
- package/chunk/{EmailLoopPending-C319a8WP.js.map → EmailLoopPending-CfFPbM5A.js.map} +1 -1
- package/chunk/{ExtraMessage-B58a-KYp.js → ExtraMessage-B0Pl1Fx3.js} +7 -7
- package/chunk/{ExtraMessage-B58a-KYp.js.map → ExtraMessage-B0Pl1Fx3.js.map} +1 -1
- package/chunk/{ExtraMessage-C1LGtDyk.js → ExtraMessage-BtQiKR6F.js} +7 -7
- package/chunk/{ExtraMessage-C1LGtDyk.js.map → ExtraMessage-BtQiKR6F.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-HTKkHwO4.js → FirstResponderOrganizationComponent-3LHhZthH.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-D6M_yo4M.js.map → FirstResponderOrganizationComponent-3LHhZthH.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-D6M_yo4M.js → FirstResponderOrganizationComponent-Cn3DJnck.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-HTKkHwO4.js.map → FirstResponderOrganizationComponent-Cn3DJnck.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Cb6lHKHg.js → FormFieldInputSelect-BHFYCp09.js} +7 -7
- package/chunk/{FormFieldInputSelect-Cb6lHKHg.js.map → FormFieldInputSelect-BHFYCp09.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-e0N6kc8Y.js → FormFieldInputSelect-CWAKAPf9.js} +7 -7
- package/chunk/{FormFieldInputSelect-e0N6kc8Y.js.map → FormFieldInputSelect-CWAKAPf9.js.map} +1 -1
- package/chunk/{FormFieldLayout-D1tb5nAu.js → FormFieldLayout-B5_PsKrR.js} +6 -6
- package/chunk/{FormFieldLayout-D1tb5nAu.js.map → FormFieldLayout-B5_PsKrR.js.map} +1 -1
- package/chunk/{FormFieldLayout-Dt_dMiDh.js → FormFieldLayout-CRgEwTkx.js} +6 -6
- package/chunk/{FormFieldLayout-Dt_dMiDh.js.map → FormFieldLayout-CRgEwTkx.js.map} +1 -1
- package/chunk/{FormFieldText-CsFISbyw.js → FormFieldText-BWImUS8U.js} +7 -7
- package/chunk/{FormFieldText-BU2NBm1H.js.map → FormFieldText-BWImUS8U.js.map} +1 -1
- package/chunk/{FormFieldText-BU2NBm1H.js → FormFieldText-D4SW8w-w.js} +7 -7
- package/chunk/{FormFieldText-CsFISbyw.js.map → FormFieldText-D4SW8w-w.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BsM6Ruie.js → FormFieldTypeahead-C27MDdwq.js} +85 -85
- package/chunk/{FormFieldTypeahead-BsM6Ruie.js.map → FormFieldTypeahead-C27MDdwq.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-QR_lJrFB.js → FormFieldTypeahead-DLN-DRL3.js} +42 -42
- package/chunk/{FormFieldTypeahead-QR_lJrFB.js.map → FormFieldTypeahead-DLN-DRL3.js.map} +1 -1
- package/chunk/{FormFooterComponent-DGcfJdwH.js → FormFooterComponent-D0U-oYDf.js} +520 -520
- package/chunk/FormFooterComponent-D0U-oYDf.js.map +1 -0
- package/chunk/{FormFooterComponent-DmKzIyrc.js → FormFooterComponent-DzG4p93f.js} +466 -466
- package/chunk/FormFooterComponent-DzG4p93f.js.map +1 -0
- package/chunk/{FormSelectChoice-Bv5aMXMd.js → FormSelectChoice-2j71fL0j.js} +8 -8
- package/chunk/{FormSelectChoice-Bv5aMXMd.js.map → FormSelectChoice-2j71fL0j.js.map} +1 -1
- package/chunk/{FormSelectChoice-CE1QacNH.js → FormSelectChoice-BGa9KqEI.js} +8 -8
- package/chunk/{FormSelectChoice-CE1QacNH.js.map → FormSelectChoice-BGa9KqEI.js.map} +1 -1
- package/chunk/{InputText-DMztCQmi.js → InputText-CS8Q8oNz.js} +6 -6
- package/chunk/{InputText-CuBi-ytU.js.map → InputText-CS8Q8oNz.js.map} +1 -1
- package/chunk/{InputText-CuBi-ytU.js → InputText-D__c437o.js} +6 -6
- package/chunk/{InputText-DMztCQmi.js.map → InputText-D__c437o.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BzyJSQrq.js → LicensedProfessionalOrganizationComponent-BFocaYeI.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-BzyJSQrq.js.map → LicensedProfessionalOrganizationComponent-BFocaYeI.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-JXLsT4Ua.js → LicensedProfessionalOrganizationComponent-TdpFCMlR.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-JXLsT4Ua.js.map → LicensedProfessionalOrganizationComponent-TdpFCMlR.js.map} +1 -1
- package/chunk/{LogoComponent-B9xpaOmb.js → LogoComponent-BcMnrRvP.js} +6 -6
- package/chunk/{LogoComponent-B9xpaOmb.js.map → LogoComponent-BcMnrRvP.js.map} +1 -1
- package/chunk/{LogoComponent-CcqFEsge.js → LogoComponent-Dygket6f.js} +6 -6
- package/chunk/{LogoComponent-CcqFEsge.js.map → LogoComponent-Dygket6f.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-FQA-80EB.js → LowIncomeOrganizationComponent-BrsVGnzb.js} +15 -15
- package/chunk/{LowIncomeOrganizationComponent-FQA-80EB.js.map → LowIncomeOrganizationComponent-BrsVGnzb.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DlRk_SSB.js → LowIncomeOrganizationComponent-DEwaJ0BF.js} +12 -12
- package/chunk/{LowIncomeOrganizationComponent-DlRk_SSB.js.map → LowIncomeOrganizationComponent-DEwaJ0BF.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-GUaeaxBA.js → MedicalProfessionalOrganizationComponent-BY2Hq4h6.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-GUaeaxBA.js.map → MedicalProfessionalOrganizationComponent-BY2Hq4h6.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-B52FvTE1.js → MedicalProfessionalOrganizationComponent-BdBFSzZK.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-B52FvTE1.js.map → MedicalProfessionalOrganizationComponent-BdBFSzZK.js.map} +1 -1
- package/chunk/{MemberIdComponent-CKOJTsUZ.js → MemberIdComponent-CK7-5MwH.js} +8 -8
- package/chunk/{MemberIdComponent-CKOJTsUZ.js.map → MemberIdComponent-CK7-5MwH.js.map} +1 -1
- package/chunk/{MemberIdComponent-DKvGJ5w8.js → MemberIdComponent-KkHtb-GL.js} +8 -8
- package/chunk/{MemberIdComponent-DKvGJ5w8.js.map → MemberIdComponent-KkHtb-GL.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BsP0oS9k.js → MembershipOrganizationComponent-fWo6qweD.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-BsP0oS9k.js.map → MembershipOrganizationComponent-fWo6qweD.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DlERUS3X.js → MembershipOrganizationComponent-z2gRbxPZ.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-DlERUS3X.js.map → MembershipOrganizationComponent-z2gRbxPZ.js.map} +1 -1
- package/chunk/{Message-BToMuDnF.js → Message-D1m8rtsf.js} +7375 -7325
- package/chunk/Message-D1m8rtsf.js.map +1 -0
- package/chunk/{Message-BcRlg1D8.js → Message-bCY_JxvZ.js} +7861 -7811
- package/chunk/Message-bCY_JxvZ.js.map +1 -0
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-B3cCavK_.js → PersonalInfoStepSubmitButton-6Kg-pZ_I.js} +20 -20
- package/chunk/{PersonalInfoStepSubmitButton-B3cCavK_.js.map → PersonalInfoStepSubmitButton-6Kg-pZ_I.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-DvsmVrOf.js → PersonalInfoStepSubmitButton-DF3V6hJY.js} +19 -19
- package/chunk/{PersonalInfoStepSubmitButton-DvsmVrOf.js.map → PersonalInfoStepSubmitButton-DF3V6hJY.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-BvUX_IV3.js → PersonalInfoStepWrapper-BHXuN88z.js} +8 -8
- package/chunk/{PersonalInfoStepWrapper-BvUX_IV3.js.map → PersonalInfoStepWrapper-BHXuN88z.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-B58Hl9Sp.js → PersonalInfoStepWrapper-DuKZA7Bm.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-B58Hl9Sp.js.map → PersonalInfoStepWrapper-DuKZA7Bm.js.map} +1 -1
- package/chunk/{PostalCodeComponent-FVc2Nso4.js → PostalCodeComponent-BDLw-xEX.js} +8 -8
- package/chunk/{PostalCodeComponent-CrWWddQS.js.map → PostalCodeComponent-BDLw-xEX.js.map} +1 -1
- package/chunk/{PostalCodeComponent-CrWWddQS.js → PostalCodeComponent-BDVa1QY7.js} +8 -8
- package/chunk/{PostalCodeComponent-FVc2Nso4.js.map → PostalCodeComponent-BDVa1QY7.js.map} +1 -1
- package/chunk/{SSN-5QKevvwg.js → SSN-C4RsyvaG.js} +8 -8
- package/chunk/{SSN-5QKevvwg.js.map → SSN-C4RsyvaG.js.map} +1 -1
- package/chunk/{SSN-rfoKEogO.js → SSN-Dn0TLNb9.js} +8 -8
- package/chunk/{SSN-rfoKEogO.js.map → SSN-Dn0TLNb9.js.map} +1 -1
- package/chunk/StateSelectComponent-BuF9uoFe.js +46 -0
- package/chunk/StateSelectComponent-BuF9uoFe.js.map +1 -0
- package/chunk/StateSelectComponent-OMXNQVGE.js +42 -0
- package/chunk/StateSelectComponent-OMXNQVGE.js.map +1 -0
- package/chunk/{StatusComponent-DoH2jBJe.js → StatusComponent-B-1gIOek.js} +10 -10
- package/chunk/{StatusComponent-DoH2jBJe.js.map → StatusComponent-B-1gIOek.js.map} +1 -1
- package/chunk/{StatusComponent-CXUgeCAX.js → StatusComponent-U699Nzbq.js} +10 -10
- package/chunk/{StatusComponent-CXUgeCAX.js.map → StatusComponent-U699Nzbq.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CjTZNsVe.js → StepAgePersonalInfo-C8-SdaGI.js} +58 -58
- package/chunk/{StepAgePersonalInfo-CjTZNsVe.js.map → StepAgePersonalInfo-C8-SdaGI.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DYHJqeaB.js → StepAgePersonalInfo-DMMuSV6H.js} +58 -58
- package/chunk/{StepAgePersonalInfo-DYHJqeaB.js.map → StepAgePersonalInfo-DMMuSV6H.js.map} +1 -1
- package/chunk/{StepCard-DJR-l3sW.js → StepCard-B72CFYHs.js} +5 -5
- package/chunk/{StepCard-DJR-l3sW.js.map → StepCard-B72CFYHs.js.map} +1 -1
- package/chunk/{StepCard-wwTRGIhn.js → StepCard-Bvt7Kykz.js} +5 -5
- package/chunk/{StepCard-wwTRGIhn.js.map → StepCard-Bvt7Kykz.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DE0gBqAY.js → StepCollectIdentifier-Cf_OO2eb.js} +9 -9
- package/chunk/{StepCollectIdentifier-DE0gBqAY.js.map → StepCollectIdentifier-Cf_OO2eb.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-BxkG6FC9.js → StepCollectIdentifier-D8BXMPSm.js} +9 -9
- package/chunk/{StepCollectIdentifier-BxkG6FC9.js.map → StepCollectIdentifier-D8BXMPSm.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DfiGcf5I.js → StepCollectMilitaryPersonalInfoComponent--ylC8N5Z.js} +24 -24
- package/chunk/{StepCollectMilitaryPersonalInfoComponent--Ie4B0yl.js.map → StepCollectMilitaryPersonalInfoComponent--ylC8N5Z.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent--Ie4B0yl.js → StepCollectMilitaryPersonalInfoComponent-D-xxPyNf.js} +24 -24
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DfiGcf5I.js.map → StepCollectMilitaryPersonalInfoComponent-D-xxPyNf.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-lnriADQY.js → StepCollectPersonalInfo-CIskNcb_.js} +121 -121
- package/chunk/{StepCollectPersonalInfo-lnriADQY.js.map → StepCollectPersonalInfo-CIskNcb_.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-vwWUcMyH.js → StepCollectPersonalInfo-CaVYVLpx.js} +122 -122
- package/chunk/{StepCollectPersonalInfo-vwWUcMyH.js.map → StepCollectPersonalInfo-CaVYVLpx.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-BJTAm52g.js → StepCompleteAuthentication-BrdV0iN-.js} +9 -9
- package/chunk/{StepCompleteAuthentication-BJTAm52g.js.map → StepCompleteAuthentication-BrdV0iN-.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-BUA2xrtE.js → StepCompleteAuthentication-DLwlKmBO.js} +20 -20
- package/chunk/{StepCompleteAuthentication-BUA2xrtE.js.map → StepCompleteAuthentication-DLwlKmBO.js.map} +1 -1
- package/chunk/{StepConsolation-CRoBFGTd.js → StepConsolation-BzbijBhL.js} +8 -8
- package/chunk/{StepConsolation-Dw4IOp9l.js.map → StepConsolation-BzbijBhL.js.map} +1 -1
- package/chunk/{StepConsolation-Dw4IOp9l.js → StepConsolation-DFQwmpUe.js} +8 -8
- package/chunk/{StepConsolation-CRoBFGTd.js.map → StepConsolation-DFQwmpUe.js.map} +1 -1
- package/chunk/{StepDocUpload-xEtdWGcK.js → StepDocUpload-CFcyuvS6.js} +30 -30
- package/chunk/{StepDocUpload-xEtdWGcK.js.map → StepDocUpload-CFcyuvS6.js.map} +1 -1
- package/chunk/{StepDocUpload-BUzQ9g81.js → StepDocUpload-h1JWZUZC.js} +23 -23
- package/chunk/{StepDocUpload-BUzQ9g81.js.map → StepDocUpload-h1JWZUZC.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-Dx_8OM3-.js → StepDriverLicensePersonalInfoComponent-DFc0FiIt.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-BxUpMImU.js.map → StepDriverLicensePersonalInfoComponent-DFc0FiIt.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BxUpMImU.js → StepDriverLicensePersonalInfoComponent-s_PvlzNE.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-Dx_8OM3-.js.map → StepDriverLicensePersonalInfoComponent-s_PvlzNE.js.map} +1 -1
- package/chunk/{StepEmailLoop-mfub_mok.js → StepEmailLoop-D5T68VTx.js} +13 -13
- package/chunk/{StepEmailLoop-Nw-rJgsm.js.map → StepEmailLoop-D5T68VTx.js.map} +1 -1
- package/chunk/{StepEmailLoop-Nw-rJgsm.js → StepEmailLoop-DLoLfr39.js} +13 -13
- package/chunk/{StepEmailLoop-mfub_mok.js.map → StepEmailLoop-DLoLfr39.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-jfNudNTZ.js → StepEmploymentPersonalInfo-BiXV9zG6.js} +20 -20
- package/chunk/{StepEmploymentPersonalInfo-DMkrJYj7.js.map → StepEmploymentPersonalInfo-BiXV9zG6.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DMkrJYj7.js → StepEmploymentPersonalInfo-ByAaA9uJ.js} +20 -20
- package/chunk/{StepEmploymentPersonalInfo-jfNudNTZ.js.map → StepEmploymentPersonalInfo-ByAaA9uJ.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CYFtsRm-.js → StepFirstResponderPersonalInfo-BqS568ZP.js} +22 -22
- package/chunk/{StepFirstResponderPersonalInfo-CFqJv92p.js.map → StepFirstResponderPersonalInfo-BqS568ZP.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CFqJv92p.js → StepFirstResponderPersonalInfo-DEc90JZ2.js} +22 -22
- package/chunk/{StepFirstResponderPersonalInfo-CYFtsRm-.js.map → StepFirstResponderPersonalInfo-DEc90JZ2.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-k27Awiqm.js → StepGeneralIdentityPersonalInfoComponent-2_g0jDtn.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BaVIwPSY.js.map → StepGeneralIdentityPersonalInfoComponent-2_g0jDtn.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BaVIwPSY.js → StepGeneralIdentityPersonalInfoComponent-B3_zfixj.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-k27Awiqm.js.map → StepGeneralIdentityPersonalInfoComponent-B3_zfixj.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-D0luWaZH.js → StepHybridIdentityPersonalInfoComponent-BFhxyJWJ.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-D0luWaZH.js.map → StepHybridIdentityPersonalInfoComponent-BFhxyJWJ.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-k2Y3yuVP.js → StepHybridIdentityPersonalInfoComponent-DzYYUzME.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-k2Y3yuVP.js.map → StepHybridIdentityPersonalInfoComponent-DzYYUzME.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BtLu63gH.js → StepIDCheckLoop-8HP5_FVH.js} +8 -8
- package/chunk/{StepIDCheckLoop-BtLu63gH.js.map → StepIDCheckLoop-8HP5_FVH.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-qMDVYGF6.js → StepIDCheckLoop-D-Y9rKsk.js} +8 -8
- package/chunk/{StepIDCheckLoop-qMDVYGF6.js.map → StepIDCheckLoop-D-Y9rKsk.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Cn2taSRq.js → StepIDCheckLoopOnfido-C_EEaIvS.js} +27 -27
- package/chunk/{StepIDCheckLoopOnfido-D9hJvwHI.js.map → StepIDCheckLoopOnfido-C_EEaIvS.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-D9hJvwHI.js → StepIDCheckLoopOnfido-DQacZCgs.js} +16 -16
- package/chunk/{StepIDCheckLoopOnfido-Cn2taSRq.js.map → StepIDCheckLoopOnfido-DQacZCgs.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B0gSu2f2.js → StepIDCheckLoopRegula-DEiy_meG.js} +11 -11
- package/chunk/{StepIDCheckLoopRegula-B0gSu2f2.js.map → StepIDCheckLoopRegula-DEiy_meG.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-C5taOj9i.js → StepIDCheckLoopRegula-FMQtQ00c.js} +11 -11
- package/chunk/{StepIDCheckLoopRegula-C5taOj9i.js.map → StepIDCheckLoopRegula-FMQtQ00c.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-tWD68oFU.js → StepLicensedProfessionalPersonalInfo-B6qktzsF.js} +21 -21
- package/chunk/{StepLicensedProfessionalPersonalInfo-Db4rc2F6.js.map → StepLicensedProfessionalPersonalInfo-B6qktzsF.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-Db4rc2F6.js → StepLicensedProfessionalPersonalInfo-f6waS68x.js} +21 -21
- package/chunk/{StepLicensedProfessionalPersonalInfo-tWD68oFU.js.map → StepLicensedProfessionalPersonalInfo-f6waS68x.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-C8ZXtF9i.js → StepLowIncomePersonalInfo-CVrkhAxr.js} +25 -25
- package/chunk/{StepLowIncomePersonalInfo-C8ZXtF9i.js.map → StepLowIncomePersonalInfo-CVrkhAxr.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-DTQzLFYh.js → StepLowIncomePersonalInfo-Cpr_D1eF.js} +74 -74
- package/chunk/{StepLowIncomePersonalInfo-DTQzLFYh.js.map → StepLowIncomePersonalInfo-Cpr_D1eF.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CEWvfZIo.js → StepMedicalProfessionalPersonalInfo-BMdmppPh.js} +22 -22
- package/chunk/{StepMedicalProfessionalPersonalInfo-CEWvfZIo.js.map → StepMedicalProfessionalPersonalInfo-BMdmppPh.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-D81j6Sg7.js → StepMedicalProfessionalPersonalInfo-CR_cOA88.js} +22 -22
- package/chunk/{StepMedicalProfessionalPersonalInfo-D81j6Sg7.js.map → StepMedicalProfessionalPersonalInfo-CR_cOA88.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-Idz-W2bu.js → StepMemberPersonalInfo-3ycGLGMb.js} +17 -17
- package/chunk/{StepMemberPersonalInfo-B__oOkWE.js.map → StepMemberPersonalInfo-3ycGLGMb.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-B__oOkWE.js → StepMemberPersonalInfo-BTBjBkLR.js} +57 -57
- package/chunk/{StepMemberPersonalInfo-Idz-W2bu.js.map → StepMemberPersonalInfo-BTBjBkLR.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BItSb2hF.js → StepMoverPersonalInfo-CHmJAEta.js} +47 -47
- package/chunk/{StepMoverPersonalInfo-BItSb2hF.js.map → StepMoverPersonalInfo-CHmJAEta.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-EJ5M2CDv.js → StepMoverPersonalInfo-CJEvhUg5.js} +15 -15
- package/chunk/{StepMoverPersonalInfo-EJ5M2CDv.js.map → StepMoverPersonalInfo-CJEvhUg5.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BABa7V4t.js → StepOverrideComponent-B9fvWbBC.js} +21 -21
- package/chunk/{StepOverrideComponent-Cfltty36.js.map → StepOverrideComponent-B9fvWbBC.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Cfltty36.js → StepOverrideComponent-BYUbyZkl.js} +21 -21
- package/chunk/{StepOverrideComponent-BABa7V4t.js.map → StepOverrideComponent-BYUbyZkl.js.map} +1 -1
- package/chunk/{StepSMSLoop-DfGhOhOr.js → StepSMSLoop-BR4v_UvU.js} +22 -22
- package/chunk/{StepSMSLoop-DfGhOhOr.js.map → StepSMSLoop-BR4v_UvU.js.map} +1 -1
- package/chunk/{StepSMSLoop-vn3IgTp0.js → StepSMSLoop-Dp77AMrb.js} +24 -24
- package/chunk/{StepSMSLoop-vn3IgTp0.js.map → StepSMSLoop-Dp77AMrb.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-CjG9oKtT.js → StepSocialSecurityNumber-A2Q_UluD.js} +12 -12
- package/chunk/{StepSocialSecurityNumber-BEhNPFMA.js.map → StepSocialSecurityNumber-A2Q_UluD.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-BEhNPFMA.js → StepSocialSecurityNumber-BO5uts-s.js} +24 -24
- package/chunk/{StepSocialSecurityNumber-CjG9oKtT.js.map → StepSocialSecurityNumber-BO5uts-s.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-6sEXvlbs.js → StepStudentPersonalInfo-CLchkf6y.js} +64 -64
- package/chunk/{StepStudentPersonalInfo-6sEXvlbs.js.map → StepStudentPersonalInfo-CLchkf6y.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-NYJN6QM4.js → StepStudentPersonalInfo-oc0V1SEn.js} +22 -22
- package/chunk/{StepStudentPersonalInfo-NYJN6QM4.js.map → StepStudentPersonalInfo-oc0V1SEn.js.map} +1 -1
- package/chunk/{StepSuccess-DXYPrAoS.js → StepSuccess-DYAR3u5v.js} +25 -25
- package/chunk/{StepSuccess-BSGiXxfN.js.map → StepSuccess-DYAR3u5v.js.map} +1 -1
- package/chunk/{StepSuccess-BSGiXxfN.js → StepSuccess-z93uD3YR.js} +26 -26
- package/chunk/{StepSuccess-DXYPrAoS.js.map → StepSuccess-z93uD3YR.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-DH19GPsU.js → StepTeacherPersonalInfo-Bm4zMphQ.js} +18 -18
- package/chunk/{StepTeacherPersonalInfo-BnUPd7A_.js.map → StepTeacherPersonalInfo-Bm4zMphQ.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BnUPd7A_.js → StepTeacherPersonalInfo-UxRien1W.js} +18 -18
- package/chunk/{StepTeacherPersonalInfo-DH19GPsU.js.map → StepTeacherPersonalInfo-UxRien1W.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-I15vrTCE.js → TeacherSchoolComponent-B-8Zac1k.js} +11 -11
- package/chunk/{TeacherSchoolComponent-I15vrTCE.js.map → TeacherSchoolComponent-B-8Zac1k.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-pnmySE96.js → TeacherSchoolComponent-Bnurez7X.js} +11 -11
- package/chunk/{TeacherSchoolComponent-pnmySE96.js.map → TeacherSchoolComponent-Bnurez7X.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-Bx1n-xCR.js → TestingRouteOverrides-CqkLaStu.js} +26 -26
- package/chunk/{TestingRouteOverrides-Bx1n-xCR.js.map → TestingRouteOverrides-CqkLaStu.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-DHe5BulD.js → TestingRouteOverrides-DUx5spVA.js} +24 -24
- package/chunk/{TestingRouteOverrides-DHe5BulD.js.map → TestingRouteOverrides-DUx5spVA.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-CB5rauS5.js +4 -4
- package/chunk/{countryUtils-CdNf-73_.js → countryUtils-CSpfIQmr.js} +5 -5
- package/chunk/{countryUtils-CdNf-73_.js.map → countryUtils-CSpfIQmr.js.map} +1 -1
- package/chunk/countryUtils-ROgCMKtt.js +12 -0
- package/chunk/{countryUtils-CniUDXes.js.map → countryUtils-ROgCMKtt.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-D0Q-rG8L.js → downshift.esm-B_3QLNGg.js} +124 -124
- package/chunk/{downshift.esm-DUM3sJ7L.js.map → downshift.esm-B_3QLNGg.js.map} +1 -1
- package/chunk/{downshift.esm-DUM3sJ7L.js → downshift.esm-dTKHfRuW.js} +7 -7
- package/chunk/{downshift.esm-D0Q-rG8L.js.map → downshift.esm-dTKHfRuW.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/{empties-C5H0EoXJ.js → empties-C1INRgC4.js} +53 -56
- package/chunk/empties-C1INRgC4.js.map +1 -0
- package/chunk/{empties-DaNcqYFb.js → empties-C38lUQIl.js} +9 -12
- package/chunk/empties-C38lUQIl.js.map +1 -0
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/{hooks-BF7oPgCe.js → hooks-DFk9wlFh.js} +52 -52
- package/chunk/hooks-DFk9wlFh.js.map +1 -0
- package/chunk/{hooks-Bqhz6E9V.js → hooks-Y72jcEAM.js} +48 -48
- package/chunk/hooks-Y72jcEAM.js.map +1 -0
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/{intl-DYOqmiaL.js → intl-D5sUivUy.js} +285 -273
- package/chunk/intl-D5sUivUy.js.map +1 -0
- 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-DQO6A867.js → jsx-runtime-BfITI5pK.js} +19 -19
- package/chunk/{jsx-runtime-DtApx7WX.js.map → jsx-runtime-BfITI5pK.js.map} +1 -1
- package/chunk/{jsx-runtime-DtApx7WX.js → jsx-runtime-CB6nLaN6.js} +19 -19
- package/chunk/{jsx-runtime-DQO6A867.js.map → jsx-runtime-CB6nLaN6.js.map} +1 -1
- 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/mockProgramConfiguration-YBQMVL51.js +49 -0
- package/chunk/mockProgramConfiguration-YBQMVL51.js.map +1 -0
- package/chunk/mockProgramI18n-CgYx_1_a.js +18 -0
- package/chunk/mockProgramI18n-CgYx_1_a.js.map +1 -0
- package/chunk/{mockProgramTheme-CBqgtg7A.js → mockProgramTheme-CPG4vkJd.js} +4 -8
- package/chunk/mockProgramTheme-CPG4vkJd.js.map +1 -0
- package/chunk/{mocks-D8UIPfvt.js → mocks-BJWOJTTC.js} +73 -74
- package/chunk/mocks-BJWOJTTC.js.map +1 -0
- package/chunk/{mocks-denu632X.js → mocks-BtNIwVeT.js} +73 -74
- package/chunk/mocks-BtNIwVeT.js.map +1 -0
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/{options-DsRV5fwh.js → options-BCFIfBTZ.js} +356 -344
- package/chunk/options-BCFIfBTZ.js.map +1 -0
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/programThemeGetters-CKWD2Nuw.js +164 -0
- package/chunk/programThemeGetters-CKWD2Nuw.js.map +1 -0
- package/chunk/programThemeGetters-DKJV4UNP.js +158 -0
- package/chunk/programThemeGetters-DKJV4UNP.js.map +1 -0
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/{stepComponentHelpers-DOISo3yJ.js → stepComponentHelpers--E4kvS6y.js} +14 -14
- package/chunk/{stepComponentHelpers-BElircEH.js.map → stepComponentHelpers--E4kvS6y.js.map} +1 -1
- package/chunk/{stepComponentHelpers-BElircEH.js → stepComponentHelpers-CD1Gfspm.js} +34 -34
- package/chunk/{stepComponentHelpers-DOISo3yJ.js.map → stepComponentHelpers-CD1Gfspm.js.map} +1 -1
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-DbalWE2_.js → useCollectFieldsEndpoint-BFxNI9mD.js} +19 -19
- package/chunk/{useCollectFieldsEndpoint-DbalWE2_.js.map → useCollectFieldsEndpoint-BFxNI9mD.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DODNTDbS.js → useCollectFieldsEndpoint-Dy61hji9.js} +16 -16
- package/chunk/{useCollectFieldsEndpoint-DODNTDbS.js.map → useCollectFieldsEndpoint-Dy61hji9.js.map} +1 -1
- package/chunk/{useMetrics-f-F1IOc3.js → useMetrics-CtsRRjGJ.js} +7 -7
- package/chunk/{useMetrics-XHSibxjX.js.map → useMetrics-CtsRRjGJ.js.map} +1 -1
- package/chunk/{useMetrics-XHSibxjX.js → useMetrics-jabV9gsZ.js} +7 -7
- package/chunk/{useMetrics-f-F1IOc3.js.map → useMetrics-jabV9gsZ.js.map} +1 -1
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +1356 -1363
- package/sheerid.js.map +1 -1
- package/chunk/FormFooterComponent-DGcfJdwH.js.map +0 -1
- package/chunk/FormFooterComponent-DmKzIyrc.js.map +0 -1
- package/chunk/Message-BToMuDnF.js.map +0 -1
- package/chunk/Message-BcRlg1D8.js.map +0 -1
- package/chunk/StateSelectComponent-BaUHQef8.js +0 -46
- package/chunk/StateSelectComponent-BaUHQef8.js.map +0 -1
- package/chunk/StateSelectComponent-Bl0sEDiJ.js +0 -42
- package/chunk/StateSelectComponent-Bl0sEDiJ.js.map +0 -1
- package/chunk/countryUtils-CniUDXes.js +0 -12
- package/chunk/empties-C5H0EoXJ.js.map +0 -1
- package/chunk/empties-DaNcqYFb.js.map +0 -1
- package/chunk/hooks-BF7oPgCe.js.map +0 -1
- package/chunk/hooks-Bqhz6E9V.js.map +0 -1
- package/chunk/intl-DYOqmiaL.js.map +0 -1
- package/chunk/mockProgramTheme-CBqgtg7A.js.map +0 -1
- package/chunk/mocks-D8UIPfvt.js.map +0 -1
- package/chunk/mocks-denu632X.js.map +0 -1
- package/chunk/options-DsRV5fwh.js.map +0 -1
- package/chunk/programThemeGetters-BD2PXz0k.js +0 -182
- package/chunk/programThemeGetters-BD2PXz0k.js.map +0 -1
- package/chunk/programThemeGetters-DTXDRpA2.js +0 -188
- package/chunk/programThemeGetters-DTXDRpA2.js.map +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Fri Oct
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.306.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1792784358815
|
|
5
|
+
* BUILD_DATE: Fri Oct 23 2026 19:39:18 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 051dca165a15b769b71940fd854aaa10b824ca55
|
|
7
7
|
*/
|
|
8
|
-
import { c as e, n as t } from "./options-
|
|
9
|
-
import { n, t as r } from "./jsx-runtime-
|
|
8
|
+
import { c as e, n as t } from "./options-BCFIfBTZ.js";
|
|
9
|
+
import { n, t as r } from "./jsx-runtime-BfITI5pK.js";
|
|
10
10
|
import { b as i } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as a } from "./FormFooterComponent-
|
|
11
|
+
import { h as a } from "./FormFooterComponent-D0U-oYDf.js";
|
|
12
12
|
import { n as o } from "../sheerid.js";
|
|
13
|
-
import { t as s } from "./useCollectFieldsEndpoint-
|
|
14
|
-
import { d as c, f as l, r as u, t as d } from "./stepComponentHelpers-
|
|
15
|
-
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-
|
|
16
|
-
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-
|
|
17
|
-
import { i as b } from "./FormSelectChoice-
|
|
18
|
-
import { t as x } from "./BirthDateComponent-
|
|
19
|
-
import { t as S } from "./PostalCodeComponent-
|
|
20
|
-
import { t as C } from "./CountryComponentWrapper-
|
|
21
|
-
import { t as w } from "./ExtraMessage-
|
|
22
|
-
import { t as T } from "./ChangeLocaleComponent-
|
|
23
|
-
import { t as E } from "./PersonalInfoStepWrapper-
|
|
24
|
-
import { t as D } from "./countryUtils-
|
|
25
|
-
import { t as O } from "./StatusComponent-
|
|
26
|
-
import { t as k } from "./LicensedProfessionalOrganizationComponent-
|
|
13
|
+
import { t as s } from "./useCollectFieldsEndpoint-Dy61hji9.js";
|
|
14
|
+
import { d as c, f as l, r as u, t as d } from "./stepComponentHelpers-CD1Gfspm.js";
|
|
15
|
+
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-3YIkG9Wr.js";
|
|
16
|
+
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-6Kg-pZ_I.js";
|
|
17
|
+
import { i as b } from "./FormSelectChoice-2j71fL0j.js";
|
|
18
|
+
import { t as x } from "./BirthDateComponent-DPwL_esM.js";
|
|
19
|
+
import { t as S } from "./PostalCodeComponent-BDLw-xEX.js";
|
|
20
|
+
import { t as C } from "./CountryComponentWrapper-DangmyAi.js";
|
|
21
|
+
import { t as w } from "./ExtraMessage-BtQiKR6F.js";
|
|
22
|
+
import { t as T } from "./ChangeLocaleComponent-k7OjzNbY.js";
|
|
23
|
+
import { t as E } from "./PersonalInfoStepWrapper-DuKZA7Bm.js";
|
|
24
|
+
import { t as D } from "./countryUtils-ROgCMKtt.js";
|
|
25
|
+
import { t as O } from "./StatusComponent-U699Nzbq.js";
|
|
26
|
+
import { t as k } from "./LicensedProfessionalOrganizationComponent-TdpFCMlR.js";
|
|
27
27
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
28
28
|
var A = r(), j = ({ verificationService: r }) => {
|
|
29
29
|
let j = r.viewModel, { fieldValidationErrors: M } = r, N = r.verificationResponse, P = a(N), F = j.localeChoice.value, I = t(), { availableStatuses: L } = s({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-Db4rc2F6.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\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 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(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={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 {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;aA+Ca,KAAiD,EAC5D,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO,EAAc,MAAM,MAAW,EAAO,UAAU,EAAU,SAAS,EAAE;IAC5E,WAAW,CAAC,CAAC,EAAsB;IACnC,SAAS;IACT,UAAU,KAAqB,EAAwB,UAAU,GAAG;IACpE,aACE,IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAsB,IAAG;KAAgB,gBAAe;IAA0B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;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-B6qktzsF.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\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 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(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={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 {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;aA+Ca,KAAiD,EAC5D,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW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and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Fri Oct
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.306.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1792784366120
|
|
9
|
+
* BUILD_DATE: Fri Oct 23 2026 19:39:26 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 051dca165a15b769b71940fd854aaa10b824ca55
|
|
11
11
|
*/
|
|
12
|
-
import { p as e, s as t } from "./intl-
|
|
12
|
+
import { p as e, s as t } from "./intl-D5sUivUy.js";
|
|
13
13
|
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { n as r, t as i } from "./jsx-runtime-
|
|
15
|
-
import { p as a } from "./FormFooterComponent-
|
|
14
|
+
import { n as r, t as i } from "./jsx-runtime-CB6nLaN6.js";
|
|
15
|
+
import { p as a } from "./FormFooterComponent-DzG4p93f.js";
|
|
16
16
|
import { t as o } from "../_mysheerid-preview.js";
|
|
17
|
-
import { t as s } from "./useCollectFieldsEndpoint-
|
|
18
|
-
import { d as c, f as l, r as u, t as d } from "./stepComponentHelpers
|
|
19
|
-
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-
|
|
20
|
-
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-
|
|
21
|
-
import { i as b } from "./FormSelectChoice-
|
|
22
|
-
import { t as x } from "./BirthDateComponent-
|
|
23
|
-
import { t as S } from "./PostalCodeComponent-
|
|
24
|
-
import { t as C } from "./CountryComponentWrapper-
|
|
25
|
-
import { t as w } from "./ExtraMessage-
|
|
26
|
-
import { t as T } from "./ChangeLocaleComponent-
|
|
27
|
-
import { t as E } from "./PersonalInfoStepWrapper-
|
|
28
|
-
import { t as D } from "./countryUtils-
|
|
29
|
-
import { t as O } from "./StatusComponent-
|
|
30
|
-
import { t as k } from "./LicensedProfessionalOrganizationComponent-
|
|
17
|
+
import { t as s } from "./useCollectFieldsEndpoint-BFxNI9mD.js";
|
|
18
|
+
import { d as c, f as l, r as u, t as d } from "./stepComponentHelpers--E4kvS6y.js";
|
|
19
|
+
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-B9U-3SMZ.js";
|
|
20
|
+
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-DF3V6hJY.js";
|
|
21
|
+
import { i as b } from "./FormSelectChoice-BGa9KqEI.js";
|
|
22
|
+
import { t as x } from "./BirthDateComponent-c3-VfXxt.js";
|
|
23
|
+
import { t as S } from "./PostalCodeComponent-BDVa1QY7.js";
|
|
24
|
+
import { t as C } from "./CountryComponentWrapper-CZK3RrMe.js";
|
|
25
|
+
import { t as w } from "./ExtraMessage-B0Pl1Fx3.js";
|
|
26
|
+
import { t as T } from "./ChangeLocaleComponent-FiBBf-GR.js";
|
|
27
|
+
import { t as E } from "./PersonalInfoStepWrapper-BHXuN88z.js";
|
|
28
|
+
import { t as D } from "./countryUtils-CSpfIQmr.js";
|
|
29
|
+
import { t as O } from "./StatusComponent-B-1gIOek.js";
|
|
30
|
+
import { t as k } from "./LicensedProfessionalOrganizationComponent-BFocaYeI.js";
|
|
31
31
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
32
32
|
var A = i(), j = ({ verificationService: i }) => {
|
|
33
33
|
let j = i.viewModel, { fieldValidationErrors: M } = i, N = i.verificationResponse, P = a(N), F = j.localeChoice.value, I = t(), { availableStatuses: L } = s({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-tWD68oFU.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\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 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(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={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 {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;aA+Ca,KAAiD,EAC5D,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC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iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-f6waS68x.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\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 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(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={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 {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;aA+Ca,KAAiD,EAC5D,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO,EAAc,MAAM,MAAW,EAAO,UAAU,EAAU,SAAS,EAAE;IAC5E,WAAW,CAAC,CAAC,EAAsB;IACnC,SAAS;IACT,UAAU,KAAqB,EAAwB,UAAU,GAAG;IACpE,aACE,IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KA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,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
package/chunk/{StepLowIncomePersonalInfo-C8ZXtF9i.js → StepLowIncomePersonalInfo-CVrkhAxr.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: Fri Oct
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.306.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1792784366120
|
|
9
|
+
* BUILD_DATE: Fri Oct 23 2026 19:39:26 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 051dca165a15b769b71940fd854aaa10b824ca55
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { At as e, p as t, s as n } from "./intl-D5sUivUy.js";
|
|
13
13
|
import { S as r, b as i } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import {
|
|
15
|
-
import { n as o, s, t as c } from "./jsx-runtime-
|
|
16
|
-
import {
|
|
17
|
-
import { p as u } from "./FormFooterComponent-
|
|
14
|
+
import { u as a } from "./programThemeGetters-CKWD2Nuw.js";
|
|
15
|
+
import { n as o, s, t as c } from "./jsx-runtime-CB6nLaN6.js";
|
|
16
|
+
import { i as l } from "./empties-C1INRgC4.js";
|
|
17
|
+
import { p as u } from "./FormFooterComponent-DzG4p93f.js";
|
|
18
18
|
import { t as d } from "../_mysheerid-preview.js";
|
|
19
|
-
import { t as f } from "./useCollectFieldsEndpoint-
|
|
20
|
-
import { d as p, f as m, i as h, r as g, t as _ } from "./stepComponentHelpers
|
|
21
|
-
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-
|
|
22
|
-
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-
|
|
23
|
-
import { i as E } from "./FormSelectChoice-
|
|
24
|
-
import { t as D } from "./BirthDateComponent-
|
|
25
|
-
import { t as O } from "./PostalCodeComponent-
|
|
26
|
-
import { t as k } from "./CountryComponentWrapper-
|
|
27
|
-
import { t as A } from "./City-
|
|
28
|
-
import { t as j } from "./AddressComponent-
|
|
29
|
-
import { t as M } from "./ChangeLocaleComponent-
|
|
30
|
-
import { t as N } from "./PersonalInfoStepWrapper-
|
|
31
|
-
import { t as P } from "./countryUtils-
|
|
32
|
-
import { t as F } from "./StateSelectComponent-
|
|
33
|
-
import { n as I, t as L } from "./LowIncomeOrganizationComponent-
|
|
34
|
-
import { t as R } from "./StatusComponent-
|
|
19
|
+
import { t as f } from "./useCollectFieldsEndpoint-BFxNI9mD.js";
|
|
20
|
+
import { d as p, f as m, i as h, r as g, t as _ } from "./stepComponentHelpers--E4kvS6y.js";
|
|
21
|
+
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-B9U-3SMZ.js";
|
|
22
|
+
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-DF3V6hJY.js";
|
|
23
|
+
import { i as E } from "./FormSelectChoice-BGa9KqEI.js";
|
|
24
|
+
import { t as D } from "./BirthDateComponent-c3-VfXxt.js";
|
|
25
|
+
import { t as O } from "./PostalCodeComponent-BDVa1QY7.js";
|
|
26
|
+
import { t as k } from "./CountryComponentWrapper-CZK3RrMe.js";
|
|
27
|
+
import { t as A } from "./City-PTqumFny.js";
|
|
28
|
+
import { t as j } from "./AddressComponent-uJCuo22u.js";
|
|
29
|
+
import { t as M } from "./ChangeLocaleComponent-FiBBf-GR.js";
|
|
30
|
+
import { t as N } from "./PersonalInfoStepWrapper-BHXuN88z.js";
|
|
31
|
+
import { t as P } from "./countryUtils-CSpfIQmr.js";
|
|
32
|
+
import { t as F } from "./StateSelectComponent-BuF9uoFe.js";
|
|
33
|
+
import { n as I, t as L } from "./LowIncomeOrganizationComponent-DEwaJ0BF.js";
|
|
34
|
+
import { t as R } from "./StatusComponent-B-1gIOek.js";
|
|
35
35
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
36
36
|
var z = /* @__PURE__ */ e(s(), 1), B = c(), V = ({ verificationService: e }) => {
|
|
37
37
|
let { viewModel: s } = e, c = n();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-C8ZXtF9i.js","names":[],"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\";\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 { 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(\n verificationService.programTheme,\n countryChoiceValue,\n );\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 {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;4CA0Da,KAAsC,EACjD,6BAC6C;CAC7C,IAAM,EAAE,iBAAc,GAChB,IAAU,EAAW;CAE3B,IAAI,CAAC,EAAc,CAAS,GAE1B,OADA,EAAO,MAAM,yCAAyC,GAC/C;CAGT,IAAM,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,IAAS,EAAU,aAAa,OAEhC,IAAiB,EAAU,SAAS,KAAK,EAAU,SAAS,KAAK,KAAA,GACjE,IAA+B,MAAmB,iBAClD,KAA4B,GAA2C,MAAe;EAC1F,IAAI,CAAC,EAAc,CAAS,GAAG;GAC7B,EAAO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names":[],"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\";\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 { 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(\n verificationService.programTheme,\n countryChoiceValue,\n );\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 {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultM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