@sheerid/jslib-nightly 2.286.0-alpha.0 → 2.286.0-alpha.2
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 +3 -3
- package/_mysheerid-preview.js +43 -43
- package/chunk/{AddressComponent-BveXbyGs.js → AddressComponent-CEvgEQMA.js} +7 -7
- package/chunk/{AddressComponent-BO-P8AD4.js.map → AddressComponent-CEvgEQMA.js.map} +1 -1
- package/chunk/{AddressComponent-BO-P8AD4.js → AddressComponent-fSIQCSHy.js} +7 -7
- package/chunk/{AddressComponent-BveXbyGs.js.map → AddressComponent-fSIQCSHy.js.map} +1 -1
- package/chunk/{AnnouncingHeader-B0Ku-xl_.js → AnnouncingHeader-Cm6ysN0V.js} +5 -5
- package/chunk/{AnnouncingHeader-B0Ku-xl_.js.map → AnnouncingHeader-Cm6ysN0V.js.map} +1 -1
- package/chunk/{AnnouncingHeader-CXTQdbKG.js → AnnouncingHeader-yslSIrZR.js} +5 -5
- package/chunk/{AnnouncingHeader-CXTQdbKG.js.map → AnnouncingHeader-yslSIrZR.js.map} +1 -1
- package/chunk/{ApiUrls-CgRqi14a.js → ApiUrls-DT6YDZwO.js} +5 -5
- package/chunk/{ApiUrls-CgRqi14a.js.map → ApiUrls-DT6YDZwO.js.map} +1 -1
- package/chunk/{ApiUrls-UkSOgB9C.js → ApiUrls-Zdy0p875.js} +5 -5
- package/chunk/{ApiUrls-UkSOgB9C.js.map → ApiUrls-Zdy0p875.js.map} +1 -1
- package/chunk/{BirthDateComponent-BivtQl-V.js → BirthDateComponent-COBjAdFk.js} +7 -7
- package/chunk/{BirthDateComponent-BivtQl-V.js.map → BirthDateComponent-COBjAdFk.js.map} +1 -1
- package/chunk/{BirthDateComponent-DuD9ADP1.js → BirthDateComponent-Dv6hU22_.js} +7 -7
- package/chunk/{BirthDateComponent-DuD9ADP1.js.map → BirthDateComponent-Dv6hU22_.js.map} +1 -1
- package/chunk/{CaptchaComponent-CcBWvyd6.js → CaptchaComponent-3qiTIduG.js} +14 -14
- package/chunk/{CaptchaComponent-CcBWvyd6.js.map → CaptchaComponent-3qiTIduG.js.map} +1 -1
- package/chunk/{CaptchaComponent-IxkyY0tK.js → CaptchaComponent-Dtr_Cbvu.js} +14 -14
- package/chunk/{CaptchaComponent-IxkyY0tK.js.map → CaptchaComponent-Dtr_Cbvu.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DTp8j-wE.js → ChangeLocaleComponent-B4Tlnh2U.js} +8 -8
- package/chunk/{ChangeLocaleComponent-DTp8j-wE.js.map → ChangeLocaleComponent-B4Tlnh2U.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DbBz1tUB.js → ChangeLocaleComponent-jMvrJEW-.js} +8 -8
- package/chunk/{ChangeLocaleComponent-DbBz1tUB.js.map → ChangeLocaleComponent-jMvrJEW-.js.map} +1 -1
- package/chunk/{City-B31l6VTD.js → City-BIL97VTt.js} +7 -7
- package/chunk/{City-B31l6VTD.js.map → City-BIL97VTt.js.map} +1 -1
- package/chunk/{City-Drv6dzVo.js → City-xUKTZJTo.js} +7 -7
- package/chunk/{City-Drv6dzVo.js.map → City-xUKTZJTo.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BXe6YEtp.js → CollegeNameComponent-Hnhr9YwU.js} +9 -9
- package/chunk/{CollegeNameComponent-BI5ZRKh5.js.map → CollegeNameComponent-Hnhr9YwU.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BI5ZRKh5.js → CollegeNameComponent-OwBwjKji.js} +9 -9
- package/chunk/{CollegeNameComponent-BXe6YEtp.js.map → CollegeNameComponent-OwBwjKji.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-3wpB0lTx.js → CopyToClipboardComponent-BvzDoXkd.js} +5 -5
- package/chunk/{CopyToClipboardComponent-3wpB0lTx.js.map → CopyToClipboardComponent-BvzDoXkd.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-BXe124AZ.js → CopyToClipboardComponent-CHdDPJEa.js} +5 -5
- package/chunk/{CopyToClipboardComponent-BXe124AZ.js.map → CopyToClipboardComponent-CHdDPJEa.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BvRfYYfs.js → CountryComponentWrapper-B1wLa3TB.js} +15 -15
- package/chunk/{CountryComponentWrapper-BvRfYYfs.js.map → CountryComponentWrapper-B1wLa3TB.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CTwfjZcm.js → CountryComponentWrapper-DhAq6SAW.js} +15 -15
- package/chunk/{CountryComponentWrapper-CTwfjZcm.js.map → CountryComponentWrapper-DhAq6SAW.js.map} +1 -1
- package/chunk/{DischargeDateComponent-C6H7bgg0.js → DischargeDateComponent-CAtYqcPo.js} +14 -14
- package/chunk/{DischargeDateComponent-C6H7bgg0.js.map → DischargeDateComponent-CAtYqcPo.js.map} +1 -1
- package/chunk/{DischargeDateComponent-Dca4kend.js → DischargeDateComponent-CjUKk-H2.js} +14 -14
- package/chunk/{DischargeDateComponent-Dca4kend.js.map → DischargeDateComponent-CjUKk-H2.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-D8GxRcFv.js → DriverLicenseNumberComponent-B877KIX3.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-D8GxRcFv.js.map → DriverLicenseNumberComponent-B877KIX3.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DER7haaJ.js → DriverLicenseNumberComponent-BNd8xL27.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-DER7haaJ.js.map → DriverLicenseNumberComponent-BNd8xL27.js.map} +1 -1
- package/chunk/{EmailLoopPending-CdcMaaA_.js → EmailLoopPending-CUKvLcJV.js} +10 -10
- package/chunk/{EmailLoopPending-CdcMaaA_.js.map → EmailLoopPending-CUKvLcJV.js.map} +1 -1
- package/chunk/{EmailLoopPending-CpDXySoK.js → EmailLoopPending-uBm7ltwg.js} +10 -10
- package/chunk/{EmailLoopPending-CpDXySoK.js.map → EmailLoopPending-uBm7ltwg.js.map} +1 -1
- package/chunk/{ExtraMessage-BhQr2pj7.js → ExtraMessage-Bx2shBsO.js} +6 -6
- package/chunk/{ExtraMessage-BhQr2pj7.js.map → ExtraMessage-Bx2shBsO.js.map} +1 -1
- package/chunk/{ExtraMessage-psH__L4H.js → ExtraMessage-OwXiBnCM.js} +6 -6
- package/chunk/{ExtraMessage-psH__L4H.js.map → ExtraMessage-OwXiBnCM.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CRAxX00a.js → FirstResponderOrganizationComponent-BtSgJTlK.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-CRAxX00a.js.map → FirstResponderOrganizationComponent-BtSgJTlK.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-v2Qu8r16.js → FirstResponderOrganizationComponent-Gj4VL7DI.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-v2Qu8r16.js.map → FirstResponderOrganizationComponent-Gj4VL7DI.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Bmrn_n9h.js → FormFieldInputSelect-0RWaXUZ0.js} +6 -6
- package/chunk/{FormFieldInputSelect-Bmrn_n9h.js.map → FormFieldInputSelect-0RWaXUZ0.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-D5WLRDU3.js → FormFieldInputSelect-C2JbVtSi.js} +6 -6
- package/chunk/{FormFieldInputSelect-D5WLRDU3.js.map → FormFieldInputSelect-C2JbVtSi.js.map} +1 -1
- package/chunk/{FormFieldLayout-NkmhFC9B.js → FormFieldLayout-C6rbRhh0.js} +5 -5
- package/chunk/{FormFieldLayout-DEKIQK2R.js.map → FormFieldLayout-C6rbRhh0.js.map} +1 -1
- package/chunk/{FormFieldLayout-DEKIQK2R.js → FormFieldLayout-Ci7MzpgW.js} +5 -5
- package/chunk/{FormFieldLayout-NkmhFC9B.js.map → FormFieldLayout-Ci7MzpgW.js.map} +1 -1
- package/chunk/{FormFieldText-Py7x4EZ6.js → FormFieldText-Dx92JsxR.js} +6 -6
- package/chunk/{FormFieldText-Bn9WIKiI.js.map → FormFieldText-Dx92JsxR.js.map} +1 -1
- package/chunk/{FormFieldText-Bn9WIKiI.js → FormFieldText-blykeSRX.js} +6 -6
- package/chunk/{FormFieldText-Py7x4EZ6.js.map → FormFieldText-blykeSRX.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DsjvOSw-.js → FormFieldTypeahead-DIhWUSSE.js} +12 -12
- package/chunk/{FormFieldTypeahead-DsjvOSw-.js.map → FormFieldTypeahead-DIhWUSSE.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-D0UbcCmJ.js → FormFieldTypeahead-Fu_3FlXg.js} +12 -12
- package/chunk/{FormFieldTypeahead-D0UbcCmJ.js.map → FormFieldTypeahead-Fu_3FlXg.js.map} +1 -1
- package/chunk/{FormFooterComponent-C8d0QlMJ.js → FormFooterComponent-C68F5kaP.js} +12 -12
- package/chunk/{FormFooterComponent-C8d0QlMJ.js.map → FormFooterComponent-C68F5kaP.js.map} +1 -1
- package/chunk/{FormFooterComponent-DZsj4_dA.js → FormFooterComponent-DYBSB7Oh.js} +12 -12
- package/chunk/{FormFooterComponent-DZsj4_dA.js.map → FormFooterComponent-DYBSB7Oh.js.map} +1 -1
- package/chunk/{FormSelectChoice-Cnr_Pmmc.js → FormSelectChoice-LqM1ihM5.js} +7 -7
- package/chunk/{FormSelectChoice-BrKQZKi3.js.map → FormSelectChoice-LqM1ihM5.js.map} +1 -1
- package/chunk/{FormSelectChoice-BrKQZKi3.js → FormSelectChoice-XdFgcHCe.js} +7 -7
- package/chunk/{FormSelectChoice-Cnr_Pmmc.js.map → FormSelectChoice-XdFgcHCe.js.map} +1 -1
- package/chunk/{InputText-CMu4ei8e.js → InputText-C79edroa.js} +5 -5
- package/chunk/{InputText-CMu4ei8e.js.map → InputText-C79edroa.js.map} +1 -1
- package/chunk/{InputText-dflyPe3J.js → InputText-GzAnMGCC.js} +5 -5
- package/chunk/{InputText-dflyPe3J.js.map → InputText-GzAnMGCC.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-MU0Trmun.js → LicensedProfessionalOrganizationComponent-DnfCid0C.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-BvQ2v-yS.js.map → LicensedProfessionalOrganizationComponent-DnfCid0C.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BvQ2v-yS.js → LicensedProfessionalOrganizationComponent-NJR6sc0z.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-MU0Trmun.js.map → LicensedProfessionalOrganizationComponent-NJR6sc0z.js.map} +1 -1
- package/chunk/{LogoComponent-DASXTR4v.js → LogoComponent-88BDkLwD.js} +5 -5
- package/chunk/{LogoComponent-BDhMcJvy.js.map → LogoComponent-88BDkLwD.js.map} +1 -1
- package/chunk/{LogoComponent-BDhMcJvy.js → LogoComponent-EBhWWnBF.js} +5 -5
- package/chunk/{LogoComponent-DASXTR4v.js.map → LogoComponent-EBhWWnBF.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Bw9YwDiJ.js → LowIncomeOrganizationComponent-BW3TNx8b.js} +14 -14
- package/chunk/{LowIncomeOrganizationComponent-Bw9YwDiJ.js.map → LowIncomeOrganizationComponent-BW3TNx8b.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-WXPCDMfZ.js → LowIncomeOrganizationComponent-JbEkRbLK.js} +14 -14
- package/chunk/{LowIncomeOrganizationComponent-WXPCDMfZ.js.map → LowIncomeOrganizationComponent-JbEkRbLK.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-8sU5904Y.js → MedicalProfessionalOrganizationComponent-B3QspdhP.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-8sU5904Y.js.map → MedicalProfessionalOrganizationComponent-B3QspdhP.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CU-9LQeS.js → MedicalProfessionalOrganizationComponent-Cp4yUfxf.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-CU-9LQeS.js.map → MedicalProfessionalOrganizationComponent-Cp4yUfxf.js.map} +1 -1
- package/chunk/{MemberIdComponent-mi1g1xXL.js → MemberIdComponent-UMnfxBez.js} +7 -7
- package/chunk/{MemberIdComponent-D8Ca87Wb.js.map → MemberIdComponent-UMnfxBez.js.map} +1 -1
- package/chunk/{MemberIdComponent-D8Ca87Wb.js → MemberIdComponent-cwxA9cHM.js} +7 -7
- package/chunk/{MemberIdComponent-mi1g1xXL.js.map → MemberIdComponent-cwxA9cHM.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-qZGu9kN7.js → MembershipOrganizationComponent-BkWW4Yeo.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-B8uTiOjz.js.map → MembershipOrganizationComponent-BkWW4Yeo.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-B8uTiOjz.js → MembershipOrganizationComponent-Vhp79C62.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-qZGu9kN7.js.map → MembershipOrganizationComponent-Vhp79C62.js.map} +1 -1
- package/chunk/{Message-BzQvlehO.js → Message-BunzH7fa.js} +9 -9
- package/chunk/{Message-BzQvlehO.js.map → Message-BunzH7fa.js.map} +1 -1
- package/chunk/{Message-DTjPO81C.js → Message-DJBqbWrp.js} +9 -9
- package/chunk/{Message-DTjPO81C.js.map → Message-DJBqbWrp.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/{PersonalInfoStepSubmitButton-CJBqRRwZ.js → PersonalInfoStepSubmitButton-C4NAU26j.js} +14 -14
- package/chunk/{PersonalInfoStepSubmitButton-CJBqRRwZ.js.map → PersonalInfoStepSubmitButton-C4NAU26j.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-DYLShYmQ.js → PersonalInfoStepSubmitButton-DZaG_Bd6.js} +14 -14
- package/chunk/{PersonalInfoStepSubmitButton-DYLShYmQ.js.map → PersonalInfoStepSubmitButton-DZaG_Bd6.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-7CjWrsq-.js → PersonalInfoStepWrapper-BgmoL6ee.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-7CjWrsq-.js.map → PersonalInfoStepWrapper-BgmoL6ee.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-C4Yji-mo.js → PersonalInfoStepWrapper-Dlmhjo6N.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-C4Yji-mo.js.map → PersonalInfoStepWrapper-Dlmhjo6N.js.map} +1 -1
- package/chunk/{PostalCodeComponent-BaAxTpyL.js → PostalCodeComponent-CPZfUESZ.js} +7 -7
- package/chunk/{PostalCodeComponent-BaAxTpyL.js.map → PostalCodeComponent-CPZfUESZ.js.map} +1 -1
- package/chunk/{PostalCodeComponent-WM_PVYan.js → PostalCodeComponent-VDfukHbY.js} +7 -7
- package/chunk/{PostalCodeComponent-WM_PVYan.js.map → PostalCodeComponent-VDfukHbY.js.map} +1 -1
- package/chunk/{SSN-BKgXJ_Y3.js → SSN-B67W8oLs.js} +7 -7
- package/chunk/{SSN-BKgXJ_Y3.js.map → SSN-B67W8oLs.js.map} +1 -1
- package/chunk/{SSN-TjcjMzV_.js → SSN-BVh7Dhuk.js} +7 -7
- package/chunk/{SSN-TjcjMzV_.js.map → SSN-BVh7Dhuk.js.map} +1 -1
- package/chunk/StateSelectComponent-BG1HTtFx.js +42 -0
- package/chunk/StateSelectComponent-BG1HTtFx.js.map +1 -0
- package/chunk/StateSelectComponent-DSZEVrkF.js +46 -0
- package/chunk/StateSelectComponent-DSZEVrkF.js.map +1 -0
- package/chunk/{StatusComponent-B23ZumSo.js → StatusComponent-CqF9cCjU.js} +8 -8
- package/chunk/{StatusComponent-B23ZumSo.js.map → StatusComponent-CqF9cCjU.js.map} +1 -1
- package/chunk/{StatusComponent-D9SP6f7s.js → StatusComponent-DU8VVzqB.js} +8 -8
- package/chunk/{StatusComponent-D9SP6f7s.js.map → StatusComponent-DU8VVzqB.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CY8RXjRs.js → StepAgePersonalInfo-CDNNfePx.js} +40 -40
- package/chunk/{StepAgePersonalInfo-CY8RXjRs.js.map → StepAgePersonalInfo-CDNNfePx.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Ce2Rjk-T.js → StepAgePersonalInfo-X8ebAelC.js} +40 -40
- package/chunk/{StepAgePersonalInfo-Ce2Rjk-T.js.map → StepAgePersonalInfo-X8ebAelC.js.map} +1 -1
- package/chunk/{StepCard-EHeqFY3Y.js → StepCard-D3V6UR1D.js} +4 -4
- package/chunk/{StepCard-DQ9JkAjb.js.map → StepCard-D3V6UR1D.js.map} +1 -1
- package/chunk/{StepCard-DQ9JkAjb.js → StepCard-DXc8h6Xb.js} +4 -4
- package/chunk/{StepCard-EHeqFY3Y.js.map → StepCard-DXc8h6Xb.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-D2J7Zz4p.js → StepCollectIdentifier-DjHVmRka.js} +10 -10
- package/chunk/{StepCollectIdentifier-C5kXQDZS.js.map → StepCollectIdentifier-DjHVmRka.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-C5kXQDZS.js → StepCollectIdentifier-pFxNA5-S.js} +10 -10
- package/chunk/{StepCollectIdentifier-D2J7Zz4p.js.map → StepCollectIdentifier-pFxNA5-S.js.map} +1 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CQxkr8wE.js +245 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CQxkr8wE.js.map +1 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-DhTY2O6C.js +249 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-DhTY2O6C.js.map +1 -0
- package/chunk/StepCollectPersonalInfo-B_X0PZhC.js +372 -0
- package/chunk/StepCollectPersonalInfo-B_X0PZhC.js.map +1 -0
- package/chunk/StepCollectPersonalInfo-LiUa8Sv9.js +368 -0
- package/chunk/StepCollectPersonalInfo-LiUa8Sv9.js.map +1 -0
- package/chunk/{StepCompleteAuthentication-D7GOINsk.js → StepCompleteAuthentication-Bi-I4iQd.js} +8 -8
- package/chunk/{StepCompleteAuthentication-W7k49rug.js.map → StepCompleteAuthentication-Bi-I4iQd.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-W7k49rug.js → StepCompleteAuthentication-nlgzsvQo.js} +8 -8
- package/chunk/{StepCompleteAuthentication-D7GOINsk.js.map → StepCompleteAuthentication-nlgzsvQo.js.map} +1 -1
- package/chunk/{StepConsolation-C0ZFoRhl.js → StepConsolation-C8l0AsAN.js} +7 -7
- package/chunk/{StepConsolation-BploicTZ.js.map → StepConsolation-C8l0AsAN.js.map} +1 -1
- package/chunk/{StepConsolation-BploicTZ.js → StepConsolation-Ctfums38.js} +7 -7
- package/chunk/{StepConsolation-C0ZFoRhl.js.map → StepConsolation-Ctfums38.js.map} +1 -1
- package/chunk/{StepDocUpload-XIwdgMLE.js → StepDocUpload-B6U1kt-J.js} +12 -12
- package/chunk/{StepDocUpload-XIwdgMLE.js.map → StepDocUpload-B6U1kt-J.js.map} +1 -1
- package/chunk/{StepDocUpload-Fg28EFnj.js → StepDocUpload-u87pI7B5.js} +12 -12
- package/chunk/{StepDocUpload-Fg28EFnj.js.map → StepDocUpload-u87pI7B5.js.map} +1 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-CZi9FjFw.js +145 -0
- package/chunk/StepDriverLicensePersonalInfoComponent-CZi9FjFw.js.map +1 -0
- package/chunk/StepDriverLicensePersonalInfoComponent-DhwEyS4H.js +141 -0
- package/chunk/StepDriverLicensePersonalInfoComponent-DhwEyS4H.js.map +1 -0
- package/chunk/{StepEmailLoop-CQdaX7qR.js → StepEmailLoop-Bep5IjIv.js} +12 -12
- package/chunk/{StepEmailLoop-BCXGSf_A.js.map → StepEmailLoop-Bep5IjIv.js.map} +1 -1
- package/chunk/{StepEmailLoop-BCXGSf_A.js → StepEmailLoop-LNvZO2lA.js} +12 -12
- package/chunk/{StepEmailLoop-CQdaX7qR.js.map → StepEmailLoop-LNvZO2lA.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BNpvALkR.js → StepEmploymentPersonalInfo-C1dWVX-m.js} +62 -63
- package/chunk/StepEmploymentPersonalInfo-C1dWVX-m.js.map +1 -0
- package/chunk/{StepEmploymentPersonalInfo-BVCNxtzc.js → StepEmploymentPersonalInfo-D9mQOTuf.js} +62 -63
- package/chunk/StepEmploymentPersonalInfo-D9mQOTuf.js.map +1 -0
- package/chunk/{StepFirstResponderPersonalInfo-MuQvmYpR.js → StepFirstResponderPersonalInfo-CT1gRYaq.js} +33 -33
- package/chunk/{StepFirstResponderPersonalInfo-Bw1j5rbb.js.map → StepFirstResponderPersonalInfo-CT1gRYaq.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-Bw1j5rbb.js → StepFirstResponderPersonalInfo-DlUpQoEU.js} +33 -33
- package/chunk/{StepFirstResponderPersonalInfo-MuQvmYpR.js.map → StepFirstResponderPersonalInfo-DlUpQoEU.js.map} +1 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-ARiVwAek.js +174 -0
- package/chunk/StepGeneralIdentityPersonalInfoComponent-ARiVwAek.js.map +1 -0
- package/chunk/StepGeneralIdentityPersonalInfoComponent-Z5qswwCp.js +178 -0
- package/chunk/StepGeneralIdentityPersonalInfoComponent-Z5qswwCp.js.map +1 -0
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-QSa52ZsF.js → StepHybridIdentityPersonalInfoComponent-1-z8c41b.js} +69 -61
- package/chunk/StepHybridIdentityPersonalInfoComponent-1-z8c41b.js.map +1 -0
- package/chunk/StepHybridIdentityPersonalInfoComponent-BwxDwJVl.js +183 -0
- package/chunk/StepHybridIdentityPersonalInfoComponent-BwxDwJVl.js.map +1 -0
- package/chunk/{StepIDCheckLoop-9vSZxmm9.js → StepIDCheckLoop-B4XZRie5.js} +7 -7
- package/chunk/{StepIDCheckLoop-9vSZxmm9.js.map → StepIDCheckLoop-B4XZRie5.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DegU62q3.js → StepIDCheckLoop-C_8ZbGg3.js} +7 -7
- package/chunk/{StepIDCheckLoop-DegU62q3.js.map → StepIDCheckLoop-C_8ZbGg3.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-C7OhbiGE.js → StepIDCheckLoopOnfido-DHJ1eACS.js} +10 -10
- package/chunk/{StepIDCheckLoopOnfido-Cf5jCl51.js.map → StepIDCheckLoopOnfido-DHJ1eACS.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Cf5jCl51.js → StepIDCheckLoopOnfido-xcgqvCT4.js} +10 -10
- package/chunk/{StepIDCheckLoopOnfido-C7OhbiGE.js.map → StepIDCheckLoopOnfido-xcgqvCT4.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DHL165Fq.js → StepIDCheckLoopRegula-BKzknlsH.js} +10 -10
- package/chunk/{StepIDCheckLoopRegula-BGOGfzTM.js.map → StepIDCheckLoopRegula-BKzknlsH.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BGOGfzTM.js → StepIDCheckLoopRegula-DHBybeFp.js} +10 -10
- package/chunk/{StepIDCheckLoopRegula-DHL165Fq.js.map → StepIDCheckLoopRegula-DHBybeFp.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-Ci3GtjsS.js → StepLicensedProfessionalPersonalInfo-BNua2Voe.js} +33 -33
- package/chunk/{StepLicensedProfessionalPersonalInfo-C9u_VLy4.js.map → StepLicensedProfessionalPersonalInfo-BNua2Voe.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-C9u_VLy4.js → StepLicensedProfessionalPersonalInfo-DxzL7PKs.js} +33 -33
- package/chunk/{StepLicensedProfessionalPersonalInfo-Ci3GtjsS.js.map → StepLicensedProfessionalPersonalInfo-DxzL7PKs.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BNCP_2nd.js → StepLowIncomePersonalInfo-ChHOr4Dn.js} +68 -69
- package/chunk/StepLowIncomePersonalInfo-ChHOr4Dn.js.map +1 -0
- package/chunk/{StepLowIncomePersonalInfo-6psOksgp.js → StepLowIncomePersonalInfo-zPhDWXQu.js} +69 -70
- package/chunk/StepLowIncomePersonalInfo-zPhDWXQu.js.map +1 -0
- package/chunk/{StepMedicalProfessionalPersonalInfo-BZPO6ySB.js → StepMedicalProfessionalPersonalInfo-CenlDA7k.js} +34 -34
- package/chunk/{StepMedicalProfessionalPersonalInfo-BZPO6ySB.js.map → StepMedicalProfessionalPersonalInfo-CenlDA7k.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-Cfbyvm5-.js → StepMedicalProfessionalPersonalInfo-DFjztEA9.js} +34 -34
- package/chunk/{StepMedicalProfessionalPersonalInfo-Cfbyvm5-.js.map → StepMedicalProfessionalPersonalInfo-DFjztEA9.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CJGm1yf-.js → StepMemberPersonalInfo-CIrTZrzs.js} +36 -36
- package/chunk/{StepMemberPersonalInfo-CJGm1yf-.js.map → StepMemberPersonalInfo-CIrTZrzs.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DS-JEfy0.js → StepMemberPersonalInfo-x4tfVQwF.js} +36 -36
- package/chunk/{StepMemberPersonalInfo-DS-JEfy0.js.map → StepMemberPersonalInfo-x4tfVQwF.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-Csa8lKN8.js → StepMoverPersonalInfo-CJOQKMaw.js} +29 -29
- package/chunk/{StepMoverPersonalInfo-Csa8lKN8.js.map → StepMoverPersonalInfo-CJOQKMaw.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DxcQ34_S.js → StepMoverPersonalInfo-D9AupBvx.js} +29 -29
- package/chunk/{StepMoverPersonalInfo-DxcQ34_S.js.map → StepMoverPersonalInfo-D9AupBvx.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DFFHorkG.js → StepOverrideComponent-Bj7PAZ4Z.js} +11 -11
- package/chunk/{StepOverrideComponent-CvP3aJ5s.js.map → StepOverrideComponent-Bj7PAZ4Z.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CvP3aJ5s.js → StepOverrideComponent-QsyKT4aZ.js} +11 -11
- package/chunk/{StepOverrideComponent-DFFHorkG.js.map → StepOverrideComponent-QsyKT4aZ.js.map} +1 -1
- package/chunk/{StepSMSLoop-C_ZkX3V6.js → StepSMSLoop-Bmt8tVWk.js} +8 -8
- package/chunk/{StepSMSLoop-BrA59sed.js.map → StepSMSLoop-Bmt8tVWk.js.map} +1 -1
- package/chunk/{StepSMSLoop-BrA59sed.js → StepSMSLoop-CzViaU2K.js} +8 -8
- package/chunk/{StepSMSLoop-C_ZkX3V6.js.map → StepSMSLoop-CzViaU2K.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +3 -3
- package/chunk/StepSSO-ZHByQpHa.js +3 -3
- package/chunk/{StepSocialSecurityNumber-CyUZZC4N.js → StepSocialSecurityNumber-B-lac1dq.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-CyUZZC4N.js.map → StepSocialSecurityNumber-B-lac1dq.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-J3hOG61Y.js → StepSocialSecurityNumber-CxjWst3F.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-J3hOG61Y.js.map → StepSocialSecurityNumber-CxjWst3F.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CDYBQDUD.js → StepStudentPersonalInfo-BbNYLYQM.js} +41 -41
- package/chunk/{StepStudentPersonalInfo-BCTGZupB.js.map → StepStudentPersonalInfo-BbNYLYQM.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BCTGZupB.js → StepStudentPersonalInfo-C19uuc35.js} +41 -41
- package/chunk/{StepStudentPersonalInfo-CDYBQDUD.js.map → StepStudentPersonalInfo-C19uuc35.js.map} +1 -1
- package/chunk/{StepSuccess-C0CJ71py.js → StepSuccess-B8GUwLl1.js} +12 -12
- package/chunk/{StepSuccess-C0CJ71py.js.map → StepSuccess-B8GUwLl1.js.map} +1 -1
- package/chunk/{StepSuccess-DG0gzN_H.js → StepSuccess-BTjwSlUq.js} +12 -12
- package/chunk/{StepSuccess-DG0gzN_H.js.map → StepSuccess-BTjwSlUq.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-B9e_tX1X.js → StepTeacherPersonalInfo-C2OKI-SB.js} +35 -35
- package/chunk/{StepTeacherPersonalInfo-B9e_tX1X.js.map → StepTeacherPersonalInfo-C2OKI-SB.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-tjOfVXdN.js → StepTeacherPersonalInfo-DrB0FfDl.js} +35 -35
- package/chunk/{StepTeacherPersonalInfo-tjOfVXdN.js.map → StepTeacherPersonalInfo-DrB0FfDl.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +3 -3
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +3 -3
- package/chunk/{TeacherSchoolComponent-DLvzlcwS.js → TeacherSchoolComponent-BGCYNyOF.js} +9 -9
- package/chunk/{TeacherSchoolComponent-DLvzlcwS.js.map → TeacherSchoolComponent-BGCYNyOF.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-DqHut9DM.js → TeacherSchoolComponent-C6_Q1Hyc.js} +9 -9
- package/chunk/{TeacherSchoolComponent-DqHut9DM.js.map → TeacherSchoolComponent-C6_Q1Hyc.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-ipf_F-iY.js → TestingRouteOverrides-BJ6TzzV2.js} +5 -5
- package/chunk/{TestingRouteOverrides-ipf_F-iY.js.map → TestingRouteOverrides-BJ6TzzV2.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-EggQSvgh.js → TestingRouteOverrides-g0sNWumM.js} +5 -5
- package/chunk/{TestingRouteOverrides-EggQSvgh.js.map → TestingRouteOverrides-g0sNWumM.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
- package/chunk/ar-D5CO913q.js +3 -3
- package/chunk/bg-1mhA5kYF.js +3 -3
- package/chunk/bn-IN-CpDqyRb_.js +3 -3
- package/chunk/clsx-CB5rauS5.js +3 -3
- package/chunk/{countryUtils-BBN8jYxF.js → countryUtils-2xROZ0HR.js} +4 -4
- package/chunk/{countryUtils-BBN8jYxF.js.map → countryUtils-2xROZ0HR.js.map} +1 -1
- package/chunk/{countryUtils-n_5QoHGV.js → countryUtils-BrbLtF3F.js} +4 -4
- package/chunk/{countryUtils-n_5QoHGV.js.map → countryUtils-BrbLtF3F.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +3 -3
- package/chunk/da-DwrVoxto.js +3 -3
- package/chunk/de-IWGZLhgY.js +3 -3
- package/chunk/{downshift.esm-CQQa_wPA.js → downshift.esm-CUJv4odi.js} +6 -6
- package/chunk/{downshift.esm-C3VmEjPJ.js.map → downshift.esm-CUJv4odi.js.map} +1 -1
- package/chunk/{downshift.esm-C3VmEjPJ.js → downshift.esm-DvaoY6u7.js} +6 -6
- package/chunk/{downshift.esm-CQQa_wPA.js.map → downshift.esm-DvaoY6u7.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +3 -3
- package/chunk/{empties-Dhc64eA5.js → empties-CrGLsC5v.js} +4 -4
- package/chunk/{empties-DHI3R7ys.js.map → empties-CrGLsC5v.js.map} +1 -1
- package/chunk/{empties-DHI3R7ys.js → empties-DVYWFiU4.js} +4 -4
- package/chunk/{empties-Dhc64eA5.js.map → empties-DVYWFiU4.js.map} +1 -1
- package/chunk/en-GB-BBkjjtqq.js +3 -3
- package/chunk/es-ES-DWimqEZ_.js +3 -3
- package/chunk/es-qhC-seq5.js +3 -3
- package/chunk/et-yF9G-Mym.js +3 -3
- package/chunk/eventEmitter-CSG6jR7V.js +3 -3
- package/chunk/fa-BcdSf7og.js +3 -3
- package/chunk/fi-D-IP_KHm.js +3 -3
- package/chunk/fr-BmUuYxk0.js +3 -3
- package/chunk/fr-CA-DVQ4xmzZ.js +3 -3
- package/chunk/ga-DuZycND3.js +3 -3
- package/chunk/hi-IN-l6Rn5Ewm.js +3 -3
- package/chunk/{hooks-Cl3P7QIh.js → hooks-Bl6VU6hP.js} +6 -6
- package/chunk/{hooks-B8Gr4Mtw.js.map → hooks-Bl6VU6hP.js.map} +1 -1
- package/chunk/{hooks-B8Gr4Mtw.js → hooks-j2dPIOl1.js} +6 -6
- package/chunk/{hooks-Cl3P7QIh.js.map → hooks-j2dPIOl1.js.map} +1 -1
- package/chunk/hr-BtqyDzDB.js +3 -3
- package/chunk/hu-C6syKJfb.js +3 -3
- package/chunk/id-GgI-Z2a5.js +3 -3
- package/chunk/{intl-CvSmE54g.js → intl-D0f52P7V.js} +5 -5
- package/chunk/{intl-CvSmE54g.js.map → intl-D0f52P7V.js.map} +1 -1
- package/chunk/is-CvmKEON9.js +3 -3
- package/chunk/it-CnmveGgC.js +3 -3
- package/chunk/iw-DFUYHkxF.js +3 -3
- package/chunk/ja-CjVb2tWW.js +3 -3
- package/chunk/{jsx-runtime-CyXcV_93.js → jsx-runtime-ClghfwTa.js} +4 -4
- package/chunk/{jsx-runtime-CyXcV_93.js.map → jsx-runtime-ClghfwTa.js.map} +1 -1
- package/chunk/{jsx-runtime-JSlXFmKD.js → jsx-runtime-FfARtXk2.js} +4 -4
- package/chunk/{jsx-runtime-JSlXFmKD.js.map → jsx-runtime-FfARtXk2.js.map} +1 -1
- package/chunk/kk-Dvz4nK6K.js +3 -3
- package/chunk/ko-DzOqBMGC.js +3 -3
- package/chunk/lo-C2WPq55d.js +3 -3
- package/chunk/lt-BSDYvjTF.js +3 -3
- package/chunk/lv-CefDPT-M.js +3 -3
- package/chunk/mockProgramTheme-CBqgtg7A.js +3 -3
- package/chunk/{mocks-Dpf6dNc6.js → mocks-Baq-FHji.js} +4 -4
- package/chunk/{mocks-Dpf6dNc6.js.map → mocks-Baq-FHji.js.map} +1 -1
- package/chunk/{mocks-DrV8NINc.js → mocks-DLTwXwzM.js} +4 -4
- package/chunk/{mocks-DrV8NINc.js.map → mocks-DLTwXwzM.js.map} +1 -1
- package/chunk/ms-BjestZxy.js +3 -3
- package/chunk/nl-B1FyUfCT.js +3 -3
- package/chunk/nl-BE-CbeAd3nq.js +3 -3
- package/chunk/no-Dr633Ddi.js +3 -3
- package/chunk/{options-CRzdSTAR.js → options-CvRaXPRs.js} +5 -5
- package/chunk/{options-CRzdSTAR.js.map → options-CvRaXPRs.js.map} +1 -1
- package/chunk/pl-UYTjMIq_.js +3 -3
- package/chunk/{programThemeGetters-VBnkSxuj.js → programThemeGetters-Bhp4oSEn.js} +4 -4
- package/chunk/{programThemeGetters-VBnkSxuj.js.map → programThemeGetters-Bhp4oSEn.js.map} +1 -1
- package/chunk/{programThemeGetters-DYWYXv-a.js → programThemeGetters-CQmR9Vit.js} +4 -4
- package/chunk/{programThemeGetters-DYWYXv-a.js.map → programThemeGetters-CQmR9Vit.js.map} +1 -1
- package/chunk/pt-BR-C8SYMT-J.js +3 -3
- package/chunk/pt-uH-M3GdN.js +3 -3
- package/chunk/refs-Mq0rtW9K.js +3 -3
- package/chunk/ro-CAOSXZ7h.js +3 -3
- package/chunk/ru-iwYoEydL.js +3 -3
- package/chunk/runtimeTypes-B2AGNJMT.js +3 -3
- package/chunk/sk-DYYNV3zw.js +3 -3
- package/chunk/sl-D_-eeM5N.js +3 -3
- package/chunk/sr-BTi9_anL.js +3 -3
- package/chunk/{stepComponentHelpers-DXPc6DBY.js → stepComponentHelpers-BweXuNBz.js} +39 -45
- package/chunk/stepComponentHelpers-BweXuNBz.js.map +1 -0
- package/chunk/{stepComponentHelpers-DKGaTSta.js → stepComponentHelpers-CmZT1Man.js} +39 -45
- package/chunk/stepComponentHelpers-CmZT1Man.js.map +1 -0
- package/chunk/strings-DWLVdUcm.js +3 -3
- package/chunk/sv-DRwY4shG.js +3 -3
- package/chunk/sw-Bvj2mYmM.js +3 -3
- package/chunk/ta-CmtaYoNe.js +3 -3
- package/chunk/th-12r2yKkJ.js +3 -3
- package/chunk/tl-BGNfO7md.js +3 -3
- package/chunk/tr-DH2ZSJhs.js +3 -3
- package/chunk/uk-CELBZlTd.js +3 -3
- package/chunk/ur-MR8DTbmd.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-DHnHpCRC.js → useCollectFieldsEndpoint-D15FcoFB.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-5ld0_w6u.js.map → useCollectFieldsEndpoint-D15FcoFB.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-5ld0_w6u.js → useCollectFieldsEndpoint-DV9zk9Je.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-DHnHpCRC.js.map → useCollectFieldsEndpoint-DV9zk9Je.js.map} +1 -1
- package/chunk/{useMetrics-BBypvN8X.js → useMetrics-BEoV8Edp.js} +6 -6
- package/chunk/{useMetrics-BBypvN8X.js.map → useMetrics-BEoV8Edp.js.map} +1 -1
- package/chunk/{useMetrics-Grd89oUa.js → useMetrics-CRK2aOGa.js} +6 -6
- package/chunk/{useMetrics-Grd89oUa.js.map → useMetrics-CRK2aOGa.js.map} +1 -1
- package/chunk/vi-DtZ-SqD5.js +3 -3
- package/chunk/zh-DjyVyYac.js +3 -3
- package/chunk/zh-HK-CN1HarHq.js +3 -3
- package/chunk/zu-DPhgIh1z.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +3 -3
- package/sheerid.css +3 -3
- package/sheerid.js +43 -43
- package/chunk/StateSelectComponent-BwRWKvU0.js +0 -42
- package/chunk/StateSelectComponent-BwRWKvU0.js.map +0 -1
- package/chunk/StateSelectComponent-DYLIANk8.js +0 -38
- package/chunk/StateSelectComponent-DYLIANk8.js.map +0 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-Bf6RUl4N.js +0 -250
- package/chunk/StepCollectMilitaryPersonalInfoComponent-Bf6RUl4N.js.map +0 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-Cg2JeswT.js +0 -246
- package/chunk/StepCollectMilitaryPersonalInfoComponent-Cg2JeswT.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-DQ-E_qDl.js +0 -369
- package/chunk/StepCollectPersonalInfo-DQ-E_qDl.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-OYDCEhYc.js +0 -373
- package/chunk/StepCollectPersonalInfo-OYDCEhYc.js.map +0 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-CA7UDvwn.js +0 -146
- package/chunk/StepDriverLicensePersonalInfoComponent-CA7UDvwn.js.map +0 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-CHc8Dsg1.js +0 -142
- package/chunk/StepDriverLicensePersonalInfoComponent-CHc8Dsg1.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-BNpvALkR.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-BVCNxtzc.js.map +0 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-QSa52ZsF.js.map +0 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-ZVgx3K2e.js +0 -175
- package/chunk/StepGeneralIdentityPersonalInfoComponent-ZVgx3K2e.js.map +0 -1
- package/chunk/StepHybridIdentityPersonalInfoComponent-C1qSLXFj.js +0 -188
- package/chunk/StepHybridIdentityPersonalInfoComponent-C1qSLXFj.js.map +0 -1
- package/chunk/StepHybridIdentityPersonalInfoComponent-CCjtODab.js +0 -184
- package/chunk/StepHybridIdentityPersonalInfoComponent-CCjtODab.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-6psOksgp.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-BNCP_2nd.js.map +0 -1
- package/chunk/stepComponentHelpers-DKGaTSta.js.map +0 -1
- package/chunk/stepComponentHelpers-DXPc6DBY.js.map +0 -1
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* WARNING: This file is intended to be used within MySheerID.
|
|
4
|
-
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* VERSION: 2.286.0-alpha.0
|
|
8
|
-
* BUILD_TIMESTAMP: 1789576910806
|
|
9
|
-
* BUILD_DATE: Wed Sep 16 2026 16:41:50 GMT+0000 (Coordinated Universal Time)
|
|
10
|
-
* BUILD_COMMIT: 58cd071e490202b546ec8addac4434c422af952d
|
|
11
|
-
*/
|
|
12
|
-
import { p as e, s as t } from "./intl-CvSmE54g.js";
|
|
13
|
-
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { a as r, n as i, t as a } from "./jsx-runtime-JSlXFmKD.js";
|
|
15
|
-
import { p as o } from "./FormFooterComponent-C8d0QlMJ.js";
|
|
16
|
-
import { a as s } from "./refs-Mq0rtW9K.js";
|
|
17
|
-
import { t as c } from "../_mysheerid-preview.js";
|
|
18
|
-
import { c as l, g as u, i as d, n as f } from "./stepComponentHelpers-DKGaTSta.js";
|
|
19
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-IxkyY0tK.js";
|
|
20
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-DYLShYmQ.js";
|
|
21
|
-
import { t as x } from "./BirthDateComponent-BivtQl-V.js";
|
|
22
|
-
import { t as S } from "./PostalCodeComponent-BaAxTpyL.js";
|
|
23
|
-
import { t as C } from "./City-B31l6VTD.js";
|
|
24
|
-
import { t as w } from "./AddressComponent-BveXbyGs.js";
|
|
25
|
-
import { t as T } from "./ExtraMessage-BhQr2pj7.js";
|
|
26
|
-
import { t as E } from "./ChangeLocaleComponent-DbBz1tUB.js";
|
|
27
|
-
import { t as D } from "./PersonalInfoStepWrapper-7CjWrsq-.js";
|
|
28
|
-
import { t as O } from "./StateSelectComponent-BwRWKvU0.js";
|
|
29
|
-
import { t as k } from "./DriverLicenseNumberComponent-D8GxRcFv.js";
|
|
30
|
-
//#region src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.tsx
|
|
31
|
-
var A = a(), j = ({ intl: r, verificationService: a }) => {
|
|
32
|
-
let j = a.viewModel, { fieldValidationErrors: M } = a, N = a.verificationResponse, P = o(N), F = t(), I = j.localeChoice.value, L = (t, n) => {
|
|
33
|
-
let r = e(j, (e) => {
|
|
34
|
-
e[t] = n;
|
|
35
|
-
});
|
|
36
|
-
a.updateViewModel(r);
|
|
37
|
-
};
|
|
38
|
-
return s(), /* @__PURE__ */ (0, A.jsxs)(D, {
|
|
39
|
-
verificationService: a,
|
|
40
|
-
step: N.currentStep,
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ (0, A.jsx)(c, {
|
|
43
|
-
verificationService: a,
|
|
44
|
-
classNameIdentifier: "hybrid-identity"
|
|
45
|
-
}),
|
|
46
|
-
/* @__PURE__ */ (0, A.jsx)(E, { verificationService: a }),
|
|
47
|
-
/* @__PURE__ */ (0, A.jsxs)("div", {
|
|
48
|
-
className: "sid-names",
|
|
49
|
-
children: [/* @__PURE__ */ (0, A.jsx)(p, {
|
|
50
|
-
value: j.firstName,
|
|
51
|
-
isErrored: !!M.firstName,
|
|
52
|
-
disabled: d("firstName")?.disabled,
|
|
53
|
-
onChange: (e) => {
|
|
54
|
-
L("firstName", e), u("firstName", e, a);
|
|
55
|
-
}
|
|
56
|
-
}), /* @__PURE__ */ (0, A.jsx)(m, {
|
|
57
|
-
value: j.lastName,
|
|
58
|
-
isErrored: !!M.lastName,
|
|
59
|
-
disabled: d("lastName")?.disabled,
|
|
60
|
-
onChange: (e) => {
|
|
61
|
-
L("lastName", e), u("lastName", e, a);
|
|
62
|
-
}
|
|
63
|
-
})]
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */ (0, A.jsx)(y, {
|
|
66
|
-
value: j.email,
|
|
67
|
-
isErrored: !!M.email,
|
|
68
|
-
explanation: /* @__PURE__ */ (0, A.jsx)(i, {
|
|
69
|
-
id: "emailExplanation",
|
|
70
|
-
defaultMessage: "Personal email address is recommended"
|
|
71
|
-
}),
|
|
72
|
-
onChange: (e) => {
|
|
73
|
-
L("email", e), u("email", e, a);
|
|
74
|
-
},
|
|
75
|
-
onKeyDown: (e) => l(e),
|
|
76
|
-
disabled: d("email")?.disabled
|
|
77
|
-
}),
|
|
78
|
-
a.programTheme.isSmsNotifierConfigured || a.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, A.jsx)(g, {
|
|
79
|
-
isRequired: !!a.programTheme.smsLoopEnabled,
|
|
80
|
-
value: j.phoneNumber,
|
|
81
|
-
isErrored: !!M.phoneNumber,
|
|
82
|
-
onChange: (e) => {
|
|
83
|
-
L("phoneNumber", e), u("phoneNumber", e, a);
|
|
84
|
-
},
|
|
85
|
-
selectedCountryCode: j.countryChoice && j.countryChoice.value,
|
|
86
|
-
disabled: d("phoneNumber")?.disabled
|
|
87
|
-
}) : null,
|
|
88
|
-
/* @__PURE__ */ (0, A.jsx)(x, {
|
|
89
|
-
errorId: M.birthDate,
|
|
90
|
-
locale: I,
|
|
91
|
-
onChange: (e) => {
|
|
92
|
-
L("birthDate", e), u("birthDate", e, a);
|
|
93
|
-
},
|
|
94
|
-
value: j.birthDate,
|
|
95
|
-
disabled: d("birthDate")?.disabled
|
|
96
|
-
}),
|
|
97
|
-
/* @__PURE__ */ (0, A.jsx)(w, {
|
|
98
|
-
isErrored: !!M.address1,
|
|
99
|
-
errorId: M.address1,
|
|
100
|
-
onChange: (e) => {
|
|
101
|
-
L("address1", e), u("address1", e, a);
|
|
102
|
-
},
|
|
103
|
-
value: j.address1,
|
|
104
|
-
isRequired: !0,
|
|
105
|
-
disabled: d("address1")?.disabled
|
|
106
|
-
}),
|
|
107
|
-
/* @__PURE__ */ (0, A.jsxs)("div", {
|
|
108
|
-
className: "sid-thirds",
|
|
109
|
-
children: [
|
|
110
|
-
/* @__PURE__ */ (0, A.jsx)(C, {
|
|
111
|
-
isErrored: !!M.city,
|
|
112
|
-
errorId: M.city,
|
|
113
|
-
onChange: (e) => {
|
|
114
|
-
L("city", e), u("city", e, a);
|
|
115
|
-
},
|
|
116
|
-
value: j.city,
|
|
117
|
-
isRequired: !0,
|
|
118
|
-
disabled: d("city")?.disabled
|
|
119
|
-
}),
|
|
120
|
-
/* @__PURE__ */ (0, A.jsx)(O, {
|
|
121
|
-
isRequired: !0,
|
|
122
|
-
options: f(a.programTheme, r),
|
|
123
|
-
value: j.state || void 0,
|
|
124
|
-
isErrored: !!M.state,
|
|
125
|
-
disabled: d("state")?.disabled,
|
|
126
|
-
onChange: async (e) => {
|
|
127
|
-
let t = e ? e.value : void 0;
|
|
128
|
-
L("state", t), u("state", t, a);
|
|
129
|
-
}
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ (0, A.jsx)(S, {
|
|
132
|
-
isErrored: !!M.postalCode,
|
|
133
|
-
onChange: (e) => {
|
|
134
|
-
L("postalCode", e), u("postalCode", e, a);
|
|
135
|
-
},
|
|
136
|
-
value: j.postalCode,
|
|
137
|
-
disabled: d("postalCode")?.disabled
|
|
138
|
-
})
|
|
139
|
-
]
|
|
140
|
-
}),
|
|
141
|
-
/* @__PURE__ */ (0, A.jsx)(k, {
|
|
142
|
-
value: j.driverLicenseNumber,
|
|
143
|
-
isErrored: !!M.driverLicenseNumber,
|
|
144
|
-
isRequired: !0,
|
|
145
|
-
disabled: d("driverLicenseNumber")?.disabled,
|
|
146
|
-
onChange: (e) => {
|
|
147
|
-
L("driverLicenseNumber", e), u("driverLicenseNumber", e, a);
|
|
148
|
-
}
|
|
149
|
-
}),
|
|
150
|
-
F.customFormFields.map((e) => /* @__PURE__ */ (0, A.jsx)(h, {
|
|
151
|
-
config: e,
|
|
152
|
-
verificationService: a
|
|
153
|
-
})),
|
|
154
|
-
/* @__PURE__ */ (0, A.jsx)(_, {
|
|
155
|
-
verificationService: a,
|
|
156
|
-
isErrored: !!M.marketConsentValue,
|
|
157
|
-
onChange: (e) => {
|
|
158
|
-
L("metadata", {
|
|
159
|
-
...a.viewModel.metadata,
|
|
160
|
-
marketConsentValue: e
|
|
161
|
-
}), u("marketConsentValue", e, a);
|
|
162
|
-
},
|
|
163
|
-
viewModel: j,
|
|
164
|
-
disabled: d("marketConsentValue")?.disabled
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ (0, A.jsx)(T, {
|
|
167
|
-
verificationService: a,
|
|
168
|
-
suffix: "CollectAboveSubmit"
|
|
169
|
-
}),
|
|
170
|
-
/* @__PURE__ */ (0, A.jsx)(v, {
|
|
171
|
-
verificationService: a,
|
|
172
|
-
isErrored: !!M.captchaToken
|
|
173
|
-
}),
|
|
174
|
-
/* @__PURE__ */ (0, A.jsx)(b, {
|
|
175
|
-
step: n.collectHybridIdentityPersonalInfo,
|
|
176
|
-
verificationService: a,
|
|
177
|
-
viewModel: j,
|
|
178
|
-
failedInstantMatch: P,
|
|
179
|
-
buttonText: /* @__PURE__ */ (0, A.jsx)(i, {
|
|
180
|
-
id: "step.personalInfo.submitButtonText",
|
|
181
|
-
defaultMessage: "Verify My Identity"
|
|
182
|
-
})
|
|
183
|
-
})
|
|
184
|
-
]
|
|
185
|
-
});
|
|
186
|
-
}, M = r(j);
|
|
187
|
-
//#endregion
|
|
188
|
-
export { j as StepHybridIdentityPersonalInfo, M as StepHybridIdentityPersonalInfoComponent, M as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepHybridIdentityPersonalInfoComponent-C1qSLXFj.js","names":[],"sources":["../../src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type HybridIdentityPersonalInfoViewModel,\n type HybridIdentityPersonalInfoResponse,\n type FormSelectChoice,\n type State,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepHybridIdentityPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepHybridIdentityPersonalInfo = ({\n intl,\n verificationService,\n}: StepHybridIdentityPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as HybridIdentityPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as HybridIdentityPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateIdentityViewModel = (key: keyof HybridIdentityPersonalInfoViewModel, value: any) => {\n const nextState: HybridIdentityPersonalInfoViewModel = produce(\n viewModel,\n (draft: HybridIdentityPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"hybrid-identity\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateIdentityViewModel(\"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 updateIdentityViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateIdentityViewModel(\"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 updateIdentityViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateIdentityViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateIdentityViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateIdentityViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateIdentityViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateIdentityViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updateIdentityViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateIdentityViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectHybridIdentityPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Identity\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepHybridIdentityPersonalInfoComponent = injectIntl(StepHybridIdentityPersonalInfo);\nexport default StepHybridIdentityPersonalInfoComponent;\n"],"m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A,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* VERSION: 2.286.0-alpha.0
|
|
4
|
-
* BUILD_TIMESTAMP: 1789576906490
|
|
5
|
-
* BUILD_DATE: Wed Sep 16 2026 16:41:46 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: 58cd071e490202b546ec8addac4434c422af952d
|
|
7
|
-
*/
|
|
8
|
-
import { c as e, n as t } from "./options-CRzdSTAR.js";
|
|
9
|
-
import { a as n, n as r, t as i } from "./jsx-runtime-CyXcV_93.js";
|
|
10
|
-
import { b as a } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as o } from "./FormFooterComponent-DZsj4_dA.js";
|
|
12
|
-
import { a as s } from "./refs-Mq0rtW9K.js";
|
|
13
|
-
import { n as c } from "../sheerid.js";
|
|
14
|
-
import { c as l, g as u, i as d, n as f } from "./stepComponentHelpers-DXPc6DBY.js";
|
|
15
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-CcBWvyd6.js";
|
|
16
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-CJBqRRwZ.js";
|
|
17
|
-
import { t as x } from "./BirthDateComponent-DuD9ADP1.js";
|
|
18
|
-
import { t as S } from "./PostalCodeComponent-WM_PVYan.js";
|
|
19
|
-
import { t as C } from "./City-Drv6dzVo.js";
|
|
20
|
-
import { t as w } from "./AddressComponent-BO-P8AD4.js";
|
|
21
|
-
import { t as T } from "./ExtraMessage-psH__L4H.js";
|
|
22
|
-
import { t as E } from "./ChangeLocaleComponent-DTp8j-wE.js";
|
|
23
|
-
import { t as D } from "./PersonalInfoStepWrapper-C4Yji-mo.js";
|
|
24
|
-
import { t as O } from "./StateSelectComponent-DYLIANk8.js";
|
|
25
|
-
import { t as k } from "./DriverLicenseNumberComponent-DER7haaJ.js";
|
|
26
|
-
//#region src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.tsx
|
|
27
|
-
var A = i(), j = ({ intl: n, verificationService: i }) => {
|
|
28
|
-
let j = i.viewModel, { fieldValidationErrors: M } = i, N = i.verificationResponse, P = o(N), F = t(), I = j.localeChoice.value, L = (t, n) => {
|
|
29
|
-
let r = e(j, (e) => {
|
|
30
|
-
e[t] = n;
|
|
31
|
-
});
|
|
32
|
-
i.updateViewModel(r);
|
|
33
|
-
};
|
|
34
|
-
return s(), /* @__PURE__ */ (0, A.jsxs)(D, {
|
|
35
|
-
verificationService: i,
|
|
36
|
-
step: N.currentStep,
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ (0, A.jsx)(c, {
|
|
39
|
-
verificationService: i,
|
|
40
|
-
classNameIdentifier: "hybrid-identity"
|
|
41
|
-
}),
|
|
42
|
-
/* @__PURE__ */ (0, A.jsx)(E, { verificationService: i }),
|
|
43
|
-
/* @__PURE__ */ (0, A.jsxs)("div", {
|
|
44
|
-
className: "sid-names",
|
|
45
|
-
children: [/* @__PURE__ */ (0, A.jsx)(p, {
|
|
46
|
-
value: j.firstName,
|
|
47
|
-
isErrored: !!M.firstName,
|
|
48
|
-
disabled: d("firstName")?.disabled,
|
|
49
|
-
onChange: (e) => {
|
|
50
|
-
L("firstName", e), u("firstName", e, i);
|
|
51
|
-
}
|
|
52
|
-
}), /* @__PURE__ */ (0, A.jsx)(m, {
|
|
53
|
-
value: j.lastName,
|
|
54
|
-
isErrored: !!M.lastName,
|
|
55
|
-
disabled: d("lastName")?.disabled,
|
|
56
|
-
onChange: (e) => {
|
|
57
|
-
L("lastName", e), u("lastName", e, i);
|
|
58
|
-
}
|
|
59
|
-
})]
|
|
60
|
-
}),
|
|
61
|
-
/* @__PURE__ */ (0, A.jsx)(y, {
|
|
62
|
-
value: j.email,
|
|
63
|
-
isErrored: !!M.email,
|
|
64
|
-
explanation: /* @__PURE__ */ (0, A.jsx)(r, {
|
|
65
|
-
id: "emailExplanation",
|
|
66
|
-
defaultMessage: "Personal email address is recommended"
|
|
67
|
-
}),
|
|
68
|
-
onChange: (e) => {
|
|
69
|
-
L("email", e), u("email", e, i);
|
|
70
|
-
},
|
|
71
|
-
onKeyDown: (e) => l(e),
|
|
72
|
-
disabled: d("email")?.disabled
|
|
73
|
-
}),
|
|
74
|
-
i.programTheme.isSmsNotifierConfigured || i.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, A.jsx)(g, {
|
|
75
|
-
isRequired: !!i.programTheme.smsLoopEnabled,
|
|
76
|
-
value: j.phoneNumber,
|
|
77
|
-
isErrored: !!M.phoneNumber,
|
|
78
|
-
onChange: (e) => {
|
|
79
|
-
L("phoneNumber", e), u("phoneNumber", e, i);
|
|
80
|
-
},
|
|
81
|
-
selectedCountryCode: j.countryChoice && j.countryChoice.value,
|
|
82
|
-
disabled: d("phoneNumber")?.disabled
|
|
83
|
-
}) : null,
|
|
84
|
-
/* @__PURE__ */ (0, A.jsx)(x, {
|
|
85
|
-
errorId: M.birthDate,
|
|
86
|
-
locale: I,
|
|
87
|
-
onChange: (e) => {
|
|
88
|
-
L("birthDate", e), u("birthDate", e, i);
|
|
89
|
-
},
|
|
90
|
-
value: j.birthDate,
|
|
91
|
-
disabled: d("birthDate")?.disabled
|
|
92
|
-
}),
|
|
93
|
-
/* @__PURE__ */ (0, A.jsx)(w, {
|
|
94
|
-
isErrored: !!M.address1,
|
|
95
|
-
errorId: M.address1,
|
|
96
|
-
onChange: (e) => {
|
|
97
|
-
L("address1", e), u("address1", e, i);
|
|
98
|
-
},
|
|
99
|
-
value: j.address1,
|
|
100
|
-
isRequired: !0,
|
|
101
|
-
disabled: d("address1")?.disabled
|
|
102
|
-
}),
|
|
103
|
-
/* @__PURE__ */ (0, A.jsxs)("div", {
|
|
104
|
-
className: "sid-thirds",
|
|
105
|
-
children: [
|
|
106
|
-
/* @__PURE__ */ (0, A.jsx)(C, {
|
|
107
|
-
isErrored: !!M.city,
|
|
108
|
-
errorId: M.city,
|
|
109
|
-
onChange: (e) => {
|
|
110
|
-
L("city", e), u("city", e, i);
|
|
111
|
-
},
|
|
112
|
-
value: j.city,
|
|
113
|
-
isRequired: !0,
|
|
114
|
-
disabled: d("city")?.disabled
|
|
115
|
-
}),
|
|
116
|
-
/* @__PURE__ */ (0, A.jsx)(O, {
|
|
117
|
-
isRequired: !0,
|
|
118
|
-
options: f(i.programTheme, n),
|
|
119
|
-
value: j.state || void 0,
|
|
120
|
-
isErrored: !!M.state,
|
|
121
|
-
disabled: d("state")?.disabled,
|
|
122
|
-
onChange: async (e) => {
|
|
123
|
-
let t = e ? e.value : void 0;
|
|
124
|
-
L("state", t), u("state", t, i);
|
|
125
|
-
}
|
|
126
|
-
}),
|
|
127
|
-
/* @__PURE__ */ (0, A.jsx)(S, {
|
|
128
|
-
isErrored: !!M.postalCode,
|
|
129
|
-
onChange: (e) => {
|
|
130
|
-
L("postalCode", e), u("postalCode", e, i);
|
|
131
|
-
},
|
|
132
|
-
value: j.postalCode,
|
|
133
|
-
disabled: d("postalCode")?.disabled
|
|
134
|
-
})
|
|
135
|
-
]
|
|
136
|
-
}),
|
|
137
|
-
/* @__PURE__ */ (0, A.jsx)(k, {
|
|
138
|
-
value: j.driverLicenseNumber,
|
|
139
|
-
isErrored: !!M.driverLicenseNumber,
|
|
140
|
-
isRequired: !0,
|
|
141
|
-
disabled: d("driverLicenseNumber")?.disabled,
|
|
142
|
-
onChange: (e) => {
|
|
143
|
-
L("driverLicenseNumber", e), u("driverLicenseNumber", e, i);
|
|
144
|
-
}
|
|
145
|
-
}),
|
|
146
|
-
F.customFormFields.map((e) => /* @__PURE__ */ (0, A.jsx)(h, {
|
|
147
|
-
config: e,
|
|
148
|
-
verificationService: i
|
|
149
|
-
})),
|
|
150
|
-
/* @__PURE__ */ (0, A.jsx)(_, {
|
|
151
|
-
verificationService: i,
|
|
152
|
-
isErrored: !!M.marketConsentValue,
|
|
153
|
-
onChange: (e) => {
|
|
154
|
-
L("metadata", {
|
|
155
|
-
...i.viewModel.metadata,
|
|
156
|
-
marketConsentValue: e
|
|
157
|
-
}), u("marketConsentValue", e, i);
|
|
158
|
-
},
|
|
159
|
-
viewModel: j,
|
|
160
|
-
disabled: d("marketConsentValue")?.disabled
|
|
161
|
-
}),
|
|
162
|
-
/* @__PURE__ */ (0, A.jsx)(T, {
|
|
163
|
-
verificationService: i,
|
|
164
|
-
suffix: "CollectAboveSubmit"
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ (0, A.jsx)(v, {
|
|
167
|
-
verificationService: i,
|
|
168
|
-
isErrored: !!M.captchaToken
|
|
169
|
-
}),
|
|
170
|
-
/* @__PURE__ */ (0, A.jsx)(b, {
|
|
171
|
-
step: a.collectHybridIdentityPersonalInfo,
|
|
172
|
-
verificationService: i,
|
|
173
|
-
viewModel: j,
|
|
174
|
-
failedInstantMatch: P,
|
|
175
|
-
buttonText: /* @__PURE__ */ (0, A.jsx)(r, {
|
|
176
|
-
id: "step.personalInfo.submitButtonText",
|
|
177
|
-
defaultMessage: "Verify My Identity"
|
|
178
|
-
})
|
|
179
|
-
})
|
|
180
|
-
]
|
|
181
|
-
});
|
|
182
|
-
}, M = n(j);
|
|
183
|
-
//#endregion
|
|
184
|
-
export { j as StepHybridIdentityPersonalInfo, M as StepHybridIdentityPersonalInfoComponent, M as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepHybridIdentityPersonalInfoComponent-CCjtODab.js","names":[],"sources":["../../src/components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type HybridIdentityPersonalInfoViewModel,\n type HybridIdentityPersonalInfoResponse,\n type FormSelectChoice,\n type State,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepHybridIdentityPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepHybridIdentityPersonalInfo = ({\n intl,\n verificationService,\n}: StepHybridIdentityPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as HybridIdentityPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as HybridIdentityPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateIdentityViewModel = (key: keyof HybridIdentityPersonalInfoViewModel, value: any) => {\n const nextState: HybridIdentityPersonalInfoViewModel = produce(\n viewModel,\n (draft: HybridIdentityPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"hybrid-identity\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateIdentityViewModel(\"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 updateIdentityViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateIdentityViewModel(\"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 updateIdentityViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateIdentityViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateIdentityViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateIdentityViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateIdentityViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateIdentityViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updateIdentityViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateIdentityViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectHybridIdentityPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Identity\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepHybridIdentityPersonalInfoComponent = injectIntl(StepHybridIdentityPersonalInfo);\nexport default StepHybridIdentityPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;aAgDa,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,KAA2B,GAAgD,MAAe;EAC9F,IAAM,IAAiD,EACrD,IACC,MAA+C;GAC9C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAKA,OAFA,EAAU,GAGR,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;GAEpE,iBAAA,GAAA,EAAA,MAAC,OAAD;IAAK,WAAU;cAAf,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,UAAU,EAAwB,WAAW,GAAG;KAChD,WAAW,MAAa;MAEtB,AADA,EAAwB,aAAa,CAAQ,GAC7C,EAAqC,aAAa,GAAU,CAAmB;KACjF;IACD,CAAA,GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;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yB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAwB,YAAY;MAClC,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;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-6psOksgp.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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D,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-BNCP_2nd.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;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a,GAAG;GACnD,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepComponentHelpers-DKGaTSta.js","names":[],"sources":["../../src/lib/utils/browser/inputHelpers.ts","../../src/lib/utils/getSafe.ts","../../src/lib/utils/stepComponentHelpers/stepComponentHelpers.ts"],"sourcesContent":["import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type ExtendedFieldId, type FieldId } from \"../../types/types\";\nimport { getRefByFieldId } from \"../../refs/refs\";\n\n/**\n * @private\n */\nexport const setFocus = (fieldId: FieldId | ExtendedFieldId) => {\n const fieldRef = getRefByFieldId(fieldId);\n\n if (fieldRef) {\n try {\n fieldRef.focus();\n } catch (e) {\n logger.error(\n `The ref '${fieldRef}' could not be focused. Is the ref an HTMLInputElement or HTMLButtonElement?`,\n \"ref error\",\n );\n }\n } else {\n logger.error(\n `A ref for fieldId '${fieldId}' could not be found. Has the ref been registered using setRef()?`,\n \"ref error\",\n );\n }\n};\n","/**\n * Avoid \"can't access property of undefined\" errors in a more readable way.\n * @param fn Function that wraps a nested property access\n * @param defaultVal Optional - the value to return if property access failed\n */\n\nexport function getSafe<T>(fn: () => T, defaultVal?: T): T | undefined {\n try {\n return fn();\n } catch (e) {\n return defaultVal;\n }\n}\n","import { produce } from \"immer\";\nimport { type InjectedIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { EventName, recordGaEvent } from \"@/lib/GoogleAnalytics/ga\";\n\nimport {\n type FieldId,\n type FieldValidationErrors,\n type Organization,\n type VerificationService,\n type FieldContent,\n type FieldRef,\n type ExtendedFieldId,\n type WithOrganization,\n type InputSelectOnKeyDown,\n type FormSelectChoice,\n type Country,\n type ProgramTheme,\n type Locale,\n type ViewModel,\n type State,\n type FieldDescription,\n type AllStatuses,\n type PersonalInfoFieldId,\n type Options,\n} from \"../../types/types\";\nimport { type VerificationStepsEnum } from \"../../types/runtimeTypes\";\nimport { blankOrganization } from \"../../types/empties\";\nimport {\n validateFieldById,\n getFieldValidationErrors,\n isFormErrored,\n} from \"../../validators/validators\";\nimport { setFocus } from \"../browser/inputHelpers\";\nimport { getRefByFieldId, getRefs } from \"../../refs/refs\";\nimport { getSafe } from \"../getSafe\";\nimport {\n getConfiguredCountries,\n getConfiguredStates,\n} from \"../../ProgramTheme/programThemeGetters\";\nimport { getQueryParamsFromUrl } from \"../routing/Url\";\nimport { FIELD_IDS } from \"../../../constants\";\nimport { getOptions } from \"../../../options/options\";\n\nexport const updateViewModelOrganization = (\n organization: Organization,\n verificationService: VerificationService,\n) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const nextState = produce(viewModel, (draft) => {\n draft.organization = organization\n ? {\n id: organization.id,\n idExtended: organization.idExtended,\n name: organization.name,\n city: organization.city,\n state: organization.state,\n source: organization.source,\n }\n : blankOrganization.organization;\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n });\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const populateViewModelFromQueryParams = (verificationService: VerificationService) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const queryParams = getQueryParamsFromUrl();\n\n const nextState = produce(viewModel, (draft) => {\n Object.keys(viewModel).forEach((key) => {\n if (queryParams.has(key)) {\n draft[key] = queryParams.get(key);\n }\n });\n });\n\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const updateFieldValidationErrors = (\n fieldValidationErrors: FieldValidationErrors,\n verificationService: VerificationService,\n) => {\n verificationService.updateFieldValidationErrors(fieldValidationErrors);\n};\n\nexport const updateFieldValidationErrorsByFieldId = (\n fieldId: FieldId | ExtendedFieldId,\n value: FieldContent,\n verificationService: VerificationService,\n) => {\n const { fieldValidationErrors } = verificationService;\n const nextState = produce(fieldValidationErrors, (draft) => {\n if (draft[fieldId]) {\n draft[fieldId] = validateFieldById(fieldId, value, verificationService.formValidationOptions);\n }\n });\n updateFieldValidationErrors(nextState, verificationService);\n};\n\nexport const shouldCollectAddressFields = (\n countryChoice: FormSelectChoice<Country, string>,\n countries: Country[],\n): boolean =>\n (getSafe(() => countries.length === 1) && getSafe(() => countries[0]) === \"US\") ||\n getSafe(() => countryChoice.value === \"US\") ||\n getSafe(() => countryChoice.value === undefined);\n\nexport const getStatusLabel = (intl: InjectedIntl, status: AllStatuses | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({\n id: status,\n defaultMessage: status,\n });\n};\n\nexport const getStatusOptions = (\n intl: InjectedIntl,\n statuses: AllStatuses[] | undefined,\n): FormSelectChoice[] => {\n if (!statuses) {\n return [];\n }\n return statuses.map((status) => ({\n value: status,\n label: getStatusLabel(intl, status),\n }));\n};\n\nexport const orgToOption = (org: Organization) => ({\n value: org.id,\n label: org.name,\n country: org.country,\n});\n\n/**\n * @private\n */\nexport const getFieldDisplayOrderFromRefs = (): FieldId[] | ExtendedFieldId[] => {\n const refs: FieldRef[] = getRefs();\n const fieldDisplayOrder: FieldId | ExtendedFieldId[] = [];\n\n refs.map((refObject: FieldRef) => fieldDisplayOrder.push(refObject.fieldId));\n\n return fieldDisplayOrder;\n};\n\n/**\n * HD-638 - focus on year, rather than month (which is an open <select> that covers error msg)\n */\nexport const adjustFirstErroredFieldId = (\n firstErroredFieldId: FieldId | ExtendedFieldId,\n): FieldId | ExtendedFieldId => {\n if (firstErroredFieldId === \"birthDate\" || firstErroredFieldId === \"birthDateDay\") {\n return \"birthDateYear\";\n }\n return firstErroredFieldId;\n};\n\n/**\n * @private\n */\nexport const getFirstErroredFieldId = (\n fieldDisplayOrder: FieldId[] | ExtendedFieldId[],\n fieldValidationErrors: FieldValidationErrors,\n): FieldId | ExtendedFieldId => {\n let firstErroredFieldId: FieldId | ExtendedFieldId;\n\n fieldDisplayOrder.reverse().forEach((field) => {\n if (fieldValidationErrors[field]) {\n firstErroredFieldId = field;\n }\n });\n\n return adjustFirstErroredFieldId(firstErroredFieldId);\n};\n\n/**\n * @private\n */\nexport const handleEmailOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const submitButtonRef: HTMLElement = getRefByFieldId(\"submitButton\");\n if (event.key === \"Enter\" && submitButtonRef) {\n submitButtonRef.click();\n }\n};\n\n/**\n * @deprecated Accessibility standards prevent setting focus without user keyboard interaction\n */\nexport const handleCountryOnKeyDown: InputSelectOnKeyDown = (\n event: React.KeyboardEvent<HTMLInputElement>,\n) => {\n if (event.key === \"Tab\" && !event.shiftKey) {\n event.preventDefault();\n setFocus(\"organization\");\n }\n};\n\n/**\n * @public\n */\nexport const submitForm = (\n viewModel: ViewModel,\n verificationService: VerificationService,\n step: VerificationStepsEnum,\n successCallback?: () => void,\n) => {\n const currentFieldValidationErrors = getFieldValidationErrors(\n viewModel,\n verificationService.formValidationOptions,\n );\n const isFormValid = !isFormErrored(currentFieldValidationErrors);\n\n if (isFormValid) {\n logger.info(`${step} submitting form`);\n verificationService.submitStep(step, viewModel, verificationService.verificationResponse);\n if (successCallback) {\n successCallback();\n }\n } else {\n const fieldDisplayOrder: FieldId[] | ExtendedFieldId[] = getFieldDisplayOrderFromRefs();\n const firstErroredFieldId: FieldId | ExtendedFieldId = getFirstErroredFieldId(\n fieldDisplayOrder,\n currentFieldValidationErrors,\n );\n recordGaEvent({\n eventName: EventName.INVALID_FORM_SUBMIT,\n params: {\n fieldValidationErrors: JSON.stringify(currentFieldValidationErrors),\n },\n });\n updateFieldValidationErrors(currentFieldValidationErrors, verificationService);\n setFocus(firstErroredFieldId);\n }\n};\n\n/**\n * @private\n */\nexport const getAvailableCountryChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<Country, string>[] => {\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n return availableCountries.map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }));\n};\n\n/**\n * @private\n */\nexport const getSortedIdCheckCountryChoices = (\n countries: Country[],\n intl: InjectedIntl,\n locale?: Locale,\n): FormSelectChoice<Country, string>[] => {\n const localeAwareSorter = (a, b) => Intl.Collator(locale).compare(a.label, b.label);\n return countries\n .map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }))\n .sort(localeAwareSorter);\n};\n\nexport const getAvailableStateChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<State, string>[] => {\n const availableStates: State[] = getConfiguredStates(programTheme);\n return availableStates.map((stateCode) => ({\n value: stateCode,\n label: intl.formatHTMLMessage({\n id: `states.${stateCode}`,\n defaultMessage: stateCode,\n }),\n }));\n};\n\n/**\n * @deprecated Not used anywhere and performs a noop.\n */\nexport const produceDraftViewModelWithRequiredFields = <T extends ViewModel>(\n previousModel: T,\n newRequiredFields?: FieldDescription[],\n conditionalRequiredFieldKeys?: (keyof T)[],\n) => {\n logger.info(\n \"produceDraftViewModelWithRequiredFields received. This method is now deprecated and performs a noop, returning previousViewModel\",\n {\n previousModel,\n newRequiredFields,\n conditionalRequiredFieldKeys,\n },\n );\n\n return previousModel;\n};\n\nexport const produceDraftViewModelWithAllRequiredFields = <T extends ViewModel>(\n viewModel: T,\n newRequiredFields: FieldDescription[],\n) =>\n produce(viewModel, (draft: T) => {\n FIELD_IDS.forEach((requiredFieldKey) => {\n if (newRequiredFields.some((field) => field.key === requiredFieldKey)) {\n (draft[requiredFieldKey] as any) =\n viewModel[requiredFieldKey] !== undefined ? viewModel[requiredFieldKey] : \"\";\n } else {\n delete draft[requiredFieldKey];\n }\n });\n });\n\n/**\n * @private\n */\nexport const getDefaultCountryChoice = (\n countryChoices: FormSelectChoice<Country, string>[],\n): FormSelectChoice<Country, string> => {\n if (countryChoices.length > 0) {\n return countryChoices[0];\n }\n return { value: \"US\", label: \"United States\" };\n};\n\n/**\n * @private\n */\nexport const produceDraftViewModel = <T extends ViewModel>(\n previousModel: T,\n key: keyof T,\n value: any,\n) =>\n produce(previousModel, (draft: T) => {\n (draft[key] as any) = value;\n });\n\n/**\n * @private\n */\nexport const getRememberMeRedirectDestination = (\n locale: Locale,\n programId: string,\n verificationId: string,\n): string => {\n const supportBasePreviewUrl = \"https://support-preview.sheerid.net\";\n const supportBaseProdUrl = \"https://support.sheerid.com\";\n let baseUrl = supportBaseProdUrl;\n const { host } = new URL(window.location.href);\n\n if (host.includes(\"preview\") || host.includes(\"localhost\")) {\n baseUrl = supportBasePreviewUrl;\n }\n\n return `${baseUrl}/${locale}/${programId}/${verificationId}/remember-me/`;\n};\n\nexport const getFieldConfigByFieldId = (\n fieldId: PersonalInfoFieldId,\n options: Options = getOptions(),\n) => {\n const fieldConfig = options.formFieldConfig;\n return fieldConfig.find((option) => option.fieldId === fieldId);\n};\n"],"mappings":";;;;;;;AAQA,IAAa,KAAY,MAAuC;CAC9D,IAAM,IAAW,EAAgB,CAAO;CAExC,IAAI,GACF,IAAI;EACF,EAAS,MAAM;CACjB,QA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AAO,EAAK,kBAAkB;EAC5B,IAAI,aAAa;EACjB,gBAAgB;CAClB,CAAC;AACH,EAAE,GAuBS,KACX,GACA,MAEiC,EAAoB,CAC9C,EAAgB,KAAK,OAAe;CACzC,OAAO;CACP,OAAO,EAAK,kBAAkB;EAC5B,IAAI,UAAU;EACd,gBAAgB;CAClB,CAAC;AACH,EAAE,GAuBS,KACX,GACA,MAEA,EAAQ,IAAY,MAAa;CAC/B,EAAU,SAAS,MAAqB;EACtC,AAAI,EAAkB,MAAM,MAAU,EAAM,QAAQ,CAAgB,IAClE,EAAO,KACL,EAAU,OAAsB,KAAA,IAA0C,KAA9B,EAAU,KAExD,OAAO,EAAM;CAEjB,CAAC;AACH,CAAC,GAKU,KACX,MAEI,EAAe,SAAS,IACnB,EAAe,KAEjB;CAAE,OAAO;CAAM,OAAO;AAAgB,GAMlC,KACX,GACA,GACA,MAEA,EAAQ,IAAgB,MAAa;CACnC,EAAO,KAAe;AACxB,CAAC,GAKU,KACX,GACA,GACA,MACW;CACX,IAEI,IAAU,+BACR,EAAE,YAAS,IAAI,IAAI,OAAO,SAAS,IAAI;CAM7C,QAJI,EAAK,SAAS,SAAS,KAAK,EAAK,SAAS,WAAW,OACvD,IAAU,wCAGL,GAAG,EAAQ,GAAG,EAAO,GAAG,EAAU,GAAG,EAAe;AAC7D,GAEa,KACX,GACA,IAAmB,EAAW,MAEV,EAAQ,gBACT,MAAM,MAAW,EAAO,YAAY,CAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepComponentHelpers-DXPc6DBY.js","names":[],"sources":["../../src/lib/utils/browser/inputHelpers.ts","../../src/lib/utils/getSafe.ts","../../src/lib/utils/stepComponentHelpers/stepComponentHelpers.ts"],"sourcesContent":["import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type ExtendedFieldId, type FieldId } from \"../../types/types\";\nimport { getRefByFieldId } from \"../../refs/refs\";\n\n/**\n * @private\n */\nexport const setFocus = (fieldId: FieldId | ExtendedFieldId) => {\n const fieldRef = getRefByFieldId(fieldId);\n\n if (fieldRef) {\n try {\n fieldRef.focus();\n } catch (e) {\n logger.error(\n `The ref '${fieldRef}' could not be focused. Is the ref an HTMLInputElement or HTMLButtonElement?`,\n \"ref error\",\n );\n }\n } else {\n logger.error(\n `A ref for fieldId '${fieldId}' could not be found. Has the ref been registered using setRef()?`,\n \"ref error\",\n );\n }\n};\n","/**\n * Avoid \"can't access property of undefined\" errors in a more readable way.\n * @param fn Function that wraps a nested property access\n * @param defaultVal Optional - the value to return if property access failed\n */\n\nexport function getSafe<T>(fn: () => T, defaultVal?: T): T | undefined {\n try {\n return fn();\n } catch (e) {\n return defaultVal;\n }\n}\n","import { produce } from \"immer\";\nimport { type InjectedIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { EventName, recordGaEvent } from \"@/lib/GoogleAnalytics/ga\";\n\nimport {\n type FieldId,\n type FieldValidationErrors,\n type Organization,\n type VerificationService,\n type FieldContent,\n type FieldRef,\n type ExtendedFieldId,\n type WithOrganization,\n type InputSelectOnKeyDown,\n type FormSelectChoice,\n type Country,\n type ProgramTheme,\n type Locale,\n type ViewModel,\n type State,\n type FieldDescription,\n type AllStatuses,\n type PersonalInfoFieldId,\n type Options,\n} from \"../../types/types\";\nimport { type VerificationStepsEnum } from \"../../types/runtimeTypes\";\nimport { blankOrganization } from \"../../types/empties\";\nimport {\n validateFieldById,\n getFieldValidationErrors,\n isFormErrored,\n} from \"../../validators/validators\";\nimport { setFocus } from \"../browser/inputHelpers\";\nimport { getRefByFieldId, getRefs } from \"../../refs/refs\";\nimport { getSafe } from \"../getSafe\";\nimport {\n getConfiguredCountries,\n getConfiguredStates,\n} from \"../../ProgramTheme/programThemeGetters\";\nimport { getQueryParamsFromUrl } from \"../routing/Url\";\nimport { FIELD_IDS } from \"../../../constants\";\nimport { getOptions } from \"../../../options/options\";\n\nexport const updateViewModelOrganization = (\n organization: Organization,\n verificationService: VerificationService,\n) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const nextState = produce(viewModel, (draft) => {\n draft.organization = organization\n ? {\n id: organization.id,\n idExtended: organization.idExtended,\n name: organization.name,\n city: organization.city,\n state: organization.state,\n source: organization.source,\n }\n : blankOrganization.organization;\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n });\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const populateViewModelFromQueryParams = (verificationService: VerificationService) => {\n const viewModel = verificationService.viewModel as WithOrganization;\n const queryParams = getQueryParamsFromUrl();\n\n const nextState = produce(viewModel, (draft) => {\n Object.keys(viewModel).forEach((key) => {\n if (queryParams.has(key)) {\n draft[key] = queryParams.get(key);\n }\n });\n });\n\n verificationService.updateViewModel(nextState as ViewModel);\n};\n\nexport const updateFieldValidationErrors = (\n fieldValidationErrors: FieldValidationErrors,\n verificationService: VerificationService,\n) => {\n verificationService.updateFieldValidationErrors(fieldValidationErrors);\n};\n\nexport const updateFieldValidationErrorsByFieldId = (\n fieldId: FieldId | ExtendedFieldId,\n value: FieldContent,\n verificationService: VerificationService,\n) => {\n const { fieldValidationErrors } = verificationService;\n const nextState = produce(fieldValidationErrors, (draft) => {\n if (draft[fieldId]) {\n draft[fieldId] = validateFieldById(fieldId, value, verificationService.formValidationOptions);\n }\n });\n updateFieldValidationErrors(nextState, verificationService);\n};\n\nexport const shouldCollectAddressFields = (\n countryChoice: FormSelectChoice<Country, string>,\n countries: Country[],\n): boolean =>\n (getSafe(() => countries.length === 1) && getSafe(() => countries[0]) === \"US\") ||\n getSafe(() => countryChoice.value === \"US\") ||\n getSafe(() => countryChoice.value === undefined);\n\nexport const getStatusLabel = (intl: InjectedIntl, status: AllStatuses | undefined): string => {\n if (!status) {\n return \"\";\n }\n return intl.formatHTMLMessage({\n id: status,\n defaultMessage: status,\n });\n};\n\nexport const getStatusOptions = (\n intl: InjectedIntl,\n statuses: AllStatuses[] | undefined,\n): FormSelectChoice[] => {\n if (!statuses) {\n return [];\n }\n return statuses.map((status) => ({\n value: status,\n label: getStatusLabel(intl, status),\n }));\n};\n\nexport const orgToOption = (org: Organization) => ({\n value: org.id,\n label: org.name,\n country: org.country,\n});\n\n/**\n * @private\n */\nexport const getFieldDisplayOrderFromRefs = (): FieldId[] | ExtendedFieldId[] => {\n const refs: FieldRef[] = getRefs();\n const fieldDisplayOrder: FieldId | ExtendedFieldId[] = [];\n\n refs.map((refObject: FieldRef) => fieldDisplayOrder.push(refObject.fieldId));\n\n return fieldDisplayOrder;\n};\n\n/**\n * HD-638 - focus on year, rather than month (which is an open <select> that covers error msg)\n */\nexport const adjustFirstErroredFieldId = (\n firstErroredFieldId: FieldId | ExtendedFieldId,\n): FieldId | ExtendedFieldId => {\n if (firstErroredFieldId === \"birthDate\" || firstErroredFieldId === \"birthDateDay\") {\n return \"birthDateYear\";\n }\n return firstErroredFieldId;\n};\n\n/**\n * @private\n */\nexport const getFirstErroredFieldId = (\n fieldDisplayOrder: FieldId[] | ExtendedFieldId[],\n fieldValidationErrors: FieldValidationErrors,\n): FieldId | ExtendedFieldId => {\n let firstErroredFieldId: FieldId | ExtendedFieldId;\n\n fieldDisplayOrder.reverse().forEach((field) => {\n if (fieldValidationErrors[field]) {\n firstErroredFieldId = field;\n }\n });\n\n return adjustFirstErroredFieldId(firstErroredFieldId);\n};\n\n/**\n * @private\n */\nexport const handleEmailOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const submitButtonRef: HTMLElement = getRefByFieldId(\"submitButton\");\n if (event.key === \"Enter\" && submitButtonRef) {\n submitButtonRef.click();\n }\n};\n\n/**\n * @deprecated Accessibility standards prevent setting focus without user keyboard interaction\n */\nexport const handleCountryOnKeyDown: InputSelectOnKeyDown = (\n event: React.KeyboardEvent<HTMLInputElement>,\n) => {\n if (event.key === \"Tab\" && !event.shiftKey) {\n event.preventDefault();\n setFocus(\"organization\");\n }\n};\n\n/**\n * @public\n */\nexport const submitForm = (\n viewModel: ViewModel,\n verificationService: VerificationService,\n step: VerificationStepsEnum,\n successCallback?: () => void,\n) => {\n const currentFieldValidationErrors = getFieldValidationErrors(\n viewModel,\n verificationService.formValidationOptions,\n );\n const isFormValid = !isFormErrored(currentFieldValidationErrors);\n\n if (isFormValid) {\n logger.info(`${step} submitting form`);\n verificationService.submitStep(step, viewModel, verificationService.verificationResponse);\n if (successCallback) {\n successCallback();\n }\n } else {\n const fieldDisplayOrder: FieldId[] | ExtendedFieldId[] = getFieldDisplayOrderFromRefs();\n const firstErroredFieldId: FieldId | ExtendedFieldId = getFirstErroredFieldId(\n fieldDisplayOrder,\n currentFieldValidationErrors,\n );\n recordGaEvent({\n eventName: EventName.INVALID_FORM_SUBMIT,\n params: {\n fieldValidationErrors: JSON.stringify(currentFieldValidationErrors),\n },\n });\n updateFieldValidationErrors(currentFieldValidationErrors, verificationService);\n setFocus(firstErroredFieldId);\n }\n};\n\n/**\n * @private\n */\nexport const getAvailableCountryChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<Country, string>[] => {\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n return availableCountries.map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }));\n};\n\n/**\n * @private\n */\nexport const getSortedIdCheckCountryChoices = (\n countries: Country[],\n intl: InjectedIntl,\n locale?: Locale,\n): FormSelectChoice<Country, string>[] => {\n const localeAwareSorter = (a, b) => Intl.Collator(locale).compare(a.label, b.label);\n return countries\n .map((countryCode) => ({\n value: countryCode,\n label: intl.formatHTMLMessage({\n id: `countries.${countryCode}`,\n defaultMessage: countryCode,\n }),\n }))\n .sort(localeAwareSorter);\n};\n\nexport const getAvailableStateChoices = (\n programTheme: ProgramTheme,\n intl: InjectedIntl,\n): FormSelectChoice<State, string>[] => {\n const availableStates: State[] = getConfiguredStates(programTheme);\n return availableStates.map((stateCode) => ({\n value: stateCode,\n label: intl.formatHTMLMessage({\n id: `states.${stateCode}`,\n defaultMessage: stateCode,\n }),\n }));\n};\n\n/**\n * @deprecated Not used anywhere and performs a noop.\n */\nexport const produceDraftViewModelWithRequiredFields = <T extends ViewModel>(\n previousModel: T,\n newRequiredFields?: FieldDescription[],\n conditionalRequiredFieldKeys?: (keyof T)[],\n) => {\n logger.info(\n \"produceDraftViewModelWithRequiredFields received. This method is now deprecated and performs a noop, returning previousViewModel\",\n {\n previousModel,\n newRequiredFields,\n conditionalRequiredFieldKeys,\n },\n );\n\n return previousModel;\n};\n\nexport const produceDraftViewModelWithAllRequiredFields = <T extends ViewModel>(\n viewModel: T,\n newRequiredFields: FieldDescription[],\n) =>\n produce(viewModel, (draft: T) => {\n FIELD_IDS.forEach((requiredFieldKey) => {\n if (newRequiredFields.some((field) => field.key === requiredFieldKey)) {\n (draft[requiredFieldKey] as any) =\n viewModel[requiredFieldKey] !== undefined ? viewModel[requiredFieldKey] : \"\";\n } else {\n delete draft[requiredFieldKey];\n }\n });\n });\n\n/**\n * @private\n */\nexport const getDefaultCountryChoice = (\n countryChoices: FormSelectChoice<Country, string>[],\n): FormSelectChoice<Country, string> => {\n if (countryChoices.length > 0) {\n return countryChoices[0];\n }\n return { value: \"US\", label: \"United States\" };\n};\n\n/**\n * @private\n */\nexport const produceDraftViewModel = <T extends ViewModel>(\n previousModel: T,\n key: keyof T,\n value: any,\n) =>\n produce(previousModel, (draft: T) => {\n (draft[key] as any) = value;\n });\n\n/**\n * @private\n */\nexport const getRememberMeRedirectDestination = (\n locale: Locale,\n programId: string,\n verificationId: string,\n): string => {\n const supportBasePreviewUrl = \"https://support-preview.sheerid.net\";\n const supportBaseProdUrl = \"https://support.sheerid.com\";\n let baseUrl = supportBaseProdUrl;\n const { host } = new URL(window.location.href);\n\n if (host.includes(\"preview\") || host.includes(\"localhost\")) {\n baseUrl = supportBasePreviewUrl;\n }\n\n return `${baseUrl}/${locale}/${programId}/${verificationId}/remember-me/`;\n};\n\nexport const getFieldConfigByFieldId = (\n fieldId: PersonalInfoFieldId,\n options: Options = getOptions(),\n) => {\n const fieldConfig = options.formFieldConfig;\n return fieldConfig.find((option) => option.fieldId === fieldId);\n};\n"],"mappings":";;;;;;;AAQA,IAAa,KAAY,MAAuC;CAC9D,IAAM,IAAW,EAAgB,CAAO;CAExC,IAAI,GACF,IAAI;EACF,EAAS,MAAM;CACjB,QAAY;EACV,EAAO,MACL,YAAY,EAAS,+EACrB,WACF;CACF;MAEA,EAAO,MACL,sBAAsB,EAAQ,oEAC9B,WACF;AAEJ;;;ACpBA,SAAgB,EAAW,GAAa,GAA+B;CACrE,IAAI;EACF,OAAO,EAAG;CACZ,QAAY;EACV,OAAO;CACT;AACF;;;ACkCA,IAAa,KACX,GACA,MACG;CACH,IAAM,IAAY,EAAoB,WAChC,IAAY,EAAQ,IAAY,MAAU;EAW9C,AAVA,EAAM,eAAe,IACjB;GACE,IAAI,EAAa;GACjB,YAAY,EAAa;GACzB,MAAM,EAAa;GACnB,MAAM,EAAa;GACnB,OAAO,EAAa;GACpB,QAAQ,EAAa;EACvB,IACA,EAAkB,cAClB,EAAU,gBAAgB,EAAU,aAAa,WAAW,KAAA,MAC9D,EAAM,aAAa,SAAS,EAAU,aAAa;CAEvD,CAAC;CACD,EAAoB,gBAAgB,CAAsB;AAC5D,GAEa,KAAoC,MAA6C;CAC5F,IAAM,IAAY,EAAoB,WAChC,IAAc,EAAsB,GAEpC,IAAY,EAAQ,IAAY,MAAU;EAC9C,OAAO,KAAK,CAAS,EAAE,SAAS,MAAQ;GACtC,AAAI,EAAY,IAAI,CAAG,MACrB,EAAM,KAAO,EAAY,IAAI,CAAG;EAEpC,CAAC;CACH,CAAC;CAED,EAAoB,gBAAgB,CAAsB;AAC5D,GAEa,KACX,GACA,MACG;CACH,EAAoB,4BAA4B,CAAqB;AACvE,GAEa,KACX,GACA,GACA,MACG;CACH,IAAM,EAAE,6BAA0B;CAMlC,EALkB,EAAQ,IAAwB,MAAU;EAC1D,AAAI,EAAM,O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