@sheerid/jslib 2.277.0 → 2.279.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 +91 -91
- package/chunk/AddressComponent-BXt3LO3L.js +41 -0
- package/chunk/AddressComponent-BXt3LO3L.js.map +1 -0
- package/chunk/AddressComponent-lF-v0RZf.js +37 -0
- package/chunk/AddressComponent-lF-v0RZf.js.map +1 -0
- package/chunk/AnnouncingHeader-CCVSQeQR.js +4 -4
- package/chunk/AnnouncingHeader-YPjBYzsZ.js +4 -4
- package/chunk/{ApiUrls-C93kMsSC.js → ApiUrls-CKbVuRAx.js} +5 -5
- package/chunk/{ApiUrls-C93kMsSC.js.map → ApiUrls-CKbVuRAx.js.map} +1 -1
- package/chunk/{ApiUrls-BEuqNxHS.js → ApiUrls-K7CaWewT.js} +5 -5
- package/chunk/{ApiUrls-BEuqNxHS.js.map → ApiUrls-K7CaWewT.js.map} +1 -1
- package/chunk/{BirthDateComponent-f9e4it7x.js → BirthDateComponent-CD4M-BN9.js} +6 -6
- package/chunk/{BirthDateComponent-MZDnneXy.js.map → BirthDateComponent-CD4M-BN9.js.map} +1 -1
- package/chunk/{BirthDateComponent-MZDnneXy.js → BirthDateComponent-D3HhW2Lq.js} +6 -6
- package/chunk/{BirthDateComponent-f9e4it7x.js.map → BirthDateComponent-D3HhW2Lq.js.map} +1 -1
- package/chunk/{CaptchaComponent-CCq7YSum.js → CaptchaComponent-DlgV116k.js} +122 -121
- package/chunk/CaptchaComponent-DlgV116k.js.map +1 -0
- package/chunk/{CaptchaComponent-hqx9tSkk.js → CaptchaComponent-_azicSSq.js} +122 -121
- package/chunk/CaptchaComponent-_azicSSq.js.map +1 -0
- package/chunk/{ChangeLocaleComponent-DtJjnuBc.js → ChangeLocaleComponent-DaswLDgf.js} +62 -61
- package/chunk/{ChangeLocaleComponent-CKKK4OcA.js.map → ChangeLocaleComponent-DaswLDgf.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CKKK4OcA.js → ChangeLocaleComponent-oYqC5rPO.js} +62 -61
- package/chunk/{ChangeLocaleComponent-DtJjnuBc.js.map → ChangeLocaleComponent-oYqC5rPO.js.map} +1 -1
- package/chunk/City-Ca92IEBF.js +36 -0
- package/chunk/City-Ca92IEBF.js.map +1 -0
- package/chunk/City-DT_jbaQV.js +40 -0
- package/chunk/City-DT_jbaQV.js.map +1 -0
- package/chunk/{CollegeNameComponent-C47D3rO4.js → CollegeNameComponent-BPwD0IZd.js} +6 -6
- package/chunk/{CollegeNameComponent-4QYMIIcd.js.map → CollegeNameComponent-BPwD0IZd.js.map} +1 -1
- package/chunk/{CollegeNameComponent-4QYMIIcd.js → CollegeNameComponent-CPHVzAfn.js} +6 -6
- package/chunk/{CollegeNameComponent-C47D3rO4.js.map → CollegeNameComponent-CPHVzAfn.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-DGi3bxV2.js +4 -4
- package/chunk/CopyToClipboardComponent-cLuyXFes.js +4 -4
- package/chunk/CountryComponentWrapper-BfX4aqM2.js +82 -0
- package/chunk/CountryComponentWrapper-BfX4aqM2.js.map +1 -0
- package/chunk/CountryComponentWrapper-DziHrBMX.js +78 -0
- package/chunk/CountryComponentWrapper-DziHrBMX.js.map +1 -0
- package/chunk/DischargeDateComponent-BrNcDHcj.js +119 -0
- package/chunk/DischargeDateComponent-BrNcDHcj.js.map +1 -0
- package/chunk/DischargeDateComponent-Caq0MbSz.js +115 -0
- package/chunk/DischargeDateComponent-Caq0MbSz.js.map +1 -0
- package/chunk/DriverLicenseNumberComponent-BeJbl-IS.js +39 -0
- package/chunk/DriverLicenseNumberComponent-BeJbl-IS.js.map +1 -0
- package/chunk/DriverLicenseNumberComponent-DqHVF2Mw.js +43 -0
- package/chunk/DriverLicenseNumberComponent-DqHVF2Mw.js.map +1 -0
- package/chunk/{EmailLoopPending-HyZBgisU.js → EmailLoopPending-Dc_6ANLw.js} +40 -49
- package/chunk/EmailLoopPending-Dc_6ANLw.js.map +1 -0
- package/chunk/{EmailLoopPending-ojWCBFjq.js → EmailLoopPending-i9SDmULt.js} +39 -48
- package/chunk/EmailLoopPending-i9SDmULt.js.map +1 -0
- package/chunk/{ExtraMessage-BXxlQROb.js → ExtraMessage-BCHypT6I.js} +5 -5
- package/chunk/{ExtraMessage-BXxlQROb.js.map → ExtraMessage-BCHypT6I.js.map} +1 -1
- package/chunk/{ExtraMessage-PLTUBdhw.js → ExtraMessage-owvdVH7U.js} +5 -5
- package/chunk/{ExtraMessage-PLTUBdhw.js.map → ExtraMessage-owvdVH7U.js.map} +1 -1
- package/chunk/FirstResponderOrganizationComponent-Cq8brgQb.js +37 -0
- package/chunk/FirstResponderOrganizationComponent-Cq8brgQb.js.map +1 -0
- package/chunk/FirstResponderOrganizationComponent-zm8038ks.js +41 -0
- package/chunk/FirstResponderOrganizationComponent-zm8038ks.js.map +1 -0
- package/chunk/{FormFieldInputSelect-C6OyLsWL.js → FormFieldInputSelect-B56HjXNt.js} +5 -5
- package/chunk/{FormFieldInputSelect-C6OyLsWL.js.map → FormFieldInputSelect-B56HjXNt.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Cl4QZ12h.js → FormFieldInputSelect-CTkrJXtl.js} +5 -5
- package/chunk/{FormFieldInputSelect-Cl4QZ12h.js.map → FormFieldInputSelect-CTkrJXtl.js.map} +1 -1
- package/chunk/FormFieldLayout-C4SCdGBC.js +4 -4
- package/chunk/FormFieldLayout-Cj_v9kYa.js +4 -4
- package/chunk/FormFieldText-BbdrtNh_.js +4 -4
- package/chunk/FormFieldText-Gf13Luq7.js +4 -4
- package/chunk/{FormFieldTypeahead-DbrQgvbJ.js → FormFieldTypeahead-DV-Vbq4P.js} +465 -469
- package/chunk/{FormFieldTypeahead-DTFxOQnf.js.map → FormFieldTypeahead-DV-Vbq4P.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DTFxOQnf.js → FormFieldTypeahead-rknI__Ge.js} +385 -389
- package/chunk/{FormFieldTypeahead-DbrQgvbJ.js.map → FormFieldTypeahead-rknI__Ge.js.map} +1 -1
- package/chunk/FormFooterComponent-CKDwnyg2.js +2006 -0
- package/chunk/FormFooterComponent-CKDwnyg2.js.map +1 -0
- package/chunk/FormFooterComponent-DEFTsR2L.js +1980 -0
- package/chunk/FormFooterComponent-DEFTsR2L.js.map +1 -0
- package/chunk/{FormSelectChoice-C4LlT7fR.js → FormSelectChoice-BLwNcyNA.js} +5 -5
- package/chunk/{FormSelectChoice-C4LlT7fR.js.map → FormSelectChoice-BLwNcyNA.js.map} +1 -1
- package/chunk/{FormSelectChoice-CClt04rV.js → FormSelectChoice-CNxt_oMb.js} +5 -5
- package/chunk/{FormSelectChoice-CClt04rV.js.map → FormSelectChoice-CNxt_oMb.js.map} +1 -1
- package/chunk/InputText-BXPuBlPq.js +4 -4
- package/chunk/InputText-h_myNeHr.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-BbKzyFwo.js +40 -0
- package/chunk/LicensedProfessionalOrganizationComponent-BbKzyFwo.js.map +1 -0
- package/chunk/LicensedProfessionalOrganizationComponent-MO7F0SpQ.js +36 -0
- package/chunk/LicensedProfessionalOrganizationComponent-MO7F0SpQ.js.map +1 -0
- package/chunk/LogoComponent-Do8K5ydz.js +4 -4
- package/chunk/LogoComponent-Dx1G-rzE.js +4 -4
- package/chunk/LowIncomeOrganizationComponent-DjlrreR8.js +100 -0
- package/chunk/LowIncomeOrganizationComponent-DjlrreR8.js.map +1 -0
- package/chunk/LowIncomeOrganizationComponent-eipgmum9.js +104 -0
- package/chunk/LowIncomeOrganizationComponent-eipgmum9.js.map +1 -0
- package/chunk/MedicalProfessionalOrganizationComponent-BCYOuT46.js +37 -0
- package/chunk/MedicalProfessionalOrganizationComponent-BCYOuT46.js.map +1 -0
- package/chunk/MedicalProfessionalOrganizationComponent-BTlqVGFC.js +41 -0
- package/chunk/MedicalProfessionalOrganizationComponent-BTlqVGFC.js.map +1 -0
- package/chunk/MemberIdComponent-BRu3zJYi.js +43 -0
- package/chunk/MemberIdComponent-BRu3zJYi.js.map +1 -0
- package/chunk/MemberIdComponent-DDoGHydu.js +39 -0
- package/chunk/MemberIdComponent-DDoGHydu.js.map +1 -0
- package/chunk/MembershipOrganizationComponent-CPvwsgGQ.js +36 -0
- package/chunk/MembershipOrganizationComponent-CPvwsgGQ.js.map +1 -0
- package/chunk/MembershipOrganizationComponent-E2KnhazB.js +40 -0
- package/chunk/MembershipOrganizationComponent-E2KnhazB.js.map +1 -0
- package/chunk/{FormFooterComponent-CaOt9TQw.js → Message-C8RQk5lc.js} +6392 -6917
- package/chunk/Message-C8RQk5lc.js.map +1 -0
- package/chunk/{FormFooterComponent-B2W5vjOS.js → Message-Sbek6JOj.js} +7582 -8121
- package/chunk/Message-Sbek6JOj.js.map +1 -0
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-D_Y9q0Iy.js → PersonalInfoStepSubmitButton-DGdDk2n_.js} +35 -34
- package/chunk/PersonalInfoStepSubmitButton-DGdDk2n_.js.map +1 -0
- package/chunk/{PersonalInfoStepSubmitButton-DA3ceOLw.js → PersonalInfoStepSubmitButton-ksVF3h1P.js} +35 -34
- package/chunk/PersonalInfoStepSubmitButton-ksVF3h1P.js.map +1 -0
- package/chunk/{PersonalInfoStepWrapper-Dsb0Qcv5.js → PersonalInfoStepWrapper-BUOcq-Sb.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-Dsb0Qcv5.js.map → PersonalInfoStepWrapper-BUOcq-Sb.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-6neTJTQD.js → PersonalInfoStepWrapper-bFDtj-hV.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-6neTJTQD.js.map → PersonalInfoStepWrapper-bFDtj-hV.js.map} +1 -1
- package/chunk/PostalCodeComponent-C6gU75E3.js +42 -0
- package/chunk/PostalCodeComponent-C6gU75E3.js.map +1 -0
- package/chunk/PostalCodeComponent-DShP_eiB.js +38 -0
- package/chunk/PostalCodeComponent-DShP_eiB.js.map +1 -0
- package/chunk/SSN-BF8VH8xi.js +45 -0
- package/chunk/SSN-BF8VH8xi.js.map +1 -0
- package/chunk/SSN-X45bqqG5.js +49 -0
- package/chunk/SSN-X45bqqG5.js.map +1 -0
- package/chunk/StateSelectComponent-DEsJPcGo.js +38 -0
- package/chunk/StateSelectComponent-DEsJPcGo.js.map +1 -0
- package/chunk/StateSelectComponent-MEcusWyr.js +42 -0
- package/chunk/StateSelectComponent-MEcusWyr.js.map +1 -0
- package/chunk/{StatusComponent-BTvs1WVn.js → StatusComponent-BlVRLPOR.js} +6 -6
- package/chunk/{StatusComponent-BTvs1WVn.js.map → StatusComponent-BlVRLPOR.js.map} +1 -1
- package/chunk/{StatusComponent-BxQNsHYs.js → StatusComponent-DP2VlynN.js} +6 -6
- package/chunk/{StatusComponent-BxQNsHYs.js.map → StatusComponent-DP2VlynN.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BOnOqXxm.js → StepAgePersonalInfo-BfVe24h1.js} +39 -39
- package/chunk/{StepAgePersonalInfo-BOnOqXxm.js.map → StepAgePersonalInfo-BfVe24h1.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-UWfkIpnn.js → StepAgePersonalInfo-BsftVg7L.js} +39 -39
- package/chunk/{StepAgePersonalInfo-UWfkIpnn.js.map → StepAgePersonalInfo-BsftVg7L.js.map} +1 -1
- package/chunk/StepCard-B0o7IN6g.js +4 -4
- package/chunk/StepCard-CWT2BiAH.js +4 -4
- package/chunk/{StepCollectIdentifier-D7bSwvYI.js → StepCollectIdentifier-BbSr7Z9A.js} +9 -9
- package/chunk/{StepCollectIdentifier-D7bSwvYI.js.map → StepCollectIdentifier-BbSr7Z9A.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CtpUvhZs.js → StepCollectIdentifier-DWxYhtYJ.js} +7 -7
- package/chunk/{StepCollectIdentifier-CtpUvhZs.js.map → StepCollectIdentifier-DWxYhtYJ.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-BcmZhgl3.js → StepCollectMilitaryPersonalInfoComponent-Bf8Y4oMV.js} +58 -58
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-BcmZhgl3.js.map → StepCollectMilitaryPersonalInfoComponent-Bf8Y4oMV.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CHxXr8xM.js → StepCollectMilitaryPersonalInfoComponent-CXBsaj89.js} +58 -58
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CHxXr8xM.js.map → StepCollectMilitaryPersonalInfoComponent-CXBsaj89.js.map} +1 -1
- package/chunk/StepCollectPersonalInfo-CpZ03KDD.js +368 -0
- package/chunk/{StepCollectPersonalInfo-CzLVKlZ3.js.map → StepCollectPersonalInfo-CpZ03KDD.js.map} +1 -1
- package/chunk/StepCollectPersonalInfo-Dl1oW7u9.js +372 -0
- package/chunk/{StepCollectPersonalInfo-BlAJbqgb.js.map → StepCollectPersonalInfo-Dl1oW7u9.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-Cnv_QzG7.js → StepCompleteAuthentication-BZrnQ5_y.js} +8 -8
- package/chunk/{StepCompleteAuthentication-Cnv_QzG7.js.map → StepCompleteAuthentication-BZrnQ5_y.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-D7NH3MFa.js → StepCompleteAuthentication-mYpzxp_K.js} +8 -8
- package/chunk/{StepCompleteAuthentication-D7NH3MFa.js.map → StepCompleteAuthentication-mYpzxp_K.js.map} +1 -1
- package/chunk/{StepConsolation-BrzJnbYN.js → StepConsolation-B-89ZSSf.js} +5 -5
- package/chunk/{StepConsolation-BrzJnbYN.js.map → StepConsolation-B-89ZSSf.js.map} +1 -1
- package/chunk/{StepConsolation-C5ZHdmQ6.js → StepConsolation-CyFzsf7D.js} +5 -5
- package/chunk/{StepConsolation-C5ZHdmQ6.js.map → StepConsolation-CyFzsf7D.js.map} +1 -1
- package/chunk/{StepDocUpload-D2_e55pR.js → StepDocUpload-BhSHl2xg.js} +579 -581
- package/chunk/{StepDocUpload-BuH-EW5U.js.map → StepDocUpload-BhSHl2xg.js.map} +1 -1
- package/chunk/{StepDocUpload-BuH-EW5U.js → StepDocUpload-Da23Nac7.js} +563 -565
- package/chunk/{StepDocUpload-D2_e55pR.js.map → StepDocUpload-Da23Nac7.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-UZoq9OhC.js → StepDriverLicensePersonalInfoComponent-BzzPdAKT.js} +29 -29
- package/chunk/{StepDriverLicensePersonalInfoComponent-DcVZb5ke.js.map → StepDriverLicensePersonalInfoComponent-BzzPdAKT.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DcVZb5ke.js → StepDriverLicensePersonalInfoComponent-DZREXMwQ.js} +29 -29
- package/chunk/{StepDriverLicensePersonalInfoComponent-UZoq9OhC.js.map → StepDriverLicensePersonalInfoComponent-DZREXMwQ.js.map} +1 -1
- package/chunk/{StepEmailLoop-138hnevc.js → StepEmailLoop-D84khZXV.js} +57 -57
- package/chunk/{StepEmailLoop-138hnevc.js.map → StepEmailLoop-D84khZXV.js.map} +1 -1
- package/chunk/{StepEmailLoop-p3PjfBvc.js → StepEmailLoop-DROpnxge.js} +57 -57
- package/chunk/{StepEmailLoop-p3PjfBvc.js.map → StepEmailLoop-DROpnxge.js.map} +1 -1
- package/chunk/StepEmploymentPersonalInfo-BGr1Yvq_.js +216 -0
- package/chunk/StepEmploymentPersonalInfo-BGr1Yvq_.js.map +1 -0
- package/chunk/StepEmploymentPersonalInfo-D7RPMyzC.js +220 -0
- package/chunk/StepEmploymentPersonalInfo-D7RPMyzC.js.map +1 -0
- package/chunk/{StepFirstResponderPersonalInfo-gF_5zHxj.js → StepFirstResponderPersonalInfo-CjNdy_IK.js} +42 -42
- package/chunk/{StepFirstResponderPersonalInfo-CSGMgT02.js.map → StepFirstResponderPersonalInfo-CjNdy_IK.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CSGMgT02.js → StepFirstResponderPersonalInfo-DQCaR_hD.js} +42 -42
- package/chunk/{StepFirstResponderPersonalInfo-gF_5zHxj.js.map → StepFirstResponderPersonalInfo-DQCaR_hD.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cgp_PX5L.js → StepGeneralIdentityPersonalInfoComponent-BsDZlyGG.js} +38 -38
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cgp_PX5L.js.map → StepGeneralIdentityPersonalInfoComponent-BsDZlyGG.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D4wP5D1G.js → StepGeneralIdentityPersonalInfoComponent-DRxMlfke.js} +38 -38
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D4wP5D1G.js.map → StepGeneralIdentityPersonalInfoComponent-DRxMlfke.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-ChtlT4nZ.js → StepHybridIdentityPersonalInfoComponent-BGVL9sDI.js} +41 -41
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Cez-TR1Z.js.map → StepHybridIdentityPersonalInfoComponent-BGVL9sDI.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Cez-TR1Z.js → StepHybridIdentityPersonalInfoComponent-DmXgxIAw.js} +41 -41
- package/chunk/{StepHybridIdentityPersonalInfoComponent-ChtlT4nZ.js.map → StepHybridIdentityPersonalInfoComponent-DmXgxIAw.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CX6VsvAJ.js → StepIDCheckLoop-9dhIxbuJ.js} +5 -5
- package/chunk/{StepIDCheckLoop-CX6VsvAJ.js.map → StepIDCheckLoop-9dhIxbuJ.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DFhu-v9n.js → StepIDCheckLoop-DTIF9BCb.js} +5 -5
- package/chunk/{StepIDCheckLoop-DFhu-v9n.js.map → StepIDCheckLoop-DTIF9BCb.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CiuUU7f9.js → StepIDCheckLoopOnfido-BxY2wBPp.js} +112 -113
- package/chunk/StepIDCheckLoopOnfido-BxY2wBPp.js.map +1 -0
- package/chunk/{StepIDCheckLoopOnfido-0o-ZdynC.js → StepIDCheckLoopOnfido-DEwJWvD5.js} +112 -113
- package/chunk/StepIDCheckLoopOnfido-DEwJWvD5.js.map +1 -0
- package/chunk/{StepIDCheckLoopRegula-D94f7Ccr.js → StepIDCheckLoopRegula-B6NsjTDL.js} +6 -5
- package/chunk/{StepIDCheckLoopRegula-D5Ln2I62.js.map → StepIDCheckLoopRegula-B6NsjTDL.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-D5Ln2I62.js → StepIDCheckLoopRegula-CnxabsF_.js} +6 -5
- package/chunk/{StepIDCheckLoopRegula-D94f7Ccr.js.map → StepIDCheckLoopRegula-CnxabsF_.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CHQbAgsG.js → StepLicensedProfessionalPersonalInfo-Bxh1PYd4.js} +39 -39
- package/chunk/{StepLicensedProfessionalPersonalInfo-BHInsLPJ.js.map → StepLicensedProfessionalPersonalInfo-Bxh1PYd4.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-BHInsLPJ.js → StepLicensedProfessionalPersonalInfo-avWn-HsU.js} +39 -39
- package/chunk/{StepLicensedProfessionalPersonalInfo-CHQbAgsG.js.map → StepLicensedProfessionalPersonalInfo-avWn-HsU.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-oBDI4ML2.js → StepLowIncomePersonalInfo-Du_sG7Xc.js} +54 -54
- package/chunk/{StepLowIncomePersonalInfo-DVDI4DRm.js.map → StepLowIncomePersonalInfo-Du_sG7Xc.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-DVDI4DRm.js → StepLowIncomePersonalInfo-qYLCAzKx.js} +54 -54
- package/chunk/{StepLowIncomePersonalInfo-oBDI4ML2.js.map → StepLowIncomePersonalInfo-qYLCAzKx.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-_x2wcVNS.js → StepMedicalProfessionalPersonalInfo-B9f28oQh.js} +44 -44
- package/chunk/{StepMedicalProfessionalPersonalInfo-DmoUExs9.js.map → StepMedicalProfessionalPersonalInfo-B9f28oQh.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DmoUExs9.js → StepMedicalProfessionalPersonalInfo-C9owmZP4.js} +44 -44
- package/chunk/{StepMedicalProfessionalPersonalInfo-_x2wcVNS.js.map → StepMedicalProfessionalPersonalInfo-C9owmZP4.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BAjKLJCl.js → StepMemberPersonalInfo-B3abjYzP.js} +27 -27
- package/chunk/{StepMemberPersonalInfo-BAjKLJCl.js.map → StepMemberPersonalInfo-B3abjYzP.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CI9Q06Ic.js → StepMemberPersonalInfo-BjwgnTyJ.js} +27 -27
- package/chunk/{StepMemberPersonalInfo-CI9Q06Ic.js.map → StepMemberPersonalInfo-BjwgnTyJ.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DIkMi5zU.js → StepMoverPersonalInfo-BuAttGuv.js} +28 -28
- package/chunk/{StepMoverPersonalInfo-CVT4pPa6.js.map → StepMoverPersonalInfo-BuAttGuv.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CVT4pPa6.js → StepMoverPersonalInfo-DHQ4lFop.js} +28 -28
- package/chunk/{StepMoverPersonalInfo-DIkMi5zU.js.map → StepMoverPersonalInfo-DHQ4lFop.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DOBT7C22.js → StepOverrideComponent-BECVh2YW.js} +31 -33
- package/chunk/StepOverrideComponent-BECVh2YW.js.map +1 -0
- package/chunk/{StepOverrideComponent-B9HVSPlq.js → StepOverrideComponent-BbflJqAn.js} +31 -33
- package/chunk/StepOverrideComponent-BbflJqAn.js.map +1 -0
- package/chunk/StepSMSLoop-DBLKaJge.js +172 -0
- package/chunk/StepSMSLoop-DBLKaJge.js.map +1 -0
- package/chunk/StepSMSLoop-DaWjEr_v.js +168 -0
- package/chunk/StepSMSLoop-DaWjEr_v.js.map +1 -0
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-LcWg-zo5.js → StepSocialSecurityNumber-O1UZ-5U6.js} +10 -10
- package/chunk/{StepSocialSecurityNumber-DepVz3V7.js.map → StepSocialSecurityNumber-O1UZ-5U6.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-DepVz3V7.js → StepSocialSecurityNumber-rJXiboT7.js} +10 -10
- package/chunk/{StepSocialSecurityNumber-LcWg-zo5.js.map → StepSocialSecurityNumber-rJXiboT7.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DQMWaRSa.js → StepStudentPersonalInfo-CDJ5MqYn.js} +69 -74
- package/chunk/StepStudentPersonalInfo-CDJ5MqYn.js.map +1 -0
- package/chunk/{StepStudentPersonalInfo-CxPq9ICS.js → StepStudentPersonalInfo-tgT5jO54.js} +69 -74
- package/chunk/StepStudentPersonalInfo-tgT5jO54.js.map +1 -0
- package/chunk/{StepSuccess-CvK7t1zN.js → StepSuccess-C1pgML90.js} +6 -6
- package/chunk/{StepSuccess-C3a0CPsE.js.map → StepSuccess-C1pgML90.js.map} +1 -1
- package/chunk/{StepSuccess-C3a0CPsE.js → StepSuccess-CLv_-kPd.js} +6 -6
- package/chunk/{StepSuccess-CvK7t1zN.js.map → StepSuccess-CLv_-kPd.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-_Wwkq-dn.js → StepTeacherPersonalInfo-BndXbwZz.js} +26 -26
- package/chunk/{StepTeacherPersonalInfo-DhOL3_0H.js.map → StepTeacherPersonalInfo-BndXbwZz.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-DhOL3_0H.js → StepTeacherPersonalInfo-DttiAJyO.js} +26 -26
- package/chunk/{StepTeacherPersonalInfo-_Wwkq-dn.js.map → StepTeacherPersonalInfo-DttiAJyO.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-3HVz97q_.js → TeacherSchoolComponent-CnBfquOO.js} +6 -6
- package/chunk/{TeacherSchoolComponent-3HVz97q_.js.map → TeacherSchoolComponent-CnBfquOO.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BwLUGmNi.js → TeacherSchoolComponent-DOAXb1sf.js} +6 -6
- package/chunk/{TeacherSchoolComponent-BwLUGmNi.js.map → TeacherSchoolComponent-DOAXb1sf.js.map} +1 -1
- package/chunk/TestingRouteOverrides-CAGESMw9.js +4 -4
- package/chunk/TestingRouteOverrides-CrhfSmLr.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-Dh-2G5c3.js +4 -4
- package/chunk/bg-BbAhdJRh.js +4 -4
- package/chunk/bn-IN-Cx3Q5Utp.js +4 -4
- package/chunk/countryUtils-AR9k3KRg.js +4 -4
- package/chunk/countryUtils-DWqId-zY.js +4 -4
- package/chunk/cs-CYGsmvju.js +4 -4
- package/chunk/da-COZWvvUD.js +4 -4
- package/chunk/de-BHclNQGr.js +4 -4
- package/chunk/{downshift.esm-BKI3sFd7.js → downshift.esm-CljItZH3.js} +5 -5
- package/chunk/{downshift.esm-BKI3sFd7.js.map → downshift.esm-CljItZH3.js.map} +1 -1
- package/chunk/{downshift.esm-DryiNDJI.js → downshift.esm-GP9lYKvI.js} +5 -5
- package/chunk/{downshift.esm-DryiNDJI.js.map → downshift.esm-GP9lYKvI.js.map} +1 -1
- package/chunk/el-Bv_XQ0FX.js +4 -4
- package/chunk/empties-B6naRhes.js +4 -4
- package/chunk/empties-Crmkxudi.js +4 -4
- package/chunk/en-GB-CkENrh2I.js +4 -4
- package/chunk/es-BRKAFTKN.js +4 -4
- package/chunk/es-ES-BWfAbWbQ.js +4 -4
- package/chunk/et-CxMgVbW2.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BEC3aNBF.js +4 -4
- package/chunk/fi-BaP3FR15.js +4 -4
- package/chunk/fr-CA-CS4SuM-m.js +4 -4
- package/chunk/fr-DSU2B7p2.js +4 -4
- package/chunk/ga-DZEr9X_A.js +4 -4
- package/chunk/hi-IN-DvBVpWNQ.js +4 -4
- package/chunk/hooks-C15H5pD-.js +4 -4
- package/chunk/hooks-ChQrxN58.js +4 -4
- package/chunk/hr-CL1lHDbu.js +4 -4
- package/chunk/hu-Cf5Uq9R_.js +4 -4
- package/chunk/id-ay9yilKx.js +4 -4
- package/chunk/intl-e5WHiYfA.js +4 -4
- package/chunk/is-tpzRyIZi.js +4 -4
- package/chunk/it-C3-BupR4.js +4 -4
- package/chunk/iw-CBna3XPT.js +4 -4
- package/chunk/ja-DvXOkZRn.js +4 -4
- package/chunk/jsx-runtime-Ini3eO9_.js +4 -4
- package/chunk/jsx-runtime-LqzCS-0D.js +4 -4
- package/chunk/kk-DGXgY6Uw.js +4 -4
- package/chunk/ko-BlUGwGxN.js +4 -4
- package/chunk/lo-DT6wxwS1.js +4 -4
- package/chunk/lt-CT5-H4ci.js +4 -4
- package/chunk/lv-CBMD1XRp.js +4 -4
- package/chunk/mocks-DGc1byho.js +4 -4
- package/chunk/mocks-RU9BGNOn.js +4 -4
- package/chunk/ms-DuxNeOgk.js +4 -4
- package/chunk/nl-BE-D028qM7-.js +4 -4
- package/chunk/nl-DEuaat_s.js +4 -4
- package/chunk/no-CjeRjD1D.js +4 -4
- package/chunk/options-pBCAJBwS.js +4 -4
- package/chunk/pl-X0qJw7IS.js +4 -4
- package/chunk/programThemeGetters-C9Sw0RZq.js +4 -4
- package/chunk/programThemeGetters-uLsgGat1.js +4 -4
- package/chunk/pt-BR-C6XmLn3o.js +4 -4
- package/chunk/pt-o7v4iOVx.js +4 -4
- package/chunk/refs-CGvEbCaw.js +4 -4
- package/chunk/refs-CI3K5ndt.js +4 -4
- package/chunk/ro-C74ZR3HS.js +4 -4
- package/chunk/ru-BA9P3RVu.js +4 -4
- package/chunk/sk-DmyizV49.js +4 -4
- package/chunk/sl-Cxm3YoWE.js +4 -4
- package/chunk/sr-gOtgEOlP.js +4 -4
- package/chunk/{stepComponentHelpers-DIHMDrmF.js → stepComponentHelpers-BOwTk6Tq.js} +39 -51
- package/chunk/stepComponentHelpers-BOwTk6Tq.js.map +1 -0
- package/chunk/{stepComponentHelpers-BdqtwfRd.js → stepComponentHelpers-Cm0-8yXr.js} +39 -51
- package/chunk/stepComponentHelpers-Cm0-8yXr.js.map +1 -0
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DnCUWo1-.js +4 -4
- package/chunk/sw-BY7XXvUU.js +4 -4
- package/chunk/ta-CVL0b6Hh.js +4 -4
- package/chunk/th-CyU0RW3x.js +4 -4
- package/chunk/tl-BfgQ0irB.js +4 -4
- package/chunk/tr-BPg_L4bY.js +4 -4
- package/chunk/uk-CNaioa7V.js +4 -4
- package/chunk/ur-Ht1Mcpm0.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-BsX_IHLN.js → useCollectFieldsEndpoint-D_Qf33n2.js} +9 -10
- package/chunk/{useCollectFieldsEndpoint-BsX_IHLN.js.map → useCollectFieldsEndpoint-D_Qf33n2.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-D7OQBDpX.js → useCollectFieldsEndpoint-jY0agtQB.js} +13 -14
- package/chunk/{useCollectFieldsEndpoint-D7OQBDpX.js.map → useCollectFieldsEndpoint-jY0agtQB.js.map} +1 -1
- package/chunk/useMetrics-BrHWTzbP.js +4 -4
- package/chunk/useMetrics-O5xTFm6y.js +4 -4
- package/chunk/vi-sI1BYLXG.js +4 -4
- package/chunk/zh-DNG4VB8r.js +4 -4
- package/chunk/zh-HK-5Y3ROXEm.js +4 -4
- package/chunk/zu-DNMG8Idu.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 +654 -654
- package/sheerid.js.map +1 -1
- package/chunk/AddressComponent-C3iwf09x.js +0 -40
- package/chunk/AddressComponent-C3iwf09x.js.map +0 -1
- package/chunk/AddressComponent-oDHvr6bn.js +0 -36
- package/chunk/AddressComponent-oDHvr6bn.js.map +0 -1
- package/chunk/CaptchaComponent-CCq7YSum.js.map +0 -1
- package/chunk/CaptchaComponent-hqx9tSkk.js.map +0 -1
- package/chunk/City-CUVEjTrI.js +0 -39
- package/chunk/City-CUVEjTrI.js.map +0 -1
- package/chunk/City-Drub1WX8.js +0 -35
- package/chunk/City-Drub1WX8.js.map +0 -1
- package/chunk/CountryComponentWrapper-B3Ki9bAz.js +0 -78
- package/chunk/CountryComponentWrapper-B3Ki9bAz.js.map +0 -1
- package/chunk/CountryComponentWrapper-DeR9PrA2.js +0 -82
- package/chunk/CountryComponentWrapper-DeR9PrA2.js.map +0 -1
- package/chunk/DischargeDateComponent-Btg3v71t.js +0 -117
- package/chunk/DischargeDateComponent-Btg3v71t.js.map +0 -1
- package/chunk/DischargeDateComponent-CqKUrGE0.js +0 -121
- package/chunk/DischargeDateComponent-CqKUrGE0.js.map +0 -1
- package/chunk/DriverLicenseNumberComponent-B2arYwHU.js +0 -42
- package/chunk/DriverLicenseNumberComponent-B2arYwHU.js.map +0 -1
- package/chunk/DriverLicenseNumberComponent-ByNoEq6v.js +0 -38
- package/chunk/DriverLicenseNumberComponent-ByNoEq6v.js.map +0 -1
- package/chunk/EmailLoopPending-HyZBgisU.js.map +0 -1
- package/chunk/EmailLoopPending-ojWCBFjq.js.map +0 -1
- package/chunk/FirstResponderOrganizationComponent-BiI8JG49.js +0 -36
- package/chunk/FirstResponderOrganizationComponent-BiI8JG49.js.map +0 -1
- package/chunk/FirstResponderOrganizationComponent-BwzXdBV-.js +0 -40
- package/chunk/FirstResponderOrganizationComponent-BwzXdBV-.js.map +0 -1
- package/chunk/FormFooterComponent-B2W5vjOS.js.map +0 -1
- package/chunk/FormFooterComponent-CaOt9TQw.js.map +0 -1
- package/chunk/LicensedProfessionalOrganizationComponent-wJSn67h6.js +0 -39
- package/chunk/LicensedProfessionalOrganizationComponent-wJSn67h6.js.map +0 -1
- package/chunk/LicensedProfessionalOrganizationComponent-wfXwXvVc.js +0 -35
- package/chunk/LicensedProfessionalOrganizationComponent-wfXwXvVc.js.map +0 -1
- package/chunk/LowIncomeOrganizationComponent-C3Dc7HeO.js +0 -110
- package/chunk/LowIncomeOrganizationComponent-C3Dc7HeO.js.map +0 -1
- package/chunk/LowIncomeOrganizationComponent-D8RlrBXa.js +0 -106
- package/chunk/LowIncomeOrganizationComponent-D8RlrBXa.js.map +0 -1
- package/chunk/MedicalProfessionalOrganizationComponent-BlEmZTpI.js +0 -40
- package/chunk/MedicalProfessionalOrganizationComponent-BlEmZTpI.js.map +0 -1
- package/chunk/MedicalProfessionalOrganizationComponent-DS1iVIfQ.js +0 -36
- package/chunk/MedicalProfessionalOrganizationComponent-DS1iVIfQ.js.map +0 -1
- package/chunk/MemberIdComponent-5OnkQeLm.js +0 -42
- package/chunk/MemberIdComponent-5OnkQeLm.js.map +0 -1
- package/chunk/MemberIdComponent-sR9aGDN4.js +0 -38
- package/chunk/MemberIdComponent-sR9aGDN4.js.map +0 -1
- package/chunk/MembershipOrganizationComponent-BrbunU1_.js +0 -35
- package/chunk/MembershipOrganizationComponent-BrbunU1_.js.map +0 -1
- package/chunk/MembershipOrganizationComponent-UqzaA4bV.js +0 -39
- package/chunk/MembershipOrganizationComponent-UqzaA4bV.js.map +0 -1
- package/chunk/PersonalInfoStepSubmitButton-DA3ceOLw.js.map +0 -1
- package/chunk/PersonalInfoStepSubmitButton-D_Y9q0Iy.js.map +0 -1
- package/chunk/PostalCodeComponent-BhBBSAL-.js +0 -41
- package/chunk/PostalCodeComponent-BhBBSAL-.js.map +0 -1
- package/chunk/PostalCodeComponent-DKC3DspF.js +0 -37
- package/chunk/PostalCodeComponent-DKC3DspF.js.map +0 -1
- package/chunk/SSN-7DHOlAAq.js +0 -44
- package/chunk/SSN-7DHOlAAq.js.map +0 -1
- package/chunk/SSN-DlBvRiaZ.js +0 -48
- package/chunk/SSN-DlBvRiaZ.js.map +0 -1
- package/chunk/StateSelectComponent-BXHXB6Kn.js +0 -44
- package/chunk/StateSelectComponent-BXHXB6Kn.js.map +0 -1
- package/chunk/StateSelectComponent-lM5e-_1v.js +0 -40
- package/chunk/StateSelectComponent-lM5e-_1v.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-BlAJbqgb.js +0 -372
- package/chunk/StepCollectPersonalInfo-CzLVKlZ3.js +0 -368
- package/chunk/StepEmploymentPersonalInfo-CIb2V_Aj.js +0 -219
- package/chunk/StepEmploymentPersonalInfo-CIb2V_Aj.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-txyihsja.js +0 -215
- package/chunk/StepEmploymentPersonalInfo-txyihsja.js.map +0 -1
- package/chunk/StepIDCheckLoopOnfido-0o-ZdynC.js.map +0 -1
- package/chunk/StepIDCheckLoopOnfido-CiuUU7f9.js.map +0 -1
- package/chunk/StepOverrideComponent-B9HVSPlq.js.map +0 -1
- package/chunk/StepOverrideComponent-DOBT7C22.js.map +0 -1
- package/chunk/StepSMSLoop-BM7UE2tP.js +0 -180
- package/chunk/StepSMSLoop-BM7UE2tP.js.map +0 -1
- package/chunk/StepSMSLoop-Wr-MrFaf.js +0 -184
- package/chunk/StepSMSLoop-Wr-MrFaf.js.map +0 -1
- package/chunk/StepStudentPersonalInfo-CxPq9ICS.js.map +0 -1
- package/chunk/StepStudentPersonalInfo-DQMWaRSa.js.map +0 -1
- package/chunk/VerificationApiClient-BcE3SjuJ.js +0 -1451
- package/chunk/VerificationApiClient-BcE3SjuJ.js.map +0 -1
- package/chunk/VerificationApiClient-fJ7P4ejD.js +0 -1471
- package/chunk/VerificationApiClient-fJ7P4ejD.js.map +0 -1
- package/chunk/stepComponentHelpers-BdqtwfRd.js.map +0 -1
- package/chunk/stepComponentHelpers-DIHMDrmF.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-oBDI4ML2.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).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 statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"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 updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"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 <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;4CA+Va,IAAqC,GAxRf,EACjC,SACA,6BAC6C;CAC7C,IAAM,EAAE,iBAAc,GAChB,IAAU,EAAW;CAE3B,IAAI,CAAC,EAAc,CAAS,GAE1B,OADA,EAAO,MAAM,yCAAyC,GAC/C;CAGT,IAAM,EAAE,6BAA0B,GAC5B,EAAE,4BAAyB,GAC3B,IAAqB,EACzB,CACF,GAEM,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAiB,EAAuD;EACxE,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACpB,GACA,KAAoB,EAAuD,iBAC7E,GAEM,IAAS,EAAU,aAAa,OAEhC,IAAiB,EAAU,SAAS,KAAK,EAAU,SAAS,KAAK,KAAA,GACjE,IAA+B,MAAmB,iBAClD,KAA4B,GAA2C,MAAe;EAC1F,IAAI,CAAC,EAAc,CAAS,GAAG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KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
|
1
|
+
{"version":3,"file":"StepLowIncomePersonalInfo-qYLCAzKx.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\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 } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).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 statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"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 updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"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 <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;4CA+Va,IAAqC,GAxRf,EACjC,SACA,6BAC6C;CAC7C,IAAM,EAAE,iBAAc,GAChB,IAAU,EAAW;CAE3B,IAAI,CAAC,EAAc,CAAS,GAE1B,OADA,EAAO,MAAM,yCAAyC,GAC/C;CAGT,IAAM,EAAE,6BAA0B,GAC5B,EAAE,4BAAyB,GAC3B,IAAqB,EACzB,CACF,GAEM,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAiB,EAAuD;EACxE,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACpB,GACA,KAAoB,EAAuD,iBAC7E,GAEM,IAAS,EAAU,aAAa,OAEhC,IAAiB,EAAU,SAAS,KAAK,EAAU,SAAS,KAAK,KAAA,GACjE,IAA+B,MAAmB,iBAClD,KAA4B,GAA2C,MAAe;EAC1F,IAAI,CAAC,EAAc,CAAS,GAAG;GAC7B,EAAO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AChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
|
@@ -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.279.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1788995300702
|
|
9
|
+
* BUILD_DATE: Wed Sep 09 2026 23:08:20 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: fdde81acaae8bfe2d0c43f5327d4569e8353b6e7
|
|
11
11
|
*/
|
|
12
12
|
import { Nt as e, Wt as t, s as n } from "./intl-e5WHiYfA.js";
|
|
13
13
|
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-LqzCS-0D.js";
|
|
14
|
-
import {
|
|
14
|
+
import { p as s } from "./FormFooterComponent-DEFTsR2L.js";
|
|
15
15
|
import { t as c } from "../_mysheerid-preview.js";
|
|
16
|
-
import { t as l } from "./useCollectFieldsEndpoint-
|
|
17
|
-
import {
|
|
18
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
19
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-
|
|
20
|
-
import { t as T } from "./BirthDateComponent-
|
|
21
|
-
import { t as E } from "./PostalCodeComponent-
|
|
22
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
23
|
-
import { t as O } from "./ExtraMessage-
|
|
24
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
25
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
16
|
+
import { t as l } from "./useCollectFieldsEndpoint-jY0agtQB.js";
|
|
17
|
+
import { _ as u, c as d, d as f, g as p, i as m, o as h, s as g } from "./stepComponentHelpers-Cm0-8yXr.js";
|
|
18
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-DlgV116k.js";
|
|
19
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-DGdDk2n_.js";
|
|
20
|
+
import { t as T } from "./BirthDateComponent-D3HhW2Lq.js";
|
|
21
|
+
import { t as E } from "./PostalCodeComponent-C6gU75E3.js";
|
|
22
|
+
import { t as D } from "./CountryComponentWrapper-BfX4aqM2.js";
|
|
23
|
+
import { t as O } from "./ExtraMessage-owvdVH7U.js";
|
|
24
|
+
import { t as k } from "./ChangeLocaleComponent-oYqC5rPO.js";
|
|
25
|
+
import { t as A } from "./PersonalInfoStepWrapper-BUOcq-Sb.js";
|
|
26
26
|
import { t as j } from "./countryUtils-AR9k3KRg.js";
|
|
27
|
-
import { t as M } from "./StatusComponent-
|
|
28
|
-
import { t as N } from "./MedicalProfessionalOrganizationComponent-
|
|
29
|
-
import { t as P } from "./MemberIdComponent-
|
|
27
|
+
import { t as M } from "./StatusComponent-DP2VlynN.js";
|
|
28
|
+
import { t as N } from "./MedicalProfessionalOrganizationComponent-BTlqVGFC.js";
|
|
29
|
+
import { t as P } from "./MemberIdComponent-BRu3zJYi.js";
|
|
30
30
|
//#region src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx
|
|
31
31
|
var F = /* @__PURE__ */ t(i(), 1), I = o(), L = {
|
|
32
32
|
AT: "gbrNummer",
|
|
@@ -43,13 +43,13 @@ var F = /* @__PURE__ */ t(i(), 1), I = o(), L = {
|
|
|
43
43
|
};
|
|
44
44
|
}, z = r(({ intl: t, verificationService: r }) => {
|
|
45
45
|
let i = r.viewModel, { fieldValidationErrors: o } = r, L = r.verificationResponse, z = s(L), B = n(), V = i.localeChoice.value, H = (e, t) => {
|
|
46
|
-
let n =
|
|
46
|
+
let n = f(i, e, t);
|
|
47
47
|
r.updateViewModel(n);
|
|
48
48
|
}, { isFieldOptional: U, availableStatuses: W } = l({
|
|
49
49
|
verificationId: L.verificationId,
|
|
50
50
|
currentStep: L.currentStep,
|
|
51
51
|
viewModel: i
|
|
52
|
-
}), G = U("memberId"), K = i.countryChoice?.value, q = j(r.programTheme, K), J =
|
|
52
|
+
}), G = U("memberId"), K = i.countryChoice?.value, q = j(r.programTheme, K), J = g(t, W ?? L.availableStatuses);
|
|
53
53
|
return F.useEffect(() => {
|
|
54
54
|
let e = (r.viewModel?.fieldsToSkipValidation || []).filter((e) => e !== "memberId");
|
|
55
55
|
G ? r.updateViewModel({ fieldsToSkipValidation: e }, { partial: !0 }) : r.updateViewModel({ fieldsToSkipValidation: [...e, "memberId"] }, { partial: !0 });
|
|
@@ -64,68 +64,68 @@ var F = /* @__PURE__ */ t(i(), 1), I = o(), L = {
|
|
|
64
64
|
/* @__PURE__ */ (0, I.jsx)(k, { verificationService: r }),
|
|
65
65
|
/* @__PURE__ */ (0, I.jsx)(D, {
|
|
66
66
|
verificationService: r,
|
|
67
|
-
disabled:
|
|
67
|
+
disabled: m("country")?.disabled
|
|
68
68
|
}),
|
|
69
69
|
/* @__PURE__ */ (0, I.jsx)(M, {
|
|
70
70
|
segmentId: "medical",
|
|
71
71
|
value: {
|
|
72
72
|
value: i.status,
|
|
73
|
-
label:
|
|
73
|
+
label: h(t, i.status)
|
|
74
74
|
},
|
|
75
75
|
isErrored: !!o.status,
|
|
76
76
|
options: J,
|
|
77
|
-
disabled: q ||
|
|
77
|
+
disabled: q || m("status")?.disabled,
|
|
78
78
|
explanation: q ? /* @__PURE__ */ (0, I.jsx)(a, {
|
|
79
79
|
id: "chooseCountry",
|
|
80
80
|
defaultMessage: "Choose a country first"
|
|
81
81
|
}) : void 0,
|
|
82
82
|
onChange: (e) => {
|
|
83
|
-
H("status", e ? e.value : ""),
|
|
83
|
+
H("status", e ? e.value : ""), p("status", e ? e.value : "", r);
|
|
84
84
|
}
|
|
85
85
|
}),
|
|
86
86
|
/* @__PURE__ */ (0, I.jsx)(N, {
|
|
87
87
|
isErrored: !!o.organization,
|
|
88
88
|
onChange: (e) => {
|
|
89
|
-
|
|
89
|
+
u(e, r), p("organization", e, r);
|
|
90
90
|
},
|
|
91
91
|
value: r.viewModel.organization,
|
|
92
92
|
verificationService: r,
|
|
93
|
-
disabled:
|
|
93
|
+
disabled: m("organization")?.disabled
|
|
94
94
|
}),
|
|
95
95
|
/* @__PURE__ */ (0, I.jsxs)("div", {
|
|
96
96
|
className: "sid-names",
|
|
97
97
|
children: [/* @__PURE__ */ (0, I.jsx)(_, {
|
|
98
98
|
value: i.firstName,
|
|
99
99
|
isErrored: !!o.firstName,
|
|
100
|
-
disabled:
|
|
100
|
+
disabled: m("firstName")?.disabled,
|
|
101
101
|
onChange: (e) => {
|
|
102
|
-
H("firstName", e),
|
|
102
|
+
H("firstName", e), p("firstName", e, r);
|
|
103
103
|
}
|
|
104
104
|
}), /* @__PURE__ */ (0, I.jsx)(v, {
|
|
105
105
|
value: i.lastName,
|
|
106
106
|
isErrored: !!o.lastName,
|
|
107
|
-
disabled:
|
|
107
|
+
disabled: m("lastName")?.disabled,
|
|
108
108
|
onChange: (e) => {
|
|
109
|
-
H("lastName", e),
|
|
109
|
+
H("lastName", e), p("lastName", e, r);
|
|
110
110
|
}
|
|
111
111
|
})]
|
|
112
112
|
}),
|
|
113
113
|
/* @__PURE__ */ (0, I.jsx)(T, {
|
|
114
114
|
errorId: o.birthDate,
|
|
115
115
|
locale: V,
|
|
116
|
-
disabled:
|
|
116
|
+
disabled: m("birthDate")?.disabled,
|
|
117
117
|
onChange: (e) => {
|
|
118
|
-
H("birthDate", e),
|
|
118
|
+
H("birthDate", e), p("birthDate", e, r);
|
|
119
119
|
},
|
|
120
120
|
value: i.birthDate
|
|
121
121
|
}),
|
|
122
122
|
/* @__PURE__ */ (0, I.jsx)(E, {
|
|
123
123
|
isErrored: !!o.postalCode,
|
|
124
124
|
onChange: (e) => {
|
|
125
|
-
H("postalCode", e),
|
|
125
|
+
H("postalCode", e), p("postalCode", e, r);
|
|
126
126
|
},
|
|
127
127
|
value: i.postalCode,
|
|
128
|
-
disabled:
|
|
128
|
+
disabled: m("postalCode")?.disabled,
|
|
129
129
|
explanation: /* @__PURE__ */ (0, I.jsx)(a, {
|
|
130
130
|
id: "postalCodeExplanation",
|
|
131
131
|
defaultMessage: "Use the location on file with your licensing body"
|
|
@@ -139,28 +139,28 @@ var F = /* @__PURE__ */ t(i(), 1), I = o(), L = {
|
|
|
139
139
|
defaultMessage: "Needed to send you your unique code"
|
|
140
140
|
}),
|
|
141
141
|
onChange: (e) => {
|
|
142
|
-
H("email", e),
|
|
142
|
+
H("email", e), p("email", e, r);
|
|
143
143
|
},
|
|
144
|
-
onKeyDown: (e) =>
|
|
145
|
-
disabled:
|
|
144
|
+
onKeyDown: (e) => d(e),
|
|
145
|
+
disabled: m("email")?.disabled
|
|
146
146
|
}),
|
|
147
147
|
r.programTheme.isSmsNotifierConfigured || r.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, I.jsx)(b, {
|
|
148
148
|
isRequired: !!r.programTheme.smsLoopEnabled,
|
|
149
149
|
value: i.phoneNumber,
|
|
150
150
|
isErrored: !!o.phoneNumber,
|
|
151
151
|
onChange: (e) => {
|
|
152
|
-
H("phoneNumber", e),
|
|
152
|
+
H("phoneNumber", e), p("phoneNumber", e, r);
|
|
153
153
|
},
|
|
154
154
|
selectedCountryCode: i.countryChoice && i.countryChoice.value,
|
|
155
|
-
disabled:
|
|
155
|
+
disabled: m("phoneNumber")?.disabled
|
|
156
156
|
}) : null,
|
|
157
157
|
G && /* @__PURE__ */ (0, I.jsx)(P, {
|
|
158
158
|
value: i.memberId,
|
|
159
159
|
isErrored: !!o.memberId,
|
|
160
|
-
isRequired:
|
|
161
|
-
disabled:
|
|
160
|
+
isRequired: m("memberId")?.requireIfOptional,
|
|
161
|
+
disabled: m("memberId")?.disabled,
|
|
162
162
|
onChange: (e) => {
|
|
163
|
-
H("memberId", e),
|
|
163
|
+
H("memberId", e), p("memberId", e, r);
|
|
164
164
|
},
|
|
165
165
|
explanation: /* @__PURE__ */ (0, I.jsx)(a, {
|
|
166
166
|
id: R(i.country).explanationKey,
|
|
@@ -182,10 +182,10 @@ var F = /* @__PURE__ */ t(i(), 1), I = o(), L = {
|
|
|
182
182
|
H("metadata", {
|
|
183
183
|
...r.viewModel.metadata,
|
|
184
184
|
marketConsentValue: e
|
|
185
|
-
}),
|
|
185
|
+
}), p("marketConsentValue", e, r);
|
|
186
186
|
},
|
|
187
187
|
viewModel: i,
|
|
188
|
-
disabled:
|
|
188
|
+
disabled: m("marketConsentValue")?.disabled
|
|
189
189
|
}),
|
|
190
190
|
/* @__PURE__ */ (0, I.jsx)(O, {
|
|
191
191
|
verificationService: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-DmoUExs9.js","names":[],"sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MedicalProfessionalPersonalInfoViewModel,\n type MedicalProfessionalPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getStatusOptions,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional, availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? verificationResponse.availableStatuses,\n );\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;4CA6DM,IAAkE;CACt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ACE,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,YAAY,EAAwB,UAAU,GAAG;IACjD,UAAU,EAAwB,UAAU,GAAG;IAC/C,WAAW,MAAa;KAEtB,AADA,EAAmC,YAAY,CAAQ,GACvD,EAAqC,YAAY,GAAU,CAAmB;IAChF;IACA,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAI,EAAuB,EAAU,OAAO,EAAE;KAC9C,gBAAe;IAChB,CAAA;IAEH,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAI,EAAuB,EAAU,OAAO,EAAE;KAC9C,gBAAe;IAChB,CAAA;GAEJ,CAAA;GAEF,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmC,YAAY;MAC7C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-B9f28oQh.js","names":[],"sources":["../../src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MedicalProfessionalPersonalInfoViewModel,\n type MedicalProfessionalPersonalInfoResponse,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModel,\n getStatusLabel,\n getStatusOptions,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { StatusComponent as MedicalStatus } from \"../FormFields/Status/StatusComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepMedicalProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\ntype MemberIdFieldType =\n | \"registrationNumber\"\n | \"numeroColegiado\"\n | \"autorisationsId\"\n | \"globalLocationNumber\"\n | \"gbrNummer\";\n\nconst memberIdMessageKeysByCountry: Record<string, MemberIdFieldType> = {\n AT: \"gbrNummer\",\n ES: \"numeroColegiado\",\n DK: \"autorisationsId\",\n CH: \"globalLocationNumber\",\n IE: \"registrationNumber\",\n GB: \"registrationNumber\",\n};\n\nconst getMemberIdMessageKeys = (country: string) => {\n const memberIdFieldType: MemberIdFieldType =\n memberIdMessageKeysByCountry[country] || \"registrationNumber\";\n return {\n labelKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Label`,\n explanationKey: `step.collectMedicalPersonalInfo.${memberIdFieldType}Explanation`,\n };\n};\n\nexport const StepMedicalProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepMedicalProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as MedicalProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateMedicalProfessionalViewModel = (\n key: keyof MedicalProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldOptional, availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? verificationResponse.availableStatuses,\n );\n\n React.useEffect(() => {\n // If the memberId field is not rendered, we shouldn't validate it\n // partially update to avoid clobbering the rest of the viewModel\n const existing = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"memberId\",\n );\n if (shouldRenderMemberId) {\n verificationService.updateViewModel({ fieldsToSkipValidation: existing }, { partial: true });\n } else {\n verificationService.updateViewModel(\n { fieldsToSkipValidation: [...existing, \"memberId\"] },\n { partial: true },\n );\n }\n }, [shouldRenderMemberId]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"medical-personal-info\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <MedicalStatus\n segmentId=\"medical\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMedicalProfessionalViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as MedicalProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {shouldRenderMemberId && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n explanation={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).explanationKey}\n defaultMessage=\"Your Professional Membership Registration Number\"\n />\n }\n label={\n <FormattedHTMLMessage\n id={getMemberIdMessageKeys(viewModel.country).labelKey}\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMedicalProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectMedicalProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Medical Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepMedicalProfessionalPersonalInfoComponent = injectIntl(\n StepMedicalProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;4CA6DM,IAAkE;CACtE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN,GAEM,KAA0B,MAAoB;CAClD,IAAM,IACJ,EAA6B,MAAY;CAC3C,OAAO;EACL,UAAU,mCAAmC,EAAkB;EAC/D,gBAAgB,mCAAmC,EAAkB;CACvE;AACF,GAsPa,IAA+C,GApPR,EAClD,SACA,6BACuD;CACvD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,KACJ,GACA,MACG;EACH,IAAM,IAAY,EAAsB,GAAW,GAAK,CAAK;EAC7D,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,oBAAiB,mBAAmB,MAAoB,EAAyB;EACvF,gBAAgB,EAAqB;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C,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmC,YAAY;MAC7C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.279.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1788995296072
|
|
5
|
+
* BUILD_DATE: Wed Sep 09 2026 23:08:16 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: fdde81acaae8bfe2d0c43f5327d4569e8353b6e7
|
|
7
7
|
*/
|
|
8
8
|
import { Ft as e, Wt as t, n } from "./options-pBCAJBwS.js";
|
|
9
9
|
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-Ini3eO9_.js";
|
|
10
|
-
import {
|
|
10
|
+
import { h as s } from "./FormFooterComponent-CKDwnyg2.js";
|
|
11
11
|
import { n as c } from "../sheerid.js";
|
|
12
|
-
import { t as l } from "./useCollectFieldsEndpoint-
|
|
13
|
-
import {
|
|
14
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
15
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-
|
|
16
|
-
import { t as T } from "./BirthDateComponent-
|
|
17
|
-
import { t as E } from "./PostalCodeComponent-
|
|
18
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
19
|
-
import { t as O } from "./ExtraMessage-
|
|
20
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
21
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
12
|
+
import { t as l } from "./useCollectFieldsEndpoint-D_Qf33n2.js";
|
|
13
|
+
import { _ as u, c as d, d as f, g as p, i as m, o as h, s as g } from "./stepComponentHelpers-BOwTk6Tq.js";
|
|
14
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-_azicSSq.js";
|
|
15
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-ksVF3h1P.js";
|
|
16
|
+
import { t as T } from "./BirthDateComponent-CD4M-BN9.js";
|
|
17
|
+
import { t as E } from "./PostalCodeComponent-DShP_eiB.js";
|
|
18
|
+
import { t as D } from "./CountryComponentWrapper-DziHrBMX.js";
|
|
19
|
+
import { t as O } from "./ExtraMessage-BCHypT6I.js";
|
|
20
|
+
import { t as k } from "./ChangeLocaleComponent-DaswLDgf.js";
|
|
21
|
+
import { t as A } from "./PersonalInfoStepWrapper-bFDtj-hV.js";
|
|
22
22
|
import { t as j } from "./countryUtils-DWqId-zY.js";
|
|
23
|
-
import { t as M } from "./StatusComponent-
|
|
24
|
-
import { t as N } from "./MedicalProfessionalOrganizationComponent-
|
|
25
|
-
import { t as P } from "./MemberIdComponent-
|
|
23
|
+
import { t as M } from "./StatusComponent-BlVRLPOR.js";
|
|
24
|
+
import { t as N } from "./MedicalProfessionalOrganizationComponent-BCYOuT46.js";
|
|
25
|
+
import { t as P } from "./MemberIdComponent-DDoGHydu.js";
|
|
26
26
|
//#region src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx
|
|
27
27
|
var F = /* @__PURE__ */ t(i(), 1), I = o(), L = {
|
|
28
28
|
AT: "gbrNummer",
|
|
@@ -39,13 +39,13 @@ var F = /* @__PURE__ */ t(i(), 1), I = o(), L = {
|
|
|
39
39
|
};
|
|
40
40
|
}, z = r(({ intl: t, verificationService: r }) => {
|
|
41
41
|
let i = r.viewModel, { fieldValidationErrors: o } = r, L = r.verificationResponse, z = s(L), B = n(), V = i.localeChoice.value, H = (e, t) => {
|
|
42
|
-
let n =
|
|
42
|
+
let n = f(i, e, t);
|
|
43
43
|
r.updateViewModel(n);
|
|
44
44
|
}, { isFieldOptional: U, availableStatuses: W } = l({
|
|
45
45
|
verificationId: L.verificationId,
|
|
46
46
|
currentStep: L.currentStep,
|
|
47
47
|
viewModel: i
|
|
48
|
-
}), G = U("memberId"), K = i.countryChoice?.value, q = j(r.programTheme, K), J =
|
|
48
|
+
}), G = U("memberId"), K = i.countryChoice?.value, q = j(r.programTheme, K), J = g(t, W ?? L.availableStatuses);
|
|
49
49
|
return F.useEffect(() => {
|
|
50
50
|
let e = (r.viewModel?.fieldsToSkipValidation || []).filter((e) => e !== "memberId");
|
|
51
51
|
G ? r.updateViewModel({ fieldsToSkipValidation: e }, { partial: !0 }) : r.updateViewModel({ fieldsToSkipValidation: [...e, "memberId"] }, { partial: !0 });
|
|
@@ -60,68 +60,68 @@ var F = /* @__PURE__ */ t(i(), 1), I = o(), L = {
|
|
|
60
60
|
/* @__PURE__ */ (0, I.jsx)(k, { verificationService: r }),
|
|
61
61
|
/* @__PURE__ */ (0, I.jsx)(D, {
|
|
62
62
|
verificationService: r,
|
|
63
|
-
disabled:
|
|
63
|
+
disabled: m("country")?.disabled
|
|
64
64
|
}),
|
|
65
65
|
/* @__PURE__ */ (0, I.jsx)(M, {
|
|
66
66
|
segmentId: "medical",
|
|
67
67
|
value: {
|
|
68
68
|
value: i.status,
|
|
69
|
-
label:
|
|
69
|
+
label: h(t, i.status)
|
|
70
70
|
},
|
|
71
71
|
isErrored: !!o.status,
|
|
72
72
|
options: J,
|
|
73
|
-
disabled: q ||
|
|
73
|
+
disabled: q || m("status")?.disabled,
|
|
74
74
|
explanation: q ? /* @__PURE__ */ (0, I.jsx)(a, {
|
|
75
75
|
id: "chooseCountry",
|
|
76
76
|
defaultMessage: "Choose a country first"
|
|
77
77
|
}) : void 0,
|
|
78
78
|
onChange: (e) => {
|
|
79
|
-
H("status", e ? e.value : ""),
|
|
79
|
+
H("status", e ? e.value : ""), p("status", e ? e.value : "", r);
|
|
80
80
|
}
|
|
81
81
|
}),
|
|
82
82
|
/* @__PURE__ */ (0, I.jsx)(N, {
|
|
83
83
|
isErrored: !!o.organization,
|
|
84
84
|
onChange: (e) => {
|
|
85
|
-
|
|
85
|
+
u(e, r), p("organization", e, r);
|
|
86
86
|
},
|
|
87
87
|
value: r.viewModel.organization,
|
|
88
88
|
verificationService: r,
|
|
89
|
-
disabled:
|
|
89
|
+
disabled: m("organization")?.disabled
|
|
90
90
|
}),
|
|
91
91
|
/* @__PURE__ */ (0, I.jsxs)("div", {
|
|
92
92
|
className: "sid-names",
|
|
93
93
|
children: [/* @__PURE__ */ (0, I.jsx)(_, {
|
|
94
94
|
value: i.firstName,
|
|
95
95
|
isErrored: !!o.firstName,
|
|
96
|
-
disabled:
|
|
96
|
+
disabled: m("firstName")?.disabled,
|
|
97
97
|
onChange: (e) => {
|
|
98
|
-
H("firstName", e),
|
|
98
|
+
H("firstName", e), p("firstName", e, r);
|
|
99
99
|
}
|
|
100
100
|
}), /* @__PURE__ */ (0, I.jsx)(v, {
|
|
101
101
|
value: i.lastName,
|
|
102
102
|
isErrored: !!o.lastName,
|
|
103
|
-
disabled:
|
|
103
|
+
disabled: m("lastName")?.disabled,
|
|
104
104
|
onChange: (e) => {
|
|
105
|
-
H("lastName", e),
|
|
105
|
+
H("lastName", e), p("lastName", e, r);
|
|
106
106
|
}
|
|
107
107
|
})]
|
|
108
108
|
}),
|
|
109
109
|
/* @__PURE__ */ (0, I.jsx)(T, {
|
|
110
110
|
errorId: o.birthDate,
|
|
111
111
|
locale: V,
|
|
112
|
-
disabled:
|
|
112
|
+
disabled: m("birthDate")?.disabled,
|
|
113
113
|
onChange: (e) => {
|
|
114
|
-
H("birthDate", e),
|
|
114
|
+
H("birthDate", e), p("birthDate", e, r);
|
|
115
115
|
},
|
|
116
116
|
value: i.birthDate
|
|
117
117
|
}),
|
|
118
118
|
/* @__PURE__ */ (0, I.jsx)(E, {
|
|
119
119
|
isErrored: !!o.postalCode,
|
|
120
120
|
onChange: (e) => {
|
|
121
|
-
H("postalCode", e),
|
|
121
|
+
H("postalCode", e), p("postalCode", e, r);
|
|
122
122
|
},
|
|
123
123
|
value: i.postalCode,
|
|
124
|
-
disabled:
|
|
124
|
+
disabled: m("postalCode")?.disabled,
|
|
125
125
|
explanation: /* @__PURE__ */ (0, I.jsx)(a, {
|
|
126
126
|
id: "postalCodeExplanation",
|
|
127
127
|
defaultMessage: "Use the location on file with your licensing body"
|
|
@@ -135,28 +135,28 @@ var F = /* @__PURE__ */ t(i(), 1), I = o(), L = {
|
|
|
135
135
|
defaultMessage: "Needed to send you your unique code"
|
|
136
136
|
}),
|
|
137
137
|
onChange: (e) => {
|
|
138
|
-
H("email", e),
|
|
138
|
+
H("email", e), p("email", e, r);
|
|
139
139
|
},
|
|
140
|
-
onKeyDown: (e) =>
|
|
141
|
-
disabled:
|
|
140
|
+
onKeyDown: (e) => d(e),
|
|
141
|
+
disabled: m("email")?.disabled
|
|
142
142
|
}),
|
|
143
143
|
r.programTheme.isSmsNotifierConfigured || r.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, I.jsx)(b, {
|
|
144
144
|
isRequired: !!r.programTheme.smsLoopEnabled,
|
|
145
145
|
value: i.phoneNumber,
|
|
146
146
|
isErrored: !!o.phoneNumber,
|
|
147
147
|
onChange: (e) => {
|
|
148
|
-
H("phoneNumber", e),
|
|
148
|
+
H("phoneNumber", e), p("phoneNumber", e, r);
|
|
149
149
|
},
|
|
150
150
|
selectedCountryCode: i.countryChoice && i.countryChoice.value,
|
|
151
|
-
disabled:
|
|
151
|
+
disabled: m("phoneNumber")?.disabled
|
|
152
152
|
}) : null,
|
|
153
153
|
G && /* @__PURE__ */ (0, I.jsx)(P, {
|
|
154
154
|
value: i.memberId,
|
|
155
155
|
isErrored: !!o.memberId,
|
|
156
|
-
isRequired:
|
|
157
|
-
disabled:
|
|
156
|
+
isRequired: m("memberId")?.requireIfOptional,
|
|
157
|
+
disabled: m("memberId")?.disabled,
|
|
158
158
|
onChange: (e) => {
|
|
159
|
-
H("memberId", e),
|
|
159
|
+
H("memberId", e), p("memberId", e, r);
|
|
160
160
|
},
|
|
161
161
|
explanation: /* @__PURE__ */ (0, I.jsx)(a, {
|
|
162
162
|
id: R(i.country).explanationKey,
|
|
@@ -178,10 +178,10 @@ var F = /* @__PURE__ */ t(i(), 1), I = o(), L = {
|
|
|
178
178
|
H("metadata", {
|
|
179
179
|
...r.viewModel.metadata,
|
|
180
180
|
marketConsentValue: e
|
|
181
|
-
}),
|
|
181
|
+
}), p("marketConsentValue", e, r);
|
|
182
182
|
},
|
|
183
183
|
viewModel: i,
|
|
184
|
-
disabled:
|
|
184
|
+
disabled: m("marketConsentValue")?.disabled
|
|
185
185
|
}),
|
|
186
186
|
/* @__PURE__ */ (0, I.jsx)(O, {
|
|
187
187
|
verificationService: r,
|