@sheerid/jslib 2.287.0 → 2.289.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 +900 -900
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-CJrrmHmU.js → AddressComponent-BFEdmLph.js} +6 -6
- package/chunk/{AddressComponent-CAljV9xQ.js.map → AddressComponent-BFEdmLph.js.map} +1 -1
- package/chunk/{AddressComponent-CAljV9xQ.js → AddressComponent-C2mollBp.js} +6 -6
- package/chunk/{AddressComponent-CJrrmHmU.js.map → AddressComponent-C2mollBp.js.map} +1 -1
- package/chunk/AnnouncingHeader-B0Ku-xl_.js +4 -4
- package/chunk/AnnouncingHeader-CXTQdbKG.js +4 -4
- package/chunk/{ApiUrls-Dz_hjktj.js → ApiUrls-mCK2IKFF.js} +5 -5
- package/chunk/{ApiUrls-Dz_hjktj.js.map → ApiUrls-mCK2IKFF.js.map} +1 -1
- package/chunk/{ApiUrls-DNSLMaf_.js → ApiUrls-ycoYioq4.js} +5 -5
- package/chunk/{ApiUrls-DNSLMaf_.js.map → ApiUrls-ycoYioq4.js.map} +1 -1
- package/chunk/{BirthDateComponent-C6inTN_d.js → BirthDateComponent-1FYtxavW.js} +6 -6
- package/chunk/{BirthDateComponent-B6CCdI1w.js.map → BirthDateComponent-1FYtxavW.js.map} +1 -1
- package/chunk/{BirthDateComponent-B6CCdI1w.js → BirthDateComponent-DbILUMIz.js} +6 -6
- package/chunk/{BirthDateComponent-C6inTN_d.js.map → BirthDateComponent-DbILUMIz.js.map} +1 -1
- package/chunk/{CaptchaComponent-BOIt_QNQ.js → CaptchaComponent-KFLJ56dX.js} +8 -8
- package/chunk/{CaptchaComponent-BOIt_QNQ.js.map → CaptchaComponent-KFLJ56dX.js.map} +1 -1
- package/chunk/{CaptchaComponent-COMDyzye.js → CaptchaComponent-L3WoxJAC.js} +8 -8
- package/chunk/{CaptchaComponent-COMDyzye.js.map → CaptchaComponent-L3WoxJAC.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BbkEb3a6.js → ChangeLocaleComponent-BcyU0Zgd.js} +6 -6
- package/chunk/{ChangeLocaleComponent-BbkEb3a6.js.map → ChangeLocaleComponent-BcyU0Zgd.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-jY0EP0y4.js → ChangeLocaleComponent-Wju8NvwL.js} +6 -6
- package/chunk/{ChangeLocaleComponent-jY0EP0y4.js.map → ChangeLocaleComponent-Wju8NvwL.js.map} +1 -1
- package/chunk/{City-D4i6_4Pu.js → City-BXTk8t3d.js} +6 -6
- package/chunk/{City-BEHiaazP.js.map → City-BXTk8t3d.js.map} +1 -1
- package/chunk/{City-BEHiaazP.js → City-mQnP6dP2.js} +6 -6
- package/chunk/{City-D4i6_4Pu.js.map → City-mQnP6dP2.js.map} +1 -1
- package/chunk/{CollegeNameComponent-Dlypt-Wd.js → CollegeNameComponent-Bov_i0oT.js} +7 -7
- package/chunk/{CollegeNameComponent-DNCDgzhk.js.map → CollegeNameComponent-Bov_i0oT.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DNCDgzhk.js → CollegeNameComponent-Df_VMbdr.js} +7 -7
- package/chunk/{CollegeNameComponent-Dlypt-Wd.js.map → CollegeNameComponent-Df_VMbdr.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BAOwMLHJ.js +4 -4
- package/chunk/CopyToClipboardComponent-BejK3fLR.js +4 -4
- package/chunk/{CountryComponentWrapper-D0nzEytT.js → CountryComponentWrapper-BSg_JhlH.js} +9 -9
- package/chunk/{CountryComponentWrapper-D0nzEytT.js.map → CountryComponentWrapper-BSg_JhlH.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-T2Bpp2gB.js → CountryComponentWrapper-dG5Zqfee.js} +9 -9
- package/chunk/{CountryComponentWrapper-T2Bpp2gB.js.map → CountryComponentWrapper-dG5Zqfee.js.map} +1 -1
- package/chunk/{DischargeDateComponent-C-HrV34I.js → DischargeDateComponent-C6BB3YwP.js} +8 -8
- package/chunk/{DischargeDateComponent-C-HrV34I.js.map → DischargeDateComponent-C6BB3YwP.js.map} +1 -1
- package/chunk/{DischargeDateComponent-bi1txW-r.js → DischargeDateComponent-D8yMgfh-.js} +8 -8
- package/chunk/{DischargeDateComponent-bi1txW-r.js.map → DischargeDateComponent-D8yMgfh-.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-ayI3u5Hr.js → DriverLicenseNumberComponent-C_wuryKm.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-CLNtUUgc.js.map → DriverLicenseNumberComponent-C_wuryKm.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-CLNtUUgc.js → DriverLicenseNumberComponent-i_ywdo3P.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-ayI3u5Hr.js.map → DriverLicenseNumberComponent-i_ywdo3P.js.map} +1 -1
- package/chunk/{EmailLoopPending-DNypwI3A.js → EmailLoopPending-DThAR1Iv.js} +6 -6
- package/chunk/{EmailLoopPending-D48nTSsQ.js.map → EmailLoopPending-DThAR1Iv.js.map} +1 -1
- package/chunk/{EmailLoopPending-D48nTSsQ.js → EmailLoopPending-Du6R4zif.js} +6 -6
- package/chunk/{EmailLoopPending-DNypwI3A.js.map → EmailLoopPending-Du6R4zif.js.map} +1 -1
- package/chunk/{ExtraMessage-D5tofP3l.js → ExtraMessage-BZ9XdOdL.js} +5 -5
- package/chunk/{ExtraMessage-D5tofP3l.js.map → ExtraMessage-BZ9XdOdL.js.map} +1 -1
- package/chunk/{ExtraMessage-D6mjCJWc.js → ExtraMessage-D1j0TLE3.js} +5 -5
- package/chunk/{ExtraMessage-D6mjCJWc.js.map → ExtraMessage-D1j0TLE3.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BXQqq3cc.js → FirstResponderOrganizationComponent-D5UbIVyE.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-BXQqq3cc.js.map → FirstResponderOrganizationComponent-D5UbIVyE.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Cz-4YY2n.js → FirstResponderOrganizationComponent-D9VmCGiC.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-Cz-4YY2n.js.map → FirstResponderOrganizationComponent-D9VmCGiC.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DfPHGWSM.js → FormFieldInputSelect-Cf2843FO.js} +5 -5
- package/chunk/{FormFieldInputSelect-BD0avAFv.js.map → FormFieldInputSelect-Cf2843FO.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BD0avAFv.js → FormFieldInputSelect-DFkZlHDE.js} +5 -5
- package/chunk/{FormFieldInputSelect-DfPHGWSM.js.map → FormFieldInputSelect-DFkZlHDE.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-CexU7aJK.js → FormFieldTypeahead-CDKGsEZB.js} +7 -7
- package/chunk/{FormFieldTypeahead-CexU7aJK.js.map → FormFieldTypeahead-CDKGsEZB.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BGUkqjm_.js → FormFieldTypeahead-DWAxDXKP.js} +7 -7
- package/chunk/{FormFieldTypeahead-BGUkqjm_.js.map → FormFieldTypeahead-DWAxDXKP.js.map} +1 -1
- package/chunk/{FormFooterComponent-DdlG9tS3.js → FormFooterComponent-BrOM_pQ9.js} +7 -7
- package/chunk/{FormFooterComponent-DdlG9tS3.js.map → FormFooterComponent-BrOM_pQ9.js.map} +1 -1
- package/chunk/{FormFooterComponent-BiJ-9fwP.js → FormFooterComponent-CP0-Wobs.js} +7 -7
- package/chunk/{FormFooterComponent-BiJ-9fwP.js.map → FormFooterComponent-CP0-Wobs.js.map} +1 -1
- package/chunk/{FormSelectChoice-DiU96It5.js → FormSelectChoice-DWG9hYtf.js} +6 -6
- package/chunk/{FormSelectChoice-DK4cBs4M.js.map → FormSelectChoice-DWG9hYtf.js.map} +1 -1
- package/chunk/{FormSelectChoice-DK4cBs4M.js → FormSelectChoice-yNUPRIKO.js} +6 -6
- package/chunk/{FormSelectChoice-DiU96It5.js.map → FormSelectChoice-yNUPRIKO.js.map} +1 -1
- package/chunk/InputText-CMu4ei8e.js +4 -4
- package/chunk/InputText-dflyPe3J.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-DrNi1J9O.js → LicensedProfessionalOrganizationComponent-CdVLOkti.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-CRbyZ67V.js.map → LicensedProfessionalOrganizationComponent-CdVLOkti.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CRbyZ67V.js → LicensedProfessionalOrganizationComponent-FBu3_XDq.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-DrNi1J9O.js.map → LicensedProfessionalOrganizationComponent-FBu3_XDq.js.map} +1 -1
- package/chunk/LogoComponent-BDhMcJvy.js +4 -4
- package/chunk/LogoComponent-DASXTR4v.js +4 -4
- package/chunk/{LowIncomeOrganizationComponent-BqttAUep.js → LowIncomeOrganizationComponent-BI4Lscrc.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-BqttAUep.js.map → LowIncomeOrganizationComponent-BI4Lscrc.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DJeHRnKV.js → LowIncomeOrganizationComponent-DrNEvBR8.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-DJeHRnKV.js.map → LowIncomeOrganizationComponent-DrNEvBR8.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-StqqPfKh.js → MedicalProfessionalOrganizationComponent-BnVU_DtU.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-C9tC4-n0.js.map → MedicalProfessionalOrganizationComponent-BnVU_DtU.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-C9tC4-n0.js → MedicalProfessionalOrganizationComponent-i1AHUB2l.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-StqqPfKh.js.map → MedicalProfessionalOrganizationComponent-i1AHUB2l.js.map} +1 -1
- package/chunk/{MemberIdComponent--135FhsS.js → MemberIdComponent-BJIWA0U-.js} +6 -6
- package/chunk/{MemberIdComponent--135FhsS.js.map → MemberIdComponent-BJIWA0U-.js.map} +1 -1
- package/chunk/{MemberIdComponent-DK6TUfxB.js → MemberIdComponent-CJIKRgkP.js} +6 -6
- package/chunk/{MemberIdComponent-DK6TUfxB.js.map → MemberIdComponent-CJIKRgkP.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CTgnzgiz.js → MembershipOrganizationComponent-B2SfBgyQ.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-CTgnzgiz.js.map → MembershipOrganizationComponent-B2SfBgyQ.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DG2QLHC2.js → MembershipOrganizationComponent-lCfT5hKV.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-DG2QLHC2.js.map → MembershipOrganizationComponent-lCfT5hKV.js.map} +1 -1
- package/chunk/{Message-BBifXgZ3.js → Message-C5LUKoZw.js} +978 -976
- package/chunk/{Message-BBifXgZ3.js.map → Message-C5LUKoZw.js.map} +1 -1
- package/chunk/{Message-BL20LTBg.js → Message-CZD2IHWF.js} +5 -5
- package/chunk/{Message-BL20LTBg.js.map → Message-CZD2IHWF.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-BNUMtb0a.js → PersonalInfoStepSubmitButton-DnepwbFs.js} +10 -10
- package/chunk/{PersonalInfoStepSubmitButton-BNUMtb0a.js.map → PersonalInfoStepSubmitButton-DnepwbFs.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-NagYqca5.js → PersonalInfoStepSubmitButton-Q6g7KHwI.js} +10 -10
- package/chunk/{PersonalInfoStepSubmitButton-NagYqca5.js.map → PersonalInfoStepSubmitButton-Q6g7KHwI.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-9I7Aa79o.js → PersonalInfoStepWrapper-B7pfOMf3.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-9I7Aa79o.js.map → PersonalInfoStepWrapper-B7pfOMf3.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DaH1p-AU.js → PersonalInfoStepWrapper-D2GlDkO6.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-DaH1p-AU.js.map → PersonalInfoStepWrapper-D2GlDkO6.js.map} +1 -1
- package/chunk/{PostalCodeComponent-CuiH815C.js → PostalCodeComponent-C-0blxoe.js} +6 -6
- package/chunk/{PostalCodeComponent-CuiH815C.js.map → PostalCodeComponent-C-0blxoe.js.map} +1 -1
- package/chunk/{PostalCodeComponent-Dg4YvxkC.js → PostalCodeComponent-C50XmPmv.js} +6 -6
- package/chunk/{PostalCodeComponent-Dg4YvxkC.js.map → PostalCodeComponent-C50XmPmv.js.map} +1 -1
- package/chunk/{SSN-D3NAFGpA.js → SSN-CjLxLrYN.js} +6 -6
- package/chunk/{SSN-D3NAFGpA.js.map → SSN-CjLxLrYN.js.map} +1 -1
- package/chunk/{SSN-x8cc3vng.js → SSN-DBPw87L6.js} +6 -6
- package/chunk/{SSN-x8cc3vng.js.map → SSN-DBPw87L6.js.map} +1 -1
- package/chunk/{StateSelectComponent-B3BsbyFa.js → StateSelectComponent-C05RJO04.js} +6 -6
- package/chunk/{StateSelectComponent-B3BsbyFa.js.map → StateSelectComponent-C05RJO04.js.map} +1 -1
- package/chunk/{StateSelectComponent-DBYcxzkn.js → StateSelectComponent-og_G8R5A.js} +6 -6
- package/chunk/{StateSelectComponent-DBYcxzkn.js.map → StateSelectComponent-og_G8R5A.js.map} +1 -1
- package/chunk/{StatusComponent-Cv67yZ8R.js → StatusComponent-CceeOAxy.js} +7 -7
- package/chunk/{StatusComponent-BxbVuoiu.js.map → StatusComponent-CceeOAxy.js.map} +1 -1
- package/chunk/{StatusComponent-BxbVuoiu.js → StatusComponent-DPs6MHNn.js} +7 -7
- package/chunk/{StatusComponent-Cv67yZ8R.js.map → StatusComponent-DPs6MHNn.js.map} +1 -1
- package/chunk/StepAgePersonalInfo-Bwdjo9Zy.js +172 -0
- package/chunk/StepAgePersonalInfo-Bwdjo9Zy.js.map +1 -0
- package/chunk/StepAgePersonalInfo-DIOOXX9y.js +176 -0
- package/chunk/StepAgePersonalInfo-DIOOXX9y.js.map +1 -0
- package/chunk/StepCard-DQ9JkAjb.js +4 -4
- package/chunk/StepCard-EHeqFY3Y.js +4 -4
- package/chunk/{StepCollectIdentifier-DlpQHPwr.js → StepCollectIdentifier-CSGIiyFf.js} +9 -9
- package/chunk/{StepCollectIdentifier-DlpQHPwr.js.map → StepCollectIdentifier-CSGIiyFf.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-D4bSGAgT.js → StepCollectIdentifier-nrcBJaBK.js} +9 -9
- package/chunk/{StepCollectIdentifier-D4bSGAgT.js.map → StepCollectIdentifier-nrcBJaBK.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-MqA789NL.js → StepCollectMilitaryPersonalInfoComponent-B6L54gOh.js} +58 -58
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CQuEF5Hc.js.map → StepCollectMilitaryPersonalInfoComponent-B6L54gOh.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CQuEF5Hc.js → StepCollectMilitaryPersonalInfoComponent-BhWPQoWG.js} +58 -58
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-MqA789NL.js.map → StepCollectMilitaryPersonalInfoComponent-BhWPQoWG.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-Blkdueac.js → StepCollectPersonalInfo-DtyiAaDl.js} +36 -36
- package/chunk/{StepCollectPersonalInfo-DYZwWO8s.js.map → StepCollectPersonalInfo-DtyiAaDl.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DYZwWO8s.js → StepCollectPersonalInfo-Mn8W7-0u.js} +36 -36
- package/chunk/{StepCollectPersonalInfo-Blkdueac.js.map → StepCollectPersonalInfo-Mn8W7-0u.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-DmkwcwhP.js → StepCompleteAuthentication-CJpJoWRq.js} +8 -8
- package/chunk/{StepCompleteAuthentication-oWf-NQ40.js.map → StepCompleteAuthentication-CJpJoWRq.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-oWf-NQ40.js → StepCompleteAuthentication-kKdUhF9e.js} +8 -8
- package/chunk/{StepCompleteAuthentication-DmkwcwhP.js.map → StepCompleteAuthentication-kKdUhF9e.js.map} +1 -1
- package/chunk/{StepConsolation-CzjNEpxI.js → StepConsolation-DI8kcTkV.js} +5 -5
- package/chunk/{StepConsolation-CzjNEpxI.js.map → StepConsolation-DI8kcTkV.js.map} +1 -1
- package/chunk/{StepConsolation-D3E8Apmh.js → StepConsolation-DwEwhgzI.js} +5 -5
- package/chunk/{StepConsolation-D3E8Apmh.js.map → StepConsolation-DwEwhgzI.js.map} +1 -1
- package/chunk/{StepDocUpload-D3lwZHBr.js → StepDocUpload-Bv6M-Z6q.js} +6 -6
- package/chunk/{StepDocUpload-D3lwZHBr.js.map → StepDocUpload-Bv6M-Z6q.js.map} +1 -1
- package/chunk/{StepDocUpload-Ddu77ITg.js → StepDocUpload-IOE10Q6k.js} +6 -6
- package/chunk/{StepDocUpload-Ddu77ITg.js.map → StepDocUpload-IOE10Q6k.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-vg7monLn.js → StepDriverLicensePersonalInfoComponent-CT2uHtsZ.js} +28 -28
- package/chunk/{StepDriverLicensePersonalInfoComponent-BvwuFoXL.js.map → StepDriverLicensePersonalInfoComponent-CT2uHtsZ.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BvwuFoXL.js → StepDriverLicensePersonalInfoComponent-DxgQc-yw.js} +28 -28
- package/chunk/{StepDriverLicensePersonalInfoComponent-vg7monLn.js.map → StepDriverLicensePersonalInfoComponent-DxgQc-yw.js.map} +1 -1
- package/chunk/{StepEmailLoop-C2dukW7l.js → StepEmailLoop-Bo5BbGQu.js} +9 -9
- package/chunk/{StepEmailLoop-2BC_llWt.js.map → StepEmailLoop-Bo5BbGQu.js.map} +1 -1
- package/chunk/{StepEmailLoop-2BC_llWt.js → StepEmailLoop-j2264k-N.js} +9 -9
- package/chunk/{StepEmailLoop-C2dukW7l.js.map → StepEmailLoop-j2264k-N.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-Dubco5i-.js → StepEmploymentPersonalInfo-B2vkSor6.js} +23 -23
- package/chunk/{StepEmploymentPersonalInfo-CtYYyHKS.js.map → StepEmploymentPersonalInfo-B2vkSor6.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CtYYyHKS.js → StepEmploymentPersonalInfo-DuOMR21_.js} +23 -23
- package/chunk/{StepEmploymentPersonalInfo-Dubco5i-.js.map → StepEmploymentPersonalInfo-DuOMR21_.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-Cr3WqNMh.js → StepFirstResponderPersonalInfo-4wxW2cgL.js} +39 -39
- package/chunk/{StepFirstResponderPersonalInfo-CGYBZNTh.js.map → StepFirstResponderPersonalInfo-4wxW2cgL.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CGYBZNTh.js → StepFirstResponderPersonalInfo-CizcIcEl.js} +39 -39
- package/chunk/{StepFirstResponderPersonalInfo-Cr3WqNMh.js.map → StepFirstResponderPersonalInfo-CizcIcEl.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-5CpheLjr.js → StepGeneralIdentityPersonalInfoComponent-CTfP5Oeu.js} +37 -37
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-5CpheLjr.js.map → StepGeneralIdentityPersonalInfoComponent-CTfP5Oeu.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-ClVB43d-.js → StepGeneralIdentityPersonalInfoComponent-P8d-Wb4X.js} +37 -37
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-ClVB43d-.js.map → StepGeneralIdentityPersonalInfoComponent-P8d-Wb4X.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DxIZgVIN.js → StepHybridIdentityPersonalInfoComponent-BRmrt3mv.js} +40 -40
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BkYaeKq5.js.map → StepHybridIdentityPersonalInfoComponent-BRmrt3mv.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BkYaeKq5.js → StepHybridIdentityPersonalInfoComponent-ErhEZ-zI.js} +40 -40
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DxIZgVIN.js.map → StepHybridIdentityPersonalInfoComponent-ErhEZ-zI.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-D895wubp.js → StepIDCheckLoop-B3ClVxOi.js} +5 -5
- package/chunk/{StepIDCheckLoop-BKQMci0g.js.map → StepIDCheckLoop-B3ClVxOi.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BKQMci0g.js → StepIDCheckLoop-BCJs6usj.js} +5 -5
- package/chunk/{StepIDCheckLoop-D895wubp.js.map → StepIDCheckLoop-BCJs6usj.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-yLiY3DKt.js → StepIDCheckLoopOnfido-B4zpvkRd.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-yLiY3DKt.js.map → StepIDCheckLoopOnfido-B4zpvkRd.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DK9tXC19.js → StepIDCheckLoopOnfido-DRZ4kP4R.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-DK9tXC19.js.map → StepIDCheckLoopOnfido-DRZ4kP4R.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-Co5e1j2Q.js → StepIDCheckLoopRegula-CFgyZ_rn.js} +6 -6
- package/chunk/{StepIDCheckLoopRegula-BPQV1k_O.js.map → StepIDCheckLoopRegula-CFgyZ_rn.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BPQV1k_O.js → StepIDCheckLoopRegula-Db6p5Cwl.js} +6 -6
- package/chunk/{StepIDCheckLoopRegula-Co5e1j2Q.js.map → StepIDCheckLoopRegula-Db6p5Cwl.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-Dv46p6q2.js → StepLicensedProfessionalPersonalInfo-De005KQe.js} +39 -39
- package/chunk/{StepLicensedProfessionalPersonalInfo-Dv46p6q2.js.map → StepLicensedProfessionalPersonalInfo-De005KQe.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-b4RPIfkb.js → StepLicensedProfessionalPersonalInfo-uC90t0Ka.js} +39 -39
- package/chunk/{StepLicensedProfessionalPersonalInfo-b4RPIfkb.js.map → StepLicensedProfessionalPersonalInfo-uC90t0Ka.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BPH02BAz.js → StepLowIncomePersonalInfo-BXeW16K1.js} +51 -51
- package/chunk/{StepLowIncomePersonalInfo-BPH02BAz.js.map → StepLowIncomePersonalInfo-BXeW16K1.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-mgIrT_8x.js → StepLowIncomePersonalInfo-DeQ6ug4-.js} +51 -51
- package/chunk/{StepLowIncomePersonalInfo-mgIrT_8x.js.map → StepLowIncomePersonalInfo-DeQ6ug4-.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CO6Nog70.js → StepMedicalProfessionalPersonalInfo-DYhclBtt.js} +44 -44
- package/chunk/{StepMedicalProfessionalPersonalInfo-CO6Nog70.js.map → StepMedicalProfessionalPersonalInfo-DYhclBtt.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-MLaT1AQH.js → StepMedicalProfessionalPersonalInfo-EGaswECh.js} +44 -44
- package/chunk/{StepMedicalProfessionalPersonalInfo-MLaT1AQH.js.map → StepMedicalProfessionalPersonalInfo-EGaswECh.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DqO6GrME.js → StepMemberPersonalInfo-DmqP1UcS.js} +35 -35
- package/chunk/{StepMemberPersonalInfo-DLPHUDJS.js.map → StepMemberPersonalInfo-DmqP1UcS.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DLPHUDJS.js → StepMemberPersonalInfo-VUcdpf1p.js} +35 -35
- package/chunk/{StepMemberPersonalInfo-DqO6GrME.js.map → StepMemberPersonalInfo-VUcdpf1p.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CkjQ6i7V.js → StepMoverPersonalInfo-BAy0fOpJ.js} +28 -28
- package/chunk/{StepMoverPersonalInfo-B-EAZZTp.js.map → StepMoverPersonalInfo-BAy0fOpJ.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-B-EAZZTp.js → StepMoverPersonalInfo-CBaYoFQM.js} +28 -28
- package/chunk/{StepMoverPersonalInfo-CkjQ6i7V.js.map → StepMoverPersonalInfo-CBaYoFQM.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CeMHVu_2.js → StepOverrideComponent-BU8tncVB.js} +6 -6
- package/chunk/{StepOverrideComponent-BKM8B40J.js.map → StepOverrideComponent-BU8tncVB.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BKM8B40J.js → StepOverrideComponent-Bo0bkoYg.js} +6 -6
- package/chunk/{StepOverrideComponent-CeMHVu_2.js.map → StepOverrideComponent-Bo0bkoYg.js.map} +1 -1
- package/chunk/{StepSMSLoop-BwVhwpaO.js → StepSMSLoop-DLRGvoY8.js} +5 -5
- package/chunk/{StepSMSLoop-BwVhwpaO.js.map → StepSMSLoop-DLRGvoY8.js.map} +1 -1
- package/chunk/{StepSMSLoop-RYr51_dF.js → StepSMSLoop-usK-uwDi.js} +5 -5
- package/chunk/{StepSMSLoop-RYr51_dF.js.map → StepSMSLoop-usK-uwDi.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-D0vgQBsC.js → StepSocialSecurityNumber-Dr0IZbPK.js} +10 -10
- package/chunk/{StepSocialSecurityNumber-D0vgQBsC.js.map → StepSocialSecurityNumber-Dr0IZbPK.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-Dxoe5edN.js → StepSocialSecurityNumber-qFfdO1Gp.js} +10 -10
- package/chunk/{StepSocialSecurityNumber-Dxoe5edN.js.map → StepSocialSecurityNumber-qFfdO1Gp.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DX9xaTt3.js → StepStudentPersonalInfo-A3yGbDk7.js} +38 -38
- package/chunk/{StepStudentPersonalInfo-DX9xaTt3.js.map → StepStudentPersonalInfo-A3yGbDk7.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-ayiFsJov.js → StepStudentPersonalInfo-B-RKUSVb.js} +38 -38
- package/chunk/{StepStudentPersonalInfo-ayiFsJov.js.map → StepStudentPersonalInfo-B-RKUSVb.js.map} +1 -1
- package/chunk/{StepSuccess-B_jflAwW.js → StepSuccess-CDyGNq3Q.js} +6 -6
- package/chunk/{StepSuccess-BpxyX77R.js.map → StepSuccess-CDyGNq3Q.js.map} +1 -1
- package/chunk/{StepSuccess-BpxyX77R.js → StepSuccess-Dviigo8q.js} +6 -6
- package/chunk/{StepSuccess-B_jflAwW.js.map → StepSuccess-Dviigo8q.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-DOyQ1_dK.js → StepTeacherPersonalInfo-D4UTbPDB.js} +34 -34
- package/chunk/{StepTeacherPersonalInfo-CiGSwW0v.js.map → StepTeacherPersonalInfo-D4UTbPDB.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CiGSwW0v.js → StepTeacherPersonalInfo-DUZmMYli.js} +34 -34
- package/chunk/{StepTeacherPersonalInfo-DOyQ1_dK.js.map → StepTeacherPersonalInfo-DUZmMYli.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-Y3fcrHQz.js → TeacherSchoolComponent-CPoc8ceQ.js} +7 -7
- package/chunk/{TeacherSchoolComponent-BFtlvNC3.js.map → TeacherSchoolComponent-CPoc8ceQ.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BFtlvNC3.js → TeacherSchoolComponent-D_yKCvzI.js} +7 -7
- package/chunk/{TeacherSchoolComponent-Y3fcrHQz.js.map → TeacherSchoolComponent-D_yKCvzI.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 +4 -4
- package/chunk/countryUtils-n_5QoHGV.js +4 -4
- 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-DOLBdeca.js → downshift.esm-BbUU6siB.js} +5 -5
- package/chunk/{downshift.esm-BN-aEWbS.js.map → downshift.esm-BbUU6siB.js.map} +1 -1
- package/chunk/{downshift.esm-BN-aEWbS.js → downshift.esm-CF8pnAPi.js} +5 -5
- package/chunk/{downshift.esm-DOLBdeca.js.map → downshift.esm-CF8pnAPi.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-DYWYXv-a.js +4 -4
- package/chunk/programThemeGetters-VBnkSxuj.js +4 -4
- 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-CcEMtmwt.js → stepComponentHelpers-Bxse3jnq.js} +37 -46
- package/chunk/stepComponentHelpers-Bxse3jnq.js.map +1 -0
- package/chunk/{stepComponentHelpers-BFyXhiWa.js → stepComponentHelpers-CQUMKZ_f.js} +37 -46
- package/chunk/stepComponentHelpers-CQUMKZ_f.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-CIBjRIaL.js → useCollectFieldsEndpoint-BW9WTICZ.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-D65zxif7.js.map → useCollectFieldsEndpoint-BW9WTICZ.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-D65zxif7.js → useCollectFieldsEndpoint-DBKghe_8.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-CIBjRIaL.js.map → useCollectFieldsEndpoint-DBKghe_8.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 +37 -37
- package/chunk/StepAgePersonalInfo-Lx61MmjN.js +0 -175
- package/chunk/StepAgePersonalInfo-Lx61MmjN.js.map +0 -1
- package/chunk/StepAgePersonalInfo-TnXgTLlB.js +0 -171
- package/chunk/StepAgePersonalInfo-TnXgTLlB.js.map +0 -1
- package/chunk/stepComponentHelpers-BFyXhiWa.js.map +0 -1
- package/chunk/stepComponentHelpers-CcEMtmwt.js.map +0 -1
|
@@ -4,29 +4,29 @@
|
|
|
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.289.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1789773579865
|
|
9
|
+
* BUILD_DATE: Fri Sep 18 2026 23:19:39 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 97371345cabb92f713fd30bd7baf2bb5e4a9f973
|
|
11
11
|
*/
|
|
12
12
|
import { p 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, n as i, t as a } from "./jsx-runtime-JSlXFmKD.js";
|
|
15
|
-
import { p as o } from "./FormFooterComponent-
|
|
15
|
+
import { p as o } from "./FormFooterComponent-BrOM_pQ9.js";
|
|
16
16
|
import { t as s } from "../_mysheerid-preview.js";
|
|
17
|
-
import { t as c } from "./useCollectFieldsEndpoint-
|
|
18
|
-
import {
|
|
19
|
-
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-
|
|
20
|
-
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-
|
|
21
|
-
import { t as C } from "./BirthDateComponent-
|
|
22
|
-
import { t as w } from "./PostalCodeComponent-
|
|
23
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
24
|
-
import { t as E } from "./ExtraMessage-
|
|
25
|
-
import { t as D } from "./ChangeLocaleComponent-
|
|
26
|
-
import { t as O } from "./PersonalInfoStepWrapper-
|
|
17
|
+
import { t as c } from "./useCollectFieldsEndpoint-BW9WTICZ.js";
|
|
18
|
+
import { a as l, h as u, i as d, m as f, n as p, o as m } from "./stepComponentHelpers-Bxse3jnq.js";
|
|
19
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-KFLJ56dX.js";
|
|
20
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-Q6g7KHwI.js";
|
|
21
|
+
import { t as C } from "./BirthDateComponent-DbILUMIz.js";
|
|
22
|
+
import { t as w } from "./PostalCodeComponent-C-0blxoe.js";
|
|
23
|
+
import { t as T } from "./CountryComponentWrapper-BSg_JhlH.js";
|
|
24
|
+
import { t as E } from "./ExtraMessage-D1j0TLE3.js";
|
|
25
|
+
import { t as D } from "./ChangeLocaleComponent-BcyU0Zgd.js";
|
|
26
|
+
import { t as O } from "./PersonalInfoStepWrapper-D2GlDkO6.js";
|
|
27
27
|
import { t as k } from "./countryUtils-BBN8jYxF.js";
|
|
28
|
-
import { t as A } from "./StatusComponent-
|
|
29
|
-
import { t as j } from "./LicensedProfessionalOrganizationComponent-
|
|
28
|
+
import { t as A } from "./StatusComponent-CceeOAxy.js";
|
|
29
|
+
import { t as j } from "./LicensedProfessionalOrganizationComponent-CdVLOkti.js";
|
|
30
30
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
31
31
|
var M = a(), N = r(({ intl: r, verificationService: a }) => {
|
|
32
32
|
let N = a.viewModel, { fieldValidationErrors: P } = a, F = a.verificationResponse, I = o(F), L = N.localeChoice.value, R = t(), { availableStatuses: z } = c({
|
|
@@ -50,49 +50,49 @@ var M = a(), N = r(({ intl: r, verificationService: a }) => {
|
|
|
50
50
|
/* @__PURE__ */ (0, M.jsx)(D, { verificationService: a }),
|
|
51
51
|
/* @__PURE__ */ (0, M.jsx)(T, {
|
|
52
52
|
verificationService: a,
|
|
53
|
-
disabled:
|
|
53
|
+
disabled: p("country")?.disabled
|
|
54
54
|
}),
|
|
55
55
|
/* @__PURE__ */ (0, M.jsx)(A, {
|
|
56
56
|
segmentId: "licensed-professional",
|
|
57
57
|
value: {
|
|
58
58
|
value: N.statuses ? N.statuses[0] : "",
|
|
59
|
-
label: N.statuses ?
|
|
59
|
+
label: N.statuses ? d(r, N.statuses[0]) : ""
|
|
60
60
|
},
|
|
61
61
|
isErrored: !!P.statuses,
|
|
62
|
-
options:
|
|
63
|
-
disabled: V ||
|
|
62
|
+
options: l(r, z ?? F.availableStatuses),
|
|
63
|
+
disabled: V || p("statuses")?.disabled,
|
|
64
64
|
explanation: V ? /* @__PURE__ */ (0, M.jsx)(i, {
|
|
65
65
|
id: "chooseCountry",
|
|
66
66
|
defaultMessage: "Choose a country first"
|
|
67
67
|
}) : void 0,
|
|
68
68
|
onChange: (e) => {
|
|
69
|
-
H("statuses", e ? [e.value] : []),
|
|
69
|
+
H("statuses", e ? [e.value] : []), f("statuses", e ? e.value : "", a);
|
|
70
70
|
}
|
|
71
71
|
}),
|
|
72
72
|
/* @__PURE__ */ (0, M.jsx)(j, {
|
|
73
73
|
isErrored: !!P.organization,
|
|
74
74
|
onChange: (e) => {
|
|
75
|
-
|
|
75
|
+
u(e, a), f("organization", e, a);
|
|
76
76
|
},
|
|
77
77
|
value: a.viewModel.organization,
|
|
78
78
|
verificationService: a,
|
|
79
|
-
disabled:
|
|
79
|
+
disabled: p("organization")?.disabled
|
|
80
80
|
}),
|
|
81
81
|
/* @__PURE__ */ (0, M.jsxs)("div", {
|
|
82
82
|
className: "sid-names",
|
|
83
83
|
children: [/* @__PURE__ */ (0, M.jsx)(h, {
|
|
84
84
|
value: N.firstName,
|
|
85
85
|
isErrored: !!P.firstName,
|
|
86
|
-
disabled:
|
|
86
|
+
disabled: p("firstName")?.disabled,
|
|
87
87
|
onChange: (e) => {
|
|
88
|
-
H("firstName", e),
|
|
88
|
+
H("firstName", e), f("firstName", e, a);
|
|
89
89
|
}
|
|
90
90
|
}), /* @__PURE__ */ (0, M.jsx)(g, {
|
|
91
91
|
value: N.lastName,
|
|
92
92
|
isErrored: !!P.lastName,
|
|
93
|
-
disabled:
|
|
93
|
+
disabled: p("lastName")?.disabled,
|
|
94
94
|
onChange: (e) => {
|
|
95
|
-
H("lastName", e),
|
|
95
|
+
H("lastName", e), f("lastName", e, a);
|
|
96
96
|
}
|
|
97
97
|
})]
|
|
98
98
|
}),
|
|
@@ -100,18 +100,18 @@ var M = a(), N = r(({ intl: r, verificationService: a }) => {
|
|
|
100
100
|
errorId: P.birthDate,
|
|
101
101
|
locale: L,
|
|
102
102
|
onChange: (e) => {
|
|
103
|
-
H("birthDate", e),
|
|
103
|
+
H("birthDate", e), f("birthDate", e, a);
|
|
104
104
|
},
|
|
105
105
|
value: N.birthDate,
|
|
106
|
-
disabled:
|
|
106
|
+
disabled: p("birthDate")?.disabled
|
|
107
107
|
}),
|
|
108
108
|
/* @__PURE__ */ (0, M.jsx)(w, {
|
|
109
109
|
isErrored: !!P.postalCode,
|
|
110
110
|
onChange: (e) => {
|
|
111
|
-
H("postalCode", e),
|
|
111
|
+
H("postalCode", e), f("postalCode", e, a);
|
|
112
112
|
},
|
|
113
113
|
value: N.postalCode,
|
|
114
|
-
disabled:
|
|
114
|
+
disabled: p("postalCode")?.disabled,
|
|
115
115
|
explanation: /* @__PURE__ */ (0, M.jsx)(i, {
|
|
116
116
|
id: "postalCodeExplanation",
|
|
117
117
|
defaultMessage: "Use the location on file with your licensing body"
|
|
@@ -125,20 +125,20 @@ var M = a(), N = r(({ intl: r, verificationService: a }) => {
|
|
|
125
125
|
defaultMessage: "Needed to send you your unique code"
|
|
126
126
|
}),
|
|
127
127
|
onChange: (e) => {
|
|
128
|
-
H("email", e),
|
|
128
|
+
H("email", e), f("email", e, a);
|
|
129
129
|
},
|
|
130
|
-
onKeyDown: (e) =>
|
|
131
|
-
disabled:
|
|
130
|
+
onKeyDown: (e) => m(e),
|
|
131
|
+
disabled: p("email")?.disabled
|
|
132
132
|
}),
|
|
133
133
|
a.programTheme.isSmsNotifierConfigured || a.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, M.jsx)(v, {
|
|
134
134
|
isRequired: !!a.programTheme.smsLoopEnabled,
|
|
135
135
|
value: N.phoneNumber,
|
|
136
136
|
isErrored: !!P.phoneNumber,
|
|
137
137
|
onChange: (e) => {
|
|
138
|
-
H("phoneNumber", e),
|
|
138
|
+
H("phoneNumber", e), f("phoneNumber", e, a);
|
|
139
139
|
},
|
|
140
140
|
selectedCountryCode: N.countryChoice && N.countryChoice.value,
|
|
141
|
-
disabled:
|
|
141
|
+
disabled: p("phoneNumber")?.disabled
|
|
142
142
|
}) : null,
|
|
143
143
|
R.customFormFields.map((e) => /* @__PURE__ */ (0, M.jsx)(_, {
|
|
144
144
|
config: e,
|
|
@@ -151,10 +151,10 @@ var M = a(), N = r(({ intl: r, verificationService: a }) => {
|
|
|
151
151
|
H("metadata", {
|
|
152
152
|
...a.viewModel.metadata,
|
|
153
153
|
marketConsentValue: e
|
|
154
|
-
}),
|
|
154
|
+
}), f("marketConsentValue", e, a);
|
|
155
155
|
},
|
|
156
156
|
viewModel: N,
|
|
157
|
-
disabled:
|
|
157
|
+
disabled: p("marketConsentValue")?.disabled
|
|
158
158
|
}),
|
|
159
159
|
/* @__PURE__ */ (0, M.jsx)(E, {
|
|
160
160
|
verificationService: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-Dv46p6q2.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;aA+Pa,IAAgD,GAhNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;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D,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-De005KQe.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;aA+Pa,IAAgD,GAhNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO;KACL,OAAO,EAAU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AAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.289.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1789773568893
|
|
5
|
+
* BUILD_DATE: Fri Sep 18 2026 23:19:28 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 97371345cabb92f713fd30bd7baf2bb5e4a9f973
|
|
7
7
|
*/
|
|
8
8
|
import { c as e, n as t } from "./options-CRzdSTAR.js";
|
|
9
9
|
import { a as n, n as r, t as i } from "./jsx-runtime-CyXcV_93.js";
|
|
10
10
|
import { b as a } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as o } from "./FormFooterComponent-
|
|
11
|
+
import { h as o } from "./FormFooterComponent-CP0-Wobs.js";
|
|
12
12
|
import { n as s } from "../sheerid.js";
|
|
13
|
-
import { t as c } from "./useCollectFieldsEndpoint-
|
|
14
|
-
import {
|
|
15
|
-
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-
|
|
16
|
-
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-
|
|
17
|
-
import { t as C } from "./BirthDateComponent-
|
|
18
|
-
import { t as w } from "./PostalCodeComponent-
|
|
19
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
20
|
-
import { t as E } from "./ExtraMessage-
|
|
21
|
-
import { t as D } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as O } from "./PersonalInfoStepWrapper-
|
|
13
|
+
import { t as c } from "./useCollectFieldsEndpoint-DBKghe_8.js";
|
|
14
|
+
import { a as l, h as u, i as d, m as f, n as p, o as m } from "./stepComponentHelpers-CQUMKZ_f.js";
|
|
15
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-L3WoxJAC.js";
|
|
16
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-DnepwbFs.js";
|
|
17
|
+
import { t as C } from "./BirthDateComponent-1FYtxavW.js";
|
|
18
|
+
import { t as w } from "./PostalCodeComponent-C50XmPmv.js";
|
|
19
|
+
import { t as T } from "./CountryComponentWrapper-dG5Zqfee.js";
|
|
20
|
+
import { t as E } from "./ExtraMessage-BZ9XdOdL.js";
|
|
21
|
+
import { t as D } from "./ChangeLocaleComponent-Wju8NvwL.js";
|
|
22
|
+
import { t as O } from "./PersonalInfoStepWrapper-B7pfOMf3.js";
|
|
23
23
|
import { t as k } from "./countryUtils-n_5QoHGV.js";
|
|
24
|
-
import { t as A } from "./StatusComponent-
|
|
25
|
-
import { t as j } from "./LicensedProfessionalOrganizationComponent-
|
|
24
|
+
import { t as A } from "./StatusComponent-DPs6MHNn.js";
|
|
25
|
+
import { t as j } from "./LicensedProfessionalOrganizationComponent-FBu3_XDq.js";
|
|
26
26
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
27
27
|
var M = i(), N = n(({ intl: n, verificationService: i }) => {
|
|
28
28
|
let N = i.viewModel, { fieldValidationErrors: P } = i, F = i.verificationResponse, I = o(F), L = N.localeChoice.value, R = t(), { availableStatuses: z } = c({
|
|
@@ -46,49 +46,49 @@ var M = i(), N = n(({ intl: n, verificationService: i }) => {
|
|
|
46
46
|
/* @__PURE__ */ (0, M.jsx)(D, { verificationService: i }),
|
|
47
47
|
/* @__PURE__ */ (0, M.jsx)(T, {
|
|
48
48
|
verificationService: i,
|
|
49
|
-
disabled:
|
|
49
|
+
disabled: p("country")?.disabled
|
|
50
50
|
}),
|
|
51
51
|
/* @__PURE__ */ (0, M.jsx)(A, {
|
|
52
52
|
segmentId: "licensed-professional",
|
|
53
53
|
value: {
|
|
54
54
|
value: N.statuses ? N.statuses[0] : "",
|
|
55
|
-
label: N.statuses ?
|
|
55
|
+
label: N.statuses ? d(n, N.statuses[0]) : ""
|
|
56
56
|
},
|
|
57
57
|
isErrored: !!P.statuses,
|
|
58
|
-
options:
|
|
59
|
-
disabled: V ||
|
|
58
|
+
options: l(n, z ?? F.availableStatuses),
|
|
59
|
+
disabled: V || p("statuses")?.disabled,
|
|
60
60
|
explanation: V ? /* @__PURE__ */ (0, M.jsx)(r, {
|
|
61
61
|
id: "chooseCountry",
|
|
62
62
|
defaultMessage: "Choose a country first"
|
|
63
63
|
}) : void 0,
|
|
64
64
|
onChange: (e) => {
|
|
65
|
-
H("statuses", e ? [e.value] : []),
|
|
65
|
+
H("statuses", e ? [e.value] : []), f("statuses", e ? e.value : "", i);
|
|
66
66
|
}
|
|
67
67
|
}),
|
|
68
68
|
/* @__PURE__ */ (0, M.jsx)(j, {
|
|
69
69
|
isErrored: !!P.organization,
|
|
70
70
|
onChange: (e) => {
|
|
71
|
-
|
|
71
|
+
u(e, i), f("organization", e, i);
|
|
72
72
|
},
|
|
73
73
|
value: i.viewModel.organization,
|
|
74
74
|
verificationService: i,
|
|
75
|
-
disabled:
|
|
75
|
+
disabled: p("organization")?.disabled
|
|
76
76
|
}),
|
|
77
77
|
/* @__PURE__ */ (0, M.jsxs)("div", {
|
|
78
78
|
className: "sid-names",
|
|
79
79
|
children: [/* @__PURE__ */ (0, M.jsx)(h, {
|
|
80
80
|
value: N.firstName,
|
|
81
81
|
isErrored: !!P.firstName,
|
|
82
|
-
disabled:
|
|
82
|
+
disabled: p("firstName")?.disabled,
|
|
83
83
|
onChange: (e) => {
|
|
84
|
-
H("firstName", e),
|
|
84
|
+
H("firstName", e), f("firstName", e, i);
|
|
85
85
|
}
|
|
86
86
|
}), /* @__PURE__ */ (0, M.jsx)(g, {
|
|
87
87
|
value: N.lastName,
|
|
88
88
|
isErrored: !!P.lastName,
|
|
89
|
-
disabled:
|
|
89
|
+
disabled: p("lastName")?.disabled,
|
|
90
90
|
onChange: (e) => {
|
|
91
|
-
H("lastName", e),
|
|
91
|
+
H("lastName", e), f("lastName", e, i);
|
|
92
92
|
}
|
|
93
93
|
})]
|
|
94
94
|
}),
|
|
@@ -96,18 +96,18 @@ var M = i(), N = n(({ intl: n, verificationService: i }) => {
|
|
|
96
96
|
errorId: P.birthDate,
|
|
97
97
|
locale: L,
|
|
98
98
|
onChange: (e) => {
|
|
99
|
-
H("birthDate", e),
|
|
99
|
+
H("birthDate", e), f("birthDate", e, i);
|
|
100
100
|
},
|
|
101
101
|
value: N.birthDate,
|
|
102
|
-
disabled:
|
|
102
|
+
disabled: p("birthDate")?.disabled
|
|
103
103
|
}),
|
|
104
104
|
/* @__PURE__ */ (0, M.jsx)(w, {
|
|
105
105
|
isErrored: !!P.postalCode,
|
|
106
106
|
onChange: (e) => {
|
|
107
|
-
H("postalCode", e),
|
|
107
|
+
H("postalCode", e), f("postalCode", e, i);
|
|
108
108
|
},
|
|
109
109
|
value: N.postalCode,
|
|
110
|
-
disabled:
|
|
110
|
+
disabled: p("postalCode")?.disabled,
|
|
111
111
|
explanation: /* @__PURE__ */ (0, M.jsx)(r, {
|
|
112
112
|
id: "postalCodeExplanation",
|
|
113
113
|
defaultMessage: "Use the location on file with your licensing body"
|
|
@@ -121,20 +121,20 @@ var M = i(), N = n(({ intl: n, verificationService: i }) => {
|
|
|
121
121
|
defaultMessage: "Needed to send you your unique code"
|
|
122
122
|
}),
|
|
123
123
|
onChange: (e) => {
|
|
124
|
-
H("email", e),
|
|
124
|
+
H("email", e), f("email", e, i);
|
|
125
125
|
},
|
|
126
|
-
onKeyDown: (e) =>
|
|
127
|
-
disabled:
|
|
126
|
+
onKeyDown: (e) => m(e),
|
|
127
|
+
disabled: p("email")?.disabled
|
|
128
128
|
}),
|
|
129
129
|
i.programTheme.isSmsNotifierConfigured || i.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, M.jsx)(v, {
|
|
130
130
|
isRequired: !!i.programTheme.smsLoopEnabled,
|
|
131
131
|
value: N.phoneNumber,
|
|
132
132
|
isErrored: !!P.phoneNumber,
|
|
133
133
|
onChange: (e) => {
|
|
134
|
-
H("phoneNumber", e),
|
|
134
|
+
H("phoneNumber", e), f("phoneNumber", e, i);
|
|
135
135
|
},
|
|
136
136
|
selectedCountryCode: N.countryChoice && N.countryChoice.value,
|
|
137
|
-
disabled:
|
|
137
|
+
disabled: p("phoneNumber")?.disabled
|
|
138
138
|
}) : null,
|
|
139
139
|
R.customFormFields.map((e) => /* @__PURE__ */ (0, M.jsx)(_, {
|
|
140
140
|
config: e,
|
|
@@ -147,10 +147,10 @@ var M = i(), N = n(({ intl: n, verificationService: i }) => {
|
|
|
147
147
|
H("metadata", {
|
|
148
148
|
...i.viewModel.metadata,
|
|
149
149
|
marketConsentValue: e
|
|
150
|
-
}),
|
|
150
|
+
}), f("marketConsentValue", e, i);
|
|
151
151
|
},
|
|
152
152
|
viewModel: N,
|
|
153
|
-
disabled:
|
|
153
|
+
disabled: p("marketConsentValue")?.disabled
|
|
154
154
|
}),
|
|
155
155
|
/* @__PURE__ */ (0, M.jsx)(E, {
|
|
156
156
|
verificationService: i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-b4RPIfkb.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;aA+Pa,IAAgD,GAhNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD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B,aAAa,iBAC/B,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,YAAY,CAAC,CAAC,EAAoB,aAAa;IAC/C,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAoC,eAAe,CAAQ,GAC3D,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-uC90t0Ka.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\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 { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"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 updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;aA+Pa,IAAgD,GAhNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,K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