@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":"StepMedicalProfessionalPersonalInfo-Bj9kSPLE.js","names":[],"sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MedicalProfessionalPersonalInfoViewModel,\n type MedicalProfessionalPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\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 StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"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 updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"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 <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;4CA8DM,IAAkE;CACtE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN,GAEM,KAA0B,MAAoB;CAClD,IAAM,IACJ,EAA6B,MAAY;CAC3C,OAAO;EACL,UAAU,mCAAmC,EAAkB;EAC/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AAO,EAAE;KAC9C,gBAAe;IAChB,CAAA;GAEJ,CAAA;GAEF,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmC,YAAY;MAC7C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-CLlI9lA4.js","names":[],"sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MedicalProfessionalPersonalInfoViewModel,\n type MedicalProfessionalPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\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 StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"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 updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"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 <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalPro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
+
* 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, n, wt 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 { F as l, G as u, K as d, V as f, Y as p, et as m, r as h, tt as g } from "../sheerid.js";
|
|
12
|
-
import { t as _ } from "./useCollectFieldsEndpoint-
|
|
13
|
-
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-
|
|
14
|
-
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-
|
|
15
|
-
import { t as E } from "./BirthDateComponent-
|
|
16
|
-
import { t as D } from "./PostalCodeComponent-
|
|
17
|
-
import { t as O } from "./CountryComponentWrapper-
|
|
18
|
-
import { t as k } from "./ExtraMessage-
|
|
19
|
-
import { t as A } from "./ChangeLocaleComponent-
|
|
20
|
-
import { t as j } from "./PersonalInfoStepWrapper-
|
|
21
|
-
import { t as M } from "./StatusComponent-
|
|
22
|
-
import { t as N } from "./MedicalProfessionalOrganizationComponent-
|
|
23
|
-
import { t as P } from "./MemberIdComponent-
|
|
12
|
+
import { t as _ } from "./useCollectFieldsEndpoint-CfzinFgL.js";
|
|
13
|
+
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-BTUP8GAT.js";
|
|
14
|
+
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-C9ilhi9-.js";
|
|
15
|
+
import { t as E } from "./BirthDateComponent-D1JJgBl2.js";
|
|
16
|
+
import { t as D } from "./PostalCodeComponent-Ds-f1Aso.js";
|
|
17
|
+
import { t as O } from "./CountryComponentWrapper-DeOMczUR.js";
|
|
18
|
+
import { t as k } from "./ExtraMessage-CEUNDVpi.js";
|
|
19
|
+
import { t as A } from "./ChangeLocaleComponent-BWWd7KAP.js";
|
|
20
|
+
import { t as j } from "./PersonalInfoStepWrapper-D8eq_Wtt.js";
|
|
21
|
+
import { t as M } from "./StatusComponent-C6yLT_6w.js";
|
|
22
|
+
import { t as N } from "./MedicalProfessionalOrganizationComponent-CgoQuZA8.js";
|
|
23
|
+
import { t as P } from "./MemberIdComponent-BehRbst0.js";
|
|
24
24
|
//#region src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx
|
|
25
|
-
var F = /* @__PURE__ */
|
|
25
|
+
var F = /* @__PURE__ */ e(a(), 1), I = s(), L = {
|
|
26
26
|
AT: "gbrNummer",
|
|
27
27
|
ES: "numeroColegiado",
|
|
28
28
|
DK: "autorisationsId",
|
|
@@ -35,8 +35,8 @@ var F = /* @__PURE__ */ t(a(), 1), I = s(), L = {
|
|
|
35
35
|
labelKey: `step.collectMedicalPersonalInfo.${t}Label`,
|
|
36
36
|
explanationKey: `step.collectMedicalPersonalInfo.${t}Explanation`
|
|
37
37
|
};
|
|
38
|
-
}, z = i(({ intl:
|
|
39
|
-
let a = i.viewModel, { fieldValidationErrors: s } = i, L = i.verificationResponse, z = c(L), B =
|
|
38
|
+
}, z = i(({ intl: e, verificationService: i }) => {
|
|
39
|
+
let a = i.viewModel, { fieldValidationErrors: s } = i, L = i.verificationResponse, z = c(L), B = n(), V = a.localeChoice.value, H = (e, t) => {
|
|
40
40
|
let n = p(a, e, t);
|
|
41
41
|
i.updateViewModel(n);
|
|
42
42
|
}, { isFieldOptional: U } = _({
|
|
@@ -64,10 +64,10 @@ var F = /* @__PURE__ */ t(a(), 1), I = s(), L = {
|
|
|
64
64
|
segmentId: "medical",
|
|
65
65
|
value: {
|
|
66
66
|
value: a.status,
|
|
67
|
-
label: u(
|
|
67
|
+
label: u(e, a.status, r)
|
|
68
68
|
},
|
|
69
69
|
isErrored: !!s.status,
|
|
70
|
-
options: l(
|
|
70
|
+
options: l(e, L.availableStatuses),
|
|
71
71
|
disabled: f("status")?.disabled,
|
|
72
72
|
onChange: (e) => {
|
|
73
73
|
H("status", e ? e.value : ""), m("status", e ? e.value : "", i);
|
|
@@ -186,7 +186,7 @@ var F = /* @__PURE__ */ t(a(), 1), I = s(), L = {
|
|
|
186
186
|
isErrored: !!s.captchaToken
|
|
187
187
|
}),
|
|
188
188
|
/* @__PURE__ */ (0, I.jsx)(T, {
|
|
189
|
-
step:
|
|
189
|
+
step: t.collectMedicalProfessionalPersonalInfo,
|
|
190
190
|
verificationService: i,
|
|
191
191
|
viewModel: a,
|
|
192
192
|
failedInstantMatch: z,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-Deh4luoR.js","names":[],"sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MedicalProfessionalPersonalInfoViewModel,\n type MedicalProfessionalPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\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 StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"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 updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"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 <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;4CA8DM,IAAkE;CACtE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN,GAEM,KAA0B,MAAoB;CAClD,IAAM,IACJ,E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iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAI,EAAuB,EAAU,OAAO,EAAE;KAC9C,gBAAe;IAChB,CAAA;GAEJ,CAAA;GAEF,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmC,YAAY;MAC7C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-rF25m688.js","names":[],"sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MedicalProfessionalPersonalInfoViewModel,\n type MedicalProfessionalPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getAvailableMedicalStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\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 StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"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 updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"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 <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;4CA8DM,IAAkE;CACtE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN,GAEM,KAA0B,MAAoB;CAClD,IAAM,IACJ,EAA6B,MAAY;CAC3C,OAAO;EACL,UAAU,mCAAmC,EAAkB;EAC/D,gBAAgB,mCAAmC,EAAkB;CACvE;AACF,GA0Oa,IAA+C,GAxOR,EAClD,SACA,6BACuD;CACvD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,KACJ,GACA,MACG;EACH,IAAM,IAAY,EAAsB,GAAW,GAAK,CAAK;EAC7D,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,uBAAoB,EAAyB;EACnD,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GACK,IAAuB,EAAgB,UAAU;CAkBvD,OAhBA,EAAM,gBAAgB;EAGpB,IAAM,KAAY,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QAC5E,MAAO,MAAO,UACjB;EACA,AAAI,IACF,EAAoB,gBAAgB,EAAE,wBAAwB,EAAS,GAAG,EAAE,SAAS,GAAK,CAAC,IAE3F,EAAoB,gBAClB,EAAE,wBAAwB,CAAC,GAAG,GAAU,UAAU,EAAE,GACpD,EAAE,SAAS,GAAK,CAClB;CAEJ,GAAG,CAAC,CAAoB,CAAC,GAGvB,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA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_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 { c as i, n as a, t as o } from "./jsx-runtime-
|
|
10
|
-
import {
|
|
8
|
+
import { Kt as e, Lt as t, c as n, n as r } from "./options-BqxY1ri6.js";
|
|
9
|
+
import { c as i, n as a, t as o } from "./jsx-runtime-B29HBOo1.js";
|
|
10
|
+
import { C as s } from "./FormFooterComponent-Clo562J7.js";
|
|
11
11
|
import { K as c, V as l, et as u, r as d, tt as f } from "../sheerid.js";
|
|
12
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-
|
|
13
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-
|
|
14
|
-
import { t as x } from "./BirthDateComponent-
|
|
15
|
-
import { t as S } from "./CountryComponentWrapper-
|
|
16
|
-
import { t as C } from "./ExtraMessage-
|
|
17
|
-
import { t as w } from "./ChangeLocaleComponent-
|
|
18
|
-
import { t as T } from "./PersonalInfoStepWrapper-
|
|
19
|
-
import { t as E } from "./MemberIdComponent-
|
|
20
|
-
import { t as D } from "./MembershipOrganizationComponent-
|
|
12
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-BTUP8GAT.js";
|
|
13
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-C9ilhi9-.js";
|
|
14
|
+
import { t as x } from "./BirthDateComponent-D1JJgBl2.js";
|
|
15
|
+
import { t as S } from "./CountryComponentWrapper-DeOMczUR.js";
|
|
16
|
+
import { t as C } from "./ExtraMessage-CEUNDVpi.js";
|
|
17
|
+
import { t as w } from "./ChangeLocaleComponent-BWWd7KAP.js";
|
|
18
|
+
import { t as T } from "./PersonalInfoStepWrapper-D8eq_Wtt.js";
|
|
19
|
+
import { t as E } from "./MemberIdComponent-BehRbst0.js";
|
|
20
|
+
import { t as D } from "./MembershipOrganizationComponent-D00T5bq6.js";
|
|
21
21
|
//#region src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx
|
|
22
22
|
var O = /* @__PURE__ */ e(i(), 1), k = o(), A = ({ verificationService: e }) => {
|
|
23
23
|
let i = e.viewModel, { fieldValidationErrors: o } = e, A = e.verificationResponse, j = s(A), M = r(), N = l("memberId")?.requireIfOptional, P = i.localeChoice.value, F = (t, r) => {
|
package/chunk/{StepMemberPersonalInfo-DurOaOSx.js.map → StepMemberPersonalInfo-BXIRckt_.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepMemberPersonalInfo-DurOaOSx.js","names":[],"sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type Organization,\n type MemberPersonalInfoViewModel,\n type MemberPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\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 updateMemberViewModel(\"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 <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"mappings":";;;;;;;;;;;;;;4CAwNa,KA/KmB,EAAE,6BAAgE;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GACrB,IAAqB,EAAwB,UAAU,GAAG,mBAE1D,IAAS,EAAU,aAAa,OAEhC,KAAyB,GAAwC,MAAe;EACpF,IAAM,IAAyC,EAC7C,IACC,MAAuC;GACtC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAgBA,OAdA,EAAM,gBAAgB;EACpB,IAAM,KAAY,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QAC5E,MAAO,MAAO,UACjB;EACA,AAAK,IAMH,EAAoB,gBAAgB,EAAE,wBAAwB,EAAS,GAAG,EAAE,SAAS,GAAK,CAAC,IAL3F,EAAoB,gBAClB,EAAE,wBAAwB,CAAC,GAAG,GAAU,UAAU,EAAE,GACpD,EAAE,SAAS,GAAK,CAClB;CAIJ,GAAG,CAAC,CAAkB,CAAC,GAGrB,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC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AA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepMemberPersonalInfo-BXIRckt_.js","names":[],"sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type Organization,\n type MemberPersonalInfoViewModel,\n type MemberPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\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 updateMemberViewModel(\"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 <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfo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AQ,GAC1C,EAAqC,YAAY,GAAU,CAAmB;IAChF;GACD,CAAA;GAEA,EAAoB,aAAa,2BAClC,EAAoB,aAAa,iBAC/B,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,YAAY,CAAC,CAAC,EAAoB,aAAa;IAC/C,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAsB,eAAe,CAAQ,GAC7C,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAsB,YAAY;MAChC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
@@ -4,24 +4,24 @@
|
|
|
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 { c as i, n as a, t as o } from "./jsx-runtime-
|
|
14
|
-
import {
|
|
12
|
+
import { Ft as e, Kt as t, p as n, s as r } from "./intl-CuZpjbF2.js";
|
|
13
|
+
import { c as i, n as a, t as o } from "./jsx-runtime-Br-ldzo0.js";
|
|
14
|
+
import { D as s } from "./FormFooterComponent-SukO1mHN.js";
|
|
15
15
|
import { $ as c, B as l, G as u, et as d, n as f } from "../_mysheerid-preview.js";
|
|
16
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-
|
|
17
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-
|
|
18
|
-
import { t as x } from "./BirthDateComponent-
|
|
19
|
-
import { t as S } from "./CountryComponentWrapper-
|
|
20
|
-
import { t as C } from "./ExtraMessage-
|
|
21
|
-
import { t as w } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as T } from "./PersonalInfoStepWrapper-
|
|
23
|
-
import { t as E } from "./MemberIdComponent-
|
|
24
|
-
import { t as D } from "./MembershipOrganizationComponent-
|
|
16
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-DiFfWhVe.js";
|
|
17
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-u4r9ghKQ.js";
|
|
18
|
+
import { t as x } from "./BirthDateComponent-Dl3W3nIx.js";
|
|
19
|
+
import { t as S } from "./CountryComponentWrapper-B8N-AOdz.js";
|
|
20
|
+
import { t as C } from "./ExtraMessage-BCJi-s7l.js";
|
|
21
|
+
import { t as w } from "./ChangeLocaleComponent-BaZ5GFUi.js";
|
|
22
|
+
import { t as T } from "./PersonalInfoStepWrapper-TGJP5U6C.js";
|
|
23
|
+
import { t as E } from "./MemberIdComponent-Bwx5Gc1F.js";
|
|
24
|
+
import { t as D } from "./MembershipOrganizationComponent-DasXCN5t.js";
|
|
25
25
|
//#region src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx
|
|
26
26
|
var O = /* @__PURE__ */ t(i(), 1), k = o(), A = ({ verificationService: t }) => {
|
|
27
27
|
let i = t.viewModel, { fieldValidationErrors: o } = t, A = t.verificationResponse, j = s(A), M = r(), N = l("memberId")?.requireIfOptional, P = i.localeChoice.value, F = (e, r) => {
|
package/chunk/{StepMemberPersonalInfo--cCazjIB.js.map → StepMemberPersonalInfo-GCOuR46b.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepMemberPersonalInfo--cCazjIB.js","names":[],"sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type Organization,\n type MemberPersonalInfoViewModel,\n type MemberPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\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 updateMemberViewModel(\"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 <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"mappings":";;;;;;;;;;;;;;4CAwNa,KA/KmB,EAAE,6BAAgE;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GACrB,IAAqB,EAAwB,UAAU,GAAG,mBAE1D,IAAS,EAAU,aAAa,OAEhC,KAAyB,GAAwC,MAAe;EACpF,IAAM,IAAyC,EAC7C,IACC,MAAuC;GACtC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAgBA,OAdA,EAAM,gBAAgB;EACpB,IAAM,KAAY,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QAC5E,MAAO,MAAO,UACjB;EACA,AAAK,IAMH,EAAoB,gBAAgB,EAAE,wBAAwB,EAAS,GAAG,EAAE,SAAS,GAAK,CAAC,IAL3F,EAAoB,gBAClB,EAAE,wBAAwB,CAAC,GAAG,GAAU,UAAU,EAAE,GACpD,EAAE,SAAS,GAAK,CAClB;CAIJ,GAAG,CAAC,CAAkB,CAAC,GAGrB,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAA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,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepMemberPersonalInfo-GCOuR46b.js","names":[],"sources":["../../src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type Organization,\n type MemberPersonalInfoViewModel,\n type MemberPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MembershipOrganizationComponent } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { MarketConsentWrapperComponent } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepMemberPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMemberPersonalInfo = ({ verificationService }: StepMemberPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MemberPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MemberPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n const isMemberIdRequired = getFieldConfigByFieldId(\"memberId\")?.requireIfOptional;\n\n const locale = viewModel.localeChoice.value;\n\n const updateMemberViewModel = (key: keyof MemberPersonalInfoViewModel, value: any) => {\n const nextState: MemberPersonalInfoViewModel = produce(\n viewModel,\n (draft: MemberPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (!isMemberIdRequired) {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"memberId\"] },\n { partial: true },\n );\n } else {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n }\n }, [isMemberIdRequired]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"member-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <MembershipOrganizationComponent\n value={(verificationService.viewModel as MemberPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"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 updateMemberViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateMemberViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired={getFieldConfigByFieldId(\"birthDate\")?.requireIfOptional}\n onChange={(newValue) => {\n updateMemberViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={isMemberIdRequired}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMemberViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\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 updateMemberViewModel(\"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 <MarketConsentWrapperComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMemberViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMemberPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Membership Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;\n"],"mappings":";;;;;;;;;;;;;;4CAwNa,KA/KmB,EAAE,6BAAgE;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GACrB,IAAqB,EAAwB,UAAU,GAAG,mBAE1D,IAAS,EAAU,aAAa,OAEhC,KAAyB,GAAwC,MAAe;EACpF,IAAM,IAAyC,EAC7C,IACC,MAAuC;GACtC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAgBA,OAdA,EAAM,gBAAgB;EACpB,IAAM,KAAY,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QAC5E,MAAO,MAAO,UACjB;EACA,AAAK,IAMH,EAAoB,gBAAgB,EAAE,wBAAwB,EAAS,GAAG,EAAE,SAAS,GAAK,CAAC,IAL3F,EAAoB,gBAClB,EAAE,wBAAwB,CAAC,GAAG,GAAU,UAAU,EAAE,GACpD,EAAE,SAAS,GAAK,CAClB;CAIJ,GAAG,CAAC,CAAkB,CAAC,GAGrB,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,OAAQ,EAAoB,UAA0C;IACjD;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,UAAU,EAAwB,cAAc,GAAG;IACnD,WAAW,MAAyB;KAElC,A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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 { Ft as e, Kt as t, p 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, B as u, G as d, n as f } from "../_mysheerid-preview.js";
|
|
16
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-
|
|
17
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-
|
|
18
|
-
import { t as x } from "./PostalCodeComponent-
|
|
19
|
-
import { t as S } from "./AddressComponent-
|
|
20
|
-
import { t as C } from "./ExtraMessage-
|
|
21
|
-
import { t as w } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as T } from "./PersonalInfoStepWrapper-
|
|
16
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-DiFfWhVe.js";
|
|
17
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-u4r9ghKQ.js";
|
|
18
|
+
import { t as x } from "./PostalCodeComponent-BA2FNJ8F.js";
|
|
19
|
+
import { t as S } from "./AddressComponent-Bz4YL1zB.js";
|
|
20
|
+
import { t as C } from "./ExtraMessage-BCJi-s7l.js";
|
|
21
|
+
import { t as w } from "./ChangeLocaleComponent-BaZ5GFUi.js";
|
|
22
|
+
import { t as T } from "./PersonalInfoStepWrapper-TGJP5U6C.js";
|
|
23
23
|
//#region src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.tsx
|
|
24
24
|
var E = /* @__PURE__ */ t(a(), 1), D = s(), O = i(({ verificationService: t }) => {
|
|
25
25
|
let i = t.viewModel, { fieldValidationErrors: a } = t, s = t.verificationResponse, O = c(s), k = r(), A = (e, r) => {
|
package/chunk/{StepMoverPersonalInfo-CMJ4ovxs.js.map → StepMoverPersonalInfo-BC_CC0ii.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepMoverPersonalInfo-CMJ4ovxs.js","names":[],"sources":["../../src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.tsx"],"sourcesContent":["import { useEffect } from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n type VerificationService,\n type MoverPersonalInfoViewModel,\n type MoverPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\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 { AddressComponent as Address } from \"../FormFields/Address/AddressComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 StepMoverPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMoverPersonalInfo = ({ verificationService }: StepMoverPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MoverPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MoverPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const updateMoverViewModel = (key: keyof MoverPersonalInfoViewModel, value: any) => {\n const nextState: MoverPersonalInfoViewModel = produce(\n viewModel,\n (draft: MoverPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // We do not want a drop down list, just apply available statuses to the viewModel\n useEffect(() => {\n updateMoverViewModel(\"statuses\", verificationResponse.availableStatuses);\n }, []);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"mover-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMoverViewModel(\"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 updateMoverViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Address\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateMoverViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"streetAddress\" defaultMessage=\"Street Address\" />}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n\n <PostalCode\n value={viewModel.postalCode}\n isErrored={!!fieldValidationErrors.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n onChange={(newValue) => {\n updateMoverViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMoverViewModel(\"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 updateMoverViewModel(\"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 updateMoverViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMoverPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Recent Mover Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMoverPersonalInfoComponent = injectIntl(StepMoverPersonalInfo);\n"],"mappings":";;;;;;;;;;;;4CA8La,IAAiC,GAzJf,EAAE,6BAA+D;CAC9F,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,KAAwB,GAAuC,MAAe;EAClF,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/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AAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE8E"}
|
|
1
|
+
{"version":3,"file":"StepMoverPersonalInfo-BC_CC0ii.js","names":[],"sources":["../../src/components/StepMoverPersonalInfo/StepMoverPersonalInfoComponent.tsx"],"sourcesContent":["import { useEffect } from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n type VerificationService,\n type MoverPersonalInfoViewModel,\n type MoverPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\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 { AddressComponent as Address } from \"../FormFields/Address/AddressComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 StepMoverPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nconst StepMoverPersonalInfo = ({ verificationService }: StepMoverPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MoverPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MoverPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const updateMoverViewModel = (key: keyof MoverPersonalInfoViewModel, value: any) => {\n const nextState: MoverPersonalInfoViewModel = produce(\n viewModel,\n (draft: MoverPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // We do not want a drop down list, just apply available statuses to the viewModel\n useEffect(() => {\n updateMoverViewModel(\"statuses\", verificationResponse.availableStatuses);\n }, []);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"mover-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMoverViewModel(\"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 updateMoverViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Address\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateMoverViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"streetAddress\" defaultMessage=\"Street Address\" />}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n\n <PostalCode\n value={viewModel.postalCode}\n isErrored={!!fieldValidationErrors.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n onChange={(newValue) => {\n updateMoverViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMoverViewModel(\"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 updateMoverViewModel(\"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 updateMoverViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMoverPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Recent Mover Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMoverPersonalInfoComponent = injectIntl(StepMoverPersonalInfo);\n"],"mappings":";;;;;;;;;;;;4CA8La,IAAiC,GAzJf,EAAE,6BAA+D;CAC9F,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,KAAwB,GAAuC,MAAe;EAClF,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAOA,QAJA,GAAA,EAAA,iBAAgB;EACd,EAAqB,YAAY,EAAqB,iBAAiB;CACzE,GAAG,CAAC,CAAC,GAGH,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB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