@sheerid/jslib 2.293.0 → 2.294.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 +38 -38
- package/chunk/{AddressComponent-CglwEa12.js → AddressComponent-C2dPxhhj.js} +6 -6
- package/chunk/{AddressComponent-CglwEa12.js.map → AddressComponent-C2dPxhhj.js.map} +1 -1
- package/chunk/{AddressComponent-CmJnOMbH.js → AddressComponent-PHZhb2Mw.js} +6 -6
- package/chunk/{AddressComponent-CmJnOMbH.js.map → AddressComponent-PHZhb2Mw.js.map} +1 -1
- package/chunk/AnnouncingHeader-C6QNdmy8.js +4 -4
- package/chunk/AnnouncingHeader-DJd16MZV.js +4 -4
- package/chunk/{BirthDateComponent-C8TH6zhC.js → BirthDateComponent-BpdF0g0b.js} +6 -6
- package/chunk/{BirthDateComponent-C8TH6zhC.js.map → BirthDateComponent-BpdF0g0b.js.map} +1 -1
- package/chunk/{BirthDateComponent-DoxUuygs.js → BirthDateComponent-DCZXOXmm.js} +6 -6
- package/chunk/{BirthDateComponent-DoxUuygs.js.map → BirthDateComponent-DCZXOXmm.js.map} +1 -1
- package/chunk/{CaptchaComponent-1QN8Diwc.js → CaptchaComponent-B0Uxhb51.js} +9 -9
- package/chunk/{CaptchaComponent-1QN8Diwc.js.map → CaptchaComponent-B0Uxhb51.js.map} +1 -1
- package/chunk/{CaptchaComponent-CvmkQ_5D.js → CaptchaComponent-FWZqpEIU.js} +9 -9
- package/chunk/{CaptchaComponent-CvmkQ_5D.js.map → CaptchaComponent-FWZqpEIU.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DuUnRYy4.js → ChangeLocaleComponent-B8ZVvEiq.js} +7 -7
- package/chunk/{ChangeLocaleComponent-DuUnRYy4.js.map → ChangeLocaleComponent-B8ZVvEiq.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-ZNY5d0nd.js → ChangeLocaleComponent-CGCnqwzm.js} +7 -7
- package/chunk/{ChangeLocaleComponent-ZNY5d0nd.js.map → ChangeLocaleComponent-CGCnqwzm.js.map} +1 -1
- package/chunk/{City-BAUe7lNj.js → City-BPckEV2l.js} +6 -6
- package/chunk/{City-BAUe7lNj.js.map → City-BPckEV2l.js.map} +1 -1
- package/chunk/{City-BBwhhp0r.js → City-uCEYG4v0.js} +6 -6
- package/chunk/{City-BBwhhp0r.js.map → City-uCEYG4v0.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DFRljRjg.js → CollegeNameComponent-BqSQ4YOf.js} +8 -8
- package/chunk/{CollegeNameComponent-Ba-ldOs2.js.map → CollegeNameComponent-BqSQ4YOf.js.map} +1 -1
- package/chunk/{CollegeNameComponent-Ba-ldOs2.js → CollegeNameComponent-dB7K5QgA.js} +8 -8
- package/chunk/{CollegeNameComponent-DFRljRjg.js.map → CollegeNameComponent-dB7K5QgA.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-cvPop_DN.js +4 -4
- package/chunk/CopyToClipboardComponent-nKhkSaum.js +4 -4
- package/chunk/{CountryComponentWrapper-S7tjrj1n.js → CountryComponentWrapper-BRfRmGYM.js} +12 -12
- package/chunk/{CountryComponentWrapper-BriofJKE.js.map → CountryComponentWrapper-BRfRmGYM.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BriofJKE.js → CountryComponentWrapper-BoVcyVxO.js} +12 -12
- package/chunk/{CountryComponentWrapper-S7tjrj1n.js.map → CountryComponentWrapper-BoVcyVxO.js.map} +1 -1
- package/chunk/{DischargeDateComponent-Cbnod0KG.js → DischargeDateComponent-BQ459K7a.js} +9 -9
- package/chunk/{DischargeDateComponent-Cbnod0KG.js.map → DischargeDateComponent-BQ459K7a.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CeEZ1mSx.js → DischargeDateComponent-CZSf2ikm.js} +9 -9
- package/chunk/{DischargeDateComponent-CeEZ1mSx.js.map → DischargeDateComponent-CZSf2ikm.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-CYZRa321.js → DriverLicenseNumberComponent-Bh4Qolmi.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-CYZRa321.js.map → DriverLicenseNumberComponent-Bh4Qolmi.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-HsWgzFE0.js → DriverLicenseNumberComponent-DnOPwPeC.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-HsWgzFE0.js.map → DriverLicenseNumberComponent-DnOPwPeC.js.map} +1 -1
- package/chunk/{EmailLoopPending-DUGwU1oQ.js → EmailLoopPending-BCYLcoGT.js} +7 -7
- package/chunk/{EmailLoopPending-Cu0KY8xa.js.map → EmailLoopPending-BCYLcoGT.js.map} +1 -1
- package/chunk/{EmailLoopPending-Cu0KY8xa.js → EmailLoopPending-D5G2UXKG.js} +7 -7
- package/chunk/{EmailLoopPending-DUGwU1oQ.js.map → EmailLoopPending-D5G2UXKG.js.map} +1 -1
- package/chunk/{ExtraMessage-D4cO9DeJ.js → ExtraMessage-Bqf9TUts.js} +5 -5
- package/chunk/{ExtraMessage-B5w5QVkn.js.map → ExtraMessage-Bqf9TUts.js.map} +1 -1
- package/chunk/{ExtraMessage-B5w5QVkn.js → ExtraMessage-DNXSpqvW.js} +5 -5
- package/chunk/{ExtraMessage-D4cO9DeJ.js.map → ExtraMessage-DNXSpqvW.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-JwJJEaoP.js → FirstResponderOrganizationComponent-CfT8Biwu.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-JwJJEaoP.js.map → FirstResponderOrganizationComponent-CfT8Biwu.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-asulZFz_.js → FirstResponderOrganizationComponent-x0WgcQzG.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-asulZFz_.js.map → FirstResponderOrganizationComponent-x0WgcQzG.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DAUHwCaX.js → FormFieldInputSelect-BfmQAxFP.js} +5 -5
- package/chunk/{FormFieldInputSelect-DAUHwCaX.js.map → FormFieldInputSelect-BfmQAxFP.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-IPo7-GWc.js → FormFieldInputSelect-Cd-wGEHG.js} +5 -5
- package/chunk/{FormFieldInputSelect-IPo7-GWc.js.map → FormFieldInputSelect-Cd-wGEHG.js.map} +1 -1
- package/chunk/FormFieldLayout-Bx2JoyDR.js +4 -4
- package/chunk/FormFieldLayout-_lQMBCmX.js +4 -4
- package/chunk/FormFieldText-5WjD4GNf.js +4 -4
- package/chunk/FormFieldText-BQLBciux.js +4 -4
- package/chunk/{FormFieldTypeahead-7ok1bRAH.js → FormFieldTypeahead-DVaRbEQG.js} +8 -8
- package/chunk/{FormFieldTypeahead-7ok1bRAH.js.map → FormFieldTypeahead-DVaRbEQG.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BXVKDH6h.js → FormFieldTypeahead-GpVICIeC.js} +8 -8
- package/chunk/{FormFieldTypeahead-BXVKDH6h.js.map → FormFieldTypeahead-GpVICIeC.js.map} +1 -1
- package/chunk/{FormFooterComponent-ChbgdbyW.js → FormFooterComponent-Bzz3Bu-9.js} +8 -8
- package/chunk/{FormFooterComponent-ChbgdbyW.js.map → FormFooterComponent-Bzz3Bu-9.js.map} +1 -1
- package/chunk/{FormFooterComponent-DcKXPYSW.js → FormFooterComponent-Ca6EG7qf.js} +8 -8
- package/chunk/{FormFooterComponent-DcKXPYSW.js.map → FormFooterComponent-Ca6EG7qf.js.map} +1 -1
- package/chunk/{FormSelectChoice-EuY3K8M7.js → FormSelectChoice-BwYh7sj9.js} +18 -10
- package/chunk/FormSelectChoice-BwYh7sj9.js.map +1 -0
- package/chunk/{FormSelectChoice-DiD_fv-5.js → FormSelectChoice-RBx6V3b2.js} +18 -10
- package/chunk/FormSelectChoice-RBx6V3b2.js.map +1 -0
- package/chunk/InputText-DBIXmm_R.js +4 -4
- package/chunk/InputText-DqQkxoCM.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-CI7AACK0.js → LicensedProfessionalOrganizationComponent-8uaSLE_5.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-CI7AACK0.js.map → LicensedProfessionalOrganizationComponent-8uaSLE_5.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Do3FCGFw.js → LicensedProfessionalOrganizationComponent-BPWGao1m.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-Do3FCGFw.js.map → LicensedProfessionalOrganizationComponent-BPWGao1m.js.map} +1 -1
- package/chunk/{LogoComponent-CLrHpRvB.js → LogoComponent-Ca7bTxZE.js} +5 -5
- package/chunk/{LogoComponent-CLrHpRvB.js.map → LogoComponent-Ca7bTxZE.js.map} +1 -1
- package/chunk/{LogoComponent-CNeqwZ63.js → LogoComponent-D0I1mPJw.js} +5 -5
- package/chunk/{LogoComponent-CNeqwZ63.js.map → LogoComponent-D0I1mPJw.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-BH4cG0Wa.js → LowIncomeOrganizationComponent-l4L0ov2d.js} +9 -9
- package/chunk/{LowIncomeOrganizationComponent-BH4cG0Wa.js.map → LowIncomeOrganizationComponent-l4L0ov2d.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Cuxg935n.js → LowIncomeOrganizationComponent-l_HWVHzW.js} +9 -9
- package/chunk/{LowIncomeOrganizationComponent-Cuxg935n.js.map → LowIncomeOrganizationComponent-l_HWVHzW.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-9b_QGhPj.js → MedicalProfessionalOrganizationComponent-BEV89rdD.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-9b_QGhPj.js.map → MedicalProfessionalOrganizationComponent-BEV89rdD.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CpGvKtH0.js → MedicalProfessionalOrganizationComponent-DrzA5GBL.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-CpGvKtH0.js.map → MedicalProfessionalOrganizationComponent-DrzA5GBL.js.map} +1 -1
- package/chunk/{MemberIdComponent-4yDOiEzp.js → MemberIdComponent-C2G6z0us.js} +6 -6
- package/chunk/{MemberIdComponent-4yDOiEzp.js.map → MemberIdComponent-C2G6z0us.js.map} +1 -1
- package/chunk/{MemberIdComponent-QFKekDAA.js → MemberIdComponent-_RwOhcAg.js} +6 -6
- package/chunk/{MemberIdComponent-QFKekDAA.js.map → MemberIdComponent-_RwOhcAg.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DgErRDKk.js → MembershipOrganizationComponent-DaBngl5Q.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-DJD1Hlal.js.map → MembershipOrganizationComponent-DaBngl5Q.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DJD1Hlal.js → MembershipOrganizationComponent-oMfREuGs.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-DgErRDKk.js.map → MembershipOrganizationComponent-oMfREuGs.js.map} +1 -1
- package/chunk/{Message-9U_vSk1g.js → Message-Boy9Uyy0.js} +5 -5
- package/chunk/{Message-9U_vSk1g.js.map → Message-Boy9Uyy0.js.map} +1 -1
- package/chunk/{Message-CEUCVZmr.js → Message-DvgmOZft.js} +5 -5
- package/chunk/{Message-CEUCVZmr.js.map → Message-DvgmOZft.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-CD-vfZ2W.js → PersonalInfoStepSubmitButton-B_QubSRz.js} +6 -6
- package/chunk/{PersonalInfoStepSubmitButton-CD-vfZ2W.js.map → PersonalInfoStepSubmitButton-B_QubSRz.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-CrB88-09.js → PersonalInfoStepSubmitButton-CASQFLdJ.js} +6 -6
- package/chunk/{PersonalInfoStepSubmitButton-CrB88-09.js.map → PersonalInfoStepSubmitButton-CASQFLdJ.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-Cx3INM03.js → PersonalInfoStepWrapper-BzdMB6RD.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-Cx3INM03.js.map → PersonalInfoStepWrapper-BzdMB6RD.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DNrpE3DD.js → PersonalInfoStepWrapper-D-oNkXVC.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-DNrpE3DD.js.map → PersonalInfoStepWrapper-D-oNkXVC.js.map} +1 -1
- package/chunk/{PostalCodeComponent-CYS0aDbk.js → PostalCodeComponent-5NKJ6zig.js} +6 -6
- package/chunk/{PostalCodeComponent-BzOER20j.js.map → PostalCodeComponent-5NKJ6zig.js.map} +1 -1
- package/chunk/{PostalCodeComponent-BzOER20j.js → PostalCodeComponent-DTdFZJea.js} +6 -6
- package/chunk/{PostalCodeComponent-CYS0aDbk.js.map → PostalCodeComponent-DTdFZJea.js.map} +1 -1
- package/chunk/{SSN-BkOZOVrg.js → SSN-BeveTYV1.js} +6 -6
- package/chunk/{SSN-BkOZOVrg.js.map → SSN-BeveTYV1.js.map} +1 -1
- package/chunk/{SSN-Rh7SI5Xl.js → SSN-npx9fciR.js} +6 -6
- package/chunk/{SSN-Rh7SI5Xl.js.map → SSN-npx9fciR.js.map} +1 -1
- package/chunk/{StateSelectComponent-ucSIYnVj.js → StateSelectComponent-BljDbJ_7.js} +7 -7
- package/chunk/{StateSelectComponent-DjUk8jIA.js.map → StateSelectComponent-BljDbJ_7.js.map} +1 -1
- package/chunk/{StateSelectComponent-DjUk8jIA.js → StateSelectComponent-D7vXl3OH.js} +7 -7
- package/chunk/{StateSelectComponent-ucSIYnVj.js.map → StateSelectComponent-D7vXl3OH.js.map} +1 -1
- package/chunk/{StatusComponent-BYtArAqN.js → StatusComponent-5GNGDBSi.js} +7 -7
- package/chunk/{StatusComponent-BNW03jct.js.map → StatusComponent-5GNGDBSi.js.map} +1 -1
- package/chunk/{StatusComponent-BNW03jct.js → StatusComponent-BGqgQrBr.js} +7 -7
- package/chunk/{StatusComponent-BYtArAqN.js.map → StatusComponent-BGqgQrBr.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CdXCL0bo.js → StepAgePersonalInfo-BJ6WrgSZ.js} +29 -29
- package/chunk/{StepAgePersonalInfo-CMOwbuli.js.map → StepAgePersonalInfo-BJ6WrgSZ.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CMOwbuli.js → StepAgePersonalInfo-CbTV2OHL.js} +29 -29
- package/chunk/{StepAgePersonalInfo-CdXCL0bo.js.map → StepAgePersonalInfo-CbTV2OHL.js.map} +1 -1
- package/chunk/StepCard-CQGeXH7Z.js +4 -4
- package/chunk/StepCard-DD1BU5jb.js +4 -4
- package/chunk/{StepCollectIdentifier-oyMO5Tr4.js → StepCollectIdentifier-BXNQfg0X.js} +9 -9
- package/chunk/{StepCollectIdentifier-Ct_XcHhJ.js.map → StepCollectIdentifier-BXNQfg0X.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-Ct_XcHhJ.js → StepCollectIdentifier-BiMRaTtt.js} +9 -9
- package/chunk/{StepCollectIdentifier-oyMO5Tr4.js.map → StepCollectIdentifier-BiMRaTtt.js.map} +1 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-Bwc_N_YU.js +243 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-Bwc_N_YU.js.map +1 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-DYUc7Vl8.js +247 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-DYUc7Vl8.js.map +1 -0
- package/chunk/StepCollectPersonalInfo-DT-XZGrm.js +370 -0
- package/chunk/StepCollectPersonalInfo-DT-XZGrm.js.map +1 -0
- package/chunk/StepCollectPersonalInfo-GMuXh62L.js +366 -0
- package/chunk/StepCollectPersonalInfo-GMuXh62L.js.map +1 -0
- package/chunk/{StepCompleteAuthentication-CVdnwB3N.js → StepCompleteAuthentication-5kcqz-By.js} +8 -8
- package/chunk/{StepCompleteAuthentication-CVdnwB3N.js.map → StepCompleteAuthentication-5kcqz-By.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-Eu1CDlzS.js → StepCompleteAuthentication-xpON0-yc.js} +8 -8
- package/chunk/{StepCompleteAuthentication-Eu1CDlzS.js.map → StepCompleteAuthentication-xpON0-yc.js.map} +1 -1
- package/chunk/{StepConsolation-BZolR-w3.js → StepConsolation-BdSXDPgO.js} +6 -6
- package/chunk/{StepConsolation-BNAG8sM3.js.map → StepConsolation-BdSXDPgO.js.map} +1 -1
- package/chunk/{StepConsolation-BNAG8sM3.js → StepConsolation-D9oaYgDU.js} +6 -6
- package/chunk/{StepConsolation-BZolR-w3.js.map → StepConsolation-D9oaYgDU.js.map} +1 -1
- package/chunk/{StepDocUpload-Dsz_90mk.js → StepDocUpload-DlVEC1sX.js} +7 -7
- package/chunk/{StepDocUpload-Dsz_90mk.js.map → StepDocUpload-DlVEC1sX.js.map} +1 -1
- package/chunk/{StepDocUpload-DS-p1qDq.js → StepDocUpload-WORC4p6O.js} +7 -7
- package/chunk/{StepDocUpload-DS-p1qDq.js.map → StepDocUpload-WORC4p6O.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-iwcy30h2.js → StepDriverLicensePersonalInfoComponent-C5upCQ_b.js} +21 -21
- package/chunk/{StepDriverLicensePersonalInfoComponent-iwcy30h2.js.map → StepDriverLicensePersonalInfoComponent-C5upCQ_b.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BayW1tyu.js → StepDriverLicensePersonalInfoComponent-Cfqv4ArX.js} +21 -21
- package/chunk/{StepDriverLicensePersonalInfoComponent-BayW1tyu.js.map → StepDriverLicensePersonalInfoComponent-Cfqv4ArX.js.map} +1 -1
- package/chunk/{StepEmailLoop-0vsbR1ux.js → StepEmailLoop-DDJM3zA3.js} +10 -10
- package/chunk/{StepEmailLoop-0vsbR1ux.js.map → StepEmailLoop-DDJM3zA3.js.map} +1 -1
- package/chunk/{StepEmailLoop-CeAFjc1t.js → StepEmailLoop-OYpg9_fk.js} +10 -10
- package/chunk/{StepEmailLoop-CeAFjc1t.js.map → StepEmailLoop-OYpg9_fk.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-D95RJwC0.js → StepEmploymentPersonalInfo-BtzyaOOY.js} +44 -44
- package/chunk/{StepEmploymentPersonalInfo-BaHSVAYt.js.map → StepEmploymentPersonalInfo-BtzyaOOY.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BaHSVAYt.js → StepEmploymentPersonalInfo-STBW2SrN.js} +44 -44
- package/chunk/{StepEmploymentPersonalInfo-D95RJwC0.js.map → StepEmploymentPersonalInfo-STBW2SrN.js.map} +1 -1
- package/chunk/StepFirstResponderPersonalInfo-BVQ7ivyQ.js +185 -0
- package/chunk/StepFirstResponderPersonalInfo-BVQ7ivyQ.js.map +1 -0
- package/chunk/StepFirstResponderPersonalInfo-BVZWOft8.js +181 -0
- package/chunk/StepFirstResponderPersonalInfo-BVZWOft8.js.map +1 -0
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CMdeQa9t.js → StepGeneralIdentityPersonalInfoComponent-0egbo84U.js} +27 -27
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C4eqogf7.js.map → StepGeneralIdentityPersonalInfoComponent-0egbo84U.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C4eqogf7.js → StepGeneralIdentityPersonalInfoComponent-B-v5whS7.js} +27 -27
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CMdeQa9t.js.map → StepGeneralIdentityPersonalInfoComponent-B-v5whS7.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dc-biEsG.js → StepHybridIdentityPersonalInfoComponent-DVNnEPFz.js} +29 -29
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C49vKRTa.js.map → StepHybridIdentityPersonalInfoComponent-DVNnEPFz.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C49vKRTa.js → StepHybridIdentityPersonalInfoComponent-FkG0Eyf1.js} +29 -29
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dc-biEsG.js.map → StepHybridIdentityPersonalInfoComponent-FkG0Eyf1.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DXe69ybE.js → StepIDCheckLoop-DUJFqwvk.js} +5 -5
- package/chunk/{StepIDCheckLoop-DAgSyKQ_.js.map → StepIDCheckLoop-DUJFqwvk.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DAgSyKQ_.js → StepIDCheckLoop-Mrxs3-7G.js} +5 -5
- package/chunk/{StepIDCheckLoop-DXe69ybE.js.map → StepIDCheckLoop-Mrxs3-7G.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DE6RRtgy.js → StepIDCheckLoopOnfido-CWyxxeuD.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-DE6RRtgy.js.map → StepIDCheckLoopOnfido-CWyxxeuD.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BDm03j1s.js → StepIDCheckLoopOnfido-znxJ5SR-.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-BDm03j1s.js.map → StepIDCheckLoopOnfido-znxJ5SR-.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-WHchxuwG.js → StepIDCheckLoopRegula-DBUX-ItR.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-BFCNXKdD.js.map → StepIDCheckLoopRegula-DBUX-ItR.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BFCNXKdD.js → StepIDCheckLoopRegula-Dv0-RlwY.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-WHchxuwG.js.map → StepIDCheckLoopRegula-Dv0-RlwY.js.map} +1 -1
- package/chunk/StepLicensedProfessionalPersonalInfo-3Z8Bx-fV.js +179 -0
- package/chunk/StepLicensedProfessionalPersonalInfo-3Z8Bx-fV.js.map +1 -0
- package/chunk/StepLicensedProfessionalPersonalInfo-DTfq7vRu.js +175 -0
- package/chunk/StepLicensedProfessionalPersonalInfo-DTfq7vRu.js.map +1 -0
- package/chunk/StepLowIncomePersonalInfo-CfeMIf_F.js +236 -0
- package/chunk/StepLowIncomePersonalInfo-CfeMIf_F.js.map +1 -0
- package/chunk/StepLowIncomePersonalInfo-DqKgsikM.js +232 -0
- package/chunk/StepLowIncomePersonalInfo-DqKgsikM.js.map +1 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-BABdgYG1.js +207 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-BABdgYG1.js.map +1 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-D6Qa3OQa.js +211 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-D6Qa3OQa.js.map +1 -0
- package/chunk/{StepMemberPersonalInfo-C2lAKxWz.js → StepMemberPersonalInfo-C-28cVMR.js} +24 -24
- package/chunk/{StepMemberPersonalInfo-BBNRpD59.js.map → StepMemberPersonalInfo-C-28cVMR.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BBNRpD59.js → StepMemberPersonalInfo-DD62pLNq.js} +24 -24
- package/chunk/{StepMemberPersonalInfo-C2lAKxWz.js.map → StepMemberPersonalInfo-DD62pLNq.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-PaACiqXz.js → StepMoverPersonalInfo-BLVGo4WA.js} +21 -21
- package/chunk/{StepMoverPersonalInfo-Bi3P8xzM.js.map → StepMoverPersonalInfo-BLVGo4WA.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-Bi3P8xzM.js → StepMoverPersonalInfo-RgHhWyvt.js} +21 -21
- package/chunk/{StepMoverPersonalInfo-PaACiqXz.js.map → StepMoverPersonalInfo-RgHhWyvt.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Dxi0sX5t.js → StepOverrideComponent-BBwMFjKP.js} +7 -7
- package/chunk/{StepOverrideComponent-B_6eLxRe.js.map → StepOverrideComponent-BBwMFjKP.js.map} +1 -1
- package/chunk/{StepOverrideComponent-B_6eLxRe.js → StepOverrideComponent-C0gkuJTU.js} +7 -7
- package/chunk/{StepOverrideComponent-Dxi0sX5t.js.map → StepOverrideComponent-C0gkuJTU.js.map} +1 -1
- package/chunk/{StepSMSLoop-CQrkgelG.js → StepSMSLoop-CClLLG5y.js} +5 -5
- package/chunk/{StepSMSLoop-CQrkgelG.js.map → StepSMSLoop-CClLLG5y.js.map} +1 -1
- package/chunk/{StepSMSLoop-R68G4Wba.js → StepSMSLoop-CLyXQmON.js} +5 -5
- package/chunk/{StepSMSLoop-R68G4Wba.js.map → StepSMSLoop-CLyXQmON.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-Cc_aNnOy.js → StepSocialSecurityNumber-C7WCFboD.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-Bw74kdv1.js.map → StepSocialSecurityNumber-C7WCFboD.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-Bw74kdv1.js → StepSocialSecurityNumber-DORTk9EQ.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-Cc_aNnOy.js.map → StepSocialSecurityNumber-DORTk9EQ.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-uhK23XMF.js → StepStudentPersonalInfo-Bi5S_ykn.js} +69 -74
- package/chunk/StepStudentPersonalInfo-Bi5S_ykn.js.map +1 -0
- package/chunk/{StepStudentPersonalInfo-DuFw8izC.js → StepStudentPersonalInfo-DoQ_K574.js} +69 -74
- package/chunk/StepStudentPersonalInfo-DoQ_K574.js.map +1 -0
- package/chunk/{StepSuccess-CKt_BMjW.js → StepSuccess-CJuSM1ZK.js} +7 -7
- package/chunk/{StepSuccess-CKt_BMjW.js.map → StepSuccess-CJuSM1ZK.js.map} +1 -1
- package/chunk/{StepSuccess-B9ZroXYj.js → StepSuccess-C_qFXDR2.js} +7 -7
- package/chunk/{StepSuccess-B9ZroXYj.js.map → StepSuccess-C_qFXDR2.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BsiSorRf.js → StepTeacherPersonalInfo-BMJi4dXH.js} +25 -25
- package/chunk/{StepTeacherPersonalInfo-BsiSorRf.js.map → StepTeacherPersonalInfo-BMJi4dXH.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CUHteKfs.js → StepTeacherPersonalInfo-DtIq1FKy.js} +25 -25
- package/chunk/{StepTeacherPersonalInfo-CUHteKfs.js.map → StepTeacherPersonalInfo-DtIq1FKy.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-BKgXQlin.js → TeacherSchoolComponent-INc6t5nM.js} +8 -8
- package/chunk/{TeacherSchoolComponent-BKgXQlin.js.map → TeacherSchoolComponent-INc6t5nM.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-B__-He9W.js → TeacherSchoolComponent-P9eOoEkC.js} +8 -8
- package/chunk/{TeacherSchoolComponent-B__-He9W.js.map → TeacherSchoolComponent-P9eOoEkC.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BbCY31VT.js +4 -4
- package/chunk/TestingRouteOverrides-DEu_4afz.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-CB5rauS5.js +4 -4
- package/chunk/countryUtils-2MKDd__w.js +12 -0
- package/chunk/{countryUtils-CFTIxZHq.js.map → countryUtils-2MKDd__w.js.map} +1 -1
- package/chunk/{countryUtils-CyHB2r3w.js → countryUtils-CRwSXJAo.js} +5 -5
- package/chunk/{countryUtils-CyHB2r3w.js.map → countryUtils-CRwSXJAo.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +4 -4
- package/chunk/da-DwrVoxto.js +4 -4
- package/chunk/de-IWGZLhgY.js +4 -4
- package/chunk/{downshift.esm-DeT5EUQU.js → downshift.esm-BkznXSJa.js} +5 -5
- package/chunk/{downshift.esm-CtkqL7IP.js.map → downshift.esm-BkznXSJa.js.map} +1 -1
- package/chunk/{downshift.esm-CtkqL7IP.js → downshift.esm-CAOak1io.js} +5 -5
- package/chunk/{downshift.esm-DeT5EUQU.js.map → downshift.esm-CAOak1io.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-B034wwK_.js +4 -4
- package/chunk/empties-lrCPA-9V.js +4 -4
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/hooks-Bu8Px0Ok.js +4 -4
- package/chunk/hooks-DSoorQS3.js +4 -4
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/intl-DYOqmiaL.js +4 -4
- package/chunk/is-CvmKEON9.js +4 -4
- package/chunk/it-CnmveGgC.js +4 -4
- package/chunk/iw-DFUYHkxF.js +4 -4
- package/chunk/ja-CjVb2tWW.js +4 -4
- package/chunk/jsx-runtime-338NbZob.js +4 -4
- package/chunk/jsx-runtime-B6t5B3Mb.js +4 -4
- package/chunk/kk-Dvz4nK6K.js +4 -4
- package/chunk/ko-DzOqBMGC.js +4 -4
- package/chunk/lo-C2WPq55d.js +4 -4
- package/chunk/lt-BSDYvjTF.js +4 -4
- package/chunk/lv-CefDPT-M.js +4 -4
- package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
- package/chunk/mocks-BQNtP7qW.js +4 -4
- package/chunk/mocks-DC7WJf5c.js +4 -4
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/options-DsRV5fwh.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-CVbMoRhw.js → programThemeGetters-VBBOPS4w.js} +5 -5
- package/chunk/{programThemeGetters-CVbMoRhw.js.map → programThemeGetters-VBBOPS4w.js.map} +1 -1
- package/chunk/{programThemeGetters-DXLr_Q4_.js → programThemeGetters-cPK2r02v.js} +5 -5
- package/chunk/{programThemeGetters-DXLr_Q4_.js.map → programThemeGetters-cPK2r02v.js.map} +1 -1
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/{stepComponentHelpers-CvC0Nxhe.js → stepComponentHelpers-J67LZsd0.js} +16 -22
- package/chunk/stepComponentHelpers-J67LZsd0.js.map +1 -0
- package/chunk/{stepComponentHelpers-HOnoMkIF.js → stepComponentHelpers-hkvp2qUS.js} +16 -22
- package/chunk/stepComponentHelpers-hkvp2qUS.js.map +1 -0
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-DlHC1_Qi.js → useCollectFieldsEndpoint-0xjc0i8b.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-DlHC1_Qi.js.map → useCollectFieldsEndpoint-0xjc0i8b.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-VZhNaKRq.js → useCollectFieldsEndpoint-B2_olsVn.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-VZhNaKRq.js.map → useCollectFieldsEndpoint-B2_olsVn.js.map} +1 -1
- package/chunk/useMetrics-C3RIqUJI.js +4 -4
- package/chunk/useMetrics-dwc-Zjl_.js +4 -4
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +38 -38
- package/chunk/FormSelectChoice-DiD_fv-5.js.map +0 -1
- package/chunk/FormSelectChoice-EuY3K8M7.js.map +0 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CCCVPk8-.js +0 -249
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CCCVPk8-.js.map +0 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-JWgkagFS.js +0 -245
- package/chunk/StepCollectMilitaryPersonalInfoComponent-JWgkagFS.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-BBSf_U2H.js +0 -372
- package/chunk/StepCollectPersonalInfo-BBSf_U2H.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-C4YFAM36.js +0 -368
- package/chunk/StepCollectPersonalInfo-C4YFAM36.js.map +0 -1
- package/chunk/StepFirstResponderPersonalInfo-Cti4_9R0.js +0 -187
- package/chunk/StepFirstResponderPersonalInfo-Cti4_9R0.js.map +0 -1
- package/chunk/StepFirstResponderPersonalInfo-DvnQoYv3.js +0 -183
- package/chunk/StepFirstResponderPersonalInfo-DvnQoYv3.js.map +0 -1
- package/chunk/StepLicensedProfessionalPersonalInfo-CMXJE07N.js +0 -181
- package/chunk/StepLicensedProfessionalPersonalInfo-CMXJE07N.js.map +0 -1
- package/chunk/StepLicensedProfessionalPersonalInfo-CvPf_pKl.js +0 -177
- package/chunk/StepLicensedProfessionalPersonalInfo-CvPf_pKl.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-BNRPtMsh.js +0 -234
- package/chunk/StepLowIncomePersonalInfo-BNRPtMsh.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-dAYWpN1Z.js +0 -238
- package/chunk/StepLowIncomePersonalInfo-dAYWpN1Z.js.map +0 -1
- package/chunk/StepMedicalProfessionalPersonalInfo-D1_DA_oF.js +0 -213
- package/chunk/StepMedicalProfessionalPersonalInfo-D1_DA_oF.js.map +0 -1
- package/chunk/StepMedicalProfessionalPersonalInfo-DsaYh9dA.js +0 -209
- package/chunk/StepMedicalProfessionalPersonalInfo-DsaYh9dA.js.map +0 -1
- package/chunk/StepStudentPersonalInfo-DuFw8izC.js.map +0 -1
- package/chunk/StepStudentPersonalInfo-uhK23XMF.js.map +0 -1
- package/chunk/countryUtils-CFTIxZHq.js +0 -12
- package/chunk/stepComponentHelpers-CvC0Nxhe.js.map +0 -1
- package/chunk/stepComponentHelpers-HOnoMkIF.js.map +0 -1
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* WARNING: This file is intended to be used within MySheerID.
|
|
4
|
-
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* VERSION: 2.293.0
|
|
8
|
-
* BUILD_TIMESTAMP: 1790101528001
|
|
9
|
-
* BUILD_DATE: Tue Sep 22 2026 18:25:28 GMT+0000 (Coordinated Universal Time)
|
|
10
|
-
* BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
|
|
11
|
-
*/
|
|
12
|
-
import { kt as e, s as t } from "./intl-DYOqmiaL.js";
|
|
13
|
-
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-B6t5B3Mb.js";
|
|
15
|
-
import { p as s } from "./FormFooterComponent-DcKXPYSW.js";
|
|
16
|
-
import { t as c } from "../_mysheerid-preview.js";
|
|
17
|
-
import { t as l } from "./useCollectFieldsEndpoint-DlHC1_Qi.js";
|
|
18
|
-
import { a as u, c as d, i as f, m as p, p as m, r as h, t as g } from "./stepComponentHelpers-CvC0Nxhe.js";
|
|
19
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-1QN8Diwc.js";
|
|
20
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-CrB88-09.js";
|
|
21
|
-
import { t as T } from "./BirthDateComponent-C8TH6zhC.js";
|
|
22
|
-
import { t as E } from "./PostalCodeComponent-CYS0aDbk.js";
|
|
23
|
-
import { t as D } from "./CountryComponentWrapper-BriofJKE.js";
|
|
24
|
-
import { t as O } from "./ExtraMessage-B5w5QVkn.js";
|
|
25
|
-
import { t as k } from "./ChangeLocaleComponent-DuUnRYy4.js";
|
|
26
|
-
import { t as A } from "./PersonalInfoStepWrapper-Cx3INM03.js";
|
|
27
|
-
import { t as j } from "./countryUtils-CyHB2r3w.js";
|
|
28
|
-
import { t as M } from "./StatusComponent-BNW03jct.js";
|
|
29
|
-
import { t as N } from "./MedicalProfessionalOrganizationComponent-CpGvKtH0.js";
|
|
30
|
-
import { t as P } from "./MemberIdComponent-QFKekDAA.js";
|
|
31
|
-
//#region src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx
|
|
32
|
-
var F = /* @__PURE__ */ e(i(), 1), I = o(), L = {
|
|
33
|
-
AT: "gbrNummer",
|
|
34
|
-
ES: "numeroColegiado",
|
|
35
|
-
DK: "autorisationsId",
|
|
36
|
-
CH: "globalLocationNumber",
|
|
37
|
-
IE: "registrationNumber",
|
|
38
|
-
GB: "registrationNumber"
|
|
39
|
-
}, R = (e) => {
|
|
40
|
-
let t = L[e] || "registrationNumber";
|
|
41
|
-
return {
|
|
42
|
-
labelKey: `step.collectMedicalPersonalInfo.${t}Label`,
|
|
43
|
-
explanationKey: `step.collectMedicalPersonalInfo.${t}Explanation`
|
|
44
|
-
};
|
|
45
|
-
}, z = r(({ intl: e, verificationService: r }) => {
|
|
46
|
-
let i = r.viewModel, { fieldValidationErrors: o } = r, L = r.verificationResponse, z = s(L), B = t(), V = i.localeChoice.value, H = (e, t) => {
|
|
47
|
-
let n = d(i, e, t);
|
|
48
|
-
r.updateViewModel(n);
|
|
49
|
-
}, { isFieldOptional: U, availableStatuses: W } = l({
|
|
50
|
-
verificationId: L.verificationId,
|
|
51
|
-
currentStep: L.currentStep,
|
|
52
|
-
viewModel: i
|
|
53
|
-
}), G = U("memberId"), K = i.countryChoice?.value, q = j(r.programTheme, K), J = f(e, W ?? L.availableStatuses);
|
|
54
|
-
return F.useEffect(() => {
|
|
55
|
-
let e = (r.viewModel?.fieldsToSkipValidation || []).filter((e) => e !== "memberId");
|
|
56
|
-
G ? r.updateViewModel({ fieldsToSkipValidation: e }, { partial: !0 }) : r.updateViewModel({ fieldsToSkipValidation: [...e, "memberId"] }, { partial: !0 });
|
|
57
|
-
}, [G]), /* @__PURE__ */ (0, I.jsxs)(A, {
|
|
58
|
-
verificationService: r,
|
|
59
|
-
step: L.currentStep,
|
|
60
|
-
children: [
|
|
61
|
-
/* @__PURE__ */ (0, I.jsx)(c, {
|
|
62
|
-
verificationService: r,
|
|
63
|
-
classNameIdentifier: "medical-personal-info"
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */ (0, I.jsx)(k, { verificationService: r }),
|
|
66
|
-
/* @__PURE__ */ (0, I.jsx)(D, {
|
|
67
|
-
verificationService: r,
|
|
68
|
-
disabled: g("country")?.disabled
|
|
69
|
-
}),
|
|
70
|
-
/* @__PURE__ */ (0, I.jsx)(M, {
|
|
71
|
-
segmentId: "medical",
|
|
72
|
-
value: {
|
|
73
|
-
value: i.status,
|
|
74
|
-
label: h(e, i.status)
|
|
75
|
-
},
|
|
76
|
-
isErrored: !!o.status,
|
|
77
|
-
options: J,
|
|
78
|
-
disabled: q || g("status")?.disabled,
|
|
79
|
-
explanation: q ? /* @__PURE__ */ (0, I.jsx)(a, {
|
|
80
|
-
id: "chooseCountry",
|
|
81
|
-
defaultMessage: "Choose a country first"
|
|
82
|
-
}) : void 0,
|
|
83
|
-
onChange: (e) => {
|
|
84
|
-
H("status", e ? e.value : ""), m("status", e ? e.value : "", r);
|
|
85
|
-
}
|
|
86
|
-
}),
|
|
87
|
-
/* @__PURE__ */ (0, I.jsx)(N, {
|
|
88
|
-
isErrored: !!o.organization,
|
|
89
|
-
onChange: (e) => {
|
|
90
|
-
p(e, r), m("organization", e, r);
|
|
91
|
-
},
|
|
92
|
-
value: r.viewModel.organization,
|
|
93
|
-
verificationService: r,
|
|
94
|
-
disabled: g("organization")?.disabled
|
|
95
|
-
}),
|
|
96
|
-
/* @__PURE__ */ (0, I.jsxs)("div", {
|
|
97
|
-
className: "sid-names",
|
|
98
|
-
children: [/* @__PURE__ */ (0, I.jsx)(_, {
|
|
99
|
-
value: i.firstName,
|
|
100
|
-
isErrored: !!o.firstName,
|
|
101
|
-
disabled: g("firstName")?.disabled,
|
|
102
|
-
onChange: (e) => {
|
|
103
|
-
H("firstName", e), m("firstName", e, r);
|
|
104
|
-
}
|
|
105
|
-
}), /* @__PURE__ */ (0, I.jsx)(v, {
|
|
106
|
-
value: i.lastName,
|
|
107
|
-
isErrored: !!o.lastName,
|
|
108
|
-
disabled: g("lastName")?.disabled,
|
|
109
|
-
onChange: (e) => {
|
|
110
|
-
H("lastName", e), m("lastName", e, r);
|
|
111
|
-
}
|
|
112
|
-
})]
|
|
113
|
-
}),
|
|
114
|
-
/* @__PURE__ */ (0, I.jsx)(T, {
|
|
115
|
-
errorId: o.birthDate,
|
|
116
|
-
locale: V,
|
|
117
|
-
disabled: g("birthDate")?.disabled,
|
|
118
|
-
onChange: (e) => {
|
|
119
|
-
H("birthDate", e), m("birthDate", e, r);
|
|
120
|
-
},
|
|
121
|
-
value: i.birthDate
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ (0, I.jsx)(E, {
|
|
124
|
-
isErrored: !!o.postalCode,
|
|
125
|
-
onChange: (e) => {
|
|
126
|
-
H("postalCode", e), m("postalCode", e, r);
|
|
127
|
-
},
|
|
128
|
-
value: i.postalCode,
|
|
129
|
-
disabled: g("postalCode")?.disabled,
|
|
130
|
-
explanation: /* @__PURE__ */ (0, I.jsx)(a, {
|
|
131
|
-
id: "postalCodeExplanation",
|
|
132
|
-
defaultMessage: "Use the location on file with your licensing body"
|
|
133
|
-
})
|
|
134
|
-
}),
|
|
135
|
-
/* @__PURE__ */ (0, I.jsx)(C, {
|
|
136
|
-
value: i.email,
|
|
137
|
-
isErrored: !!o.email,
|
|
138
|
-
explanation: /* @__PURE__ */ (0, I.jsx)(a, {
|
|
139
|
-
id: "emailExplanation",
|
|
140
|
-
defaultMessage: "Needed to send you your unique code"
|
|
141
|
-
}),
|
|
142
|
-
onChange: (e) => {
|
|
143
|
-
H("email", e), m("email", e, r);
|
|
144
|
-
},
|
|
145
|
-
onKeyDown: (e) => u(e),
|
|
146
|
-
disabled: g("email")?.disabled
|
|
147
|
-
}),
|
|
148
|
-
r.programTheme.isSmsNotifierConfigured || r.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, I.jsx)(b, {
|
|
149
|
-
isRequired: !!r.programTheme.smsLoopEnabled,
|
|
150
|
-
value: i.phoneNumber,
|
|
151
|
-
isErrored: !!o.phoneNumber,
|
|
152
|
-
onChange: (e) => {
|
|
153
|
-
H("phoneNumber", e), m("phoneNumber", e, r);
|
|
154
|
-
},
|
|
155
|
-
selectedCountryCode: i.countryChoice && i.countryChoice.value,
|
|
156
|
-
disabled: g("phoneNumber")?.disabled
|
|
157
|
-
}) : null,
|
|
158
|
-
G && /* @__PURE__ */ (0, I.jsx)(P, {
|
|
159
|
-
value: i.memberId,
|
|
160
|
-
isErrored: !!o.memberId,
|
|
161
|
-
isRequired: g("memberId")?.requireIfOptional,
|
|
162
|
-
disabled: g("memberId")?.disabled,
|
|
163
|
-
onChange: (e) => {
|
|
164
|
-
H("memberId", e), m("memberId", e, r);
|
|
165
|
-
},
|
|
166
|
-
explanation: /* @__PURE__ */ (0, I.jsx)(a, {
|
|
167
|
-
id: R(i.country).explanationKey,
|
|
168
|
-
defaultMessage: "Your Professional Membership Registration Number"
|
|
169
|
-
}),
|
|
170
|
-
label: /* @__PURE__ */ (0, I.jsx)(a, {
|
|
171
|
-
id: R(i.country).labelKey,
|
|
172
|
-
defaultMessage: "Registration Number"
|
|
173
|
-
})
|
|
174
|
-
}),
|
|
175
|
-
B.customFormFields.map((e) => /* @__PURE__ */ (0, I.jsx)(y, {
|
|
176
|
-
config: e,
|
|
177
|
-
verificationService: r
|
|
178
|
-
})),
|
|
179
|
-
/* @__PURE__ */ (0, I.jsx)(x, {
|
|
180
|
-
verificationService: r,
|
|
181
|
-
isErrored: !!o.marketConsentValue,
|
|
182
|
-
onChange: (e) => {
|
|
183
|
-
H("metadata", {
|
|
184
|
-
...r.viewModel.metadata,
|
|
185
|
-
marketConsentValue: e
|
|
186
|
-
}), m("marketConsentValue", e, r);
|
|
187
|
-
},
|
|
188
|
-
viewModel: i,
|
|
189
|
-
disabled: g("marketConsentValue")?.disabled
|
|
190
|
-
}),
|
|
191
|
-
/* @__PURE__ */ (0, I.jsx)(O, {
|
|
192
|
-
verificationService: r,
|
|
193
|
-
suffix: "CollectAboveSubmit"
|
|
194
|
-
}),
|
|
195
|
-
/* @__PURE__ */ (0, I.jsx)(S, {
|
|
196
|
-
verificationService: r,
|
|
197
|
-
isErrored: !!o.captchaToken
|
|
198
|
-
}),
|
|
199
|
-
/* @__PURE__ */ (0, I.jsx)(w, {
|
|
200
|
-
step: n.collectMedicalProfessionalPersonalInfo,
|
|
201
|
-
verificationService: r,
|
|
202
|
-
viewModel: i,
|
|
203
|
-
failedInstantMatch: z,
|
|
204
|
-
buttonText: /* @__PURE__ */ (0, I.jsx)(a, {
|
|
205
|
-
id: "step.personalInfo.submitButtonText",
|
|
206
|
-
defaultMessage: "Verify My Medical Professional Status"
|
|
207
|
-
})
|
|
208
|
-
})
|
|
209
|
-
]
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
//#endregion
|
|
213
|
-
export { z as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-D1_DA_oF.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 { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { VerificationStepsEnum } 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 getStatusOptions,\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, availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? verificationResponse.availableStatuses,\n );\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(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\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":";;;;;;;;;;;;;;;;;;;;4CA6DM,IAAkE;CACtE,IAAI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523842
|
|
5
|
-
* BUILD_DATE: Tue Sep 22 2026 18:25:23 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
|
|
7
|
-
*/
|
|
8
|
-
import { kt as e, n as t } from "./options-DsRV5fwh.js";
|
|
9
|
-
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-338NbZob.js";
|
|
10
|
-
import { b as o } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as s } from "./FormFooterComponent-ChbgdbyW.js";
|
|
12
|
-
import { n as c } from "../sheerid.js";
|
|
13
|
-
import { t as l } from "./useCollectFieldsEndpoint-VZhNaKRq.js";
|
|
14
|
-
import { a as u, c as d, i as f, m as p, p as m, r as h, t as g } from "./stepComponentHelpers-HOnoMkIF.js";
|
|
15
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-CvmkQ_5D.js";
|
|
16
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-CD-vfZ2W.js";
|
|
17
|
-
import { t as T } from "./BirthDateComponent-DoxUuygs.js";
|
|
18
|
-
import { t as E } from "./PostalCodeComponent-BzOER20j.js";
|
|
19
|
-
import { t as D } from "./CountryComponentWrapper-S7tjrj1n.js";
|
|
20
|
-
import { t as O } from "./ExtraMessage-D4cO9DeJ.js";
|
|
21
|
-
import { t as k } from "./ChangeLocaleComponent-ZNY5d0nd.js";
|
|
22
|
-
import { t as A } from "./PersonalInfoStepWrapper-DNrpE3DD.js";
|
|
23
|
-
import { t as j } from "./countryUtils-CFTIxZHq.js";
|
|
24
|
-
import { t as M } from "./StatusComponent-BYtArAqN.js";
|
|
25
|
-
import { t as N } from "./MedicalProfessionalOrganizationComponent-9b_QGhPj.js";
|
|
26
|
-
import { t as P } from "./MemberIdComponent-4yDOiEzp.js";
|
|
27
|
-
//#region src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx
|
|
28
|
-
var F = /* @__PURE__ */ e(r(), 1), I = a(), L = {
|
|
29
|
-
AT: "gbrNummer",
|
|
30
|
-
ES: "numeroColegiado",
|
|
31
|
-
DK: "autorisationsId",
|
|
32
|
-
CH: "globalLocationNumber",
|
|
33
|
-
IE: "registrationNumber",
|
|
34
|
-
GB: "registrationNumber"
|
|
35
|
-
}, R = (e) => {
|
|
36
|
-
let t = L[e] || "registrationNumber";
|
|
37
|
-
return {
|
|
38
|
-
labelKey: `step.collectMedicalPersonalInfo.${t}Label`,
|
|
39
|
-
explanationKey: `step.collectMedicalPersonalInfo.${t}Explanation`
|
|
40
|
-
};
|
|
41
|
-
}, z = n(({ intl: e, verificationService: n }) => {
|
|
42
|
-
let r = n.viewModel, { fieldValidationErrors: a } = n, L = n.verificationResponse, z = s(L), B = t(), V = r.localeChoice.value, H = (e, t) => {
|
|
43
|
-
let i = d(r, e, t);
|
|
44
|
-
n.updateViewModel(i);
|
|
45
|
-
}, { isFieldOptional: U, availableStatuses: W } = l({
|
|
46
|
-
verificationId: L.verificationId,
|
|
47
|
-
currentStep: L.currentStep,
|
|
48
|
-
viewModel: r
|
|
49
|
-
}), G = U("memberId"), K = r.countryChoice?.value, q = j(n.programTheme, K), J = f(e, W ?? L.availableStatuses);
|
|
50
|
-
return F.useEffect(() => {
|
|
51
|
-
let e = (n.viewModel?.fieldsToSkipValidation || []).filter((e) => e !== "memberId");
|
|
52
|
-
G ? n.updateViewModel({ fieldsToSkipValidation: e }, { partial: !0 }) : n.updateViewModel({ fieldsToSkipValidation: [...e, "memberId"] }, { partial: !0 });
|
|
53
|
-
}, [G]), /* @__PURE__ */ (0, I.jsxs)(A, {
|
|
54
|
-
verificationService: n,
|
|
55
|
-
step: L.currentStep,
|
|
56
|
-
children: [
|
|
57
|
-
/* @__PURE__ */ (0, I.jsx)(c, {
|
|
58
|
-
verificationService: n,
|
|
59
|
-
classNameIdentifier: "medical-personal-info"
|
|
60
|
-
}),
|
|
61
|
-
/* @__PURE__ */ (0, I.jsx)(k, { verificationService: n }),
|
|
62
|
-
/* @__PURE__ */ (0, I.jsx)(D, {
|
|
63
|
-
verificationService: n,
|
|
64
|
-
disabled: g("country")?.disabled
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ (0, I.jsx)(M, {
|
|
67
|
-
segmentId: "medical",
|
|
68
|
-
value: {
|
|
69
|
-
value: r.status,
|
|
70
|
-
label: h(e, r.status)
|
|
71
|
-
},
|
|
72
|
-
isErrored: !!a.status,
|
|
73
|
-
options: J,
|
|
74
|
-
disabled: q || g("status")?.disabled,
|
|
75
|
-
explanation: q ? /* @__PURE__ */ (0, I.jsx)(i, {
|
|
76
|
-
id: "chooseCountry",
|
|
77
|
-
defaultMessage: "Choose a country first"
|
|
78
|
-
}) : void 0,
|
|
79
|
-
onChange: (e) => {
|
|
80
|
-
H("status", e ? e.value : ""), m("status", e ? e.value : "", n);
|
|
81
|
-
}
|
|
82
|
-
}),
|
|
83
|
-
/* @__PURE__ */ (0, I.jsx)(N, {
|
|
84
|
-
isErrored: !!a.organization,
|
|
85
|
-
onChange: (e) => {
|
|
86
|
-
p(e, n), m("organization", e, n);
|
|
87
|
-
},
|
|
88
|
-
value: n.viewModel.organization,
|
|
89
|
-
verificationService: n,
|
|
90
|
-
disabled: g("organization")?.disabled
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ (0, I.jsxs)("div", {
|
|
93
|
-
className: "sid-names",
|
|
94
|
-
children: [/* @__PURE__ */ (0, I.jsx)(_, {
|
|
95
|
-
value: r.firstName,
|
|
96
|
-
isErrored: !!a.firstName,
|
|
97
|
-
disabled: g("firstName")?.disabled,
|
|
98
|
-
onChange: (e) => {
|
|
99
|
-
H("firstName", e), m("firstName", e, n);
|
|
100
|
-
}
|
|
101
|
-
}), /* @__PURE__ */ (0, I.jsx)(v, {
|
|
102
|
-
value: r.lastName,
|
|
103
|
-
isErrored: !!a.lastName,
|
|
104
|
-
disabled: g("lastName")?.disabled,
|
|
105
|
-
onChange: (e) => {
|
|
106
|
-
H("lastName", e), m("lastName", e, n);
|
|
107
|
-
}
|
|
108
|
-
})]
|
|
109
|
-
}),
|
|
110
|
-
/* @__PURE__ */ (0, I.jsx)(T, {
|
|
111
|
-
errorId: a.birthDate,
|
|
112
|
-
locale: V,
|
|
113
|
-
disabled: g("birthDate")?.disabled,
|
|
114
|
-
onChange: (e) => {
|
|
115
|
-
H("birthDate", e), m("birthDate", e, n);
|
|
116
|
-
},
|
|
117
|
-
value: r.birthDate
|
|
118
|
-
}),
|
|
119
|
-
/* @__PURE__ */ (0, I.jsx)(E, {
|
|
120
|
-
isErrored: !!a.postalCode,
|
|
121
|
-
onChange: (e) => {
|
|
122
|
-
H("postalCode", e), m("postalCode", e, n);
|
|
123
|
-
},
|
|
124
|
-
value: r.postalCode,
|
|
125
|
-
disabled: g("postalCode")?.disabled,
|
|
126
|
-
explanation: /* @__PURE__ */ (0, I.jsx)(i, {
|
|
127
|
-
id: "postalCodeExplanation",
|
|
128
|
-
defaultMessage: "Use the location on file with your licensing body"
|
|
129
|
-
})
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ (0, I.jsx)(C, {
|
|
132
|
-
value: r.email,
|
|
133
|
-
isErrored: !!a.email,
|
|
134
|
-
explanation: /* @__PURE__ */ (0, I.jsx)(i, {
|
|
135
|
-
id: "emailExplanation",
|
|
136
|
-
defaultMessage: "Needed to send you your unique code"
|
|
137
|
-
}),
|
|
138
|
-
onChange: (e) => {
|
|
139
|
-
H("email", e), m("email", e, n);
|
|
140
|
-
},
|
|
141
|
-
onKeyDown: (e) => u(e),
|
|
142
|
-
disabled: g("email")?.disabled
|
|
143
|
-
}),
|
|
144
|
-
n.programTheme.isSmsNotifierConfigured || n.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, I.jsx)(b, {
|
|
145
|
-
isRequired: !!n.programTheme.smsLoopEnabled,
|
|
146
|
-
value: r.phoneNumber,
|
|
147
|
-
isErrored: !!a.phoneNumber,
|
|
148
|
-
onChange: (e) => {
|
|
149
|
-
H("phoneNumber", e), m("phoneNumber", e, n);
|
|
150
|
-
},
|
|
151
|
-
selectedCountryCode: r.countryChoice && r.countryChoice.value,
|
|
152
|
-
disabled: g("phoneNumber")?.disabled
|
|
153
|
-
}) : null,
|
|
154
|
-
G && /* @__PURE__ */ (0, I.jsx)(P, {
|
|
155
|
-
value: r.memberId,
|
|
156
|
-
isErrored: !!a.memberId,
|
|
157
|
-
isRequired: g("memberId")?.requireIfOptional,
|
|
158
|
-
disabled: g("memberId")?.disabled,
|
|
159
|
-
onChange: (e) => {
|
|
160
|
-
H("memberId", e), m("memberId", e, n);
|
|
161
|
-
},
|
|
162
|
-
explanation: /* @__PURE__ */ (0, I.jsx)(i, {
|
|
163
|
-
id: R(r.country).explanationKey,
|
|
164
|
-
defaultMessage: "Your Professional Membership Registration Number"
|
|
165
|
-
}),
|
|
166
|
-
label: /* @__PURE__ */ (0, I.jsx)(i, {
|
|
167
|
-
id: R(r.country).labelKey,
|
|
168
|
-
defaultMessage: "Registration Number"
|
|
169
|
-
})
|
|
170
|
-
}),
|
|
171
|
-
B.customFormFields.map((e) => /* @__PURE__ */ (0, I.jsx)(y, {
|
|
172
|
-
config: e,
|
|
173
|
-
verificationService: n
|
|
174
|
-
})),
|
|
175
|
-
/* @__PURE__ */ (0, I.jsx)(x, {
|
|
176
|
-
verificationService: n,
|
|
177
|
-
isErrored: !!a.marketConsentValue,
|
|
178
|
-
onChange: (e) => {
|
|
179
|
-
H("metadata", {
|
|
180
|
-
...n.viewModel.metadata,
|
|
181
|
-
marketConsentValue: e
|
|
182
|
-
}), m("marketConsentValue", e, n);
|
|
183
|
-
},
|
|
184
|
-
viewModel: r,
|
|
185
|
-
disabled: g("marketConsentValue")?.disabled
|
|
186
|
-
}),
|
|
187
|
-
/* @__PURE__ */ (0, I.jsx)(O, {
|
|
188
|
-
verificationService: n,
|
|
189
|
-
suffix: "CollectAboveSubmit"
|
|
190
|
-
}),
|
|
191
|
-
/* @__PURE__ */ (0, I.jsx)(S, {
|
|
192
|
-
verificationService: n,
|
|
193
|
-
isErrored: !!a.captchaToken
|
|
194
|
-
}),
|
|
195
|
-
/* @__PURE__ */ (0, I.jsx)(w, {
|
|
196
|
-
step: o.collectMedicalProfessionalPersonalInfo,
|
|
197
|
-
verificationService: n,
|
|
198
|
-
viewModel: r,
|
|
199
|
-
failedInstantMatch: z,
|
|
200
|
-
buttonText: /* @__PURE__ */ (0, I.jsx)(i, {
|
|
201
|
-
id: "step.personalInfo.submitButtonText",
|
|
202
|
-
defaultMessage: "Verify My Medical Professional Status"
|
|
203
|
-
})
|
|
204
|
-
})
|
|
205
|
-
]
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
//#endregion
|
|
209
|
-
export { z as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-DsaYh9dA.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 { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { VerificationStepsEnum } 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 getStatusOptions,\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, availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? verificationResponse.availableStatuses,\n );\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(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\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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StudentPersonalInfo-DuFw8izC.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumberComponent = ({\n value,\n isErrored,\n onChange,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cvecNumber\" })}\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { StudentStatusDefaultMessagesEnum, VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { 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 { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepStudentPersonalInfoComponent = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const { msg } = useMessage();\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n const getStatusChoice = (status?: StudentStatusSelection): FormSelectChoice =>\n status\n ? {\n value: status,\n label: msg({ id: status }),\n }\n : { value: \"\", label: \"\" };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={getStatusChoice(viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={STATUS_SELECTIONS.map(getStatusChoice)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"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 disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;4CAaA,KAAA,EAAA,UAAA,cAAA,aAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,GCdM,IAAoB,OAAO,KAAK,CAAgC,GA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AC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,UAAU,EAAwB,oBAAoB,GAAG;IACzD,WAAW,MAAa;KAKtB,AAJA,EAAuB,YAAY;MACjC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;GACZ,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GACrF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepStudentPersonalInfo-uhK23XMF.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumberComponent = ({\n value,\n isErrored,\n onChange,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cvecNumber\" })}\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { StudentStatusDefaultMessagesEnum, VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { 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 { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepStudentPersonalInfoComponent = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const { msg } = useMessage();\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n const getStatusChoice = (status?: StudentStatusSelection): FormSelectChoice =>\n status\n ? {\n value: status,\n label: msg({ id: status }),\n }\n : { value: \"\", label: \"\" };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={getStatusChoice(viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={STATUS_SELECTIONS.map(getStatusChoice)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"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 disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;4CAaA,KAAA,EAAA,UAAA,cAAA,aAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,GCdM,IAAoB,OAAO,KAAK,CAAgC,GAMzD,KAAoC,EAC/C,6BAC2C;CAC3C,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAU,EAAW,GAGrB,IAAyB,EAAQ,mCAAmC,GACpE,IACJ,MAA2B,aAC3B,MAA2B,aAC3B,GAAW,eAAe,UAAU,MAMhC,IAAoB,EAAqB,qBAAqB,CAAC,GAC/D,IACJ,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU;CAE1F,EAAM,gBAAgB;EACpB,IAAI,KAAmB,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QACjF,MAAO,MAAO,gBAAgB,MAAO,QACxC;EASA,AARK,MAEH,IAAO,CAAC,GAAG,GAAM,YAAY,IAE1B,MAEH,IAAO,CAAC,GAAG,GAAM,QAAQ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;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* VERSION: 2.293.0
|
|
4
|
-
* BUILD_TIMESTAMP: 1790101523842
|
|
5
|
-
* BUILD_DATE: Tue Sep 22 2026 18:25:23 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: 00fab93cde3d7a4fa864bf23fd76ab6952622776
|
|
7
|
-
*/
|
|
8
|
-
import { n as e } from "./programThemeGetters-CVbMoRhw.js";
|
|
9
|
-
//#region src/components/FormFields/Country/countryUtils.ts
|
|
10
|
-
var t = (t, n = void 0) => (e(t) || []).length >= 2 && !n;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { t };
|