@sheerid/jslib 2.294.0 → 2.295.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +37 -37
- package/chunk/{AddressComponent-C2dPxhhj.js → AddressComponent-DgdxVCak.js} +5 -5
- package/chunk/{AddressComponent-C2dPxhhj.js.map → AddressComponent-DgdxVCak.js.map} +1 -1
- package/chunk/{AddressComponent-PHZhb2Mw.js → AddressComponent-maoUGgcH.js} +5 -5
- package/chunk/{AddressComponent-PHZhb2Mw.js.map → AddressComponent-maoUGgcH.js.map} +1 -1
- package/chunk/AnnouncingHeader-C6QNdmy8.js +4 -4
- package/chunk/AnnouncingHeader-DJd16MZV.js +4 -4
- package/chunk/{BirthDateComponent-DCZXOXmm.js → BirthDateComponent-CLfHsLxA.js} +5 -5
- package/chunk/{BirthDateComponent-BpdF0g0b.js.map → BirthDateComponent-CLfHsLxA.js.map} +1 -1
- package/chunk/{BirthDateComponent-BpdF0g0b.js → BirthDateComponent-DsswVPXn.js} +5 -5
- package/chunk/{BirthDateComponent-DCZXOXmm.js.map → BirthDateComponent-DsswVPXn.js.map} +1 -1
- package/chunk/{CaptchaComponent-B0Uxhb51.js → CaptchaComponent-REgKvi8p.js} +8 -8
- package/chunk/{CaptchaComponent-B0Uxhb51.js.map → CaptchaComponent-REgKvi8p.js.map} +1 -1
- package/chunk/{CaptchaComponent-FWZqpEIU.js → CaptchaComponent-Yb-l7_Pn.js} +8 -8
- package/chunk/{CaptchaComponent-FWZqpEIU.js.map → CaptchaComponent-Yb-l7_Pn.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-B8ZVvEiq.js → ChangeLocaleComponent-BJ3jZ7Nk.js} +7 -7
- package/chunk/{ChangeLocaleComponent-B8ZVvEiq.js.map → ChangeLocaleComponent-BJ3jZ7Nk.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CGCnqwzm.js → ChangeLocaleComponent-dhAkzkH4.js} +7 -7
- package/chunk/{ChangeLocaleComponent-CGCnqwzm.js.map → ChangeLocaleComponent-dhAkzkH4.js.map} +1 -1
- package/chunk/{City-uCEYG4v0.js → City-D7NN9waG.js} +5 -5
- package/chunk/{City-BPckEV2l.js.map → City-D7NN9waG.js.map} +1 -1
- package/chunk/{City-BPckEV2l.js → City-DL20Kfkf.js} +5 -5
- package/chunk/{City-uCEYG4v0.js.map → City-DL20Kfkf.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BqSQ4YOf.js → CollegeNameComponent-9pp2d2fm.js} +7 -7
- package/chunk/{CollegeNameComponent-BqSQ4YOf.js.map → CollegeNameComponent-9pp2d2fm.js.map} +1 -1
- package/chunk/{CollegeNameComponent-dB7K5QgA.js → CollegeNameComponent-CHM311lm.js} +7 -7
- package/chunk/{CollegeNameComponent-dB7K5QgA.js.map → CollegeNameComponent-CHM311lm.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-cvPop_DN.js +4 -4
- package/chunk/CopyToClipboardComponent-nKhkSaum.js +4 -4
- package/chunk/{CountryComponentWrapper-BRfRmGYM.js → CountryComponentWrapper-CI5jLzGL.js} +7 -7
- package/chunk/{CountryComponentWrapper-BRfRmGYM.js.map → CountryComponentWrapper-CI5jLzGL.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BoVcyVxO.js → CountryComponentWrapper-DMctN0cb.js} +7 -7
- package/chunk/{CountryComponentWrapper-BoVcyVxO.js.map → CountryComponentWrapper-DMctN0cb.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CZSf2ikm.js → DischargeDateComponent-BshmF9Yt.js} +8 -8
- package/chunk/{DischargeDateComponent-BQ459K7a.js.map → DischargeDateComponent-BshmF9Yt.js.map} +1 -1
- package/chunk/{DischargeDateComponent-BQ459K7a.js → DischargeDateComponent-C0EIfXt0.js} +8 -8
- package/chunk/{DischargeDateComponent-CZSf2ikm.js.map → DischargeDateComponent-C0EIfXt0.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DnOPwPeC.js → DriverLicenseNumberComponent-Dc8Qgy7p.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-Bh4Qolmi.js.map → DriverLicenseNumberComponent-Dc8Qgy7p.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-Bh4Qolmi.js → DriverLicenseNumberComponent-DeioJNhW.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-DnOPwPeC.js.map → DriverLicenseNumberComponent-DeioJNhW.js.map} +1 -1
- package/chunk/{EmailLoopPending-BCYLcoGT.js → EmailLoopPending-BrRIw6Xp.js} +6 -6
- package/chunk/{EmailLoopPending-BCYLcoGT.js.map → EmailLoopPending-BrRIw6Xp.js.map} +1 -1
- package/chunk/{EmailLoopPending-D5G2UXKG.js → EmailLoopPending-DDmfESwc.js} +6 -6
- package/chunk/{EmailLoopPending-D5G2UXKG.js.map → EmailLoopPending-DDmfESwc.js.map} +1 -1
- package/chunk/{ExtraMessage-Bqf9TUts.js → ExtraMessage-DEA8DQsG.js} +5 -5
- package/chunk/{ExtraMessage-Bqf9TUts.js.map → ExtraMessage-DEA8DQsG.js.map} +1 -1
- package/chunk/{ExtraMessage-DNXSpqvW.js → ExtraMessage-hNyxibRx.js} +5 -5
- package/chunk/{ExtraMessage-DNXSpqvW.js.map → ExtraMessage-hNyxibRx.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CfT8Biwu.js → FirstResponderOrganizationComponent-C7joVP0X.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-CfT8Biwu.js.map → FirstResponderOrganizationComponent-C7joVP0X.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-x0WgcQzG.js → FirstResponderOrganizationComponent-D9I33eOb.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-x0WgcQzG.js.map → FirstResponderOrganizationComponent-D9I33eOb.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Cd-wGEHG.js → FormFieldInputSelect-Bzfv3xGL.js} +5 -5
- package/chunk/{FormFieldInputSelect-BfmQAxFP.js.map → FormFieldInputSelect-Bzfv3xGL.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BfmQAxFP.js → FormFieldInputSelect-Dj8d1GXq.js} +5 -5
- package/chunk/{FormFieldInputSelect-Cd-wGEHG.js.map → FormFieldInputSelect-Dj8d1GXq.js.map} +1 -1
- package/chunk/FormFieldLayout-Bx2JoyDR.js +4 -4
- package/chunk/FormFieldLayout-_lQMBCmX.js +4 -4
- package/chunk/FormFieldText-5WjD4GNf.js +4 -4
- package/chunk/FormFieldText-BQLBciux.js +4 -4
- package/chunk/{FormFieldTypeahead-DVaRbEQG.js → FormFieldTypeahead-CHXpavSg.js} +7 -7
- package/chunk/{FormFieldTypeahead-DVaRbEQG.js.map → FormFieldTypeahead-CHXpavSg.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-GpVICIeC.js → FormFieldTypeahead-DD5l6OzL.js} +7 -7
- package/chunk/{FormFieldTypeahead-GpVICIeC.js.map → FormFieldTypeahead-DD5l6OzL.js.map} +1 -1
- package/chunk/{FormFooterComponent-Ca6EG7qf.js → FormFooterComponent-DuoNNzmM.js} +8 -8
- package/chunk/{FormFooterComponent-Ca6EG7qf.js.map → FormFooterComponent-DuoNNzmM.js.map} +1 -1
- package/chunk/{FormFooterComponent-Bzz3Bu-9.js → FormFooterComponent-r-Wk8ivg.js} +8 -8
- package/chunk/{FormFooterComponent-Bzz3Bu-9.js.map → FormFooterComponent-r-Wk8ivg.js.map} +1 -1
- package/chunk/{FormSelectChoice-RBx6V3b2.js → FormSelectChoice-Cv7h1Gk-.js} +6 -6
- package/chunk/{FormSelectChoice-BwYh7sj9.js.map → FormSelectChoice-Cv7h1Gk-.js.map} +1 -1
- package/chunk/{FormSelectChoice-BwYh7sj9.js → FormSelectChoice-DRijHkxS.js} +6 -6
- package/chunk/{FormSelectChoice-RBx6V3b2.js.map → FormSelectChoice-DRijHkxS.js.map} +1 -1
- package/chunk/InputText-DBIXmm_R.js +4 -4
- package/chunk/InputText-DqQkxoCM.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-8uaSLE_5.js → LicensedProfessionalOrganizationComponent-Cb3iTvqT.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-8uaSLE_5.js.map → LicensedProfessionalOrganizationComponent-Cb3iTvqT.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BPWGao1m.js → LicensedProfessionalOrganizationComponent-D3xtH997.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-BPWGao1m.js.map → LicensedProfessionalOrganizationComponent-D3xtH997.js.map} +1 -1
- package/chunk/{LogoComponent-D0I1mPJw.js → LogoComponent-BdfWOuxB.js} +5 -5
- package/chunk/{LogoComponent-Ca7bTxZE.js.map → LogoComponent-BdfWOuxB.js.map} +1 -1
- package/chunk/{LogoComponent-Ca7bTxZE.js → LogoComponent-DyVO4147.js} +5 -5
- package/chunk/{LogoComponent-D0I1mPJw.js.map → LogoComponent-DyVO4147.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-l_HWVHzW.js → LowIncomeOrganizationComponent-C1Kc1f-S.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-l4L0ov2d.js.map → LowIncomeOrganizationComponent-C1Kc1f-S.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-l4L0ov2d.js → LowIncomeOrganizationComponent-COao8mYF.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-l_HWVHzW.js.map → LowIncomeOrganizationComponent-COao8mYF.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DrzA5GBL.js → MedicalProfessionalOrganizationComponent-RaxoODpA.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-BEV89rdD.js.map → MedicalProfessionalOrganizationComponent-RaxoODpA.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-BEV89rdD.js → MedicalProfessionalOrganizationComponent-kkwsXIu4.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-DrzA5GBL.js.map → MedicalProfessionalOrganizationComponent-kkwsXIu4.js.map} +1 -1
- package/chunk/{MemberIdComponent-C2G6z0us.js → MemberIdComponent-BN3lbgRi.js} +5 -5
- package/chunk/{MemberIdComponent-C2G6z0us.js.map → MemberIdComponent-BN3lbgRi.js.map} +1 -1
- package/chunk/{MemberIdComponent-_RwOhcAg.js → MemberIdComponent-jvqHM2pn.js} +5 -5
- package/chunk/{MemberIdComponent-_RwOhcAg.js.map → MemberIdComponent-jvqHM2pn.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DaBngl5Q.js → MembershipOrganizationComponent-BZHkjQ5J.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-DaBngl5Q.js.map → MembershipOrganizationComponent-BZHkjQ5J.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-oMfREuGs.js → MembershipOrganizationComponent-DYoDg3dU.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-oMfREuGs.js.map → MembershipOrganizationComponent-DYoDg3dU.js.map} +1 -1
- package/chunk/{Message-Boy9Uyy0.js → Message-BOC0ndsP.js} +5 -5
- package/chunk/{Message-Boy9Uyy0.js.map → Message-BOC0ndsP.js.map} +1 -1
- package/chunk/{Message-DvgmOZft.js → Message-TROixmy1.js} +5 -5
- package/chunk/{Message-DvgmOZft.js.map → Message-TROixmy1.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-B_QubSRz.js → PersonalInfoStepSubmitButton-CuQmqVvc.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-B_QubSRz.js.map → PersonalInfoStepSubmitButton-CuQmqVvc.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-CASQFLdJ.js → PersonalInfoStepSubmitButton-GwnOAcWy.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-CASQFLdJ.js.map → PersonalInfoStepSubmitButton-GwnOAcWy.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-BzdMB6RD.js → PersonalInfoStepWrapper-DNUApKjr.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-BzdMB6RD.js.map → PersonalInfoStepWrapper-DNUApKjr.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-D-oNkXVC.js → PersonalInfoStepWrapper-hoTD6n-G.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-D-oNkXVC.js.map → PersonalInfoStepWrapper-hoTD6n-G.js.map} +1 -1
- package/chunk/{PostalCodeComponent-5NKJ6zig.js → PostalCodeComponent-BQ7y0ygq.js} +5 -5
- package/chunk/{PostalCodeComponent-5NKJ6zig.js.map → PostalCodeComponent-BQ7y0ygq.js.map} +1 -1
- package/chunk/{PostalCodeComponent-DTdFZJea.js → PostalCodeComponent-BwV4q_6-.js} +5 -5
- package/chunk/{PostalCodeComponent-DTdFZJea.js.map → PostalCodeComponent-BwV4q_6-.js.map} +1 -1
- package/chunk/{SSN-BeveTYV1.js → SSN-ClwVR0oH.js} +5 -5
- package/chunk/{SSN-BeveTYV1.js.map → SSN-ClwVR0oH.js.map} +1 -1
- package/chunk/{SSN-npx9fciR.js → SSN-u-erpOkk.js} +5 -5
- package/chunk/{SSN-npx9fciR.js.map → SSN-u-erpOkk.js.map} +1 -1
- package/chunk/{StateSelectComponent-BljDbJ_7.js → StateSelectComponent-CWQwYWF8.js} +7 -7
- package/chunk/{StateSelectComponent-BljDbJ_7.js.map → StateSelectComponent-CWQwYWF8.js.map} +1 -1
- package/chunk/{StateSelectComponent-D7vXl3OH.js → StateSelectComponent-ChCBK2cV.js} +7 -7
- package/chunk/{StateSelectComponent-D7vXl3OH.js.map → StateSelectComponent-ChCBK2cV.js.map} +1 -1
- package/chunk/{StatusComponent-5GNGDBSi.js → StatusComponent-DQOSEKFy.js} +6 -6
- package/chunk/{StatusComponent-5GNGDBSi.js.map → StatusComponent-DQOSEKFy.js.map} +1 -1
- package/chunk/{StatusComponent-BGqgQrBr.js → StatusComponent-Dc38Mb9r.js} +6 -6
- package/chunk/{StatusComponent-BGqgQrBr.js.map → StatusComponent-Dc38Mb9r.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BJ6WrgSZ.js → StepAgePersonalInfo-O-fJZAXz.js} +17 -17
- package/chunk/{StepAgePersonalInfo-BJ6WrgSZ.js.map → StepAgePersonalInfo-O-fJZAXz.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CbTV2OHL.js → StepAgePersonalInfo-laL4y5lq.js} +17 -17
- package/chunk/{StepAgePersonalInfo-CbTV2OHL.js.map → StepAgePersonalInfo-laL4y5lq.js.map} +1 -1
- package/chunk/StepCard-CQGeXH7Z.js +4 -4
- package/chunk/StepCard-DD1BU5jb.js +4 -4
- package/chunk/{StepCollectIdentifier-BiMRaTtt.js → StepCollectIdentifier-Cjm32rgq.js} +6 -6
- package/chunk/{StepCollectIdentifier-BXNQfg0X.js.map → StepCollectIdentifier-Cjm32rgq.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-BXNQfg0X.js → StepCollectIdentifier-G4pFqOK9.js} +6 -6
- package/chunk/{StepCollectIdentifier-BiMRaTtt.js.map → StepCollectIdentifier-G4pFqOK9.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DYUc7Vl8.js → StepCollectMilitaryPersonalInfoComponent-BnDLyomQ.js} +21 -21
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-Bwc_N_YU.js.map → StepCollectMilitaryPersonalInfoComponent-BnDLyomQ.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-Bwc_N_YU.js → StepCollectMilitaryPersonalInfoComponent-DxvcdUUs.js} +21 -21
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DYUc7Vl8.js.map → StepCollectMilitaryPersonalInfoComponent-DxvcdUUs.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DT-XZGrm.js → StepCollectPersonalInfo-DRNLoSAw.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-DT-XZGrm.js.map → StepCollectPersonalInfo-DRNLoSAw.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-GMuXh62L.js → StepCollectPersonalInfo-DcRynwwh.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-GMuXh62L.js.map → StepCollectPersonalInfo-DcRynwwh.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-5kcqz-By.js +4 -4
- package/chunk/StepCompleteAuthentication-xpON0-yc.js +4 -4
- package/chunk/{StepConsolation-BdSXDPgO.js → StepConsolation-BCOW9PEV.js} +6 -6
- package/chunk/{StepConsolation-BdSXDPgO.js.map → StepConsolation-BCOW9PEV.js.map} +1 -1
- package/chunk/{StepConsolation-D9oaYgDU.js → StepConsolation-G7o48Tin.js} +6 -6
- package/chunk/{StepConsolation-D9oaYgDU.js.map → StepConsolation-G7o48Tin.js.map} +1 -1
- package/chunk/{StepDocUpload-DlVEC1sX.js → StepDocUpload-CWQCHhFI.js} +7 -7
- package/chunk/{StepDocUpload-DlVEC1sX.js.map → StepDocUpload-CWQCHhFI.js.map} +1 -1
- package/chunk/{StepDocUpload-WORC4p6O.js → StepDocUpload-DyHCicU5.js} +7 -7
- package/chunk/{StepDocUpload-WORC4p6O.js.map → StepDocUpload-DyHCicU5.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-Cfqv4ArX.js → StepDriverLicensePersonalInfoComponent-CRAjwgXK.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-Cfqv4ArX.js.map → StepDriverLicensePersonalInfoComponent-CRAjwgXK.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-C5upCQ_b.js → StepDriverLicensePersonalInfoComponent-D4Lkdkgd.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-C5upCQ_b.js.map → StepDriverLicensePersonalInfoComponent-D4Lkdkgd.js.map} +1 -1
- package/chunk/{StepEmailLoop-OYpg9_fk.js → StepEmailLoop-7E6iMUNH.js} +7 -7
- package/chunk/{StepEmailLoop-DDJM3zA3.js.map → StepEmailLoop-7E6iMUNH.js.map} +1 -1
- package/chunk/{StepEmailLoop-DDJM3zA3.js → StepEmailLoop-BtNAJ4VG.js} +7 -7
- package/chunk/{StepEmailLoop-OYpg9_fk.js.map → StepEmailLoop-BtNAJ4VG.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-STBW2SrN.js → StepEmploymentPersonalInfo-BDWcx1FU.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-BtzyaOOY.js.map → StepEmploymentPersonalInfo-BDWcx1FU.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BtzyaOOY.js → StepEmploymentPersonalInfo-CiqN8uV6.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-STBW2SrN.js.map → StepEmploymentPersonalInfo-CiqN8uV6.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BVZWOft8.js → StepFirstResponderPersonalInfo-BGWMMjgm.js} +18 -18
- package/chunk/{StepFirstResponderPersonalInfo-BVQ7ivyQ.js.map → StepFirstResponderPersonalInfo-BGWMMjgm.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BVQ7ivyQ.js → StepFirstResponderPersonalInfo-DtmJru3d.js} +18 -18
- package/chunk/{StepFirstResponderPersonalInfo-BVZWOft8.js.map → StepFirstResponderPersonalInfo-DtmJru3d.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B-v5whS7.js → StepGeneralIdentityPersonalInfoComponent-BZpIssl6.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-0egbo84U.js.map → StepGeneralIdentityPersonalInfoComponent-BZpIssl6.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-0egbo84U.js → StepGeneralIdentityPersonalInfoComponent-af647do9.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B-v5whS7.js.map → StepGeneralIdentityPersonalInfoComponent-af647do9.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DVNnEPFz.js → StepHybridIdentityPersonalInfoComponent-CBDgcbRT.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DVNnEPFz.js.map → StepHybridIdentityPersonalInfoComponent-CBDgcbRT.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-FkG0Eyf1.js → StepHybridIdentityPersonalInfoComponent-CWVdzJCv.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-FkG0Eyf1.js.map → StepHybridIdentityPersonalInfoComponent-CWVdzJCv.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DUJFqwvk.js → StepIDCheckLoop-D6qhQn6b.js} +5 -5
- package/chunk/{StepIDCheckLoop-Mrxs3-7G.js.map → StepIDCheckLoop-D6qhQn6b.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-Mrxs3-7G.js → StepIDCheckLoop-Do0-tvDI.js} +5 -5
- package/chunk/{StepIDCheckLoop-DUJFqwvk.js.map → StepIDCheckLoop-Do0-tvDI.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CWyxxeuD.js → StepIDCheckLoopOnfido-DDywJIeR.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-znxJ5SR-.js.map → StepIDCheckLoopOnfido-DDywJIeR.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-znxJ5SR-.js → StepIDCheckLoopOnfido-DUItWVK4.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-CWyxxeuD.js.map → StepIDCheckLoopOnfido-DUItWVK4.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-Dv0-RlwY.js → StepIDCheckLoopRegula-CmQLTkrX.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-DBUX-ItR.js.map → StepIDCheckLoopRegula-CmQLTkrX.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DBUX-ItR.js → StepIDCheckLoopRegula-CvVuirKf.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-Dv0-RlwY.js.map → StepIDCheckLoopRegula-CvVuirKf.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-DTfq7vRu.js → StepLicensedProfessionalPersonalInfo-BhIn-AA3.js} +18 -18
- package/chunk/{StepLicensedProfessionalPersonalInfo-3Z8Bx-fV.js.map → StepLicensedProfessionalPersonalInfo-BhIn-AA3.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-3Z8Bx-fV.js → StepLicensedProfessionalPersonalInfo-DbWrYcQ_.js} +18 -18
- package/chunk/{StepLicensedProfessionalPersonalInfo-DTfq7vRu.js.map → StepLicensedProfessionalPersonalInfo-DbWrYcQ_.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-DqKgsikM.js → StepLowIncomePersonalInfo-D_HBmImA.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-CfeMIf_F.js.map → StepLowIncomePersonalInfo-D_HBmImA.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-CfeMIf_F.js → StepLowIncomePersonalInfo-n--chtDU.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-DqKgsikM.js.map → StepLowIncomePersonalInfo-n--chtDU.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-D6Qa3OQa.js → StepMedicalProfessionalPersonalInfo-C6JCaext.js} +19 -19
- package/chunk/{StepMedicalProfessionalPersonalInfo-BABdgYG1.js.map → StepMedicalProfessionalPersonalInfo-C6JCaext.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BABdgYG1.js → StepMedicalProfessionalPersonalInfo-CZhrEe6o.js} +19 -19
- package/chunk/{StepMedicalProfessionalPersonalInfo-D6Qa3OQa.js.map → StepMedicalProfessionalPersonalInfo-CZhrEe6o.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-C-28cVMR.js → StepMemberPersonalInfo--RSWSrn4.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-C-28cVMR.js.map → StepMemberPersonalInfo--RSWSrn4.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DD62pLNq.js → StepMemberPersonalInfo-D25hjill.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-DD62pLNq.js.map → StepMemberPersonalInfo-D25hjill.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-RgHhWyvt.js → StepMoverPersonalInfo-Bd1budZI.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-BLVGo4WA.js.map → StepMoverPersonalInfo-Bd1budZI.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BLVGo4WA.js → StepMoverPersonalInfo-b38J1JqS.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-RgHhWyvt.js.map → StepMoverPersonalInfo-b38J1JqS.js.map} +1 -1
- package/chunk/{StepOverrideComponent-C0gkuJTU.js → StepOverrideComponent-CiqRKexX.js} +7 -7
- package/chunk/{StepOverrideComponent-BBwMFjKP.js.map → StepOverrideComponent-CiqRKexX.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BBwMFjKP.js → StepOverrideComponent-c8O0Smnb.js} +7 -7
- package/chunk/{StepOverrideComponent-C0gkuJTU.js.map → StepOverrideComponent-c8O0Smnb.js.map} +1 -1
- package/chunk/{StepSMSLoop-CLyXQmON.js → StepSMSLoop-B3hkEQDG.js} +5 -5
- package/chunk/{StepSMSLoop-CClLLG5y.js.map → StepSMSLoop-B3hkEQDG.js.map} +1 -1
- package/chunk/{StepSMSLoop-CClLLG5y.js → StepSMSLoop-C-HznICP.js} +5 -5
- package/chunk/{StepSMSLoop-CLyXQmON.js.map → StepSMSLoop-C-HznICP.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-DORTk9EQ.js → StepSocialSecurityNumber--bK8TwxM.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-C7WCFboD.js.map → StepSocialSecurityNumber--bK8TwxM.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-C7WCFboD.js → StepSocialSecurityNumber-D-S0s81B.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-DORTk9EQ.js.map → StepSocialSecurityNumber-D-S0s81B.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-Bi5S_ykn.js → StepStudentPersonalInfo-BAc9QmMn.js} +16 -16
- package/chunk/{StepStudentPersonalInfo-Bi5S_ykn.js.map → StepStudentPersonalInfo-BAc9QmMn.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DoQ_K574.js → StepStudentPersonalInfo-DQ8oCfdE.js} +16 -16
- package/chunk/{StepStudentPersonalInfo-DoQ_K574.js.map → StepStudentPersonalInfo-DQ8oCfdE.js.map} +1 -1
- package/chunk/{StepSuccess-C_qFXDR2.js → StepSuccess-0PqmUdFL.js} +6 -6
- package/chunk/{StepSuccess-C_qFXDR2.js.map → StepSuccess-0PqmUdFL.js.map} +1 -1
- package/chunk/{StepSuccess-CJuSM1ZK.js → StepSuccess-D6kosHAA.js} +6 -6
- package/chunk/{StepSuccess-CJuSM1ZK.js.map → StepSuccess-D6kosHAA.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BMJi4dXH.js → StepTeacherPersonalInfo-BIvT1HlM.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-BMJi4dXH.js.map → StepTeacherPersonalInfo-BIvT1HlM.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-DtIq1FKy.js → StepTeacherPersonalInfo-CX-QvAFx.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-DtIq1FKy.js.map → StepTeacherPersonalInfo-CX-QvAFx.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-P9eOoEkC.js → TeacherSchoolComponent-DCMr56C0.js} +7 -7
- package/chunk/{TeacherSchoolComponent-INc6t5nM.js.map → TeacherSchoolComponent-DCMr56C0.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-INc6t5nM.js → TeacherSchoolComponent-DRNiHn0H.js} +7 -7
- package/chunk/{TeacherSchoolComponent-P9eOoEkC.js.map → TeacherSchoolComponent-DRNiHn0H.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BbCY31VT.js +4 -4
- package/chunk/TestingRouteOverrides-DEu_4afz.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-CB5rauS5.js +4 -4
- package/chunk/countryUtils-Dn17xbSI.js +12 -0
- package/chunk/{countryUtils-2MKDd__w.js.map → countryUtils-Dn17xbSI.js.map} +1 -1
- package/chunk/{countryUtils-CRwSXJAo.js → countryUtils-DoVJSI8W.js} +5 -5
- package/chunk/{countryUtils-CRwSXJAo.js.map → countryUtils-DoVJSI8W.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +4 -4
- package/chunk/da-DwrVoxto.js +4 -4
- package/chunk/de-IWGZLhgY.js +4 -4
- package/chunk/{downshift.esm-BkznXSJa.js → downshift.esm--NTaU4XK.js} +5 -5
- package/chunk/{downshift.esm-BkznXSJa.js.map → downshift.esm--NTaU4XK.js.map} +1 -1
- package/chunk/{downshift.esm-CAOak1io.js → downshift.esm-BGnGkwiG.js} +5 -5
- package/chunk/{downshift.esm-CAOak1io.js.map → downshift.esm-BGnGkwiG.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-B034wwK_.js +4 -4
- package/chunk/empties-lrCPA-9V.js +4 -4
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/hooks-Bu8Px0Ok.js +4 -4
- package/chunk/hooks-DSoorQS3.js +4 -4
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/intl-DYOqmiaL.js +4 -4
- package/chunk/is-CvmKEON9.js +4 -4
- package/chunk/it-CnmveGgC.js +4 -4
- package/chunk/iw-DFUYHkxF.js +4 -4
- package/chunk/ja-CjVb2tWW.js +4 -4
- package/chunk/jsx-runtime-338NbZob.js +4 -4
- package/chunk/jsx-runtime-B6t5B3Mb.js +4 -4
- package/chunk/kk-Dvz4nK6K.js +4 -4
- package/chunk/ko-DzOqBMGC.js +4 -4
- package/chunk/lo-C2WPq55d.js +4 -4
- package/chunk/lt-BSDYvjTF.js +4 -4
- package/chunk/lv-CefDPT-M.js +4 -4
- package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
- package/chunk/mocks-BQNtP7qW.js +4 -4
- package/chunk/mocks-DC7WJf5c.js +4 -4
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/options-DsRV5fwh.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-VBBOPS4w.js → programThemeGetters-Df5v2sTO.js} +5 -5
- package/chunk/{programThemeGetters-VBBOPS4w.js.map → programThemeGetters-Df5v2sTO.js.map} +1 -1
- package/chunk/{programThemeGetters-cPK2r02v.js → programThemeGetters-DmWeluMk.js} +5 -5
- package/chunk/{programThemeGetters-cPK2r02v.js.map → programThemeGetters-DmWeluMk.js.map} +1 -1
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/stepComponentHelpers-J67LZsd0.js +4 -4
- package/chunk/stepComponentHelpers-hkvp2qUS.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-0xjc0i8b.js → useCollectFieldsEndpoint-CQeQ7JOB.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-0xjc0i8b.js.map → useCollectFieldsEndpoint-CQeQ7JOB.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-B2_olsVn.js → useCollectFieldsEndpoint-DzxiHifj.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-B2_olsVn.js.map → useCollectFieldsEndpoint-DzxiHifj.js.map} +1 -1
- package/chunk/useMetrics-C3RIqUJI.js +4 -4
- package/chunk/useMetrics-dwc-Zjl_.js +4 -4
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +37 -37
- package/chunk/countryUtils-2MKDd__w.js +0 -12
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Sep 22 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.295.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1790114644972
|
|
5
|
+
* BUILD_DATE: Tue Sep 22 2026 22:04:04 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 52df9017e3cb51641ba764b25f2494e8745819c7
|
|
7
7
|
*/
|
|
8
8
|
import { c as e, n as t } from "./options-DsRV5fwh.js";
|
|
9
9
|
import { n, t as r } from "./jsx-runtime-338NbZob.js";
|
|
10
10
|
import { b as i } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as a } from "./FormFooterComponent-
|
|
11
|
+
import { h as a } from "./FormFooterComponent-r-Wk8ivg.js";
|
|
12
12
|
import { n as o } from "../sheerid.js";
|
|
13
|
-
import { t as s } from "./useCollectFieldsEndpoint-
|
|
13
|
+
import { t as s } from "./useCollectFieldsEndpoint-DzxiHifj.js";
|
|
14
14
|
import { d as c, f as l, r as u, t as d } from "./stepComponentHelpers-hkvp2qUS.js";
|
|
15
|
-
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-
|
|
16
|
-
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-
|
|
17
|
-
import { i as b } from "./FormSelectChoice-
|
|
18
|
-
import { t as x } from "./BirthDateComponent-
|
|
19
|
-
import { t as S } from "./PostalCodeComponent-
|
|
20
|
-
import { t as C } from "./CountryComponentWrapper-
|
|
21
|
-
import { t as w } from "./ExtraMessage-
|
|
22
|
-
import { t as T } from "./ChangeLocaleComponent-
|
|
23
|
-
import { t as E } from "./PersonalInfoStepWrapper-
|
|
24
|
-
import { t as D } from "./countryUtils-
|
|
25
|
-
import { t as O } from "./StatusComponent-
|
|
26
|
-
import { t as k } from "./LicensedProfessionalOrganizationComponent-
|
|
15
|
+
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-Yb-l7_Pn.js";
|
|
16
|
+
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-CuQmqVvc.js";
|
|
17
|
+
import { i as b } from "./FormSelectChoice-Cv7h1Gk-.js";
|
|
18
|
+
import { t as x } from "./BirthDateComponent-CLfHsLxA.js";
|
|
19
|
+
import { t as S } from "./PostalCodeComponent-BwV4q_6-.js";
|
|
20
|
+
import { t as C } from "./CountryComponentWrapper-CI5jLzGL.js";
|
|
21
|
+
import { t as w } from "./ExtraMessage-DEA8DQsG.js";
|
|
22
|
+
import { t as T } from "./ChangeLocaleComponent-dhAkzkH4.js";
|
|
23
|
+
import { t as E } from "./PersonalInfoStepWrapper-hoTD6n-G.js";
|
|
24
|
+
import { t as D } from "./countryUtils-Dn17xbSI.js";
|
|
25
|
+
import { t as O } from "./StatusComponent-DQOSEKFy.js";
|
|
26
|
+
import { t as k } from "./LicensedProfessionalOrganizationComponent-Cb3iTvqT.js";
|
|
27
27
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
28
28
|
var A = r(), j = ({ verificationService: r }) => {
|
|
29
29
|
let j = r.viewModel, { fieldValidationErrors: M } = r, N = r.verificationResponse, P = a(N), F = j.localeChoice.value, I = t(), { availableStatuses: L } = s({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-3Z8Bx-fV.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\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 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}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\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"],"mappings":";;;;;;;;;;;;;;;;;;;;aA+Ca,KAAiD,EAC5D,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,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,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,GAA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iB,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"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-BhIn-AA3.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\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 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}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\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"],"mappings":";;;;;;;;;;;;;;;;;;;;aA+Ca,KAAiD,EAC5D,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,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,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,EAAc,MAAM,MAAW,EAAO,UAAU,EAAU,SAAS,EAAE;IAC5E,WAAW,CAAC,CAAC,EAAsB;IACnC,SAAS;IACT,UAAU,KAAqB,EAAwB,UAAU,GAAG;IACpE,aACE,IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAs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BAAA,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"}
|
|
@@ -4,30 +4,30 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Sep 22 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.295.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790114649208
|
|
9
|
+
* BUILD_DATE: Tue Sep 22 2026 22:04:09 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 52df9017e3cb51641ba764b25f2494e8745819c7
|
|
11
11
|
*/
|
|
12
12
|
import { p as e, s as t } from "./intl-DYOqmiaL.js";
|
|
13
13
|
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { n as r, t as i } from "./jsx-runtime-B6t5B3Mb.js";
|
|
15
|
-
import { p as a } from "./FormFooterComponent-
|
|
15
|
+
import { p as a } from "./FormFooterComponent-DuoNNzmM.js";
|
|
16
16
|
import { t as o } from "../_mysheerid-preview.js";
|
|
17
|
-
import { t as s } from "./useCollectFieldsEndpoint-
|
|
17
|
+
import { t as s } from "./useCollectFieldsEndpoint-CQeQ7JOB.js";
|
|
18
18
|
import { d as c, f as l, r as u, t as d } from "./stepComponentHelpers-J67LZsd0.js";
|
|
19
|
-
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-
|
|
20
|
-
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-
|
|
21
|
-
import { i as b } from "./FormSelectChoice-
|
|
22
|
-
import { t as x } from "./BirthDateComponent-
|
|
23
|
-
import { t as S } from "./PostalCodeComponent-
|
|
24
|
-
import { t as C } from "./CountryComponentWrapper-
|
|
25
|
-
import { t as w } from "./ExtraMessage-
|
|
26
|
-
import { t as T } from "./ChangeLocaleComponent-
|
|
27
|
-
import { t as E } from "./PersonalInfoStepWrapper-
|
|
28
|
-
import { t as D } from "./countryUtils-
|
|
29
|
-
import { t as O } from "./StatusComponent-
|
|
30
|
-
import { t as k } from "./LicensedProfessionalOrganizationComponent-
|
|
19
|
+
import { a as f, i as p, n as m, o as h, s as g, t as _ } from "./CaptchaComponent-REgKvi8p.js";
|
|
20
|
+
import { n as v, t as y } from "./PersonalInfoStepSubmitButton-GwnOAcWy.js";
|
|
21
|
+
import { i as b } from "./FormSelectChoice-DRijHkxS.js";
|
|
22
|
+
import { t as x } from "./BirthDateComponent-DsswVPXn.js";
|
|
23
|
+
import { t as S } from "./PostalCodeComponent-BQ7y0ygq.js";
|
|
24
|
+
import { t as C } from "./CountryComponentWrapper-DMctN0cb.js";
|
|
25
|
+
import { t as w } from "./ExtraMessage-hNyxibRx.js";
|
|
26
|
+
import { t as T } from "./ChangeLocaleComponent-BJ3jZ7Nk.js";
|
|
27
|
+
import { t as E } from "./PersonalInfoStepWrapper-DNUApKjr.js";
|
|
28
|
+
import { t as D } from "./countryUtils-DoVJSI8W.js";
|
|
29
|
+
import { t as O } from "./StatusComponent-Dc38Mb9r.js";
|
|
30
|
+
import { t as k } from "./LicensedProfessionalOrganizationComponent-D3xtH997.js";
|
|
31
31
|
//#region src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx
|
|
32
32
|
var A = i(), j = ({ verificationService: i }) => {
|
|
33
33
|
let j = i.viewModel, { fieldValidationErrors: M } = i, N = i.verificationResponse, P = a(N), F = j.localeChoice.value, I = t(), { availableStatuses: L } = s({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-DTfq7vRu.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\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 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}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\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"],"mappings":";;;;;;;;;;;;;;;;;;;;aA+Ca,KAAiD,EAC5D,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,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,KACJ,GACA,MACG;EAC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AY,CAAC,CAAC,EAAoB,aAAa;IAC/C,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAoC,eAAe,CAAQ,GAC3D,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,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"}
|
|
1
|
+
{"version":3,"file":"StepLicensedProfessionalPersonalInfo-DbWrYcQ_.js","names":[],"sources":["../../src/components/StepLicensedProfessionalPersonalInfo/StepLicensedProfessionalPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type LicensedProfessionalStatus,\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 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}\n\nexport const StepLicensedProfessionalPersonalInfoComponent = ({\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LicensedProfessionalStatus[],\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\n isErrored={!!fieldValidationErrors.statuses}\n options={statusOptions}\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"],"mappings":";;;;;;;;;;;;;;;;;;;;aA+Ca,KAAiD,EAC5D,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,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,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,U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,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"}
|
package/chunk/{StepLowIncomePersonalInfo-DqKgsikM.js → StepLowIncomePersonalInfo-D_HBmImA.js}
RENAMED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Sep 22 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.295.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1790114644972
|
|
5
|
+
* BUILD_DATE: Tue Sep 22 2026 22:04:04 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 52df9017e3cb51641ba764b25f2494e8745819c7
|
|
7
7
|
*/
|
|
8
8
|
import { c as e, kt as t, n } from "./options-DsRV5fwh.js";
|
|
9
9
|
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-338NbZob.js";
|
|
10
10
|
import { S as s, b as c } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
11
|
import { n as l } from "./empties-lrCPA-9V.js";
|
|
12
|
-
import { f as u } from "./programThemeGetters-
|
|
13
|
-
import { h as d } from "./FormFooterComponent-
|
|
12
|
+
import { f as u } from "./programThemeGetters-Df5v2sTO.js";
|
|
13
|
+
import { h as d } from "./FormFooterComponent-r-Wk8ivg.js";
|
|
14
14
|
import { n as f } from "../sheerid.js";
|
|
15
|
-
import { t as p } from "./useCollectFieldsEndpoint-
|
|
15
|
+
import { t as p } from "./useCollectFieldsEndpoint-DzxiHifj.js";
|
|
16
16
|
import { d as m, f as h, i as g, r as _, t as v } from "./stepComponentHelpers-hkvp2qUS.js";
|
|
17
|
-
import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-
|
|
18
|
-
import { n as T, t as E } from "./PersonalInfoStepSubmitButton-
|
|
19
|
-
import { i as D } from "./FormSelectChoice-
|
|
20
|
-
import { t as O } from "./BirthDateComponent-
|
|
21
|
-
import { t as k } from "./PostalCodeComponent-
|
|
22
|
-
import { t as A } from "./CountryComponentWrapper-
|
|
23
|
-
import { t as j } from "./City-
|
|
24
|
-
import { t as M } from "./AddressComponent-
|
|
25
|
-
import { t as N } from "./ChangeLocaleComponent-
|
|
26
|
-
import { t as P } from "./PersonalInfoStepWrapper-
|
|
27
|
-
import { t as F } from "./countryUtils-
|
|
28
|
-
import { t as I } from "./StateSelectComponent-
|
|
29
|
-
import { n as L, t as R } from "./LowIncomeOrganizationComponent-
|
|
30
|
-
import { t as z } from "./StatusComponent-
|
|
17
|
+
import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-Yb-l7_Pn.js";
|
|
18
|
+
import { n as T, t as E } from "./PersonalInfoStepSubmitButton-CuQmqVvc.js";
|
|
19
|
+
import { i as D } from "./FormSelectChoice-Cv7h1Gk-.js";
|
|
20
|
+
import { t as O } from "./BirthDateComponent-CLfHsLxA.js";
|
|
21
|
+
import { t as k } from "./PostalCodeComponent-BwV4q_6-.js";
|
|
22
|
+
import { t as A } from "./CountryComponentWrapper-CI5jLzGL.js";
|
|
23
|
+
import { t as j } from "./City-D7NN9waG.js";
|
|
24
|
+
import { t as M } from "./AddressComponent-maoUGgcH.js";
|
|
25
|
+
import { t as N } from "./ChangeLocaleComponent-dhAkzkH4.js";
|
|
26
|
+
import { t as P } from "./PersonalInfoStepWrapper-hoTD6n-G.js";
|
|
27
|
+
import { t as F } from "./countryUtils-Dn17xbSI.js";
|
|
28
|
+
import { t as I } from "./StateSelectComponent-CWQwYWF8.js";
|
|
29
|
+
import { n as L, t as R } from "./LowIncomeOrganizationComponent-C1Kc1f-S.js";
|
|
30
|
+
import { t as z } from "./StatusComponent-DQOSEKFy.js";
|
|
31
31
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
32
32
|
var B = /* @__PURE__ */ t(i(), 1), V = o(), H = r(({ intl: t, verificationService: r }) => {
|
|
33
33
|
let { viewModel: i } = r, o = n();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-CfeMIf_F.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 { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\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 getFieldConfigByFieldId,\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}\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 =\n verificationService.verificationResponse as LowIncomePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LowIncomeStatus[],\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\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 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":";;;;;;;;;;;;;;;;;;;;;;;;4CA6Ua,IAAqC,GAlRf,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,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EAC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AC,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-D_HBmImA.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 { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\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 getFieldConfigByFieldId,\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}\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 =\n verificationService.verificationResponse as LowIncomePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LowIncomeStatus[],\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\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 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":";;;;;;;;;;;;;;;;;;;;;;;;4CA6Ua,IAAqC,GAlRf,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,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,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,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A,GAAA,EAAA,KAAC,GAAD;IACE,YAAY,CAAC,CAAC,EAAoB,aAAa;IAC/C,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAyB,eAAe,CAAQ,GAChD,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAyB,YAAY;MACnC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAEsF"}
|
package/chunk/{StepLowIncomePersonalInfo-CfeMIf_F.js → StepLowIncomePersonalInfo-n--chtDU.js}
RENAMED
|
@@ -4,34 +4,34 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Sep 22 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.295.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790114649208
|
|
9
|
+
* BUILD_DATE: Tue Sep 22 2026 22:04:09 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 52df9017e3cb51641ba764b25f2494e8745819c7
|
|
11
11
|
*/
|
|
12
12
|
import { kt as e, p as t, s as n } from "./intl-DYOqmiaL.js";
|
|
13
13
|
import { S as r, b as i } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { f as a } from "./programThemeGetters-
|
|
14
|
+
import { f as a } from "./programThemeGetters-DmWeluMk.js";
|
|
15
15
|
import { a as o, c as s, n as c, t as l } from "./jsx-runtime-B6t5B3Mb.js";
|
|
16
16
|
import { n as u } from "./empties-B034wwK_.js";
|
|
17
|
-
import { p as d } from "./FormFooterComponent-
|
|
17
|
+
import { p as d } from "./FormFooterComponent-DuoNNzmM.js";
|
|
18
18
|
import { t as f } from "../_mysheerid-preview.js";
|
|
19
|
-
import { t as p } from "./useCollectFieldsEndpoint-
|
|
19
|
+
import { t as p } from "./useCollectFieldsEndpoint-CQeQ7JOB.js";
|
|
20
20
|
import { d as m, f as h, i as g, r as _, t as v } from "./stepComponentHelpers-J67LZsd0.js";
|
|
21
|
-
import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-
|
|
22
|
-
import { n as T, t as E } from "./PersonalInfoStepSubmitButton-
|
|
23
|
-
import { i as D } from "./FormSelectChoice-
|
|
24
|
-
import { t as O } from "./BirthDateComponent-
|
|
25
|
-
import { t as k } from "./PostalCodeComponent-
|
|
26
|
-
import { t as A } from "./CountryComponentWrapper-
|
|
27
|
-
import { t as j } from "./City-
|
|
28
|
-
import { t as M } from "./AddressComponent-
|
|
29
|
-
import { t as N } from "./ChangeLocaleComponent-
|
|
30
|
-
import { t as P } from "./PersonalInfoStepWrapper-
|
|
31
|
-
import { t as F } from "./countryUtils-
|
|
32
|
-
import { t as I } from "./StateSelectComponent-
|
|
33
|
-
import { n as L, t as R } from "./LowIncomeOrganizationComponent-
|
|
34
|
-
import { t as z } from "./StatusComponent-
|
|
21
|
+
import { a as y, i as b, n as x, o as S, s as C, t as w } from "./CaptchaComponent-REgKvi8p.js";
|
|
22
|
+
import { n as T, t as E } from "./PersonalInfoStepSubmitButton-GwnOAcWy.js";
|
|
23
|
+
import { i as D } from "./FormSelectChoice-DRijHkxS.js";
|
|
24
|
+
import { t as O } from "./BirthDateComponent-DsswVPXn.js";
|
|
25
|
+
import { t as k } from "./PostalCodeComponent-BQ7y0ygq.js";
|
|
26
|
+
import { t as A } from "./CountryComponentWrapper-DMctN0cb.js";
|
|
27
|
+
import { t as j } from "./City-DL20Kfkf.js";
|
|
28
|
+
import { t as M } from "./AddressComponent-DgdxVCak.js";
|
|
29
|
+
import { t as N } from "./ChangeLocaleComponent-BJ3jZ7Nk.js";
|
|
30
|
+
import { t as P } from "./PersonalInfoStepWrapper-DNUApKjr.js";
|
|
31
|
+
import { t as F } from "./countryUtils-DoVJSI8W.js";
|
|
32
|
+
import { t as I } from "./StateSelectComponent-ChCBK2cV.js";
|
|
33
|
+
import { n as L, t as R } from "./LowIncomeOrganizationComponent-COao8mYF.js";
|
|
34
|
+
import { t as z } from "./StatusComponent-Dc38Mb9r.js";
|
|
35
35
|
//#region src/components/StepLowIncomePersonalInfo/StepLowIncomePersonalInfoComponent.tsx
|
|
36
36
|
var B = /* @__PURE__ */ e(s(), 1), V = l(), H = o(({ intl: e, verificationService: o }) => {
|
|
37
37
|
let { viewModel: s } = o, l = n();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepLowIncomePersonalInfo-DqKgsikM.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 { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\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 getFieldConfigByFieldId,\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}\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 =\n verificationService.verificationResponse as LowIncomePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LowIncomeStatus[],\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\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 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":";;;;;;;;;;;;;;;;;;;;;;;;4CA6Ua,I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sB,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-n--chtDU.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 { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\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 getFieldConfigByFieldId,\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}\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 =\n verificationService.verificationResponse as LowIncomePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\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 statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as LowIncomeStatus[],\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={statusOptions.find((option) => option.value === viewModel.statuses[0])}\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 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":";;;;;;;;;;;;;;;;;;;;;;;;4CA6Ua,IAAqC,GAlRf,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,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAE/D,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,IAAS,EAAU,aAAa,OAEh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