@sheerid/jslib-nightly 2.288.0-alpha.0 → 2.288.0-alpha.2
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 +901 -901
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-Cs8TT65p.js → AddressComponent-BYiCmiVL.js} +7 -7
- package/chunk/{AddressComponent-B8i-mM9O.js.map → AddressComponent-BYiCmiVL.js.map} +1 -1
- package/chunk/{AddressComponent-B8i-mM9O.js → AddressComponent-jl9JaIsf.js} +7 -7
- package/chunk/{AddressComponent-Cs8TT65p.js.map → AddressComponent-jl9JaIsf.js.map} +1 -1
- package/chunk/{AnnouncingHeader-B0Ku-xl_.js → AnnouncingHeader-BY6rZtgn.js} +5 -5
- package/chunk/{AnnouncingHeader-B0Ku-xl_.js.map → AnnouncingHeader-BY6rZtgn.js.map} +1 -1
- package/chunk/{AnnouncingHeader-CXTQdbKG.js → AnnouncingHeader-LaMkmmM9.js} +5 -5
- package/chunk/{AnnouncingHeader-CXTQdbKG.js.map → AnnouncingHeader-LaMkmmM9.js.map} +1 -1
- package/chunk/{ApiUrls-cUIvXGYn.js → ApiUrls-BNFZcClH.js} +5 -5
- package/chunk/{ApiUrls-cUIvXGYn.js.map → ApiUrls-BNFZcClH.js.map} +1 -1
- package/chunk/{ApiUrls-Dv421KUV.js → ApiUrls-B__fmUI_.js} +5 -5
- package/chunk/{ApiUrls-Dv421KUV.js.map → ApiUrls-B__fmUI_.js.map} +1 -1
- package/chunk/{BirthDateComponent-BpPpZqER.js → BirthDateComponent-CzrH33Zg.js} +7 -7
- package/chunk/{BirthDateComponent-BpPpZqER.js.map → BirthDateComponent-CzrH33Zg.js.map} +1 -1
- package/chunk/{BirthDateComponent-Dfep6X0p.js → BirthDateComponent-S_RZIsMk.js} +7 -7
- package/chunk/{BirthDateComponent-Dfep6X0p.js.map → BirthDateComponent-S_RZIsMk.js.map} +1 -1
- package/chunk/{CaptchaComponent-B-WI7jRS.js → CaptchaComponent-C1jCPKW_.js} +14 -14
- package/chunk/{CaptchaComponent-B-WI7jRS.js.map → CaptchaComponent-C1jCPKW_.js.map} +1 -1
- package/chunk/{CaptchaComponent-DdopSwIf.js → CaptchaComponent-SDwoAGuD.js} +14 -14
- package/chunk/{CaptchaComponent-DdopSwIf.js.map → CaptchaComponent-SDwoAGuD.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BdLUGOwF.js → ChangeLocaleComponent-CrGBsLAT.js} +8 -8
- package/chunk/{ChangeLocaleComponent-BdLUGOwF.js.map → ChangeLocaleComponent-CrGBsLAT.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-ywpSO4ko.js → ChangeLocaleComponent-bP_E0o2D.js} +8 -8
- package/chunk/{ChangeLocaleComponent-ywpSO4ko.js.map → ChangeLocaleComponent-bP_E0o2D.js.map} +1 -1
- package/chunk/{City-CmnF7Nqp.js → City-CDs92PJs.js} +7 -7
- package/chunk/{City-CcR2J4iX.js.map → City-CDs92PJs.js.map} +1 -1
- package/chunk/{City-CcR2J4iX.js → City-gLjD_QXD.js} +7 -7
- package/chunk/{City-CmnF7Nqp.js.map → City-gLjD_QXD.js.map} +1 -1
- package/chunk/{CollegeNameComponent-C0uoEUkG.js → CollegeNameComponent-DiMyUNHs.js} +9 -9
- package/chunk/{CollegeNameComponent-B5IfUGdn.js.map → CollegeNameComponent-DiMyUNHs.js.map} +1 -1
- package/chunk/{CollegeNameComponent-B5IfUGdn.js → CollegeNameComponent-NU_4lsMr.js} +9 -9
- package/chunk/{CollegeNameComponent-C0uoEUkG.js.map → CollegeNameComponent-NU_4lsMr.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-BAOwMLHJ.js → CopyToClipboardComponent-B3-5Ju65.js} +5 -5
- package/chunk/{CopyToClipboardComponent-BAOwMLHJ.js.map → CopyToClipboardComponent-B3-5Ju65.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-BejK3fLR.js → CopyToClipboardComponent-Blt2TEku.js} +5 -5
- package/chunk/{CopyToClipboardComponent-BejK3fLR.js.map → CopyToClipboardComponent-Blt2TEku.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-DsDDNeDp.js → CountryComponentWrapper-CSlqoIHA.js} +11 -11
- package/chunk/{CountryComponentWrapper-CaT9sZbP.js.map → CountryComponentWrapper-CSlqoIHA.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CaT9sZbP.js → CountryComponentWrapper-CgsJDdn7.js} +11 -11
- package/chunk/{CountryComponentWrapper-DsDDNeDp.js.map → CountryComponentWrapper-CgsJDdn7.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DU0UJgfl.js → DischargeDateComponent-CK7GlxLf.js} +10 -10
- package/chunk/{DischargeDateComponent-BROlASFq.js.map → DischargeDateComponent-CK7GlxLf.js.map} +1 -1
- package/chunk/{DischargeDateComponent-BROlASFq.js → DischargeDateComponent-DgMx2R9Z.js} +10 -10
- package/chunk/{DischargeDateComponent-DU0UJgfl.js.map → DischargeDateComponent-DgMx2R9Z.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-n7r9CqLB.js → DriverLicenseNumberComponent-DVGDsdng.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-B95v-uF3.js.map → DriverLicenseNumberComponent-DVGDsdng.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-B95v-uF3.js → DriverLicenseNumberComponent-Dw7B8Z_T.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-n7r9CqLB.js.map → DriverLicenseNumberComponent-Dw7B8Z_T.js.map} +1 -1
- package/chunk/{EmailLoopPending-CN9Fld-c.js → EmailLoopPending-CtfDxES3.js} +10 -10
- package/chunk/{EmailLoopPending-B9S9mlBg.js.map → EmailLoopPending-CtfDxES3.js.map} +1 -1
- package/chunk/{EmailLoopPending-B9S9mlBg.js → EmailLoopPending-DfQWXrgo.js} +10 -10
- package/chunk/{EmailLoopPending-CN9Fld-c.js.map → EmailLoopPending-DfQWXrgo.js.map} +1 -1
- package/chunk/{ExtraMessage-B7_7MngU.js → ExtraMessage-C4FhNUn9.js} +6 -6
- package/chunk/{ExtraMessage-B7_7MngU.js.map → ExtraMessage-C4FhNUn9.js.map} +1 -1
- package/chunk/{ExtraMessage-DEQFDOQP.js → ExtraMessage-CwJ-dMVo.js} +6 -6
- package/chunk/{ExtraMessage-DEQFDOQP.js.map → ExtraMessage-CwJ-dMVo.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BWEVVPq8.js → FirstResponderOrganizationComponent-CvfYzERW.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-3N5Qo_t0.js.map → FirstResponderOrganizationComponent-CvfYzERW.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-3N5Qo_t0.js → FirstResponderOrganizationComponent-kkbnKhhM.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-BWEVVPq8.js.map → FirstResponderOrganizationComponent-kkbnKhhM.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-JRFAReSQ.js → FormFieldInputSelect-56Qcyesp.js} +6 -6
- package/chunk/{FormFieldInputSelect-BPxNvojt.js.map → FormFieldInputSelect-56Qcyesp.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BPxNvojt.js → FormFieldInputSelect-C4QhrekJ.js} +6 -6
- package/chunk/{FormFieldInputSelect-JRFAReSQ.js.map → FormFieldInputSelect-C4QhrekJ.js.map} +1 -1
- package/chunk/{FormFieldLayout-NkmhFC9B.js → FormFieldLayout-DXt0ToGW.js} +5 -5
- package/chunk/{FormFieldLayout-DEKIQK2R.js.map → FormFieldLayout-DXt0ToGW.js.map} +1 -1
- package/chunk/{FormFieldLayout-DEKIQK2R.js → FormFieldLayout-DqhnoHCo.js} +5 -5
- package/chunk/{FormFieldLayout-NkmhFC9B.js.map → FormFieldLayout-DqhnoHCo.js.map} +1 -1
- package/chunk/{FormFieldText-Bn9WIKiI.js → FormFieldText-DzErOnhk.js} +6 -6
- package/chunk/{FormFieldText-Bn9WIKiI.js.map → FormFieldText-DzErOnhk.js.map} +1 -1
- package/chunk/{FormFieldText-Py7x4EZ6.js → FormFieldText-VGmZG0Lb.js} +6 -6
- package/chunk/{FormFieldText-Py7x4EZ6.js.map → FormFieldText-VGmZG0Lb.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-ChzSnCRZ.js → FormFieldTypeahead-C-d-4kDc.js} +12 -12
- package/chunk/{FormFieldTypeahead-ChzSnCRZ.js.map → FormFieldTypeahead-C-d-4kDc.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-C1YMEMY_.js → FormFieldTypeahead-CpittKWN.js} +12 -12
- package/chunk/{FormFieldTypeahead-C1YMEMY_.js.map → FormFieldTypeahead-CpittKWN.js.map} +1 -1
- package/chunk/{FormFooterComponent-1jPyKutN.js → FormFooterComponent-Bk6tVgn_.js} +12 -12
- package/chunk/{FormFooterComponent-1jPyKutN.js.map → FormFooterComponent-Bk6tVgn_.js.map} +1 -1
- package/chunk/{FormFooterComponent-CWSSXsSz.js → FormFooterComponent-C_Hv2PMX.js} +12 -12
- package/chunk/{FormFooterComponent-CWSSXsSz.js.map → FormFooterComponent-C_Hv2PMX.js.map} +1 -1
- package/chunk/{FormSelectChoice-DMSodFA9.js → FormSelectChoice-14M849ZM.js} +7 -7
- package/chunk/{FormSelectChoice-CCV_G4gC.js.map → FormSelectChoice-14M849ZM.js.map} +1 -1
- package/chunk/{FormSelectChoice-CCV_G4gC.js → FormSelectChoice-BS90KVVl.js} +7 -7
- package/chunk/{FormSelectChoice-DMSodFA9.js.map → FormSelectChoice-BS90KVVl.js.map} +1 -1
- package/chunk/{InputText-dflyPe3J.js → InputText-Bla-3rez.js} +5 -5
- package/chunk/{InputText-CMu4ei8e.js.map → InputText-Bla-3rez.js.map} +1 -1
- package/chunk/{InputText-CMu4ei8e.js → InputText-Ca7uYXcO.js} +5 -5
- package/chunk/{InputText-dflyPe3J.js.map → InputText-Ca7uYXcO.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-D6MsC3w_.js → LicensedProfessionalOrganizationComponent-BO_KJrBP.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-Cb54BTfV.js.map → LicensedProfessionalOrganizationComponent-BO_KJrBP.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Cb54BTfV.js → LicensedProfessionalOrganizationComponent-TbZf1p47.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-D6MsC3w_.js.map → LicensedProfessionalOrganizationComponent-TbZf1p47.js.map} +1 -1
- package/chunk/{LogoComponent-DASXTR4v.js → LogoComponent-B0nd1tuK.js} +5 -5
- package/chunk/{LogoComponent-BDhMcJvy.js.map → LogoComponent-B0nd1tuK.js.map} +1 -1
- package/chunk/{LogoComponent-BDhMcJvy.js → LogoComponent-DEBmCERD.js} +5 -5
- package/chunk/{LogoComponent-DASXTR4v.js.map → LogoComponent-DEBmCERD.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-BLxCTiiy.js → LowIncomeOrganizationComponent-8S9C81aL.js} +11 -11
- package/chunk/{LowIncomeOrganizationComponent-BLxCTiiy.js.map → LowIncomeOrganizationComponent-8S9C81aL.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-BoiDMzae.js → LowIncomeOrganizationComponent-CpRejkiE.js} +11 -11
- package/chunk/{LowIncomeOrganizationComponent-BoiDMzae.js.map → LowIncomeOrganizationComponent-CpRejkiE.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DECCJjm8.js → MedicalProfessionalOrganizationComponent-Bv8ILmon.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-ChiR0Ygi.js.map → MedicalProfessionalOrganizationComponent-Bv8ILmon.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-ChiR0Ygi.js → MedicalProfessionalOrganizationComponent-j9YN-OAk.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-DECCJjm8.js.map → MedicalProfessionalOrganizationComponent-j9YN-OAk.js.map} +1 -1
- package/chunk/{MemberIdComponent-B-dJKumD.js → MemberIdComponent-BdCR-spM.js} +7 -7
- package/chunk/{MemberIdComponent-5FWTKz2X.js.map → MemberIdComponent-BdCR-spM.js.map} +1 -1
- package/chunk/{MemberIdComponent-5FWTKz2X.js → MemberIdComponent-CMfsuser.js} +7 -7
- package/chunk/{MemberIdComponent-B-dJKumD.js.map → MemberIdComponent-CMfsuser.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-S-P4K62H.js → MembershipOrganizationComponent-BVMDHAAJ.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-9lSPooCC.js.map → MembershipOrganizationComponent-BVMDHAAJ.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-9lSPooCC.js → MembershipOrganizationComponent-k0Dacmz6.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-S-P4K62H.js.map → MembershipOrganizationComponent-k0Dacmz6.js.map} +1 -1
- package/chunk/{Message-Bw23HLyR.js → Message-BHkGarjE.js} +976 -978
- package/chunk/{Message-Bw23HLyR.js.map → Message-BHkGarjE.js.map} +1 -1
- package/chunk/{Message-DqJ8RDzn.js → Message-DQwVDFDI.js} +9 -9
- package/chunk/{Message-DqJ8RDzn.js.map → Message-DQwVDFDI.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/{PersonalInfoStepSubmitButton-19ApqnOQ.js → PersonalInfoStepSubmitButton-BNzPmdj2.js} +10 -10
- package/chunk/{PersonalInfoStepSubmitButton-19ApqnOQ.js.map → PersonalInfoStepSubmitButton-BNzPmdj2.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-D5nGBIPB.js → PersonalInfoStepSubmitButton-C3qFXk_y.js} +10 -10
- package/chunk/{PersonalInfoStepSubmitButton-D5nGBIPB.js.map → PersonalInfoStepSubmitButton-C3qFXk_y.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DTOMhcTS.js → PersonalInfoStepWrapper-BgXSFrG3.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-DTOMhcTS.js.map → PersonalInfoStepWrapper-BgXSFrG3.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-AoJdALHc.js → PersonalInfoStepWrapper-DBVzHUVq.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-AoJdALHc.js.map → PersonalInfoStepWrapper-DBVzHUVq.js.map} +1 -1
- package/chunk/{PostalCodeComponent-C8hkvQWO.js → PostalCodeComponent-CwTTqOfq.js} +7 -7
- package/chunk/{PostalCodeComponent-C8hkvQWO.js.map → PostalCodeComponent-CwTTqOfq.js.map} +1 -1
- package/chunk/{PostalCodeComponent-CXjWewQy.js → PostalCodeComponent-s22SnL3W.js} +7 -7
- package/chunk/{PostalCodeComponent-CXjWewQy.js.map → PostalCodeComponent-s22SnL3W.js.map} +1 -1
- package/chunk/{SSN-DVSOHoYx.js → SSN-C8150irp.js} +7 -7
- package/chunk/{SSN-DVSOHoYx.js.map → SSN-C8150irp.js.map} +1 -1
- package/chunk/{SSN-DinO9pDs.js → SSN-CN1AySRv.js} +7 -7
- package/chunk/{SSN-DinO9pDs.js.map → SSN-CN1AySRv.js.map} +1 -1
- package/chunk/{StateSelectComponent-Dmvyq0VA.js → StateSelectComponent-Clp_571k.js} +6 -6
- package/chunk/{StateSelectComponent-CSuGmr9-.js.map → StateSelectComponent-Clp_571k.js.map} +1 -1
- package/chunk/{StateSelectComponent-CSuGmr9-.js → StateSelectComponent-VsaECfUZ.js} +6 -6
- package/chunk/{StateSelectComponent-Dmvyq0VA.js.map → StateSelectComponent-VsaECfUZ.js.map} +1 -1
- package/chunk/{StatusComponent-CI-XIJfl.js → StatusComponent-Bwi_-s-2.js} +8 -8
- package/chunk/{StatusComponent-C9c16W6h.js.map → StatusComponent-Bwi_-s-2.js.map} +1 -1
- package/chunk/{StatusComponent-C9c16W6h.js → StatusComponent-Cygs9AMY.js} +8 -8
- package/chunk/{StatusComponent-CI-XIJfl.js.map → StatusComponent-Cygs9AMY.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-C-HifGMu.js → StepAgePersonalInfo-3GmwW-rY.js} +18 -18
- package/chunk/{StepAgePersonalInfo-62KQNqaO.js.map → StepAgePersonalInfo-3GmwW-rY.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-62KQNqaO.js → StepAgePersonalInfo-Sf-u9plZ.js} +18 -18
- package/chunk/{StepAgePersonalInfo-C-HifGMu.js.map → StepAgePersonalInfo-Sf-u9plZ.js.map} +1 -1
- package/chunk/{StepCard-EHeqFY3Y.js → StepCard-1HzVBCwp.js} +4 -4
- package/chunk/{StepCard-DQ9JkAjb.js.map → StepCard-1HzVBCwp.js.map} +1 -1
- package/chunk/{StepCard-DQ9JkAjb.js → StepCard-CyaGxns4.js} +4 -4
- package/chunk/{StepCard-EHeqFY3Y.js.map → StepCard-CyaGxns4.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-Od1tKxhb.js → StepCollectIdentifier-Bmc3SSNb.js} +8 -8
- package/chunk/{StepCollectIdentifier-Od1tKxhb.js.map → StepCollectIdentifier-Bmc3SSNb.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CnPjG3Tt.js → StepCollectIdentifier-DFIiJ01u.js} +8 -8
- package/chunk/{StepCollectIdentifier-CnPjG3Tt.js.map → StepCollectIdentifier-DFIiJ01u.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CZOeypsA.js → StepCollectMilitaryPersonalInfoComponent-XWdESlgK.js} +22 -22
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CZOeypsA.js.map → StepCollectMilitaryPersonalInfoComponent-XWdESlgK.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-oA0BjcDC.js → StepCollectMilitaryPersonalInfoComponent-i55iFUsp.js} +22 -22
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-oA0BjcDC.js.map → StepCollectMilitaryPersonalInfoComponent-i55iFUsp.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DAdyYUIj.js → StepCollectPersonalInfo-DrwcafDx.js} +32 -32
- package/chunk/{StepCollectPersonalInfo-_zZNv7ZU.js.map → StepCollectPersonalInfo-DrwcafDx.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-_zZNv7ZU.js → StepCollectPersonalInfo-MOx8lad1.js} +32 -32
- package/chunk/{StepCollectPersonalInfo-DAdyYUIj.js.map → StepCollectPersonalInfo-MOx8lad1.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-DmkwcwhP.js → StepCompleteAuthentication-B5Z6VGje.js} +8 -8
- package/chunk/{StepCompleteAuthentication-oWf-NQ40.js.map → StepCompleteAuthentication-B5Z6VGje.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-oWf-NQ40.js → StepCompleteAuthentication-DotkcAbK.js} +8 -8
- package/chunk/{StepCompleteAuthentication-DmkwcwhP.js.map → StepCompleteAuthentication-DotkcAbK.js.map} +1 -1
- package/chunk/{StepConsolation-BivXb0mQ.js → StepConsolation-BYa4B6M1.js} +7 -7
- package/chunk/{StepConsolation-DKeVbain.js.map → StepConsolation-BYa4B6M1.js.map} +1 -1
- package/chunk/{StepConsolation-DKeVbain.js → StepConsolation-BaSShRS1.js} +7 -7
- package/chunk/{StepConsolation-BivXb0mQ.js.map → StepConsolation-BaSShRS1.js.map} +1 -1
- package/chunk/{StepDocUpload-0gFUWG-z.js → StepDocUpload-CSdGLLLR.js} +12 -12
- package/chunk/{StepDocUpload-0gFUWG-z.js.map → StepDocUpload-CSdGLLLR.js.map} +1 -1
- package/chunk/{StepDocUpload-DeHJRDVq.js → StepDocUpload-HRvkG4Ir.js} +12 -12
- package/chunk/{StepDocUpload-DeHJRDVq.js.map → StepDocUpload-HRvkG4Ir.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-Dr7fJEOv.js → StepDriverLicensePersonalInfoComponent-CZkynCYy.js} +14 -14
- package/chunk/{StepDriverLicensePersonalInfoComponent-Dr7fJEOv.js.map → StepDriverLicensePersonalInfoComponent-CZkynCYy.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-ewm052nm.js → StepDriverLicensePersonalInfoComponent-xpjjOjkm.js} +14 -14
- package/chunk/{StepDriverLicensePersonalInfoComponent-ewm052nm.js.map → StepDriverLicensePersonalInfoComponent-xpjjOjkm.js.map} +1 -1
- package/chunk/{StepEmailLoop-D9QEXapu.js → StepEmailLoop-DMO9tx7H.js} +12 -12
- package/chunk/{StepEmailLoop-CJCdlILi.js.map → StepEmailLoop-DMO9tx7H.js.map} +1 -1
- package/chunk/{StepEmailLoop-CJCdlILi.js → StepEmailLoop-gYLKxXUQ.js} +12 -12
- package/chunk/{StepEmailLoop-D9QEXapu.js.map → StepEmailLoop-gYLKxXUQ.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-AxxFo2TA.js → StepEmploymentPersonalInfo-B0noVhtm.js} +19 -19
- package/chunk/{StepEmploymentPersonalInfo-AxxFo2TA.js.map → StepEmploymentPersonalInfo-B0noVhtm.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BPHRPRvi.js → StepEmploymentPersonalInfo-BcjV9MdK.js} +19 -19
- package/chunk/{StepEmploymentPersonalInfo-BPHRPRvi.js.map → StepEmploymentPersonalInfo-BcjV9MdK.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CAd4IbSe.js → StepFirstResponderPersonalInfo-1-PVW2Dx.js} +20 -20
- package/chunk/{StepFirstResponderPersonalInfo-BjRyPbhb.js.map → StepFirstResponderPersonalInfo-1-PVW2Dx.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BjRyPbhb.js → StepFirstResponderPersonalInfo-CZQ5HfH0.js} +20 -20
- package/chunk/{StepFirstResponderPersonalInfo-CAd4IbSe.js.map → StepFirstResponderPersonalInfo-CZQ5HfH0.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D8eJdl2J.js → StepGeneralIdentityPersonalInfoComponent-D6r320Tt.js} +17 -17
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CuFmkCOU.js.map → StepGeneralIdentityPersonalInfoComponent-D6r320Tt.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CuFmkCOU.js → StepGeneralIdentityPersonalInfoComponent-I0OZM_K7.js} +17 -17
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D8eJdl2J.js.map → StepGeneralIdentityPersonalInfoComponent-I0OZM_K7.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-B7Rx5l7Z.js → StepHybridIdentityPersonalInfoComponent-Av8xP684.js} +18 -18
- package/chunk/{StepHybridIdentityPersonalInfoComponent-B7Rx5l7Z.js.map → StepHybridIdentityPersonalInfoComponent-Av8xP684.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dg9a5KWM.js → StepHybridIdentityPersonalInfoComponent-Ctedzoyw.js} +18 -18
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dg9a5KWM.js.map → StepHybridIdentityPersonalInfoComponent-Ctedzoyw.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BMySf6qq.js → StepIDCheckLoop-Bma6ihDq.js} +7 -7
- package/chunk/{StepIDCheckLoop-BMySf6qq.js.map → StepIDCheckLoop-Bma6ihDq.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DCq0c2mW.js → StepIDCheckLoop-CGLn5aLh.js} +7 -7
- package/chunk/{StepIDCheckLoop-DCq0c2mW.js.map → StepIDCheckLoop-CGLn5aLh.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CXeEtuN-.js → StepIDCheckLoopOnfido-BLw0U1qh.js} +10 -10
- package/chunk/{StepIDCheckLoopOnfido-dRhjJTKQ.js.map → StepIDCheckLoopOnfido-BLw0U1qh.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-dRhjJTKQ.js → StepIDCheckLoopOnfido-C7pA3V6P.js} +10 -10
- package/chunk/{StepIDCheckLoopOnfido-CXeEtuN-.js.map → StepIDCheckLoopOnfido-C7pA3V6P.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-0UrBQwHp.js → StepIDCheckLoopRegula-Dj2LJJDR.js} +10 -10
- package/chunk/{StepIDCheckLoopRegula-0UrBQwHp.js.map → StepIDCheckLoopRegula-Dj2LJJDR.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BtqV6jZC.js → StepIDCheckLoopRegula-DrdDgJmD.js} +10 -10
- package/chunk/{StepIDCheckLoopRegula-BtqV6jZC.js.map → StepIDCheckLoopRegula-DrdDgJmD.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-ChIhdfir.js → StepLicensedProfessionalPersonalInfo-CzEEL1it.js} +19 -19
- package/chunk/{StepLicensedProfessionalPersonalInfo-ChIhdfir.js.map → StepLicensedProfessionalPersonalInfo-CzEEL1it.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-DDue9Uar.js → StepLicensedProfessionalPersonalInfo-DZQIrN6u.js} +19 -19
- package/chunk/{StepLicensedProfessionalPersonalInfo-DDue9Uar.js.map → StepLicensedProfessionalPersonalInfo-DZQIrN6u.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-DGY7Icxi.js → StepLowIncomePersonalInfo-BgN-BYGF.js} +23 -23
- package/chunk/{StepLowIncomePersonalInfo-DGY7Icxi.js.map → StepLowIncomePersonalInfo-BgN-BYGF.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-B0db4mCL.js → StepLowIncomePersonalInfo-PUxIQA-r.js} +23 -23
- package/chunk/{StepLowIncomePersonalInfo-B0db4mCL.js.map → StepLowIncomePersonalInfo-PUxIQA-r.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-Diunk_rw.js → StepMedicalProfessionalPersonalInfo-BxbxlBe6.js} +20 -20
- package/chunk/{StepMedicalProfessionalPersonalInfo-BhRNno8Z.js.map → StepMedicalProfessionalPersonalInfo-BxbxlBe6.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BhRNno8Z.js → StepMedicalProfessionalPersonalInfo-D1uDXSfQ.js} +20 -20
- package/chunk/{StepMedicalProfessionalPersonalInfo-Diunk_rw.js.map → StepMedicalProfessionalPersonalInfo-D1uDXSfQ.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BHmExOmZ.js → StepMemberPersonalInfo-B6rp9pes.js} +16 -16
- package/chunk/{StepMemberPersonalInfo-BHmExOmZ.js.map → StepMemberPersonalInfo-B6rp9pes.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BurlQAch.js → StepMemberPersonalInfo-vwOAY5wA.js} +16 -16
- package/chunk/{StepMemberPersonalInfo-BurlQAch.js.map → StepMemberPersonalInfo-vwOAY5wA.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DEjg8f_l.js → StepMoverPersonalInfo-BU0a7ler.js} +14 -14
- package/chunk/{StepMoverPersonalInfo-ChuXaozy.js.map → StepMoverPersonalInfo-BU0a7ler.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-ChuXaozy.js → StepMoverPersonalInfo-DuicectH.js} +14 -14
- package/chunk/{StepMoverPersonalInfo-DEjg8f_l.js.map → StepMoverPersonalInfo-DuicectH.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CN2zjhyz.js → StepOverrideComponent-BaKiTDty.js} +11 -11
- package/chunk/{StepOverrideComponent-CN2zjhyz.js.map → StepOverrideComponent-BaKiTDty.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CZFlmiMi.js → StepOverrideComponent-Clon2hjy.js} +11 -11
- package/chunk/{StepOverrideComponent-CZFlmiMi.js.map → StepOverrideComponent-Clon2hjy.js.map} +1 -1
- package/chunk/{StepSMSLoop-D2eSIFOh.js → StepSMSLoop-C3N4Uf4q.js} +8 -8
- package/chunk/{StepSMSLoop-D2eSIFOh.js.map → StepSMSLoop-C3N4Uf4q.js.map} +1 -1
- package/chunk/{StepSMSLoop-iI_f2dr2.js → StepSMSLoop-KhKSdx_8.js} +8 -8
- package/chunk/{StepSMSLoop-iI_f2dr2.js.map → StepSMSLoop-KhKSdx_8.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +3 -3
- package/chunk/StepSSO-ZHByQpHa.js +3 -3
- package/chunk/{StepSocialSecurityNumber-zIl-f4u1.js → StepSocialSecurityNumber-BFpLDlQ1.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-jM6Iew5U.js.map → StepSocialSecurityNumber-BFpLDlQ1.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-jM6Iew5U.js → StepSocialSecurityNumber-CbZmSWzw.js} +11 -11
- package/chunk/{StepSocialSecurityNumber-zIl-f4u1.js.map → StepSocialSecurityNumber-CbZmSWzw.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CbA2qqPZ.js → StepStudentPersonalInfo-DFeEoWMP.js} +19 -19
- package/chunk/{StepStudentPersonalInfo-CbA2qqPZ.js.map → StepStudentPersonalInfo-DFeEoWMP.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-R_C0SxRz.js → StepStudentPersonalInfo-DlkOEIN0.js} +19 -19
- package/chunk/{StepStudentPersonalInfo-R_C0SxRz.js.map → StepStudentPersonalInfo-DlkOEIN0.js.map} +1 -1
- package/chunk/{StepSuccess-CTVKYqut.js → StepSuccess-By2-IpCK.js} +12 -12
- package/chunk/{StepSuccess-DBNLE1qo.js.map → StepSuccess-By2-IpCK.js.map} +1 -1
- package/chunk/{StepSuccess-DBNLE1qo.js → StepSuccess-CjDsDNLr.js} +12 -12
- package/chunk/{StepSuccess-CTVKYqut.js.map → StepSuccess-CjDsDNLr.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CFIkOIZw.js → StepTeacherPersonalInfo-2Epz99jU.js} +17 -17
- package/chunk/{StepTeacherPersonalInfo-CFIkOIZw.js.map → StepTeacherPersonalInfo-2Epz99jU.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-XQvF_5Oe.js → StepTeacherPersonalInfo-3UMwse2G.js} +17 -17
- package/chunk/{StepTeacherPersonalInfo-XQvF_5Oe.js.map → StepTeacherPersonalInfo-3UMwse2G.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +3 -3
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +3 -3
- package/chunk/{TeacherSchoolComponent-DUEUXohr.js → TeacherSchoolComponent-BdtRV7di.js} +9 -9
- package/chunk/{TeacherSchoolComponent-DUEUXohr.js.map → TeacherSchoolComponent-BdtRV7di.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-DXFKVUFY.js → TeacherSchoolComponent-D0EO5eJm.js} +9 -9
- package/chunk/{TeacherSchoolComponent-DXFKVUFY.js.map → TeacherSchoolComponent-D0EO5eJm.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-EggQSvgh.js → TestingRouteOverrides-Bn0_IFij.js} +5 -5
- package/chunk/{TestingRouteOverrides-ipf_F-iY.js.map → TestingRouteOverrides-Bn0_IFij.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-ipf_F-iY.js → TestingRouteOverrides-CAICO9Vh.js} +5 -5
- package/chunk/{TestingRouteOverrides-EggQSvgh.js.map → TestingRouteOverrides-CAICO9Vh.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-BBN8jYxF.js → countryUtils-BdL8HE5Y.js} +4 -4
- package/chunk/{countryUtils-BBN8jYxF.js.map → countryUtils-BdL8HE5Y.js.map} +1 -1
- package/chunk/{countryUtils-n_5QoHGV.js → countryUtils-DQPzApKG.js} +4 -4
- package/chunk/{countryUtils-n_5QoHGV.js.map → countryUtils-DQPzApKG.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-By9qTZYH.js → downshift.esm-3VTU_cx2.js} +6 -6
- package/chunk/{downshift.esm-pfhLrEwQ.js.map → downshift.esm-3VTU_cx2.js.map} +1 -1
- package/chunk/{downshift.esm-pfhLrEwQ.js → downshift.esm-aysyel0z.js} +6 -6
- package/chunk/{downshift.esm-By9qTZYH.js.map → downshift.esm-aysyel0z.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +3 -3
- package/chunk/{empties-Dhc64eA5.js → empties-BVpS0Pt6.js} +4 -4
- package/chunk/{empties-Dhc64eA5.js.map → empties-BVpS0Pt6.js.map} +1 -1
- package/chunk/{empties-DHI3R7ys.js → empties-Cqb2xU53.js} +4 -4
- package/chunk/{empties-DHI3R7ys.js.map → empties-Cqb2xU53.js.map} +1 -1
- package/chunk/{en-GB-BBkjjtqq.js → en-GB-CNQ8Ww2j.js} +4 -4
- package/chunk/{en-GB-BBkjjtqq.js.map → en-GB-CNQ8Ww2j.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-BlwolTIT.js → hooks-BdAc8QeA.js} +6 -6
- package/chunk/{hooks-BlwolTIT.js.map → hooks-BdAc8QeA.js.map} +1 -1
- package/chunk/{hooks-gC9DtNY1.js → hooks-D34_H_RU.js} +6 -6
- package/chunk/{hooks-gC9DtNY1.js.map → hooks-D34_H_RU.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-CvSmE54g.js → intl-ylK_1hh_.js} +4 -4
- package/chunk/{intl-CvSmE54g.js.map → intl-ylK_1hh_.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-JSlXFmKD.js → jsx-runtime-BxMVlYXm.js} +4 -4
- package/chunk/{jsx-runtime-CyXcV_93.js.map → jsx-runtime-BxMVlYXm.js.map} +1 -1
- package/chunk/{jsx-runtime-CyXcV_93.js → jsx-runtime-ckyAGLc5.js} +4 -4
- package/chunk/{jsx-runtime-JSlXFmKD.js.map → jsx-runtime-ckyAGLc5.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-DrV8NINc.js → mocks-AiIRO45v.js} +4 -4
- package/chunk/{mocks-DrV8NINc.js.map → mocks-AiIRO45v.js.map} +1 -1
- package/chunk/{mocks-Dpf6dNc6.js → mocks-D6W4OBdg.js} +4 -4
- package/chunk/{mocks-Dpf6dNc6.js.map → mocks-D6W4OBdg.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-CRzdSTAR.js → options-nvc9DFQu.js} +4 -4
- package/chunk/{options-CRzdSTAR.js.map → options-nvc9DFQu.js.map} +1 -1
- package/chunk/pl-UYTjMIq_.js +3 -3
- package/chunk/{programThemeGetters-DYWYXv-a.js → programThemeGetters-BME3fJZI.js} +4 -4
- package/chunk/{programThemeGetters-VBnkSxuj.js.map → programThemeGetters-BME3fJZI.js.map} +1 -1
- package/chunk/{programThemeGetters-VBnkSxuj.js → programThemeGetters-BiTqOEZX.js} +4 -4
- package/chunk/{programThemeGetters-DYWYXv-a.js.map → programThemeGetters-BiTqOEZX.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-BFyXhiWa.js → stepComponentHelpers-CLwMg193.js} +7 -7
- package/chunk/{stepComponentHelpers-BFyXhiWa.js.map → stepComponentHelpers-CLwMg193.js.map} +1 -1
- package/chunk/{stepComponentHelpers-CcEMtmwt.js → stepComponentHelpers-CtzbPjrF.js} +7 -7
- package/chunk/{stepComponentHelpers-CcEMtmwt.js.map → stepComponentHelpers-CtzbPjrF.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-D0faZk5D.js → useCollectFieldsEndpoint-CN5V84JA.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-B-n8Y7U8.js.map → useCollectFieldsEndpoint-CN5V84JA.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-B-n8Y7U8.js → useCollectFieldsEndpoint-CY0rNris.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-D0faZk5D.js.map → useCollectFieldsEndpoint-CY0rNris.js.map} +1 -1
- package/chunk/{useMetrics-C3KNudJk.js → useMetrics-BNTxf5pc.js} +6 -6
- package/chunk/{useMetrics-C3KNudJk.js.map → useMetrics-BNTxf5pc.js.map} +1 -1
- package/chunk/{useMetrics-Cjo0Vkjx.js → useMetrics-C4u5pvwu.js} +6 -6
- package/chunk/{useMetrics-Cjo0Vkjx.js.map → useMetrics-C4u5pvwu.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: Thu Sep 17 2026
|
|
7
|
+
* VERSION: 2.288.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1789689133976
|
|
9
|
+
* BUILD_DATE: Thu Sep 17 2026 23:52:13 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-ylK_1hh_.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-BxMVlYXm.js";
|
|
15
|
+
import { p as o } from "./FormFooterComponent-C_Hv2PMX.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-CY0rNris.js";
|
|
18
|
+
import { _ as l, c as u, g as d, i as f, o as p, s as m } from "./stepComponentHelpers-CtzbPjrF.js";
|
|
19
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-C1jCPKW_.js";
|
|
20
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-C3qFXk_y.js";
|
|
21
|
+
import { t as C } from "./BirthDateComponent-CzrH33Zg.js";
|
|
22
|
+
import { t as w } from "./PostalCodeComponent-CwTTqOfq.js";
|
|
23
|
+
import { t as T } from "./CountryComponentWrapper-CSlqoIHA.js";
|
|
24
|
+
import { t as E } from "./ExtraMessage-C4FhNUn9.js";
|
|
25
|
+
import { t as D } from "./ChangeLocaleComponent-CrGBsLAT.js";
|
|
26
|
+
import { t as O } from "./PersonalInfoStepWrapper-BgXSFrG3.js";
|
|
27
|
+
import { t as k } from "./countryUtils-BdL8HE5Y.js";
|
|
28
|
+
import { t as A } from "./StatusComponent-Cygs9AMY.js";
|
|
29
|
+
import { t as j } from "./LicensedProfessionalOrganizationComponent-BO_KJrBP.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-ChIhdfir.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 StepLicensedProfessionalPersonalInfo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A,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-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 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,EAA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CAAA;EACkB;;AAEzB,CAIA"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.288.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Thu Sep 17 2026
|
|
3
|
+
* VERSION: 2.288.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1789689129136
|
|
5
|
+
* BUILD_DATE: Thu Sep 17 2026 23:52:09 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-nvc9DFQu.js";
|
|
9
|
+
import { a as n, n as r, t as i } from "./jsx-runtime-ckyAGLc5.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-Bk6tVgn_.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-CN5V84JA.js";
|
|
14
|
+
import { _ as l, c as u, g as d, i as f, o as p, s as m } from "./stepComponentHelpers-CLwMg193.js";
|
|
15
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-SDwoAGuD.js";
|
|
16
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-BNzPmdj2.js";
|
|
17
|
+
import { t as C } from "./BirthDateComponent-S_RZIsMk.js";
|
|
18
|
+
import { t as w } from "./PostalCodeComponent-s22SnL3W.js";
|
|
19
|
+
import { t as T } from "./CountryComponentWrapper-CgsJDdn7.js";
|
|
20
|
+
import { t as E } from "./ExtraMessage-CwJ-dMVo.js";
|
|
21
|
+
import { t as D } from "./ChangeLocaleComponent-bP_E0o2D.js";
|
|
22
|
+
import { t as O } from "./PersonalInfoStepWrapper-DBVzHUVq.js";
|
|
23
|
+
import { t as k } from "./countryUtils-DQPzApKG.js";
|
|
24
|
+
import { t as A } from "./StatusComponent-Bwi_-s-2.js";
|
|
25
|
+
import { t as j } from "./LicensedProfessionalOrganizationComponent-TbZf1p47.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-DDue9Uar.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,EA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AU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAoC,YAAY;MAC9C,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAIA"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-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,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,WAA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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"}
|
package/chunk/{StepLowIncomePersonalInfo-DGY7Icxi.js → StepLowIncomePersonalInfo-BgN-BYGF.js}
RENAMED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.288.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Thu Sep 17 2026
|
|
3
|
+
* VERSION: 2.288.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1789689129136
|
|
5
|
+
* BUILD_DATE: Thu Sep 17 2026 23:52:09 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-nvc9DFQu.js";
|
|
9
|
+
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-ckyAGLc5.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-Cqb2xU53.js";
|
|
12
|
+
import { h as u } from "./FormFooterComponent-Bk6tVgn_.js";
|
|
13
|
+
import { f as d } from "./programThemeGetters-BiTqOEZX.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-CN5V84JA.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-CLwMg193.js";
|
|
17
|
+
import { a as S, i as C, n as w, o as T, s as E, t as D } from "./CaptchaComponent-SDwoAGuD.js";
|
|
18
|
+
import { n as O, t as k } from "./PersonalInfoStepSubmitButton-BNzPmdj2.js";
|
|
19
|
+
import { t as A } from "./BirthDateComponent-S_RZIsMk.js";
|
|
20
|
+
import { t as j } from "./PostalCodeComponent-s22SnL3W.js";
|
|
21
|
+
import { t as M } from "./CountryComponentWrapper-CgsJDdn7.js";
|
|
22
|
+
import { t as N } from "./City-gLjD_QXD.js";
|
|
23
|
+
import { t as P } from "./AddressComponent-jl9JaIsf.js";
|
|
24
|
+
import { t as ee } from "./ChangeLocaleComponent-bP_E0o2D.js";
|
|
25
|
+
import { t as F } from "./PersonalInfoStepWrapper-DBVzHUVq.js";
|
|
26
|
+
import { t as I } from "./countryUtils-DQPzApKG.js";
|
|
27
|
+
import { t as L } from "./StateSelectComponent-Clp_571k.js";
|
|
28
|
+
import { n as R, t as z } from "./LowIncomeOrganizationComponent-8S9C81aL.js";
|
|
29
|
+
import { t as B } from "./StatusComponent-Bwi_-s-2.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-DGY7Icxi.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,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,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-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,6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AAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
package/chunk/{StepLowIncomePersonalInfo-B0db4mCL.js → StepLowIncomePersonalInfo-PUxIQA-r.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: Thu Sep 17 2026
|
|
7
|
+
* VERSION: 2.288.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1789689133976
|
|
9
|
+
* BUILD_DATE: Thu Sep 17 2026 23:52:13 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-ylK_1hh_.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-BxMVlYXm.js";
|
|
15
|
+
import { n as l } from "./empties-BVpS0Pt6.js";
|
|
16
|
+
import { p as u } from "./FormFooterComponent-C_Hv2PMX.js";
|
|
17
|
+
import { f as d } from "./programThemeGetters-BME3fJZI.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-CY0rNris.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-CtzbPjrF.js";
|
|
21
|
+
import { a as S, i as C, n as w, o as T, s as E, t as D } from "./CaptchaComponent-C1jCPKW_.js";
|
|
22
|
+
import { n as O, t as k } from "./PersonalInfoStepSubmitButton-C3qFXk_y.js";
|
|
23
|
+
import { t as A } from "./BirthDateComponent-CzrH33Zg.js";
|
|
24
|
+
import { t as j } from "./PostalCodeComponent-CwTTqOfq.js";
|
|
25
|
+
import { t as M } from "./CountryComponentWrapper-CSlqoIHA.js";
|
|
26
|
+
import { t as N } from "./City-CDs92PJs.js";
|
|
27
|
+
import { t as P } from "./AddressComponent-BYiCmiVL.js";
|
|
28
|
+
import { t as F } from "./ChangeLocaleComponent-CrGBsLAT.js";
|
|
29
|
+
import { t as ee } from "./PersonalInfoStepWrapper-BgXSFrG3.js";
|
|
30
|
+
import { t as I } from "./countryUtils-BdL8HE5Y.js";
|
|
31
|
+
import { t as L } from "./StateSelectComponent-VsaECfUZ.js";
|
|
32
|
+
import { n as R, t as z } from "./LowIncomeOrganizationComponent-CpRejkiE.js";
|
|
33
|
+
import { t as B } from "./StatusComponent-Cygs9AMY.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-B0db4mCL.js","names":[],"sources":["../../src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type FormSelectChoice,\n type LowIncomePersonalInfoResponse,\n type LowIncomePersonalInfoViewModel,\n type LowIncomeStatus,\n type Organization,\n type State,\n type VerificationService,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n getStatusLabel,\n getStatusOptions,\n handleEmailOnKeyDown,\n orgToOption,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { StatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\nimport { isLowIncomeVM } from \"./lowIncomeTypes\";\n\ninterface StepLowIncomePersonalInfoComponentProps {\n verificationService: VerificationService<LowIncomePersonalInfoViewModel>;\n intl: any;\n}\n\ntype DefaultStatusMessages = {\n [key in LowIncomeStatus]: string;\n};\n\nexport const defaultStatusMessages: DefaultStatusMessages = {\n SNAP_BENEFITS: \"Snap Benefits Recipient\",\n OTHER_GOVERNMENT_ASSISTANCE: \"Other Government Assistance Recipient\",\n COMMUNITY_ELIGIBILITY_PROVISION: \"CEP (Community Eligibility Provision, Title 1/LAP)\",\n};\n\nconst StepLowIncomePersonalInfo = ({\n intl,\n verificationService,\n}: StepLowIncomePersonalInfoComponentProps) => {\n const { viewModel } = verificationService;\n const options = getOptions();\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return null;\n }\n\n const { fieldValidationErrors } = verificationService;\n const { verificationResponse } = verificationService;\n const failedInstantMatch = hasFailedInstantMatch(\n verificationResponse as LowIncomePersonalInfoResponse,\n );\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: (verificationResponse as LowIncomePersonalInfoResponse).verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = getStatusOptions(\n intl,\n dynamicStatuses ?? (verificationResponse as LowIncomePersonalInfoResponse).availableStatuses,\n );\n\n const locale = viewModel.localeChoice.value;\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const isSelectedStatusSnapBenefits = selectedStatus === \"SNAP_BENEFITS\";\n const updateLowIncomeViewModel = (key: keyof LowIncomePersonalInfoViewModel, value: any) => {\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected LowIncomePersonalInfoViewModel\");\n return;\n }\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n // SNAP recipients get the EBT card number field instead of an organization\n // picker, so organization cannot be validated for them. Preserve entries\n // other fields own, and drop ours again once the picker comes back.\n // A partial update cannot do this: it deep merges, which concatenates\n // arrays rather than replacing them, so entries could never be removed.\n const remaining = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => id !== \"organization\",\n );\n updateLowIncomeViewModel(\n \"fieldsToSkipValidation\",\n isSelectedStatusSnapBenefits ? [...remaining, \"organization\"] : remaining,\n );\n }, [isSelectedStatusSnapBenefits]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"low-income\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <StatusComponent\n segmentId=\"low-income\"\n value={{\n value: viewModel.statuses ? viewModel.statuses[0] : \"\",\n label: viewModel.statuses ? getStatusLabel(intl, viewModel.statuses[0]) : \"\",\n }}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"statuses\")?.disabled}\n options={statusOptions}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice<LowIncomeStatus>) => {\n const updatedStatuses = status ? [status.value as LowIncomeStatus] : [];\n const nextState: LowIncomePersonalInfoViewModel = produce(\n viewModel,\n (draft: LowIncomePersonalInfoViewModel) => {\n if (viewModel.statuses[0] !== updatedStatuses[0]) {\n draft.organization = blankOrganization.organization; // Clear out the org b/c they're of different kind\n }\n draft.statuses = updatedStatuses;\n },\n );\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n status ? status.value : \"\",\n verificationService,\n );\n }}\n />\n {selectedStatus === \"SNAP_BENEFITS\" && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n {(selectedStatus === \"OTHER_GOVERNMENT_ASSISTANCE\" ||\n selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") && (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(verificationService.viewModel.organization)}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n )}\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n <div className=\"sid-address-extra-fields sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateLowIncomeViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateLowIncomeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectLowIncomePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;4CA+Va,IAAqC,GAxRf,EACjC,SACA,6BAC6C;CAC7C,IAAM,EAAE,iBAAc,GAChB,IAAU,EAAW;CAE3B,IAAI,CAAC,EAAc,CAAS,GAE1B,OADA,EAAO,MAAM,yCAAyC,GAC/C;CAGT,IAAM,EAAE,6BAA0B,GAC5B,EAAE,4BAAyB,GAC3B,IAAqB,EACzB,CACF,GAEM,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAiB,EAAuD;EACxE,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACpB,GACA,KAAoB,EAAuD,iBAC7E,GAEM,IAAS,EAAU,aAAa,OAEhC,IAAiB,EAAU,SAAS,KAAK,EAAU,SAAS,KAAK,KAAA,GACjE,IAA+B,MAAmB,iBAClD,KAA4B,GAA2C,MAAe;EAC1F,IAAI,CAAC,EAAc,CAAS,GAAG;GAC7B,EAAO,MAAM,yCAAyC;GACtD;EACF;EACA,IAAM,IAA4C,EAChD,IACC,MAA0C;GAEzC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAiBA,OAfA,EAAM,gBAAgB;EAMpB,IAAM,KAAa,EAAU,0BAA0B,CAAC,GAAG,QACxD,MAAO,MAAO,cACjB;EACA,EACE,0BACA,IAA+B,CAAC,GAAG,GAAW,cAAc,IAAI,CAClE;CACF,GAAG,CAAC,CAA4B,CAAC,GAG/B,iBAAA,GAAA,EAAA,MAAC,IAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD,EA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,eAAe,CAAQ,GAChD,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
|
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 StepLowIncomePersonalInfoComponent = injectIntl(StepLowIncomePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;4CA+Va,IAAqC,GAxRf,EACjC,SACA,6BAC6C;CAC7C,IAAM,EAAE,iBAAc,GAChB,IAAU,EAAW;CAE3B,IAAI,CAAC,EAAc,CAAS,GAE1B,OADA,EAAO,MAAM,yCAAyC,GAC/C;CAGT,IAAM,EAAE,6BAA0B,GAC5B,EAAE,4BAAyB,GAC3B,IAAqB,EACzB,CACF,GAEM,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAiB,EAAuD;EACxE,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACpB,GACA,KAAoB,EAAuD,iBAC7E,GAEM,IAAS,EAAU,aAAa,OAEhC,IAAiB,EAAU,SAAS,KAAK,EAAU,SAAS,KAAK,KAAA,GACjE,IAA+B,MAAmB,iBAClD,KAA4B,GAA2C,MAAe;EAC1F,IAAI,CAAC,EAAc,CAAS,GAAG;GAC7B,EAAO,MAAM,yCAAyC;GACtD;EACF;EACA,IAAM,IAA4C,EAChD,IACC,MAA0C;GAEzC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAiBA,OAfA,EAAM,gBAAgB;EAMpB,IAAM,KAAa,EAAU,0BAA0B,CAAC,GAAG,QACxD,MAAO,MAAO,cACjB;EACA,EACE,0BACA,IAA+B,CAAC,GAAG,GAAW,cAAc,IAAI,CAClE;CACF,GAAG,CAAC,CAA4B,CAAC,GAG/B,iBAAA,GAAA,EAAA,MAAC,IAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB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