@sheerid/jslib 2.289.0 → 2.290.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 +104 -105
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-BFEdmLph.js → AddressComponent-DD8h728z.js} +6 -6
- package/chunk/{AddressComponent-BFEdmLph.js.map → AddressComponent-DD8h728z.js.map} +1 -1
- package/chunk/{AddressComponent-C2mollBp.js → AddressComponent-DKfHQAHW.js} +6 -6
- package/chunk/{AddressComponent-C2mollBp.js.map → AddressComponent-DKfHQAHW.js.map} +1 -1
- package/chunk/AnnouncingHeader-B0Ku-xl_.js +4 -4
- package/chunk/AnnouncingHeader-CXTQdbKG.js +4 -4
- package/chunk/{BirthDateComponent-1FYtxavW.js → BirthDateComponent-2PEmSvVv.js} +6 -6
- package/chunk/{BirthDateComponent-1FYtxavW.js.map → BirthDateComponent-2PEmSvVv.js.map} +1 -1
- package/chunk/{BirthDateComponent-DbILUMIz.js → BirthDateComponent-Cd0cMZrO.js} +6 -6
- package/chunk/{BirthDateComponent-DbILUMIz.js.map → BirthDateComponent-Cd0cMZrO.js.map} +1 -1
- package/chunk/{CaptchaComponent-L3WoxJAC.js → CaptchaComponent-CeJZh2AO.js} +17 -17
- package/chunk/{CaptchaComponent-KFLJ56dX.js.map → CaptchaComponent-CeJZh2AO.js.map} +1 -1
- package/chunk/{CaptchaComponent-KFLJ56dX.js → CaptchaComponent-D84uhigA.js} +78 -78
- package/chunk/{CaptchaComponent-L3WoxJAC.js.map → CaptchaComponent-D84uhigA.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BcyU0Zgd.js → ChangeLocaleComponent-LlVAEjO9.js} +22 -22
- package/chunk/{ChangeLocaleComponent-BcyU0Zgd.js.map → ChangeLocaleComponent-LlVAEjO9.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Wju8NvwL.js → ChangeLocaleComponent-Slt2XjmB.js} +7 -7
- package/chunk/{ChangeLocaleComponent-Wju8NvwL.js.map → ChangeLocaleComponent-Slt2XjmB.js.map} +1 -1
- package/chunk/{City-BXTk8t3d.js → City-DeTr-l8T.js} +6 -6
- package/chunk/{City-BXTk8t3d.js.map → City-DeTr-l8T.js.map} +1 -1
- package/chunk/{City-mQnP6dP2.js → City-DzE-sIfb.js} +6 -6
- package/chunk/{City-mQnP6dP2.js.map → City-DzE-sIfb.js.map} +1 -1
- package/chunk/{CollegeNameComponent-Bov_i0oT.js → CollegeNameComponent-BIelwnwZ.js} +8 -8
- package/chunk/{CollegeNameComponent-Bov_i0oT.js.map → CollegeNameComponent-BIelwnwZ.js.map} +1 -1
- package/chunk/{CollegeNameComponent-Df_VMbdr.js → CollegeNameComponent-BLK9LM4N.js} +15 -15
- package/chunk/{CollegeNameComponent-Df_VMbdr.js.map → CollegeNameComponent-BLK9LM4N.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BAOwMLHJ.js +4 -4
- package/chunk/CopyToClipboardComponent-BejK3fLR.js +4 -4
- package/chunk/{CountryComponentWrapper-BSg_JhlH.js → CountryComponentWrapper-DQW_P5GI.js} +23 -23
- package/chunk/{CountryComponentWrapper-BSg_JhlH.js.map → CountryComponentWrapper-DQW_P5GI.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-dG5Zqfee.js → CountryComponentWrapper-D_v3ee4V.js} +11 -11
- package/chunk/{CountryComponentWrapper-dG5Zqfee.js.map → CountryComponentWrapper-D_v3ee4V.js.map} +1 -1
- package/chunk/{DischargeDateComponent-C6BB3YwP.js → DischargeDateComponent-CDWiw0-D.js} +13 -13
- package/chunk/{DischargeDateComponent-C6BB3YwP.js.map → DischargeDateComponent-CDWiw0-D.js.map} +1 -1
- package/chunk/{DischargeDateComponent-D8yMgfh-.js → DischargeDateComponent-Dlm6t88Y.js} +13 -13
- package/chunk/{DischargeDateComponent-D8yMgfh-.js.map → DischargeDateComponent-Dlm6t88Y.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-C_wuryKm.js → DriverLicenseNumberComponent-DpCVs8n_.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-C_wuryKm.js.map → DriverLicenseNumberComponent-DpCVs8n_.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-i_ywdo3P.js → DriverLicenseNumberComponent-XVb7vgi3.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-i_ywdo3P.js.map → DriverLicenseNumberComponent-XVb7vgi3.js.map} +1 -1
- package/chunk/{EmailLoopPending-Du6R4zif.js → EmailLoopPending-CMiOTpOJ.js} +7 -7
- package/chunk/{EmailLoopPending-DThAR1Iv.js.map → EmailLoopPending-CMiOTpOJ.js.map} +1 -1
- package/chunk/{EmailLoopPending-DThAR1Iv.js → EmailLoopPending-Dz4TsQy4.js} +7 -7
- package/chunk/{EmailLoopPending-Du6R4zif.js.map → EmailLoopPending-Dz4TsQy4.js.map} +1 -1
- package/chunk/{ExtraMessage-BZ9XdOdL.js → ExtraMessage-Bhmq_Waj.js} +5 -5
- package/chunk/{ExtraMessage-BZ9XdOdL.js.map → ExtraMessage-Bhmq_Waj.js.map} +1 -1
- package/chunk/{ExtraMessage-D1j0TLE3.js → ExtraMessage-CgELJLpn.js} +5 -5
- package/chunk/{ExtraMessage-D1j0TLE3.js.map → ExtraMessage-CgELJLpn.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-D9VmCGiC.js → FirstResponderOrganizationComponent-CC5-PDrK.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-D5UbIVyE.js.map → FirstResponderOrganizationComponent-CC5-PDrK.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-D5UbIVyE.js → FirstResponderOrganizationComponent-CEBS72Sm.js} +15 -15
- package/chunk/{FirstResponderOrganizationComponent-D9VmCGiC.js.map → FirstResponderOrganizationComponent-CEBS72Sm.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Cf2843FO.js → FormFieldInputSelect--mO3jmU8.js} +5 -5
- package/chunk/{FormFieldInputSelect-Cf2843FO.js.map → FormFieldInputSelect--mO3jmU8.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DFkZlHDE.js → FormFieldInputSelect-CPeFv22D.js} +5 -5
- package/chunk/{FormFieldInputSelect-DFkZlHDE.js.map → FormFieldInputSelect-CPeFv22D.js.map} +1 -1
- package/chunk/FormFieldLayout-DEKIQK2R.js +4 -4
- package/chunk/FormFieldLayout-NkmhFC9B.js +4 -4
- package/chunk/FormFieldText-Bn9WIKiI.js +4 -4
- package/chunk/FormFieldText-Py7x4EZ6.js +4 -4
- package/chunk/{FormFieldTypeahead-DWAxDXKP.js → FormFieldTypeahead-Cy-3RAew.js} +8 -8
- package/chunk/{FormFieldTypeahead-DWAxDXKP.js.map → FormFieldTypeahead-Cy-3RAew.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CDKGsEZB.js → FormFieldTypeahead-LSYbrfBP.js} +8 -8
- package/chunk/{FormFieldTypeahead-CDKGsEZB.js.map → FormFieldTypeahead-LSYbrfBP.js.map} +1 -1
- package/chunk/{FormFooterComponent-BrOM_pQ9.js → FormFooterComponent-D4QJJ-El.js} +71 -71
- package/chunk/{FormFooterComponent-BrOM_pQ9.js.map → FormFooterComponent-D4QJJ-El.js.map} +1 -1
- package/chunk/{FormFooterComponent-CP0-Wobs.js → FormFooterComponent-Db94BTNT.js} +18 -18
- package/chunk/{FormFooterComponent-CP0-Wobs.js.map → FormFooterComponent-Db94BTNT.js.map} +1 -1
- package/chunk/{FormSelectChoice-yNUPRIKO.js → FormSelectChoice-BoTIc5oD.js} +6 -6
- package/chunk/{FormSelectChoice-DWG9hYtf.js.map → FormSelectChoice-BoTIc5oD.js.map} +1 -1
- package/chunk/{FormSelectChoice-DWG9hYtf.js → FormSelectChoice-Zw3pKb9v.js} +6 -6
- package/chunk/{FormSelectChoice-yNUPRIKO.js.map → FormSelectChoice-Zw3pKb9v.js.map} +1 -1
- package/chunk/InputText-CMu4ei8e.js +4 -4
- package/chunk/InputText-dflyPe3J.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-FBu3_XDq.js → LicensedProfessionalOrganizationComponent-BUtMTAkk.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-CdVLOkti.js.map → LicensedProfessionalOrganizationComponent-BUtMTAkk.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CdVLOkti.js → LicensedProfessionalOrganizationComponent-y5azOwHV.js} +15 -15
- package/chunk/{LicensedProfessionalOrganizationComponent-FBu3_XDq.js.map → LicensedProfessionalOrganizationComponent-y5azOwHV.js.map} +1 -1
- package/chunk/{LogoComponent-BDhMcJvy.js → LogoComponent-CJcMDzxn.js} +9 -9
- package/chunk/{LogoComponent-BDhMcJvy.js.map → LogoComponent-CJcMDzxn.js.map} +1 -1
- package/chunk/{LogoComponent-DASXTR4v.js → LogoComponent-DRlUkzL5.js} +5 -5
- package/chunk/{LogoComponent-DASXTR4v.js.map → LogoComponent-DRlUkzL5.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-BI4Lscrc.js → LowIncomeOrganizationComponent-CMLS_6f7.js} +12 -12
- package/chunk/{LowIncomeOrganizationComponent-BI4Lscrc.js.map → LowIncomeOrganizationComponent-CMLS_6f7.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DrNEvBR8.js → LowIncomeOrganizationComponent-XE645g9w.js} +30 -30
- package/chunk/{LowIncomeOrganizationComponent-DrNEvBR8.js.map → LowIncomeOrganizationComponent-XE645g9w.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-i1AHUB2l.js → MedicalProfessionalOrganizationComponent-B6hySwWt.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-BnVU_DtU.js.map → MedicalProfessionalOrganizationComponent-B6hySwWt.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-BnVU_DtU.js → MedicalProfessionalOrganizationComponent-CEfnIdC3.js} +15 -15
- package/chunk/{MedicalProfessionalOrganizationComponent-i1AHUB2l.js.map → MedicalProfessionalOrganizationComponent-CEfnIdC3.js.map} +1 -1
- package/chunk/{MemberIdComponent-BJIWA0U-.js → MemberIdComponent-BnJLiVV-.js} +6 -6
- package/chunk/{MemberIdComponent-BJIWA0U-.js.map → MemberIdComponent-BnJLiVV-.js.map} +1 -1
- package/chunk/{MemberIdComponent-CJIKRgkP.js → MemberIdComponent-CPlvhVZ8.js} +6 -6
- package/chunk/{MemberIdComponent-CJIKRgkP.js.map → MemberIdComponent-CPlvhVZ8.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-B2SfBgyQ.js → MembershipOrganizationComponent-CEU4TQuO.js} +15 -15
- package/chunk/{MembershipOrganizationComponent-B2SfBgyQ.js.map → MembershipOrganizationComponent-CEU4TQuO.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-lCfT5hKV.js → MembershipOrganizationComponent-D0YorDhu.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-lCfT5hKV.js.map → MembershipOrganizationComponent-D0YorDhu.js.map} +1 -1
- package/chunk/{Message-CZD2IHWF.js → Message-BgJQKz_x.js} +627 -628
- package/chunk/{Message-CZD2IHWF.js.map → Message-BgJQKz_x.js.map} +1 -1
- package/chunk/{Message-C5LUKoZw.js → Message-C8hwqDr2.js} +45 -46
- package/chunk/{Message-C5LUKoZw.js.map → Message-C8hwqDr2.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-Q6g7KHwI.js → PersonalInfoStepSubmitButton-CJYeNqbu.js} +6 -6
- package/chunk/{PersonalInfoStepSubmitButton-DnepwbFs.js.map → PersonalInfoStepSubmitButton-CJYeNqbu.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-DnepwbFs.js → PersonalInfoStepSubmitButton-CdZymKZb.js} +6 -6
- package/chunk/{PersonalInfoStepSubmitButton-Q6g7KHwI.js.map → PersonalInfoStepSubmitButton-CdZymKZb.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-B7pfOMf3.js → PersonalInfoStepWrapper-BIbUswfn.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-B7pfOMf3.js.map → PersonalInfoStepWrapper-BIbUswfn.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-D2GlDkO6.js → PersonalInfoStepWrapper-DQ75PRWo.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-D2GlDkO6.js.map → PersonalInfoStepWrapper-DQ75PRWo.js.map} +1 -1
- package/chunk/{PostalCodeComponent-C50XmPmv.js → PostalCodeComponent-DNdUR9Xg.js} +6 -6
- package/chunk/{PostalCodeComponent-C-0blxoe.js.map → PostalCodeComponent-DNdUR9Xg.js.map} +1 -1
- package/chunk/{PostalCodeComponent-C-0blxoe.js → PostalCodeComponent-zteosCwv.js} +6 -6
- package/chunk/{PostalCodeComponent-C50XmPmv.js.map → PostalCodeComponent-zteosCwv.js.map} +1 -1
- package/chunk/{SSN-CjLxLrYN.js → SSN-BKPNF7cg.js} +6 -6
- package/chunk/{SSN-CjLxLrYN.js.map → SSN-BKPNF7cg.js.map} +1 -1
- package/chunk/{SSN-DBPw87L6.js → SSN-CTR6jwEC.js} +6 -6
- package/chunk/{SSN-DBPw87L6.js.map → SSN-CTR6jwEC.js.map} +1 -1
- package/chunk/StateSelectComponent-CpGuzW45.js +46 -0
- package/chunk/StateSelectComponent-CpGuzW45.js.map +1 -0
- package/chunk/StateSelectComponent-Dt-vsjau.js +42 -0
- package/chunk/StateSelectComponent-Dt-vsjau.js.map +1 -0
- package/chunk/{StatusComponent-CceeOAxy.js → StatusComponent-8j96MYEP.js} +7 -7
- package/chunk/{StatusComponent-CceeOAxy.js.map → StatusComponent-8j96MYEP.js.map} +1 -1
- package/chunk/{StatusComponent-DPs6MHNn.js → StatusComponent-DZu1lz0O.js} +7 -7
- package/chunk/{StatusComponent-DPs6MHNn.js.map → StatusComponent-DZu1lz0O.js.map} +1 -1
- package/chunk/StepAgePersonalInfo-BqALUq2Z.js +176 -0
- package/chunk/{StepAgePersonalInfo-Bwdjo9Zy.js.map → StepAgePersonalInfo-BqALUq2Z.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Bwdjo9Zy.js → StepAgePersonalInfo-DFv4SYcW.js} +40 -40
- package/chunk/{StepAgePersonalInfo-DIOOXX9y.js.map → StepAgePersonalInfo-DFv4SYcW.js.map} +1 -1
- package/chunk/StepCard-DQ9JkAjb.js +4 -4
- package/chunk/StepCard-EHeqFY3Y.js +4 -4
- package/chunk/{StepCollectIdentifier-nrcBJaBK.js → StepCollectIdentifier-7VdLmT7J.js} +9 -9
- package/chunk/{StepCollectIdentifier-CSGIiyFf.js.map → StepCollectIdentifier-7VdLmT7J.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CSGIiyFf.js → StepCollectIdentifier-DAwDOBzU.js} +9 -9
- package/chunk/{StepCollectIdentifier-nrcBJaBK.js.map → StepCollectIdentifier-DAwDOBzU.js.map} +1 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CKUjV6kM.js +249 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CKUjV6kM.js.map +1 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CXmxwwfG.js +245 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CXmxwwfG.js.map +1 -0
- package/chunk/StepCollectPersonalInfo-CXurqlAa.js +368 -0
- package/chunk/StepCollectPersonalInfo-CXurqlAa.js.map +1 -0
- package/chunk/StepCollectPersonalInfo-DZlzAIxw.js +372 -0
- package/chunk/StepCollectPersonalInfo-DZlzAIxw.js.map +1 -0
- package/chunk/{StepCompleteAuthentication-kKdUhF9e.js → StepCompleteAuthentication-BY_5AqX4.js} +5 -5
- package/chunk/{StepCompleteAuthentication-kKdUhF9e.js.map → StepCompleteAuthentication-BY_5AqX4.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-CJpJoWRq.js → StepCompleteAuthentication-DMwS3S6i.js} +5 -5
- package/chunk/{StepCompleteAuthentication-CJpJoWRq.js.map → StepCompleteAuthentication-DMwS3S6i.js.map} +1 -1
- package/chunk/{StepConsolation-DwEwhgzI.js → StepConsolation-f1mq8nYz.js} +6 -6
- package/chunk/{StepConsolation-DI8kcTkV.js.map → StepConsolation-f1mq8nYz.js.map} +1 -1
- package/chunk/{StepConsolation-DI8kcTkV.js → StepConsolation-yUao3Y71.js} +6 -6
- package/chunk/{StepConsolation-DwEwhgzI.js.map → StepConsolation-yUao3Y71.js.map} +1 -1
- package/chunk/{StepDocUpload-Bv6M-Z6q.js → StepDocUpload-D5CXzeAU.js} +7 -7
- package/chunk/{StepDocUpload-Bv6M-Z6q.js.map → StepDocUpload-D5CXzeAU.js.map} +1 -1
- package/chunk/{StepDocUpload-IOE10Q6k.js → StepDocUpload-D8IflMYV.js} +7 -7
- package/chunk/{StepDocUpload-IOE10Q6k.js.map → StepDocUpload-D8IflMYV.js.map} +1 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-TSQaq3Ek.js +141 -0
- package/chunk/StepDriverLicensePersonalInfoComponent-TSQaq3Ek.js.map +1 -0
- package/chunk/StepDriverLicensePersonalInfoComponent-aUQdYB_b.js +145 -0
- package/chunk/StepDriverLicensePersonalInfoComponent-aUQdYB_b.js.map +1 -0
- package/chunk/{StepEmailLoop-Bo5BbGQu.js → StepEmailLoop--xNmysns.js} +8 -8
- package/chunk/{StepEmailLoop-Bo5BbGQu.js.map → StepEmailLoop--xNmysns.js.map} +1 -1
- package/chunk/{StepEmailLoop-j2264k-N.js → StepEmailLoop-BLT6aG-Y.js} +8 -8
- package/chunk/{StepEmailLoop-j2264k-N.js.map → StepEmailLoop-BLT6aG-Y.js.map} +1 -1
- package/chunk/StepEmploymentPersonalInfo-9DG4e6iW.js +220 -0
- package/chunk/StepEmploymentPersonalInfo-9DG4e6iW.js.map +1 -0
- package/chunk/{StepEmploymentPersonalInfo-DuOMR21_.js → StepEmploymentPersonalInfo-DX3Ax6NO.js} +60 -61
- package/chunk/StepEmploymentPersonalInfo-DX3Ax6NO.js.map +1 -0
- package/chunk/{StepFirstResponderPersonalInfo-4wxW2cgL.js → StepFirstResponderPersonalInfo-CRF48sc2.js} +31 -31
- package/chunk/{StepFirstResponderPersonalInfo-4wxW2cgL.js.map → StepFirstResponderPersonalInfo-CRF48sc2.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CizcIcEl.js → StepFirstResponderPersonalInfo-Ds1kO5m6.js} +31 -31
- package/chunk/{StepFirstResponderPersonalInfo-CizcIcEl.js.map → StepFirstResponderPersonalInfo-Ds1kO5m6.js.map} +1 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-D8mnMCVb.js +178 -0
- package/chunk/StepGeneralIdentityPersonalInfoComponent-D8mnMCVb.js.map +1 -0
- package/chunk/StepGeneralIdentityPersonalInfoComponent-DUsAZ0Xk.js +174 -0
- package/chunk/StepGeneralIdentityPersonalInfoComponent-DUsAZ0Xk.js.map +1 -0
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CTfP5Oeu.js → StepHybridIdentityPersonalInfoComponent-BqBc1AZg.js} +68 -60
- package/chunk/StepHybridIdentityPersonalInfoComponent-BqBc1AZg.js.map +1 -0
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-P8d-Wb4X.js → StepHybridIdentityPersonalInfoComponent-D8LGDNFl.js} +68 -60
- package/chunk/StepHybridIdentityPersonalInfoComponent-D8LGDNFl.js.map +1 -0
- package/chunk/{StepIDCheckLoop-BCJs6usj.js → StepIDCheckLoop-Cwm6IPWs.js} +5 -5
- package/chunk/{StepIDCheckLoop-B3ClVxOi.js.map → StepIDCheckLoop-Cwm6IPWs.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-B3ClVxOi.js → StepIDCheckLoop-YpZuox49.js} +5 -5
- package/chunk/{StepIDCheckLoop-BCJs6usj.js.map → StepIDCheckLoop-YpZuox49.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-B4zpvkRd.js → StepIDCheckLoopOnfido-CldFXtGX.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-DRZ4kP4R.js.map → StepIDCheckLoopOnfido-CldFXtGX.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DRZ4kP4R.js → StepIDCheckLoopOnfido-L6oHneIc.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-B4zpvkRd.js.map → StepIDCheckLoopOnfido-L6oHneIc.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-CFgyZ_rn.js → StepIDCheckLoopRegula-8pxLMKE0.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-CFgyZ_rn.js.map → StepIDCheckLoopRegula-8pxLMKE0.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-Db6p5Cwl.js → StepIDCheckLoopRegula-B0Yv__kO.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-Db6p5Cwl.js.map → StepIDCheckLoopRegula-B0Yv__kO.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-De005KQe.js → StepLicensedProfessionalPersonalInfo-Bzrr0g4R.js} +32 -32
- package/chunk/{StepLicensedProfessionalPersonalInfo-De005KQe.js.map → StepLicensedProfessionalPersonalInfo-Bzrr0g4R.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-uC90t0Ka.js → StepLicensedProfessionalPersonalInfo-oKQFxnEJ.js} +32 -32
- package/chunk/{StepLicensedProfessionalPersonalInfo-uC90t0Ka.js.map → StepLicensedProfessionalPersonalInfo-oKQFxnEJ.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BXeW16K1.js → StepLowIncomePersonalInfo-DOB6gFAS.js} +69 -70
- package/chunk/StepLowIncomePersonalInfo-DOB6gFAS.js.map +1 -0
- package/chunk/StepLowIncomePersonalInfo-qaRKPwSk.js +238 -0
- package/chunk/StepLowIncomePersonalInfo-qaRKPwSk.js.map +1 -0
- package/chunk/{StepMedicalProfessionalPersonalInfo-DYhclBtt.js → StepMedicalProfessionalPersonalInfo-D9k7ENlE.js} +36 -36
- package/chunk/{StepMedicalProfessionalPersonalInfo-DYhclBtt.js.map → StepMedicalProfessionalPersonalInfo-D9k7ENlE.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-EGaswECh.js → StepMedicalProfessionalPersonalInfo-RPKhaZPl.js} +36 -36
- package/chunk/{StepMedicalProfessionalPersonalInfo-EGaswECh.js.map → StepMedicalProfessionalPersonalInfo-RPKhaZPl.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-VUcdpf1p.js → StepMemberPersonalInfo-2IUwBn6z.js} +35 -35
- package/chunk/{StepMemberPersonalInfo-DmqP1UcS.js.map → StepMemberPersonalInfo-2IUwBn6z.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DmqP1UcS.js → StepMemberPersonalInfo-Bza2nmdJ.js} +35 -35
- package/chunk/{StepMemberPersonalInfo-VUcdpf1p.js.map → StepMemberPersonalInfo-Bza2nmdJ.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CBaYoFQM.js → StepMoverPersonalInfo-BfN-eiIO.js} +28 -28
- package/chunk/{StepMoverPersonalInfo-BAy0fOpJ.js.map → StepMoverPersonalInfo-BfN-eiIO.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BAy0fOpJ.js → StepMoverPersonalInfo-D_lsPua4.js} +28 -28
- package/chunk/{StepMoverPersonalInfo-CBaYoFQM.js.map → StepMoverPersonalInfo-D_lsPua4.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BU8tncVB.js → StepOverrideComponent-Ld6S6tQi.js} +7 -7
- package/chunk/{StepOverrideComponent-BU8tncVB.js.map → StepOverrideComponent-Ld6S6tQi.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Bo0bkoYg.js → StepOverrideComponent-Mf03I7W7.js} +7 -7
- package/chunk/{StepOverrideComponent-Bo0bkoYg.js.map → StepOverrideComponent-Mf03I7W7.js.map} +1 -1
- package/chunk/{StepSMSLoop-usK-uwDi.js → StepSMSLoop-9sxMk7gX.js} +5 -5
- package/chunk/{StepSMSLoop-DLRGvoY8.js.map → StepSMSLoop-9sxMk7gX.js.map} +1 -1
- package/chunk/{StepSMSLoop-DLRGvoY8.js → StepSMSLoop-Bcx24Ycx.js} +5 -5
- package/chunk/{StepSMSLoop-usK-uwDi.js.map → StepSMSLoop-Bcx24Ycx.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-Dr0IZbPK.js → StepSocialSecurityNumber-7clvuQce.js} +9 -9
- package/chunk/{StepSocialSecurityNumber-Dr0IZbPK.js.map → StepSocialSecurityNumber-7clvuQce.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-qFfdO1Gp.js → StepSocialSecurityNumber-DruKpXOw.js} +9 -9
- package/chunk/{StepSocialSecurityNumber-qFfdO1Gp.js.map → StepSocialSecurityNumber-DruKpXOw.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-B-RKUSVb.js → StepStudentPersonalInfo-BzMOGhN1.js} +38 -38
- package/chunk/{StepStudentPersonalInfo-A3yGbDk7.js.map → StepStudentPersonalInfo-BzMOGhN1.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-A3yGbDk7.js → StepStudentPersonalInfo-Dw1ljSGU.js} +38 -38
- package/chunk/{StepStudentPersonalInfo-B-RKUSVb.js.map → StepStudentPersonalInfo-Dw1ljSGU.js.map} +1 -1
- package/chunk/{StepSuccess-Dviigo8q.js → StepSuccess-DTqu9PmR.js} +11 -11
- package/chunk/{StepSuccess-Dviigo8q.js.map → StepSuccess-DTqu9PmR.js.map} +1 -1
- package/chunk/{StepSuccess-CDyGNq3Q.js → StepSuccess-ICuC7CFW.js} +13 -13
- package/chunk/{StepSuccess-CDyGNq3Q.js.map → StepSuccess-ICuC7CFW.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-DUZmMYli.js → StepTeacherPersonalInfo-BhvBqRYQ.js} +34 -34
- package/chunk/{StepTeacherPersonalInfo-D4UTbPDB.js.map → StepTeacherPersonalInfo-BhvBqRYQ.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-D4UTbPDB.js → StepTeacherPersonalInfo-Ds2sDRzl.js} +34 -34
- package/chunk/{StepTeacherPersonalInfo-DUZmMYli.js.map → StepTeacherPersonalInfo-Ds2sDRzl.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-D_yKCvzI.js → TeacherSchoolComponent-CzT9PLGe.js} +8 -8
- package/chunk/{TeacherSchoolComponent-CPoc8ceQ.js.map → TeacherSchoolComponent-CzT9PLGe.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-CPoc8ceQ.js → TeacherSchoolComponent-D9M32gJE.js} +15 -15
- package/chunk/{TeacherSchoolComponent-D_yKCvzI.js.map → TeacherSchoolComponent-D9M32gJE.js.map} +1 -1
- package/chunk/TestingRouteOverrides-EggQSvgh.js +4 -4
- package/chunk/TestingRouteOverrides-ipf_F-iY.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-BBN8jYxF.js → countryUtils-CM4nPYrB.js} +5 -5
- package/chunk/{countryUtils-BBN8jYxF.js.map → countryUtils-CM4nPYrB.js.map} +1 -1
- package/chunk/countryUtils-Df3Rcr8q.js +12 -0
- package/chunk/{countryUtils-n_5QoHGV.js.map → countryUtils-Df3Rcr8q.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-BbUU6siB.js → downshift.esm-BUyxJQSO.js} +5 -5
- package/chunk/{downshift.esm-CF8pnAPi.js.map → downshift.esm-BUyxJQSO.js.map} +1 -1
- package/chunk/{downshift.esm-CF8pnAPi.js → downshift.esm-CQ910rwo.js} +5 -5
- package/chunk/{downshift.esm-BbUU6siB.js.map → downshift.esm-CQ910rwo.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-DHI3R7ys.js +4 -4
- package/chunk/empties-Dhc64eA5.js +4 -4
- package/chunk/en-GB-BBkjjtqq.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-BlwolTIT.js +4 -4
- package/chunk/hooks-gC9DtNY1.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-CvSmE54g.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-CyXcV_93.js +4 -4
- package/chunk/jsx-runtime-JSlXFmKD.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-Dpf6dNc6.js +4 -4
- package/chunk/mocks-DrV8NINc.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-CRzdSTAR.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/programThemeGetters-CdBaEHVT.js +188 -0
- package/chunk/programThemeGetters-CdBaEHVT.js.map +1 -0
- package/chunk/programThemeGetters-DhVXOl92.js +182 -0
- package/chunk/programThemeGetters-DhVXOl92.js.map +1 -0
- 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-Bxse3jnq.js → stepComponentHelpers-C6PguBPd.js} +35 -42
- package/chunk/stepComponentHelpers-C6PguBPd.js.map +1 -0
- package/chunk/{stepComponentHelpers-CQUMKZ_f.js → stepComponentHelpers-CLUoIwIK.js} +35 -42
- package/chunk/stepComponentHelpers-CLUoIwIK.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-BW9WTICZ.js → useCollectFieldsEndpoint-C0RomFpQ.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-BW9WTICZ.js.map → useCollectFieldsEndpoint-C0RomFpQ.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DBKghe_8.js → useCollectFieldsEndpoint-DhEB0r4Q.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-DBKghe_8.js.map → useCollectFieldsEndpoint-DhEB0r4Q.js.map} +1 -1
- package/chunk/useMetrics-C3KNudJk.js +4 -4
- package/chunk/useMetrics-Cjo0Vkjx.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 +72 -73
- package/sheerid.js.map +1 -1
- package/chunk/ApiUrls-mCK2IKFF.js +0 -51
- package/chunk/ApiUrls-mCK2IKFF.js.map +0 -1
- package/chunk/ApiUrls-ycoYioq4.js +0 -45
- package/chunk/ApiUrls-ycoYioq4.js.map +0 -1
- package/chunk/StateSelectComponent-C05RJO04.js +0 -38
- package/chunk/StateSelectComponent-C05RJO04.js.map +0 -1
- package/chunk/StateSelectComponent-og_G8R5A.js +0 -42
- package/chunk/StateSelectComponent-og_G8R5A.js.map +0 -1
- package/chunk/StepAgePersonalInfo-DIOOXX9y.js +0 -176
- package/chunk/StepCollectMilitaryPersonalInfoComponent-B6L54gOh.js +0 -246
- package/chunk/StepCollectMilitaryPersonalInfoComponent-B6L54gOh.js.map +0 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-BhWPQoWG.js +0 -250
- package/chunk/StepCollectMilitaryPersonalInfoComponent-BhWPQoWG.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-DtyiAaDl.js +0 -373
- package/chunk/StepCollectPersonalInfo-DtyiAaDl.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-Mn8W7-0u.js +0 -369
- package/chunk/StepCollectPersonalInfo-Mn8W7-0u.js.map +0 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-CT2uHtsZ.js +0 -142
- package/chunk/StepDriverLicensePersonalInfoComponent-CT2uHtsZ.js.map +0 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-DxgQc-yw.js +0 -146
- package/chunk/StepDriverLicensePersonalInfoComponent-DxgQc-yw.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-B2vkSor6.js +0 -221
- package/chunk/StepEmploymentPersonalInfo-B2vkSor6.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-DuOMR21_.js.map +0 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-CTfP5Oeu.js.map +0 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-P8d-Wb4X.js.map +0 -1
- package/chunk/StepHybridIdentityPersonalInfoComponent-BRmrt3mv.js +0 -188
- package/chunk/StepHybridIdentityPersonalInfoComponent-BRmrt3mv.js.map +0 -1
- package/chunk/StepHybridIdentityPersonalInfoComponent-ErhEZ-zI.js +0 -184
- package/chunk/StepHybridIdentityPersonalInfoComponent-ErhEZ-zI.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-BXeW16K1.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-DeQ6ug4-.js +0 -239
- package/chunk/StepLowIncomePersonalInfo-DeQ6ug4-.js.map +0 -1
- package/chunk/countryUtils-n_5QoHGV.js +0 -12
- package/chunk/programThemeGetters-DYWYXv-a.js +0 -154
- package/chunk/programThemeGetters-DYWYXv-a.js.map +0 -1
- package/chunk/programThemeGetters-VBnkSxuj.js +0 -150
- package/chunk/programThemeGetters-VBnkSxuj.js.map +0 -1
- package/chunk/stepComponentHelpers-Bxse3jnq.js.map +0 -1
- package/chunk/stepComponentHelpers-CQUMKZ_f.js.map +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.290.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1790025869603
|
|
5
|
+
* BUILD_DATE: Mon Sep 21 2026 21:24:29 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: c0fd12478ebbf79e09888ff6cc408f0695f12ab0
|
|
7
7
|
*/
|
|
8
8
|
import { Ot as e, n as t } from "./options-CRzdSTAR.js";
|
|
9
9
|
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-CyXcV_93.js";
|
|
10
10
|
import { b as o } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as s } from "./FormFooterComponent-
|
|
11
|
+
import { h as s } from "./FormFooterComponent-Db94BTNT.js";
|
|
12
12
|
import { n as c } from "../sheerid.js";
|
|
13
|
-
import { t as l } from "./useCollectFieldsEndpoint-
|
|
14
|
-
import { a as u,
|
|
15
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
16
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-
|
|
17
|
-
import { t as T } from "./BirthDateComponent-
|
|
18
|
-
import { t as E } from "./PostalCodeComponent-
|
|
19
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
20
|
-
import { t as O } from "./ExtraMessage-
|
|
21
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
23
|
-
import { t as j } from "./countryUtils-
|
|
24
|
-
import { t as M } from "./StatusComponent-
|
|
25
|
-
import { t as N } from "./MedicalProfessionalOrganizationComponent-
|
|
26
|
-
import { t as P } from "./MemberIdComponent-
|
|
13
|
+
import { t as l } from "./useCollectFieldsEndpoint-DhEB0r4Q.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-CLUoIwIK.js";
|
|
15
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-CeJZh2AO.js";
|
|
16
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-CdZymKZb.js";
|
|
17
|
+
import { t as T } from "./BirthDateComponent-2PEmSvVv.js";
|
|
18
|
+
import { t as E } from "./PostalCodeComponent-DNdUR9Xg.js";
|
|
19
|
+
import { t as D } from "./CountryComponentWrapper-D_v3ee4V.js";
|
|
20
|
+
import { t as O } from "./ExtraMessage-Bhmq_Waj.js";
|
|
21
|
+
import { t as k } from "./ChangeLocaleComponent-Slt2XjmB.js";
|
|
22
|
+
import { t as A } from "./PersonalInfoStepWrapper-BIbUswfn.js";
|
|
23
|
+
import { t as j } from "./countryUtils-Df3Rcr8q.js";
|
|
24
|
+
import { t as M } from "./StatusComponent-DZu1lz0O.js";
|
|
25
|
+
import { t as N } from "./MedicalProfessionalOrganizationComponent-B6hySwWt.js";
|
|
26
|
+
import { t as P } from "./MemberIdComponent-BnJLiVV-.js";
|
|
27
27
|
//#region src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx
|
|
28
28
|
var F = /* @__PURE__ */ e(r(), 1), I = a(), L = {
|
|
29
29
|
AT: "gbrNummer",
|
|
@@ -40,13 +40,13 @@ var F = /* @__PURE__ */ e(r(), 1), I = a(), L = {
|
|
|
40
40
|
};
|
|
41
41
|
}, z = n(({ intl: e, verificationService: n }) => {
|
|
42
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 =
|
|
43
|
+
let i = d(r, e, t);
|
|
44
44
|
n.updateViewModel(i);
|
|
45
45
|
}, { isFieldOptional: U, availableStatuses: W } = l({
|
|
46
46
|
verificationId: L.verificationId,
|
|
47
47
|
currentStep: L.currentStep,
|
|
48
48
|
viewModel: r
|
|
49
|
-
}), G = U("memberId"), K = r.countryChoice?.value, q = j(n.programTheme, K), J =
|
|
49
|
+
}), G = U("memberId"), K = r.countryChoice?.value, q = j(n.programTheme, K), J = f(e, W ?? L.availableStatuses);
|
|
50
50
|
return F.useEffect(() => {
|
|
51
51
|
let e = (n.viewModel?.fieldsToSkipValidation || []).filter((e) => e !== "memberId");
|
|
52
52
|
G ? n.updateViewModel({ fieldsToSkipValidation: e }, { partial: !0 }) : n.updateViewModel({ fieldsToSkipValidation: [...e, "memberId"] }, { partial: !0 });
|
|
@@ -61,17 +61,17 @@ var F = /* @__PURE__ */ e(r(), 1), I = a(), L = {
|
|
|
61
61
|
/* @__PURE__ */ (0, I.jsx)(k, { verificationService: n }),
|
|
62
62
|
/* @__PURE__ */ (0, I.jsx)(D, {
|
|
63
63
|
verificationService: n,
|
|
64
|
-
disabled:
|
|
64
|
+
disabled: g("country")?.disabled
|
|
65
65
|
}),
|
|
66
66
|
/* @__PURE__ */ (0, I.jsx)(M, {
|
|
67
67
|
segmentId: "medical",
|
|
68
68
|
value: {
|
|
69
69
|
value: r.status,
|
|
70
|
-
label:
|
|
70
|
+
label: h(e, r.status)
|
|
71
71
|
},
|
|
72
72
|
isErrored: !!a.status,
|
|
73
73
|
options: J,
|
|
74
|
-
disabled: q ||
|
|
74
|
+
disabled: q || g("status")?.disabled,
|
|
75
75
|
explanation: q ? /* @__PURE__ */ (0, I.jsx)(i, {
|
|
76
76
|
id: "chooseCountry",
|
|
77
77
|
defaultMessage: "Choose a country first"
|
|
@@ -83,25 +83,25 @@ var F = /* @__PURE__ */ e(r(), 1), I = a(), L = {
|
|
|
83
83
|
/* @__PURE__ */ (0, I.jsx)(N, {
|
|
84
84
|
isErrored: !!a.organization,
|
|
85
85
|
onChange: (e) => {
|
|
86
|
-
|
|
86
|
+
p(e, n), m("organization", e, n);
|
|
87
87
|
},
|
|
88
88
|
value: n.viewModel.organization,
|
|
89
89
|
verificationService: n,
|
|
90
|
-
disabled:
|
|
90
|
+
disabled: g("organization")?.disabled
|
|
91
91
|
}),
|
|
92
92
|
/* @__PURE__ */ (0, I.jsxs)("div", {
|
|
93
93
|
className: "sid-names",
|
|
94
94
|
children: [/* @__PURE__ */ (0, I.jsx)(_, {
|
|
95
95
|
value: r.firstName,
|
|
96
96
|
isErrored: !!a.firstName,
|
|
97
|
-
disabled:
|
|
97
|
+
disabled: g("firstName")?.disabled,
|
|
98
98
|
onChange: (e) => {
|
|
99
99
|
H("firstName", e), m("firstName", e, n);
|
|
100
100
|
}
|
|
101
101
|
}), /* @__PURE__ */ (0, I.jsx)(v, {
|
|
102
102
|
value: r.lastName,
|
|
103
103
|
isErrored: !!a.lastName,
|
|
104
|
-
disabled:
|
|
104
|
+
disabled: g("lastName")?.disabled,
|
|
105
105
|
onChange: (e) => {
|
|
106
106
|
H("lastName", e), m("lastName", e, n);
|
|
107
107
|
}
|
|
@@ -110,7 +110,7 @@ var F = /* @__PURE__ */ e(r(), 1), I = a(), L = {
|
|
|
110
110
|
/* @__PURE__ */ (0, I.jsx)(T, {
|
|
111
111
|
errorId: a.birthDate,
|
|
112
112
|
locale: V,
|
|
113
|
-
disabled:
|
|
113
|
+
disabled: g("birthDate")?.disabled,
|
|
114
114
|
onChange: (e) => {
|
|
115
115
|
H("birthDate", e), m("birthDate", e, n);
|
|
116
116
|
},
|
|
@@ -122,7 +122,7 @@ var F = /* @__PURE__ */ e(r(), 1), I = a(), L = {
|
|
|
122
122
|
H("postalCode", e), m("postalCode", e, n);
|
|
123
123
|
},
|
|
124
124
|
value: r.postalCode,
|
|
125
|
-
disabled:
|
|
125
|
+
disabled: g("postalCode")?.disabled,
|
|
126
126
|
explanation: /* @__PURE__ */ (0, I.jsx)(i, {
|
|
127
127
|
id: "postalCodeExplanation",
|
|
128
128
|
defaultMessage: "Use the location on file with your licensing body"
|
|
@@ -138,8 +138,8 @@ var F = /* @__PURE__ */ e(r(), 1), I = a(), L = {
|
|
|
138
138
|
onChange: (e) => {
|
|
139
139
|
H("email", e), m("email", e, n);
|
|
140
140
|
},
|
|
141
|
-
onKeyDown: (e) =>
|
|
142
|
-
disabled:
|
|
141
|
+
onKeyDown: (e) => u(e),
|
|
142
|
+
disabled: g("email")?.disabled
|
|
143
143
|
}),
|
|
144
144
|
n.programTheme.isSmsNotifierConfigured || n.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, I.jsx)(b, {
|
|
145
145
|
isRequired: !!n.programTheme.smsLoopEnabled,
|
|
@@ -149,13 +149,13 @@ var F = /* @__PURE__ */ e(r(), 1), I = a(), L = {
|
|
|
149
149
|
H("phoneNumber", e), m("phoneNumber", e, n);
|
|
150
150
|
},
|
|
151
151
|
selectedCountryCode: r.countryChoice && r.countryChoice.value,
|
|
152
|
-
disabled:
|
|
152
|
+
disabled: g("phoneNumber")?.disabled
|
|
153
153
|
}) : null,
|
|
154
154
|
G && /* @__PURE__ */ (0, I.jsx)(P, {
|
|
155
155
|
value: r.memberId,
|
|
156
156
|
isErrored: !!a.memberId,
|
|
157
|
-
isRequired:
|
|
158
|
-
disabled:
|
|
157
|
+
isRequired: g("memberId")?.requireIfOptional,
|
|
158
|
+
disabled: g("memberId")?.disabled,
|
|
159
159
|
onChange: (e) => {
|
|
160
160
|
H("memberId", e), m("memberId", e, n);
|
|
161
161
|
},
|
|
@@ -182,7 +182,7 @@ var F = /* @__PURE__ */ e(r(), 1), I = a(), L = {
|
|
|
182
182
|
}), m("marketConsentValue", e, n);
|
|
183
183
|
},
|
|
184
184
|
viewModel: r,
|
|
185
|
-
disabled:
|
|
185
|
+
disabled: g("marketConsentValue")?.disabled
|
|
186
186
|
}),
|
|
187
187
|
/* @__PURE__ */ (0, I.jsx)(O, {
|
|
188
188
|
verificationService: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-DYhclBtt.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;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN,GAEM,KAA0B,MAAoB;CAClD,IAAM,IACJ,EAA6B,MAAY;CAC3C,OAAO;EACL,UAAU,mCAAmC,EAAkB;EAC/D,gBAAgB,mCAAmC,EAAkB;CACvE;AACF,GAsPa,IAA+C,GApPR,EAClD,SACA,6BACuD;CACvD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,KACJ,GACA,MACG;EACH,IAAM,IAAY,EAAsB,GAAW,GAAK,CAAK;EAC7D,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,oBAAiB,mBAAmB,MAAoB,EAAyB;EACvF,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;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,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmC,YAAY;MAC7C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-D9k7ENlE.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 StepMedical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|
|
@@ -4,30 +4,30 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.290.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790025873709
|
|
9
|
+
* BUILD_DATE: Mon Sep 21 2026 21:24:33 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: c0fd12478ebbf79e09888ff6cc408f0695f12ab0
|
|
11
11
|
*/
|
|
12
12
|
import { Ot as e, s as t } from "./intl-CvSmE54g.js";
|
|
13
13
|
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-JSlXFmKD.js";
|
|
15
|
-
import { p as s } from "./FormFooterComponent-
|
|
15
|
+
import { p as s } from "./FormFooterComponent-D4QJJ-El.js";
|
|
16
16
|
import { t as c } from "../_mysheerid-preview.js";
|
|
17
|
-
import { t as l } from "./useCollectFieldsEndpoint-
|
|
18
|
-
import { a as u,
|
|
19
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
20
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-
|
|
21
|
-
import { t as T } from "./BirthDateComponent-
|
|
22
|
-
import { t as E } from "./PostalCodeComponent-
|
|
23
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
24
|
-
import { t as O } from "./ExtraMessage-
|
|
25
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
26
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
27
|
-
import { t as j } from "./countryUtils-
|
|
28
|
-
import { t as M } from "./StatusComponent-
|
|
29
|
-
import { t as N } from "./MedicalProfessionalOrganizationComponent-
|
|
30
|
-
import { t as P } from "./MemberIdComponent-
|
|
17
|
+
import { t as l } from "./useCollectFieldsEndpoint-C0RomFpQ.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-C6PguBPd.js";
|
|
19
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-D84uhigA.js";
|
|
20
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-CJYeNqbu.js";
|
|
21
|
+
import { t as T } from "./BirthDateComponent-Cd0cMZrO.js";
|
|
22
|
+
import { t as E } from "./PostalCodeComponent-zteosCwv.js";
|
|
23
|
+
import { t as D } from "./CountryComponentWrapper-DQW_P5GI.js";
|
|
24
|
+
import { t as O } from "./ExtraMessage-CgELJLpn.js";
|
|
25
|
+
import { t as k } from "./ChangeLocaleComponent-LlVAEjO9.js";
|
|
26
|
+
import { t as A } from "./PersonalInfoStepWrapper-DQ75PRWo.js";
|
|
27
|
+
import { t as j } from "./countryUtils-CM4nPYrB.js";
|
|
28
|
+
import { t as M } from "./StatusComponent-8j96MYEP.js";
|
|
29
|
+
import { t as N } from "./MedicalProfessionalOrganizationComponent-CEfnIdC3.js";
|
|
30
|
+
import { t as P } from "./MemberIdComponent-CPlvhVZ8.js";
|
|
31
31
|
//#region src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx
|
|
32
32
|
var F = /* @__PURE__ */ e(i(), 1), I = o(), L = {
|
|
33
33
|
AT: "gbrNummer",
|
|
@@ -44,13 +44,13 @@ var F = /* @__PURE__ */ e(i(), 1), I = o(), L = {
|
|
|
44
44
|
};
|
|
45
45
|
}, z = r(({ intl: e, verificationService: r }) => {
|
|
46
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 =
|
|
47
|
+
let n = d(i, e, t);
|
|
48
48
|
r.updateViewModel(n);
|
|
49
49
|
}, { isFieldOptional: U, availableStatuses: W } = l({
|
|
50
50
|
verificationId: L.verificationId,
|
|
51
51
|
currentStep: L.currentStep,
|
|
52
52
|
viewModel: i
|
|
53
|
-
}), G = U("memberId"), K = i.countryChoice?.value, q = j(r.programTheme, K), J =
|
|
53
|
+
}), G = U("memberId"), K = i.countryChoice?.value, q = j(r.programTheme, K), J = f(e, W ?? L.availableStatuses);
|
|
54
54
|
return F.useEffect(() => {
|
|
55
55
|
let e = (r.viewModel?.fieldsToSkipValidation || []).filter((e) => e !== "memberId");
|
|
56
56
|
G ? r.updateViewModel({ fieldsToSkipValidation: e }, { partial: !0 }) : r.updateViewModel({ fieldsToSkipValidation: [...e, "memberId"] }, { partial: !0 });
|
|
@@ -65,17 +65,17 @@ var F = /* @__PURE__ */ e(i(), 1), I = o(), L = {
|
|
|
65
65
|
/* @__PURE__ */ (0, I.jsx)(k, { verificationService: r }),
|
|
66
66
|
/* @__PURE__ */ (0, I.jsx)(D, {
|
|
67
67
|
verificationService: r,
|
|
68
|
-
disabled:
|
|
68
|
+
disabled: g("country")?.disabled
|
|
69
69
|
}),
|
|
70
70
|
/* @__PURE__ */ (0, I.jsx)(M, {
|
|
71
71
|
segmentId: "medical",
|
|
72
72
|
value: {
|
|
73
73
|
value: i.status,
|
|
74
|
-
label:
|
|
74
|
+
label: h(e, i.status)
|
|
75
75
|
},
|
|
76
76
|
isErrored: !!o.status,
|
|
77
77
|
options: J,
|
|
78
|
-
disabled: q ||
|
|
78
|
+
disabled: q || g("status")?.disabled,
|
|
79
79
|
explanation: q ? /* @__PURE__ */ (0, I.jsx)(a, {
|
|
80
80
|
id: "chooseCountry",
|
|
81
81
|
defaultMessage: "Choose a country first"
|
|
@@ -87,25 +87,25 @@ var F = /* @__PURE__ */ e(i(), 1), I = o(), L = {
|
|
|
87
87
|
/* @__PURE__ */ (0, I.jsx)(N, {
|
|
88
88
|
isErrored: !!o.organization,
|
|
89
89
|
onChange: (e) => {
|
|
90
|
-
|
|
90
|
+
p(e, r), m("organization", e, r);
|
|
91
91
|
},
|
|
92
92
|
value: r.viewModel.organization,
|
|
93
93
|
verificationService: r,
|
|
94
|
-
disabled:
|
|
94
|
+
disabled: g("organization")?.disabled
|
|
95
95
|
}),
|
|
96
96
|
/* @__PURE__ */ (0, I.jsxs)("div", {
|
|
97
97
|
className: "sid-names",
|
|
98
98
|
children: [/* @__PURE__ */ (0, I.jsx)(_, {
|
|
99
99
|
value: i.firstName,
|
|
100
100
|
isErrored: !!o.firstName,
|
|
101
|
-
disabled:
|
|
101
|
+
disabled: g("firstName")?.disabled,
|
|
102
102
|
onChange: (e) => {
|
|
103
103
|
H("firstName", e), m("firstName", e, r);
|
|
104
104
|
}
|
|
105
105
|
}), /* @__PURE__ */ (0, I.jsx)(v, {
|
|
106
106
|
value: i.lastName,
|
|
107
107
|
isErrored: !!o.lastName,
|
|
108
|
-
disabled:
|
|
108
|
+
disabled: g("lastName")?.disabled,
|
|
109
109
|
onChange: (e) => {
|
|
110
110
|
H("lastName", e), m("lastName", e, r);
|
|
111
111
|
}
|
|
@@ -114,7 +114,7 @@ var F = /* @__PURE__ */ e(i(), 1), I = o(), L = {
|
|
|
114
114
|
/* @__PURE__ */ (0, I.jsx)(T, {
|
|
115
115
|
errorId: o.birthDate,
|
|
116
116
|
locale: V,
|
|
117
|
-
disabled:
|
|
117
|
+
disabled: g("birthDate")?.disabled,
|
|
118
118
|
onChange: (e) => {
|
|
119
119
|
H("birthDate", e), m("birthDate", e, r);
|
|
120
120
|
},
|
|
@@ -126,7 +126,7 @@ var F = /* @__PURE__ */ e(i(), 1), I = o(), L = {
|
|
|
126
126
|
H("postalCode", e), m("postalCode", e, r);
|
|
127
127
|
},
|
|
128
128
|
value: i.postalCode,
|
|
129
|
-
disabled:
|
|
129
|
+
disabled: g("postalCode")?.disabled,
|
|
130
130
|
explanation: /* @__PURE__ */ (0, I.jsx)(a, {
|
|
131
131
|
id: "postalCodeExplanation",
|
|
132
132
|
defaultMessage: "Use the location on file with your licensing body"
|
|
@@ -142,8 +142,8 @@ var F = /* @__PURE__ */ e(i(), 1), I = o(), L = {
|
|
|
142
142
|
onChange: (e) => {
|
|
143
143
|
H("email", e), m("email", e, r);
|
|
144
144
|
},
|
|
145
|
-
onKeyDown: (e) =>
|
|
146
|
-
disabled:
|
|
145
|
+
onKeyDown: (e) => u(e),
|
|
146
|
+
disabled: g("email")?.disabled
|
|
147
147
|
}),
|
|
148
148
|
r.programTheme.isSmsNotifierConfigured || r.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, I.jsx)(b, {
|
|
149
149
|
isRequired: !!r.programTheme.smsLoopEnabled,
|
|
@@ -153,13 +153,13 @@ var F = /* @__PURE__ */ e(i(), 1), I = o(), L = {
|
|
|
153
153
|
H("phoneNumber", e), m("phoneNumber", e, r);
|
|
154
154
|
},
|
|
155
155
|
selectedCountryCode: i.countryChoice && i.countryChoice.value,
|
|
156
|
-
disabled:
|
|
156
|
+
disabled: g("phoneNumber")?.disabled
|
|
157
157
|
}) : null,
|
|
158
158
|
G && /* @__PURE__ */ (0, I.jsx)(P, {
|
|
159
159
|
value: i.memberId,
|
|
160
160
|
isErrored: !!o.memberId,
|
|
161
|
-
isRequired:
|
|
162
|
-
disabled:
|
|
161
|
+
isRequired: g("memberId")?.requireIfOptional,
|
|
162
|
+
disabled: g("memberId")?.disabled,
|
|
163
163
|
onChange: (e) => {
|
|
164
164
|
H("memberId", e), m("memberId", e, r);
|
|
165
165
|
},
|
|
@@ -186,7 +186,7 @@ var F = /* @__PURE__ */ e(i(), 1), I = o(), L = {
|
|
|
186
186
|
}), m("marketConsentValue", e, r);
|
|
187
187
|
},
|
|
188
188
|
viewModel: i,
|
|
189
|
-
disabled:
|
|
189
|
+
disabled: g("marketConsentValue")?.disabled
|
|
190
190
|
}),
|
|
191
191
|
/* @__PURE__ */ (0, I.jsx)(O, {
|
|
192
192
|
verificationService: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-EGaswECh.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;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN,GAEM,KAA0B,MAAoB;CAClD,IAAM,IACJ,EAA6B,MAAY;CAC3C,OAAO;EACL,UAAU,mCAAmC,EAAkB;EAC/D,gBAAgB,mCAAmC,EAAkB;CACvE;AACF,GAsPa,IAA+C,GApPR,EAClD,SACA,6BACuD;CACvD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,KACJ,GACA,MACG;EACH,IAAM,IAAY,EAAsB,GAAW,GAAK,CAAK;EAC7D,EAAoB,gBAAgB,CAAS;CAC/C,GAE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AAyB;IAA6B;GAAsB,CAAA,CAC7E;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmC,YAAY;MAC7C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-RPKhaZPl.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;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN,GAEM,KAA0B,MAAoB;CAClD,IAAM,IACJ,EAA6B,MAAY;CAC3C,OAAO;EACL,UAAU,mCAAmC,EAAkB;EAC/D,gBAAgB,mCAAmC,EAAkB;CACvE;AACF,GAsPa,IAA+C,GApPR,EAClD,SACA,6BACuD;CACvD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,KACJ,GACA,MACG;EACH,IAAM,IAAY,EAAsB,GAAW,GAAK,CAAK;EAC7D,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,oBAAiB,mBAAmB,MAAoB,EAAyB;EACvF,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GACK,IAAuB,EAAgB,UAAU,GAEjD,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACpB,GACA,KAAmB,EAAqB,iBAC1C;CAkBA,OAhBA,EAAM,gBAAgB;EAGpB,IAAM,KAAY,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QAC5E,MAAO,MAAO,UACjB;EACA,AAAI,IACF,EAAoB,gBAAgB,EAAE,wBAAwB,EAAS,GAAG,EAAE,SAAS,GAAK,CAAC,IAE3F,EAAoB,gBAClB,EAAE,wBAAwB,CAAC,GAAG,GAAU,UAAU,EAAE,GACpD,EAAE,SAAS,GAAK,CAClB;CAEJ,GAAG,CAAC,CAAoB,C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