@sheerid/jslib-nightly 2.261.0-alpha.2 → 2.262.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 +1938 -1822
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-CL1CDsWz.js → AddressComponent-BIrgOqZP.js} +6 -6
- package/chunk/{AddressComponent-CL1CDsWz.js.map → AddressComponent-BIrgOqZP.js.map} +1 -1
- package/chunk/{AddressComponent-DJPGVE04.js → AddressComponent-Bz4YL1zB.js} +6 -6
- package/chunk/{AddressComponent-DJPGVE04.js.map → AddressComponent-Bz4YL1zB.js.map} +1 -1
- package/chunk/{AnnouncingHeader-lotcA5d8.js → AnnouncingHeader-DDT5xAyL.js} +6 -6
- package/chunk/{AnnouncingHeader-DGy7wEme.js.map → AnnouncingHeader-DDT5xAyL.js.map} +1 -1
- package/chunk/{AnnouncingHeader-DGy7wEme.js → AnnouncingHeader-DSPYeTwU.js} +6 -6
- package/chunk/{AnnouncingHeader-lotcA5d8.js.map → AnnouncingHeader-DSPYeTwU.js.map} +1 -1
- package/chunk/{ApiUrls-x5OW__zK.js → ApiUrls-B4ByDP6J.js} +13 -13
- package/chunk/{ApiUrls-CFOJWp17.js.map → ApiUrls-B4ByDP6J.js.map} +1 -1
- package/chunk/{ApiUrls-CFOJWp17.js → ApiUrls-BK_KGyck.js} +6 -6
- package/chunk/{ApiUrls-x5OW__zK.js.map → ApiUrls-BK_KGyck.js.map} +1 -1
- package/chunk/{BirthDateComponent-ChDNrfpu.js → BirthDateComponent-D1JJgBl2.js} +7 -7
- package/chunk/{BirthDateComponent-ChDNrfpu.js.map → BirthDateComponent-D1JJgBl2.js.map} +1 -1
- package/chunk/{BirthDateComponent-O4gmXaIg.js → BirthDateComponent-Dl3W3nIx.js} +7 -7
- package/chunk/{BirthDateComponent-O4gmXaIg.js.map → BirthDateComponent-Dl3W3nIx.js.map} +1 -1
- package/chunk/{CaptchaComponent-CuMY7IG7.js → CaptchaComponent-BTUP8GAT.js} +151 -151
- package/chunk/{CaptchaComponent-CuMY7IG7.js.map → CaptchaComponent-BTUP8GAT.js.map} +1 -1
- package/chunk/{CaptchaComponent-HtCym0Ob.js → CaptchaComponent-DiFfWhVe.js} +151 -151
- package/chunk/{CaptchaComponent-HtCym0Ob.js.map → CaptchaComponent-DiFfWhVe.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Culfw0KY.js → ChangeLocaleComponent-BWWd7KAP.js} +7 -7
- package/chunk/{ChangeLocaleComponent-Culfw0KY.js.map → ChangeLocaleComponent-BWWd7KAP.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-UXH52Zxg.js → ChangeLocaleComponent-BaZ5GFUi.js} +7 -7
- package/chunk/{ChangeLocaleComponent-UXH52Zxg.js.map → ChangeLocaleComponent-BaZ5GFUi.js.map} +1 -1
- package/chunk/{City-FRiBMMDp.js → City-CCtrauPi.js} +6 -6
- package/chunk/{City-C7052kY5.js.map → City-CCtrauPi.js.map} +1 -1
- package/chunk/{City-C7052kY5.js → City-DOi7PTZI.js} +6 -6
- package/chunk/{City-FRiBMMDp.js.map → City-DOi7PTZI.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CWPWGKYE.js → CollegeNameComponent-C_WR63dc.js} +8 -8
- package/chunk/{CollegeNameComponent-C53Tn-qR.js.map → CollegeNameComponent-C_WR63dc.js.map} +1 -1
- package/chunk/{CollegeNameComponent-C53Tn-qR.js → CollegeNameComponent-CfmsSdHW.js} +8 -8
- package/chunk/{CollegeNameComponent-CWPWGKYE.js.map → CollegeNameComponent-CfmsSdHW.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-DnS2qHDv.js → CopyToClipboardComponent-CI5EWk0o.js} +6 -6
- package/chunk/{CopyToClipboardComponent-DMUuSpCM.js.map → CopyToClipboardComponent-CI5EWk0o.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-DMUuSpCM.js → CopyToClipboardComponent-DyolMvdc.js} +6 -6
- package/chunk/{CopyToClipboardComponent-DnS2qHDv.js.map → CopyToClipboardComponent-DyolMvdc.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-DB01QVg5.js → CountryComponentWrapper-B8N-AOdz.js} +24 -24
- package/chunk/{CountryComponentWrapper-DB01QVg5.js.map → CountryComponentWrapper-B8N-AOdz.js.map} +1 -1
- package/chunk/CountryComponentWrapper-DeOMczUR.js +74 -0
- package/chunk/{CountryComponentWrapper-hRj-7R2w.js.map → CountryComponentWrapper-DeOMczUR.js.map} +1 -1
- package/chunk/{DischargeDateComponent-B8Y5jCDr.js → DischargeDateComponent-Bsw6WaP6.js} +18 -18
- package/chunk/{DischargeDateComponent-B8Y5jCDr.js.map → DischargeDateComponent-Bsw6WaP6.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CU1_YtIT.js → DischargeDateComponent-a38WjW8U.js} +16 -16
- package/chunk/{DischargeDateComponent-CU1_YtIT.js.map → DischargeDateComponent-a38WjW8U.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DZtTp8zc.js → DriverLicenseNumberComponent-C3627P1m.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-BpY0Emv_.js.map → DriverLicenseNumberComponent-C3627P1m.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-BpY0Emv_.js → DriverLicenseNumberComponent-lB2n8IBb.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-DZtTp8zc.js.map → DriverLicenseNumberComponent-lB2n8IBb.js.map} +1 -1
- package/chunk/{EmailLoopPending-CqplKWxY.js → EmailLoopPending-BehX14qP.js} +22 -22
- package/chunk/{EmailLoopPending-XqAVQ0-h.js.map → EmailLoopPending-BehX14qP.js.map} +1 -1
- package/chunk/{EmailLoopPending-XqAVQ0-h.js → EmailLoopPending-CIKALvLm.js} +18 -18
- package/chunk/{EmailLoopPending-CqplKWxY.js.map → EmailLoopPending-CIKALvLm.js.map} +1 -1
- package/chunk/{ExtraMessage-CEoizXyv.js → ExtraMessage-BCJi-s7l.js} +7 -7
- package/chunk/{ExtraMessage-CEoizXyv.js.map → ExtraMessage-BCJi-s7l.js.map} +1 -1
- package/chunk/{ExtraMessage-CSve9hUD.js → ExtraMessage-CEUNDVpi.js} +7 -7
- package/chunk/{ExtraMessage-CSve9hUD.js.map → ExtraMessage-CEUNDVpi.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CNif7iXy.js → FirstResponderOrganizationComponent-BNiiNTt7.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-CNif7iXy.js.map → FirstResponderOrganizationComponent-BNiiNTt7.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-dibfkWxC.js → FirstResponderOrganizationComponent-DKV7GVCW.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-dibfkWxC.js.map → FirstResponderOrganizationComponent-DKV7GVCW.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-D0I8XtKt.js → FormFieldInputSelect-DGP75-4e.js} +7 -7
- package/chunk/{FormFieldInputSelect-D0I8XtKt.js.map → FormFieldInputSelect-DGP75-4e.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-bN3_SPsW.js → FormFieldInputSelect-_j71XaLW.js} +7 -7
- package/chunk/{FormFieldInputSelect-bN3_SPsW.js.map → FormFieldInputSelect-_j71XaLW.js.map} +1 -1
- package/chunk/{FormFieldLayout-BzljWm45.js → FormFieldLayout-C-prs50D.js} +6 -6
- package/chunk/{FormFieldLayout-BzljWm45.js.map → FormFieldLayout-C-prs50D.js.map} +1 -1
- package/chunk/{FormFieldLayout-Bmwrqqid.js → FormFieldLayout-eXRaMPRB.js} +6 -6
- package/chunk/{FormFieldLayout-Bmwrqqid.js.map → FormFieldLayout-eXRaMPRB.js.map} +1 -1
- package/chunk/{FormFieldText-Cd6qEKyH.js → FormFieldText-C44FpzvF.js} +7 -7
- package/chunk/{FormFieldText-Cd6qEKyH.js.map → FormFieldText-C44FpzvF.js.map} +1 -1
- package/chunk/{FormFieldText-Dj7CbXHB.js → FormFieldText-DKDYD6O1.js} +7 -7
- package/chunk/{FormFieldText-Dj7CbXHB.js.map → FormFieldText-DKDYD6O1.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-SA16tkD0.js → FormFieldTypeahead-CdEMh8jK.js} +47 -47
- package/chunk/{FormFieldTypeahead-SA16tkD0.js.map → FormFieldTypeahead-CdEMh8jK.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DEXiXy0K.js → FormFieldTypeahead-mgaV5E38.js} +136 -136
- package/chunk/{FormFieldTypeahead-DEXiXy0K.js.map → FormFieldTypeahead-mgaV5E38.js.map} +1 -1
- package/chunk/{FormFooterComponent-BdXYFgGt.js → FormFooterComponent-Clo562J7.js} +2278 -2209
- package/chunk/FormFooterComponent-Clo562J7.js.map +1 -0
- package/chunk/{FormFooterComponent-DtpRKuca.js → FormFooterComponent-SukO1mHN.js} +1682 -1601
- package/chunk/FormFooterComponent-SukO1mHN.js.map +1 -0
- package/chunk/{FormSelectChoice-C7lWWa15.js → FormSelectChoice-DZuKjVGz.js} +13 -9
- package/chunk/{FormSelectChoice-C7lWWa15.js.map → FormSelectChoice-DZuKjVGz.js.map} +1 -1
- package/chunk/{FormSelectChoice-CdX26F4M.js → FormSelectChoice-pQ_jID7c.js} +9 -13
- package/chunk/{FormSelectChoice-CdX26F4M.js.map → FormSelectChoice-pQ_jID7c.js.map} +1 -1
- package/chunk/{InputText-B0p1sWvq.js → InputText-C12rmr0E.js} +7 -7
- package/chunk/{InputText-15VS1v4H.js.map → InputText-C12rmr0E.js.map} +1 -1
- package/chunk/{InputText-15VS1v4H.js → InputText-CDxD4Fcy.js} +7 -7
- package/chunk/{InputText-B0p1sWvq.js.map → InputText-CDxD4Fcy.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-DFozrVMH.js → LicensedProfessionalOrganizationComponent-B3c3IfeM.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-2IFMqmMn.js.map → LicensedProfessionalOrganizationComponent-B3c3IfeM.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-2IFMqmMn.js → LicensedProfessionalOrganizationComponent-CP9r0hEA.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-DFozrVMH.js.map → LicensedProfessionalOrganizationComponent-CP9r0hEA.js.map} +1 -1
- package/chunk/{LogoComponent-CTCMA59a.js → LogoComponent-Dt2sl-7K.js} +6 -6
- package/chunk/{LogoComponent-CTCMA59a.js.map → LogoComponent-Dt2sl-7K.js.map} +1 -1
- package/chunk/{LogoComponent-CXrKiNgF.js → LogoComponent-qYFfdGhk.js} +6 -6
- package/chunk/{LogoComponent-CXrKiNgF.js.map → LogoComponent-qYFfdGhk.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DZ9ekJ43.js → LowIncomeOrganizationComponent-DPu10icr.js} +16 -16
- package/chunk/{LowIncomeOrganizationComponent-CqMStKJs.js.map → LowIncomeOrganizationComponent-DPu10icr.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CqMStKJs.js → LowIncomeOrganizationComponent-m8qqbAz3.js} +16 -16
- package/chunk/{LowIncomeOrganizationComponent-DZ9ekJ43.js.map → LowIncomeOrganizationComponent-m8qqbAz3.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DkwQ1QzL.js → MedicalProfessionalOrganizationComponent-CgoQuZA8.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-DSwQBK_c.js.map → MedicalProfessionalOrganizationComponent-CgoQuZA8.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DSwQBK_c.js → MedicalProfessionalOrganizationComponent-CtYx3bko.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-DkwQ1QzL.js.map → MedicalProfessionalOrganizationComponent-CtYx3bko.js.map} +1 -1
- package/chunk/{MemberIdComponent-CptMgI3z.js → MemberIdComponent-BehRbst0.js} +6 -6
- package/chunk/{MemberIdComponent-CptMgI3z.js.map → MemberIdComponent-BehRbst0.js.map} +1 -1
- package/chunk/{MemberIdComponent-D9iQX3c1.js → MemberIdComponent-Bwx5Gc1F.js} +6 -6
- package/chunk/{MemberIdComponent-D9iQX3c1.js.map → MemberIdComponent-Bwx5Gc1F.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DxR0wtH4.js → MembershipOrganizationComponent-D00T5bq6.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-DxR0wtH4.js.map → MembershipOrganizationComponent-D00T5bq6.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-dcIJSBfw.js → MembershipOrganizationComponent-DasXCN5t.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-dcIJSBfw.js.map → MembershipOrganizationComponent-DasXCN5t.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-BS-lDcpS.js → PersonalInfoStepSubmitButton-C9ilhi9-.js} +19 -19
- package/chunk/{PersonalInfoStepSubmitButton-BS-lDcpS.js.map → PersonalInfoStepSubmitButton-C9ilhi9-.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-BjmIuVJ1.js → PersonalInfoStepSubmitButton-u4r9ghKQ.js} +16 -16
- package/chunk/{PersonalInfoStepSubmitButton-BjmIuVJ1.js.map → PersonalInfoStepSubmitButton-u4r9ghKQ.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-C9fLRLZy.js → PersonalInfoStepWrapper-D8eq_Wtt.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-C9fLRLZy.js.map → PersonalInfoStepWrapper-D8eq_Wtt.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-CTC9gauq.js → PersonalInfoStepWrapper-TGJP5U6C.js} +8 -8
- package/chunk/{PersonalInfoStepWrapper-CTC9gauq.js.map → PersonalInfoStepWrapper-TGJP5U6C.js.map} +1 -1
- package/chunk/{PostalCodeComponent-CvmEHXss.js → PostalCodeComponent-BA2FNJ8F.js} +6 -6
- package/chunk/{PostalCodeComponent-BLKNma3I.js.map → PostalCodeComponent-BA2FNJ8F.js.map} +1 -1
- package/chunk/{PostalCodeComponent-BLKNma3I.js → PostalCodeComponent-Ds-f1Aso.js} +6 -6
- package/chunk/{PostalCodeComponent-CvmEHXss.js.map → PostalCodeComponent-Ds-f1Aso.js.map} +1 -1
- package/chunk/{SSN-D4L9dF07.js → SSN-DKOJL4kj.js} +7 -7
- package/chunk/{SSN-7ZWvh6Fl.js.map → SSN-DKOJL4kj.js.map} +1 -1
- package/chunk/{SSN-7ZWvh6Fl.js → SSN-V4OsBJo-.js} +7 -7
- package/chunk/{SSN-D4L9dF07.js.map → SSN-V4OsBJo-.js.map} +1 -1
- package/chunk/{StateSelectComponent-DTvxuAyp.js → StateSelectComponent-C5uGSKMw.js} +6 -6
- package/chunk/{StateSelectComponent-BBns3zZM.js.map → StateSelectComponent-C5uGSKMw.js.map} +1 -1
- package/chunk/{StateSelectComponent-BBns3zZM.js → StateSelectComponent-Crtyb0Zu.js} +6 -6
- package/chunk/{StateSelectComponent-DTvxuAyp.js.map → StateSelectComponent-Crtyb0Zu.js.map} +1 -1
- package/chunk/{StatusComponent-B1KGdH0Y.js → StatusComponent-B64U2q3T.js} +7 -7
- package/chunk/{StatusComponent-B1KGdH0Y.js.map → StatusComponent-B64U2q3T.js.map} +1 -1
- package/chunk/{StatusComponent-CmqYHRw0.js → StatusComponent-C6yLT_6w.js} +7 -7
- package/chunk/{StatusComponent-CmqYHRw0.js.map → StatusComponent-C6yLT_6w.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Be8j3CNn.js → StepActiveMilitaryPersonalInfoComponent-0gL_mAx0.js} +24 -24
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Be8j3CNn.js.map → StepActiveMilitaryPersonalInfoComponent-0gL_mAx0.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-BwPN1kDj.js → StepActiveMilitaryPersonalInfoComponent-Zy3dZ3wQ.js} +23 -23
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-BwPN1kDj.js.map → StepActiveMilitaryPersonalInfoComponent-Zy3dZ3wQ.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DFTAD36c.js → StepAgePersonalInfo-B_fhJKD6.js} +18 -18
- package/chunk/{StepAgePersonalInfo-DFTAD36c.js.map → StepAgePersonalInfo-B_fhJKD6.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DrJ_uzuo.js → StepAgePersonalInfo-DPNbQWwP.js} +18 -18
- package/chunk/{StepAgePersonalInfo-DrJ_uzuo.js.map → StepAgePersonalInfo-DPNbQWwP.js.map} +1 -1
- package/chunk/{StepCard-42EsVjXX.js → StepCard-B-nYcoAX.js} +5 -5
- package/chunk/{StepCard-42EsVjXX.js.map → StepCard-B-nYcoAX.js.map} +1 -1
- package/chunk/{StepCard-Bp2KEF4j.js → StepCard-DXyV0Wj4.js} +5 -5
- package/chunk/{StepCard-Bp2KEF4j.js.map → StepCard-DXyV0Wj4.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-Gr3MDSAP.js → StepCollectIdentifier-B-9p1C-j.js} +8 -8
- package/chunk/{StepCollectIdentifier-Gr3MDSAP.js.map → StepCollectIdentifier-B-9p1C-j.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CaqE8GKE.js → StepCollectIdentifier-S9ylxY5S.js} +10 -10
- package/chunk/{StepCollectIdentifier-CaqE8GKE.js.map → StepCollectIdentifier-S9ylxY5S.js.map} +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-BL0juR4i.js +9 -0
- package/chunk/{StepCollectMilitaryStatusComponent-DyQHVdZm.js → StepCollectMilitaryStatusComponent-QAU3rC-7.js} +5 -5
- package/chunk/{StepCollectPersonalInfo-C2BsVJVe.js → StepCollectPersonalInfo-DmqTN2Po.js} +131 -131
- package/chunk/{StepCollectPersonalInfo-j8l-nN0c.js.map → StepCollectPersonalInfo-DmqTN2Po.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-j8l-nN0c.js → StepCollectPersonalInfo-TYr3ZfZt.js} +98 -98
- package/chunk/{StepCollectPersonalInfo-C2BsVJVe.js.map → StepCollectPersonalInfo-TYr3ZfZt.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-B5kvuKWH.js → StepCompleteAuthentication-Al4mmZZ4.js} +7 -7
- package/chunk/{StepCompleteAuthentication-B5kvuKWH.js.map → StepCompleteAuthentication-Al4mmZZ4.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-ZqAH64xm.js → StepCompleteAuthentication-zrcJ8B4S.js} +7 -7
- package/chunk/{StepCompleteAuthentication-ZqAH64xm.js.map → StepCompleteAuthentication-zrcJ8B4S.js.map} +1 -1
- package/chunk/{StepConsolation-Wq3CAeO2.js → StepConsolation-CNCu1p-c.js} +9 -9
- package/chunk/{StepConsolation-Cm_r2Qpu.js.map → StepConsolation-CNCu1p-c.js.map} +1 -1
- package/chunk/{StepConsolation-Cm_r2Qpu.js → StepConsolation-DMEtDUwF.js} +9 -9
- package/chunk/{StepConsolation-Wq3CAeO2.js.map → StepConsolation-DMEtDUwF.js.map} +1 -1
- package/chunk/{StepDocUpload-Bcj4P9yG.js → StepDocUpload-DkW2dA7T.js} +208 -208
- package/chunk/{StepDocUpload-Bcj4P9yG.js.map → StepDocUpload-DkW2dA7T.js.map} +1 -1
- package/chunk/{StepDocUpload-BsecYmMY.js → StepDocUpload-MyD36uMA.js} +216 -216
- package/chunk/{StepDocUpload-BsecYmMY.js.map → StepDocUpload-MyD36uMA.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DwU3xXfF.js → StepDriverLicensePersonalInfoComponent-BimlWXi-.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-BY5ptPl2.js.map → StepDriverLicensePersonalInfoComponent-BimlWXi-.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BY5ptPl2.js → StepDriverLicensePersonalInfoComponent-C0d7h_vU.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-DwU3xXfF.js.map → StepDriverLicensePersonalInfoComponent-C0d7h_vU.js.map} +1 -1
- package/chunk/{StepEmailLoop-BMUrqRpU.js → StepEmailLoop-BMD9mmRi.js} +11 -11
- package/chunk/{StepEmailLoop-BMUrqRpU.js.map → StepEmailLoop-BMD9mmRi.js.map} +1 -1
- package/chunk/{StepEmailLoop-kQprPvwO.js → StepEmailLoop-D7V1UxL8.js} +14 -14
- package/chunk/{StepEmailLoop-kQprPvwO.js.map → StepEmailLoop-D7V1UxL8.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CoCYBUoK.js → StepEmploymentPersonalInfo-BirWFiWr.js} +18 -18
- package/chunk/{StepEmploymentPersonalInfo-BDNbJGr3.js.map → StepEmploymentPersonalInfo-BirWFiWr.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BDNbJGr3.js → StepEmploymentPersonalInfo-DedR7oVc.js} +18 -18
- package/chunk/{StepEmploymentPersonalInfo-CoCYBUoK.js.map → StepEmploymentPersonalInfo-DedR7oVc.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-MQheKSca.js → StepFirstResponderPersonalInfo-BjrLQRYq.js} +26 -26
- package/chunk/{StepFirstResponderPersonalInfo-MQheKSca.js.map → StepFirstResponderPersonalInfo-BjrLQRYq.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DjCy_Aa2.js → StepFirstResponderPersonalInfo-CB22u23N.js} +24 -24
- package/chunk/{StepFirstResponderPersonalInfo-DjCy_Aa2.js.map → StepFirstResponderPersonalInfo-CB22u23N.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DxASHFqp.js → StepGeneralIdentityPersonalInfoComponent-BTilz5ZG.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BUbWhi8e.js.map → StepGeneralIdentityPersonalInfoComponent-BTilz5ZG.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BUbWhi8e.js → StepGeneralIdentityPersonalInfoComponent-CooUjo5k.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DxASHFqp.js.map → StepGeneralIdentityPersonalInfoComponent-CooUjo5k.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-63OocGXO.js → StepHybridIdentityPersonalInfoComponent-CNT3ijHo.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-63OocGXO.js.map → StepHybridIdentityPersonalInfoComponent-CNT3ijHo.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C01ouGdL.js → StepHybridIdentityPersonalInfoComponent-fYHPcDLv.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C01ouGdL.js.map → StepHybridIdentityPersonalInfoComponent-fYHPcDLv.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CLk9Jyxk.js → StepIDCheckLoop-BMBYj20c.js} +8 -8
- package/chunk/{StepIDCheckLoop-CLk9Jyxk.js.map → StepIDCheckLoop-BMBYj20c.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DjAK1Fh-.js → StepIDCheckLoop-DUA6P4bQ.js} +8 -8
- package/chunk/{StepIDCheckLoop-DjAK1Fh-.js.map → StepIDCheckLoop-DUA6P4bQ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DyiZfOfR.js → StepIDCheckLoopOnfido-Bo9HlY4S.js} +38 -38
- package/chunk/{StepIDCheckLoopOnfido-Ci3DMEnd.js.map → StepIDCheckLoopOnfido-Bo9HlY4S.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Ci3DMEnd.js → StepIDCheckLoopOnfido-D9jQ8swA.js} +37 -37
- package/chunk/{StepIDCheckLoopOnfido-DyiZfOfR.js.map → StepIDCheckLoopOnfido-D9jQ8swA.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-C69YSwG9.js → StepIDCheckLoopRegula-B1-v9x5u.js} +21 -21
- package/chunk/{StepIDCheckLoopRegula-C69YSwG9.js.map → StepIDCheckLoopRegula-B1-v9x5u.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DniEW16P.js → StepIDCheckLoopRegula-DAPHjsoR.js} +20 -20
- package/chunk/{StepIDCheckLoopRegula-DniEW16P.js.map → StepIDCheckLoopRegula-DAPHjsoR.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CNZ9wvGU.js → StepInactiveMilitaryPersonalInfoComponent-B6XPP6NJ.js} +32 -32
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-B9bW862f.js.map → StepInactiveMilitaryPersonalInfoComponent-B6XPP6NJ.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-B9bW862f.js → StepInactiveMilitaryPersonalInfoComponent-BohJ927P.js} +35 -35
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CNZ9wvGU.js.map → StepInactiveMilitaryPersonalInfoComponent-BohJ927P.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CHyXIhMv.js → StepLicensedProfessionalPersonalInfo-BSR6uyGW.js} +17 -17
- package/chunk/{StepLicensedProfessionalPersonalInfo-CHyXIhMv.js.map → StepLicensedProfessionalPersonalInfo-BSR6uyGW.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-XQOWzNsz.js → StepLicensedProfessionalPersonalInfo-DBaICckY.js} +17 -17
- package/chunk/{StepLicensedProfessionalPersonalInfo-XQOWzNsz.js.map → StepLicensedProfessionalPersonalInfo-DBaICckY.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-CD_cMJjv.js → StepLowIncomePersonalInfo-7PD6nVhq.js} +30 -30
- package/chunk/{StepLowIncomePersonalInfo-CD_cMJjv.js.map → StepLowIncomePersonalInfo-7PD6nVhq.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-jlT9OhZA.js → StepLowIncomePersonalInfo-B8_Bdz6J.js} +33 -33
- package/chunk/{StepLowIncomePersonalInfo-jlT9OhZA.js.map → StepLowIncomePersonalInfo-B8_Bdz6J.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-Bj9kSPLE.js → StepMedicalProfessionalPersonalInfo-CLlI9lA4.js} +21 -21
- package/chunk/{StepMedicalProfessionalPersonalInfo-Bj9kSPLE.js.map → StepMedicalProfessionalPersonalInfo-CLlI9lA4.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-Deh4luoR.js → StepMedicalProfessionalPersonalInfo-rF25m688.js} +25 -25
- package/chunk/{StepMedicalProfessionalPersonalInfo-Deh4luoR.js.map → StepMedicalProfessionalPersonalInfo-rF25m688.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DurOaOSx.js → StepMemberPersonalInfo-BXIRckt_.js} +16 -16
- package/chunk/{StepMemberPersonalInfo-DurOaOSx.js.map → StepMemberPersonalInfo-BXIRckt_.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo--cCazjIB.js → StepMemberPersonalInfo-GCOuR46b.js} +16 -16
- package/chunk/{StepMemberPersonalInfo--cCazjIB.js.map → StepMemberPersonalInfo-GCOuR46b.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CMJ4ovxs.js → StepMoverPersonalInfo-BC_CC0ii.js} +14 -14
- package/chunk/{StepMoverPersonalInfo-CMJ4ovxs.js.map → StepMoverPersonalInfo-BC_CC0ii.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-D2qevbJi.js → StepMoverPersonalInfo-Wg154T-c.js} +14 -14
- package/chunk/{StepMoverPersonalInfo-D2qevbJi.js.map → StepMoverPersonalInfo-Wg154T-c.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BecRKWaO.js → StepOverrideComponent-B7BcXOC-.js} +15 -15
- package/chunk/{StepOverrideComponent-BecRKWaO.js.map → StepOverrideComponent-B7BcXOC-.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DwlaveDy.js → StepOverrideComponent-zBjMTa3J.js} +15 -15
- package/chunk/{StepOverrideComponent-DwlaveDy.js.map → StepOverrideComponent-zBjMTa3J.js.map} +1 -1
- package/chunk/{StepSMSLoop-ByCoyo1S.js → StepSMSLoop-0HaSMjqk.js} +16 -16
- package/chunk/{StepSMSLoop-ByCoyo1S.js.map → StepSMSLoop-0HaSMjqk.js.map} +1 -1
- package/chunk/{StepSMSLoop-De0HoZbE.js → StepSMSLoop-BiOaasl3.js} +16 -16
- package/chunk/{StepSMSLoop-De0HoZbE.js.map → StepSMSLoop-BiOaasl3.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +4 -4
- package/chunk/StepSSO-BaFk7RFJ.js +4 -4
- package/chunk/{StepSocialSecurityNumber-DID4jEFW.js → StepSocialSecurityNumber-CGBBfuX7.js} +16 -16
- package/chunk/{StepSocialSecurityNumber-DID4jEFW.js.map → StepSocialSecurityNumber-CGBBfuX7.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-m4-htRLh.js → StepSocialSecurityNumber-CZ-yVv3v.js} +16 -16
- package/chunk/{StepSocialSecurityNumber-m4-htRLh.js.map → StepSocialSecurityNumber-CZ-yVv3v.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BVGd3PT4.js → StepStudentPersonalInfo-CxQWE7Yi.js} +50 -50
- package/chunk/{StepStudentPersonalInfo-6hiCoAmw.js.map → StepStudentPersonalInfo-CxQWE7Yi.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-6hiCoAmw.js → StepStudentPersonalInfo-DvuDscq7.js} +17 -17
- package/chunk/{StepStudentPersonalInfo-BVGd3PT4.js.map → StepStudentPersonalInfo-DvuDscq7.js.map} +1 -1
- package/chunk/{StepSuccess-Cmtfp16v.js → StepSuccess-Bf4WVIHj.js} +29 -33
- package/chunk/{StepSuccess-6gegJQH_.js.map → StepSuccess-Bf4WVIHj.js.map} +1 -1
- package/chunk/{StepSuccess-6gegJQH_.js → StepSuccess-GdSJcQra.js} +34 -30
- package/chunk/{StepSuccess-Cmtfp16v.js.map → StepSuccess-GdSJcQra.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BrnoFpf6.js → StepTeacherPersonalInfo-DaOyuvoK.js} +17 -17
- package/chunk/{StepTeacherPersonalInfo-BjGCHmV2.js.map → StepTeacherPersonalInfo-DaOyuvoK.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BjGCHmV2.js → StepTeacherPersonalInfo-PWOMlZ2Q.js} +17 -17
- package/chunk/{StepTeacherPersonalInfo-BrnoFpf6.js.map → StepTeacherPersonalInfo-PWOMlZ2Q.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +4 -4
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +4 -4
- package/chunk/{TeacherSchoolComponent-BVlWyfdu.js → TeacherSchoolComponent-BlPUYAZK.js} +8 -8
- package/chunk/{TeacherSchoolComponent-BVlWyfdu.js.map → TeacherSchoolComponent-BlPUYAZK.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-CvSlnFHE.js → TeacherSchoolComponent-CZOQYGHJ.js} +8 -8
- package/chunk/{TeacherSchoolComponent-CvSlnFHE.js.map → TeacherSchoolComponent-CZOQYGHJ.js.map} +1 -1
- package/chunk/TestingRouteOverrides-C6_6elEq.js +77 -0
- package/chunk/{TestingRouteOverrides-BQzBlUms.js.map → TestingRouteOverrides-C6_6elEq.js.map} +1 -1
- package/chunk/TestingRouteOverrides-DHL_cusu.js +81 -0
- package/chunk/{TestingRouteOverrides-Dw6GXQ6-.js.map → TestingRouteOverrides-DHL_cusu.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-C93qyL2c.js → VerificationApiClient-6KGDr9vD.js} +75 -75
- package/chunk/{VerificationApiClient-C93qyL2c.js.map → VerificationApiClient-6KGDr9vD.js.map} +1 -1
- package/chunk/{VerificationApiClient-CoNTH6u3.js → VerificationApiClient-DkMe8iY0.js} +137 -137
- package/chunk/{VerificationApiClient-CoNTH6u3.js.map → VerificationApiClient-DkMe8iY0.js.map} +1 -1
- package/chunk/VerificationApiUtils-CoCXhRjv.js +21 -0
- package/chunk/{VerificationApiUtils-Cho-8a4D.js.map → VerificationApiUtils-CoCXhRjv.js.map} +1 -1
- package/chunk/{VerificationApiUtils-Cmawe7Qf.js → VerificationApiUtils-jK7TFY_P.js} +7 -7
- package/chunk/{VerificationApiUtils-Cmawe7Qf.js.map → VerificationApiUtils-jK7TFY_P.js.map} +1 -1
- package/chunk/ar-CZrVPqvf.js +4 -4
- package/chunk/bg-Cj9u62RW.js +4 -4
- package/chunk/bn-IN-AX8JdjQ8.js +4 -4
- package/chunk/countryUtils-CAW7TO02.js +12 -0
- package/chunk/{countryUtils-B0gQRrDx.js.map → countryUtils-CAW7TO02.js.map} +1 -1
- package/chunk/{countryUtils-CLqT0spr.js → countryUtils-CV_Lr16_.js} +5 -5
- package/chunk/{countryUtils-CLqT0spr.js.map → countryUtils-CV_Lr16_.js.map} +1 -1
- package/chunk/cs-5rrzGv7_.js +4 -4
- package/chunk/da-DMDlBT-5.js +4 -4
- package/chunk/de-DG-q-l7o.js +4 -4
- package/chunk/{downshift.esm-CWtSsH-1.js → downshift.esm-BmU5C7C0.js} +122 -122
- package/chunk/{downshift.esm-CWtSsH-1.js.map → downshift.esm-BmU5C7C0.js.map} +1 -1
- package/chunk/{downshift.esm-DT9Kheqy.js → downshift.esm-Bt__j-Dt.js} +43 -43
- package/chunk/{downshift.esm-DT9Kheqy.js.map → downshift.esm-Bt__j-Dt.js.map} +1 -1
- package/chunk/el-yctEkMhE.js +4 -4
- package/chunk/{empties-DXsucFOV.js → empties-CuuBn0bi.js} +5 -5
- package/chunk/{empties-DXsucFOV.js.map → empties-CuuBn0bi.js.map} +1 -1
- package/chunk/{empties-GdeHHk2b.js → empties-NTFzwSRR.js} +49 -49
- package/chunk/{empties-GdeHHk2b.js.map → empties-NTFzwSRR.js.map} +1 -1
- package/chunk/en-GB-6LZCsn1D.js +4 -4
- package/chunk/es-BMeF1R04.js +4 -4
- package/chunk/es-ES-CsFb7QAU.js +4 -4
- package/chunk/et-CiZKWMRu.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-D9V3MCMh.js +4 -4
- package/chunk/fi-poKCN0AL.js +4 -4
- package/chunk/fr-BiSjb5hG.js +4 -4
- package/chunk/fr-CA-zBX3D7Nl.js +4 -4
- package/chunk/ga-jC99p6r7.js +4 -4
- package/chunk/hi-IN-C_1AZftT.js +4 -4
- package/chunk/hr-abbR52XG.js +4 -4
- package/chunk/hu-CeZoihsr.js +4 -4
- package/chunk/id-wFLT8G20.js +4 -4
- package/chunk/{intl-B461eGlU.js → intl-CuZpjbF2.js} +409 -401
- package/chunk/intl-CuZpjbF2.js.map +1 -0
- package/chunk/is-sc_8Dmxx.js +4 -4
- package/chunk/it-Mhw_31wt.js +4 -4
- package/chunk/iw-BfqjzsAq.js +4 -4
- package/chunk/ja-Bdvw5s91.js +4 -4
- package/chunk/{jsx-runtime-CeRrwqti.js → jsx-runtime-B29HBOo1.js} +5 -5
- package/chunk/{jsx-runtime-KEs0wOl5.js.map → jsx-runtime-B29HBOo1.js.map} +1 -1
- package/chunk/{jsx-runtime-KEs0wOl5.js → jsx-runtime-Br-ldzo0.js} +5 -5
- package/chunk/{jsx-runtime-CeRrwqti.js.map → jsx-runtime-Br-ldzo0.js.map} +1 -1
- package/chunk/kk-mHV9A9HS.js +4 -4
- package/chunk/ko-C7nyKdTs.js +4 -4
- package/chunk/lo-baNG1foB.js +4 -4
- package/chunk/lt-CNU2L7fK.js +4 -4
- package/chunk/lv-bP-HuAKS.js +4 -4
- package/chunk/{militaryStepHelpers-CT2x_HCE.js → militaryStepHelpers-BlzQcNHu.js} +5 -5
- package/chunk/{militaryStepHelpers-BeN98TAk.js.map → militaryStepHelpers-BlzQcNHu.js.map} +1 -1
- package/chunk/{militaryStepHelpers-BeN98TAk.js → militaryStepHelpers-COmBnCcw.js} +5 -5
- package/chunk/{militaryStepHelpers-CT2x_HCE.js.map → militaryStepHelpers-COmBnCcw.js.map} +1 -1
- package/chunk/{mocks-CmzyO_3E.js → mocks-BlLp3eOz.js} +9 -9
- package/chunk/{mocks-3VPL7XDa.js.map → mocks-BlLp3eOz.js.map} +1 -1
- package/chunk/{mocks-3VPL7XDa.js → mocks-CuPTVtpf.js} +9 -9
- package/chunk/{mocks-CmzyO_3E.js.map → mocks-CuPTVtpf.js.map} +1 -1
- package/chunk/ms-Bg8aDCAA.js +4 -4
- package/chunk/nl-BE-Ct8zP0W1.js +4 -4
- package/chunk/nl-CbfjSfKQ.js +4 -4
- package/chunk/no-DjDW2Ec_.js +4 -4
- package/chunk/{options-PkP3zQGm.js → options-BqxY1ri6.js} +394 -386
- package/chunk/{options-PkP3zQGm.js.map → options-BqxY1ri6.js.map} +1 -1
- package/chunk/pl--DnD-6qz.js +4 -4
- package/chunk/programThemeGetters-BKJAvlOG.js +165 -0
- package/chunk/{programThemeGetters-DSFEiKNU.js.map → programThemeGetters-BKJAvlOG.js.map} +1 -1
- package/chunk/{programThemeGetters-LYR56E0U.js → programThemeGetters-f9o96pYi.js} +18 -18
- package/chunk/{programThemeGetters-LYR56E0U.js.map → programThemeGetters-f9o96pYi.js.map} +1 -1
- package/chunk/pt-BR-B02CJDXT.js +4 -4
- package/chunk/pt-CcmRJnZb.js +4 -4
- package/chunk/{refs-xcOEsQO3.js → refs-B-c--SWS.js} +5 -5
- package/chunk/{refs-V7YziA0C.js.map → refs-B-c--SWS.js.map} +1 -1
- package/chunk/{refs-V7YziA0C.js → refs-CWwQlqJe.js} +5 -5
- package/chunk/{refs-xcOEsQO3.js.map → refs-CWwQlqJe.js.map} +1 -1
- package/chunk/ro-CLdi0jqR.js +4 -4
- package/chunk/ru-Z91NV1Cr.js +4 -4
- package/chunk/sk-B7rRmmv6.js +4 -4
- package/chunk/sl-DhAq6T_a.js +4 -4
- package/chunk/sr-DpP50d7v.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-QG7LEZNd.js +4 -4
- package/chunk/sw--WAxwRTW.js +4 -4
- package/chunk/ta-DRF7u30N.js +4 -4
- package/chunk/th-BoK35Z2N.js +4 -4
- package/chunk/tl-BDTwfyaC.js +4 -4
- package/chunk/tr-BoXGTv5p.js +4 -4
- package/chunk/uk-AXN3c9FX.js +4 -4
- package/chunk/ur-D5Nqe4mS.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-B_dk-p3K.js → useCollectFieldsEndpoint-CfzinFgL.js} +12 -12
- package/chunk/{useCollectFieldsEndpoint-B_dk-p3K.js.map → useCollectFieldsEndpoint-CfzinFgL.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-BhX-zGxg.js → useCollectFieldsEndpoint-CjjqitMW.js} +11 -11
- package/chunk/{useCollectFieldsEndpoint-BhX-zGxg.js.map → useCollectFieldsEndpoint-CjjqitMW.js.map} +1 -1
- package/chunk/{useMetrics-C13BbDWa.js → useMetrics-B3zSqEvx.js} +7 -11
- package/chunk/{useMetrics-ntewhX51.js.map → useMetrics-B3zSqEvx.js.map} +1 -1
- package/chunk/{useMetrics-ntewhX51.js → useMetrics-yFN3h5mC.js} +11 -7
- package/chunk/{useMetrics-C13BbDWa.js.map → useMetrics-yFN3h5mC.js.map} +1 -1
- package/chunk/{validators-CWveyjFm.js → validators-DqymSzki.js} +86 -86
- package/chunk/{validators-BIcHHTv2.js.map → validators-DqymSzki.js.map} +1 -1
- package/chunk/{validators-BIcHHTv2.js → validators-DtqLbhHK.js} +288 -288
- package/chunk/{validators-CWveyjFm.js.map → validators-DtqLbhHK.js.map} +1 -1
- package/chunk/vi-BE4aMeLo.js +4 -4
- package/chunk/zh-CUzsIz8M.js +4 -4
- package/chunk/zh-HK-BTCqwQOw.js +4 -4
- package/chunk/zu-ChHTiO3Y.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 +1535 -1509
- package/sheerid.js.map +1 -1
- package/chunk/CountryComponentWrapper-hRj-7R2w.js +0 -74
- package/chunk/FormFooterComponent-BdXYFgGt.js.map +0 -1
- package/chunk/FormFooterComponent-DtpRKuca.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-Ddiotbq5.js +0 -9
- package/chunk/TestingRouteOverrides-BQzBlUms.js +0 -77
- package/chunk/TestingRouteOverrides-Dw6GXQ6-.js +0 -81
- package/chunk/VerificationApiUtils-Cho-8a4D.js +0 -21
- package/chunk/countryUtils-B0gQRrDx.js +0 -12
- package/chunk/intl-B461eGlU.js.map +0 -1
- package/chunk/programThemeGetters-DSFEiKNU.js +0 -165
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-Be8j3CNn.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.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 MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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 { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\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 className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\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.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAdH;EACvB,IAAM,IAAY,EAAQ,SAAiB,CAAC,CAAC;EAE7C,AADA,EAAO,KAAK,6CAA6C,GACzD,EAAoB,WAClB,EAAsB,uBACtB,GACA,EAAoB,gCAAgC,EAAoB,oBAC1E;CACF,GAQa,GAIb,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":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.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 MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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 { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\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 className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\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.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAdH;EACvB,IAAM,IAAY,EAAQ,SAAiB,CAAC,CAAC;EAE7C,AADA,EAAO,KAAK,6CAA6C,GACzD,EAAoB,WAClB,EAAsB,uBACtB,GACA,EAAoB,gCAAgC,EAAoB,oBAC1E;CACF,GAQa,GAIb,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;EAC3B,WAAU;YAHZ,CAKE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACuB;GACrB,qBAAoB;EACrB,CAAA,GAED,iBAAA,GAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA;GACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GACA,IACC,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO;KACL,OAAO,EAAU;KACjB,OAAO,EAAe,GAAM,EAAU,QAAQ,CAAiC;IACjF;IACA,WAAW,CAAC,CAAC,EAAsB;IACnC,SAAQ;IACR,SAAS;IACT,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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,EACE,sBACA,GACA,CACF;IACF;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;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
|
|
@@ -4,34 +4,34 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.262.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785433429692
|
|
9
|
+
* BUILD_DATE: Thu Jul 30 2026 17:43:49 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 572623f7bc6b5a1e30face657957b5ba18222d0c
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-
|
|
14
|
-
import {
|
|
15
|
-
import { a as u } from "./refs-
|
|
12
|
+
import { Ct as e, Ft as t, Vt as n, p as r, s as i } from "./intl-CuZpjbF2.js";
|
|
13
|
+
import { a, c as o, n as s, t as c } from "./jsx-runtime-Br-ldzo0.js";
|
|
14
|
+
import { D as l } from "./FormFooterComponent-SukO1mHN.js";
|
|
15
|
+
import { a as u } from "./refs-B-c--SWS.js";
|
|
16
16
|
import { $ as d, B as f, F as p, G as m, W as h, et as g, n as _ } from "../_mysheerid-preview.js";
|
|
17
|
-
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-
|
|
18
|
-
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-
|
|
19
|
-
import { t as E } from "./BirthDateComponent-
|
|
20
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
21
|
-
import { t as O } from "./ExtraMessage-
|
|
22
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
23
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
24
|
-
import { n as j, r as M, t as N } from "./DischargeDateComponent-
|
|
25
|
-
import { t as P } from "./StatusComponent-
|
|
26
|
-
import { t as F } from "./militaryStepHelpers-
|
|
17
|
+
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-DiFfWhVe.js";
|
|
18
|
+
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-u4r9ghKQ.js";
|
|
19
|
+
import { t as E } from "./BirthDateComponent-Dl3W3nIx.js";
|
|
20
|
+
import { t as D } from "./CountryComponentWrapper-B8N-AOdz.js";
|
|
21
|
+
import { t as O } from "./ExtraMessage-BCJi-s7l.js";
|
|
22
|
+
import { t as k } from "./ChangeLocaleComponent-BaZ5GFUi.js";
|
|
23
|
+
import { t as A } from "./PersonalInfoStepWrapper-TGJP5U6C.js";
|
|
24
|
+
import { n as j, r as M, t as N } from "./DischargeDateComponent-Bsw6WaP6.js";
|
|
25
|
+
import { t as P } from "./StatusComponent-B64U2q3T.js";
|
|
26
|
+
import { t as F } from "./militaryStepHelpers-BlzQcNHu.js";
|
|
27
27
|
o();
|
|
28
28
|
var I = c(), L = ({ intl: a, verificationService: o }) => {
|
|
29
29
|
let c = o.viewModel, L = o.previousViewModel, { fieldValidationErrors: R } = o, z = o.verificationResponse, B = l(z), V = p(o, a), H = c.localeChoice.value, U = i(), W = (e, t) => {
|
|
30
30
|
o.updateViewModel(F(e, t, o, V));
|
|
31
31
|
};
|
|
32
|
-
return (c.status && L && L.status !== c.status || c.status && o.verificationResponse.currentStep ===
|
|
33
|
-
let
|
|
34
|
-
|
|
32
|
+
return (c.status && L && L.status !== c.status || c.status && o.verificationResponse.currentStep === t.collectMilitaryStatus) && (() => {
|
|
33
|
+
let e = r(c, () => {});
|
|
34
|
+
n.info("StepMilitaryStatusComponent submitting form"), o.submitStep(t.collectMilitaryStatus, e, o.previousVerificationResponse || o.verificationResponse);
|
|
35
35
|
})(), u(), /* @__PURE__ */ (0, I.jsxs)(A, {
|
|
36
36
|
verificationService: o,
|
|
37
37
|
step: z.currentStep,
|
|
@@ -49,7 +49,7 @@ var I = c(), L = ({ intl: a, verificationService: o }) => {
|
|
|
49
49
|
segmentId: "military",
|
|
50
50
|
value: {
|
|
51
51
|
value: c.status,
|
|
52
|
-
label: h(a, c.status,
|
|
52
|
+
label: h(a, c.status, e)
|
|
53
53
|
},
|
|
54
54
|
isErrored: !!R.status,
|
|
55
55
|
errorId: "invalidMilitaryStatus",
|
|
@@ -166,7 +166,7 @@ var I = c(), L = ({ intl: a, verificationService: o }) => {
|
|
|
166
166
|
isErrored: !!R.captchaToken
|
|
167
167
|
}),
|
|
168
168
|
/* @__PURE__ */ (0, I.jsx)(T, {
|
|
169
|
-
step:
|
|
169
|
+
step: t.collectActiveMilitaryPersonalInfo,
|
|
170
170
|
verificationService: o,
|
|
171
171
|
viewModel: c,
|
|
172
172
|
failedInstantMatch: B,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-BwPN1kDj.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.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 MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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 { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\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 className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\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.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;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JA,EAA8B,YAAY;MACxC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;IACF;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;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
|
|
1
|
+
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-Zy3dZ3wQ.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.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 MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\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 { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\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 className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\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.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAdH;EACvB,IAAM,IAAY,EAAQ,SAAiB,CAAC,CAAC;EAE7C,AADA,EAAO,KAAK,6CAA6C,GACzD,EAAoB,WAClB,EAAsB,uBACtB,G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 @@
|
|
|
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.262.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785433429692
|
|
9
|
+
* BUILD_DATE: Thu Jul 30 2026 17:43:49 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 572623f7bc6b5a1e30face657957b5ba18222d0c
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-
|
|
14
|
-
import {
|
|
12
|
+
import { Bt as e, Ft as t, Kt as n, s as r } from "./intl-CuZpjbF2.js";
|
|
13
|
+
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-Br-ldzo0.js";
|
|
14
|
+
import { D as c } from "./FormFooterComponent-SukO1mHN.js";
|
|
15
15
|
import { $ as l, A as u, B as d, G as f, J as p, R as m, n as h } from "../_mysheerid-preview.js";
|
|
16
|
-
import { t as g } from "./useCollectFieldsEndpoint-
|
|
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 "./City-
|
|
23
|
-
import { t as k } from "./AddressComponent-
|
|
24
|
-
import { t as A } from "./ExtraMessage-
|
|
25
|
-
import { t as j } from "./ChangeLocaleComponent-
|
|
26
|
-
import { t as M } from "./PersonalInfoStepWrapper-
|
|
16
|
+
import { t as g } from "./useCollectFieldsEndpoint-CjjqitMW.js";
|
|
17
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-DiFfWhVe.js";
|
|
18
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-u4r9ghKQ.js";
|
|
19
|
+
import { t as T } from "./BirthDateComponent-Dl3W3nIx.js";
|
|
20
|
+
import { t as E } from "./PostalCodeComponent-BA2FNJ8F.js";
|
|
21
|
+
import { t as D } from "./CountryComponentWrapper-B8N-AOdz.js";
|
|
22
|
+
import { t as O } from "./City-CCtrauPi.js";
|
|
23
|
+
import { t as k } from "./AddressComponent-Bz4YL1zB.js";
|
|
24
|
+
import { t as A } from "./ExtraMessage-BCJi-s7l.js";
|
|
25
|
+
import { t as j } from "./ChangeLocaleComponent-BaZ5GFUi.js";
|
|
26
|
+
import { t as M } from "./PersonalInfoStepWrapper-TGJP5U6C.js";
|
|
27
27
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
28
28
|
var N = /* @__PURE__ */ n(a(), 1), P = s(), F = i(({ verificationService: n, intl: i }) => {
|
|
29
29
|
let a = n.viewModel, { fieldValidationErrors: s } = n, F = n.verificationResponse, I = c(F), L = e(() => a.countryChoice.value, m(u(n.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || n.programTheme.isSmsNotifierConfigured || n.programTheme.smsLoopEnabled, B = L !== "US" || n.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-DFTAD36c.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\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 StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW;CAE3B,AACE,CAAC,EAAsB,eACvB,EAAqB,YACrB,EAAqB,SAAS,SAAS,oBAAoB,KAE3D,EAAoB,4BAA4B;EAC9C,GAAG;EACH,aAAa;CACf,CAAC;CAGH,IAAM,KAAsB,GAAqC,MAAe;EAC9E,IAAM,IAAsC,EAAsB,GAAW,GAAK,CAAK;EACvF,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,uBAAoB,EAAyB;EACnD,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;EACA;CACF,CAAC;CAOD,OALA,EAAM,gBAAgB;EAEpB,EAAqC,eAAe,EAAU,aAAa,CAAmB;CAChG,GAAG,CAAC,EAAU,OAAO,CAAC,GAGpB,iBAAA,GA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AD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmB,YAAY;MAC7B,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
1
|
+
{"version":3,"file":"StepAgePersonalInfo-B_fhJKD6.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\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 StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6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AD;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,CAE0E"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.262.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785433425763
|
|
5
|
+
* BUILD_DATE: Thu Jul 30 2026 17:43:45 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 572623f7bc6b5a1e30face657957b5ba18222d0c
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-
|
|
10
|
-
import {
|
|
8
|
+
import { Kt as e, Lt as t, lt as n, n as r } from "./options-BqxY1ri6.js";
|
|
9
|
+
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-B29HBOo1.js";
|
|
10
|
+
import { C as c } from "./FormFooterComponent-Clo562J7.js";
|
|
11
11
|
import { K as l, V as u, Y as d, et as f, j as p, r as m, z as h } from "../sheerid.js";
|
|
12
|
-
import { t as g } from "./useCollectFieldsEndpoint-
|
|
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 "./City-
|
|
19
|
-
import { t as k } from "./AddressComponent-
|
|
20
|
-
import { t as A } from "./ExtraMessage-
|
|
21
|
-
import { t as j } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as M } from "./PersonalInfoStepWrapper-
|
|
12
|
+
import { t as g } from "./useCollectFieldsEndpoint-CfzinFgL.js";
|
|
13
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-BTUP8GAT.js";
|
|
14
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-C9ilhi9-.js";
|
|
15
|
+
import { t as T } from "./BirthDateComponent-D1JJgBl2.js";
|
|
16
|
+
import { t as E } from "./PostalCodeComponent-Ds-f1Aso.js";
|
|
17
|
+
import { t as D } from "./CountryComponentWrapper-DeOMczUR.js";
|
|
18
|
+
import { t as O } from "./City-DOi7PTZI.js";
|
|
19
|
+
import { t as k } from "./AddressComponent-BIrgOqZP.js";
|
|
20
|
+
import { t as A } from "./ExtraMessage-CEUNDVpi.js";
|
|
21
|
+
import { t as j } from "./ChangeLocaleComponent-BWWd7KAP.js";
|
|
22
|
+
import { t as M } from "./PersonalInfoStepWrapper-D8eq_Wtt.js";
|
|
23
23
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
24
24
|
var N = /* @__PURE__ */ e(a(), 1), P = s(), F = i(({ verificationService: e, intl: i }) => {
|
|
25
25
|
let a = e.viewModel, { fieldValidationErrors: s } = e, F = e.verificationResponse, I = c(F), L = n(() => a.countryChoice.value, h(p(e.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled, B = L !== "US" || e.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-DrJ_uzuo.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\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 StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW;CAE3B,AACE,CAAC,EAAsB,eACvB,EAAqB,YACrB,EAAqB,SAAS,SAAS,oBAAoB,KAE3D,EAAoB,4BAA4B;EAC9C,GAAG;EACH,aAAa;CACf,CAAC;CAGH,IAAM,KAAsB,GAAqC,MAAe;EAC9E,IAAM,IAAsC,EAAsB,GAAW,GAAK,CAAK;EACvF,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,uBAAoB,EAAy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;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,EAAmB,YAAY;MAC7B,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
1
|
+
{"version":3,"file":"StepAgePersonalInfo-DPNbQWwP.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\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 StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"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 updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"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 updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW;CAE3B,AACE,CAAC,EAAsB,eACvB,EAAqB,YACrB,EAAqB,SAAS,SAAS,oBAAoB,KAE3D,EAAoB,4BAA4B;EAC9C,GAAG;EACH,aAAa;CACf,CAAC;CAGH,IAAM,KAAsB,GAAqC,MAAe;EAC9E,IAAM,IAAsC,EAAsB,GAAW,GAAK,CAAK;EACvF,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,uBAAoB,EAAyB;EACnD,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;EACA;CACF,CAAC;CAOD,OALA,EAAM,gBAAgB;EAEpB,EAAqC,eAAe,EAAU,aAAa,CAAmB;CAChG,GAAG,CAAC,EAAU,OAAO,CAAC,GAGpB,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyC;IAAqB,qBAAoB;GAAO,CAAA;GAEzF,iBAAA,GAAA,EAA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sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.262.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785433425763
|
|
5
|
+
* BUILD_DATE: Thu Jul 30 2026 17:43:45 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 572623f7bc6b5a1e30face657957b5ba18222d0c
|
|
7
7
|
*/
|
|
8
|
-
import { t as e } from "./jsx-runtime-
|
|
8
|
+
import { t as e } from "./jsx-runtime-B29HBOo1.js";
|
|
9
9
|
//#region src/components/StepIDCheckLoop/StepCard/StepCard.tsx
|
|
10
10
|
var t = e(), n = ({ icon: e, title: n, subtitle: r = void 0, isHighlighted: i = !1 }) => /* @__PURE__ */ (0, t.jsxs)("div", {
|
|
11
11
|
className: `sid-id-check-step-card ${i && "sid-id-check-step-card--highlighted"}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCard-
|
|
1
|
+
{"version":3,"file":"StepCard-B-nYcoAX.js","names":[],"sources":["../../src/components/StepIDCheckLoop/StepCard/StepCard.tsx"],"sourcesContent":["import type React from \"react\";\n\ninterface StepCardComponentProps {\n icon: React.ReactNode;\n title: React.ReactNode;\n subtitle?: React.ReactNode;\n isHighlighted?: boolean;\n}\n\nconst StepCard = ({\n icon,\n title,\n subtitle = undefined,\n isHighlighted = false,\n}: StepCardComponentProps) => (\n <div\n className={`sid-id-check-step-card ${isHighlighted && \"sid-id-check-step-card--highlighted\"}`}\n >\n <div className=\"sid-id-check-step-card__icon\">{icon}</div>\n\n <div className=\"sid-id-check-step-card__description\">\n <div className=\"sid-id-check-step-card__title\">{title}</div>\n {subtitle && (\n <div className=\"sid-id-check-step-card__subtitle sid-l-space-top-sm\">{subtitle}</div>\n )}\n </div>\n </div>\n);\n\nexport const StepCardComponent = StepCard;\n"],"mappings":";;aA6Ba,KApBK,EAChB,SACA,UACA,cAAW,KAAA,GACX,mBAAgB,SAEhB,iBAAA,GAAA,EAAA,MAAC,OAAD;CACE,WAAW,0BAA0B,KAAiB;WADxD,CAGE,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YAAgC;CAAU,CAAA,GAEzD,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf,CACE,iBAAA,GAAA,EAAA,KAAC,OAAD;GAAK,WAAU;aAAiC;EAAW,CAAA,GAC1D,KACC,iBAAA,GAAA,EAAA,KAAC,OAAD;GAAK,WAAU;aAAuD;EAAc,CAAA,CAEnF;GACF"}
|
|
@@ -4,12 +4,12 @@
|
|
|
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.262.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785433429692
|
|
9
|
+
* BUILD_DATE: Thu Jul 30 2026 17:43:49 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 572623f7bc6b5a1e30face657957b5ba18222d0c
|
|
11
11
|
*/
|
|
12
|
-
import { t as e } from "./jsx-runtime-
|
|
12
|
+
import { t as e } from "./jsx-runtime-Br-ldzo0.js";
|
|
13
13
|
//#region src/components/StepIDCheckLoop/StepCard/StepCard.tsx
|
|
14
14
|
var t = e(), n = ({ icon: e, title: n, subtitle: r = void 0, isHighlighted: i = !1 }) => /* @__PURE__ */ (0, t.jsxs)("div", {
|
|
15
15
|
className: `sid-id-check-step-card ${i && "sid-id-check-step-card--highlighted"}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCard-
|
|
1
|
+
{"version":3,"file":"StepCard-DXyV0Wj4.js","names":[],"sources":["../../src/components/StepIDCheckLoop/StepCard/StepCard.tsx"],"sourcesContent":["import type React from \"react\";\n\ninterface StepCardComponentProps {\n icon: React.ReactNode;\n title: React.ReactNode;\n subtitle?: React.ReactNode;\n isHighlighted?: boolean;\n}\n\nconst StepCard = ({\n icon,\n title,\n subtitle = undefined,\n isHighlighted = false,\n}: StepCardComponentProps) => (\n <div\n className={`sid-id-check-step-card ${isHighlighted && \"sid-id-check-step-card--highlighted\"}`}\n >\n <div className=\"sid-id-check-step-card__icon\">{icon}</div>\n\n <div className=\"sid-id-check-step-card__description\">\n <div className=\"sid-id-check-step-card__title\">{title}</div>\n {subtitle && (\n <div className=\"sid-id-check-step-card__subtitle sid-l-space-top-sm\">{subtitle}</div>\n )}\n </div>\n </div>\n);\n\nexport const StepCardComponent = StepCard;\n"],"mappings":";;aA6Ba,KApBK,EAChB,SACA,UACA,cAAW,KAAA,GACX,mBAAgB,SAEhB,iBAAA,GAAA,EAAA,MAAC,OAAD;CACE,WAAW,0BAA0B,KAAiB;WADxD,CAGE,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YAAgC;CAAU,CAAA,GAEzD,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf,CACE,iBAAA,GAAA,EAAA,KAAC,OAAD;GAAK,WAAU;aAAiC;EAAW,CAAA,GAC1D,KACC,iBAAA,GAAA,EAAA,KAAC,OAAD;GAAK,WAAU;aAAuD;EAAc,CAAA,CAEnF;GACF"}
|
|
@@ -4,16 +4,16 @@
|
|
|
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.262.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785433429692
|
|
9
|
+
* BUILD_DATE: Thu Jul 30 2026 17:43:49 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 572623f7bc6b5a1e30face657957b5ba18222d0c
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { n, t as r } from "./jsx-runtime-
|
|
14
|
-
import {
|
|
12
|
+
import { Ft as e, p as t } from "./intl-CuZpjbF2.js";
|
|
13
|
+
import { n, t as r } from "./jsx-runtime-Br-ldzo0.js";
|
|
14
|
+
import { D as i, t as a } from "./FormFooterComponent-SukO1mHN.js";
|
|
15
15
|
import { $ as o, G as s, n as c } from "../_mysheerid-preview.js";
|
|
16
|
-
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-
|
|
16
|
+
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-u4r9ghKQ.js";
|
|
17
17
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
|
18
18
|
var d = r(), f = ({ verificationService: r }) => {
|
|
19
19
|
let f = r.viewModel, { fieldValidationErrors: p } = r, m = r.verificationResponse, h = i(m), g = (e, n) => {
|