@sheerid/jslib-nightly 2.288.0-alpha.2 → 2.288.0-alpha.3
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 +43 -43
- package/chunk/{AddressComponent-BYiCmiVL.js → AddressComponent-Bf_qitE6.js} +7 -7
- package/chunk/{AddressComponent-BYiCmiVL.js.map → AddressComponent-Bf_qitE6.js.map} +1 -1
- package/chunk/{AddressComponent-jl9JaIsf.js → AddressComponent-BqWXWBm6.js} +7 -7
- package/chunk/{AddressComponent-jl9JaIsf.js.map → AddressComponent-BqWXWBm6.js.map} +1 -1
- package/chunk/{AnnouncingHeader-BY6rZtgn.js → AnnouncingHeader-B0Ku-xl_.js} +5 -5
- package/chunk/{AnnouncingHeader-BY6rZtgn.js.map → AnnouncingHeader-B0Ku-xl_.js.map} +1 -1
- package/chunk/{AnnouncingHeader-LaMkmmM9.js → AnnouncingHeader-CXTQdbKG.js} +5 -5
- package/chunk/{AnnouncingHeader-LaMkmmM9.js.map → AnnouncingHeader-CXTQdbKG.js.map} +1 -1
- package/chunk/{ApiUrls-B__fmUI_.js → ApiUrls-Cl9vPmKg.js} +5 -5
- package/chunk/{ApiUrls-B__fmUI_.js.map → ApiUrls-Cl9vPmKg.js.map} +1 -1
- package/chunk/{ApiUrls-BNFZcClH.js → ApiUrls-CpP-4u__.js} +5 -5
- package/chunk/{ApiUrls-BNFZcClH.js.map → ApiUrls-CpP-4u__.js.map} +1 -1
- package/chunk/{BirthDateComponent-S_RZIsMk.js → BirthDateComponent-ByCDQd1d.js} +7 -7
- package/chunk/{BirthDateComponent-CzrH33Zg.js.map → BirthDateComponent-ByCDQd1d.js.map} +1 -1
- package/chunk/{BirthDateComponent-CzrH33Zg.js → BirthDateComponent-C9-U9EPF.js} +7 -7
- package/chunk/{BirthDateComponent-S_RZIsMk.js.map → BirthDateComponent-C9-U9EPF.js.map} +1 -1
- package/chunk/{CaptchaComponent-SDwoAGuD.js → CaptchaComponent-BQQYbjeG.js} +14 -14
- package/chunk/{CaptchaComponent-C1jCPKW_.js.map → CaptchaComponent-BQQYbjeG.js.map} +1 -1
- package/chunk/{CaptchaComponent-C1jCPKW_.js → CaptchaComponent-u9dnBrBj.js} +14 -14
- package/chunk/{CaptchaComponent-SDwoAGuD.js.map → CaptchaComponent-u9dnBrBj.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CrGBsLAT.js → ChangeLocaleComponent-DMKdf7SW.js} +8 -8
- package/chunk/{ChangeLocaleComponent-CrGBsLAT.js.map → ChangeLocaleComponent-DMKdf7SW.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-bP_E0o2D.js → ChangeLocaleComponent-Dunde8x7.js} +8 -8
- package/chunk/{ChangeLocaleComponent-bP_E0o2D.js.map → ChangeLocaleComponent-Dunde8x7.js.map} +1 -1
- package/chunk/{City-gLjD_QXD.js → City-C2VskOtZ.js} +7 -7
- package/chunk/{City-CDs92PJs.js.map → City-C2VskOtZ.js.map} +1 -1
- package/chunk/{City-CDs92PJs.js → City-DcuVkqGh.js} +7 -7
- package/chunk/{City-gLjD_QXD.js.map → City-DcuVkqGh.js.map} +1 -1
- package/chunk/{CollegeNameComponent-NU_4lsMr.js → CollegeNameComponent-B4ZsWndg.js} +9 -9
- package/chunk/{CollegeNameComponent-DiMyUNHs.js.map → CollegeNameComponent-B4ZsWndg.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DiMyUNHs.js → CollegeNameComponent-CPC_e8GN.js} +9 -9
- package/chunk/{CollegeNameComponent-NU_4lsMr.js.map → CollegeNameComponent-CPC_e8GN.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-B3-5Ju65.js → CopyToClipboardComponent-BAOwMLHJ.js} +5 -5
- package/chunk/{CopyToClipboardComponent-B3-5Ju65.js.map → CopyToClipboardComponent-BAOwMLHJ.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-Blt2TEku.js → CopyToClipboardComponent-BejK3fLR.js} +5 -5
- package/chunk/{CopyToClipboardComponent-Blt2TEku.js.map → CopyToClipboardComponent-BejK3fLR.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CgsJDdn7.js → CountryComponentWrapper-Dfl1dpwF.js} +11 -11
- package/chunk/{CountryComponentWrapper-CSlqoIHA.js.map → CountryComponentWrapper-Dfl1dpwF.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CSlqoIHA.js → CountryComponentWrapper-gMZvbqg9.js} +11 -11
- package/chunk/{CountryComponentWrapper-CgsJDdn7.js.map → CountryComponentWrapper-gMZvbqg9.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CK7GlxLf.js → DischargeDateComponent-BH9IJPbu.js} +10 -10
- package/chunk/{DischargeDateComponent-CK7GlxLf.js.map → DischargeDateComponent-BH9IJPbu.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DgMx2R9Z.js → DischargeDateComponent-D00XOz-Q.js} +10 -10
- package/chunk/{DischargeDateComponent-DgMx2R9Z.js.map → DischargeDateComponent-D00XOz-Q.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DVGDsdng.js → DriverLicenseNumberComponent-BCC25opN.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-DVGDsdng.js.map → DriverLicenseNumberComponent-BCC25opN.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-Dw7B8Z_T.js → DriverLicenseNumberComponent-DdUUqXY8.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-Dw7B8Z_T.js.map → DriverLicenseNumberComponent-DdUUqXY8.js.map} +1 -1
- package/chunk/{EmailLoopPending-CtfDxES3.js → EmailLoopPending-BwwbCqJG.js} +10 -10
- package/chunk/{EmailLoopPending-CtfDxES3.js.map → EmailLoopPending-BwwbCqJG.js.map} +1 -1
- package/chunk/{EmailLoopPending-DfQWXrgo.js → EmailLoopPending-DoxlbjNq.js} +10 -10
- package/chunk/{EmailLoopPending-DfQWXrgo.js.map → EmailLoopPending-DoxlbjNq.js.map} +1 -1
- package/chunk/{ExtraMessage-CwJ-dMVo.js → ExtraMessage-BKgZ16Xe.js} +6 -6
- package/chunk/{ExtraMessage-C4FhNUn9.js.map → ExtraMessage-BKgZ16Xe.js.map} +1 -1
- package/chunk/{ExtraMessage-C4FhNUn9.js → ExtraMessage-CT3C7YMI.js} +6 -6
- package/chunk/{ExtraMessage-CwJ-dMVo.js.map → ExtraMessage-CT3C7YMI.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CvfYzERW.js → FirstResponderOrganizationComponent-CjJ1mAu-.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-CvfYzERW.js.map → FirstResponderOrganizationComponent-CjJ1mAu-.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-kkbnKhhM.js → FirstResponderOrganizationComponent-Cr4ndwx3.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-kkbnKhhM.js.map → FirstResponderOrganizationComponent-Cr4ndwx3.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-C4QhrekJ.js → FormFieldInputSelect-5_2RNYfl.js} +6 -6
- package/chunk/{FormFieldInputSelect-56Qcyesp.js.map → FormFieldInputSelect-5_2RNYfl.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-56Qcyesp.js → FormFieldInputSelect-DWcjrU2H.js} +6 -6
- package/chunk/{FormFieldInputSelect-C4QhrekJ.js.map → FormFieldInputSelect-DWcjrU2H.js.map} +1 -1
- package/chunk/{FormFieldLayout-DqhnoHCo.js → FormFieldLayout-DEKIQK2R.js} +5 -5
- package/chunk/{FormFieldLayout-DXt0ToGW.js.map → FormFieldLayout-DEKIQK2R.js.map} +1 -1
- package/chunk/{FormFieldLayout-DXt0ToGW.js → FormFieldLayout-NkmhFC9B.js} +5 -5
- package/chunk/{FormFieldLayout-DqhnoHCo.js.map → FormFieldLayout-NkmhFC9B.js.map} +1 -1
- package/chunk/{FormFieldText-DzErOnhk.js → FormFieldText-Bn9WIKiI.js} +6 -6
- package/chunk/{FormFieldText-DzErOnhk.js.map → FormFieldText-Bn9WIKiI.js.map} +1 -1
- package/chunk/{FormFieldText-VGmZG0Lb.js → FormFieldText-Py7x4EZ6.js} +6 -6
- package/chunk/{FormFieldText-VGmZG0Lb.js.map → FormFieldText-Py7x4EZ6.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CpittKWN.js → FormFieldTypeahead-BqpM1Usp.js} +12 -12
- package/chunk/{FormFieldTypeahead-CpittKWN.js.map → FormFieldTypeahead-BqpM1Usp.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-C-d-4kDc.js → FormFieldTypeahead-CLiGn702.js} +12 -12
- package/chunk/{FormFieldTypeahead-C-d-4kDc.js.map → FormFieldTypeahead-CLiGn702.js.map} +1 -1
- package/chunk/{FormFooterComponent-Bk6tVgn_.js → FormFooterComponent-CuiVrDVn.js} +12 -12
- package/chunk/{FormFooterComponent-Bk6tVgn_.js.map → FormFooterComponent-CuiVrDVn.js.map} +1 -1
- package/chunk/{FormFooterComponent-C_Hv2PMX.js → FormFooterComponent-limUUrwN.js} +12 -12
- package/chunk/{FormFooterComponent-C_Hv2PMX.js.map → FormFooterComponent-limUUrwN.js.map} +1 -1
- package/chunk/{FormSelectChoice-BS90KVVl.js → FormSelectChoice-B48CbCVn.js} +7 -7
- package/chunk/{FormSelectChoice-14M849ZM.js.map → FormSelectChoice-B48CbCVn.js.map} +1 -1
- package/chunk/{FormSelectChoice-14M849ZM.js → FormSelectChoice-ozMqzJbt.js} +7 -7
- package/chunk/{FormSelectChoice-BS90KVVl.js.map → FormSelectChoice-ozMqzJbt.js.map} +1 -1
- package/chunk/{InputText-Ca7uYXcO.js → InputText-CMu4ei8e.js} +5 -5
- package/chunk/{InputText-Bla-3rez.js.map → InputText-CMu4ei8e.js.map} +1 -1
- package/chunk/{InputText-Bla-3rez.js → InputText-dflyPe3J.js} +5 -5
- package/chunk/{InputText-Ca7uYXcO.js.map → InputText-dflyPe3J.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-TbZf1p47.js → LicensedProfessionalOrganizationComponent-BBQiJA-a.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-BO_KJrBP.js.map → LicensedProfessionalOrganizationComponent-BBQiJA-a.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BO_KJrBP.js → LicensedProfessionalOrganizationComponent-BC1IvvNy.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-TbZf1p47.js.map → LicensedProfessionalOrganizationComponent-BC1IvvNy.js.map} +1 -1
- package/chunk/{LogoComponent-DEBmCERD.js → LogoComponent-BDhMcJvy.js} +5 -5
- package/chunk/{LogoComponent-B0nd1tuK.js.map → LogoComponent-BDhMcJvy.js.map} +1 -1
- package/chunk/{LogoComponent-B0nd1tuK.js → LogoComponent-DASXTR4v.js} +5 -5
- package/chunk/{LogoComponent-DEBmCERD.js.map → LogoComponent-DASXTR4v.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-8S9C81aL.js → LowIncomeOrganizationComponent-B-2JkfaQ.js} +11 -11
- package/chunk/{LowIncomeOrganizationComponent-8S9C81aL.js.map → LowIncomeOrganizationComponent-B-2JkfaQ.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CpRejkiE.js → LowIncomeOrganizationComponent-BRDMuK02.js} +11 -11
- package/chunk/{LowIncomeOrganizationComponent-CpRejkiE.js.map → LowIncomeOrganizationComponent-BRDMuK02.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-Bv8ILmon.js → MedicalProfessionalOrganizationComponent-B-XzAARd.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-j9YN-OAk.js.map → MedicalProfessionalOrganizationComponent-B-XzAARd.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-j9YN-OAk.js → MedicalProfessionalOrganizationComponent-CuOpC58f.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-Bv8ILmon.js.map → MedicalProfessionalOrganizationComponent-CuOpC58f.js.map} +1 -1
- package/chunk/{MemberIdComponent-CMfsuser.js → MemberIdComponent-Bfrw6iIh.js} +7 -7
- package/chunk/{MemberIdComponent-BdCR-spM.js.map → MemberIdComponent-Bfrw6iIh.js.map} +1 -1
- package/chunk/{MemberIdComponent-BdCR-spM.js → MemberIdComponent-BsEGRbyx.js} +7 -7
- package/chunk/{MemberIdComponent-CMfsuser.js.map → MemberIdComponent-BsEGRbyx.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BVMDHAAJ.js → MembershipOrganizationComponent-C88k5Nlv.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-BVMDHAAJ.js.map → MembershipOrganizationComponent-C88k5Nlv.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-k0Dacmz6.js → MembershipOrganizationComponent-CfTo8Rxy.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-k0Dacmz6.js.map → MembershipOrganizationComponent-CfTo8Rxy.js.map} +1 -1
- package/chunk/{Message-DQwVDFDI.js → Message-CTw1mmu3.js} +9 -9
- package/chunk/{Message-DQwVDFDI.js.map → Message-CTw1mmu3.js.map} +1 -1
- package/chunk/{Message-BHkGarjE.js → Message-DeVmsvv-.js} +9 -9
- package/chunk/{Message-BHkGarjE.js.map → Message-DeVmsvv-.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/{PersonalInfoStepSubmitButton-C3qFXk_y.js → PersonalInfoStepSubmitButton-Bb_22loc.js} +10 -10
- package/chunk/{PersonalInfoStepSubmitButton-BNzPmdj2.js.map → PersonalInfoStepSubmitButton-Bb_22loc.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-BNzPmdj2.js → PersonalInfoStepSubmitButton-CgINxYQc.js} +10 -10
- package/chunk/{PersonalInfoStepSubmitButton-C3qFXk_y.js.map → PersonalInfoStepSubmitButton-CgINxYQc.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DBVzHUVq.js → PersonalInfoStepWrapper-BlY503Ml.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-DBVzHUVq.js.map → PersonalInfoStepWrapper-BlY503Ml.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-BgXSFrG3.js → PersonalInfoStepWrapper-Cw7zaz3h.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-BgXSFrG3.js.map → PersonalInfoStepWrapper-Cw7zaz3h.js.map} +1 -1
- package/chunk/{PostalCodeComponent-s22SnL3W.js → PostalCodeComponent-B9qhZKs8.js} +7 -7
- package/chunk/{PostalCodeComponent-CwTTqOfq.js.map → PostalCodeComponent-B9qhZKs8.js.map} +1 -1
- package/chunk/{PostalCodeComponent-CwTTqOfq.js → PostalCodeComponent-C437q52r.js} +7 -7
- package/chunk/{PostalCodeComponent-s22SnL3W.js.map → PostalCodeComponent-C437q52r.js.map} +1 -1
- package/chunk/{SSN-CN1AySRv.js → SSN-C2o-1P37.js} +7 -7
- package/chunk/{SSN-C8150irp.js.map → SSN-C2o-1P37.js.map} +1 -1
- package/chunk/{SSN-C8150irp.js → SSN-bBcCEQJK.js} +7 -7
- package/chunk/{SSN-CN1AySRv.js.map → SSN-bBcCEQJK.js.map} +1 -1
- package/chunk/{StateSelectComponent-VsaECfUZ.js → StateSelectComponent-DF0kdhS5.js} +6 -6
- package/chunk/{StateSelectComponent-Clp_571k.js.map → StateSelectComponent-DF0kdhS5.js.map} +1 -1
- package/chunk/{StateSelectComponent-Clp_571k.js → StateSelectComponent-b8cGNpMO.js} +6 -6
- package/chunk/{StateSelectComponent-VsaECfUZ.js.map → StateSelectComponent-b8cGNpMO.js.map} +1 -1
- package/chunk/{StatusComponent-Cygs9AMY.js → StatusComponent-6KXI7mNH.js} +8 -8
- package/chunk/{StatusComponent-Cygs9AMY.js.map → StatusComponent-6KXI7mNH.js.map} +1 -1
- package/chunk/{StatusComponent-Bwi_-s-2.js → StatusComponent-CDaVrPYq.js} +8 -8
- package/chunk/{StatusComponent-Bwi_-s-2.js.map → StatusComponent-CDaVrPYq.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Sf-u9plZ.js → StepAgePersonalInfo-CC1BMbJf.js} +18 -18
- package/chunk/{StepAgePersonalInfo-3GmwW-rY.js.map → StepAgePersonalInfo-CC1BMbJf.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-3GmwW-rY.js → StepAgePersonalInfo-DLX9vIEk.js} +18 -18
- package/chunk/{StepAgePersonalInfo-Sf-u9plZ.js.map → StepAgePersonalInfo-DLX9vIEk.js.map} +1 -1
- package/chunk/{StepCard-CyaGxns4.js → StepCard-DQ9JkAjb.js} +4 -4
- package/chunk/{StepCard-1HzVBCwp.js.map → StepCard-DQ9JkAjb.js.map} +1 -1
- package/chunk/{StepCard-1HzVBCwp.js → StepCard-EHeqFY3Y.js} +4 -4
- package/chunk/{StepCard-CyaGxns4.js.map → StepCard-EHeqFY3Y.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-Bmc3SSNb.js → StepCollectIdentifier-BoNbMK7x.js} +8 -8
- package/chunk/{StepCollectIdentifier-Bmc3SSNb.js.map → StepCollectIdentifier-BoNbMK7x.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DFIiJ01u.js → StepCollectIdentifier-og7rD1B_.js} +8 -8
- package/chunk/{StepCollectIdentifier-DFIiJ01u.js.map → StepCollectIdentifier-og7rD1B_.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-XWdESlgK.js → StepCollectMilitaryPersonalInfoComponent-04iQ3vhf.js} +22 -22
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-XWdESlgK.js.map → StepCollectMilitaryPersonalInfoComponent-04iQ3vhf.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-i55iFUsp.js → StepCollectMilitaryPersonalInfoComponent-Dh_t0VFI.js} +22 -22
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-i55iFUsp.js.map → StepCollectMilitaryPersonalInfoComponent-Dh_t0VFI.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DrwcafDx.js → StepCollectPersonalInfo-CwayJQD1.js} +32 -32
- package/chunk/{StepCollectPersonalInfo-DrwcafDx.js.map → StepCollectPersonalInfo-CwayJQD1.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-MOx8lad1.js → StepCollectPersonalInfo-DW7Tt2J0.js} +32 -32
- package/chunk/{StepCollectPersonalInfo-MOx8lad1.js.map → StepCollectPersonalInfo-DW7Tt2J0.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-B5Z6VGje.js → StepCompleteAuthentication-DmkwcwhP.js} +8 -8
- package/chunk/{StepCompleteAuthentication-B5Z6VGje.js.map → StepCompleteAuthentication-DmkwcwhP.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-DotkcAbK.js → StepCompleteAuthentication-oWf-NQ40.js} +8 -8
- package/chunk/{StepCompleteAuthentication-DotkcAbK.js.map → StepCompleteAuthentication-oWf-NQ40.js.map} +1 -1
- package/chunk/{StepConsolation-BYa4B6M1.js → StepConsolation-DahMvX2c.js} +7 -7
- package/chunk/{StepConsolation-BaSShRS1.js.map → StepConsolation-DahMvX2c.js.map} +1 -1
- package/chunk/{StepConsolation-BaSShRS1.js → StepConsolation-MFYiOhJz.js} +7 -7
- package/chunk/{StepConsolation-BYa4B6M1.js.map → StepConsolation-MFYiOhJz.js.map} +1 -1
- package/chunk/{StepDocUpload-HRvkG4Ir.js → StepDocUpload-B-1vGZrk.js} +12 -12
- package/chunk/{StepDocUpload-HRvkG4Ir.js.map → StepDocUpload-B-1vGZrk.js.map} +1 -1
- package/chunk/{StepDocUpload-CSdGLLLR.js → StepDocUpload-BKpqQGMq.js} +12 -12
- package/chunk/{StepDocUpload-CSdGLLLR.js.map → StepDocUpload-BKpqQGMq.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CZkynCYy.js → StepDriverLicensePersonalInfoComponent-CO8jPcrq.js} +14 -14
- package/chunk/{StepDriverLicensePersonalInfoComponent-CZkynCYy.js.map → StepDriverLicensePersonalInfoComponent-CO8jPcrq.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-xpjjOjkm.js → StepDriverLicensePersonalInfoComponent-DQmsnZ5V.js} +14 -14
- package/chunk/{StepDriverLicensePersonalInfoComponent-xpjjOjkm.js.map → StepDriverLicensePersonalInfoComponent-DQmsnZ5V.js.map} +1 -1
- package/chunk/{StepEmailLoop-gYLKxXUQ.js → StepEmailLoop-BdQEDO6Z.js} +12 -12
- package/chunk/{StepEmailLoop-gYLKxXUQ.js.map → StepEmailLoop-BdQEDO6Z.js.map} +1 -1
- package/chunk/{StepEmailLoop-DMO9tx7H.js → StepEmailLoop-pr8_koIo.js} +12 -12
- package/chunk/{StepEmailLoop-DMO9tx7H.js.map → StepEmailLoop-pr8_koIo.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-B0noVhtm.js → StepEmploymentPersonalInfo--rgNheQ3.js} +19 -19
- package/chunk/{StepEmploymentPersonalInfo-B0noVhtm.js.map → StepEmploymentPersonalInfo--rgNheQ3.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BcjV9MdK.js → StepEmploymentPersonalInfo-BXayuSjo.js} +19 -19
- package/chunk/{StepEmploymentPersonalInfo-BcjV9MdK.js.map → StepEmploymentPersonalInfo-BXayuSjo.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-1-PVW2Dx.js → StepFirstResponderPersonalInfo-CnpqcZ6K.js} +20 -20
- package/chunk/{StepFirstResponderPersonalInfo-1-PVW2Dx.js.map → StepFirstResponderPersonalInfo-CnpqcZ6K.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CZQ5HfH0.js → StepFirstResponderPersonalInfo-D08RKgGC.js} +20 -20
- package/chunk/{StepFirstResponderPersonalInfo-CZQ5HfH0.js.map → StepFirstResponderPersonalInfo-D08RKgGC.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D6r320Tt.js → StepGeneralIdentityPersonalInfoComponent-BHVOzQov.js} +17 -17
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D6r320Tt.js.map → StepGeneralIdentityPersonalInfoComponent-BHVOzQov.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-I0OZM_K7.js → StepGeneralIdentityPersonalInfoComponent-iB9RPF2_.js} +17 -17
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-I0OZM_K7.js.map → StepGeneralIdentityPersonalInfoComponent-iB9RPF2_.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Av8xP684.js → StepHybridIdentityPersonalInfoComponent-CVAXPh3s.js} +18 -18
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Av8xP684.js.map → StepHybridIdentityPersonalInfoComponent-CVAXPh3s.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Ctedzoyw.js → StepHybridIdentityPersonalInfoComponent-DK_ZxS6-.js} +18 -18
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Ctedzoyw.js.map → StepHybridIdentityPersonalInfoComponent-DK_ZxS6-.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CGLn5aLh.js → StepIDCheckLoop-3W0Tfy1u.js} +7 -7
- package/chunk/{StepIDCheckLoop-Bma6ihDq.js.map → StepIDCheckLoop-3W0Tfy1u.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-Bma6ihDq.js → StepIDCheckLoop-6O5eQw0s.js} +7 -7
- package/chunk/{StepIDCheckLoop-CGLn5aLh.js.map → StepIDCheckLoop-6O5eQw0s.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BLw0U1qh.js → StepIDCheckLoopOnfido-B2o3NRRr.js} +10 -10
- package/chunk/{StepIDCheckLoopOnfido-C7pA3V6P.js.map → StepIDCheckLoopOnfido-B2o3NRRr.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-C7pA3V6P.js → StepIDCheckLoopOnfido-D_aE30f9.js} +10 -10
- package/chunk/{StepIDCheckLoopOnfido-BLw0U1qh.js.map → StepIDCheckLoopOnfido-D_aE30f9.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-Dj2LJJDR.js → StepIDCheckLoopRegula-2HKWYUyh.js} +10 -10
- package/chunk/{StepIDCheckLoopRegula-Dj2LJJDR.js.map → StepIDCheckLoopRegula-2HKWYUyh.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DrdDgJmD.js → StepIDCheckLoopRegula-b48d9Hhn.js} +10 -10
- package/chunk/{StepIDCheckLoopRegula-DrdDgJmD.js.map → StepIDCheckLoopRegula-b48d9Hhn.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CzEEL1it.js → StepLicensedProfessionalPersonalInfo-BJmgWoag.js} +19 -19
- package/chunk/{StepLicensedProfessionalPersonalInfo-CzEEL1it.js.map → StepLicensedProfessionalPersonalInfo-BJmgWoag.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-DZQIrN6u.js → StepLicensedProfessionalPersonalInfo-CruEjuJj.js} +19 -19
- package/chunk/{StepLicensedProfessionalPersonalInfo-DZQIrN6u.js.map → StepLicensedProfessionalPersonalInfo-CruEjuJj.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BgN-BYGF.js → StepLowIncomePersonalInfo-0FOHhGf9.js} +23 -23
- package/chunk/{StepLowIncomePersonalInfo-BgN-BYGF.js.map → StepLowIncomePersonalInfo-0FOHhGf9.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-PUxIQA-r.js → StepLowIncomePersonalInfo-BKb4P5lN.js} +23 -23
- package/chunk/{StepLowIncomePersonalInfo-PUxIQA-r.js.map → StepLowIncomePersonalInfo-BKb4P5lN.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-D1uDXSfQ.js → StepMedicalProfessionalPersonalInfo-Bs0gO8NJ.js} +20 -20
- package/chunk/{StepMedicalProfessionalPersonalInfo-BxbxlBe6.js.map → StepMedicalProfessionalPersonalInfo-Bs0gO8NJ.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BxbxlBe6.js → StepMedicalProfessionalPersonalInfo-CowdpQuj.js} +20 -20
- package/chunk/{StepMedicalProfessionalPersonalInfo-D1uDXSfQ.js.map → StepMedicalProfessionalPersonalInfo-CowdpQuj.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-B6rp9pes.js → StepMemberPersonalInfo-Bnt7wsyH.js} +16 -16
- package/chunk/{StepMemberPersonalInfo-B6rp9pes.js.map → StepMemberPersonalInfo-Bnt7wsyH.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-vwOAY5wA.js → StepMemberPersonalInfo-CiL80q6c.js} +16 -16
- package/chunk/{StepMemberPersonalInfo-vwOAY5wA.js.map → StepMemberPersonalInfo-CiL80q6c.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BU0a7ler.js → StepMoverPersonalInfo-D21R_sUO.js} +14 -14
- package/chunk/{StepMoverPersonalInfo-BU0a7ler.js.map → StepMoverPersonalInfo-D21R_sUO.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DuicectH.js → StepMoverPersonalInfo-XmuOfnKR.js} +14 -14
- package/chunk/{StepMoverPersonalInfo-DuicectH.js.map → StepMoverPersonalInfo-XmuOfnKR.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BaKiTDty.js → StepOverrideComponent-CHzE5hUJ.js} +11 -11
- package/chunk/{StepOverrideComponent-Clon2hjy.js.map → StepOverrideComponent-CHzE5hUJ.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Clon2hjy.js → StepOverrideComponent-YQYKU-V2.js} +11 -11
- package/chunk/{StepOverrideComponent-BaKiTDty.js.map → StepOverrideComponent-YQYKU-V2.js.map} +1 -1
- package/chunk/{StepSMSLoop-C3N4Uf4q.js → StepSMSLoop-DB5lrBZX.js} +8 -8
- package/chunk/{StepSMSLoop-C3N4Uf4q.js.map → StepSMSLoop-DB5lrBZX.js.map} +1 -1
- package/chunk/{StepSMSLoop-KhKSdx_8.js → StepSMSLoop-pLXHY_2U.js} +8 -8
- package/chunk/{StepSMSLoop-KhKSdx_8.js.map → StepSMSLoop-pLXHY_2U.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +3 -3
- package/chunk/StepSSO-ZHByQpHa.js +3 -3
- package/chunk/{StepSocialSecurityNumber-CbZmSWzw.js → StepSocialSecurityNumber-BY7ipe7S.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-BFpLDlQ1.js.map → StepSocialSecurityNumber-BY7ipe7S.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-BFpLDlQ1.js → StepSocialSecurityNumber-C2Y6quIm.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-CbZmSWzw.js.map → StepSocialSecurityNumber-C2Y6quIm.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DlkOEIN0.js → StepStudentPersonalInfo-B65t9D4t.js} +19 -19
- package/chunk/{StepStudentPersonalInfo-DFeEoWMP.js.map → StepStudentPersonalInfo-B65t9D4t.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DFeEoWMP.js → StepStudentPersonalInfo-YoVTwKf3.js} +19 -19
- package/chunk/{StepStudentPersonalInfo-DlkOEIN0.js.map → StepStudentPersonalInfo-YoVTwKf3.js.map} +1 -1
- package/chunk/{StepSuccess-By2-IpCK.js → StepSuccess-CM-UwMfA.js} +12 -12
- package/chunk/{StepSuccess-CjDsDNLr.js.map → StepSuccess-CM-UwMfA.js.map} +1 -1
- package/chunk/{StepSuccess-CjDsDNLr.js → StepSuccess-b0k6FkOq.js} +12 -12
- package/chunk/{StepSuccess-By2-IpCK.js.map → StepSuccess-b0k6FkOq.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-3UMwse2G.js → StepTeacherPersonalInfo-D2EsWQPX.js} +17 -17
- package/chunk/{StepTeacherPersonalInfo-2Epz99jU.js.map → StepTeacherPersonalInfo-D2EsWQPX.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-2Epz99jU.js → StepTeacherPersonalInfo-Dr3urF4Z.js} +17 -17
- package/chunk/{StepTeacherPersonalInfo-3UMwse2G.js.map → StepTeacherPersonalInfo-Dr3urF4Z.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +3 -3
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +3 -3
- package/chunk/{TeacherSchoolComponent-BdtRV7di.js → TeacherSchoolComponent-C34aKEut.js} +9 -9
- package/chunk/{TeacherSchoolComponent-BdtRV7di.js.map → TeacherSchoolComponent-C34aKEut.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-D0EO5eJm.js → TeacherSchoolComponent-CXqvQE4Z.js} +9 -9
- package/chunk/{TeacherSchoolComponent-D0EO5eJm.js.map → TeacherSchoolComponent-CXqvQE4Z.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-Bn0_IFij.js → TestingRouteOverrides-EggQSvgh.js} +5 -5
- package/chunk/{TestingRouteOverrides-CAICO9Vh.js.map → TestingRouteOverrides-EggQSvgh.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-CAICO9Vh.js → TestingRouteOverrides-ipf_F-iY.js} +5 -5
- package/chunk/{TestingRouteOverrides-Bn0_IFij.js.map → TestingRouteOverrides-ipf_F-iY.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
- package/chunk/ar-D5CO913q.js +3 -3
- package/chunk/bg-1mhA5kYF.js +3 -3
- package/chunk/bn-IN-CpDqyRb_.js +3 -3
- package/chunk/clsx-CB5rauS5.js +3 -3
- package/chunk/{countryUtils-BdL8HE5Y.js → countryUtils-BBN8jYxF.js} +4 -4
- package/chunk/{countryUtils-BdL8HE5Y.js.map → countryUtils-BBN8jYxF.js.map} +1 -1
- package/chunk/{countryUtils-DQPzApKG.js → countryUtils-n_5QoHGV.js} +4 -4
- package/chunk/{countryUtils-DQPzApKG.js.map → countryUtils-n_5QoHGV.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +3 -3
- package/chunk/da-DwrVoxto.js +3 -3
- package/chunk/de-IWGZLhgY.js +3 -3
- package/chunk/{downshift.esm-aysyel0z.js → downshift.esm-C2REEHoE.js} +6 -6
- package/chunk/{downshift.esm-aysyel0z.js.map → downshift.esm-C2REEHoE.js.map} +1 -1
- package/chunk/{downshift.esm-3VTU_cx2.js → downshift.esm-rBiHvWpQ.js} +6 -6
- package/chunk/{downshift.esm-3VTU_cx2.js.map → downshift.esm-rBiHvWpQ.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +3 -3
- package/chunk/{empties-Cqb2xU53.js → empties-DHI3R7ys.js} +4 -4
- package/chunk/{empties-Cqb2xU53.js.map → empties-DHI3R7ys.js.map} +1 -1
- package/chunk/{empties-BVpS0Pt6.js → empties-Dhc64eA5.js} +4 -4
- package/chunk/{empties-BVpS0Pt6.js.map → empties-Dhc64eA5.js.map} +1 -1
- package/chunk/{en-GB-CNQ8Ww2j.js → en-GB-BBkjjtqq.js} +4 -4
- package/chunk/{en-GB-CNQ8Ww2j.js.map → en-GB-BBkjjtqq.js.map} +1 -1
- package/chunk/es-ES-DWimqEZ_.js +3 -3
- package/chunk/es-qhC-seq5.js +3 -3
- package/chunk/et-yF9G-Mym.js +3 -3
- package/chunk/eventEmitter-CSG6jR7V.js +3 -3
- package/chunk/fa-BcdSf7og.js +3 -3
- package/chunk/fi-D-IP_KHm.js +3 -3
- package/chunk/fr-BmUuYxk0.js +3 -3
- package/chunk/fr-CA-DVQ4xmzZ.js +3 -3
- package/chunk/ga-DuZycND3.js +3 -3
- package/chunk/hi-IN-l6Rn5Ewm.js +3 -3
- package/chunk/{hooks-BdAc8QeA.js → hooks-BlwolTIT.js} +6 -6
- package/chunk/{hooks-BdAc8QeA.js.map → hooks-BlwolTIT.js.map} +1 -1
- package/chunk/{hooks-D34_H_RU.js → hooks-gC9DtNY1.js} +6 -6
- package/chunk/{hooks-D34_H_RU.js.map → hooks-gC9DtNY1.js.map} +1 -1
- package/chunk/hr-BtqyDzDB.js +3 -3
- package/chunk/hu-C6syKJfb.js +3 -3
- package/chunk/id-GgI-Z2a5.js +3 -3
- package/chunk/{intl-ylK_1hh_.js → intl-CvSmE54g.js} +4 -4
- package/chunk/{intl-ylK_1hh_.js.map → intl-CvSmE54g.js.map} +1 -1
- package/chunk/is-CvmKEON9.js +3 -3
- package/chunk/it-CnmveGgC.js +3 -3
- package/chunk/iw-DFUYHkxF.js +3 -3
- package/chunk/ja-CjVb2tWW.js +3 -3
- package/chunk/{jsx-runtime-ckyAGLc5.js → jsx-runtime-CyXcV_93.js} +4 -4
- package/chunk/{jsx-runtime-BxMVlYXm.js.map → jsx-runtime-CyXcV_93.js.map} +1 -1
- package/chunk/{jsx-runtime-BxMVlYXm.js → jsx-runtime-JSlXFmKD.js} +4 -4
- package/chunk/{jsx-runtime-ckyAGLc5.js.map → jsx-runtime-JSlXFmKD.js.map} +1 -1
- package/chunk/kk-Dvz4nK6K.js +3 -3
- package/chunk/ko-DzOqBMGC.js +3 -3
- package/chunk/lo-C2WPq55d.js +3 -3
- package/chunk/lt-BSDYvjTF.js +3 -3
- package/chunk/lv-CefDPT-M.js +3 -3
- package/chunk/mockProgramTheme-CBqgtg7A.js +3 -3
- package/chunk/{mocks-D6W4OBdg.js → mocks-Dpf6dNc6.js} +4 -4
- package/chunk/{mocks-AiIRO45v.js.map → mocks-Dpf6dNc6.js.map} +1 -1
- package/chunk/{mocks-AiIRO45v.js → mocks-DrV8NINc.js} +4 -4
- package/chunk/{mocks-D6W4OBdg.js.map → mocks-DrV8NINc.js.map} +1 -1
- package/chunk/ms-BjestZxy.js +3 -3
- package/chunk/nl-B1FyUfCT.js +3 -3
- package/chunk/nl-BE-CbeAd3nq.js +3 -3
- package/chunk/no-Dr633Ddi.js +3 -3
- package/chunk/{options-nvc9DFQu.js → options-CRzdSTAR.js} +4 -4
- package/chunk/{options-nvc9DFQu.js.map → options-CRzdSTAR.js.map} +1 -1
- package/chunk/pl-UYTjMIq_.js +3 -3
- package/chunk/{programThemeGetters-BME3fJZI.js → programThemeGetters-DYWYXv-a.js} +4 -4
- package/chunk/{programThemeGetters-BiTqOEZX.js.map → programThemeGetters-DYWYXv-a.js.map} +1 -1
- package/chunk/{programThemeGetters-BiTqOEZX.js → programThemeGetters-VBnkSxuj.js} +4 -4
- package/chunk/{programThemeGetters-BME3fJZI.js.map → programThemeGetters-VBnkSxuj.js.map} +1 -1
- package/chunk/pt-BR-C8SYMT-J.js +3 -3
- package/chunk/pt-uH-M3GdN.js +3 -3
- package/chunk/refs-Mq0rtW9K.js +3 -3
- package/chunk/ro-CAOSXZ7h.js +3 -3
- package/chunk/ru-iwYoEydL.js +3 -3
- package/chunk/runtimeTypes-B2AGNJMT.js +3 -3
- package/chunk/sk-DYYNV3zw.js +3 -3
- package/chunk/sl-D_-eeM5N.js +3 -3
- package/chunk/sr-BTi9_anL.js +3 -3
- package/chunk/{stepComponentHelpers-CLwMg193.js → stepComponentHelpers-BFyXhiWa.js} +7 -7
- package/chunk/{stepComponentHelpers-CLwMg193.js.map → stepComponentHelpers-BFyXhiWa.js.map} +1 -1
- package/chunk/{stepComponentHelpers-CtzbPjrF.js → stepComponentHelpers-CcEMtmwt.js} +7 -7
- package/chunk/{stepComponentHelpers-CtzbPjrF.js.map → stepComponentHelpers-CcEMtmwt.js.map} +1 -1
- package/chunk/strings-DWLVdUcm.js +3 -3
- package/chunk/sv-DRwY4shG.js +3 -3
- package/chunk/sw-Bvj2mYmM.js +3 -3
- package/chunk/ta-CmtaYoNe.js +3 -3
- package/chunk/th-12r2yKkJ.js +3 -3
- package/chunk/tl-BGNfO7md.js +3 -3
- package/chunk/tr-DH2ZSJhs.js +3 -3
- package/chunk/uk-CELBZlTd.js +3 -3
- package/chunk/ur-MR8DTbmd.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-CN5V84JA.js → useCollectFieldsEndpoint-DuJm-xm-.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-CN5V84JA.js.map → useCollectFieldsEndpoint-DuJm-xm-.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-CY0rNris.js → useCollectFieldsEndpoint-q3qlY6Oq.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-CY0rNris.js.map → useCollectFieldsEndpoint-q3qlY6Oq.js.map} +1 -1
- package/chunk/{useMetrics-BNTxf5pc.js → useMetrics-C3KNudJk.js} +6 -6
- package/chunk/{useMetrics-BNTxf5pc.js.map → useMetrics-C3KNudJk.js.map} +1 -1
- package/chunk/{useMetrics-C4u5pvwu.js → useMetrics-Cjo0Vkjx.js} +6 -6
- package/chunk/{useMetrics-C4u5pvwu.js.map → useMetrics-Cjo0Vkjx.js.map} +1 -1
- package/chunk/vi-DtZ-SqD5.js +3 -3
- package/chunk/zh-DjyVyYac.js +3 -3
- package/chunk/zh-HK-CN1HarHq.js +3 -3
- package/chunk/zu-DPhgIh1z.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 +43 -43
|
@@ -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.288.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.288.0-alpha.3
|
|
8
|
+
* BUILD_TIMESTAMP: 1789689877428
|
|
9
|
+
* BUILD_DATE: Fri Sep 18 2026 00:04:37 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 9a5a30040ec07861e609bafce1e2c77d4044026f
|
|
11
11
|
*/
|
|
12
|
-
import { p as e, s as t } from "./intl-
|
|
12
|
+
import { p as e, s as t } from "./intl-CvSmE54g.js";
|
|
13
13
|
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { a as r, n as i, t as a } from "./jsx-runtime-
|
|
15
|
-
import { p as o } from "./FormFooterComponent-
|
|
14
|
+
import { a as r, n as i, t as a } from "./jsx-runtime-JSlXFmKD.js";
|
|
15
|
+
import { p as o } from "./FormFooterComponent-limUUrwN.js";
|
|
16
16
|
import { t as s } from "../_mysheerid-preview.js";
|
|
17
|
-
import { t as c } from "./useCollectFieldsEndpoint-
|
|
18
|
-
import { _ as l, c as u, g as d, i as f, o as p, s as m } from "./stepComponentHelpers-
|
|
19
|
-
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-
|
|
20
|
-
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-
|
|
21
|
-
import { t as C } from "./BirthDateComponent-
|
|
22
|
-
import { t as w } from "./PostalCodeComponent-
|
|
23
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
24
|
-
import { t as E } from "./ExtraMessage-
|
|
25
|
-
import { t as D } from "./ChangeLocaleComponent-
|
|
26
|
-
import { t as O } from "./PersonalInfoStepWrapper-
|
|
27
|
-
import { t as k } from "./countryUtils-
|
|
28
|
-
import { t as A } from "./StatusComponent-
|
|
29
|
-
import { t as j } from "./LicensedProfessionalOrganizationComponent-
|
|
17
|
+
import { t as c } from "./useCollectFieldsEndpoint-q3qlY6Oq.js";
|
|
18
|
+
import { _ as l, c as u, g as d, i as f, o as p, s as m } from "./stepComponentHelpers-CcEMtmwt.js";
|
|
19
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-u9dnBrBj.js";
|
|
20
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-Bb_22loc.js";
|
|
21
|
+
import { t as C } from "./BirthDateComponent-C9-U9EPF.js";
|
|
22
|
+
import { t as w } from "./PostalCodeComponent-C437q52r.js";
|
|
23
|
+
import { t as T } from "./CountryComponentWrapper-gMZvbqg9.js";
|
|
24
|
+
import { t as E } from "./ExtraMessage-CT3C7YMI.js";
|
|
25
|
+
import { t as D } from "./ChangeLocaleComponent-DMKdf7SW.js";
|
|
26
|
+
import { t as O } from "./PersonalInfoStepWrapper-Cw7zaz3h.js";
|
|
27
|
+
import { t as k } from "./countryUtils-BBN8jYxF.js";
|
|
28
|
+
import { t as A } from "./StatusComponent-6KXI7mNH.js";
|
|
29
|
+
import { t as j } from "./LicensedProfessionalOrganizationComponent-BC1IvvNy.js";
|
|
30
30
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
31
31
|
var M = a(), N = r(({ intl: r, verificationService: a }) => {
|
|
32
32
|
let N = a.viewModel, { fieldValidationErrors: P } = a, F = a.verificationResponse, I = o(F), L = N.localeChoice.value, R = t(), { availableStatuses: z } = c({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-CzEEL1it.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensed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AAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-BJmgWoag.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;aA+Pa,IAAgD,GAhNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,E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AIA"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.288.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
3
|
+
* VERSION: 2.288.0-alpha.3
|
|
4
|
+
* BUILD_TIMESTAMP: 1789689873334
|
|
5
|
+
* BUILD_DATE: Fri Sep 18 2026 00:04:33 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 9a5a30040ec07861e609bafce1e2c77d4044026f
|
|
7
7
|
*/
|
|
8
|
-
import { c as e, n as t } from "./options-
|
|
9
|
-
import { a as n, n as r, t as i } from "./jsx-runtime-
|
|
8
|
+
import { c as e, n as t } from "./options-CRzdSTAR.js";
|
|
9
|
+
import { a as n, n as r, t as i } from "./jsx-runtime-CyXcV_93.js";
|
|
10
10
|
import { b as a } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as o } from "./FormFooterComponent-
|
|
11
|
+
import { h as o } from "./FormFooterComponent-CuiVrDVn.js";
|
|
12
12
|
import { n as s } from "../sheerid.js";
|
|
13
|
-
import { t as c } from "./useCollectFieldsEndpoint-
|
|
14
|
-
import { _ as l, c as u, g as d, i as f, o as p, s as m } from "./stepComponentHelpers-
|
|
15
|
-
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-
|
|
16
|
-
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-
|
|
17
|
-
import { t as C } from "./BirthDateComponent-
|
|
18
|
-
import { t as w } from "./PostalCodeComponent-
|
|
19
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
20
|
-
import { t as E } from "./ExtraMessage-
|
|
21
|
-
import { t as D } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as O } from "./PersonalInfoStepWrapper-
|
|
23
|
-
import { t as k } from "./countryUtils-
|
|
24
|
-
import { t as A } from "./StatusComponent-
|
|
25
|
-
import { t as j } from "./LicensedProfessionalOrganizationComponent-
|
|
13
|
+
import { t as c } from "./useCollectFieldsEndpoint-DuJm-xm-.js";
|
|
14
|
+
import { _ as l, c as u, g as d, i as f, o as p, s as m } from "./stepComponentHelpers-BFyXhiWa.js";
|
|
15
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-BQQYbjeG.js";
|
|
16
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-CgINxYQc.js";
|
|
17
|
+
import { t as C } from "./BirthDateComponent-ByCDQd1d.js";
|
|
18
|
+
import { t as w } from "./PostalCodeComponent-B9qhZKs8.js";
|
|
19
|
+
import { t as T } from "./CountryComponentWrapper-Dfl1dpwF.js";
|
|
20
|
+
import { t as E } from "./ExtraMessage-BKgZ16Xe.js";
|
|
21
|
+
import { t as D } from "./ChangeLocaleComponent-Dunde8x7.js";
|
|
22
|
+
import { t as O } from "./PersonalInfoStepWrapper-BlY503Ml.js";
|
|
23
|
+
import { t as k } from "./countryUtils-n_5QoHGV.js";
|
|
24
|
+
import { t as A } from "./StatusComponent-CDaVrPYq.js";
|
|
25
|
+
import { t as j } from "./LicensedProfessionalOrganizationComponent-BBQiJA-a.js";
|
|
26
26
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
27
27
|
var M = i(), N = n(({ intl: n, verificationService: i }) => {
|
|
28
28
|
let N = i.viewModel, { fieldValidationErrors: P } = i, F = i.verificationResponse, I = o(F), L = N.localeChoice.value, R = t(), { availableStatuses: z } = c({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-DZQIrN6u.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;aA+Pa,IAAgD,GAhNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,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AU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-CruEjuJj.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type LicensedProfessionalPersonalInfoResponse,\n type LicensedProfessionalPersonalInfoViewModel,\n type Organization,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent as LicensedProfessionalStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepLicensedProfessionalPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: any;\n}\n\nconst StepLicensedProfessionalPersonalInfo = ({\n intl,\n verificationService,\n}: StepLicensedProfessionalPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as LicensedProfessionalPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const updateLicensedProfessionalViewModel = (\n key: keyof LicensedProfessionalPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: LicensedProfessionalPersonalInfoViewModel = produce(\n viewModel,\n (draft: LicensedProfessionalPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"licensed-professional\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <LicensedProfessionalStatusComponent\n segmentId=\"licensed-professional\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n options={getStatusOptions(intl, dynamicStatuses ?? verificationResponse.availableStatuses)}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n const updatedStatuses = status ? [status.value as string] : [];\n updateLicensedProfessionalViewModel(\"statuses\", updatedStatuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={\n (verificationService.viewModel as LicensedProfessionalPersonalInfoViewModel).organization\n }\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n explanation={\n <FormattedHTMLMessage\n id=\"postalCodeExplanation\"\n defaultMessage=\"Use the location on file with your licensing body\"\n />\n }\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLicensedProfessionalViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLicensedProfessionalPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Licensed Professional Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLicensedProfessionalPersonalInfoComponent = injectIntl(\n StepLicensedProfessionalPersonalInfo,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;aA+Pa,IAAgD,GAhNf,EAC5C,SACA,6BACwD;CACxD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAuD,EAC3D,IACC,MAAqD;GACpD,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO;KACL,OAAO,EAAU,WAAW,EAAU,SAAS,KAAK;KACpD,OAAO,EAAU,WAAW,EAAe,GAAM,EAAU,SAAS,EAAE,I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Aa;KAKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
package/chunk/{StepLowIncomePersonalInfo-BgN-BYGF.js → StepLowIncomePersonalInfo-0FOHhGf9.js}
RENAMED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.288.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
3
|
+
* VERSION: 2.288.0-alpha.3
|
|
4
|
+
* BUILD_TIMESTAMP: 1789689873334
|
|
5
|
+
* BUILD_DATE: Fri Sep 18 2026 00:04:33 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 9a5a30040ec07861e609bafce1e2c77d4044026f
|
|
7
7
|
*/
|
|
8
|
-
import { Ot as e, c as t, n } from "./options-
|
|
9
|
-
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-
|
|
8
|
+
import { Ot as e, c as t, n } from "./options-CRzdSTAR.js";
|
|
9
|
+
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-CyXcV_93.js";
|
|
10
10
|
import { S as s, b as c } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { n as l } from "./empties-
|
|
12
|
-
import { h as u } from "./FormFooterComponent-
|
|
13
|
-
import { f as d } from "./programThemeGetters-
|
|
11
|
+
import { n as l } from "./empties-DHI3R7ys.js";
|
|
12
|
+
import { h as u } from "./FormFooterComponent-CuiVrDVn.js";
|
|
13
|
+
import { f as d } from "./programThemeGetters-VBnkSxuj.js";
|
|
14
14
|
import { n as f } from "../sheerid.js";
|
|
15
|
-
import { t as p } from "./useCollectFieldsEndpoint-
|
|
16
|
-
import { _ as m, c as h, g, i as _, l as v, n as y, o as b, s as x } from "./stepComponentHelpers-
|
|
17
|
-
import { a as S, i as C, n as w, o as T, s as E, t as D } from "./CaptchaComponent-
|
|
18
|
-
import { n as O, t as k } from "./PersonalInfoStepSubmitButton-
|
|
19
|
-
import { t as A } from "./BirthDateComponent-
|
|
20
|
-
import { t as j } from "./PostalCodeComponent-
|
|
21
|
-
import { t as M } from "./CountryComponentWrapper-
|
|
22
|
-
import { t as N } from "./City-
|
|
23
|
-
import { t as P } from "./AddressComponent-
|
|
24
|
-
import { t as ee } from "./ChangeLocaleComponent-
|
|
25
|
-
import { t as F } from "./PersonalInfoStepWrapper-
|
|
26
|
-
import { t as I } from "./countryUtils-
|
|
27
|
-
import { t as L } from "./StateSelectComponent-
|
|
28
|
-
import { n as R, t as z } from "./LowIncomeOrganizationComponent-
|
|
29
|
-
import { t as B } from "./StatusComponent-
|
|
15
|
+
import { t as p } from "./useCollectFieldsEndpoint-DuJm-xm-.js";
|
|
16
|
+
import { _ as m, c as h, g, i as _, l as v, n as y, o as b, s as x } from "./stepComponentHelpers-BFyXhiWa.js";
|
|
17
|
+
import { a as S, i as C, n as w, o as T, s as E, t as D } from "./CaptchaComponent-BQQYbjeG.js";
|
|
18
|
+
import { n as O, t as k } from "./PersonalInfoStepSubmitButton-CgINxYQc.js";
|
|
19
|
+
import { t as A } from "./BirthDateComponent-ByCDQd1d.js";
|
|
20
|
+
import { t as j } from "./PostalCodeComponent-B9qhZKs8.js";
|
|
21
|
+
import { t as M } from "./CountryComponentWrapper-Dfl1dpwF.js";
|
|
22
|
+
import { t as N } from "./City-C2VskOtZ.js";
|
|
23
|
+
import { t as P } from "./AddressComponent-BqWXWBm6.js";
|
|
24
|
+
import { t as ee } from "./ChangeLocaleComponent-Dunde8x7.js";
|
|
25
|
+
import { t as F } from "./PersonalInfoStepWrapper-BlY503Ml.js";
|
|
26
|
+
import { t as I } from "./countryUtils-n_5QoHGV.js";
|
|
27
|
+
import { t as L } from "./StateSelectComponent-b8cGNpMO.js";
|
|
28
|
+
import { n as R, t as z } from "./LowIncomeOrganizationComponent-B-2JkfaQ.js";
|
|
29
|
+
import { t as B } from "./StatusComponent-CDaVrPYq.js";
|
|
30
30
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
31
31
|
var V = /* @__PURE__ */ e(i(), 1), H = o(), U = r(({ intl: e, verificationService: r }) => {
|
|
32
32
|
let { viewModel: i } = r, o = n();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-BgN-BYGF.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;4CA+Va,IAAqC,GAxRf,EACjC,SACA,6BAC6C;CAC7C,IAAM,EAAE,iBA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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-0FOHhGf9.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;4CA+Va,IAAqC,GAxRf,EACjC,SACA,6BAC6C;CAC7C,IAAM,EAAE,iBAAc,GAChB,IA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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-PUxIQA-r.js → StepLowIncomePersonalInfo-BKb4P5lN.js}
RENAMED
|
@@ -4,33 +4,33 @@
|
|
|
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.288.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.288.0-alpha.3
|
|
8
|
+
* BUILD_TIMESTAMP: 1789689877428
|
|
9
|
+
* BUILD_DATE: Fri Sep 18 2026 00:04:37 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 9a5a30040ec07861e609bafce1e2c77d4044026f
|
|
11
11
|
*/
|
|
12
|
-
import { Ot as e, p as t, s as n } from "./intl-
|
|
12
|
+
import { Ot as e, p as t, s as n } from "./intl-CvSmE54g.js";
|
|
13
13
|
import { S as r, b as i } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-
|
|
15
|
-
import { n as l } from "./empties-
|
|
16
|
-
import { p as u } from "./FormFooterComponent-
|
|
17
|
-
import { f as d } from "./programThemeGetters-
|
|
14
|
+
import { a, c as o, n as s, t as c } from "./jsx-runtime-JSlXFmKD.js";
|
|
15
|
+
import { n as l } from "./empties-Dhc64eA5.js";
|
|
16
|
+
import { p as u } from "./FormFooterComponent-limUUrwN.js";
|
|
17
|
+
import { f as d } from "./programThemeGetters-DYWYXv-a.js";
|
|
18
18
|
import { t as f } from "../_mysheerid-preview.js";
|
|
19
|
-
import { t as p } from "./useCollectFieldsEndpoint-
|
|
20
|
-
import { _ as m, c as h, g, i as _, l as v, n as y, o as b, s as x } from "./stepComponentHelpers-
|
|
21
|
-
import { a as S, i as C, n as w, o as T, s as E, t as D } from "./CaptchaComponent-
|
|
22
|
-
import { n as O, t as k } from "./PersonalInfoStepSubmitButton-
|
|
23
|
-
import { t as A } from "./BirthDateComponent-
|
|
24
|
-
import { t as j } from "./PostalCodeComponent-
|
|
25
|
-
import { t as M } from "./CountryComponentWrapper-
|
|
26
|
-
import { t as N } from "./City-
|
|
27
|
-
import { t as P } from "./AddressComponent-
|
|
28
|
-
import { t as F } from "./ChangeLocaleComponent-
|
|
29
|
-
import { t as ee } from "./PersonalInfoStepWrapper-
|
|
30
|
-
import { t as I } from "./countryUtils-
|
|
31
|
-
import { t as L } from "./StateSelectComponent-
|
|
32
|
-
import { n as R, t as z } from "./LowIncomeOrganizationComponent-
|
|
33
|
-
import { t as B } from "./StatusComponent-
|
|
19
|
+
import { t as p } from "./useCollectFieldsEndpoint-q3qlY6Oq.js";
|
|
20
|
+
import { _ as m, c as h, g, i as _, l as v, n as y, o as b, s as x } from "./stepComponentHelpers-CcEMtmwt.js";
|
|
21
|
+
import { a as S, i as C, n as w, o as T, s as E, t as D } from "./CaptchaComponent-u9dnBrBj.js";
|
|
22
|
+
import { n as O, t as k } from "./PersonalInfoStepSubmitButton-Bb_22loc.js";
|
|
23
|
+
import { t as A } from "./BirthDateComponent-C9-U9EPF.js";
|
|
24
|
+
import { t as j } from "./PostalCodeComponent-C437q52r.js";
|
|
25
|
+
import { t as M } from "./CountryComponentWrapper-gMZvbqg9.js";
|
|
26
|
+
import { t as N } from "./City-DcuVkqGh.js";
|
|
27
|
+
import { t as P } from "./AddressComponent-Bf_qitE6.js";
|
|
28
|
+
import { t as F } from "./ChangeLocaleComponent-DMKdf7SW.js";
|
|
29
|
+
import { t as ee } from "./PersonalInfoStepWrapper-Cw7zaz3h.js";
|
|
30
|
+
import { t as I } from "./countryUtils-BBN8jYxF.js";
|
|
31
|
+
import { t as L } from "./StateSelectComponent-DF0kdhS5.js";
|
|
32
|
+
import { n as R, t as z } from "./LowIncomeOrganizationComponent-BRDMuK02.js";
|
|
33
|
+
import { t as B } from "./StatusComponent-6KXI7mNH.js";
|
|
34
34
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
35
35
|
var V = /* @__PURE__ */ e(o(), 1), H = c(), U = a(({ intl: e, verificationService: a }) => {
|
|
36
36
|
let { viewModel: o } = a, c = n();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-PUxIQA-r.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInf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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"}
|
|
1
|
+
{"version":3,"file":"StepLowIncomePersonalInfo-BKb4P5lN.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInfoComponent = injectIntl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