@sheerid/jslib-nightly 2.263.0-alpha.0 → 2.264.0-alpha.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 +3 -3
- package/_mysheerid-preview.js +39 -42
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/AddressComponent-0vaEURVZ.js +3 -3
- package/chunk/AddressComponent-D9R5iYEq.js +3 -3
- package/chunk/AnnouncingHeader-2fKF8wpi.js +3 -3
- package/chunk/AnnouncingHeader-C46Kp2B-.js +3 -3
- package/chunk/{ApiUrls-DlpncFa4.js → ApiUrls-4OKW_tWC.js} +4 -4
- package/chunk/{ApiUrls-CcYW2aEq.js.map → ApiUrls-4OKW_tWC.js.map} +1 -1
- package/chunk/{ApiUrls-CcYW2aEq.js → ApiUrls-BAEadEoV.js} +4 -4
- package/chunk/{ApiUrls-DlpncFa4.js.map → ApiUrls-BAEadEoV.js.map} +1 -1
- package/chunk/{BirthDateComponent-CPX6e-oS.js → BirthDateComponent-BD9ZmOZi.js} +4 -4
- package/chunk/{BirthDateComponent-CPX6e-oS.js.map → BirthDateComponent-BD9ZmOZi.js.map} +1 -1
- package/chunk/{BirthDateComponent-DiB89V9D.js → BirthDateComponent-ts-uQcFv.js} +4 -4
- package/chunk/{BirthDateComponent-DiB89V9D.js.map → BirthDateComponent-ts-uQcFv.js.map} +1 -1
- package/chunk/{CaptchaComponent-gd5yubvd.js → CaptchaComponent-BsP6z6fV.js} +5 -5
- package/chunk/{CaptchaComponent-D5Dv1noI.js.map → CaptchaComponent-BsP6z6fV.js.map} +1 -1
- package/chunk/{CaptchaComponent-D5Dv1noI.js → CaptchaComponent-Bv3pBtOL.js} +5 -5
- package/chunk/{CaptchaComponent-gd5yubvd.js.map → CaptchaComponent-Bv3pBtOL.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BTZAq7uW.js → ChangeLocaleComponent-CISzBLcA.js} +4 -4
- package/chunk/{ChangeLocaleComponent-B8O2m2HE.js.map → ChangeLocaleComponent-CISzBLcA.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-B8O2m2HE.js → ChangeLocaleComponent-DxqwPe0W.js} +4 -4
- package/chunk/{ChangeLocaleComponent-BTZAq7uW.js.map → ChangeLocaleComponent-DxqwPe0W.js.map} +1 -1
- package/chunk/City-B6J8thJW.js +3 -3
- package/chunk/City-CLyjXYQj.js +3 -3
- package/chunk/{CollegeNameComponent-VCRUE6e_.js → CollegeNameComponent-CBibfBPl.js} +4 -4
- package/chunk/{CollegeNameComponent-CzyeuqK7.js.map → CollegeNameComponent-CBibfBPl.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CzyeuqK7.js → CollegeNameComponent-CQ8GCcAQ.js} +4 -4
- package/chunk/{CollegeNameComponent-VCRUE6e_.js.map → CollegeNameComponent-CQ8GCcAQ.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-C3q4w3A8.js +3 -3
- package/chunk/CopyToClipboardComponent-mgX-iqqn.js +3 -3
- package/chunk/{CountryComponentWrapper-BGajYZrL.js → CountryComponentWrapper-C6jxabRh.js} +4 -4
- package/chunk/{CountryComponentWrapper-BGajYZrL.js.map → CountryComponentWrapper-C6jxabRh.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CLGBVkRB.js → CountryComponentWrapper-D4AKnv7H.js} +4 -4
- package/chunk/{CountryComponentWrapper-CLGBVkRB.js.map → CountryComponentWrapper-D4AKnv7H.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CrJy29pH.js → DischargeDateComponent-DD8bF1FM.js} +6 -6
- package/chunk/{DischargeDateComponent-CrJy29pH.js.map → DischargeDateComponent-DD8bF1FM.js.map} +1 -1
- package/chunk/{DischargeDateComponent-S0alvYUT.js → DischargeDateComponent-G2t2Wff_.js} +6 -6
- package/chunk/{DischargeDateComponent-S0alvYUT.js.map → DischargeDateComponent-G2t2Wff_.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-5Zli2AqS.js +3 -3
- package/chunk/DriverLicenseNumberComponent-Cn9W9CIk.js +3 -3
- package/chunk/{EmailLoopPending-yAg-0vC3.js → EmailLoopPending-BnvmAmWy.js} +4 -4
- package/chunk/{EmailLoopPending-yAg-0vC3.js.map → EmailLoopPending-BnvmAmWy.js.map} +1 -1
- package/chunk/{EmailLoopPending-DY_CezIw.js → EmailLoopPending-CClIwdkr.js} +4 -4
- package/chunk/{EmailLoopPending-DY_CezIw.js.map → EmailLoopPending-CClIwdkr.js.map} +1 -1
- package/chunk/{ExtraMessage-UbmnijRM.js → ExtraMessage-C9Tya8_-.js} +4 -4
- package/chunk/{ExtraMessage-UbmnijRM.js.map → ExtraMessage-C9Tya8_-.js.map} +1 -1
- package/chunk/{ExtraMessage-vcQ9SW6K.js → ExtraMessage-DuHSW-UZ.js} +4 -4
- package/chunk/{ExtraMessage-vcQ9SW6K.js.map → ExtraMessage-DuHSW-UZ.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DMOFM1oz.js → FirstResponderOrganizationComponent-DP2GOIw6.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-DMOFM1oz.js.map → FirstResponderOrganizationComponent-DP2GOIw6.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-NKG9W0hn.js → FirstResponderOrganizationComponent-JSA5K2D2.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-NKG9W0hn.js.map → FirstResponderOrganizationComponent-JSA5K2D2.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Bi8LOivJ.js → FormFieldInputSelect-Cigt3nT_.js} +4 -4
- package/chunk/{FormFieldInputSelect-Bi8LOivJ.js.map → FormFieldInputSelect-Cigt3nT_.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DtvPrvCM.js → FormFieldInputSelect-CxtZEq4Z.js} +4 -4
- package/chunk/{FormFieldInputSelect-DtvPrvCM.js.map → FormFieldInputSelect-CxtZEq4Z.js.map} +1 -1
- package/chunk/FormFieldLayout-CM-yJADZ.js +3 -3
- package/chunk/FormFieldLayout-x7EaxmB4.js +3 -3
- package/chunk/FormFieldText-ByMirgSm.js +3 -3
- package/chunk/FormFieldText-Cer6Ul3T.js +3 -3
- package/chunk/{FormFieldTypeahead-pogmD1N2.js → FormFieldTypeahead-Cvvyy43k.js} +6 -6
- package/chunk/{FormFieldTypeahead-pogmD1N2.js.map → FormFieldTypeahead-Cvvyy43k.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CS8Gc1-N.js → FormFieldTypeahead-gPVkMR97.js} +6 -6
- package/chunk/{FormFieldTypeahead-CS8Gc1-N.js.map → FormFieldTypeahead-gPVkMR97.js.map} +1 -1
- package/chunk/{FormFooterComponent-hQ9YVK_9.js → FormFooterComponent-Cw_RFaJx.js} +6 -6
- package/chunk/{FormFooterComponent-hQ9YVK_9.js.map → FormFooterComponent-Cw_RFaJx.js.map} +1 -1
- package/chunk/{FormFooterComponent-Bf1bxfK_.js → FormFooterComponent-DGChoxIB.js} +6 -6
- package/chunk/{FormFooterComponent-Bf1bxfK_.js.map → FormFooterComponent-DGChoxIB.js.map} +1 -1
- package/chunk/{FormSelectChoice-DFW__bqf.js → FormSelectChoice-B7U5PPTN.js} +4 -4
- package/chunk/{FormSelectChoice-CD4kEzVG.js.map → FormSelectChoice-B7U5PPTN.js.map} +1 -1
- package/chunk/{FormSelectChoice-CD4kEzVG.js → FormSelectChoice-C6yHmfa6.js} +4 -4
- package/chunk/{FormSelectChoice-DFW__bqf.js.map → FormSelectChoice-C6yHmfa6.js.map} +1 -1
- package/chunk/InputText-CFKx7skU.js +3 -3
- package/chunk/InputText-rG2lFIuH.js +3 -3
- package/chunk/{LicensedProfessionalOrganizationComponent-CabaokFb.js → LicensedProfessionalOrganizationComponent-CHaB-ihc.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-CabaokFb.js.map → LicensedProfessionalOrganizationComponent-CHaB-ihc.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-DmjiRyX1.js → LicensedProfessionalOrganizationComponent-FXL2ofiw.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-DmjiRyX1.js.map → LicensedProfessionalOrganizationComponent-FXL2ofiw.js.map} +1 -1
- package/chunk/LogoComponent-40n5vaD0.js +3 -3
- package/chunk/LogoComponent-lTeCnowz.js +3 -3
- package/chunk/{LowIncomeOrganizationComponent-uUgJiZtV.js → LowIncomeOrganizationComponent-CmH7OfBz.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-DHP7BAWQ.js.map → LowIncomeOrganizationComponent-CmH7OfBz.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DHP7BAWQ.js → LowIncomeOrganizationComponent-DA0G8AhH.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-uUgJiZtV.js.map → LowIncomeOrganizationComponent-DA0G8AhH.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-B1QLHEJV.js → MedicalProfessionalOrganizationComponent-8RySy8zK.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-B1QLHEJV.js.map → MedicalProfessionalOrganizationComponent-8RySy8zK.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CkhM5nex.js → MedicalProfessionalOrganizationComponent-C1qcSelB.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-CkhM5nex.js.map → MedicalProfessionalOrganizationComponent-C1qcSelB.js.map} +1 -1
- package/chunk/MemberIdComponent-BJC0oeuE.js +3 -3
- package/chunk/MemberIdComponent-F3J2XAp3.js +3 -3
- package/chunk/{MembershipOrganizationComponent-0uqSgnl9.js → MembershipOrganizationComponent-Bh5LYj6P.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-0uqSgnl9.js.map → MembershipOrganizationComponent-Bh5LYj6P.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-n6dsAj9D.js → MembershipOrganizationComponent-DcD5aDap.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-n6dsAj9D.js.map → MembershipOrganizationComponent-DcD5aDap.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-BS7TwIFn.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-IMW1ww2e.js +3 -3
- package/chunk/{PersonalInfoStepWrapper-DwvV4VsT.js → PersonalInfoStepWrapper-BaskUzAh.js} +4 -4
- package/chunk/{PersonalInfoStepWrapper-DwvV4VsT.js.map → PersonalInfoStepWrapper-BaskUzAh.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-CZDrFaqC.js → PersonalInfoStepWrapper-BlPhTEPX.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-CZDrFaqC.js.map → PersonalInfoStepWrapper-BlPhTEPX.js.map} +1 -1
- package/chunk/PostalCodeComponent-BDFy_9yi.js +3 -3
- package/chunk/PostalCodeComponent-DuEPciUA.js +3 -3
- package/chunk/SSN-DYqbsF85.js +3 -3
- package/chunk/SSN-DvsdFp8R.js +3 -3
- package/chunk/{StateSelectComponent-CN7u7Z5P.js → StateSelectComponent-8iSjI0pU.js} +4 -4
- package/chunk/{StateSelectComponent-CFY00_F5.js.map → StateSelectComponent-8iSjI0pU.js.map} +1 -1
- package/chunk/{StateSelectComponent-CFY00_F5.js → StateSelectComponent-DJZiu3Dc.js} +4 -4
- package/chunk/{StateSelectComponent-CN7u7Z5P.js.map → StateSelectComponent-DJZiu3Dc.js.map} +1 -1
- package/chunk/{StatusComponent-BLbeJdVB.js → StatusComponent-BAX61tmd.js} +4 -4
- package/chunk/{StatusComponent-BLbeJdVB.js.map → StatusComponent-BAX61tmd.js.map} +1 -1
- package/chunk/{StatusComponent-CvMMC2MR.js → StatusComponent-OCM9IXu5.js} +4 -4
- package/chunk/{StatusComponent-CvMMC2MR.js.map → StatusComponent-OCM9IXu5.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-XDLAbyN0.js → StepActiveMilitaryPersonalInfoComponent-BCwCEhBl.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Dv9E-wNt.js.map → StepActiveMilitaryPersonalInfoComponent-BCwCEhBl.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Dv9E-wNt.js → StepActiveMilitaryPersonalInfoComponent-CE0WootL.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-XDLAbyN0.js.map → StepActiveMilitaryPersonalInfoComponent-CE0WootL.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CD8rmbII.js → StepAgePersonalInfo-CWr7uOVB.js} +11 -11
- package/chunk/{StepAgePersonalInfo-BsTJ2oQP.js.map → StepAgePersonalInfo-CWr7uOVB.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BsTJ2oQP.js → StepAgePersonalInfo-D-Wagwf-.js} +11 -11
- package/chunk/{StepAgePersonalInfo-CD8rmbII.js.map → StepAgePersonalInfo-D-Wagwf-.js.map} +1 -1
- package/chunk/StepCard-Bp4YtbLH.js +3 -3
- package/chunk/StepCard-Bzt1Ked6.js +3 -3
- package/chunk/{StepCollectIdentifier-_CGgV5yn.js → StepCollectIdentifier-CwJ0jHqP.js} +4 -4
- package/chunk/{StepCollectIdentifier-DbqT3QQe.js.map → StepCollectIdentifier-CwJ0jHqP.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DbqT3QQe.js → StepCollectIdentifier-rPRXBe3J.js} +4 -4
- package/chunk/{StepCollectIdentifier-_CGgV5yn.js.map → StepCollectIdentifier-rPRXBe3J.js.map} +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-C07OyVkL.js +9 -0
- package/chunk/{StepCollectMilitaryStatusComponent-yDElymyn.js → StepCollectMilitaryStatusComponent-gBX1mm1_.js} +4 -4
- package/chunk/{StepCollectPersonalInfo-DBt095uS.js → StepCollectPersonalInfo-BXAicOZ_.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-DBt095uS.js.map → StepCollectPersonalInfo-BXAicOZ_.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-qc9qiwM9.js → StepCollectPersonalInfo-BkAkFjvN.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-qc9qiwM9.js.map → StepCollectPersonalInfo-BkAkFjvN.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-D5eAqv1G.js +3 -3
- package/chunk/StepCompleteAuthentication-Dn2a9n2B.js +3 -3
- package/chunk/{StepConsolation-98Hyjrx9.js → StepConsolation-CGmjaDbJ.js} +4 -4
- package/chunk/{StepConsolation-98Hyjrx9.js.map → StepConsolation-CGmjaDbJ.js.map} +1 -1
- package/chunk/{StepConsolation-XE4XTZd0.js → StepConsolation-DcQPK6ZH.js} +4 -4
- package/chunk/{StepConsolation-XE4XTZd0.js.map → StepConsolation-DcQPK6ZH.js.map} +1 -1
- package/chunk/{StepDocUpload-DCVjwY0r.js → StepDocUpload-BL6KJjPr.js} +4 -4
- package/chunk/{StepDocUpload-DCVjwY0r.js.map → StepDocUpload-BL6KJjPr.js.map} +1 -1
- package/chunk/{StepDocUpload-DIJmY36O.js → StepDocUpload-DJjXUwXB.js} +4 -4
- package/chunk/{StepDocUpload-DIJmY36O.js.map → StepDocUpload-DJjXUwXB.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DpQbQRYk.js → StepDriverLicensePersonalInfoComponent-CZDTfYjt.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-BVLj7Snm.js.map → StepDriverLicensePersonalInfoComponent-CZDTfYjt.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BVLj7Snm.js → StepDriverLicensePersonalInfoComponent-wuanHFTL.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-DpQbQRYk.js.map → StepDriverLicensePersonalInfoComponent-wuanHFTL.js.map} +1 -1
- package/chunk/{StepEmailLoop-DlMwekLO.js → StepEmailLoop-B0UGMWQ9.js} +5 -5
- package/chunk/{StepEmailLoop-DijPspCu.js.map → StepEmailLoop-B0UGMWQ9.js.map} +1 -1
- package/chunk/{StepEmailLoop-DijPspCu.js → StepEmailLoop-D2lx7wUg.js} +5 -5
- package/chunk/{StepEmailLoop-DlMwekLO.js.map → StepEmailLoop-D2lx7wUg.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-Io5lDANI.js → StepEmploymentPersonalInfo-D-ZXhMEU.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-CK1WQrFc.js.map → StepEmploymentPersonalInfo-D-ZXhMEU.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CK1WQrFc.js → StepEmploymentPersonalInfo-D62dH_G9.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-Io5lDANI.js.map → StepEmploymentPersonalInfo-D62dH_G9.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BNBFV9nZ.js → StepFirstResponderPersonalInfo-DrD-yBL9.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-BNBFV9nZ.js.map → StepFirstResponderPersonalInfo-DrD-yBL9.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-y8pLS7Ot.js → StepFirstResponderPersonalInfo-tklLuC6-.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-y8pLS7Ot.js.map → StepFirstResponderPersonalInfo-tklLuC6-.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DN4fDgmT.js → StepGeneralIdentityPersonalInfoComponent-B9DXEthH.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BOVFxi7E.js.map → StepGeneralIdentityPersonalInfoComponent-B9DXEthH.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BOVFxi7E.js → StepGeneralIdentityPersonalInfoComponent-BJGpt7XI.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DN4fDgmT.js.map → StepGeneralIdentityPersonalInfoComponent-BJGpt7XI.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-B7GiImzs.js → StepHybridIdentityPersonalInfoComponent-B3q_01Zu.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-B7GiImzs.js.map → StepHybridIdentityPersonalInfoComponent-B3q_01Zu.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CpLwzKR3.js → StepHybridIdentityPersonalInfoComponent-B7PUxZHD.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CpLwzKR3.js.map → StepHybridIdentityPersonalInfoComponent-B7PUxZHD.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BvXMO0o-.js → StepIDCheckLoop-B_VbW3CS.js} +4 -4
- package/chunk/{StepIDCheckLoop-BvXMO0o-.js.map → StepIDCheckLoop-B_VbW3CS.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-mjicZN47.js → StepIDCheckLoop-LKpTbWHQ.js} +4 -4
- package/chunk/{StepIDCheckLoop-mjicZN47.js.map → StepIDCheckLoop-LKpTbWHQ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DruIo3QT.js → StepIDCheckLoopOnfido-D221J4O4.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-DruIo3QT.js.map → StepIDCheckLoopOnfido-D221J4O4.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BOV4prFg.js → StepIDCheckLoopOnfido-y1cSlTV8.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-BOV4prFg.js.map → StepIDCheckLoopOnfido-y1cSlTV8.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DyBl3yuL.js → StepIDCheckLoopRegula-ByZ7oXlg.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-DyBl3yuL.js.map → StepIDCheckLoopRegula-ByZ7oXlg.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-_AQpP8Wd.js → StepIDCheckLoopRegula-Dh-3Pg0X.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-_AQpP8Wd.js.map → StepIDCheckLoopRegula-Dh-3Pg0X.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DyWjru-q.js → StepInactiveMilitaryPersonalInfoComponent-CcZpw1c9.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DyWjru-q.js.map → StepInactiveMilitaryPersonalInfoComponent-CcZpw1c9.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DCG2AMPg.js → StepInactiveMilitaryPersonalInfoComponent-DrAb2_Jp.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DCG2AMPg.js.map → StepInactiveMilitaryPersonalInfoComponent-DrAb2_Jp.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CeTlSVd_.js → StepLicensedProfessionalPersonalInfo-18e4A7vC.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-CeTlSVd_.js.map → StepLicensedProfessionalPersonalInfo-18e4A7vC.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-l2Kz9fjT.js → StepLicensedProfessionalPersonalInfo-Dp-X39A9.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-l2Kz9fjT.js.map → StepLicensedProfessionalPersonalInfo-Dp-X39A9.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-LJsDGPUb.js → StepLowIncomePersonalInfo-CfdjUBav.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-CprfWbyi.js.map → StepLowIncomePersonalInfo-CfdjUBav.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-CprfWbyi.js → StepLowIncomePersonalInfo-g3KSzV4M.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-LJsDGPUb.js.map → StepLowIncomePersonalInfo-g3KSzV4M.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-wIOQmTNI.js → StepMedicalProfessionalPersonalInfo-BVkbqZkn.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-CCmT6j7D.js.map → StepMedicalProfessionalPersonalInfo-BVkbqZkn.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CCmT6j7D.js → StepMedicalProfessionalPersonalInfo-BsjEiIy9.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-wIOQmTNI.js.map → StepMedicalProfessionalPersonalInfo-BsjEiIy9.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-Bl21iEdB.js → StepMemberPersonalInfo-Br0WGfdm.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-BBo85iSh.js.map → StepMemberPersonalInfo-Br0WGfdm.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BBo85iSh.js → StepMemberPersonalInfo-C3PvVUzL.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-Bl21iEdB.js.map → StepMemberPersonalInfo-C3PvVUzL.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-WIqMMlAQ.js → StepMoverPersonalInfo-DPHpiQw0.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-CPfQCBOL.js.map → StepMoverPersonalInfo-DPHpiQw0.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CPfQCBOL.js → StepMoverPersonalInfo-Z5WEbN1N.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-WIqMMlAQ.js.map → StepMoverPersonalInfo-Z5WEbN1N.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Bx00Gy5b.js → StepOverrideComponent-iktr98Jj.js} +4 -4
- package/chunk/{StepOverrideComponent-Bx00Gy5b.js.map → StepOverrideComponent-iktr98Jj.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DkwzqsMM.js → StepOverrideComponent-xMqoy8Pk.js} +4 -4
- package/chunk/{StepOverrideComponent-DkwzqsMM.js.map → StepOverrideComponent-xMqoy8Pk.js.map} +1 -1
- package/chunk/{StepSMSLoop-WSBQ_nIW.js → StepSMSLoop-BF-IBw3j.js} +4 -4
- package/chunk/{StepSMSLoop-DF072Jty.js.map → StepSMSLoop-BF-IBw3j.js.map} +1 -1
- package/chunk/{StepSMSLoop-DF072Jty.js → StepSMSLoop-DBFxCiPV.js} +4 -4
- package/chunk/{StepSMSLoop-WSBQ_nIW.js.map → StepSMSLoop-DBFxCiPV.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +3 -3
- package/chunk/StepSSO-BaFk7RFJ.js +3 -3
- package/chunk/{StepSocialSecurityNumber-DABlcVKf.js → StepSocialSecurityNumber-BbXn831d.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-B46D7NFt.js.map → StepSocialSecurityNumber-BbXn831d.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-B46D7NFt.js → StepSocialSecurityNumber-DhoGvC-R.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-DABlcVKf.js.map → StepSocialSecurityNumber-DhoGvC-R.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CP_4yhlJ.js → StepStudentPersonalInfo-DMmIa3dy.js} +12 -12
- package/chunk/{StepStudentPersonalInfo-CP_4yhlJ.js.map → StepStudentPersonalInfo-DMmIa3dy.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CTZIwyV3.js → StepStudentPersonalInfo-iIxNdYOy.js} +12 -12
- package/chunk/{StepStudentPersonalInfo-CTZIwyV3.js.map → StepStudentPersonalInfo-iIxNdYOy.js.map} +1 -1
- package/chunk/{StepSuccess-C6Uc5k_Q.js → StepSuccess-BCBoTtRY.js} +4 -4
- package/chunk/{StepSuccess-C6Uc5k_Q.js.map → StepSuccess-BCBoTtRY.js.map} +1 -1
- package/chunk/{StepSuccess-CBdsz8MT.js → StepSuccess-BCharFld.js} +4 -4
- package/chunk/{StepSuccess-CBdsz8MT.js.map → StepSuccess-BCharFld.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BCHnJj4O.js → StepTeacherPersonalInfo-C9xhKbxy.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-60j8F4p1.js.map → StepTeacherPersonalInfo-C9xhKbxy.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-60j8F4p1.js → StepTeacherPersonalInfo-MkWtBNk7.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-BCHnJj4O.js.map → StepTeacherPersonalInfo-MkWtBNk7.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +3 -3
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +3 -3
- package/chunk/{TeacherSchoolComponent-en6KtVzc.js → TeacherSchoolComponent-BtaF9xlm.js} +4 -4
- package/chunk/{TeacherSchoolComponent-en6KtVzc.js.map → TeacherSchoolComponent-BtaF9xlm.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BBl8EFEF.js → TeacherSchoolComponent-D-rE22OS.js} +4 -4
- package/chunk/{TeacherSchoolComponent-BBl8EFEF.js.map → TeacherSchoolComponent-D-rE22OS.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BGh0Kqkp.js +3 -3
- package/chunk/TestingRouteOverrides-CWSI3tlL.js +3 -3
- package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
- package/chunk/{VerificationApiClient-ClWX625R.js → VerificationApiClient-9BxQqOtO.js} +4 -4
- package/chunk/{VerificationApiClient-ClWX625R.js.map → VerificationApiClient-9BxQqOtO.js.map} +1 -1
- package/chunk/{VerificationApiClient-CAFyrI7O.js → VerificationApiClient-CcVCeEFJ.js} +4 -4
- package/chunk/{VerificationApiClient-CAFyrI7O.js.map → VerificationApiClient-CcVCeEFJ.js.map} +1 -1
- package/chunk/{VerificationApiUtils-CGXDqW3c.js → VerificationApiUtils-DkLx7bcz.js} +5 -5
- package/chunk/{VerificationApiUtils-CGXDqW3c.js.map → VerificationApiUtils-DkLx7bcz.js.map} +1 -1
- package/chunk/{VerificationApiUtils-Cqrb105H.js → VerificationApiUtils-eJb2yssz.js} +5 -5
- package/chunk/{VerificationApiUtils-Cqrb105H.js.map → VerificationApiUtils-eJb2yssz.js.map} +1 -1
- package/chunk/ar-oaTqX-Bi.js +3 -3
- package/chunk/bg-FRD3ihTE.js +3 -3
- package/chunk/bn-IN-Dy8OAkhr.js +3 -3
- package/chunk/countryUtils-1JE4C2YN.js +3 -3
- package/chunk/countryUtils-DDvwDj32.js +3 -3
- package/chunk/cs-enxrquzj.js +3 -3
- package/chunk/da-xnww0OFf.js +3 -3
- package/chunk/de-Bpbr5cGf.js +3 -3
- package/chunk/{downshift.esm-CD2wa3dL.js → downshift.esm-Bib2AmUR.js} +4 -4
- package/chunk/{downshift.esm-DuUxTaVX.js.map → downshift.esm-Bib2AmUR.js.map} +1 -1
- package/chunk/{downshift.esm-DuUxTaVX.js → downshift.esm-CPfu-dz4.js} +4 -4
- package/chunk/{downshift.esm-CD2wa3dL.js.map → downshift.esm-CPfu-dz4.js.map} +1 -1
- package/chunk/el-CGE77D1a.js +3 -3
- package/chunk/empties-CadVejwz.js +3 -3
- package/chunk/empties-DPqJljgl.js +3 -3
- package/chunk/en-GB-DtYEpdGz.js +3 -3
- package/chunk/es-B7Lqo7bY.js +3 -3
- package/chunk/es-ES-DMWW2FXA.js +3 -3
- package/chunk/et-q5WIKwz8.js +3 -3
- package/chunk/eventEmitter-CSG6jR7V.js +3 -3
- package/chunk/fa-BsqNfa1o.js +3 -3
- package/chunk/fi-CcuqPTQ2.js +3 -3
- package/chunk/fr-8Mug3b2y.js +3 -3
- package/chunk/fr-CA-DNMuEFMS.js +3 -3
- package/chunk/ga-BCyuagqq.js +3 -3
- package/chunk/hi-IN-s-W34sti.js +3 -3
- package/chunk/hr-B5aHCY4_.js +3 -3
- package/chunk/hu-C5qCDre-.js +3 -3
- package/chunk/id-B1goA5xk.js +3 -3
- package/chunk/intl-RejEV_0u.js +3 -3
- package/chunk/is-BW-t-Zif.js +3 -3
- package/chunk/it-DvCMm2we.js +3 -3
- package/chunk/iw-69T_ZKoI.js +3 -3
- package/chunk/ja-D-tWJV9S.js +3 -3
- package/chunk/jsx-runtime-BzjRi5cY.js +3 -3
- package/chunk/jsx-runtime-C8rHQFpC.js +3 -3
- package/chunk/kk-Cen4nsDW.js +3 -3
- package/chunk/ko-CKXa3e4S.js +3 -3
- package/chunk/lo-B4V3NOya.js +3 -3
- package/chunk/lt-CfHYjV7E.js +3 -3
- package/chunk/lv-bF1azTKb.js +3 -3
- package/chunk/militaryStepHelpers-DIXJbH-e.js +3 -3
- package/chunk/militaryStepHelpers-DjUPkHuN.js +3 -3
- package/chunk/mocks-C4r3kSBm.js +3 -3
- package/chunk/mocks-ZRlDr2zp.js +3 -3
- package/chunk/ms-DIzxVhax.js +3 -3
- package/chunk/nl-BE-BP03y6BO.js +3 -3
- package/chunk/nl-DfctTqxe.js +3 -3
- package/chunk/no-RQH9Zv2G.js +3 -3
- package/chunk/options-5u5_TcMp.js +3 -3
- package/chunk/pl-DbogtaWs.js +3 -3
- package/chunk/programThemeGetters-BXh5zb0K.js +3 -3
- package/chunk/programThemeGetters-D-drBRV1.js +3 -3
- package/chunk/pt-B2V6YtyG.js +3 -3
- package/chunk/pt-BR-CVJoyXno.js +3 -3
- package/chunk/refs-BxfzLCJo.js +3 -3
- package/chunk/refs-Dbu3I4qq.js +3 -3
- package/chunk/ro-FX-D-E91.js +3 -3
- package/chunk/ru-DMxlV75G.js +3 -3
- package/chunk/sk-CligiCej.js +3 -3
- package/chunk/sl-DQanH4Ky.js +3 -3
- package/chunk/sr-BZNIdT32.js +3 -3
- package/chunk/strings-DWLVdUcm.js +3 -3
- package/chunk/sv-BfXPNNfM.js +3 -3
- package/chunk/sw-Cw__J23Z.js +3 -3
- package/chunk/ta-Chf_KWJv.js +3 -3
- package/chunk/th-BC7lSeIN.js +3 -3
- package/chunk/tl-BIXqJsLl.js +3 -3
- package/chunk/tr-C_V4PV3Q.js +3 -3
- package/chunk/uk-ebwNkDb6.js +3 -3
- package/chunk/ur-BbRoatfN.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-7AsHsqB8.js → useCollectFieldsEndpoint-Bw-i2tLo.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-Ce2HnQ3I.js.map → useCollectFieldsEndpoint-Bw-i2tLo.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-Ce2HnQ3I.js → useCollectFieldsEndpoint-z_N_SShi.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-7AsHsqB8.js.map → useCollectFieldsEndpoint-z_N_SShi.js.map} +1 -1
- package/chunk/useMetrics-CLtxtSUO.js +3 -3
- package/chunk/useMetrics-CnnipBHm.js +3 -3
- package/chunk/validators-BTSkTV2f.js +3 -3
- package/chunk/validators-Bs1tWRSl.js +3 -3
- package/chunk/vi-B3RXegfW.js +3 -3
- package/chunk/zh-CD_hFClw.js +3 -3
- package/chunk/zh-HK-CGOvOtYE.js +3 -3
- package/chunk/zu-BMx7nUPZ.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +3 -3
- package/sheerid.css +3 -3
- package/sheerid.js +39 -42
- package/sheerid.js.map +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-D48r1TIH.js +0 -9
package/chunk/{StepLowIncomePersonalInfo-LJsDGPUb.js → StepLowIncomePersonalInfo-CfdjUBav.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Fri Jul 31 2026
|
|
3
|
+
* VERSION: 2.264.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785518521509
|
|
5
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:01 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
7
7
|
*/
|
|
8
8
|
import { Ct as e, Ht as t, Kt as n, Lt as r, c as i, n as a } from "./options-5u5_TcMp.js";
|
|
9
9
|
import { a as o, c as s, n as c, t as l } from "./jsx-runtime-BzjRi5cY.js";
|
|
10
|
-
import { C as u, r as d } from "./FormFooterComponent-
|
|
10
|
+
import { C as u, r as d } from "./FormFooterComponent-Cw_RFaJx.js";
|
|
11
11
|
import { n as f } from "./empties-CadVejwz.js";
|
|
12
12
|
import { m as p } from "./programThemeGetters-BXh5zb0K.js";
|
|
13
13
|
import { G as m, K as h, L as g, P as _, V as v, et as y, q as b, r as x, tt as S } from "../sheerid.js";
|
|
14
|
-
import { a as C, i as w, n as T, o as E, s as D, t as O } from "./CaptchaComponent-
|
|
14
|
+
import { a as C, i as w, n as T, o as E, s as D, t as O } from "./CaptchaComponent-Bv3pBtOL.js";
|
|
15
15
|
import { n as k, t as A } from "./PersonalInfoStepSubmitButton-IMW1ww2e.js";
|
|
16
|
-
import { t as j } from "./BirthDateComponent-
|
|
16
|
+
import { t as j } from "./BirthDateComponent-BD9ZmOZi.js";
|
|
17
17
|
import { t as M } from "./PostalCodeComponent-BDFy_9yi.js";
|
|
18
|
-
import { t as N } from "./CountryComponentWrapper-
|
|
18
|
+
import { t as N } from "./CountryComponentWrapper-D4AKnv7H.js";
|
|
19
19
|
import { t as P } from "./City-CLyjXYQj.js";
|
|
20
20
|
import { t as F } from "./AddressComponent-D9R5iYEq.js";
|
|
21
|
-
import { t as I } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as L } from "./PersonalInfoStepWrapper-
|
|
23
|
-
import { t as R } from "./StateSelectComponent-
|
|
24
|
-
import { n as z, t as B } from "./LowIncomeOrganizationComponent-
|
|
25
|
-
import { t as V } from "./StatusComponent-
|
|
21
|
+
import { t as I } from "./ChangeLocaleComponent-DxqwPe0W.js";
|
|
22
|
+
import { t as L } from "./PersonalInfoStepWrapper-BaskUzAh.js";
|
|
23
|
+
import { t as R } from "./StateSelectComponent-8iSjI0pU.js";
|
|
24
|
+
import { n as z, t as B } from "./LowIncomeOrganizationComponent-DA0G8AhH.js";
|
|
25
|
+
import { t as V } from "./StatusComponent-BAX61tmd.js";
|
|
26
26
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
27
27
|
var H = /* @__PURE__ */ n(s(), 1), U = l(), W = o(({ intl: n, verificationService: o }) => {
|
|
28
28
|
let { viewModel: s } = o, l = a();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-CprfWbyi.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 {\n LowIncomeStatusDefaultMessagesEnum,\n VerificationStepsEnum,\n} 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 getAvailableLowIncomeStatuses,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\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 { setViewModel } from \"../../lib/VerificationService/ViewModel\";\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 { 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 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 draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (isSelectedStatusSnapBenefits) {\n const updatedViewModel = { fieldsToSkipValidation: [\"organization\"] };\n setViewModel(updatedViewModel);\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\n ? getStatusLabel(intl, viewModel.statuses[0], LowIncomeStatusDefaultMessagesEnum)\n : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableLowIncomeStatuses(\n intl,\n (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\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":";;;;;;;;;;;;;;;;;;;4CAsUa,IAAqC,GA9Pf,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,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,MAAM,yCAAyC;GACtD;EACF;EACA,IAAM,IAA4C,EAChD,IACC,MAA0C;GACzC,EAAM,KAAO;EACf,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CASA,OAPA,EAAM,gBAAgB;EACpB,AAAI,KAEF,EAAa,EADc,wBAAwB,CAAC,cAAc,EACrD,CAAgB;CAEjC,GAAG,CAAC,CAA4B,CAAC,GAG/B,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO;KACL,OAAO,EAAU,WAAW,EAAU,SAAS,KAAK;KACpD,OAAO,EAAU,WACb,EAAe,GAAM,EAAU,SAAS,IAAI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IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,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;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
|
1
|
+
{"version":3,"file":"StepLowIncomePersonalInfo-CfdjUBav.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 {\n LowIncomeStatusDefaultMessagesEnum,\n VerificationStepsEnum,\n} 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 getAvailableLowIncomeStatuses,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\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 { setViewModel } from \"../../lib/VerificationService/ViewModel\";\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 { 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 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 draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (isSelectedStatusSnapBenefits) {\n const updatedViewModel = { fieldsToSkipValidation: [\"organization\"] };\n setViewModel(updatedViewModel);\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\n ? getStatusLabel(intl, viewModel.statuses[0], LowIncomeStatusDefaultMessagesEnum)\n : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableLowIncomeStatuses(\n intl,\n (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\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":";;;;;;;;;;;;;;;;;;;4CAsUa,IAAqC,GA9Pf,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,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,MAAM,yCAAyC;GACtD;EACF;EACA,IAAM,IAA4C,EAChD,IACC,MAA0C;GACzC,EAAM,KAAO;EACf,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CASA,OAPA,EAAM,gBAAgB;EACpB,AAAI,KAEF,EAAa,EADc,wBAAwB,CAAC,cAAc,EACrD,CAAgB;CAEjC,GAAG,CAAC,CAA4B,CAAC,GAG/B,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAA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GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,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;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
package/chunk/{StepLowIncomePersonalInfo-CprfWbyi.js → StepLowIncomePersonalInfo-g3KSzV4M.js}
RENAMED
|
@@ -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: Fri Jul 31 2026
|
|
7
|
+
* VERSION: 2.264.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785518525927
|
|
9
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:05 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
11
11
|
*/
|
|
12
12
|
import { Ft as e, Kt as t, Vt as n, p as r, s as i, xt as a } from "./intl-RejEV_0u.js";
|
|
13
13
|
import { a as o, c as s, n as c, t as l } from "./jsx-runtime-C8rHQFpC.js";
|
|
14
|
-
import { D as u, n as d } from "./FormFooterComponent-
|
|
14
|
+
import { D as u, n as d } from "./FormFooterComponent-DGChoxIB.js";
|
|
15
15
|
import { n as f } from "./empties-DPqJljgl.js";
|
|
16
16
|
import { m as p } from "./programThemeGetters-D-drBRV1.js";
|
|
17
17
|
import { $ as m, B as h, G as g, I as _, K as v, N as y, W as b, et as x, n as S } from "../_mysheerid-preview.js";
|
|
18
|
-
import { a as C, i as w, n as T, o as E, s as D, t as O } from "./CaptchaComponent-
|
|
18
|
+
import { a as C, i as w, n as T, o as E, s as D, t as O } from "./CaptchaComponent-BsP6z6fV.js";
|
|
19
19
|
import { n as k, t as A } from "./PersonalInfoStepSubmitButton-BS7TwIFn.js";
|
|
20
|
-
import { t as j } from "./BirthDateComponent-
|
|
20
|
+
import { t as j } from "./BirthDateComponent-ts-uQcFv.js";
|
|
21
21
|
import { t as M } from "./PostalCodeComponent-DuEPciUA.js";
|
|
22
|
-
import { t as N } from "./CountryComponentWrapper-
|
|
22
|
+
import { t as N } from "./CountryComponentWrapper-C6jxabRh.js";
|
|
23
23
|
import { t as P } from "./City-B6J8thJW.js";
|
|
24
24
|
import { t as F } from "./AddressComponent-0vaEURVZ.js";
|
|
25
|
-
import { t as I } from "./ChangeLocaleComponent-
|
|
26
|
-
import { t as L } from "./PersonalInfoStepWrapper-
|
|
27
|
-
import { t as R } from "./StateSelectComponent-
|
|
28
|
-
import { n as z, t as B } from "./LowIncomeOrganizationComponent-
|
|
29
|
-
import { t as V } from "./StatusComponent-
|
|
25
|
+
import { t as I } from "./ChangeLocaleComponent-CISzBLcA.js";
|
|
26
|
+
import { t as L } from "./PersonalInfoStepWrapper-BlPhTEPX.js";
|
|
27
|
+
import { t as R } from "./StateSelectComponent-DJZiu3Dc.js";
|
|
28
|
+
import { n as z, t as B } from "./LowIncomeOrganizationComponent-CmH7OfBz.js";
|
|
29
|
+
import { t as V } from "./StatusComponent-OCM9IXu5.js";
|
|
30
30
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
31
31
|
var H = /* @__PURE__ */ t(s(), 1), U = l(), W = o(({ intl: t, verificationService: o }) => {
|
|
32
32
|
let { viewModel: s } = o, l = i();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-LJsDGPUb.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 {\n LowIncomeStatusDefaultMessagesEnum,\n VerificationStepsEnum,\n} 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 getAvailableLowIncomeStatuses,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\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 { setViewModel } from \"../../lib/VerificationService/ViewModel\";\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 { 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 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 draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (isSelectedStatusSnapBenefits) {\n const updatedViewModel = { fieldsToSkipValidation: [\"organization\"] };\n setViewModel(updatedViewModel);\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\n ? getStatusLabel(intl, viewModel.statuses[0], LowIncomeStatusDefaultMessagesEnum)\n : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableLowIncomeStatuses(\n intl,\n (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\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":";;;;;;;;;;;;;;;;;;;4CAsUa,IAAqC,GA9Pf,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,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,MAAM,yCAAyC;GACtD;EACF;EACA,IAAM,IAA4C,EAChD,IACC,MAA0C;GACzC,EAAM,KAAO;EACf,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CASA,OAPA,EAAM,gBAAgB;EACpB,AAAI,KAEF,EAAa,EADc,wBAAwB,CAAC,cAAc,EACrD,CAAgB;CAEjC,GAAG,CAAC,CAA4B,CAAC,GAG/B,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAA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,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,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;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
|
1
|
+
{"version":3,"file":"StepLowIncomePersonalInfo-g3KSzV4M.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 {\n LowIncomeStatusDefaultMessagesEnum,\n VerificationStepsEnum,\n} 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 getAvailableLowIncomeStatuses,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\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 { setViewModel } from \"../../lib/VerificationService/ViewModel\";\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 { 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 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 draft[key] = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n if (isSelectedStatusSnapBenefits) {\n const updatedViewModel = { fieldsToSkipValidation: [\"organization\"] };\n setViewModel(updatedViewModel);\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\n ? getStatusLabel(intl, viewModel.statuses[0], LowIncomeStatusDefaultMessagesEnum)\n : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n options={getAvailableLowIncomeStatuses(\n intl,\n (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\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":";;;;;;;;;;;;;;;;;;;4CAsUa,IAAqC,GA9Pf,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,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,MAAM,yCAAyC;GACtD;EACF;EACA,IAAM,IAA4C,EAChD,IACC,MAA0C;GACzC,EAAM,KAAO;EACf,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CASA,OAPA,EAAM,gBAAgB;EACpB,AAAI,KAEF,EAAa,EADc,wBAAwB,CAAC,cAAc,EACrD,CAAgB;CAE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AAC,GAAD;IACE,YAAY,CAAC,CAAC,EAAoB,aAAa;IAC/C,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAyB,eAAe,CAAQ,GAChD,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,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;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
|
@@ -4,26 +4,26 @@
|
|
|
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: Fri Jul 31 2026
|
|
7
|
+
* VERSION: 2.264.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785518525927
|
|
9
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:05 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
11
11
|
*/
|
|
12
12
|
import { Ft as e, Kt as t, St as n, s as r } from "./intl-RejEV_0u.js";
|
|
13
13
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-C8rHQFpC.js";
|
|
14
|
-
import { D as c } from "./FormFooterComponent-
|
|
14
|
+
import { D as c } from "./FormFooterComponent-DGChoxIB.js";
|
|
15
15
|
import { $ as l, B as u, G as d, J as f, P as p, W as m, et as h, n as g } from "../_mysheerid-preview.js";
|
|
16
|
-
import { t as _ } from "./useCollectFieldsEndpoint-
|
|
17
|
-
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-
|
|
16
|
+
import { t as _ } from "./useCollectFieldsEndpoint-Bw-i2tLo.js";
|
|
17
|
+
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-BsP6z6fV.js";
|
|
18
18
|
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-BS7TwIFn.js";
|
|
19
|
-
import { t as E } from "./BirthDateComponent-
|
|
19
|
+
import { t as E } from "./BirthDateComponent-ts-uQcFv.js";
|
|
20
20
|
import { t as D } from "./PostalCodeComponent-DuEPciUA.js";
|
|
21
|
-
import { t as O } from "./CountryComponentWrapper-
|
|
22
|
-
import { t as k } from "./ExtraMessage-
|
|
23
|
-
import { t as A } from "./ChangeLocaleComponent-
|
|
24
|
-
import { t as j } from "./PersonalInfoStepWrapper-
|
|
25
|
-
import { t as M } from "./StatusComponent-
|
|
26
|
-
import { t as N } from "./MedicalProfessionalOrganizationComponent-
|
|
21
|
+
import { t as O } from "./CountryComponentWrapper-C6jxabRh.js";
|
|
22
|
+
import { t as k } from "./ExtraMessage-DuHSW-UZ.js";
|
|
23
|
+
import { t as A } from "./ChangeLocaleComponent-CISzBLcA.js";
|
|
24
|
+
import { t as j } from "./PersonalInfoStepWrapper-BlPhTEPX.js";
|
|
25
|
+
import { t as M } from "./StatusComponent-OCM9IXu5.js";
|
|
26
|
+
import { t as N } from "./MedicalProfessionalOrganizationComponent-C1qcSelB.js";
|
|
27
27
|
import { t as P } from "./MemberIdComponent-F3J2XAp3.js";
|
|
28
28
|
//#region src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx
|
|
29
29
|
var F = /* @__PURE__ */ t(a(), 1), I = s(), L = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-CCmT6j7D.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 {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} 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 getAvailableMedicalStatuses,\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 } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\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(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\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":";;;;;;;;;;;;;;;;;4CA8DM,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,GA0Oa,IAA+C,GAxOR,EAClD,SACA,6BACuD;CACvD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,C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A,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-BVkbqZkn.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 {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} 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 getAvailableMedicalStatuses,\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 } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\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(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\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":";;;;;;;;;;;;;;;;;4CA8DM,IAAkE;CACtE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,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,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,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Fri Jul 31 2026
|
|
3
|
+
* VERSION: 2.264.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785518521509
|
|
5
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:01 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
7
7
|
*/
|
|
8
8
|
import { Kt as e, Lt as t, n, wt as r } from "./options-5u5_TcMp.js";
|
|
9
9
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-BzjRi5cY.js";
|
|
10
|
-
import { C as c } from "./FormFooterComponent-
|
|
10
|
+
import { C as c } from "./FormFooterComponent-Cw_RFaJx.js";
|
|
11
11
|
import { F as l, G as u, K as d, V as f, Y as p, et as m, r as h, tt as g } from "../sheerid.js";
|
|
12
|
-
import { t as _ } from "./useCollectFieldsEndpoint-
|
|
13
|
-
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-
|
|
12
|
+
import { t as _ } from "./useCollectFieldsEndpoint-z_N_SShi.js";
|
|
13
|
+
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-Bv3pBtOL.js";
|
|
14
14
|
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-IMW1ww2e.js";
|
|
15
|
-
import { t as E } from "./BirthDateComponent-
|
|
15
|
+
import { t as E } from "./BirthDateComponent-BD9ZmOZi.js";
|
|
16
16
|
import { t as D } from "./PostalCodeComponent-BDFy_9yi.js";
|
|
17
|
-
import { t as O } from "./CountryComponentWrapper-
|
|
18
|
-
import { t as k } from "./ExtraMessage-
|
|
19
|
-
import { t as A } from "./ChangeLocaleComponent-
|
|
20
|
-
import { t as j } from "./PersonalInfoStepWrapper-
|
|
21
|
-
import { t as M } from "./StatusComponent-
|
|
22
|
-
import { t as N } from "./MedicalProfessionalOrganizationComponent-
|
|
17
|
+
import { t as O } from "./CountryComponentWrapper-D4AKnv7H.js";
|
|
18
|
+
import { t as k } from "./ExtraMessage-C9Tya8_-.js";
|
|
19
|
+
import { t as A } from "./ChangeLocaleComponent-DxqwPe0W.js";
|
|
20
|
+
import { t as j } from "./PersonalInfoStepWrapper-BaskUzAh.js";
|
|
21
|
+
import { t as M } from "./StatusComponent-BAX61tmd.js";
|
|
22
|
+
import { t as N } from "./MedicalProfessionalOrganizationComponent-8RySy8zK.js";
|
|
23
23
|
import { t as P } from "./MemberIdComponent-BJC0oeuE.js";
|
|
24
24
|
//#region src/components/StepMedicalProfessionalPersonalInfo/StepMedicalProfessionalPersonalInfoComponent.tsx
|
|
25
25
|
var F = /* @__PURE__ */ e(a(), 1), I = s(), L = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepMedicalProfessionalPersonalInfo-wIOQmTNI.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 {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} 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 getAvailableMedicalStatuses,\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 } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\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(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\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":";;;;;;;;;;;;;;;;;4CA8DM,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,GA0Oa,IAA+C,GAxOR,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,EAAo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U;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-BsjEiIy9.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 {\n VerificationStepsEnum,\n MedicalProfessionalStatusDefaultMessagesEnum,\n} 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 getAvailableMedicalStatuses,\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 } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n const shouldRenderMemberId = isFieldOptional(\"memberId\");\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(\n intl,\n viewModel.status,\n MedicalProfessionalStatusDefaultMessagesEnum,\n ),\n }}\n isErrored={!!fieldValidationErrors.status}\n options={getAvailableMedicalStatuses(intl, verificationResponse.availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\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":";;;;;;;;;;;;;;;;;4CA8DM,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,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BAAe;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"}
|
|
@@ -4,24 +4,24 @@
|
|
|
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: Fri Jul 31 2026
|
|
7
|
+
* VERSION: 2.264.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785518525927
|
|
9
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:05 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
11
11
|
*/
|
|
12
12
|
import { Ft as e, Kt as t, p as n, s as r } from "./intl-RejEV_0u.js";
|
|
13
13
|
import { c as i, n as a, t as o } from "./jsx-runtime-C8rHQFpC.js";
|
|
14
|
-
import { D as s } from "./FormFooterComponent-
|
|
14
|
+
import { D as s } from "./FormFooterComponent-DGChoxIB.js";
|
|
15
15
|
import { $ as c, B as l, G as u, et as d, n as f } from "../_mysheerid-preview.js";
|
|
16
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-
|
|
16
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-BsP6z6fV.js";
|
|
17
17
|
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-BS7TwIFn.js";
|
|
18
|
-
import { t as x } from "./BirthDateComponent-
|
|
19
|
-
import { t as S } from "./CountryComponentWrapper-
|
|
20
|
-
import { t as C } from "./ExtraMessage-
|
|
21
|
-
import { t as w } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as T } from "./PersonalInfoStepWrapper-
|
|
18
|
+
import { t as x } from "./BirthDateComponent-ts-uQcFv.js";
|
|
19
|
+
import { t as S } from "./CountryComponentWrapper-C6jxabRh.js";
|
|
20
|
+
import { t as C } from "./ExtraMessage-DuHSW-UZ.js";
|
|
21
|
+
import { t as w } from "./ChangeLocaleComponent-CISzBLcA.js";
|
|
22
|
+
import { t as T } from "./PersonalInfoStepWrapper-BlPhTEPX.js";
|
|
23
23
|
import { t as E } from "./MemberIdComponent-F3J2XAp3.js";
|
|
24
|
-
import { t as D } from "./MembershipOrganizationComponent-
|
|
24
|
+
import { t as D } from "./MembershipOrganizationComponent-Bh5LYj6P.js";
|
|
25
25
|
//#region src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.tsx
|
|
26
26
|
var O = /* @__PURE__ */ t(i(), 1), k = o(), A = ({ verificationService: t }) => {
|
|
27
27
|
let i = t.viewModel, { fieldValidationErrors: o } = t, A = t.verificationResponse, j = s(A), M = r(), N = l("memberId")?.requireIfOptional, P = i.localeChoice.value, F = (e, r) => {
|