@sheerid/jslib-nightly 2.262.0-alpha.3 → 2.263.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +1511 -1394
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-C4EQ1638.js → AddressComponent-0vaEURVZ.js} +6 -6
- package/chunk/{AddressComponent-BEOTwoo8.js.map → AddressComponent-0vaEURVZ.js.map} +1 -1
- package/chunk/{AddressComponent-BEOTwoo8.js → AddressComponent-D9R5iYEq.js} +6 -6
- package/chunk/{AddressComponent-C4EQ1638.js.map → AddressComponent-D9R5iYEq.js.map} +1 -1
- package/chunk/{AnnouncingHeader-BQ8ZM0VA.js → AnnouncingHeader-2fKF8wpi.js} +6 -6
- package/chunk/{AnnouncingHeader-BQ8ZM0VA.js.map → AnnouncingHeader-2fKF8wpi.js.map} +1 -1
- package/chunk/{AnnouncingHeader-BxnHzcl6.js → AnnouncingHeader-C46Kp2B-.js} +6 -6
- package/chunk/{AnnouncingHeader-BxnHzcl6.js.map → AnnouncingHeader-C46Kp2B-.js.map} +1 -1
- package/chunk/{ApiUrls-CV7PU5EV.js → ApiUrls-CcYW2aEq.js} +13 -13
- package/chunk/{ApiUrls-CV7PU5EV.js.map → ApiUrls-CcYW2aEq.js.map} +1 -1
- package/chunk/{ApiUrls-nZXwhWiR.js → ApiUrls-DlpncFa4.js} +6 -6
- package/chunk/{ApiUrls-nZXwhWiR.js.map → ApiUrls-DlpncFa4.js.map} +1 -1
- package/chunk/{BirthDateComponent-DW-1r_MV.js → BirthDateComponent-CPX6e-oS.js} +7 -7
- package/chunk/{BirthDateComponent-DW-1r_MV.js.map → BirthDateComponent-CPX6e-oS.js.map} +1 -1
- package/chunk/{BirthDateComponent-Dn4Pkaiz.js → BirthDateComponent-DiB89V9D.js} +7 -7
- package/chunk/{BirthDateComponent-Dn4Pkaiz.js.map → BirthDateComponent-DiB89V9D.js.map} +1 -1
- package/chunk/{CaptchaComponent-Eh4up7Aj.js → CaptchaComponent-D5Dv1noI.js} +151 -151
- package/chunk/{CaptchaComponent-6YC__tfs.js.map → CaptchaComponent-D5Dv1noI.js.map} +1 -1
- package/chunk/{CaptchaComponent-6YC__tfs.js → CaptchaComponent-gd5yubvd.js} +151 -151
- package/chunk/{CaptchaComponent-Eh4up7Aj.js.map → CaptchaComponent-gd5yubvd.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CiTWGwun.js → ChangeLocaleComponent-B8O2m2HE.js} +7 -7
- package/chunk/{ChangeLocaleComponent-Brii1NXA.js.map → ChangeLocaleComponent-B8O2m2HE.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Brii1NXA.js → ChangeLocaleComponent-BTZAq7uW.js} +7 -7
- package/chunk/{ChangeLocaleComponent-CiTWGwun.js.map → ChangeLocaleComponent-BTZAq7uW.js.map} +1 -1
- package/chunk/{City-DSfS926t.js → City-B6J8thJW.js} +6 -6
- package/chunk/{City-B2YRxbl9.js.map → City-B6J8thJW.js.map} +1 -1
- package/chunk/{City-B2YRxbl9.js → City-CLyjXYQj.js} +6 -6
- package/chunk/{City-DSfS926t.js.map → City-CLyjXYQj.js.map} +1 -1
- package/chunk/{CollegeNameComponent-uGitSOUf.js → CollegeNameComponent-CzyeuqK7.js} +8 -8
- package/chunk/{CollegeNameComponent-DU90yMx3.js.map → CollegeNameComponent-CzyeuqK7.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DU90yMx3.js → CollegeNameComponent-VCRUE6e_.js} +8 -8
- package/chunk/{CollegeNameComponent-uGitSOUf.js.map → CollegeNameComponent-VCRUE6e_.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-RewXk0sK.js → CopyToClipboardComponent-C3q4w3A8.js} +6 -6
- package/chunk/{CopyToClipboardComponent-28EiBssf.js.map → CopyToClipboardComponent-C3q4w3A8.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-28EiBssf.js → CopyToClipboardComponent-mgX-iqqn.js} +6 -6
- package/chunk/{CopyToClipboardComponent-RewXk0sK.js.map → CopyToClipboardComponent-mgX-iqqn.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-3OT-MoBx.js → CountryComponentWrapper-BGajYZrL.js} +24 -24
- package/chunk/{CountryComponentWrapper-3OT-MoBx.js.map → CountryComponentWrapper-BGajYZrL.js.map} +1 -1
- package/chunk/CountryComponentWrapper-CLGBVkRB.js +74 -0
- package/chunk/{CountryComponentWrapper-DKuB4eQA.js.map → CountryComponentWrapper-CLGBVkRB.js.map} +1 -1
- package/chunk/{DischargeDateComponent-1-3M2rHI.js → DischargeDateComponent-CrJy29pH.js} +18 -18
- package/chunk/{DischargeDateComponent-02d47HpL.js.map → DischargeDateComponent-CrJy29pH.js.map} +1 -1
- package/chunk/{DischargeDateComponent-02d47HpL.js → DischargeDateComponent-S0alvYUT.js} +16 -16
- package/chunk/{DischargeDateComponent-1-3M2rHI.js.map → DischargeDateComponent-S0alvYUT.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DnmKchNM.js → DriverLicenseNumberComponent-5Zli2AqS.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-CEUybEf8.js.map → DriverLicenseNumberComponent-5Zli2AqS.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-CEUybEf8.js → DriverLicenseNumberComponent-Cn9W9CIk.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-DnmKchNM.js.map → DriverLicenseNumberComponent-Cn9W9CIk.js.map} +1 -1
- package/chunk/{EmailLoopPending-CcT00POj.js → EmailLoopPending-DY_CezIw.js} +22 -22
- package/chunk/{EmailLoopPending-CcT00POj.js.map → EmailLoopPending-DY_CezIw.js.map} +1 -1
- package/chunk/{EmailLoopPending-CauMM4y6.js → EmailLoopPending-yAg-0vC3.js} +18 -18
- package/chunk/{EmailLoopPending-CauMM4y6.js.map → EmailLoopPending-yAg-0vC3.js.map} +1 -1
- package/chunk/{ExtraMessage-BppIwzQ5.js → ExtraMessage-UbmnijRM.js} +7 -7
- package/chunk/{ExtraMessage-BppIwzQ5.js.map → ExtraMessage-UbmnijRM.js.map} +1 -1
- package/chunk/{ExtraMessage-LK23_Ou9.js → ExtraMessage-vcQ9SW6K.js} +7 -7
- package/chunk/{ExtraMessage-LK23_Ou9.js.map → ExtraMessage-vcQ9SW6K.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BTBEk0SV.js → FirstResponderOrganizationComponent-DMOFM1oz.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-BHHEnu32.js.map → FirstResponderOrganizationComponent-DMOFM1oz.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BHHEnu32.js → FirstResponderOrganizationComponent-NKG9W0hn.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-BTBEk0SV.js.map → FirstResponderOrganizationComponent-NKG9W0hn.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-C6RnAJlO.js → FormFieldInputSelect-Bi8LOivJ.js} +7 -7
- package/chunk/{FormFieldInputSelect-C6RnAJlO.js.map → FormFieldInputSelect-Bi8LOivJ.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Cp0KLU3t.js → FormFieldInputSelect-DtvPrvCM.js} +7 -7
- package/chunk/{FormFieldInputSelect-Cp0KLU3t.js.map → FormFieldInputSelect-DtvPrvCM.js.map} +1 -1
- package/chunk/{FormFieldLayout-BGlrOIA_.js → FormFieldLayout-CM-yJADZ.js} +6 -6
- package/chunk/{FormFieldLayout-ByyE03RB.js.map → FormFieldLayout-CM-yJADZ.js.map} +1 -1
- package/chunk/{FormFieldLayout-ByyE03RB.js → FormFieldLayout-x7EaxmB4.js} +6 -6
- package/chunk/{FormFieldLayout-BGlrOIA_.js.map → FormFieldLayout-x7EaxmB4.js.map} +1 -1
- package/chunk/{FormFieldText-D85-RYTm.js → FormFieldText-ByMirgSm.js} +7 -7
- package/chunk/{FormFieldText-D85-RYTm.js.map → FormFieldText-ByMirgSm.js.map} +1 -1
- package/chunk/{FormFieldText-ZGZooQh1.js → FormFieldText-Cer6Ul3T.js} +7 -7
- package/chunk/{FormFieldText-ZGZooQh1.js.map → FormFieldText-Cer6Ul3T.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DZzZXvKC.js → FormFieldTypeahead-CS8Gc1-N.js} +136 -136
- package/chunk/{FormFieldTypeahead-DZzZXvKC.js.map → FormFieldTypeahead-CS8Gc1-N.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DH4pE3j0.js → FormFieldTypeahead-pogmD1N2.js} +47 -47
- package/chunk/{FormFieldTypeahead-DH4pE3j0.js.map → FormFieldTypeahead-pogmD1N2.js.map} +1 -1
- package/chunk/{FormFooterComponent-DB0-FOF0.js → FormFooterComponent-Bf1bxfK_.js} +1682 -1601
- package/chunk/FormFooterComponent-Bf1bxfK_.js.map +1 -0
- package/chunk/{FormFooterComponent-Cgu8_872.js → FormFooterComponent-hQ9YVK_9.js} +2278 -2209
- package/chunk/FormFooterComponent-hQ9YVK_9.js.map +1 -0
- package/chunk/{FormSelectChoice-DZ3D1_pD.js → FormSelectChoice-CD4kEzVG.js} +13 -9
- package/chunk/{FormSelectChoice-C_wNKkAd.js.map → FormSelectChoice-CD4kEzVG.js.map} +1 -1
- package/chunk/{FormSelectChoice-C_wNKkAd.js → FormSelectChoice-DFW__bqf.js} +9 -13
- package/chunk/{FormSelectChoice-DZ3D1_pD.js.map → FormSelectChoice-DFW__bqf.js.map} +1 -1
- package/chunk/{InputText-DQ-OK_iF.js → InputText-CFKx7skU.js} +7 -7
- package/chunk/{InputText-CZCqykcE.js.map → InputText-CFKx7skU.js.map} +1 -1
- package/chunk/{InputText-CZCqykcE.js → InputText-rG2lFIuH.js} +7 -7
- package/chunk/{InputText-DQ-OK_iF.js.map → InputText-rG2lFIuH.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BQmqXV5V.js → LicensedProfessionalOrganizationComponent-CabaokFb.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-BQmqXV5V.js.map → LicensedProfessionalOrganizationComponent-CabaokFb.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-DlZsN8Ah.js → LicensedProfessionalOrganizationComponent-DmjiRyX1.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-DlZsN8Ah.js.map → LicensedProfessionalOrganizationComponent-DmjiRyX1.js.map} +1 -1
- package/chunk/{LogoComponent-DfYUd29W.js → LogoComponent-40n5vaD0.js} +6 -6
- package/chunk/{LogoComponent-DLw4pZDn.js.map → LogoComponent-40n5vaD0.js.map} +1 -1
- package/chunk/{LogoComponent-DLw4pZDn.js → LogoComponent-lTeCnowz.js} +6 -6
- package/chunk/{LogoComponent-DfYUd29W.js.map → LogoComponent-lTeCnowz.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CUYnhGeZ.js → LowIncomeOrganizationComponent-DHP7BAWQ.js} +16 -16
- package/chunk/{LowIncomeOrganizationComponent-Bc9lkn66.js.map → LowIncomeOrganizationComponent-DHP7BAWQ.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Bc9lkn66.js → LowIncomeOrganizationComponent-uUgJiZtV.js} +16 -16
- package/chunk/{LowIncomeOrganizationComponent-CUYnhGeZ.js.map → LowIncomeOrganizationComponent-uUgJiZtV.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-Bei1ny_n.js → MedicalProfessionalOrganizationComponent-B1QLHEJV.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-Bei1ny_n.js.map → MedicalProfessionalOrganizationComponent-B1QLHEJV.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CpY5QvlU.js → MedicalProfessionalOrganizationComponent-CkhM5nex.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-CpY5QvlU.js.map → MedicalProfessionalOrganizationComponent-CkhM5nex.js.map} +1 -1
- package/chunk/{MemberIdComponent-ByLsGDO-.js → MemberIdComponent-BJC0oeuE.js} +6 -6
- package/chunk/{MemberIdComponent-ByLsGDO-.js.map → MemberIdComponent-BJC0oeuE.js.map} +1 -1
- package/chunk/{MemberIdComponent-DlhBKfuU.js → MemberIdComponent-F3J2XAp3.js} +6 -6
- package/chunk/{MemberIdComponent-DlhBKfuU.js.map → MemberIdComponent-F3J2XAp3.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BHf7Ie57.js → MembershipOrganizationComponent-0uqSgnl9.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-BERnC4LT.js.map → MembershipOrganizationComponent-0uqSgnl9.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BERnC4LT.js → MembershipOrganizationComponent-n6dsAj9D.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-BHf7Ie57.js.map → MembershipOrganizationComponent-n6dsAj9D.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-clzrobVs.js → PersonalInfoStepSubmitButton-BS7TwIFn.js} +16 -16
- package/chunk/{PersonalInfoStepSubmitButton-DuUlUXYD.js.map → PersonalInfoStepSubmitButton-BS7TwIFn.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-DuUlUXYD.js → PersonalInfoStepSubmitButton-IMW1ww2e.js} +19 -19
- package/chunk/{PersonalInfoStepSubmitButton-clzrobVs.js.map → PersonalInfoStepSubmitButton-IMW1ww2e.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-D8lig4zW.js → PersonalInfoStepWrapper-CZDrFaqC.js} +8 -8
- package/chunk/{PersonalInfoStepWrapper-D8lig4zW.js.map → PersonalInfoStepWrapper-CZDrFaqC.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-D3KT38ON.js → PersonalInfoStepWrapper-DwvV4VsT.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-D3KT38ON.js.map → PersonalInfoStepWrapper-DwvV4VsT.js.map} +1 -1
- package/chunk/{PostalCodeComponent-BByC-zpa.js → PostalCodeComponent-BDFy_9yi.js} +6 -6
- package/chunk/{PostalCodeComponent-BByC-zpa.js.map → PostalCodeComponent-BDFy_9yi.js.map} +1 -1
- package/chunk/{PostalCodeComponent-COaeeNXA.js → PostalCodeComponent-DuEPciUA.js} +6 -6
- package/chunk/{PostalCodeComponent-COaeeNXA.js.map → PostalCodeComponent-DuEPciUA.js.map} +1 -1
- package/chunk/{SSN-Dp0h787p.js → SSN-DYqbsF85.js} +7 -7
- package/chunk/{SSN-Dp0h787p.js.map → SSN-DYqbsF85.js.map} +1 -1
- package/chunk/{SSN-iGqsPg4C.js → SSN-DvsdFp8R.js} +7 -7
- package/chunk/{SSN-iGqsPg4C.js.map → SSN-DvsdFp8R.js.map} +1 -1
- package/chunk/{StateSelectComponent-xOKtNAUf.js → StateSelectComponent-CFY00_F5.js} +6 -6
- package/chunk/{StateSelectComponent-M54AviWD.js.map → StateSelectComponent-CFY00_F5.js.map} +1 -1
- package/chunk/{StateSelectComponent-M54AviWD.js → StateSelectComponent-CN7u7Z5P.js} +6 -6
- package/chunk/{StateSelectComponent-xOKtNAUf.js.map → StateSelectComponent-CN7u7Z5P.js.map} +1 -1
- package/chunk/{StatusComponent-DPhnz8ZI.js → StatusComponent-BLbeJdVB.js} +7 -7
- package/chunk/{StatusComponent-DPhnz8ZI.js.map → StatusComponent-BLbeJdVB.js.map} +1 -1
- package/chunk/{StatusComponent-Dxna8rvR.js → StatusComponent-CvMMC2MR.js} +7 -7
- package/chunk/{StatusComponent-Dxna8rvR.js.map → StatusComponent-CvMMC2MR.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-3Mbij1P9.js → StepActiveMilitaryPersonalInfoComponent-Dv9E-wNt.js} +23 -23
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-3Mbij1P9.js.map → StepActiveMilitaryPersonalInfoComponent-Dv9E-wNt.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-FFvDeDRG.js → StepActiveMilitaryPersonalInfoComponent-XDLAbyN0.js} +24 -24
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-FFvDeDRG.js.map → StepActiveMilitaryPersonalInfoComponent-XDLAbyN0.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DG9Hb5S-.js → StepAgePersonalInfo-BsTJ2oQP.js} +18 -18
- package/chunk/{StepAgePersonalInfo-DG9Hb5S-.js.map → StepAgePersonalInfo-BsTJ2oQP.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Dux-oXiF.js → StepAgePersonalInfo-CD8rmbII.js} +18 -18
- package/chunk/{StepAgePersonalInfo-Dux-oXiF.js.map → StepAgePersonalInfo-CD8rmbII.js.map} +1 -1
- package/chunk/{StepCard-BnBrK5Xn.js → StepCard-Bp4YtbLH.js} +5 -5
- package/chunk/{StepCard-B0Stfmvc.js.map → StepCard-Bp4YtbLH.js.map} +1 -1
- package/chunk/{StepCard-B0Stfmvc.js → StepCard-Bzt1Ked6.js} +5 -5
- package/chunk/{StepCard-BnBrK5Xn.js.map → StepCard-Bzt1Ked6.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-nslQ_uiD.js → StepCollectIdentifier-DbqT3QQe.js} +10 -10
- package/chunk/{StepCollectIdentifier-CUfJd9lR.js.map → StepCollectIdentifier-DbqT3QQe.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CUfJd9lR.js → StepCollectIdentifier-_CGgV5yn.js} +8 -8
- package/chunk/{StepCollectIdentifier-nslQ_uiD.js.map → StepCollectIdentifier-_CGgV5yn.js.map} +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-D48r1TIH.js +9 -0
- package/chunk/{StepCollectMilitaryStatusComponent-Csz5hXck.js → StepCollectMilitaryStatusComponent-yDElymyn.js} +5 -5
- package/chunk/{StepCollectPersonalInfo-DFocRlxy.js → StepCollectPersonalInfo-DBt095uS.js} +98 -98
- package/chunk/{StepCollectPersonalInfo-BdYq3OaA.js.map → StepCollectPersonalInfo-DBt095uS.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-BdYq3OaA.js → StepCollectPersonalInfo-qc9qiwM9.js} +131 -131
- package/chunk/{StepCollectPersonalInfo-DFocRlxy.js.map → StepCollectPersonalInfo-qc9qiwM9.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-DIu2DNgh.js → StepCompleteAuthentication-D5eAqv1G.js} +7 -7
- package/chunk/{StepCompleteAuthentication-CbAA1cG8.js.map → StepCompleteAuthentication-D5eAqv1G.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-CbAA1cG8.js → StepCompleteAuthentication-Dn2a9n2B.js} +7 -7
- package/chunk/{StepCompleteAuthentication-DIu2DNgh.js.map → StepCompleteAuthentication-Dn2a9n2B.js.map} +1 -1
- package/chunk/{StepConsolation-CPppVczj.js → StepConsolation-98Hyjrx9.js} +9 -9
- package/chunk/{StepConsolation-CPppVczj.js.map → StepConsolation-98Hyjrx9.js.map} +1 -1
- package/chunk/{StepConsolation-Ga2Deo3F.js → StepConsolation-XE4XTZd0.js} +9 -9
- package/chunk/{StepConsolation-Ga2Deo3F.js.map → StepConsolation-XE4XTZd0.js.map} +1 -1
- package/chunk/{StepDocUpload-DBL1iycT.js → StepDocUpload-DCVjwY0r.js} +208 -208
- package/chunk/{StepDocUpload-DBL1iycT.js.map → StepDocUpload-DCVjwY0r.js.map} +1 -1
- package/chunk/{StepDocUpload-BkCbuH5X.js → StepDocUpload-DIJmY36O.js} +216 -216
- package/chunk/{StepDocUpload-BkCbuH5X.js.map → StepDocUpload-DIJmY36O.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CrADIMOS.js → StepDriverLicensePersonalInfoComponent-BVLj7Snm.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-CUiqvHhA.js.map → StepDriverLicensePersonalInfoComponent-BVLj7Snm.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CUiqvHhA.js → StepDriverLicensePersonalInfoComponent-DpQbQRYk.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-CrADIMOS.js.map → StepDriverLicensePersonalInfoComponent-DpQbQRYk.js.map} +1 -1
- package/chunk/{StepEmailLoop-BLpzq_JF.js → StepEmailLoop-DijPspCu.js} +14 -14
- package/chunk/{StepEmailLoop-4i91aS0V.js.map → StepEmailLoop-DijPspCu.js.map} +1 -1
- package/chunk/{StepEmailLoop-4i91aS0V.js → StepEmailLoop-DlMwekLO.js} +11 -11
- package/chunk/{StepEmailLoop-BLpzq_JF.js.map → StepEmailLoop-DlMwekLO.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-X7zDA2LO.js → StepEmploymentPersonalInfo-CK1WQrFc.js} +18 -18
- package/chunk/{StepEmploymentPersonalInfo-BdrrnW6U.js.map → StepEmploymentPersonalInfo-CK1WQrFc.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BdrrnW6U.js → StepEmploymentPersonalInfo-Io5lDANI.js} +18 -18
- package/chunk/{StepEmploymentPersonalInfo-X7zDA2LO.js.map → StepEmploymentPersonalInfo-Io5lDANI.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DlMdPlSa.js → StepFirstResponderPersonalInfo-BNBFV9nZ.js} +26 -26
- package/chunk/{StepFirstResponderPersonalInfo-Cpjozwj9.js.map → StepFirstResponderPersonalInfo-BNBFV9nZ.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-Cpjozwj9.js → StepFirstResponderPersonalInfo-y8pLS7Ot.js} +24 -24
- package/chunk/{StepFirstResponderPersonalInfo-DlMdPlSa.js.map → StepFirstResponderPersonalInfo-y8pLS7Ot.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BrkQbrIa.js → StepGeneralIdentityPersonalInfoComponent-BOVFxi7E.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BrkQbrIa.js.map → StepGeneralIdentityPersonalInfoComponent-BOVFxi7E.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-GQ0_pyiW.js → StepGeneralIdentityPersonalInfoComponent-DN4fDgmT.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-GQ0_pyiW.js.map → StepGeneralIdentityPersonalInfoComponent-DN4fDgmT.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DBQA9Czz.js → StepHybridIdentityPersonalInfoComponent-B7GiImzs.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DBQA9Czz.js.map → StepHybridIdentityPersonalInfoComponent-B7GiImzs.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DGJ-K8jL.js → StepHybridIdentityPersonalInfoComponent-CpLwzKR3.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DGJ-K8jL.js.map → StepHybridIdentityPersonalInfoComponent-CpLwzKR3.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CmDYY5x_.js → StepIDCheckLoop-BvXMO0o-.js} +8 -8
- package/chunk/{StepIDCheckLoop-CmDYY5x_.js.map → StepIDCheckLoop-BvXMO0o-.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-N0V-opfP.js → StepIDCheckLoop-mjicZN47.js} +8 -8
- package/chunk/{StepIDCheckLoop-N0V-opfP.js.map → StepIDCheckLoop-mjicZN47.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DrbnvX-v.js → StepIDCheckLoopOnfido-BOV4prFg.js} +38 -38
- package/chunk/{StepIDCheckLoopOnfido-DrbnvX-v.js.map → StepIDCheckLoopOnfido-BOV4prFg.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-vUiFK8kD.js → StepIDCheckLoopOnfido-DruIo3QT.js} +37 -37
- package/chunk/{StepIDCheckLoopOnfido-vUiFK8kD.js.map → StepIDCheckLoopOnfido-DruIo3QT.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DUQqWyY7.js → StepIDCheckLoopRegula-DyBl3yuL.js} +20 -20
- package/chunk/{StepIDCheckLoopRegula-6F05II31.js.map → StepIDCheckLoopRegula-DyBl3yuL.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-6F05II31.js → StepIDCheckLoopRegula-_AQpP8Wd.js} +21 -21
- package/chunk/{StepIDCheckLoopRegula-DUQqWyY7.js.map → StepIDCheckLoopRegula-_AQpP8Wd.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-WvnubM6a.js → StepInactiveMilitaryPersonalInfoComponent-DCG2AMPg.js} +35 -35
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CZNK0Ym-.js.map → StepInactiveMilitaryPersonalInfoComponent-DCG2AMPg.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CZNK0Ym-.js → StepInactiveMilitaryPersonalInfoComponent-DyWjru-q.js} +32 -32
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-WvnubM6a.js.map → StepInactiveMilitaryPersonalInfoComponent-DyWjru-q.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-B6orcA1q.js → StepLicensedProfessionalPersonalInfo-CeTlSVd_.js} +17 -17
- package/chunk/{StepLicensedProfessionalPersonalInfo-B6orcA1q.js.map → StepLicensedProfessionalPersonalInfo-CeTlSVd_.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-Cybuz5wl.js → StepLicensedProfessionalPersonalInfo-l2Kz9fjT.js} +17 -17
- package/chunk/{StepLicensedProfessionalPersonalInfo-Cybuz5wl.js.map → StepLicensedProfessionalPersonalInfo-l2Kz9fjT.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-Bex7yLTA.js → StepLowIncomePersonalInfo-CprfWbyi.js} +30 -30
- package/chunk/{StepLowIncomePersonalInfo-Bex7yLTA.js.map → StepLowIncomePersonalInfo-CprfWbyi.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-PGMXtmeY.js → StepLowIncomePersonalInfo-LJsDGPUb.js} +33 -33
- package/chunk/{StepLowIncomePersonalInfo-PGMXtmeY.js.map → StepLowIncomePersonalInfo-LJsDGPUb.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-D9Dq4buf.js → StepMedicalProfessionalPersonalInfo-CCmT6j7D.js} +25 -25
- package/chunk/{StepMedicalProfessionalPersonalInfo-BCh4dVMx.js.map → StepMedicalProfessionalPersonalInfo-CCmT6j7D.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BCh4dVMx.js → StepMedicalProfessionalPersonalInfo-wIOQmTNI.js} +21 -21
- package/chunk/{StepMedicalProfessionalPersonalInfo-D9Dq4buf.js.map → StepMedicalProfessionalPersonalInfo-wIOQmTNI.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-h4gOJKVO.js → StepMemberPersonalInfo-BBo85iSh.js} +16 -16
- package/chunk/{StepMemberPersonalInfo-CZ4eG64m.js.map → StepMemberPersonalInfo-BBo85iSh.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CZ4eG64m.js → StepMemberPersonalInfo-Bl21iEdB.js} +16 -16
- package/chunk/{StepMemberPersonalInfo-h4gOJKVO.js.map → StepMemberPersonalInfo-Bl21iEdB.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-1qubJ21-.js → StepMoverPersonalInfo-CPfQCBOL.js} +14 -14
- package/chunk/{StepMoverPersonalInfo-1qubJ21-.js.map → StepMoverPersonalInfo-CPfQCBOL.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DjmlleEw.js → StepMoverPersonalInfo-WIqMMlAQ.js} +14 -14
- package/chunk/{StepMoverPersonalInfo-DjmlleEw.js.map → StepMoverPersonalInfo-WIqMMlAQ.js.map} +1 -1
- package/chunk/{StepOverrideComponent-C5LO9dxP.js → StepOverrideComponent-Bx00Gy5b.js} +15 -15
- package/chunk/{StepOverrideComponent-C5LO9dxP.js.map → StepOverrideComponent-Bx00Gy5b.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DGSV1P5q.js → StepOverrideComponent-DkwzqsMM.js} +15 -15
- package/chunk/{StepOverrideComponent-DGSV1P5q.js.map → StepOverrideComponent-DkwzqsMM.js.map} +1 -1
- package/chunk/{StepSMSLoop-Cb56n7Er.js → StepSMSLoop-DF072Jty.js} +16 -16
- package/chunk/{StepSMSLoop-Cb56n7Er.js.map → StepSMSLoop-DF072Jty.js.map} +1 -1
- package/chunk/{StepSMSLoop-XVN6o1NS.js → StepSMSLoop-WSBQ_nIW.js} +16 -16
- package/chunk/{StepSMSLoop-XVN6o1NS.js.map → StepSMSLoop-WSBQ_nIW.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +4 -4
- package/chunk/StepSSO-BaFk7RFJ.js +4 -4
- package/chunk/{StepSocialSecurityNumber-B0kLt_Ff.js → StepSocialSecurityNumber-B46D7NFt.js} +16 -16
- package/chunk/{StepSocialSecurityNumber-B0kLt_Ff.js.map → StepSocialSecurityNumber-B46D7NFt.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CE3z8DHI.js → StepSocialSecurityNumber-DABlcVKf.js} +16 -16
- package/chunk/{StepSocialSecurityNumber-CE3z8DHI.js.map → StepSocialSecurityNumber-DABlcVKf.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BI9ktkUU.js → StepStudentPersonalInfo-CP_4yhlJ.js} +50 -50
- package/chunk/{StepStudentPersonalInfo-BI9ktkUU.js.map → StepStudentPersonalInfo-CP_4yhlJ.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-MarIxoV4.js → StepStudentPersonalInfo-CTZIwyV3.js} +17 -17
- package/chunk/{StepStudentPersonalInfo-MarIxoV4.js.map → StepStudentPersonalInfo-CTZIwyV3.js.map} +1 -1
- package/chunk/{StepSuccess-BDy48JTw.js → StepSuccess-C6Uc5k_Q.js} +34 -30
- package/chunk/{StepSuccess-BDy48JTw.js.map → StepSuccess-C6Uc5k_Q.js.map} +1 -1
- package/chunk/{StepSuccess-C3xkPK0R.js → StepSuccess-CBdsz8MT.js} +29 -33
- package/chunk/{StepSuccess-C3xkPK0R.js.map → StepSuccess-CBdsz8MT.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-Cd-1RDI8.js → StepTeacherPersonalInfo-60j8F4p1.js} +17 -17
- package/chunk/{StepTeacherPersonalInfo-Cd-1RDI8.js.map → StepTeacherPersonalInfo-60j8F4p1.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CfaA5EF-.js → StepTeacherPersonalInfo-BCHnJj4O.js} +17 -17
- package/chunk/{StepTeacherPersonalInfo-CfaA5EF-.js.map → StepTeacherPersonalInfo-BCHnJj4O.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +4 -4
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +4 -4
- package/chunk/{TeacherSchoolComponent-QMCnfKO6.js → TeacherSchoolComponent-BBl8EFEF.js} +8 -8
- package/chunk/{TeacherSchoolComponent-QMCnfKO6.js.map → TeacherSchoolComponent-BBl8EFEF.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-D9WEKaHi.js → TeacherSchoolComponent-en6KtVzc.js} +8 -8
- package/chunk/{TeacherSchoolComponent-D9WEKaHi.js.map → TeacherSchoolComponent-en6KtVzc.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BGh0Kqkp.js +77 -0
- package/chunk/{TestingRouteOverrides-BddK1BnO.js.map → TestingRouteOverrides-BGh0Kqkp.js.map} +1 -1
- package/chunk/TestingRouteOverrides-CWSI3tlL.js +81 -0
- package/chunk/{TestingRouteOverrides-D2lQ2iql.js.map → TestingRouteOverrides-CWSI3tlL.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-CXH2RHWK.js → VerificationApiClient-CAFyrI7O.js} +110 -103
- package/chunk/VerificationApiClient-CAFyrI7O.js.map +1 -0
- package/chunk/{VerificationApiClient-BTNoYJ13.js → VerificationApiClient-ClWX625R.js} +169 -162
- package/chunk/VerificationApiClient-ClWX625R.js.map +1 -0
- package/chunk/{VerificationApiUtils-jjMt3smk.js → VerificationApiUtils-CGXDqW3c.js} +7 -7
- package/chunk/{VerificationApiUtils-DEt8hCJB.js.map → VerificationApiUtils-CGXDqW3c.js.map} +1 -1
- package/chunk/VerificationApiUtils-Cqrb105H.js +21 -0
- package/chunk/{VerificationApiUtils-jjMt3smk.js.map → VerificationApiUtils-Cqrb105H.js.map} +1 -1
- package/chunk/ar-oaTqX-Bi.js +4 -4
- package/chunk/bg-FRD3ihTE.js +4 -4
- package/chunk/bn-IN-Dy8OAkhr.js +4 -4
- package/chunk/{countryUtils-D6zs2LHQ.js → countryUtils-1JE4C2YN.js} +5 -5
- package/chunk/{countryUtils-D6zs2LHQ.js.map → countryUtils-1JE4C2YN.js.map} +1 -1
- package/chunk/countryUtils-DDvwDj32.js +12 -0
- package/chunk/{countryUtils-FDuHjQVt.js.map → countryUtils-DDvwDj32.js.map} +1 -1
- package/chunk/cs-enxrquzj.js +4 -4
- package/chunk/da-xnww0OFf.js +4 -4
- package/chunk/de-Bpbr5cGf.js +4 -4
- package/chunk/{downshift.esm-BsLBKER5.js → downshift.esm-CD2wa3dL.js} +43 -43
- package/chunk/{downshift.esm-BsLBKER5.js.map → downshift.esm-CD2wa3dL.js.map} +1 -1
- package/chunk/{downshift.esm-CtV-zKqm.js → downshift.esm-DuUxTaVX.js} +122 -122
- package/chunk/{downshift.esm-CtV-zKqm.js.map → downshift.esm-DuUxTaVX.js.map} +1 -1
- package/chunk/el-CGE77D1a.js +4 -4
- package/chunk/{empties-CUtOn4FK.js → empties-CadVejwz.js} +49 -49
- package/chunk/{empties-BE8mPIWm.js.map → empties-CadVejwz.js.map} +1 -1
- package/chunk/{empties-BE8mPIWm.js → empties-DPqJljgl.js} +5 -5
- package/chunk/{empties-CUtOn4FK.js.map → empties-DPqJljgl.js.map} +1 -1
- package/chunk/en-GB-DtYEpdGz.js +4 -4
- package/chunk/es-B7Lqo7bY.js +4 -4
- package/chunk/es-ES-DMWW2FXA.js +4 -4
- package/chunk/et-q5WIKwz8.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BsqNfa1o.js +4 -4
- package/chunk/fi-CcuqPTQ2.js +4 -4
- package/chunk/fr-8Mug3b2y.js +4 -4
- package/chunk/fr-CA-DNMuEFMS.js +4 -4
- package/chunk/ga-BCyuagqq.js +4 -4
- package/chunk/hi-IN-s-W34sti.js +4 -4
- package/chunk/hr-B5aHCY4_.js +4 -4
- package/chunk/hu-C5qCDre-.js +4 -4
- package/chunk/id-B1goA5xk.js +4 -4
- package/chunk/{intl-CSRMUNER.js → intl-RejEV_0u.js} +409 -401
- package/chunk/intl-RejEV_0u.js.map +1 -0
- package/chunk/is-BW-t-Zif.js +4 -4
- package/chunk/it-DvCMm2we.js +4 -4
- package/chunk/iw-69T_ZKoI.js +4 -4
- package/chunk/ja-D-tWJV9S.js +4 -4
- package/chunk/{jsx-runtime-Dwjl7cK_.js → jsx-runtime-BzjRi5cY.js} +5 -5
- package/chunk/{jsx-runtime-ad-EElqi.js.map → jsx-runtime-BzjRi5cY.js.map} +1 -1
- package/chunk/{jsx-runtime-ad-EElqi.js → jsx-runtime-C8rHQFpC.js} +5 -5
- package/chunk/{jsx-runtime-Dwjl7cK_.js.map → jsx-runtime-C8rHQFpC.js.map} +1 -1
- package/chunk/kk-Cen4nsDW.js +4 -4
- package/chunk/ko-CKXa3e4S.js +4 -4
- package/chunk/lo-B4V3NOya.js +4 -4
- package/chunk/lt-CfHYjV7E.js +4 -4
- package/chunk/lv-bF1azTKb.js +4 -4
- package/chunk/{militaryStepHelpers-ZTXJBaSu.js → militaryStepHelpers-DIXJbH-e.js} +5 -5
- package/chunk/{militaryStepHelpers-7zTr1SAJ.js.map → militaryStepHelpers-DIXJbH-e.js.map} +1 -1
- package/chunk/{militaryStepHelpers-7zTr1SAJ.js → militaryStepHelpers-DjUPkHuN.js} +5 -5
- package/chunk/{militaryStepHelpers-ZTXJBaSu.js.map → militaryStepHelpers-DjUPkHuN.js.map} +1 -1
- package/chunk/{mocks-pQI41mbh.js → mocks-C4r3kSBm.js} +9 -9
- package/chunk/{mocks-CqvJ21vO.js.map → mocks-C4r3kSBm.js.map} +1 -1
- package/chunk/{mocks-CqvJ21vO.js → mocks-ZRlDr2zp.js} +9 -9
- package/chunk/{mocks-pQI41mbh.js.map → mocks-ZRlDr2zp.js.map} +1 -1
- package/chunk/ms-DIzxVhax.js +4 -4
- package/chunk/nl-BE-BP03y6BO.js +4 -4
- package/chunk/nl-DfctTqxe.js +4 -4
- package/chunk/no-RQH9Zv2G.js +4 -4
- package/chunk/{options-BbtwtZJW.js → options-5u5_TcMp.js} +394 -386
- package/chunk/{options-BbtwtZJW.js.map → options-5u5_TcMp.js.map} +1 -1
- package/chunk/pl-DbogtaWs.js +4 -4
- package/chunk/programThemeGetters-BXh5zb0K.js +165 -0
- package/chunk/{programThemeGetters-BntsyO45.js.map → programThemeGetters-BXh5zb0K.js.map} +1 -1
- package/chunk/{programThemeGetters-Cs5pPYoq.js → programThemeGetters-D-drBRV1.js} +18 -18
- package/chunk/{programThemeGetters-Cs5pPYoq.js.map → programThemeGetters-D-drBRV1.js.map} +1 -1
- package/chunk/pt-B2V6YtyG.js +4 -4
- package/chunk/pt-BR-CVJoyXno.js +4 -4
- package/chunk/{refs-DAyn6DqR.js → refs-BxfzLCJo.js} +5 -5
- package/chunk/{refs-DAyn6DqR.js.map → refs-BxfzLCJo.js.map} +1 -1
- package/chunk/{refs-jwRCkD4_.js → refs-Dbu3I4qq.js} +5 -5
- package/chunk/{refs-jwRCkD4_.js.map → refs-Dbu3I4qq.js.map} +1 -1
- package/chunk/ro-FX-D-E91.js +4 -4
- package/chunk/ru-DMxlV75G.js +4 -4
- package/chunk/sk-CligiCej.js +4 -4
- package/chunk/sl-DQanH4Ky.js +4 -4
- package/chunk/sr-BZNIdT32.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-BfXPNNfM.js +4 -4
- package/chunk/sw-Cw__J23Z.js +4 -4
- package/chunk/ta-Chf_KWJv.js +4 -4
- package/chunk/th-BC7lSeIN.js +4 -4
- package/chunk/tl-BIXqJsLl.js +4 -4
- package/chunk/tr-C_V4PV3Q.js +4 -4
- package/chunk/uk-ebwNkDb6.js +4 -4
- package/chunk/ur-BbRoatfN.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-T8xZdFDS.js → useCollectFieldsEndpoint-7AsHsqB8.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-DGhrHYA3.js.map → useCollectFieldsEndpoint-7AsHsqB8.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DGhrHYA3.js → useCollectFieldsEndpoint-Ce2HnQ3I.js} +12 -12
- package/chunk/{useCollectFieldsEndpoint-T8xZdFDS.js.map → useCollectFieldsEndpoint-Ce2HnQ3I.js.map} +1 -1
- package/chunk/{useMetrics-Dq3FoQl7.js → useMetrics-CLtxtSUO.js} +7 -11
- package/chunk/{useMetrics-CNgGT8bK.js.map → useMetrics-CLtxtSUO.js.map} +1 -1
- package/chunk/{useMetrics-CNgGT8bK.js → useMetrics-CnnipBHm.js} +11 -7
- package/chunk/{useMetrics-Dq3FoQl7.js.map → useMetrics-CnnipBHm.js.map} +1 -1
- package/chunk/{validators-D7nh3NtK.js → validators-BTSkTV2f.js} +288 -288
- package/chunk/{validators-BCgU1EZZ.js.map → validators-BTSkTV2f.js.map} +1 -1
- package/chunk/{validators-BCgU1EZZ.js → validators-Bs1tWRSl.js} +86 -86
- package/chunk/{validators-D7nh3NtK.js.map → validators-Bs1tWRSl.js.map} +1 -1
- package/chunk/vi-B3RXegfW.js +4 -4
- package/chunk/zh-CD_hFClw.js +4 -4
- package/chunk/zh-HK-CGOvOtYE.js +4 -4
- package/chunk/zu-BMx7nUPZ.js +4 -4
- package/package.json +3 -2
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +1427 -1400
- package/sheerid.js.map +1 -1
- package/chunk/CountryComponentWrapper-DKuB4eQA.js +0 -74
- package/chunk/FormFooterComponent-Cgu8_872.js.map +0 -1
- package/chunk/FormFooterComponent-DB0-FOF0.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-BLY_y2Bh.js +0 -9
- package/chunk/TestingRouteOverrides-BddK1BnO.js +0 -77
- package/chunk/TestingRouteOverrides-D2lQ2iql.js +0 -81
- package/chunk/VerificationApiClient-BTNoYJ13.js.map +0 -1
- package/chunk/VerificationApiClient-CXH2RHWK.js.map +0 -1
- package/chunk/VerificationApiUtils-DEt8hCJB.js +0 -21
- package/chunk/countryUtils-FDuHjQVt.js +0 -12
- package/chunk/intl-CSRMUNER.js.map +0 -1
- package/chunk/programThemeGetters-BntsyO45.js +0 -165
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepEmploymentPersonalInfo-X7zDA2LO.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,IA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AoB,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-Io5lDANI.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,uBAAs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D;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.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.263.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785516877881
|
|
5
|
+
* BUILD_DATE: Fri Jul 31 2026 16:54:37 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-
|
|
10
|
-
import {
|
|
11
|
-
import { n as u } from "./empties-
|
|
8
|
+
import { Lt as e, c as t, lt as n, n as r, xt as i } from "./options-5u5_TcMp.js";
|
|
9
|
+
import { a, c as o, n as s, t as c } from "./jsx-runtime-BzjRi5cY.js";
|
|
10
|
+
import { C as l } from "./FormFooterComponent-hQ9YVK_9.js";
|
|
11
|
+
import { n as u } from "./empties-CadVejwz.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-D5Dv1noI.js";
|
|
14
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-IMW1ww2e.js";
|
|
15
|
+
import { t as T } from "./BirthDateComponent-CPX6e-oS.js";
|
|
16
|
+
import { t as E } from "./PostalCodeComponent-BDFy_9yi.js";
|
|
17
|
+
import { t as D } from "./CountryComponentWrapper-CLGBVkRB.js";
|
|
18
|
+
import { t as O } from "./ExtraMessage-UbmnijRM.js";
|
|
19
|
+
import { t as k } from "./ChangeLocaleComponent-B8O2m2HE.js";
|
|
20
|
+
import { t as A } from "./PersonalInfoStepWrapper-DwvV4VsT.js";
|
|
21
|
+
import { t as j } from "./StatusComponent-BLbeJdVB.js";
|
|
22
|
+
import { t as M } from "./FirstResponderOrganizationComponent-NKG9W0hn.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-Cpjozwj9.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,qBAAoB;GACrB,CA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FirstResponderPersonalInfo/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,CAAA;GACpE,i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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.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.263.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785516882559
|
|
9
|
+
* BUILD_DATE: Fri Jul 31 2026 16:54:42 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-
|
|
14
|
-
import {
|
|
15
|
-
import { n as u } from "./empties-
|
|
12
|
+
import { Bt as e, Ft as t, p as n, s as r, yt as i } from "./intl-RejEV_0u.js";
|
|
13
|
+
import { a, c as o, n as s, t as c } from "./jsx-runtime-C8rHQFpC.js";
|
|
14
|
+
import { D as l } from "./FormFooterComponent-Bf1bxfK_.js";
|
|
15
|
+
import { n as u } from "./empties-DPqJljgl.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-gd5yubvd.js";
|
|
18
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-BS7TwIFn.js";
|
|
19
|
+
import { t as T } from "./BirthDateComponent-DiB89V9D.js";
|
|
20
|
+
import { t as E } from "./PostalCodeComponent-DuEPciUA.js";
|
|
21
|
+
import { t as D } from "./CountryComponentWrapper-BGajYZrL.js";
|
|
22
|
+
import { t as O } from "./ExtraMessage-vcQ9SW6K.js";
|
|
23
|
+
import { t as k } from "./ChangeLocaleComponent-BTZAq7uW.js";
|
|
24
|
+
import { t as A } from "./PersonalInfoStepWrapper-CZDrFaqC.js";
|
|
25
|
+
import { t as j } from "./StatusComponent-CvMMC2MR.js";
|
|
26
|
+
import { t as M } from "./FirstResponderOrganizationComponent-DMOFM1oz.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",
|
|
@@ -62,7 +62,7 @@ var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
|
62
62
|
/* @__PURE__ */ (0, N.jsx)(M, {
|
|
63
63
|
isErrored: !!P.organization,
|
|
64
64
|
onChange: (t = u.organization) => {
|
|
65
|
-
let
|
|
65
|
+
let r = n(c, (n) => {
|
|
66
66
|
n.organization = {
|
|
67
67
|
id: t.id,
|
|
68
68
|
idExtended: t.idExtended,
|
|
@@ -70,7 +70,7 @@ var N = c(), P = a(({ intl: a, verificationService: o }) => {
|
|
|
70
70
|
source: t.source
|
|
71
71
|
}, c.organization && c.organization.source !== void 0 && (n.organization.source = c.organization.source), e(() => o.programTheme.openOrgSearchEnabled) && e(() => t.id) === 0 && e(() => t.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", t, o);
|
|
74
74
|
},
|
|
75
75
|
value: o.viewModel.organization,
|
|
76
76
|
verificationService: o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepFirstResponderPersonalInfo-DlMdPlSa.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,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO;KACL,OAAO,EAAU;KACjB,OAAO,EAAe,GAAM,EAAU,QAAQ,CAAuC;IACvF;IACA,WAAW,CAAC,CAAC,EAAsB;IACnC,SAAQ;IACR,UAAU,EAAwB,QAAQ,GAAG;IAC7C,SAAS,EAAmC,GAAM,EAAqB,iBAAiB;IACxF,WAAW,MAA6B;KAEtC,AADA,EAA8B,UAAU,IAAU,EAAO,QAAmB,EAAE,GAC9E,EACE,UACA,IAAU,EAAO,QAAmB,IACpC,CACF;IACF;GACD,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,IAAuB,EAAkB,iBAAiB;KACnE,IAAM,IAAY,EAAQ,IAAY,MAAU;MAY9C,AAXA,EAAM,eAAe;OACnB,IA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;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"}
|
|
1
|
+
{"version":3,"file":"StepFirstResponderPersonalInfo-y8pLS7Ot.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"],"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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,26 +4,26 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.263.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785516882559
|
|
9
|
+
* BUILD_DATE: Fri Jul 31 2026 16:54:42 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { a as r, n as i, t as a } from "./jsx-runtime-
|
|
14
|
-
import {
|
|
15
|
-
import { a as s } from "./refs-
|
|
12
|
+
import { Ft as e, p as t, s as n } from "./intl-RejEV_0u.js";
|
|
13
|
+
import { a as r, n as i, t as a } from "./jsx-runtime-C8rHQFpC.js";
|
|
14
|
+
import { D as o } from "./FormFooterComponent-Bf1bxfK_.js";
|
|
15
|
+
import { a as s } from "./refs-BxfzLCJo.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-gd5yubvd.js";
|
|
18
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-BS7TwIFn.js";
|
|
19
|
+
import { t as x } from "./BirthDateComponent-DiB89V9D.js";
|
|
20
|
+
import { t as S } from "./PostalCodeComponent-DuEPciUA.js";
|
|
21
|
+
import { t as C } from "./City-B6J8thJW.js";
|
|
22
|
+
import { t as w } from "./AddressComponent-0vaEURVZ.js";
|
|
23
|
+
import { t as T } from "./ExtraMessage-vcQ9SW6K.js";
|
|
24
|
+
import { t as E } from "./ChangeLocaleComponent-BTZAq7uW.js";
|
|
25
|
+
import { t as D } from "./PersonalInfoStepWrapper-CZDrFaqC.js";
|
|
26
|
+
import { t as O } from "./StateSelectComponent-CFY00_F5.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-BrkQbrIa.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;CAC/C;CAKA,OAFA,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GAEpE,iBAAA,GAAA,EAAA,MAAC,OAAD;IAAK,WAAU;cAAf,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,UAAU,EAAwB,WAAW,GAAG;KAChD,WAAW,MAAa;MAEtB,AADA,EAAwB,aAAa,CAAQ,GAC7C,EAAqC,aAAa,GAAU,CAAmB;KACjF;IACD,CAAA,GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,UAAU,EAAwB,UAAU,GAAG;KAC/C,WAAW,MAAa;MAEtB,AADA,EAAwB,YAAY,CAAQ,GAC5C,EAAqC,YAAY,GAAU,CAAmB;KAChF;IACD,CAAA,CACE;;GAEL,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,a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M,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-BOVFxi7E.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;CAC/C;CAKA,OAFA,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GAEpE,iBAAA,GAAA,EAAA,MAAC,OAAD;IAAK,WAAU;cAAf,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,UAAU,EAAwB,WAAW,GAAG;KAChD,WAAW,MAAa;MAEtB,AADA,EAAwB,aAAa,CAAQ,GAC7C,EAAqC,aAAa,GAAU,CAAmB;KACjF;IACD,CAAA,GAED,iBAAA,G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ACtB,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,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.263.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785516877881
|
|
5
|
+
* BUILD_DATE: Fri Jul 31 2026 16:54:37 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { a as r, n as i, t as a } from "./jsx-runtime-
|
|
10
|
-
import {
|
|
11
|
-
import { a as s } from "./refs-
|
|
8
|
+
import { Lt as e, c as t, n } from "./options-5u5_TcMp.js";
|
|
9
|
+
import { a as r, n as i, t as a } from "./jsx-runtime-BzjRi5cY.js";
|
|
10
|
+
import { C as o } from "./FormFooterComponent-hQ9YVK_9.js";
|
|
11
|
+
import { a as s } from "./refs-Dbu3I4qq.js";
|
|
12
12
|
import { K as c, L as l, V as u, et as d, r as f } from "../sheerid.js";
|
|
13
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-
|
|
14
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-
|
|
15
|
-
import { t as x } from "./BirthDateComponent-
|
|
16
|
-
import { t as S } from "./PostalCodeComponent-
|
|
17
|
-
import { t as C } from "./City-
|
|
18
|
-
import { t as w } from "./AddressComponent-
|
|
19
|
-
import { t as T } from "./ExtraMessage-
|
|
20
|
-
import { t as E } from "./ChangeLocaleComponent-
|
|
21
|
-
import { t as D } from "./PersonalInfoStepWrapper-
|
|
22
|
-
import { t as O } from "./StateSelectComponent-
|
|
13
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-D5Dv1noI.js";
|
|
14
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-IMW1ww2e.js";
|
|
15
|
+
import { t as x } from "./BirthDateComponent-CPX6e-oS.js";
|
|
16
|
+
import { t as S } from "./PostalCodeComponent-BDFy_9yi.js";
|
|
17
|
+
import { t as C } from "./City-CLyjXYQj.js";
|
|
18
|
+
import { t as w } from "./AddressComponent-D9R5iYEq.js";
|
|
19
|
+
import { t as T } from "./ExtraMessage-UbmnijRM.js";
|
|
20
|
+
import { t as E } from "./ChangeLocaleComponent-B8O2m2HE.js";
|
|
21
|
+
import { t as D } from "./PersonalInfoStepWrapper-DwvV4VsT.js";
|
|
22
|
+
import { t as O } from "./StateSelectComponent-CN7u7Z5P.js";
|
|
23
23
|
//#region src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.tsx
|
|
24
24
|
var k = a(), A = ({ intl: r, verificationService: a }) => {
|
|
25
25
|
let A = a.viewModel, { fieldValidationErrors: j } = a, M = a.verificationResponse, N = o(M), P = n(), F = A.localeChoice.value, I = (e, n) => {
|