@sheerid/jslib 2.288.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-D-1uC4Z_.js → AddressComponent-DD8h728z.js} +6 -6
- package/chunk/{AddressComponent-BpddK6UU.js.map → AddressComponent-DD8h728z.js.map} +1 -1
- package/chunk/{AddressComponent-BpddK6UU.js → AddressComponent-DKfHQAHW.js} +6 -6
- package/chunk/{AddressComponent-D-1uC4Z_.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-B815Ijko.js → BirthDateComponent-2PEmSvVv.js} +6 -6
- package/chunk/{BirthDateComponent-B815Ijko.js.map → BirthDateComponent-2PEmSvVv.js.map} +1 -1
- package/chunk/{BirthDateComponent-CBEpeITj.js → BirthDateComponent-Cd0cMZrO.js} +6 -6
- package/chunk/{BirthDateComponent-CBEpeITj.js.map → BirthDateComponent-Cd0cMZrO.js.map} +1 -1
- package/chunk/{CaptchaComponent-D8oka89l.js → CaptchaComponent-CeJZh2AO.js} +17 -17
- package/chunk/{CaptchaComponent-D8oka89l.js.map → CaptchaComponent-CeJZh2AO.js.map} +1 -1
- package/chunk/{CaptchaComponent-DH22WJVd.js → CaptchaComponent-D84uhigA.js} +78 -78
- package/chunk/{CaptchaComponent-DH22WJVd.js.map → CaptchaComponent-D84uhigA.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BPWLFVgc.js → ChangeLocaleComponent-LlVAEjO9.js} +22 -22
- package/chunk/{ChangeLocaleComponent-BPWLFVgc.js.map → ChangeLocaleComponent-LlVAEjO9.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DEaJwR-4.js → ChangeLocaleComponent-Slt2XjmB.js} +7 -7
- package/chunk/{ChangeLocaleComponent-DEaJwR-4.js.map → ChangeLocaleComponent-Slt2XjmB.js.map} +1 -1
- package/chunk/{City-BGyqHaK5.js → City-DeTr-l8T.js} +6 -6
- package/chunk/{City-BGyqHaK5.js.map → City-DeTr-l8T.js.map} +1 -1
- package/chunk/{City-CW-XU58i.js → City-DzE-sIfb.js} +6 -6
- package/chunk/{City-CW-XU58i.js.map → City-DzE-sIfb.js.map} +1 -1
- package/chunk/{CollegeNameComponent-8PfeDsOK.js → CollegeNameComponent-BIelwnwZ.js} +8 -8
- package/chunk/{CollegeNameComponent-8PfeDsOK.js.map → CollegeNameComponent-BIelwnwZ.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CenmoMlH.js → CollegeNameComponent-BLK9LM4N.js} +15 -15
- package/chunk/{CollegeNameComponent-CenmoMlH.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-Cq-Z2Pll.js → CountryComponentWrapper-DQW_P5GI.js} +23 -23
- package/chunk/{CountryComponentWrapper-CjwhKFvR.js.map → CountryComponentWrapper-DQW_P5GI.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CjwhKFvR.js → CountryComponentWrapper-D_v3ee4V.js} +10 -10
- package/chunk/{CountryComponentWrapper-Cq-Z2Pll.js.map → CountryComponentWrapper-D_v3ee4V.js.map} +1 -1
- package/chunk/{DischargeDateComponent-BZlPosxl.js → DischargeDateComponent-CDWiw0-D.js} +13 -13
- package/chunk/{DischargeDateComponent-BZlPosxl.js.map → DischargeDateComponent-CDWiw0-D.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CIjTwKH7.js → DischargeDateComponent-Dlm6t88Y.js} +13 -13
- package/chunk/{DischargeDateComponent-CIjTwKH7.js.map → DischargeDateComponent-Dlm6t88Y.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-BWQvRojM.js → DriverLicenseNumberComponent-DpCVs8n_.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-BWQvRojM.js.map → DriverLicenseNumberComponent-DpCVs8n_.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-BivuTk8M.js → DriverLicenseNumberComponent-XVb7vgi3.js} +6 -6
- package/chunk/{DriverLicenseNumberComponent-BivuTk8M.js.map → DriverLicenseNumberComponent-XVb7vgi3.js.map} +1 -1
- package/chunk/{EmailLoopPending-CAmx-Ic-.js → EmailLoopPending-CMiOTpOJ.js} +7 -7
- package/chunk/{EmailLoopPending-Bo7GmzF_.js.map → EmailLoopPending-CMiOTpOJ.js.map} +1 -1
- package/chunk/{EmailLoopPending-Bo7GmzF_.js → EmailLoopPending-Dz4TsQy4.js} +7 -7
- package/chunk/{EmailLoopPending-CAmx-Ic-.js.map → EmailLoopPending-Dz4TsQy4.js.map} +1 -1
- package/chunk/{ExtraMessage-_XZj35_i.js → ExtraMessage-Bhmq_Waj.js} +5 -5
- package/chunk/{ExtraMessage-8NdyDCHO.js.map → ExtraMessage-Bhmq_Waj.js.map} +1 -1
- package/chunk/{ExtraMessage-8NdyDCHO.js → ExtraMessage-CgELJLpn.js} +5 -5
- package/chunk/{ExtraMessage-_XZj35_i.js.map → ExtraMessage-CgELJLpn.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Da8rj0Wh.js → FirstResponderOrganizationComponent-CC5-PDrK.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-Da8rj0Wh.js.map → FirstResponderOrganizationComponent-CC5-PDrK.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-mbtgCIM4.js → FirstResponderOrganizationComponent-CEBS72Sm.js} +15 -15
- package/chunk/{FirstResponderOrganizationComponent-mbtgCIM4.js.map → FirstResponderOrganizationComponent-CEBS72Sm.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BAHiq8-0.js → FormFieldInputSelect--mO3jmU8.js} +5 -5
- package/chunk/{FormFieldInputSelect-B0rIg9MG.js.map → FormFieldInputSelect--mO3jmU8.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-B0rIg9MG.js → FormFieldInputSelect-CPeFv22D.js} +5 -5
- package/chunk/{FormFieldInputSelect-BAHiq8-0.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-dndK764Z.js → FormFieldTypeahead-Cy-3RAew.js} +8 -8
- package/chunk/{FormFieldTypeahead-dndK764Z.js.map → FormFieldTypeahead-Cy-3RAew.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CZkOfcI_.js → FormFieldTypeahead-LSYbrfBP.js} +8 -8
- package/chunk/{FormFieldTypeahead-CZkOfcI_.js.map → FormFieldTypeahead-LSYbrfBP.js.map} +1 -1
- package/chunk/{FormFooterComponent-DJfrw5sA.js → FormFooterComponent-D4QJJ-El.js} +71 -71
- package/chunk/{FormFooterComponent-DJfrw5sA.js.map → FormFooterComponent-D4QJJ-El.js.map} +1 -1
- package/chunk/{FormFooterComponent-afVUq4V4.js → FormFooterComponent-Db94BTNT.js} +18 -18
- package/chunk/{FormFooterComponent-afVUq4V4.js.map → FormFooterComponent-Db94BTNT.js.map} +1 -1
- package/chunk/{FormSelectChoice-Bpx3fh4o.js → FormSelectChoice-BoTIc5oD.js} +6 -6
- package/chunk/{FormSelectChoice-Bpx3fh4o.js.map → FormSelectChoice-BoTIc5oD.js.map} +1 -1
- package/chunk/{FormSelectChoice-C-8NDCOs.js → FormSelectChoice-Zw3pKb9v.js} +6 -6
- package/chunk/{FormSelectChoice-C-8NDCOs.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-C2Ev1y3o.js → LicensedProfessionalOrganizationComponent-BUtMTAkk.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-C2Ev1y3o.js.map → LicensedProfessionalOrganizationComponent-BUtMTAkk.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CRjebPcb.js → LicensedProfessionalOrganizationComponent-y5azOwHV.js} +15 -15
- package/chunk/{LicensedProfessionalOrganizationComponent-CRjebPcb.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-Cqja8mzW.js → LowIncomeOrganizationComponent-CMLS_6f7.js} +12 -12
- package/chunk/{LowIncomeOrganizationComponent-CRAestTn.js.map → LowIncomeOrganizationComponent-CMLS_6f7.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CRAestTn.js → LowIncomeOrganizationComponent-XE645g9w.js} +30 -30
- package/chunk/{LowIncomeOrganizationComponent-Cqja8mzW.js.map → LowIncomeOrganizationComponent-XE645g9w.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-C6eau1Ke.js → MedicalProfessionalOrganizationComponent-B6hySwWt.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-C6eau1Ke.js.map → MedicalProfessionalOrganizationComponent-B6hySwWt.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-UjErRhBp.js → MedicalProfessionalOrganizationComponent-CEfnIdC3.js} +15 -15
- package/chunk/{MedicalProfessionalOrganizationComponent-UjErRhBp.js.map → MedicalProfessionalOrganizationComponent-CEfnIdC3.js.map} +1 -1
- package/chunk/{MemberIdComponent-Dm4VoHvO.js → MemberIdComponent-BnJLiVV-.js} +6 -6
- package/chunk/{MemberIdComponent-B5l3M08c.js.map → MemberIdComponent-BnJLiVV-.js.map} +1 -1
- package/chunk/{MemberIdComponent-B5l3M08c.js → MemberIdComponent-CPlvhVZ8.js} +6 -6
- package/chunk/{MemberIdComponent-Dm4VoHvO.js.map → MemberIdComponent-CPlvhVZ8.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-2EwQTJci.js → MembershipOrganizationComponent-CEU4TQuO.js} +15 -15
- package/chunk/{MembershipOrganizationComponent-2EwQTJci.js.map → MembershipOrganizationComponent-CEU4TQuO.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-D9m2YqfN.js → MembershipOrganizationComponent-D0YorDhu.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-D9m2YqfN.js.map → MembershipOrganizationComponent-D0YorDhu.js.map} +1 -1
- package/chunk/{Message-D6wWKhGu.js → Message-BgJQKz_x.js} +627 -628
- package/chunk/{Message-D6wWKhGu.js.map → Message-BgJQKz_x.js.map} +1 -1
- package/chunk/{Message-D4Yp2DNf.js → Message-C8hwqDr2.js} +45 -46
- package/chunk/{Message-D4Yp2DNf.js.map → Message-C8hwqDr2.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-DSR3pxNS.js → PersonalInfoStepSubmitButton-CJYeNqbu.js} +10 -10
- package/chunk/{PersonalInfoStepSubmitButton-DSR3pxNS.js.map → PersonalInfoStepSubmitButton-CJYeNqbu.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-Ow_f0Q7a.js → PersonalInfoStepSubmitButton-CdZymKZb.js} +10 -10
- package/chunk/{PersonalInfoStepSubmitButton-Ow_f0Q7a.js.map → PersonalInfoStepSubmitButton-CdZymKZb.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-CP4_Ubn9.js → PersonalInfoStepWrapper-BIbUswfn.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-CP4_Ubn9.js.map → PersonalInfoStepWrapper-BIbUswfn.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-D-kbxJx-.js → PersonalInfoStepWrapper-DQ75PRWo.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-D-kbxJx-.js.map → PersonalInfoStepWrapper-DQ75PRWo.js.map} +1 -1
- package/chunk/{PostalCodeComponent-Dz5XAcxA.js → PostalCodeComponent-DNdUR9Xg.js} +6 -6
- package/chunk/{PostalCodeComponent-DkPdX8UU.js.map → PostalCodeComponent-DNdUR9Xg.js.map} +1 -1
- package/chunk/{PostalCodeComponent-DkPdX8UU.js → PostalCodeComponent-zteosCwv.js} +6 -6
- package/chunk/{PostalCodeComponent-Dz5XAcxA.js.map → PostalCodeComponent-zteosCwv.js.map} +1 -1
- package/chunk/{SSN-D5rf74Ws.js → SSN-BKPNF7cg.js} +6 -6
- package/chunk/{SSN-Ce8hozpz.js.map → SSN-BKPNF7cg.js.map} +1 -1
- package/chunk/{SSN-Ce8hozpz.js → SSN-CTR6jwEC.js} +6 -6
- package/chunk/{SSN-D5rf74Ws.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-0zKpmOKD.js → StatusComponent-8j96MYEP.js} +7 -7
- package/chunk/{StatusComponent-0zKpmOKD.js.map → StatusComponent-8j96MYEP.js.map} +1 -1
- package/chunk/{StatusComponent-BE2f3rsE.js → StatusComponent-DZu1lz0O.js} +7 -7
- package/chunk/{StatusComponent-BE2f3rsE.js.map → StatusComponent-DZu1lz0O.js.map} +1 -1
- package/chunk/StepAgePersonalInfo-BqALUq2Z.js +176 -0
- package/chunk/StepAgePersonalInfo-BqALUq2Z.js.map +1 -0
- package/chunk/StepAgePersonalInfo-DFv4SYcW.js +172 -0
- package/chunk/StepAgePersonalInfo-DFv4SYcW.js.map +1 -0
- package/chunk/StepCard-DQ9JkAjb.js +4 -4
- package/chunk/StepCard-EHeqFY3Y.js +4 -4
- package/chunk/{StepCollectIdentifier-DwPEEA4Y.js → StepCollectIdentifier-7VdLmT7J.js} +7 -7
- package/chunk/{StepCollectIdentifier-TKLoUNRX.js.map → StepCollectIdentifier-7VdLmT7J.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-TKLoUNRX.js → StepCollectIdentifier-DAwDOBzU.js} +7 -7
- package/chunk/{StepCollectIdentifier-DwPEEA4Y.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-oWf-NQ40.js → StepCompleteAuthentication-BY_5AqX4.js} +8 -8
- package/chunk/{StepCompleteAuthentication-oWf-NQ40.js.map → StepCompleteAuthentication-BY_5AqX4.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-DmkwcwhP.js → StepCompleteAuthentication-DMwS3S6i.js} +8 -8
- package/chunk/{StepCompleteAuthentication-DmkwcwhP.js.map → StepCompleteAuthentication-DMwS3S6i.js.map} +1 -1
- package/chunk/{StepConsolation-CeYacuPc.js → StepConsolation-f1mq8nYz.js} +6 -6
- package/chunk/{StepConsolation-CeYacuPc.js.map → StepConsolation-f1mq8nYz.js.map} +1 -1
- package/chunk/{StepConsolation-boTjW4M0.js → StepConsolation-yUao3Y71.js} +6 -6
- package/chunk/{StepConsolation-boTjW4M0.js.map → StepConsolation-yUao3Y71.js.map} +1 -1
- package/chunk/{StepDocUpload-C95c6Lhd.js → StepDocUpload-D5CXzeAU.js} +7 -7
- package/chunk/{StepDocUpload-C95c6Lhd.js.map → StepDocUpload-D5CXzeAU.js.map} +1 -1
- package/chunk/{StepDocUpload-CIwWws1K.js → StepDocUpload-D8IflMYV.js} +7 -7
- package/chunk/{StepDocUpload-CIwWws1K.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-X2OYOHTA.js → StepEmailLoop--xNmysns.js} +10 -10
- package/chunk/{StepEmailLoop-X2OYOHTA.js.map → StepEmailLoop--xNmysns.js.map} +1 -1
- package/chunk/{StepEmailLoop-uDF2OHUq.js → StepEmailLoop-BLT6aG-Y.js} +10 -10
- package/chunk/{StepEmailLoop-uDF2OHUq.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-Dh-zLn2S.js → StepEmploymentPersonalInfo-DX3Ax6NO.js} +61 -62
- package/chunk/StepEmploymentPersonalInfo-DX3Ax6NO.js.map +1 -0
- package/chunk/{StepFirstResponderPersonalInfo-CfPdClaD.js → StepFirstResponderPersonalInfo-CRF48sc2.js} +38 -38
- package/chunk/{StepFirstResponderPersonalInfo-CfPdClaD.js.map → StepFirstResponderPersonalInfo-CRF48sc2.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-ULlS_TWb.js → StepFirstResponderPersonalInfo-Ds1kO5m6.js} +38 -38
- package/chunk/{StepFirstResponderPersonalInfo-ULlS_TWb.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-BrrrOxBn.js → StepHybridIdentityPersonalInfoComponent-BqBc1AZg.js} +47 -39
- package/chunk/StepHybridIdentityPersonalInfoComponent-BqBc1AZg.js.map +1 -0
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C8H574ob.js → StepHybridIdentityPersonalInfoComponent-D8LGDNFl.js} +47 -39
- package/chunk/StepHybridIdentityPersonalInfoComponent-D8LGDNFl.js.map +1 -0
- package/chunk/{StepIDCheckLoop-BJMT2YAw.js → StepIDCheckLoop-Cwm6IPWs.js} +5 -5
- package/chunk/{StepIDCheckLoop-BJMT2YAw.js.map → StepIDCheckLoop-Cwm6IPWs.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-tVhdqCeB.js → StepIDCheckLoop-YpZuox49.js} +5 -5
- package/chunk/{StepIDCheckLoop-tVhdqCeB.js.map → StepIDCheckLoop-YpZuox49.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DhAUlwAc.js → StepIDCheckLoopOnfido-CldFXtGX.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-DhAUlwAc.js.map → StepIDCheckLoopOnfido-CldFXtGX.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BcDq5tO-.js → StepIDCheckLoopOnfido-L6oHneIc.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-BcDq5tO-.js.map → StepIDCheckLoopOnfido-L6oHneIc.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DnEAUt8l.js → StepIDCheckLoopRegula-8pxLMKE0.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-DnEAUt8l.js.map → StepIDCheckLoopRegula-8pxLMKE0.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-iT9tvnHn.js → StepIDCheckLoopRegula-B0Yv__kO.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-iT9tvnHn.js.map → StepIDCheckLoopRegula-B0Yv__kO.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-BfXKaq3z.js → StepLicensedProfessionalPersonalInfo-Bzrr0g4R.js} +39 -39
- package/chunk/{StepLicensedProfessionalPersonalInfo-BfXKaq3z.js.map → StepLicensedProfessionalPersonalInfo-Bzrr0g4R.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-D7g3gCUl.js → StepLicensedProfessionalPersonalInfo-oKQFxnEJ.js} +39 -39
- package/chunk/{StepLicensedProfessionalPersonalInfo-D7g3gCUl.js.map → StepLicensedProfessionalPersonalInfo-oKQFxnEJ.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-CyP9fp6K.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-xJwC4TRN.js → StepMedicalProfessionalPersonalInfo-D9k7ENlE.js} +44 -44
- package/chunk/{StepMedicalProfessionalPersonalInfo-DxPMDQUV.js.map → StepMedicalProfessionalPersonalInfo-D9k7ENlE.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DxPMDQUV.js → StepMedicalProfessionalPersonalInfo-RPKhaZPl.js} +44 -44
- package/chunk/{StepMedicalProfessionalPersonalInfo-xJwC4TRN.js.map → StepMedicalProfessionalPersonalInfo-RPKhaZPl.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-Dea6Dsj7.js → StepMemberPersonalInfo-2IUwBn6z.js} +17 -17
- package/chunk/{StepMemberPersonalInfo-Dea6Dsj7.js.map → StepMemberPersonalInfo-2IUwBn6z.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DiYq202e.js → StepMemberPersonalInfo-Bza2nmdJ.js} +17 -17
- package/chunk/{StepMemberPersonalInfo-DiYq202e.js.map → StepMemberPersonalInfo-Bza2nmdJ.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DQFK89Wj.js → StepMoverPersonalInfo-BfN-eiIO.js} +13 -13
- package/chunk/{StepMoverPersonalInfo-D6CUpfX7.js.map → StepMoverPersonalInfo-BfN-eiIO.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-D6CUpfX7.js → StepMoverPersonalInfo-D_lsPua4.js} +13 -13
- package/chunk/{StepMoverPersonalInfo-DQFK89Wj.js.map → StepMoverPersonalInfo-D_lsPua4.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CYGvRxIp.js → StepOverrideComponent-Ld6S6tQi.js} +7 -7
- package/chunk/{StepOverrideComponent-CEDmpTyx.js.map → StepOverrideComponent-Ld6S6tQi.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CEDmpTyx.js → StepOverrideComponent-Mf03I7W7.js} +7 -7
- package/chunk/{StepOverrideComponent-CYGvRxIp.js.map → StepOverrideComponent-Mf03I7W7.js.map} +1 -1
- package/chunk/{StepSMSLoop-D6b2f2BB.js → StepSMSLoop-9sxMk7gX.js} +5 -5
- package/chunk/{StepSMSLoop-D6b2f2BB.js.map → StepSMSLoop-9sxMk7gX.js.map} +1 -1
- package/chunk/{StepSMSLoop-DZArnXKI.js → StepSMSLoop-Bcx24Ycx.js} +5 -5
- package/chunk/{StepSMSLoop-DZArnXKI.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-DO6iLplA.js → StepSocialSecurityNumber-7clvuQce.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-DO6iLplA.js.map → StepSocialSecurityNumber-7clvuQce.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-OBkbQroS.js → StepSocialSecurityNumber-DruKpXOw.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-OBkbQroS.js.map → StepSocialSecurityNumber-DruKpXOw.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BUb3aC2H.js → StepStudentPersonalInfo-BzMOGhN1.js} +18 -18
- package/chunk/{StepStudentPersonalInfo-BUb3aC2H.js.map → StepStudentPersonalInfo-BzMOGhN1.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CwEgXUTW.js → StepStudentPersonalInfo-Dw1ljSGU.js} +18 -18
- package/chunk/{StepStudentPersonalInfo-CwEgXUTW.js.map → StepStudentPersonalInfo-Dw1ljSGU.js.map} +1 -1
- package/chunk/{StepSuccess-DoZZ_SMd.js → StepSuccess-DTqu9PmR.js} +11 -11
- package/chunk/{StepSuccess-CQ-qnjOC.js.map → StepSuccess-DTqu9PmR.js.map} +1 -1
- package/chunk/{StepSuccess-CQ-qnjOC.js → StepSuccess-ICuC7CFW.js} +13 -13
- package/chunk/{StepSuccess-DoZZ_SMd.js.map → StepSuccess-ICuC7CFW.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-B_JVkRV5.js → StepTeacherPersonalInfo-BhvBqRYQ.js} +18 -18
- package/chunk/{StepTeacherPersonalInfo-BFISH__A.js.map → StepTeacherPersonalInfo-BhvBqRYQ.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BFISH__A.js → StepTeacherPersonalInfo-Ds2sDRzl.js} +18 -18
- package/chunk/{StepTeacherPersonalInfo-B_JVkRV5.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-gfk2Aza5.js → TeacherSchoolComponent-CzT9PLGe.js} +8 -8
- package/chunk/{TeacherSchoolComponent-B7fGnMvi.js.map → TeacherSchoolComponent-CzT9PLGe.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-B7fGnMvi.js → TeacherSchoolComponent-D9M32gJE.js} +15 -15
- package/chunk/{TeacherSchoolComponent-gfk2Aza5.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-nUkeKQBS.js → downshift.esm-BUyxJQSO.js} +5 -5
- package/chunk/{downshift.esm-BUmmrD5G.js.map → downshift.esm-BUyxJQSO.js.map} +1 -1
- package/chunk/{downshift.esm-BUmmrD5G.js → downshift.esm-CQ910rwo.js} +5 -5
- package/chunk/{downshift.esm-nUkeKQBS.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-CcEMtmwt.js → stepComponentHelpers-C6PguBPd.js} +35 -51
- package/chunk/stepComponentHelpers-C6PguBPd.js.map +1 -0
- package/chunk/{stepComponentHelpers-BFyXhiWa.js → stepComponentHelpers-CLUoIwIK.js} +35 -51
- 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-B_w7rHAd.js → useCollectFieldsEndpoint-C0RomFpQ.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-B_w7rHAd.js.map → useCollectFieldsEndpoint-C0RomFpQ.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DhD_VK-l.js → useCollectFieldsEndpoint-DhEB0r4Q.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-DhD_VK-l.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-D92IecdL.js +0 -45
- package/chunk/ApiUrls-D92IecdL.js.map +0 -1
- package/chunk/ApiUrls-g_UYd7Me.js +0 -51
- package/chunk/ApiUrls-g_UYd7Me.js.map +0 -1
- package/chunk/StateSelectComponent-CsW4Stv_.js +0 -42
- package/chunk/StateSelectComponent-CsW4Stv_.js.map +0 -1
- package/chunk/StateSelectComponent-Yr_H24gI.js +0 -38
- package/chunk/StateSelectComponent-Yr_H24gI.js.map +0 -1
- package/chunk/StepAgePersonalInfo-BmYZ0aoR.js +0 -171
- package/chunk/StepAgePersonalInfo-BmYZ0aoR.js.map +0 -1
- package/chunk/StepAgePersonalInfo-D7jOM3Jf.js +0 -175
- package/chunk/StepAgePersonalInfo-D7jOM3Jf.js.map +0 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-BkXuNfqK.js +0 -250
- package/chunk/StepCollectMilitaryPersonalInfoComponent-BkXuNfqK.js.map +0 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-DSQvL_Kl.js +0 -246
- package/chunk/StepCollectMilitaryPersonalInfoComponent-DSQvL_Kl.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-CjD1UQD5.js +0 -369
- package/chunk/StepCollectPersonalInfo-CjD1UQD5.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-DD1-x317.js +0 -373
- package/chunk/StepCollectPersonalInfo-DD1-x317.js.map +0 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-C_dVEe2W.js +0 -142
- package/chunk/StepDriverLicensePersonalInfoComponent-C_dVEe2W.js.map +0 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-ConPGhI5.js +0 -146
- package/chunk/StepDriverLicensePersonalInfoComponent-ConPGhI5.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-CXBuJhmJ.js +0 -221
- package/chunk/StepEmploymentPersonalInfo-CXBuJhmJ.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-Dh-zLn2S.js.map +0 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-BrrrOxBn.js.map +0 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-C8H574ob.js.map +0 -1
- package/chunk/StepHybridIdentityPersonalInfoComponent-C-JZQq3h.js +0 -188
- package/chunk/StepHybridIdentityPersonalInfoComponent-C-JZQq3h.js.map +0 -1
- package/chunk/StepHybridIdentityPersonalInfoComponent-CMHoSEWE.js +0 -184
- package/chunk/StepHybridIdentityPersonalInfoComponent-CMHoSEWE.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-CyP9fp6K.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-DrAl9h9V.js +0 -239
- package/chunk/StepLowIncomePersonalInfo-DrAl9h9V.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-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.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 { 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-D4QJJ-El.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-
|
|
27
|
-
import { t as k } from "./countryUtils-
|
|
28
|
-
import { t as A } from "./StatusComponent-
|
|
29
|
-
import { t as j } from "./LicensedProfessionalOrganizationComponent-
|
|
17
|
+
import { t as c } from "./useCollectFieldsEndpoint-C0RomFpQ.js";
|
|
18
|
+
import { a as l, i as u, m as d, p as f, r as p, t as m } from "./stepComponentHelpers-C6PguBPd.js";
|
|
19
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-D84uhigA.js";
|
|
20
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-CJYeNqbu.js";
|
|
21
|
+
import { t as C } from "./BirthDateComponent-Cd0cMZrO.js";
|
|
22
|
+
import { t as w } from "./PostalCodeComponent-zteosCwv.js";
|
|
23
|
+
import { t as T } from "./CountryComponentWrapper-DQW_P5GI.js";
|
|
24
|
+
import { t as E } from "./ExtraMessage-CgELJLpn.js";
|
|
25
|
+
import { t as D } from "./ChangeLocaleComponent-LlVAEjO9.js";
|
|
26
|
+
import { t as O } from "./PersonalInfoStepWrapper-DQ75PRWo.js";
|
|
27
|
+
import { t as k } from "./countryUtils-CM4nPYrB.js";
|
|
28
|
+
import { t as A } from "./StatusComponent-8j96MYEP.js";
|
|
29
|
+
import { t as j } from "./LicensedProfessionalOrganizationComponent-y5azOwHV.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,7 +50,7 @@ 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: m("country")?.disabled
|
|
54
54
|
}),
|
|
55
55
|
/* @__PURE__ */ (0, M.jsx)(A, {
|
|
56
56
|
segmentId: "licensed-professional",
|
|
@@ -59,40 +59,40 @@ var M = a(), N = r(({ intl: r, verificationService: a }) => {
|
|
|
59
59
|
label: N.statuses ? p(r, N.statuses[0]) : ""
|
|
60
60
|
},
|
|
61
61
|
isErrored: !!P.statuses,
|
|
62
|
-
options:
|
|
63
|
-
disabled: V ||
|
|
62
|
+
options: u(r, z ?? F.availableStatuses),
|
|
63
|
+
disabled: V || m("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
|
+
d(e, a), f("organization", e, a);
|
|
76
76
|
},
|
|
77
77
|
value: a.viewModel.organization,
|
|
78
78
|
verificationService: a,
|
|
79
|
-
disabled:
|
|
79
|
+
disabled: m("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: m("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: m("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: m("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: m("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) => l(e),
|
|
131
|
+
disabled: m("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: m("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: m("marketConsentValue")?.disabled
|
|
158
158
|
}),
|
|
159
159
|
/* @__PURE__ */ (0, M.jsx)(E, {
|
|
160
160
|
verificationService: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-BfXKaq3z.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,WAAW,EAAU,SAAS,KAAK;KACpD,OAAO,EAAU,WAAW,EAAe,GAAM,EAAU,SAAS,EAAE,IAAI;IAC5E;IACA,WA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AoC,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-Bzrr0g4R.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 StepLicensedProfession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AErF,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.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 { 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-Db94BTNT.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-
|
|
23
|
-
import { t as k } from "./countryUtils-
|
|
24
|
-
import { t as A } from "./StatusComponent-
|
|
25
|
-
import { t as j } from "./LicensedProfessionalOrganizationComponent-
|
|
13
|
+
import { t as c } from "./useCollectFieldsEndpoint-DhEB0r4Q.js";
|
|
14
|
+
import { a as l, i as u, m as d, p as f, r as p, t as m } from "./stepComponentHelpers-CLUoIwIK.js";
|
|
15
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-CeJZh2AO.js";
|
|
16
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-CdZymKZb.js";
|
|
17
|
+
import { t as C } from "./BirthDateComponent-2PEmSvVv.js";
|
|
18
|
+
import { t as w } from "./PostalCodeComponent-DNdUR9Xg.js";
|
|
19
|
+
import { t as T } from "./CountryComponentWrapper-D_v3ee4V.js";
|
|
20
|
+
import { t as E } from "./ExtraMessage-Bhmq_Waj.js";
|
|
21
|
+
import { t as D } from "./ChangeLocaleComponent-Slt2XjmB.js";
|
|
22
|
+
import { t as O } from "./PersonalInfoStepWrapper-BIbUswfn.js";
|
|
23
|
+
import { t as k } from "./countryUtils-Df3Rcr8q.js";
|
|
24
|
+
import { t as A } from "./StatusComponent-DZu1lz0O.js";
|
|
25
|
+
import { t as j } from "./LicensedProfessionalOrganizationComponent-BUtMTAkk.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,7 +46,7 @@ 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: m("country")?.disabled
|
|
50
50
|
}),
|
|
51
51
|
/* @__PURE__ */ (0, M.jsx)(A, {
|
|
52
52
|
segmentId: "licensed-professional",
|
|
@@ -55,40 +55,40 @@ var M = i(), N = n(({ intl: n, verificationService: i }) => {
|
|
|
55
55
|
label: N.statuses ? p(n, N.statuses[0]) : ""
|
|
56
56
|
},
|
|
57
57
|
isErrored: !!P.statuses,
|
|
58
|
-
options:
|
|
59
|
-
disabled: V ||
|
|
58
|
+
options: u(n, z ?? F.availableStatuses),
|
|
59
|
+
disabled: V || m("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
|
+
d(e, i), f("organization", e, i);
|
|
72
72
|
},
|
|
73
73
|
value: i.viewModel.organization,
|
|
74
74
|
verificationService: i,
|
|
75
|
-
disabled:
|
|
75
|
+
disabled: m("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: m("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: m("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: m("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: m("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) => l(e),
|
|
127
|
+
disabled: m("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: m("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: m("marketConsentValue")?.disabled
|
|
154
154
|
}),
|
|
155
155
|
/* @__PURE__ */ (0, M.jsx)(E, {
|
|
156
156
|
verificationService: i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-D7g3gCUl.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,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ACC;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-oKQFxnEJ.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,WAAW,EAAU,SAAS,KAAK;KACpD,OAAO,EAAU,WAAW,EAAe,GAAM,EAAU,SAAS,EAAE,IAAI;IAC5E;IACA,WAAW,CAAC,CAAC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