@sheerid/jslib-nightly 2.259.0-alpha.3 → 2.259.0-alpha.4
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 +1457 -1457
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-DMwOmjiG.js → AddressComponent-BAzFHRbA.js} +5 -5
- package/chunk/{AddressComponent-CJV3vrMt.js.map → AddressComponent-BAzFHRbA.js.map} +1 -1
- package/chunk/{AddressComponent-CJV3vrMt.js → AddressComponent-DwBYG6uf.js} +5 -5
- package/chunk/{AddressComponent-DMwOmjiG.js.map → AddressComponent-DwBYG6uf.js.map} +1 -1
- package/chunk/{AnnouncingHeader-DjgtqEeX.js → AnnouncingHeader-C3SZBL-2.js} +5 -5
- package/chunk/{AnnouncingHeader-BF69hVVm.js.map → AnnouncingHeader-C3SZBL-2.js.map} +1 -1
- package/chunk/{AnnouncingHeader-BF69hVVm.js → AnnouncingHeader-DQHkHL1F.js} +5 -5
- package/chunk/{AnnouncingHeader-DjgtqEeX.js.map → AnnouncingHeader-DQHkHL1F.js.map} +1 -1
- package/chunk/{ApiUrls-D95iKOSI.js → ApiUrls-C1i2zShE.js} +5 -9
- package/chunk/{ApiUrls-D95iKOSI.js.map → ApiUrls-C1i2zShE.js.map} +1 -1
- package/chunk/ApiUrls-dZcmNEuL.js +42 -0
- package/chunk/{ApiUrls-jsXRjACf.js.map → ApiUrls-dZcmNEuL.js.map} +1 -1
- package/chunk/{BirthDateComponent-BHSI0CUp.js → BirthDateComponent-CWp6qCwi.js} +6 -6
- package/chunk/{BirthDateComponent-BHSI0CUp.js.map → BirthDateComponent-CWp6qCwi.js.map} +1 -1
- package/chunk/{BirthDateComponent-DqkkSB42.js → BirthDateComponent-D9LlGf-7.js} +6 -6
- package/chunk/{BirthDateComponent-DqkkSB42.js.map → BirthDateComponent-D9LlGf-7.js.map} +1 -1
- package/chunk/{CaptchaComponent-pa2v-Kv1.js → CaptchaComponent-BLKVnsDS.js} +119 -123
- package/chunk/{CaptchaComponent-B2bCn0HL.js.map → CaptchaComponent-BLKVnsDS.js.map} +1 -1
- package/chunk/{CaptchaComponent-B2bCn0HL.js → CaptchaComponent-ZNBrwLAd.js} +183 -179
- package/chunk/{CaptchaComponent-pa2v-Kv1.js.map → CaptchaComponent-ZNBrwLAd.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Cy07cdJk.js → ChangeLocaleComponent-CkmHNHiE.js} +6 -6
- package/chunk/{ChangeLocaleComponent-CP_kEafQ.js.map → ChangeLocaleComponent-CkmHNHiE.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CP_kEafQ.js → ChangeLocaleComponent-MCyF8czV.js} +6 -6
- package/chunk/{ChangeLocaleComponent-Cy07cdJk.js.map → ChangeLocaleComponent-MCyF8czV.js.map} +1 -1
- package/chunk/{City-CmO85Z9x.js → City-Ch0wNVmN.js} +5 -5
- package/chunk/{City-CmO85Z9x.js.map → City-Ch0wNVmN.js.map} +1 -1
- package/chunk/{City-DlWin4GX.js → City-umz1wU5f.js} +5 -5
- package/chunk/{City-DlWin4GX.js.map → City-umz1wU5f.js.map} +1 -1
- package/chunk/{CollegeNameComponent-wdFkAFsj.js → CollegeNameComponent-Bw1V9DWR.js} +7 -7
- package/chunk/{CollegeNameComponent-Cz9Us9RM.js.map → CollegeNameComponent-Bw1V9DWR.js.map} +1 -1
- package/chunk/{CollegeNameComponent-Cz9Us9RM.js → CollegeNameComponent-sTb0aLwH.js} +7 -7
- package/chunk/{CollegeNameComponent-wdFkAFsj.js.map → CollegeNameComponent-sTb0aLwH.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-1BeB_oX_.js → CopyToClipboardComponent-CfiR0il_.js} +8 -8
- package/chunk/{CopyToClipboardComponent-1BeB_oX_.js.map → CopyToClipboardComponent-CfiR0il_.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-C1BnmvlK.js → CopyToClipboardComponent-eiQyVezJ.js} +8 -8
- package/chunk/{CopyToClipboardComponent-C1BnmvlK.js.map → CopyToClipboardComponent-eiQyVezJ.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BHYHjLHh.js → CountryComponentWrapper-BSSdDVcs.js} +17 -13
- package/chunk/{CountryComponentWrapper-AaraHOGX.js.map → CountryComponentWrapper-BSSdDVcs.js.map} +1 -1
- package/chunk/CountryComponentWrapper-BWQRtr9a.js +74 -0
- package/chunk/{CountryComponentWrapper-BHYHjLHh.js.map → CountryComponentWrapper-BWQRtr9a.js.map} +1 -1
- package/chunk/{DischargeDateComponent-BrziTMXL.js → DischargeDateComponent-BX2aPQbK.js} +12 -12
- package/chunk/{DischargeDateComponent-BrziTMXL.js.map → DischargeDateComponent-BX2aPQbK.js.map} +1 -1
- package/chunk/{DischargeDateComponent-d85FApuP.js → DischargeDateComponent-DmQ9YAzc.js} +13 -13
- package/chunk/{DischargeDateComponent-d85FApuP.js.map → DischargeDateComponent-DmQ9YAzc.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-D8q18o2M.js → DriverLicenseNumberComponent-BVOVJVvt.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-D8q18o2M.js.map → DriverLicenseNumberComponent-BVOVJVvt.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DgXMM-Pt.js → DriverLicenseNumberComponent-oKgkWwie.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-DgXMM-Pt.js.map → DriverLicenseNumberComponent-oKgkWwie.js.map} +1 -1
- package/chunk/{EmailLoopPending-CFh6KYhR.js → EmailLoopPending-CE-tueNf.js} +18 -18
- package/chunk/{EmailLoopPending-CFh6KYhR.js.map → EmailLoopPending-CE-tueNf.js.map} +1 -1
- package/chunk/{EmailLoopPending-BBrkjClD.js → EmailLoopPending-IfP5ilCU.js} +22 -22
- package/chunk/{EmailLoopPending-BBrkjClD.js.map → EmailLoopPending-IfP5ilCU.js.map} +1 -1
- package/chunk/{ExtraMessage-DuEKh0WN.js → ExtraMessage-BicSxrM8.js} +6 -6
- package/chunk/{ExtraMessage-BYLbcc4O.js.map → ExtraMessage-BicSxrM8.js.map} +1 -1
- package/chunk/{ExtraMessage-BYLbcc4O.js → ExtraMessage-D_tMUnf9.js} +6 -6
- package/chunk/{ExtraMessage-DuEKh0WN.js.map → ExtraMessage-D_tMUnf9.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DlrpOY2c.js → FirstResponderOrganizationComponent-CarIvxfO.js} +6 -6
- package/chunk/{FirstResponderOrganizationComponent-Bm-LyjdU.js.map → FirstResponderOrganizationComponent-CarIvxfO.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Bm-LyjdU.js → FirstResponderOrganizationComponent-DATMg2cJ.js} +6 -6
- package/chunk/{FirstResponderOrganizationComponent-DlrpOY2c.js.map → FirstResponderOrganizationComponent-DATMg2cJ.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-CcSfBZU4.js → FormFieldInputSelect-BoPAcenZ.js} +6 -6
- package/chunk/{FormFieldInputSelect-CcSfBZU4.js.map → FormFieldInputSelect-BoPAcenZ.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DFoefspo.js → FormFieldInputSelect-PSqzJ3aN.js} +6 -6
- package/chunk/{FormFieldInputSelect-DFoefspo.js.map → FormFieldInputSelect-PSqzJ3aN.js.map} +1 -1
- package/chunk/{FormFieldLayout-BpmeMD4X.js → FormFieldLayout-Bb1WuAD0.js} +5 -5
- package/chunk/{FormFieldLayout-DIcCOsGu.js.map → FormFieldLayout-Bb1WuAD0.js.map} +1 -1
- package/chunk/{FormFieldLayout-DIcCOsGu.js → FormFieldLayout-DXsnKxvN.js} +5 -5
- package/chunk/{FormFieldLayout-BpmeMD4X.js.map → FormFieldLayout-DXsnKxvN.js.map} +1 -1
- package/chunk/{FormFieldText-zuTjfmLt.js → FormFieldText-B9pb3dXH.js} +6 -6
- package/chunk/{FormFieldText-zjWk7Cyc.js.map → FormFieldText-B9pb3dXH.js.map} +1 -1
- package/chunk/{FormFieldText-zjWk7Cyc.js → FormFieldText-pZJ86ywV.js} +6 -6
- package/chunk/{FormFieldText-zuTjfmLt.js.map → FormFieldText-pZJ86ywV.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CWBTzGT7.js → FormFieldTypeahead-BLvDi0is.js} +90 -90
- package/chunk/{FormFieldTypeahead-CWBTzGT7.js.map → FormFieldTypeahead-BLvDi0is.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-C6c2tZjB.js → FormFieldTypeahead-DSiQ4zHO.js} +136 -136
- package/chunk/{FormFieldTypeahead-C6c2tZjB.js.map → FormFieldTypeahead-DSiQ4zHO.js.map} +1 -1
- package/chunk/{FormFooterComponent-CU9v96Pk.js → FormFooterComponent-B5sO7lYC.js} +1446 -1446
- package/chunk/FormFooterComponent-B5sO7lYC.js.map +1 -0
- package/chunk/{FormFooterComponent-BvXzhu3G.js → FormFooterComponent-DsvjZf4o.js} +1881 -1881
- package/chunk/{FormFooterComponent-BvXzhu3G.js.map → FormFooterComponent-DsvjZf4o.js.map} +1 -1
- package/chunk/{FormSelectChoice-De4VW65J.js → FormSelectChoice-DoK87Gbl.js} +16 -16
- package/chunk/{FormSelectChoice-C1rXawoW.js.map → FormSelectChoice-DoK87Gbl.js.map} +1 -1
- package/chunk/{FormSelectChoice-C1rXawoW.js → FormSelectChoice-YtuMSK5M.js} +16 -16
- package/chunk/{FormSelectChoice-De4VW65J.js.map → FormSelectChoice-YtuMSK5M.js.map} +1 -1
- package/chunk/{InputText-DA8wfbQM.js → InputText-B3qMKLhG.js} +6 -6
- package/chunk/{InputText-Bzkl8mKj.js.map → InputText-B3qMKLhG.js.map} +1 -1
- package/chunk/{InputText-Bzkl8mKj.js → InputText-CM38DNW0.js} +6 -6
- package/chunk/{InputText-DA8wfbQM.js.map → InputText-CM38DNW0.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-DWw7sAA_.js → LicensedProfessionalOrganizationComponent-7Ch23kP0.js} +6 -6
- package/chunk/{LicensedProfessionalOrganizationComponent-DDLl3nm2.js.map → LicensedProfessionalOrganizationComponent-7Ch23kP0.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-DDLl3nm2.js → LicensedProfessionalOrganizationComponent-bpm8_oJn.js} +6 -6
- package/chunk/{LicensedProfessionalOrganizationComponent-DWw7sAA_.js.map → LicensedProfessionalOrganizationComponent-bpm8_oJn.js.map} +1 -1
- package/chunk/{LogoComponent-BxIXOXCM.js → LogoComponent-C2JeW5X0.js} +5 -5
- package/chunk/{LogoComponent-BMeuu-aK.js.map → LogoComponent-C2JeW5X0.js.map} +1 -1
- package/chunk/{LogoComponent-BMeuu-aK.js → LogoComponent-DwplRUhZ.js} +5 -5
- package/chunk/{LogoComponent-BxIXOXCM.js.map → LogoComponent-DwplRUhZ.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-pg41N7jZ.js → LowIncomeOrganizationComponent-CF8b7PRT.js} +15 -15
- package/chunk/{LowIncomeOrganizationComponent-Js2hdcpd.js.map → LowIncomeOrganizationComponent-CF8b7PRT.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Js2hdcpd.js → LowIncomeOrganizationComponent-DNH8KSnF.js} +16 -16
- package/chunk/{LowIncomeOrganizationComponent-pg41N7jZ.js.map → LowIncomeOrganizationComponent-DNH8KSnF.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CG94dxGF.js → MedicalProfessionalOrganizationComponent-CQYCEMrI.js} +6 -6
- package/chunk/{MedicalProfessionalOrganizationComponent-BiAMjeYg.js.map → MedicalProfessionalOrganizationComponent-CQYCEMrI.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-BiAMjeYg.js → MedicalProfessionalOrganizationComponent-DrbGfGEM.js} +6 -6
- package/chunk/{MedicalProfessionalOrganizationComponent-CG94dxGF.js.map → MedicalProfessionalOrganizationComponent-DrbGfGEM.js.map} +1 -1
- package/chunk/{MemberIdComponent-Dva2Xx7J.js → MemberIdComponent-CFB8g_hq.js} +5 -5
- package/chunk/{MemberIdComponent-DMGaNM9l.js.map → MemberIdComponent-CFB8g_hq.js.map} +1 -1
- package/chunk/{MemberIdComponent-DMGaNM9l.js → MemberIdComponent-CTSpgRAd.js} +5 -5
- package/chunk/{MemberIdComponent-Dva2Xx7J.js.map → MemberIdComponent-CTSpgRAd.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-B4sltAFs.js → MembershipOrganizationComponent-DGi-HUka.js} +6 -6
- package/chunk/{MembershipOrganizationComponent-B4sltAFs.js.map → MembershipOrganizationComponent-DGi-HUka.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DqdtAn4g.js → MembershipOrganizationComponent-sZW8Wagq.js} +6 -6
- package/chunk/{MembershipOrganizationComponent-DqdtAn4g.js.map → MembershipOrganizationComponent-sZW8Wagq.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/{PersonalInfoStepSubmitButton-D3lzSm2E.js → PersonalInfoStepSubmitButton-5tuzy7zT.js} +20 -20
- package/chunk/{PersonalInfoStepSubmitButton-D3lzSm2E.js.map → PersonalInfoStepSubmitButton-5tuzy7zT.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-Ywai8bYu.js → PersonalInfoStepSubmitButton-Cz_CdAWG.js} +15 -15
- package/chunk/{PersonalInfoStepSubmitButton-Ywai8bYu.js.map → PersonalInfoStepSubmitButton-Cz_CdAWG.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-CfEXVPIa.js → PersonalInfoStepWrapper-4ZK1A1_g.js} +21 -21
- package/chunk/{PersonalInfoStepWrapper-CfEXVPIa.js.map → PersonalInfoStepWrapper-4ZK1A1_g.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-lbTtms4r.js → PersonalInfoStepWrapper-ARH3ZED1.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-lbTtms4r.js.map → PersonalInfoStepWrapper-ARH3ZED1.js.map} +1 -1
- package/chunk/{PostalCodeComponent-BGzBByZd.js → PostalCodeComponent-BYqnLcHd.js} +5 -5
- package/chunk/{PostalCodeComponent-C97fgZFI.js.map → PostalCodeComponent-BYqnLcHd.js.map} +1 -1
- package/chunk/{PostalCodeComponent-C97fgZFI.js → PostalCodeComponent-BwpQbUxr.js} +5 -5
- package/chunk/{PostalCodeComponent-BGzBByZd.js.map → PostalCodeComponent-BwpQbUxr.js.map} +1 -1
- package/chunk/{SSN-mk_cMbDH.js → SSN-BDVJgGSQ.js} +6 -6
- package/chunk/{SSN-CNzKgddw.js.map → SSN-BDVJgGSQ.js.map} +1 -1
- package/chunk/{SSN-CNzKgddw.js → SSN-DAInA3wn.js} +6 -6
- package/chunk/{SSN-mk_cMbDH.js.map → SSN-DAInA3wn.js.map} +1 -1
- package/chunk/{StateSelectComponent-C6R9Cjgi.js → StateSelectComponent-C12-PmBR.js} +5 -5
- package/chunk/{StateSelectComponent-C6R9Cjgi.js.map → StateSelectComponent-C12-PmBR.js.map} +1 -1
- package/chunk/{StateSelectComponent-DVR-oYsL.js → StateSelectComponent-Ctqsq9QW.js} +5 -5
- package/chunk/{StateSelectComponent-DVR-oYsL.js.map → StateSelectComponent-Ctqsq9QW.js.map} +1 -1
- package/chunk/{StatusComponent-VG5PRT7W.js → StatusComponent-BkaYM9ne.js} +6 -6
- package/chunk/{StatusComponent-DS5eysat.js.map → StatusComponent-BkaYM9ne.js.map} +1 -1
- package/chunk/{StatusComponent-DS5eysat.js → StatusComponent-DWf6Z-oB.js} +6 -6
- package/chunk/{StatusComponent-VG5PRT7W.js.map → StatusComponent-DWf6Z-oB.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-CLHSV6aV.js → StepActiveMilitaryPersonalInfoComponent--98sV1fQ.js} +23 -23
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-CLHSV6aV.js.map → StepActiveMilitaryPersonalInfoComponent--98sV1fQ.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-CsydoggY.js → StepActiveMilitaryPersonalInfoComponent-DhsxUHNz.js} +20 -20
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-CsydoggY.js.map → StepActiveMilitaryPersonalInfoComponent-DhsxUHNz.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DlOA9WFp.js → StepAgePersonalInfo-ApVus-QC.js} +19 -19
- package/chunk/{StepAgePersonalInfo-DW1ElYsy.js.map → StepAgePersonalInfo-ApVus-QC.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DW1ElYsy.js → StepAgePersonalInfo-D2TBteBL.js} +56 -56
- package/chunk/{StepAgePersonalInfo-DlOA9WFp.js.map → StepAgePersonalInfo-D2TBteBL.js.map} +1 -1
- package/chunk/{StepCard-7t2vkHqM.js → StepCard-Byk_N2eu.js} +4 -4
- package/chunk/{StepCard-7t2vkHqM.js.map → StepCard-Byk_N2eu.js.map} +1 -1
- package/chunk/{StepCard-BtvCt-ND.js → StepCard-CTG7niZl.js} +4 -4
- package/chunk/{StepCard-BtvCt-ND.js.map → StepCard-CTG7niZl.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-BitqCn5S.js → StepCollectIdentifier-BACoD6-6.js} +7 -7
- package/chunk/{StepCollectIdentifier-iokOENmH.js.map → StepCollectIdentifier-BACoD6-6.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-iokOENmH.js → StepCollectIdentifier-BWoApZSB.js} +7 -7
- package/chunk/{StepCollectIdentifier-BitqCn5S.js.map → StepCollectIdentifier-BWoApZSB.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-DSl_NI5F.js → StepCollectMilitaryStatusComponent-CAmLY6bG.js} +4 -4
- package/chunk/StepCollectMilitaryStatusComponent-Dr2wJ6o4.js +9 -0
- package/chunk/StepCollectPersonalInfo-C4oB2-uA.js +361 -0
- package/chunk/{StepCollectPersonalInfo-BsRPrpbi.js.map → StepCollectPersonalInfo-C4oB2-uA.js.map} +1 -1
- package/chunk/StepCollectPersonalInfo-D6nFnozX.js +357 -0
- package/chunk/{StepCollectPersonalInfo-D_E9jueP.js.map → StepCollectPersonalInfo-D6nFnozX.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-Cs4zhI-D.js → StepCompleteAuthentication-C0eGb9ij.js} +18 -18
- package/chunk/{StepCompleteAuthentication-C2HoMZzF.js.map → StepCompleteAuthentication-C0eGb9ij.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-C2HoMZzF.js → StepCompleteAuthentication-DZ5iFFUF.js} +6 -6
- package/chunk/{StepCompleteAuthentication-Cs4zhI-D.js.map → StepCompleteAuthentication-DZ5iFFUF.js.map} +1 -1
- package/chunk/{StepConsolation-CIsDgtMF.js → StepConsolation-8kRAj5Sz.js} +8 -8
- package/chunk/{StepConsolation-C4z3-RUr.js.map → StepConsolation-8kRAj5Sz.js.map} +1 -1
- package/chunk/{StepConsolation-C4z3-RUr.js → StepConsolation-DD2SGGyo.js} +8 -8
- package/chunk/{StepConsolation-CIsDgtMF.js.map → StepConsolation-DD2SGGyo.js.map} +1 -1
- package/chunk/{StepDocUpload-DB-j-bu5.js → StepDocUpload-BHToEeCL.js} +93 -93
- package/chunk/{StepDocUpload-DB-j-bu5.js.map → StepDocUpload-BHToEeCL.js.map} +1 -1
- package/chunk/{StepDocUpload-QrHXh8mp.js → StepDocUpload-CQUiXtli.js} +211 -211
- package/chunk/{StepDocUpload-QrHXh8mp.js.map → StepDocUpload-CQUiXtli.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-siLTyqlG.js → StepDriverLicensePersonalInfoComponent-Bn6_yUfQ.js} +14 -14
- package/chunk/{StepDriverLicensePersonalInfoComponent-bh1_IVPF.js.map → StepDriverLicensePersonalInfoComponent-Bn6_yUfQ.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-bh1_IVPF.js → StepDriverLicensePersonalInfoComponent-CHEgMokE.js} +14 -14
- package/chunk/{StepDriverLicensePersonalInfoComponent-siLTyqlG.js.map → StepDriverLicensePersonalInfoComponent-CHEgMokE.js.map} +1 -1
- package/chunk/{StepEmailLoop-BPyFeeyk.js → StepEmailLoop-BVn2f_di.js} +13 -13
- package/chunk/{StepEmailLoop-BPyFeeyk.js.map → StepEmailLoop-BVn2f_di.js.map} +1 -1
- package/chunk/{StepEmailLoop-CLgXP9PF.js → StepEmailLoop-DQDO5FRh.js} +12 -12
- package/chunk/{StepEmailLoop-CLgXP9PF.js.map → StepEmailLoop-DQDO5FRh.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-D3OVzQfH.js → StepEmploymentPersonalInfo-4AHfUrMV.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-BhfN1Swc.js.map → StepEmploymentPersonalInfo-4AHfUrMV.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BhfN1Swc.js → StepEmploymentPersonalInfo-BQXJZC68.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-D3OVzQfH.js.map → StepEmploymentPersonalInfo-BQXJZC68.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CJ_OFUC1.js → StepFirstResponderPersonalInfo-BnYellOy.js} +25 -25
- package/chunk/{StepFirstResponderPersonalInfo-CJ_OFUC1.js.map → StepFirstResponderPersonalInfo-BnYellOy.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-Uj_HyOUK.js → StepFirstResponderPersonalInfo-C6vO86r_.js} +31 -31
- package/chunk/{StepFirstResponderPersonalInfo-Uj_HyOUK.js.map → StepFirstResponderPersonalInfo-C6vO86r_.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BA1NUm7h.js → StepGeneralIdentityPersonalInfoComponent-DT9ktn2p.js} +17 -17
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BA1NUm7h.js.map → StepGeneralIdentityPersonalInfoComponent-DT9ktn2p.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DhXG5JLx.js → StepGeneralIdentityPersonalInfoComponent-DWi-th_C.js} +17 -17
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DhXG5JLx.js.map → StepGeneralIdentityPersonalInfoComponent-DWi-th_C.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DL_yTP9w.js → StepHybridIdentityPersonalInfoComponent-BwGv3tHn.js} +18 -18
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BGO0rNuA.js.map → StepHybridIdentityPersonalInfoComponent-BwGv3tHn.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BGO0rNuA.js → StepHybridIdentityPersonalInfoComponent-wwCb9afT.js} +18 -18
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DL_yTP9w.js.map → StepHybridIdentityPersonalInfoComponent-wwCb9afT.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-D6leD-oX.js → StepIDCheckLoop-B22CZjOb.js} +7 -7
- package/chunk/{StepIDCheckLoop-1S7sp1g_.js.map → StepIDCheckLoop-B22CZjOb.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-1S7sp1g_.js → StepIDCheckLoop-CqafffPd.js} +7 -7
- package/chunk/{StepIDCheckLoop-D6leD-oX.js.map → StepIDCheckLoop-CqafffPd.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DS62i7yb.js → StepIDCheckLoopOnfido-BubFyrh9.js} +37 -37
- package/chunk/{StepIDCheckLoopOnfido-NLKVzJV1.js.map → StepIDCheckLoopOnfido-BubFyrh9.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-NLKVzJV1.js → StepIDCheckLoopOnfido-QHwxn2Tv.js} +43 -43
- package/chunk/{StepIDCheckLoopOnfido-DS62i7yb.js.map → StepIDCheckLoopOnfido-QHwxn2Tv.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DpsuIVdU.js → StepIDCheckLoopRegula-DBucry3o.js} +19 -19
- package/chunk/{StepIDCheckLoopRegula-DeLb4d-j.js.map → StepIDCheckLoopRegula-DBucry3o.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DeLb4d-j.js → StepIDCheckLoopRegula-piiOyU4g.js} +20 -20
- package/chunk/{StepIDCheckLoopRegula-DpsuIVdU.js.map → StepIDCheckLoopRegula-piiOyU4g.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BJg7kmzL.js → StepInactiveMilitaryPersonalInfoComponent-CPD1WFY_.js} +27 -27
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BJg7kmzL.js.map → StepInactiveMilitaryPersonalInfoComponent-CPD1WFY_.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-ag9fYZ8M.js → StepInactiveMilitaryPersonalInfoComponent-Dw6xaLWV.js} +30 -30
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-ag9fYZ8M.js.map → StepInactiveMilitaryPersonalInfoComponent-Dw6xaLWV.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CqCGJBV_.js → StepLicensedProfessionalPersonalInfo-C3Z9WWZc.js} +16 -16
- package/chunk/{StepLicensedProfessionalPersonalInfo-6e-HsF9r.js.map → StepLicensedProfessionalPersonalInfo-C3Z9WWZc.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-6e-HsF9r.js → StepLicensedProfessionalPersonalInfo-DD34r3AQ.js} +16 -16
- package/chunk/{StepLicensedProfessionalPersonalInfo-CqCGJBV_.js.map → StepLicensedProfessionalPersonalInfo-DD34r3AQ.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-Vy6xgq87.js → StepLowIncomePersonalInfo-t49sIPYt.js} +30 -30
- package/chunk/{StepLowIncomePersonalInfo-Vy6xgq87.js.map → StepLowIncomePersonalInfo-t49sIPYt.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-nHj8RV6k.js → StepLowIncomePersonalInfo-uMs4T1U6.js} +31 -31
- package/chunk/{StepLowIncomePersonalInfo-nHj8RV6k.js.map → StepLowIncomePersonalInfo-uMs4T1U6.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BbkO8cmo.js → StepMedicalProfessionalPersonalInfo-DFspAO2Z.js} +23 -23
- package/chunk/{StepMedicalProfessionalPersonalInfo-BbkO8cmo.js.map → StepMedicalProfessionalPersonalInfo-DFspAO2Z.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-wrrupNWv.js → StepMedicalProfessionalPersonalInfo-FBuxl6LW.js} +20 -20
- package/chunk/{StepMedicalProfessionalPersonalInfo-wrrupNWv.js.map → StepMedicalProfessionalPersonalInfo-FBuxl6LW.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-Df9tiNq4.js → StepMemberPersonalInfo-BPnbyPU4.js} +15 -15
- package/chunk/{StepMemberPersonalInfo-Df9tiNq4.js.map → StepMemberPersonalInfo-BPnbyPU4.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DzmzUubV.js → StepMemberPersonalInfo-Duikog5u.js} +56 -56
- package/chunk/{StepMemberPersonalInfo-DzmzUubV.js.map → StepMemberPersonalInfo-Duikog5u.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DtYxf5Tv.js → StepMoverPersonalInfo-C5OxWQd3.js} +47 -47
- package/chunk/{StepMoverPersonalInfo-DtYxf5Tv.js.map → StepMoverPersonalInfo-C5OxWQd3.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-QpfjD_c6.js → StepMoverPersonalInfo-Rxgi-6Uo.js} +13 -13
- package/chunk/{StepMoverPersonalInfo-QpfjD_c6.js.map → StepMoverPersonalInfo-Rxgi-6Uo.js.map} +1 -1
- package/chunk/{StepOverrideComponent-D4YkXhso.js → StepOverrideComponent-CDa3ffZl.js} +14 -14
- package/chunk/{StepOverrideComponent-CD6SjHRm.js.map → StepOverrideComponent-CDa3ffZl.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CD6SjHRm.js → StepOverrideComponent-CXOVt03w.js} +15 -15
- package/chunk/{StepOverrideComponent-D4YkXhso.js.map → StepOverrideComponent-CXOVt03w.js.map} +1 -1
- package/chunk/{StepSMSLoop-DfmUZBbW.js → StepSMSLoop-B8Sfi7lM.js} +15 -15
- package/chunk/{StepSMSLoop-DPthV2Lc.js.map → StepSMSLoop-B8Sfi7lM.js.map} +1 -1
- package/chunk/{StepSMSLoop-DPthV2Lc.js → StepSMSLoop-BRma4Yv7.js} +19 -19
- package/chunk/{StepSMSLoop-DfmUZBbW.js.map → StepSMSLoop-BRma4Yv7.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +3 -3
- package/chunk/StepSSO-BaFk7RFJ.js +3 -3
- package/chunk/{StepSocialSecurityNumber-CGpWJ3oN.js → StepSocialSecurityNumber-BJPa_XQ3.js} +25 -25
- package/chunk/{StepSocialSecurityNumber-DxFxaZ2R.js.map → StepSocialSecurityNumber-BJPa_XQ3.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-DxFxaZ2R.js → StepSocialSecurityNumber-xfhVCa0b.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-CGpWJ3oN.js.map → StepSocialSecurityNumber-xfhVCa0b.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DgYva1Rh.js → StepStudentPersonalInfo-CKhmp2it.js} +15 -15
- package/chunk/{StepStudentPersonalInfo-DFTqKs_m.js.map → StepStudentPersonalInfo-CKhmp2it.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DFTqKs_m.js → StepStudentPersonalInfo-HjQOPJBa.js} +58 -58
- package/chunk/{StepStudentPersonalInfo-DgYva1Rh.js.map → StepStudentPersonalInfo-HjQOPJBa.js.map} +1 -1
- package/chunk/{StepSuccess-BHqTjF_1.js → StepSuccess-CECU-0Sl.js} +30 -30
- package/chunk/{StepSuccess-BHqTjF_1.js.map → StepSuccess-CECU-0Sl.js.map} +1 -1
- package/chunk/{StepSuccess-C6kBfGWn.js → StepSuccess-U4LQ1MYZ.js} +33 -33
- package/chunk/{StepSuccess-C6kBfGWn.js.map → StepSuccess-U4LQ1MYZ.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BxaaxkGP.js → StepTeacherPersonalInfo-Bi_F5GHB.js} +16 -16
- package/chunk/{StepTeacherPersonalInfo-BxaaxkGP.js.map → StepTeacherPersonalInfo-Bi_F5GHB.js.map} +1 -1
- package/chunk/StepTeacherPersonalInfo-CsDLjaqb.js +149 -0
- package/chunk/{StepTeacherPersonalInfo-a_hD0tId.js.map → StepTeacherPersonalInfo-CsDLjaqb.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +3 -3
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +3 -3
- package/chunk/{TeacherSchoolComponent-d1XeOQ1I.js → TeacherSchoolComponent-C59ljPjO.js} +7 -7
- package/chunk/{TeacherSchoolComponent-d1XeOQ1I.js.map → TeacherSchoolComponent-C59ljPjO.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-DSNAhVx8.js → TeacherSchoolComponent-Ds7hYDf8.js} +7 -7
- package/chunk/{TeacherSchoolComponent-DSNAhVx8.js.map → TeacherSchoolComponent-Ds7hYDf8.js.map} +1 -1
- package/chunk/TestingRouteOverrides-eSRTiZoc.js +77 -0
- package/chunk/{TestingRouteOverrides-BDCygTLC.js.map → TestingRouteOverrides-eSRTiZoc.js.map} +1 -1
- package/chunk/TestingRouteOverrides-olL49Zx5.js +81 -0
- package/chunk/{TestingRouteOverrides-B-zcTBa_.js.map → TestingRouteOverrides-olL49Zx5.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
- package/chunk/{VerificationApiClient-Dbi5PEQ8.js → VerificationApiClient-Dw1w8mF1.js} +198 -198
- package/chunk/{VerificationApiClient-Dbi5PEQ8.js.map → VerificationApiClient-Dw1w8mF1.js.map} +1 -1
- package/chunk/{VerificationApiClient-Cx1SikK8.js → VerificationApiClient-qzcaFPIZ.js} +149 -149
- package/chunk/{VerificationApiClient-Cx1SikK8.js.map → VerificationApiClient-qzcaFPIZ.js.map} +1 -1
- package/chunk/{VerificationApiUtils-y5gjtrYk.js → VerificationApiUtils-BuPDlUJJ.js} +6 -6
- package/chunk/{VerificationApiUtils-CtfMQ7a_.js.map → VerificationApiUtils-BuPDlUJJ.js.map} +1 -1
- package/chunk/{VerificationApiUtils-CtfMQ7a_.js → VerificationApiUtils-CgS02nkR.js} +6 -6
- package/chunk/{VerificationApiUtils-y5gjtrYk.js.map → VerificationApiUtils-CgS02nkR.js.map} +1 -1
- package/chunk/ar-wkBEXxD9.js +3 -3
- package/chunk/bg-D2-seofX.js +3 -3
- package/chunk/bn-IN-B5PyYaJU.js +3 -3
- package/chunk/{countryUtils-D2UBy7Uo.js → countryUtils-BTcv-xa-.js} +4 -4
- package/chunk/{countryUtils-D2UBy7Uo.js.map → countryUtils-BTcv-xa-.js.map} +1 -1
- package/chunk/{countryUtils-QSjR1rBI.js → countryUtils-Dw8fXGgB.js} +4 -4
- package/chunk/{countryUtils-QSjR1rBI.js.map → countryUtils-Dw8fXGgB.js.map} +1 -1
- package/chunk/cs-CsEnIopo.js +3 -3
- package/chunk/da-Da-m3VU_.js +3 -3
- package/chunk/de-BSoD5U3-.js +3 -3
- package/chunk/{downshift.esm-DVcQrgG5.js → downshift.esm-BIKsMPP5.js} +6 -6
- package/chunk/{downshift.esm-DVcQrgG5.js.map → downshift.esm-BIKsMPP5.js.map} +1 -1
- package/chunk/{downshift.esm-ChSUVkrQ.js → downshift.esm-BtBgxJmR.js} +6 -6
- package/chunk/{downshift.esm-ChSUVkrQ.js.map → downshift.esm-BtBgxJmR.js.map} +1 -1
- package/chunk/el-CFa6y9Ri.js +3 -3
- package/chunk/{empties-BIoZK05_.js → empties-BL76XMwN.js} +46 -46
- package/chunk/{empties-BIoZK05_.js.map → empties-BL76XMwN.js.map} +1 -1
- package/chunk/{empties-DHvaWflk.js → empties-BfAKqhLo.js} +4 -4
- package/chunk/{empties-DHvaWflk.js.map → empties-BfAKqhLo.js.map} +1 -1
- package/chunk/en-GB-V8XaGkaI.js +3 -3
- package/chunk/es-D18tLxcT.js +3 -3
- package/chunk/es-ES-7x2bVUQr.js +3 -3
- package/chunk/et-udrWMVlD.js +3 -3
- package/chunk/eventEmitter-CSG6jR7V.js +3 -3
- package/chunk/fa-DgwYULMs.js +3 -3
- package/chunk/fi-CkCWFGDC.js +3 -3
- package/chunk/fr-BprIFEa8.js +3 -3
- package/chunk/fr-CA-DrjICejr.js +3 -3
- package/chunk/ga-LaV5ZJgg.js +3 -3
- package/chunk/hi-IN-7dtEICYI.js +3 -3
- package/chunk/hr-2Bctl997.js +3 -3
- package/chunk/hu-BT0z6TPZ.js +3 -3
- package/chunk/id-BvyYep3X.js +3 -3
- package/chunk/{intl-Yr2cw5px.js → intl-C8E3kZCc.js} +429 -421
- package/chunk/intl-C8E3kZCc.js.map +1 -0
- package/chunk/is-DOsKfa80.js +3 -3
- package/chunk/it-3dX9AQk7.js +3 -3
- package/chunk/iw-5I90wqQ8.js +3 -3
- package/chunk/ja-CHdgbMgX.js +3 -3
- package/chunk/{jsx-runtime-BknAqbDq.js → jsx-runtime-Cqcg28yY.js} +8 -4
- package/chunk/{jsx-runtime-BknAqbDq.js.map → jsx-runtime-Cqcg28yY.js.map} +1 -1
- package/chunk/{jsx-runtime-D_-z-h6n.js → jsx-runtime-v0uEISUn.js} +4 -8
- package/chunk/{jsx-runtime-D_-z-h6n.js.map → jsx-runtime-v0uEISUn.js.map} +1 -1
- package/chunk/kk-BriyNfHL.js +3 -3
- package/chunk/ko-DsMaax3V.js +3 -3
- package/chunk/lo-CjASRmNr.js +3 -3
- package/chunk/lt-DF29E1de.js +3 -3
- package/chunk/lv-DlHBZyt-.js +3 -3
- package/chunk/{militaryStepHelpers-UF-7lF1f.js → militaryStepHelpers-D9B8OAip.js} +4 -4
- package/chunk/{militaryStepHelpers-UF-7lF1f.js.map → militaryStepHelpers-D9B8OAip.js.map} +1 -1
- package/chunk/{militaryStepHelpers-DSh6iat_.js → militaryStepHelpers-DZi-bs5z.js} +4 -4
- package/chunk/{militaryStepHelpers-DSh6iat_.js.map → militaryStepHelpers-DZi-bs5z.js.map} +1 -1
- package/chunk/{mocks-CKXq8CZk.js → mocks-CQJujYjv.js} +7 -7
- package/chunk/{mocks-1r84in2Q.js.map → mocks-CQJujYjv.js.map} +1 -1
- package/chunk/{mocks-1r84in2Q.js → mocks-DpCSGKUm.js} +7 -7
- package/chunk/{mocks-CKXq8CZk.js.map → mocks-DpCSGKUm.js.map} +1 -1
- package/chunk/ms-B3vDtlFh.js +3 -3
- package/chunk/nl-BE-Dw1IGXuF.js +3 -3
- package/chunk/nl-Cqkrr5-r.js +3 -3
- package/chunk/no-876EdwkX.js +3 -3
- package/chunk/{options-D19mRw5a.js → options-BlmP6RQn.js} +351 -343
- package/chunk/{options-D19mRw5a.js.map → options-BlmP6RQn.js.map} +1 -1
- package/chunk/pl-B_G8s05-.js +3 -3
- package/chunk/programThemeGetters-1A422VwF.js +165 -0
- package/chunk/{programThemeGetters-Lz3L0Vh7.js.map → programThemeGetters-1A422VwF.js.map} +1 -1
- package/chunk/{programThemeGetters-iBty-gXI.js → programThemeGetters-Cwj-2rp9.js} +36 -36
- package/chunk/{programThemeGetters-iBty-gXI.js.map → programThemeGetters-Cwj-2rp9.js.map} +1 -1
- package/chunk/pt-BR-DWj043qk.js +3 -3
- package/chunk/pt-DckA3Jnn.js +3 -3
- package/chunk/{refs-Bbe0gnJ3.js → refs-DRZANumu.js} +4 -4
- package/chunk/{refs-Bbe0gnJ3.js.map → refs-DRZANumu.js.map} +1 -1
- package/chunk/{refs-C_tB1qMA.js → refs-DhfzTkb0.js} +4 -4
- package/chunk/{refs-C_tB1qMA.js.map → refs-DhfzTkb0.js.map} +1 -1
- package/chunk/ro-DukNcWCM.js +3 -3
- package/chunk/ru-RkdRQ7qb.js +3 -3
- package/chunk/sk-CPBgBtC5.js +3 -3
- package/chunk/sl-Cyj9PWmN.js +3 -3
- package/chunk/sr-Bm1GVW8m.js +3 -3
- package/chunk/strings-DWLVdUcm.js +3 -3
- package/chunk/sv-CcMmeZrG.js +3 -3
- package/chunk/sw-BPvl1ou6.js +3 -3
- package/chunk/ta-BPEH7IlE.js +3 -3
- package/chunk/th-Dd912RL5.js +3 -3
- package/chunk/tl-J_TdpjQz.js +3 -3
- package/chunk/tr-B-GrrJj0.js +3 -3
- package/chunk/uk-MohyvT_n.js +3 -3
- package/chunk/ur-CDYGpWMm.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-DbKsNLEw.js → useCollectFieldsEndpoint-B4u8S9oy.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-3Y1ZabGh.js.map → useCollectFieldsEndpoint-B4u8S9oy.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-3Y1ZabGh.js → useCollectFieldsEndpoint-Cs3WWTUu.js} +10 -10
- package/chunk/{useCollectFieldsEndpoint-DbKsNLEw.js.map → useCollectFieldsEndpoint-Cs3WWTUu.js.map} +1 -1
- package/chunk/{useMetrics-BdMoL7SD.js → useMetrics-C7IgrrFm.js} +18 -18
- package/chunk/{useMetrics-BdMoL7SD.js.map → useMetrics-C7IgrrFm.js.map} +1 -1
- package/chunk/{useMetrics-D_8asKZL.js → useMetrics-fJHxK9XL.js} +17 -17
- package/chunk/{useMetrics-D_8asKZL.js.map → useMetrics-fJHxK9XL.js.map} +1 -1
- package/chunk/{validators-DTjHYDSK.js → validators-CaMDTJo6.js} +71 -75
- package/chunk/{validators-Do9xo2t_.js.map → validators-CaMDTJo6.js.map} +1 -1
- package/chunk/{validators-Do9xo2t_.js → validators-W5FGeAnu.js} +79 -75
- package/chunk/{validators-DTjHYDSK.js.map → validators-W5FGeAnu.js.map} +1 -1
- package/chunk/vi-CdPTWSev.js +3 -3
- package/chunk/zh-DhnjKBoc.js +3 -3
- package/chunk/zh-HK-CWKNP_HX.js +3 -3
- package/chunk/zu-BpMHS0oR.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 +269 -269
- package/chunk/ApiUrls-jsXRjACf.js +0 -38
- package/chunk/CountryComponentWrapper-AaraHOGX.js +0 -78
- package/chunk/FormFooterComponent-CU9v96Pk.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-FkrZTfgt.js +0 -9
- package/chunk/StepCollectPersonalInfo-BsRPrpbi.js +0 -361
- package/chunk/StepCollectPersonalInfo-D_E9jueP.js +0 -357
- package/chunk/StepTeacherPersonalInfo-a_hD0tId.js +0 -149
- package/chunk/TestingRouteOverrides-B-zcTBa_.js +0 -77
- package/chunk/TestingRouteOverrides-BDCygTLC.js +0 -81
- package/chunk/intl-Yr2cw5px.js.map +0 -1
- package/chunk/programThemeGetters-Lz3L0Vh7.js +0 -165
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepEmploymentPersonalInfo-D3OVzQfH.js","names":[],"sources":["../../src/components/FormFields/Company/CompanyComponent.tsx","../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const Company = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"company\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"companyPlaceholder\", defaultMessage: \"Company\" })\n }\n label={<FormattedHTMLMessage id=\"company\" defaultMessage=\"Company\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CompanyComponent = injectIntl(Company);\n","/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type VerificationService,\n type Organization,\n type EmploymentPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type State,\n type FieldId,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\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 { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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 StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n const addressFields: FieldId[] = [\"address1\", \"city\", \"state\", \"postalCode\"];\n const existing = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => !addressFields.includes(id),\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [...existing, ...addressFields];\n } else {\n viewModel.fieldsToSkipValidation = existing.length ? existing : undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\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 updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;aAwDa,IAAmB,GA5CR,EACtB,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACc;CACrB,WAAW,MAAyB,EAAS,CAAM;CACnD,aACE,KACA,EAAK,kBAAkB;EAA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A,EAAoB,aAAa,2BAClC,EAAoB,aAAa,iBAC/B,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,YAAY,CAAC,CAAC,EAAoB,aAAa;IAC/C,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAA0B,eAAe,CAAQ,GACjD,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAA0B,YAAY;MACpC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACX,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAGwF"}
|
|
1
|
+
{"version":3,"file":"StepEmploymentPersonalInfo-BQXJZC68.js","names":[],"sources":["../../src/components/FormFields/Company/CompanyComponent.tsx","../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const Company = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"company\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"companyPlaceholder\", defaultMessage: \"Company\" })\n }\n label={<FormattedHTMLMessage id=\"company\" defaultMessage=\"Company\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CompanyComponent = injectIntl(Company);\n","/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type VerificationService,\n type Organization,\n type EmploymentPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type State,\n type FieldId,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\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 { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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 StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n const addressFields: FieldId[] = [\"address1\", \"city\", \"state\", \"postalCode\"];\n const existing = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => !addressFields.includes(id),\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [...existing, ...addressFields];\n } else {\n viewModel.fieldsToSkipValidation = existing.length ? existing : undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\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 updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;aAwDa,IAAmB,GA5CR,EACtB,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACc;CACrB,WAAW,MAAyB,EAAS,CAAM;CACnD,aACE,KACA,EAAK,kBAAkB;EAAE,IAAI;EAAsB,gBAAgB;CAAU,CAAC;CAEhF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAU,gBAAe;CAAW,CAAA;CACpE,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;CACA,6BAA6B,CAAC,CAAC;CACrB;AACX,CAAA,CAI6C,GCsNrC,IAAsC,GA7Nf,EAClC,SACA,6BAC8C;CAC9C,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAU,EAAW,GAErB,KAA6B,GAA4C,MAAe;EAC5F,IAAM,IAA6C,EACjD,IACC,MAA2C;GAC1C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAoB,qBAAqB;YAFjD;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,u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,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACX,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAGwF"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.259.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Thu Jul 23 2026
|
|
3
|
+
* VERSION: 2.259.0-alpha.4
|
|
4
|
+
* BUILD_TIMESTAMP: 1784847407354
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 22:56:47 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-
|
|
10
|
-
import { C as l } from "./FormFooterComponent-
|
|
11
|
-
import { n as u } from "./empties-
|
|
8
|
+
import { It as e, c as t, lt as n, n as r, xt as i } from "./options-BlmP6RQn.js";
|
|
9
|
+
import { a, c as o, n as s, t as c } from "./jsx-runtime-v0uEISUn.js";
|
|
10
|
+
import { C as l } from "./FormFooterComponent-DsvjZf4o.js";
|
|
11
|
+
import { n as u } from "./empties-BL76XMwN.js";
|
|
12
12
|
import { G as d, K as f, M as p, V as m, et as h, r as g } from "../sheerid.js";
|
|
13
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
14
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-
|
|
15
|
-
import { t as T } from "./BirthDateComponent-
|
|
16
|
-
import { t as E } from "./PostalCodeComponent-
|
|
17
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
18
|
-
import { t as O } from "./ExtraMessage-
|
|
19
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
20
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
21
|
-
import { t as j } from "./StatusComponent-
|
|
22
|
-
import { t as M } from "./FirstResponderOrganizationComponent-
|
|
13
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-BLKVnsDS.js";
|
|
14
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-Cz_CdAWG.js";
|
|
15
|
+
import { t as T } from "./BirthDateComponent-CWp6qCwi.js";
|
|
16
|
+
import { t as E } from "./PostalCodeComponent-BwpQbUxr.js";
|
|
17
|
+
import { t as D } from "./CountryComponentWrapper-BWQRtr9a.js";
|
|
18
|
+
import { t as O } from "./ExtraMessage-BicSxrM8.js";
|
|
19
|
+
import { t as k } from "./ChangeLocaleComponent-CkmHNHiE.js";
|
|
20
|
+
import { t as A } from "./PersonalInfoStepWrapper-ARH3ZED1.js";
|
|
21
|
+
import { t as j } from "./StatusComponent-DWf6Z-oB.js";
|
|
22
|
+
import { t as M } from "./FirstResponderOrganizationComponent-DATMg2cJ.js";
|
|
23
23
|
o();
|
|
24
24
|
var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
25
|
-
let c = o.viewModel, { fieldValidationErrors: P } = o, F = o.verificationResponse, I = l(F), L =
|
|
26
|
-
let r =
|
|
27
|
-
|
|
25
|
+
let c = o.viewModel, { fieldValidationErrors: P } = o, F = o.verificationResponse, I = l(F), L = r(), R = c.localeChoice.value, z = (e, n) => {
|
|
26
|
+
let r = t(c, (t) => {
|
|
27
|
+
t[e] = n;
|
|
28
28
|
});
|
|
29
29
|
o.updateViewModel(r);
|
|
30
30
|
};
|
|
@@ -45,7 +45,7 @@ var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
|
45
45
|
segmentId: "first-responder",
|
|
46
46
|
value: {
|
|
47
47
|
value: c.status,
|
|
48
|
-
label: d(a, c.status,
|
|
48
|
+
label: d(a, c.status, i)
|
|
49
49
|
},
|
|
50
50
|
isErrored: !!P.status,
|
|
51
51
|
errorId: "invalidFirstResponderStatus",
|
|
@@ -58,15 +58,15 @@ var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
|
58
58
|
/* @__PURE__ */ (0, N.jsx)(M, {
|
|
59
59
|
isErrored: !!P.organization,
|
|
60
60
|
onChange: (e = u.organization) => {
|
|
61
|
-
let
|
|
61
|
+
let r = t(c, (t) => {
|
|
62
62
|
t.organization = {
|
|
63
63
|
id: e.id,
|
|
64
64
|
idExtended: e.idExtended,
|
|
65
65
|
name: e.name,
|
|
66
66
|
source: e.source
|
|
67
|
-
}, c.organization && c.organization.source !== void 0 && (t.organization.source = c.organization.source),
|
|
67
|
+
}, c.organization && c.organization.source !== void 0 && (t.organization.source = c.organization.source), n(() => o.programTheme.openOrgSearchEnabled) && n(() => e.id) === 0 && n(() => e.name, "").length > 0 ? t.postalCode = c.postalCode ? c.postalCode : "" : (c.postalCode || c.postalCode === "") && delete t.postalCode;
|
|
68
68
|
});
|
|
69
|
-
o.updateViewModel(
|
|
69
|
+
o.updateViewModel(r), h("organization", e, o);
|
|
70
70
|
},
|
|
71
71
|
value: o.viewModel.organization,
|
|
72
72
|
verificationService: o,
|
|
@@ -122,7 +122,7 @@ var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
|
122
122
|
selectedCountryCode: c.countryChoice && c.countryChoice.value,
|
|
123
123
|
disabled: m("phoneNumber")?.disabled
|
|
124
124
|
}) : null,
|
|
125
|
-
|
|
125
|
+
n(() => o.programTheme.openOrgSearchEnabled) && n(() => c.organization.id) === 0 && n(() => c.organization.name, "").length > 0 && /* @__PURE__ */ (0, N.jsx)(E, {
|
|
126
126
|
isErrored: !!P.postalCode,
|
|
127
127
|
onChange: (e) => {
|
|
128
128
|
z("postalCode", e), h("postalCode", e, o);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepFirstResponderPersonalInfo-CJ_OFUC1.js","names":[],"sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n FirstResponderStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n FirstResponderPersonalInfoViewModel,\n FirstResponderPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableFirstResponderStatuses,\n getFieldConfigByFieldId,\n getStatusLabel,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatus } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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\";\nimport { blankOrganization } from \"../../lib/types/empties\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nexport const StepFirstResponderPersonalInfo = ({\n intl,\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatus\n segmentId=\"first-responder\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, FirstResponderStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableFirstResponderStatuses(intl, verificationResponse.availableStatuses)}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\n verificationService={verificationService}\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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\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 updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\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 updateFirstResponderViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepFirstResponderPersonalInfoComponent = injectIntl(StepFirstResponderPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;aA6Qa,IAA0C,GAtNR,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,KACJ,GACA,MACG;EACH,IAAM,IAAiD,EACrD,IACC,MAA+C;GAC9C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB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sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n FirstResponderStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n FirstResponderPersonalInfoViewModel,\n FirstResponderPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableFirstResponderStatuses,\n getFieldConfigByFieldId,\n getStatusLabel,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatus } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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\";\nimport { blankOrganization } from \"../../lib/types/empties\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nexport const StepFirstResponderPersonalInfo = ({\n intl,\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatus\n segmentId=\"first-responder\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, FirstResponderStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableFirstResponderStatuses(intl, verificationResponse.availableStatuses)}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\n verificationService={verificationService}\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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\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 updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\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 updateFirstResponderViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepFirstResponderPersonalInfoComponent = injectIntl(StepFirstResponderPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;aA6Qa,IAA0C,GAtNR,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,KACJ,GACA,MACG;EACH,IAAM,IAAiD,EACrD,IACC,MAA+C;GAC9C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB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B,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GACH,QAAc,EAAoB,aAAa,oBAAoB,KAClE,QAAc,EAAU,aAAa,EAAE,MAAM,KAC7C,QAAc,EAAU,aAAa,MAAM,EAAE,EAAE,SAAS,KACtD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAA8B,cAAc,CAAQ,GACpD,EAAqC,cAAc,GAAU,CAAmB;IAClF;IACA,OAAO,EAAU;IACjB,UAAU,EAAwB,YAAY,GAAG;GAClD,CAAA;GAGJ,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAA8B,YAAY;MACxC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEgG"}
|
|
@@ -4,33 +4,33 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Jul 23 2026
|
|
7
|
+
* VERSION: 2.259.0-alpha.4
|
|
8
|
+
* BUILD_TIMESTAMP: 1784847411169
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 22:56:51 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-
|
|
14
|
-
import { D as l } from "./FormFooterComponent-
|
|
15
|
-
import { n as u } from "./empties-
|
|
12
|
+
import { Nt as e, Rt as t, p as n, s as r, vt as i } from "./intl-C8E3kZCc.js";
|
|
13
|
+
import { a, c as o, n as s, t as c } from "./jsx-runtime-Cqcg28yY.js";
|
|
14
|
+
import { D as l } from "./FormFooterComponent-B5sO7lYC.js";
|
|
15
|
+
import { n as u } from "./empties-BfAKqhLo.js";
|
|
16
16
|
import { $ as d, B as f, G as p, W as m, j as h, n as g } from "../_mysheerid-preview.js";
|
|
17
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
18
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-
|
|
19
|
-
import { t as T } from "./BirthDateComponent-
|
|
20
|
-
import { t as E } from "./PostalCodeComponent-
|
|
21
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
22
|
-
import { t as O } from "./ExtraMessage-
|
|
23
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
24
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
25
|
-
import { t as j } from "./StatusComponent-
|
|
26
|
-
import { t as M } from "./FirstResponderOrganizationComponent-
|
|
17
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-ZNBrwLAd.js";
|
|
18
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-5tuzy7zT.js";
|
|
19
|
+
import { t as T } from "./BirthDateComponent-D9LlGf-7.js";
|
|
20
|
+
import { t as E } from "./PostalCodeComponent-BYqnLcHd.js";
|
|
21
|
+
import { t as D } from "./CountryComponentWrapper-BSSdDVcs.js";
|
|
22
|
+
import { t as O } from "./ExtraMessage-D_tMUnf9.js";
|
|
23
|
+
import { t as k } from "./ChangeLocaleComponent-MCyF8czV.js";
|
|
24
|
+
import { t as A } from "./PersonalInfoStepWrapper-4ZK1A1_g.js";
|
|
25
|
+
import { t as j } from "./StatusComponent-BkaYM9ne.js";
|
|
26
|
+
import { t as M } from "./FirstResponderOrganizationComponent-CarIvxfO.js";
|
|
27
27
|
o();
|
|
28
28
|
var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
29
|
-
let c = o.viewModel, { fieldValidationErrors: P } = o, F = o.verificationResponse, I = l(F), L =
|
|
30
|
-
let
|
|
29
|
+
let c = o.viewModel, { fieldValidationErrors: P } = o, F = o.verificationResponse, I = l(F), L = r(), R = c.localeChoice.value, z = (e, t) => {
|
|
30
|
+
let r = n(c, (n) => {
|
|
31
31
|
n[e] = t;
|
|
32
32
|
});
|
|
33
|
-
o.updateViewModel(
|
|
33
|
+
o.updateViewModel(r);
|
|
34
34
|
};
|
|
35
35
|
return /* @__PURE__ */ (0, N.jsxs)(A, {
|
|
36
36
|
verificationService: o,
|
|
@@ -49,7 +49,7 @@ var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
|
49
49
|
segmentId: "first-responder",
|
|
50
50
|
value: {
|
|
51
51
|
value: c.status,
|
|
52
|
-
label: m(a, c.status,
|
|
52
|
+
label: m(a, c.status, i)
|
|
53
53
|
},
|
|
54
54
|
isErrored: !!P.status,
|
|
55
55
|
errorId: "invalidFirstResponderStatus",
|
|
@@ -61,16 +61,16 @@ var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
|
61
61
|
}),
|
|
62
62
|
/* @__PURE__ */ (0, N.jsx)(M, {
|
|
63
63
|
isErrored: !!P.organization,
|
|
64
|
-
onChange: (
|
|
65
|
-
let
|
|
64
|
+
onChange: (e = u.organization) => {
|
|
65
|
+
let r = n(c, (n) => {
|
|
66
66
|
n.organization = {
|
|
67
|
-
id:
|
|
68
|
-
idExtended:
|
|
69
|
-
name:
|
|
70
|
-
source:
|
|
71
|
-
}, c.organization && c.organization.source !== void 0 && (n.organization.source = c.organization.source),
|
|
67
|
+
id: e.id,
|
|
68
|
+
idExtended: e.idExtended,
|
|
69
|
+
name: e.name,
|
|
70
|
+
source: e.source
|
|
71
|
+
}, c.organization && c.organization.source !== void 0 && (n.organization.source = c.organization.source), t(() => o.programTheme.openOrgSearchEnabled) && t(() => e.id) === 0 && t(() => e.name, "").length > 0 ? n.postalCode = c.postalCode ? c.postalCode : "" : (c.postalCode || c.postalCode === "") && delete n.postalCode;
|
|
72
72
|
});
|
|
73
|
-
o.updateViewModel(
|
|
73
|
+
o.updateViewModel(r), d("organization", e, o);
|
|
74
74
|
},
|
|
75
75
|
value: o.viewModel.organization,
|
|
76
76
|
verificationService: o,
|
|
@@ -126,7 +126,7 @@ var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
|
126
126
|
selectedCountryCode: c.countryChoice && c.countryChoice.value,
|
|
127
127
|
disabled: f("phoneNumber")?.disabled
|
|
128
128
|
}) : null,
|
|
129
|
-
|
|
129
|
+
t(() => o.programTheme.openOrgSearchEnabled) && t(() => c.organization.id) === 0 && t(() => c.organization.name, "").length > 0 && /* @__PURE__ */ (0, N.jsx)(E, {
|
|
130
130
|
isErrored: !!P.postalCode,
|
|
131
131
|
onChange: (e) => {
|
|
132
132
|
z("postalCode", e), d("postalCode", e, o);
|
|
@@ -159,7 +159,7 @@ var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
|
159
159
|
isErrored: !!P.captchaToken
|
|
160
160
|
}),
|
|
161
161
|
/* @__PURE__ */ (0, N.jsx)(w, {
|
|
162
|
-
step:
|
|
162
|
+
step: e.collectFirstResponderPersonalInfo,
|
|
163
163
|
verificationService: o,
|
|
164
164
|
viewModel: c,
|
|
165
165
|
failedInstantMatch: I,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepFirstResponderPersonalInfo-Uj_HyOUK.js","names":[],"sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n FirstResponderStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n FirstResponderPersonalInfoViewModel,\n FirstResponderPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableFirstResponderStatuses,\n getFieldConfigByFieldId,\n getStatusLabel,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatus } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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\";\nimport { blankOrganization } from \"../../lib/types/empties\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nexport const StepFirstResponderPersonalInfo = ({\n intl,\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatus\n segmentId=\"first-responder\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, FirstResponderStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableFirstResponderStatuses(intl, verificationResponse.availableStatuses)}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\n verificationService={verificationService}\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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\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 updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\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 updateFirstResponderViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepFirstResponderPersonalInfoComponent = injectIntl(StepFirstResponderPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;aA6Qa,IAA0C,GAtNR,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,KACJ,GACA,MACG;EACH,IAAM,IAAiD,EACrD,IACC,MAA+C;GAC9C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GA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EACkB;;AAEzB,CAEgG"}
|
|
1
|
+
{"version":3,"file":"StepFirstResponderPersonalInfo-C6vO86r_.js","names":[],"sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n FirstResponderStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n FirstResponderPersonalInfoViewModel,\n FirstResponderPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableFirstResponderStatuses,\n getFieldConfigByFieldId,\n getStatusLabel,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatus } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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\";\nimport { blankOrganization } from \"../../lib/types/empties\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nexport const StepFirstResponderPersonalInfo = ({\n intl,\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatus\n segmentId=\"first-responder\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, FirstResponderStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableFirstResponderStatuses(intl, verificationResponse.availableStatuses)}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\n verificationService={verificationService}\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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\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 updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\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 updateFirstResponderViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepFirstResponderPersonalInfoComponent = injectIntl(StepFirstResponderPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;aA6Qa,IAA0C,GAtNR,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,KACJ,GACA,MACG;EACH,IAAM,IAAiD,EACrD,IACC,MAA+C;GAC9C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAA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for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Jul 23 2026
|
|
7
|
+
* VERSION: 2.259.0-alpha.4
|
|
8
|
+
* BUILD_TIMESTAMP: 1784847411169
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 22:56:51 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { a as r, n as i, t as a } from "./jsx-runtime-
|
|
14
|
-
import { D as o } from "./FormFooterComponent-
|
|
15
|
-
import { a as s } from "./refs-
|
|
12
|
+
import { Nt as e, p as t, s as n } from "./intl-C8E3kZCc.js";
|
|
13
|
+
import { a as r, n as i, t as a } from "./jsx-runtime-Cqcg28yY.js";
|
|
14
|
+
import { D as o } from "./FormFooterComponent-B5sO7lYC.js";
|
|
15
|
+
import { a as s } from "./refs-DhfzTkb0.js";
|
|
16
16
|
import { $ as c, B as l, G as u, I as d, n as f } from "../_mysheerid-preview.js";
|
|
17
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-
|
|
18
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-
|
|
19
|
-
import { t as x } from "./BirthDateComponent-
|
|
20
|
-
import { t as S } from "./PostalCodeComponent-
|
|
21
|
-
import { t as C } from "./City-
|
|
22
|
-
import { t as w } from "./AddressComponent-
|
|
23
|
-
import { t as T } from "./ExtraMessage-
|
|
24
|
-
import { t as E } from "./ChangeLocaleComponent-
|
|
25
|
-
import { t as D } from "./PersonalInfoStepWrapper-
|
|
26
|
-
import { t as O } from "./StateSelectComponent-
|
|
17
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-ZNBrwLAd.js";
|
|
18
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-5tuzy7zT.js";
|
|
19
|
+
import { t as x } from "./BirthDateComponent-D9LlGf-7.js";
|
|
20
|
+
import { t as S } from "./PostalCodeComponent-BYqnLcHd.js";
|
|
21
|
+
import { t as C } from "./City-umz1wU5f.js";
|
|
22
|
+
import { t as w } from "./AddressComponent-DwBYG6uf.js";
|
|
23
|
+
import { t as T } from "./ExtraMessage-D_tMUnf9.js";
|
|
24
|
+
import { t as E } from "./ChangeLocaleComponent-MCyF8czV.js";
|
|
25
|
+
import { t as D } from "./PersonalInfoStepWrapper-4ZK1A1_g.js";
|
|
26
|
+
import { t as O } from "./StateSelectComponent-C12-PmBR.js";
|
|
27
27
|
//#region src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.tsx
|
|
28
28
|
var k = a(), A = ({ intl: r, verificationService: a }) => {
|
|
29
29
|
let A = a.viewModel, { fieldValidationErrors: j } = a, M = a.verificationResponse, N = o(M), P = n(), F = A.localeChoice.value, I = (e, n) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepGeneralIdentityPersonalInfoComponent-BA1NUm7h.js","names":[],"sources":["../../src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.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 GeneralIdentityPersonalInfoViewModel,\n type GeneralIdentityPersonalInfoResponse,\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 { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { getOptions } from \"../../options/options\";\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 StepGeneralIdentityPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepGeneralIdentityPersonalInfo = ({\n intl,\n verificationService,\n}: StepGeneralIdentityPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as GeneralIdentityPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as GeneralIdentityPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateIdentityViewModel = (key: keyof GeneralIdentityPersonalInfoViewModel, value: any) => {\n const nextState: GeneralIdentityPersonalInfoViewModel = produce(\n viewModel,\n (draft: GeneralIdentityPersonalInfoViewModel) => {\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=\"general-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-extra-address-inputs 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 isRequired\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\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 <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectGeneralIdentityPersonalInfo}\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 StepGeneralIdentityPersonalInfoComponent = injectIntl(StepGeneralIdentityPersonalInfo);\nexport default StepGeneralIdentityPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA+Ca,KAAmC,EAC9C,SACA,6BACmD;CACnD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,KAA2B,GAAiD,MAAe;EAC/F,IAAM,IAAkD,EACtD,IACC,MAAgD;GAC/C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;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/E;KACD,CAAA;KACD,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,WAAW,CAAC,CAAC,EAAsB;MACnC,WAAW,MAAa;OAEtB,AADA,EAAwB,cAAc,CAAQ,GAC9C,EAAqC,cAAc,GAAU,CAAmB;MAClF;MACA,OAAO,EAAU;MACjB,YAAA;MACA,UAAU,EAAwB,YAAY,GAAG;KAClD,CAAA;IACE;;GAEJ,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,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;GACrF,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,IAA2C,EAAW,CAA+B"}
|
|
1
|
+
{"version":3,"file":"StepGeneralIdentityPersonalInfoComponent-DT9ktn2p.js","names":[],"sources":["../../src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.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 GeneralIdentityPersonalInfoViewModel,\n type GeneralIdentityPersonalInfoResponse,\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 { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { getOptions } from \"../../options/options\";\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 StepGeneralIdentityPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepGeneralIdentityPersonalInfo = ({\n intl,\n verificationService,\n}: StepGeneralIdentityPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as GeneralIdentityPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as GeneralIdentityPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateIdentityViewModel = (key: keyof GeneralIdentityPersonalInfoViewModel, value: any) => {\n const nextState: GeneralIdentityPersonalInfoViewModel = produce(\n viewModel,\n (draft: GeneralIdentityPersonalInfoViewModel) => {\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=\"general-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-extra-address-inputs 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 isRequired\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\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 <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectGeneralIdentityPersonalInfo}\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 StepGeneralIdentityPersonalInfoComponent = injectIntl(StepGeneralIdentityPersonalInfo);\nexport default StepGeneralIdentityPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;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