@sheerid/jslib-nightly 2.232.0-alpha.2 → 2.233.0-alpha.1
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 +1311 -1349
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{ActiveDutyStartDateComponent-CF9c-0bL.js → ActiveDutyStartDateComponent-BqqZPmED.js} +14 -14
- package/chunk/{ActiveDutyStartDateComponent-BNwC2c3Y.js.map → ActiveDutyStartDateComponent-BqqZPmED.js.map} +1 -1
- package/chunk/{ActiveDutyStartDateComponent-BNwC2c3Y.js → ActiveDutyStartDateComponent-vtVgKCY6.js} +14 -14
- package/chunk/{ActiveDutyStartDateComponent-CF9c-0bL.js.map → ActiveDutyStartDateComponent-vtVgKCY6.js.map} +1 -1
- package/chunk/{AddressComponent-DV2Wsw6k.js → AddressComponent-DKaHo8cD.js} +5 -5
- package/chunk/{AddressComponent-AiyIPiCz.js.map → AddressComponent-DKaHo8cD.js.map} +1 -1
- package/chunk/{AddressComponent-AiyIPiCz.js → AddressComponent-uP4u4iGw.js} +5 -5
- package/chunk/{AddressComponent-DV2Wsw6k.js.map → AddressComponent-uP4u4iGw.js.map} +1 -1
- package/chunk/{CaptchaComponent-SmUa6m52.js → CaptchaComponent-BVvwKmWz.js} +174 -174
- package/chunk/{CaptchaComponent-CnWyxiTy.js.map → CaptchaComponent-BVvwKmWz.js.map} +1 -1
- package/chunk/{CaptchaComponent-CnWyxiTy.js → CaptchaComponent-CajCtTWY.js} +174 -174
- package/chunk/{CaptchaComponent-SmUa6m52.js.map → CaptchaComponent-CajCtTWY.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Cu2DR-Q3.js → ChangeLocaleComponent-BLoBbyRc.js} +12 -12
- package/chunk/{ChangeLocaleComponent-Cu2DR-Q3.js.map → ChangeLocaleComponent-BLoBbyRc.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DUnfgQuX.js → ChangeLocaleComponent-Cd8lWGKu.js} +12 -12
- package/chunk/{ChangeLocaleComponent-DUnfgQuX.js.map → ChangeLocaleComponent-Cd8lWGKu.js.map} +1 -1
- package/chunk/{City-yVVnZQTP.js → City-BO8oii6s.js} +5 -5
- package/chunk/{City-BmrJpnS6.js.map → City-BO8oii6s.js.map} +1 -1
- package/chunk/{City-BmrJpnS6.js → City-CvuPh0vE.js} +5 -5
- package/chunk/{City-yVVnZQTP.js.map → City-CvuPh0vE.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DtKPZHb-.js → CollegeNameComponent-C63SSy9-.js} +8 -8
- package/chunk/{CollegeNameComponent-DaTimEqC.js.map → CollegeNameComponent-C63SSy9-.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DaTimEqC.js → CollegeNameComponent-DLUa5UO5.js} +8 -8
- package/chunk/{CollegeNameComponent-DtKPZHb-.js.map → CollegeNameComponent-DLUa5UO5.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-H3bJGcOM.js → CopyToClipboardComponent-BQlp--1k.js} +5 -5
- package/chunk/{CopyToClipboardComponent-9hyfSMC0.js.map → CopyToClipboardComponent-BQlp--1k.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-9hyfSMC0.js → CopyToClipboardComponent-D2lIKOi1.js} +5 -5
- package/chunk/{CopyToClipboardComponent-H3bJGcOM.js.map → CopyToClipboardComponent-D2lIKOi1.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-Ceq-eink.js → CountryComponentWrapper-7ribqnbU.js} +12 -12
- package/chunk/{CountryComponentWrapper--2UQ7mXP.js.map → CountryComponentWrapper-7ribqnbU.js.map} +1 -1
- package/chunk/{CountryComponentWrapper--2UQ7mXP.js → CountryComponentWrapper-Ucm1dIRU.js} +13 -13
- package/chunk/{CountryComponentWrapper-Ceq-eink.js.map → CountryComponentWrapper-Ucm1dIRU.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-ziLNYB8e.js → DriverLicenseNumberComponent-BOz1NpwC.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-D9cakdvU.js.map → DriverLicenseNumberComponent-BOz1NpwC.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-D9cakdvU.js → DriverLicenseNumberComponent-BeHTT5Ne.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-ziLNYB8e.js.map → DriverLicenseNumberComponent-BeHTT5Ne.js.map} +1 -1
- package/chunk/{EBTCardNumberComponent-oYQJ_tP7.js → EBTCardNumberComponent-BqsSdTW-.js} +16 -16
- package/chunk/{EBTCardNumberComponent-B1kv4R4G.js.map → EBTCardNumberComponent-BqsSdTW-.js.map} +1 -1
- package/chunk/{EBTCardNumberComponent-B1kv4R4G.js → EBTCardNumberComponent-DfeKTGSF.js} +16 -16
- package/chunk/{EBTCardNumberComponent-oYQJ_tP7.js.map → EBTCardNumberComponent-DfeKTGSF.js.map} +1 -1
- package/chunk/{EmailLoopPending-In0FH-Ap.js → EmailLoopPending-CEbt9qgk.js} +13 -13
- package/chunk/{EmailLoopPending-In0FH-Ap.js.map → EmailLoopPending-CEbt9qgk.js.map} +1 -1
- package/chunk/{EmailLoopPending-lxRF0bx8.js → EmailLoopPending-nl9f9omb.js} +13 -13
- package/chunk/{EmailLoopPending-lxRF0bx8.js.map → EmailLoopPending-nl9f9omb.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-fPxZFdpO.js → FirstResponderOrganizationComponent-3_dzxZ3b.js} +6 -6
- package/chunk/{FirstResponderOrganizationComponent-Bru1a0U7.js.map → FirstResponderOrganizationComponent-3_dzxZ3b.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Bru1a0U7.js → FirstResponderOrganizationComponent-BMDUk_Ks.js} +6 -6
- package/chunk/{FirstResponderOrganizationComponent-fPxZFdpO.js.map → FirstResponderOrganizationComponent-BMDUk_Ks.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-CjWY_ush.js → FormFieldInputSelect-DVZsJ-dJ.js} +5 -5
- package/chunk/{FormFieldInputSelect-CjWY_ush.js.map → FormFieldInputSelect-DVZsJ-dJ.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-o7QZaYhS.js → FormFieldInputSelect-Dekt13Wn.js} +5 -5
- package/chunk/{FormFieldInputSelect-o7QZaYhS.js.map → FormFieldInputSelect-Dekt13Wn.js.map} +1 -1
- package/chunk/FormFieldLayout-DDEEmlGC.js +4 -4
- package/chunk/FormFieldLayout-DEVPpEyA.js +4 -4
- package/chunk/{FormFieldText-CaWtYVur.js → FormFieldText-C5ELKxp9.js} +8 -8
- package/chunk/{FormFieldText-CJ-GVpZE.js.map → FormFieldText-C5ELKxp9.js.map} +1 -1
- package/chunk/{FormFieldText-CJ-GVpZE.js → FormFieldText-D5TNr9TU.js} +8 -8
- package/chunk/{FormFieldText-CaWtYVur.js.map → FormFieldText-D5TNr9TU.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CyKKVK89.js → FormFieldTypeahead-8mywdHOl.js} +80 -80
- package/chunk/{FormFieldTypeahead-C6eS7yJg.js.map → FormFieldTypeahead-8mywdHOl.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-C6eS7yJg.js → FormFieldTypeahead-Ckb75rso.js} +80 -80
- package/chunk/{FormFieldTypeahead-CyKKVK89.js.map → FormFieldTypeahead-Ckb75rso.js.map} +1 -1
- package/chunk/{FormSelectChoice-C-rIlDKl.js → FormSelectChoice-B_Cc1d2F.js} +15 -15
- package/chunk/{FormSelectChoice-BahCx4wG.js.map → FormSelectChoice-B_Cc1d2F.js.map} +1 -1
- package/chunk/{FormSelectChoice-BahCx4wG.js → FormSelectChoice-D_80dED1.js} +15 -15
- package/chunk/{FormSelectChoice-C-rIlDKl.js.map → FormSelectChoice-D_80dED1.js.map} +1 -1
- package/chunk/{InputText-CCNbZmMe.js → InputText-D8Ob-kQk.js} +7 -7
- package/chunk/{InputText-CCNbZmMe.js.map → InputText-D8Ob-kQk.js.map} +1 -1
- package/chunk/{InputText-PEiatRRJ.js → InputText-U-PGva3s.js} +7 -7
- package/chunk/{InputText-PEiatRRJ.js.map → InputText-U-PGva3s.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CnR_qF3r.js → LicensedProfessionalOrganizationComponent-BEwjSmfW.js} +10 -10
- package/chunk/{LicensedProfessionalOrganizationComponent-CnR_qF3r.js.map → LicensedProfessionalOrganizationComponent-BEwjSmfW.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-C5pc7hVJ.js → LicensedProfessionalOrganizationComponent-CFVIc7iQ.js} +10 -10
- package/chunk/{LicensedProfessionalOrganizationComponent-C5pc7hVJ.js.map → LicensedProfessionalOrganizationComponent-CFVIc7iQ.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CXHX25GN.js → MedicalProfessionalOrganizationComponent-C5h14pIK.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-CXHX25GN.js.map → MedicalProfessionalOrganizationComponent-C5h14pIK.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DBf6V49M.js → MedicalProfessionalOrganizationComponent-DziG8JnV.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-DBf6V49M.js.map → MedicalProfessionalOrganizationComponent-DziG8JnV.js.map} +1 -1
- package/chunk/{MemberIdComponent-oanWSvQh.js → MemberIdComponent-BScPderq.js} +5 -5
- package/chunk/{MemberIdComponent-C8mVSo9m.js.map → MemberIdComponent-BScPderq.js.map} +1 -1
- package/chunk/{MemberIdComponent-C8mVSo9m.js → MemberIdComponent-DOIYFMn2.js} +5 -5
- package/chunk/{MemberIdComponent-oanWSvQh.js.map → MemberIdComponent-DOIYFMn2.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-yu-UNXIK.js → MembershipOrganizationComponent-DYRmX21h.js} +6 -6
- package/chunk/{MembershipOrganizationComponent-CN6_d_Fk.js.map → MembershipOrganizationComponent-DYRmX21h.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CN6_d_Fk.js → MembershipOrganizationComponent-D_kZ2VLs.js} +6 -6
- package/chunk/{MembershipOrganizationComponent-yu-UNXIK.js.map → MembershipOrganizationComponent-D_kZ2VLs.js.map} +1 -1
- package/chunk/Onfido-BG8cDEVW.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-v_kWLmEw.js → PersonalInfoStepSubmitButton-22jOKa2g.js} +7 -7
- package/chunk/{PersonalInfoStepSubmitButton-j44RdZDq.js.map → PersonalInfoStepSubmitButton-22jOKa2g.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-j44RdZDq.js → PersonalInfoStepSubmitButton-Bu2zmi86.js} +7 -7
- package/chunk/{PersonalInfoStepSubmitButton-v_kWLmEw.js.map → PersonalInfoStepSubmitButton-Bu2zmi86.js.map} +1 -1
- package/chunk/PersonalInfoStepWrapper-BCVAx0W6.js +53 -0
- package/chunk/PersonalInfoStepWrapper-BCVAx0W6.js.map +1 -0
- package/chunk/PersonalInfoStepWrapper-DlKHzog8.js +102 -0
- package/chunk/PersonalInfoStepWrapper-DlKHzog8.js.map +1 -0
- package/chunk/{PostalCodeComponent-DrCcV90W.js → PostalCodeComponent-DAMiXR2z.js} +5 -5
- package/chunk/{PostalCodeComponent-DrCcV90W.js.map → PostalCodeComponent-DAMiXR2z.js.map} +1 -1
- package/chunk/{PostalCodeComponent-KXVfZkLx.js → PostalCodeComponent-gTyGTdav.js} +5 -5
- package/chunk/{PostalCodeComponent-KXVfZkLx.js.map → PostalCodeComponent-gTyGTdav.js.map} +1 -1
- package/chunk/{SSN-B_z2R4Bx.js → SSN-BZDlbDHI.js} +6 -6
- package/chunk/{SSN-B_z2R4Bx.js.map → SSN-BZDlbDHI.js.map} +1 -1
- package/chunk/{SSN-Hb1lTx8A.js → SSN-CRCZxt7F.js} +6 -6
- package/chunk/{SSN-Hb1lTx8A.js.map → SSN-CRCZxt7F.js.map} +1 -1
- package/chunk/{StateSelectComponent-CChSqKXz.js → StateSelectComponent-3VINgXA_.js} +5 -5
- package/chunk/{StateSelectComponent-CChSqKXz.js.map → StateSelectComponent-3VINgXA_.js.map} +1 -1
- package/chunk/{StateSelectComponent-CIpB-Rh1.js → StateSelectComponent-qwzKiEzn.js} +5 -5
- package/chunk/{StateSelectComponent-CIpB-Rh1.js.map → StateSelectComponent-qwzKiEzn.js.map} +1 -1
- package/chunk/{StatusComponent-C6J1B7Tl.js → StatusComponent-BA29-IR-.js} +5 -5
- package/chunk/{StatusComponent-C6J1B7Tl.js.map → StatusComponent-BA29-IR-.js.map} +1 -1
- package/chunk/{StatusComponent-pmuIhuXi.js → StatusComponent-CXBhA3Ni.js} +5 -5
- package/chunk/{StatusComponent-pmuIhuXi.js.map → StatusComponent-CXBhA3Ni.js.map} +1 -1
- package/chunk/{StepCard-dcwCtPrW.js → StepCard-BBxGouj6.js} +12 -12
- package/chunk/{StepCard-dcwCtPrW.js.map → StepCard-BBxGouj6.js.map} +1 -1
- package/chunk/{StepCard-CIfaQVu-.js → StepCard-DnOGZrfz.js} +12 -12
- package/chunk/{StepCard-CIfaQVu-.js.map → StepCard-DnOGZrfz.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-7aKgQ9Sj.js → StepCollectMilitaryStatusComponent-BVvtx9IM.js} +26 -26
- package/chunk/{StepCollectMilitaryStatusComponent-7aKgQ9Sj.js.map → StepCollectMilitaryStatusComponent-BVvtx9IM.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-BRimaaXv.js → StepCollectMilitaryStatusComponent-DS2XMziH.js} +28 -28
- package/chunk/{StepCollectMilitaryStatusComponent-BRimaaXv.js.map → StepCollectMilitaryStatusComponent-DS2XMziH.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-2TPYKvF4.js → StepDriverLicensePersonalInfoComponent-ChUK8_CL.js} +21 -21
- package/chunk/{StepDriverLicensePersonalInfoComponent-2TPYKvF4.js.map → StepDriverLicensePersonalInfoComponent-ChUK8_CL.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BwVtnrmJ.js → StepDriverLicensePersonalInfoComponent-Skr2qGUg.js} +21 -21
- package/chunk/{StepDriverLicensePersonalInfoComponent-BwVtnrmJ.js.map → StepDriverLicensePersonalInfoComponent-Skr2qGUg.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B_GAU5ZU.js → StepGeneralIdentityPersonalInfoComponent-B0RDxv-x.js} +25 -25
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B_GAU5ZU.js.map → StepGeneralIdentityPersonalInfoComponent-B0RDxv-x.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D51YIuCd.js → StepGeneralIdentityPersonalInfoComponent-CxMYNjvS.js} +24 -24
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D51YIuCd.js.map → StepGeneralIdentityPersonalInfoComponent-CxMYNjvS.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-zAjPWGNG.js → StepHybridIdentityPersonalInfoComponent-BT9_DYzR.js} +25 -25
- package/chunk/{StepHybridIdentityPersonalInfoComponent-kap6IZbx.js.map → StepHybridIdentityPersonalInfoComponent-BT9_DYzR.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-kap6IZbx.js → StepHybridIdentityPersonalInfoComponent-BgI5l8AJ.js} +24 -24
- package/chunk/{StepHybridIdentityPersonalInfoComponent-zAjPWGNG.js.map → StepHybridIdentityPersonalInfoComponent-BgI5l8AJ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Sg4a19wV.js → StepIDCheckLoopOnfido-Ba5IJMDE.js} +11 -11
- package/chunk/{StepIDCheckLoopOnfido-Sg4a19wV.js.map → StepIDCheckLoopOnfido-Ba5IJMDE.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-djTS20UT.js → StepIDCheckLoopOnfido-C4WgRPlX.js} +11 -11
- package/chunk/{StepIDCheckLoopOnfido-djTS20UT.js.map → StepIDCheckLoopOnfido-C4WgRPlX.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DZA5G1Z6.js → StepIDCheckLoopRegula-D0Hbm46j.js} +6 -6
- package/chunk/{StepIDCheckLoopRegula-B5I-ojjy.js.map → StepIDCheckLoopRegula-D0Hbm46j.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B5I-ojjy.js → StepIDCheckLoopRegula-DMJ1Pdll.js} +6 -6
- package/chunk/{StepIDCheckLoopRegula-DZA5G1Z6.js.map → StepIDCheckLoopRegula-DMJ1Pdll.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Czd3ecq6.js → StepInactiveMilitaryPersonalInfoComponent-69VnnhIn.js} +28 -28
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Czd3ecq6.js.map → StepInactiveMilitaryPersonalInfoComponent-69VnnhIn.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Bieu_7kd.js → StepInactiveMilitaryPersonalInfoComponent-BxIXowll.js} +28 -28
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Bieu_7kd.js.map → StepInactiveMilitaryPersonalInfoComponent-BxIXowll.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-Bf3ZhJ_c.js → TeacherSchoolComponent-BLfEL1Qa.js} +6 -6
- package/chunk/{TeacherSchoolComponent-BSHPjiwQ.js.map → TeacherSchoolComponent-BLfEL1Qa.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BSHPjiwQ.js → TeacherSchoolComponent-R8ERd8je.js} +6 -6
- package/chunk/{TeacherSchoolComponent-Bf3ZhJ_c.js.map → TeacherSchoolComponent-R8ERd8je.js.map} +1 -1
- package/chunk/ar-DRRl0F7-.js +4 -4
- package/chunk/bg-F0WsRCx8.js +4 -4
- package/chunk/bn-IN-CMjQj55J.js +4 -4
- package/chunk/cs-fNk_NoQI.js +4 -4
- package/chunk/da-KMILteCO.js +4 -4
- package/chunk/de-CWVNPgGa.js +4 -4
- package/chunk/{downshift.esm-huKBwB2d.js → downshift.esm-CssrXaoY.js} +5 -5
- package/chunk/{downshift.esm-CtrbqQGL.js.map → downshift.esm-CssrXaoY.js.map} +1 -1
- package/chunk/{downshift.esm-CtrbqQGL.js → downshift.esm-DdJojPIu.js} +5 -5
- package/chunk/{downshift.esm-huKBwB2d.js.map → downshift.esm-DdJojPIu.js.map} +1 -1
- package/chunk/el-Cwv4peel.js +4 -4
- package/chunk/en-GB-Dqonxi7-.js +4 -4
- package/chunk/es-ES-C4H8ciVZ.js +4 -4
- package/chunk/es-hn_UHPBI.js +4 -4
- package/chunk/fi-CYcXXvjq.js +4 -4
- package/chunk/fr-CA-CGAQ-6AP.js +4 -4
- package/chunk/fr-D_IYCyUP.js +4 -4
- package/chunk/ga-45LsHAEB.js +4 -4
- package/chunk/hi-IN-ChuePzRc.js +4 -4
- package/chunk/hr-CX75fSnP.js +4 -4
- package/chunk/hu-BaLNR_Fx.js +4 -4
- package/chunk/id-BuJILOHQ.js +4 -4
- package/chunk/{index-BbOCWcRK.js → index--4tHsN4Z.js} +14 -14
- package/chunk/{index-BbOCWcRK.js.map → index--4tHsN4Z.js.map} +1 -1
- package/chunk/{index-Cgw-oCXC.js → index-B06Vym6C.js} +17 -17
- package/chunk/{index-Blxi9-p3.js.map → index-B06Vym6C.js.map} +1 -1
- package/chunk/{index-B0SBEWOf.js → index-B5yen8fX.js} +10 -10
- package/chunk/{index-B0SBEWOf.js.map → index-B5yen8fX.js.map} +1 -1
- package/chunk/{index-CaBrLsal.js → index-B8oKdmJa.js} +16 -16
- package/chunk/{index-CaBrLsal.js.map → index-B8oKdmJa.js.map} +1 -1
- package/chunk/{index-Tt8XFCKg.js → index-B9N_35H1.js} +34 -34
- package/chunk/{index-CMYxhs0t.js.map → index-B9N_35H1.js.map} +1 -1
- package/chunk/{index-BDfHyxH2.js → index-BA0YQsod.js} +22 -22
- package/chunk/{index-BDfHyxH2.js.map → index-BA0YQsod.js.map} +1 -1
- package/chunk/{index-D62LImgf.js → index-BCrUCs6l.js} +17 -17
- package/chunk/{index-CfHHbJNm.js.map → index-BCrUCs6l.js.map} +1 -1
- package/chunk/{index-brtM2eoI.js → index-BTyiwF80.js} +15 -15
- package/chunk/{index-brtM2eoI.js.map → index-BTyiwF80.js.map} +1 -1
- package/chunk/{index-yLck7gVG.js → index-BWd3Gj_X.js} +30 -30
- package/chunk/{index-yLck7gVG.js.map → index-BWd3Gj_X.js.map} +1 -1
- package/chunk/{index-B4FcNhzB.js → index-BY7MLfGQ.js} +11 -11
- package/chunk/{index-B4FcNhzB.js.map → index-BY7MLfGQ.js.map} +1 -1
- package/chunk/{index-CMYxhs0t.js → index-BbdG7ED4.js} +36 -36
- package/chunk/{index-Tt8XFCKg.js.map → index-BbdG7ED4.js.map} +1 -1
- package/chunk/{index-D7Mqx5na.js → index-BhhbjTBf.js} +28 -28
- package/chunk/{index-D2d6x5LN.js.map → index-BhhbjTBf.js.map} +1 -1
- package/chunk/{index-dTu4ORna.js → index-Bk-uaURB.js} +9 -9
- package/chunk/{index-Brpm5gN6.js.map → index-Bk-uaURB.js.map} +1 -1
- package/chunk/{index-D2d6x5LN.js → index-BkWR02uU.js} +28 -28
- package/chunk/{index-D7Mqx5na.js.map → index-BkWR02uU.js.map} +1 -1
- package/chunk/{index-BA3bE-f-.js → index-BvGr52QK.js} +11 -11
- package/chunk/{index-BA3bE-f-.js.map → index-BvGr52QK.js.map} +1 -1
- package/chunk/{index-CrPc1exn.js → index-ByZqea9-.js} +11 -11
- package/chunk/{index-BZ1nv-sB.js.map → index-ByZqea9-.js.map} +1 -1
- package/chunk/{index-Ccp2Exqo.js → index-Bz-BZZ-I.js} +29 -29
- package/chunk/{index-Ccp2Exqo.js.map → index-Bz-BZZ-I.js.map} +1 -1
- package/chunk/{index-DGCqI3ez.js → index-CG33Xq_L.js} +29 -29
- package/chunk/{index-DGCqI3ez.js.map → index-CG33Xq_L.js.map} +1 -1
- package/chunk/{index-Di4VOQ0c.js → index-Cb8H7NMc.js} +44 -44
- package/chunk/{index-BKpiJJJ9.js.map → index-Cb8H7NMc.js.map} +1 -1
- package/chunk/{index-CwaTj-69.js → index-CbEBL8DR.js} +13 -13
- package/chunk/{index-CwaTj-69.js.map → index-CbEBL8DR.js.map} +1 -1
- package/chunk/{index-CTjvQpKK.js → index-CcVF5Mn8.js} +33 -33
- package/chunk/{index-CTjvQpKK.js.map → index-CcVF5Mn8.js.map} +1 -1
- package/chunk/{index-Bn00xQJF.js → index-CvjYvI52.js} +6 -6
- package/chunk/{index-Bn00xQJF.js.map → index-CvjYvI52.js.map} +1 -1
- package/chunk/{index-Blxi9-p3.js → index-D2ASN9F5.js} +17 -17
- package/chunk/{index-Cgw-oCXC.js.map → index-D2ASN9F5.js.map} +1 -1
- package/chunk/{index-Brpm5gN6.js → index-D7tLO360.js} +6 -6
- package/chunk/{index-dTu4ORna.js.map → index-D7tLO360.js.map} +1 -1
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/{index-BKpiJJJ9.js → index-D_jjkk6R.js} +17 -17
- package/chunk/{index-Di4VOQ0c.js.map → index-D_jjkk6R.js.map} +1 -1
- package/chunk/{index-DsIG7oZ5.js → index-DaqKa17_.js} +49 -49
- package/chunk/{index-DsIG7oZ5.js.map → index-DaqKa17_.js.map} +1 -1
- package/chunk/{index-CMwYcIy7.js → index-DaxmYxYQ.js} +33 -33
- package/chunk/{index-B0gkU4sD.js.map → index-DaxmYxYQ.js.map} +1 -1
- package/chunk/{index-CR19uOwz.js → index-Dbedpzxf.js} +8 -8
- package/chunk/{index-CR19uOwz.js.map → index-Dbedpzxf.js.map} +1 -1
- package/chunk/{index-DFoMYB8K.js → index-Ddnm8yRA.js} +9 -9
- package/chunk/{index-DFoMYB8K.js.map → index-Ddnm8yRA.js.map} +1 -1
- package/chunk/{index-CTGY1a4m.js → index-DqWLITMK.js} +9 -9
- package/chunk/{index-CTGY1a4m.js.map → index-DqWLITMK.js.map} +1 -1
- package/chunk/{index-4SoX7nBO.js → index-DtLPqeMr.js} +23 -23
- package/chunk/{index-4SoX7nBO.js.map → index-DtLPqeMr.js.map} +1 -1
- package/chunk/{index-CO75J-sD.js → index-Dxe89KuR.js} +46 -46
- package/chunk/{index-CO75J-sD.js.map → index-Dxe89KuR.js.map} +1 -1
- package/chunk/{index-DM6d_MOp.js → index-EoexN2D2.js} +23 -23
- package/chunk/{index-DM6d_MOp.js.map → index-EoexN2D2.js.map} +1 -1
- package/chunk/{index-BZ1nv-sB.js → index-c2lNIRe2.js} +11 -11
- package/chunk/{index-CrPc1exn.js.map → index-c2lNIRe2.js.map} +1 -1
- package/chunk/{index-XxwXcW8j.js → index-gSxZOEDm.js} +31 -31
- package/chunk/{index-XxwXcW8j.js.map → index-gSxZOEDm.js.map} +1 -1
- package/chunk/{index-CHDBBfsg.js → index-jkBy42Tf.js} +6 -6
- package/chunk/{index-CHDBBfsg.js.map → index-jkBy42Tf.js.map} +1 -1
- package/chunk/{index-B0gkU4sD.js → index-oh8h9rFi.js} +37 -37
- package/chunk/{index-CMwYcIy7.js.map → index-oh8h9rFi.js.map} +1 -1
- package/chunk/{index-CfHHbJNm.js → index-qnonuzV7.js} +19 -19
- package/chunk/{index-D62LImgf.js.map → index-qnonuzV7.js.map} +1 -1
- package/chunk/{index-B6DSPaeb.js → index-vT4MxpSf.js} +21 -21
- package/chunk/{index-B6DSPaeb.js.map → index-vT4MxpSf.js.map} +1 -1
- package/chunk/{index-EUJqfdiJ.js → index-wtMb5Ukv.js} +7 -7
- package/chunk/{index-EUJqfdiJ.js.map → index-wtMb5Ukv.js.map} +1 -1
- package/chunk/is-B3D8NTKa.js +4 -4
- package/chunk/it-CzAy2lzA.js +4 -4
- package/chunk/iw-C9nimuXe.js +4 -4
- package/chunk/ja-BEXgm7zu.js +4 -4
- package/chunk/ko-Ct-zPR2E.js +4 -4
- package/chunk/lo-Di9C_kLP.js +4 -4
- package/chunk/lt-CEBQxuWT.js +4 -4
- package/chunk/{militaryStepHelpers-jW2_4c1l.js → militaryStepHelpers-B7eWlfFD.js} +6 -6
- package/chunk/{militaryStepHelpers-jW2_4c1l.js.map → militaryStepHelpers-B7eWlfFD.js.map} +1 -1
- package/chunk/{militaryStepHelpers-0OUuQpBw.js → militaryStepHelpers-DwVOy2yj.js} +6 -6
- package/chunk/{militaryStepHelpers-0OUuQpBw.js.map → militaryStepHelpers-DwVOy2yj.js.map} +1 -1
- package/chunk/{mocks-CeAm-JFs.js → mocks-BbQTtWk5.js} +5 -5
- package/chunk/{mocks-CeAm-JFs.js.map → mocks-BbQTtWk5.js.map} +1 -1
- package/chunk/{mocks-ClJ0M6QH.js → mocks-Rqlyj4hz.js} +5 -5
- package/chunk/{mocks-ClJ0M6QH.js.map → mocks-Rqlyj4hz.js.map} +1 -1
- package/chunk/ms-CxGIGN7C.js +4 -4
- package/chunk/nl-BE-DPBUnfk6.js +4 -4
- package/chunk/nl-BIm7MF9X.js +4 -4
- package/chunk/no-BmBisNVx.js +4 -4
- package/chunk/pl-BOGNzi_o.js +4 -4
- package/chunk/pt-BR-uABX_syI.js +4 -4
- package/chunk/pt-MSESKPWr.js +4 -4
- package/chunk/ro-DoSzUhte.js +4 -4
- package/chunk/ru-_re-OOAp.js +4 -4
- package/chunk/sk-BS3zToE5.js +4 -4
- package/chunk/sl-CVBUMpyN.js +4 -4
- package/chunk/sr-Cmqfavur.js +4 -4
- package/chunk/sv-BzRp9aoC.js +4 -4
- package/chunk/sw-C4I4Ivyc.js +4 -4
- package/chunk/th-SsMlrFQN.js +4 -4
- package/chunk/tr-i4hcCWIF.js +4 -4
- package/chunk/uk-CLl1S03h.js +4 -4
- package/chunk/ur-CfVN1Pr2.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-Cd6d_u47.js → useCollectFieldsEndpoint-690w1BPY.js} +8 -8
- package/chunk/{useCollectFieldsEndpoint-Cd6d_u47.js.map → useCollectFieldsEndpoint-690w1BPY.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DqTjyVEr.js → useCollectFieldsEndpoint-DCP1smnC.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-DqTjyVEr.js.map → useCollectFieldsEndpoint-DCP1smnC.js.map} +1 -1
- package/chunk/{useMetrics-D2fG6cgw.js → useMetrics-CUyKTp9h.js} +5 -5
- package/chunk/{useMetrics-D2fG6cgw.js.map → useMetrics-CUyKTp9h.js.map} +1 -1
- package/chunk/{useMetrics-wq7yrL0b.js → useMetrics-DwEPEO5F.js} +5 -5
- package/chunk/{useMetrics-wq7yrL0b.js.map → useMetrics-DwEPEO5F.js.map} +1 -1
- package/chunk/vi-STS0AV-q.js +4 -4
- package/chunk/zh-HK-DGm6tmJZ.js +4 -4
- package/chunk/zh-rPW1DJOh.js +4 -4
- package/chunk/zu-D7Vc6viT.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 +1329 -1322
- package/sheerid.js.map +1 -1
- package/chunk/PersonalInfoStepWrapper-BOBNCgik.js +0 -43
- package/chunk/PersonalInfoStepWrapper-BOBNCgik.js.map +0 -1
- package/chunk/PersonalInfoStepWrapper-PV06WMKL.js +0 -39
- package/chunk/PersonalInfoStepWrapper-PV06WMKL.js.map +0 -1
|
@@ -4,22 +4,22 @@
|
|
|
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 May 19 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.233.0-alpha.1
|
|
8
|
+
* BUILD_TIMESTAMP: 1779231359982
|
|
9
|
+
* BUILD_DATE: Tue May 19 2026 22:55:59 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
|
|
11
11
|
*/
|
|
12
|
-
import { i as
|
|
13
|
-
import { F as P, L as k, P as V, a as z, M as A, C as L } from "./CaptchaComponent-
|
|
14
|
-
import { E as w, P as H } from "./PersonalInfoStepSubmitButton-
|
|
15
|
-
import { A as R } from "./AddressComponent-
|
|
16
|
-
import { C as B } from "./City-
|
|
17
|
-
import { S as O } from "./StateSelectComponent-
|
|
18
|
-
import { F as
|
|
19
|
-
import { P as
|
|
20
|
-
import { C as
|
|
21
|
-
import { C as W } from "./ChangeLocaleComponent-
|
|
22
|
-
import { P as K } from "./PersonalInfoStepWrapper-
|
|
12
|
+
import { i as b, g as n, j as a, a as y, F as p, P as j, a9 as h, $ as E, m as r, Z as M, k as f, W as N, V as F, o as T, b as I } from "../_mysheerid-preview.js";
|
|
13
|
+
import { F as P, L as k, P as V, a as z, M as A, C as L } from "./CaptchaComponent-CajCtTWY.js";
|
|
14
|
+
import { E as w, P as H } from "./PersonalInfoStepSubmitButton-22jOKa2g.js";
|
|
15
|
+
import { A as R } from "./AddressComponent-DKaHo8cD.js";
|
|
16
|
+
import { C as B } from "./City-CvuPh0vE.js";
|
|
17
|
+
import { S as O } from "./StateSelectComponent-qwzKiEzn.js";
|
|
18
|
+
import { F as q } from "./FormFieldTypeahead-8mywdHOl.js";
|
|
19
|
+
import { P as D } from "./PostalCodeComponent-gTyGTdav.js";
|
|
20
|
+
import { C as U } from "./CountryComponentWrapper-Ucm1dIRU.js";
|
|
21
|
+
import { C as W } from "./ChangeLocaleComponent-BLoBbyRc.js";
|
|
22
|
+
import { P as K } from "./PersonalInfoStepWrapper-DlKHzog8.js";
|
|
23
23
|
const Y = ({
|
|
24
24
|
value: i,
|
|
25
25
|
isErrored: e,
|
|
@@ -29,7 +29,7 @@ const Y = ({
|
|
|
29
29
|
placeholder: l = "",
|
|
30
30
|
disabled: s = !1
|
|
31
31
|
}) => n("organization")?.hidden ? null : /* @__PURE__ */ a.jsx(
|
|
32
|
-
|
|
32
|
+
q,
|
|
33
33
|
{
|
|
34
34
|
fieldId: "company",
|
|
35
35
|
value: i,
|
|
@@ -44,14 +44,14 @@ const Y = ({
|
|
|
44
44
|
defaultMessage: "You must select an organization from the list"
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
orgSearchUrl:
|
|
47
|
+
orgSearchUrl: y(
|
|
48
48
|
d.viewModel,
|
|
49
49
|
d.programTheme
|
|
50
50
|
),
|
|
51
51
|
showPlaceholderAndHideLabel: !!l,
|
|
52
52
|
disabled: s
|
|
53
53
|
}
|
|
54
|
-
),
|
|
54
|
+
), Z = b(Y), $ = ({
|
|
55
55
|
intl: i,
|
|
56
56
|
verificationService: e
|
|
57
57
|
}) => {
|
|
@@ -79,7 +79,7 @@ const Y = ({
|
|
|
79
79
|
),
|
|
80
80
|
/* @__PURE__ */ a.jsx(W, { verificationService: e }),
|
|
81
81
|
/* @__PURE__ */ a.jsx(
|
|
82
|
-
|
|
82
|
+
U,
|
|
83
83
|
{
|
|
84
84
|
verificationService: e,
|
|
85
85
|
disabled: n("country")?.disabled,
|
|
@@ -90,14 +90,14 @@ const Y = ({
|
|
|
90
90
|
e.programTheme.config.countries
|
|
91
91
|
);
|
|
92
92
|
const u = ["address1", "city", "state", "postalCode"], g = (t.fieldsToSkipValidation || []).filter(
|
|
93
|
-
(
|
|
93
|
+
(x) => !u.includes(x)
|
|
94
94
|
);
|
|
95
95
|
t.shouldCollectAddress ? t.fieldsToSkipValidation = g.length ? g : void 0 : (t.address1 = "", t.city = "", t.state = "", t.postalCode = "", t.fieldsToSkipValidation = [...g, ...u]);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
),
|
|
99
99
|
/* @__PURE__ */ a.jsx(
|
|
100
|
-
|
|
100
|
+
Z,
|
|
101
101
|
{
|
|
102
102
|
value: e.viewModel.organization,
|
|
103
103
|
verificationService: e,
|
|
@@ -182,7 +182,7 @@ const Y = ({
|
|
|
182
182
|
}
|
|
183
183
|
),
|
|
184
184
|
/* @__PURE__ */ a.jsx(
|
|
185
|
-
|
|
185
|
+
D,
|
|
186
186
|
{
|
|
187
187
|
isErrored: !!d.postalCode,
|
|
188
188
|
onChange: (s) => {
|
|
@@ -267,7 +267,7 @@ const Y = ({
|
|
|
267
267
|
]
|
|
268
268
|
}
|
|
269
269
|
);
|
|
270
|
-
}, os =
|
|
270
|
+
}, os = b($);
|
|
271
271
|
export {
|
|
272
272
|
os as default
|
|
273
273
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-4SoX7nBO.js","sources":["../../src/components/FormFields/Company/CompanyComponent.tsx","../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const Company = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"company\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"companyPlaceholder\", defaultMessage: \"Company\" })\n }\n label={<FormattedHTMLMessage id=\"company\" defaultMessage=\"Company\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CompanyComponent = injectIntl(Company);\n","/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type VerificationService,\n type Organization,\n type EmploymentPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type State,\n type FieldId,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n const addressFields: FieldId[] = [\"address1\", \"city\", \"state\", \"postalCode\"];\n const existing = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => !addressFields.includes(id),\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [...existing, ...addressFields];\n } else {\n viewModel.fieldsToSkipValidation = existing.length ? existing : undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\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 updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"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.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["Company","value","isErrored","onChange","verificationService","intl","placeholder","disabled","getFieldConfigByFieldId","jsx","FormFieldTypeahead","choice","FormattedHTMLMessage","getOrgSearchUrl","CompanyComponent","injectIntl","StepEmploymentPersonalInfo","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","nextState","produce","draft","jsxs","PersonalInfoWrapper","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","countryChoice","shouldCollectAddressFields","addressFields","existing","id","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","newValue","LastName","AddressComponent","CityComponent","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","PostalCodeComponent","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent"],"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qB,MAAa;AACtB,cAAAlB,EAA0B,YAAY;AAAA,gBACpC,GAAGjB,EAAoB,UAAU;AAAA,gBACjC,oBAAoBmC;AAAA,cAAA,CACrB,GACDF,EAAqC,sBAAsBE,GAAUnC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAa;AAAA,YACA,UAAUT,EAAwB,oBAAoB,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAG3DC,gBAAAA,EAAAA,IAAC8C,GAAA,EAAa,qBAAAnD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QAEpFK,gBAAAA,EAAAA;AAAAA,UAAC+C;AAAA,UAAA;AAAA,YACC,qBAAApD;AAAA,YACA,WAAW,CAAC,CAACc,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrCT,gBAAAA,EAAAA;AAAAA,UAACgD;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAtD;AAAA,YACA,WAAAa;AAAA,YACA,YACER,gBAAAA,EAAAA;AAAAA,cAACG;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAGa+C,KAAsC5C,EAAWC,CAA0B;"}
|
|
1
|
+
{"version":3,"file":"index-DtLPqeMr.js","sources":["../../src/components/FormFields/Company/CompanyComponent.tsx","../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const Company = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"company\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"companyPlaceholder\", defaultMessage: \"Company\" })\n }\n label={<FormattedHTMLMessage id=\"company\" defaultMessage=\"Company\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CompanyComponent = injectIntl(Company);\n","/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type VerificationService,\n type Organization,\n type EmploymentPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type State,\n type FieldId,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n const addressFields: FieldId[] = [\"address1\", \"city\", \"state\", \"postalCode\"];\n const existing = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => !addressFields.includes(id),\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [...existing, ...addressFields];\n } else {\n viewModel.fieldsToSkipValidation = existing.length ? existing : undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\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 updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"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 updateEmploymentViewModel(\"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.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"names":["Company","value","isErrored","onChange","verificationService","intl","placeholder","disabled","getFieldConfigByFieldId","jsx","FormFieldTypeahead","choice","FormattedHTMLMessage","getOrgSearchUrl","CompanyComponent","injectIntl","StepEmploymentPersonalInfo","viewModel","fieldValidationErrors","options","getOptions","updateEmploymentViewModel","key","nextState","produce","draft","jsxs","PersonalInfoWrapper","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","countryChoice","shouldCollectAddressFields","addressFields","existing","id","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","FirstName","newValue","LastName","AddressComponent","CityComponent","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","PostalCodeComponent","Email","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepEmploymentPersonalInfoComponent"],"mappings":";;;;;;;;;;;AAYO,MAAMA,IAAU,CAAC;AAAA,EACtB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,UAAAC,IAAW;AACb,MACwBC,EAAwB,cAAc,GAAG,SAGtD,OAIPC,gBAAAA,EAAAA;AAAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAAQ;AAAA,IACR,OAAAT;AAAA,IACA,qBAAAG;AAAA,IACA,UAAU,CAACO,MAAyBR,EAASQ,CAAM;AAAA,IACnD,aACEL,KACAD,EAAK,kBAAkB,EAAE,IAAI,sBAAsB,gBAAgB,WAAW;AAAA,IAEhF,OAAOI,gBAAAA,EAAAA,IAACG,GAAA,EAAqB,IAAG,WAAU,gBAAe,WAAU;AAAA,IACnE,cACEV,KACEO,gBAAAA,EAAAA;AAAAA,MAACG;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,gBAAe;AAAA,MAAA;AAAA,IAAA;AAAA,IAIrB,cAAcC;AAAA,MAC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BACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAGa+C,KAAsC5C,EAAWC,CAA0B;"}
|
|
@@ -4,60 +4,60 @@
|
|
|
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 May 19 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.233.0-alpha.1
|
|
8
|
+
* BUILD_TIMESTAMP: 1779231359982
|
|
9
|
+
* BUILD_DATE: Tue May 19 2026 22:55:59 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 5a2425d625d875ef656bb4cf2539177a8f02c67d
|
|
11
11
|
*/
|
|
12
|
-
import { i as w, R as h,
|
|
13
|
-
import { F as S, L as v, P as aa, a as ea, M as sa, C as ta } from "./CaptchaComponent-
|
|
14
|
-
import { C as oa } from "./CollegeNameComponent-
|
|
15
|
-
import { E as da, P as ra } from "./PersonalInfoStepSubmitButton-
|
|
16
|
-
import { B as na } from "./militaryStepHelpers-
|
|
17
|
-
import { C as la } from "./CountryComponentWrapper
|
|
18
|
-
import { C as ma } from "./City-
|
|
19
|
-
import { S as ua } from "./StateSelectComponent-
|
|
20
|
-
import { P as ia } from "./PostalCodeComponent-
|
|
21
|
-
import { A as ba } from "./AddressComponent-
|
|
22
|
-
import { D as pa, A as ga, B as Ca } from "./ActiveDutyStartDateComponent-
|
|
23
|
-
import { D as ha } from "./DriverLicenseNumberComponent-
|
|
24
|
-
import { E as Ea, L as Na } from "./EBTCardNumberComponent-
|
|
25
|
-
import { S as Ia } from "./StatusComponent-
|
|
26
|
-
import { F as xa } from "./FirstResponderOrganizationComponent-
|
|
27
|
-
import { L as Ma } from "./LicensedProfessionalOrganizationComponent-
|
|
28
|
-
import { M as
|
|
29
|
-
import { M as
|
|
30
|
-
import { M as za } from "./MembershipOrganizationComponent-
|
|
31
|
-
import { T as Ra } from "./TeacherSchoolComponent-
|
|
32
|
-
import { S as ya } from "./SSN-
|
|
12
|
+
import { i as w, R as h, h as B, ao as m, ap as f, N as k, V as R, j as s, P as W, g as d, m as r, aq as _, a3 as V, k as Y, F as M, f as H, Z as $, W as K, n as U, ar as G, e as j, l as Z, o as J, G as Q, $ as b, b as X, as as c } from "../_mysheerid-preview.js";
|
|
13
|
+
import { F as S, L as v, P as aa, a as ea, M as sa, C as ta } from "./CaptchaComponent-CajCtTWY.js";
|
|
14
|
+
import { C as oa } from "./CollegeNameComponent-DLUa5UO5.js";
|
|
15
|
+
import { E as da, P as ra } from "./PersonalInfoStepSubmitButton-22jOKa2g.js";
|
|
16
|
+
import { B as na } from "./militaryStepHelpers-B7eWlfFD.js";
|
|
17
|
+
import { C as la } from "./CountryComponentWrapper-Ucm1dIRU.js";
|
|
18
|
+
import { C as ma } from "./City-CvuPh0vE.js";
|
|
19
|
+
import { S as ua } from "./StateSelectComponent-qwzKiEzn.js";
|
|
20
|
+
import { P as ia } from "./PostalCodeComponent-gTyGTdav.js";
|
|
21
|
+
import { A as ba } from "./AddressComponent-DKaHo8cD.js";
|
|
22
|
+
import { D as pa, A as ga, B as Ca } from "./ActiveDutyStartDateComponent-vtVgKCY6.js";
|
|
23
|
+
import { D as ha } from "./DriverLicenseNumberComponent-BeHTT5Ne.js";
|
|
24
|
+
import { E as Ea, L as Na } from "./EBTCardNumberComponent-BqsSdTW-.js";
|
|
25
|
+
import { S as Ia } from "./StatusComponent-CXBhA3Ni.js";
|
|
26
|
+
import { F as xa } from "./FirstResponderOrganizationComponent-3_dzxZ3b.js";
|
|
27
|
+
import { L as Ma } from "./LicensedProfessionalOrganizationComponent-CFVIc7iQ.js";
|
|
28
|
+
import { M as ja } from "./MedicalProfessionalOrganizationComponent-C5h14pIK.js";
|
|
29
|
+
import { M as Da } from "./MemberIdComponent-BScPderq.js";
|
|
30
|
+
import { M as za } from "./MembershipOrganizationComponent-DYRmX21h.js";
|
|
31
|
+
import { T as Ra } from "./TeacherSchoolComponent-BLfEL1Qa.js";
|
|
32
|
+
import { S as ya } from "./SSN-CRCZxt7F.js";
|
|
33
33
|
const Fa = ({
|
|
34
34
|
intl: E,
|
|
35
35
|
verificationService: e
|
|
36
36
|
}) => {
|
|
37
|
-
const t = e.viewModel, { updateViewModel:
|
|
38
|
-
const g =
|
|
37
|
+
const t = e.viewModel, { updateViewModel: D, programTheme: y } = e, [p, F] = h.useState(void 0), l = (a) => p && p.some((i) => i.key === a), { fieldValidationErrors: o } = e, C = e.verificationResponse, L = B(C), n = (a, i) => {
|
|
38
|
+
const g = J(
|
|
39
39
|
t,
|
|
40
40
|
(A) => {
|
|
41
41
|
A[a] = i;
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
|
-
|
|
44
|
+
D(g);
|
|
45
45
|
}, O = (a) => {
|
|
46
46
|
const i = c(
|
|
47
47
|
t,
|
|
48
48
|
a
|
|
49
49
|
);
|
|
50
|
-
|
|
51
|
-
}, N = t.localeChoice.value, T =
|
|
50
|
+
D(i);
|
|
51
|
+
}, N = t.localeChoice.value, T = X(), { segment: u, availableStatuses: I } = C, P = u.charAt(0).toUpperCase() + u.slice(1), z = () => I && (u === m.FIRST_RESPONDER || u === m.MEDICAL || u === m.LOW_INCOME || u === m.LICENSED_PROFESSIONAL || u === m.EMPLOYMENT || u === m.RECENT_MOVER || u === m.MILITARY), x = (a) => (async () => {
|
|
52
52
|
try {
|
|
53
53
|
const i = await G(
|
|
54
54
|
C.verificationId,
|
|
55
55
|
C.currentStep,
|
|
56
56
|
a
|
|
57
|
-
), g =
|
|
57
|
+
), g = j(() => i.fieldsToCollect.required, []);
|
|
58
58
|
z() && g.push({ key: "status" }), O(g), F(g);
|
|
59
59
|
} catch (i) {
|
|
60
|
-
|
|
60
|
+
Z.error(`Failed to determine fields to collect: ${i}`);
|
|
61
61
|
}
|
|
62
62
|
})(), q = () => {
|
|
63
63
|
switch (u) {
|
|
@@ -110,10 +110,10 @@ const Fa = ({
|
|
|
110
110
|
b(a, e), r("organization", a, e);
|
|
111
111
|
},
|
|
112
112
|
value: {
|
|
113
|
-
value:
|
|
113
|
+
value: j(
|
|
114
114
|
() => e.viewModel.organization.id
|
|
115
115
|
),
|
|
116
|
-
label:
|
|
116
|
+
label: j(
|
|
117
117
|
() => e.viewModel.organization.name
|
|
118
118
|
)
|
|
119
119
|
},
|
|
@@ -136,7 +136,7 @@ const Fa = ({
|
|
|
136
136
|
);
|
|
137
137
|
case m.MEDICAL:
|
|
138
138
|
return /* @__PURE__ */ s.jsx(
|
|
139
|
-
|
|
139
|
+
ja,
|
|
140
140
|
{
|
|
141
141
|
isErrored: !!o.organization,
|
|
142
142
|
onChange: (a) => {
|
|
@@ -168,7 +168,7 @@ const Fa = ({
|
|
|
168
168
|
onChange: (a) => {
|
|
169
169
|
b(a, e), r("organization", a, e);
|
|
170
170
|
},
|
|
171
|
-
value:
|
|
171
|
+
value: Q(
|
|
172
172
|
e.viewModel.organization
|
|
173
173
|
),
|
|
174
174
|
verificationService: e,
|
|
@@ -183,7 +183,7 @@ const Fa = ({
|
|
|
183
183
|
return h.useEffect(() => {
|
|
184
184
|
I && u === m.MILITARY ? x({ statuses: [] }) : x({});
|
|
185
185
|
}, []), h.useEffect(() => {
|
|
186
|
-
!
|
|
186
|
+
!f(y).enabled && p && p.length === 0 && k(t, e, R.collectPersonalInfo);
|
|
187
187
|
}, [p]), h.useEffect(() => {
|
|
188
188
|
t.status && x({ statuses: [t.status] });
|
|
189
189
|
}, [t.status]), /* @__PURE__ */ s.jsxs(
|
|
@@ -194,7 +194,7 @@ const Fa = ({
|
|
|
194
194
|
children: [
|
|
195
195
|
/* @__PURE__ */ s.jsxs("div", { role: "main", children: [
|
|
196
196
|
/* @__PURE__ */ s.jsx(
|
|
197
|
-
|
|
197
|
+
W,
|
|
198
198
|
{
|
|
199
199
|
verificationService: e,
|
|
200
200
|
classNameIdentifier: "personal-info"
|
|
@@ -213,11 +213,11 @@ const Fa = ({
|
|
|
213
213
|
segmentId: u,
|
|
214
214
|
value: {
|
|
215
215
|
value: t.status,
|
|
216
|
-
label:
|
|
216
|
+
label: V(E, t.status, null)
|
|
217
217
|
},
|
|
218
218
|
isErrored: !!o.status,
|
|
219
219
|
errorId: `invalid${P}Status`,
|
|
220
|
-
options:
|
|
220
|
+
options: _(E, I),
|
|
221
221
|
disabled: d("status")?.disabled,
|
|
222
222
|
onChange: (a) => {
|
|
223
223
|
n("status", a ? a.value : ""), r(
|
|
@@ -275,7 +275,7 @@ const Fa = ({
|
|
|
275
275
|
onChange: (a) => {
|
|
276
276
|
n("email", a), r("email", a, e);
|
|
277
277
|
},
|
|
278
|
-
onKeyDown: (a) =>
|
|
278
|
+
onKeyDown: (a) => Y(a),
|
|
279
279
|
disabled: d("email")?.disabled
|
|
280
280
|
}
|
|
281
281
|
),
|
|
@@ -358,7 +358,7 @@ const Fa = ({
|
|
|
358
358
|
}
|
|
359
359
|
),
|
|
360
360
|
l("memberId") && /* @__PURE__ */ s.jsx(
|
|
361
|
-
|
|
361
|
+
Da,
|
|
362
362
|
{
|
|
363
363
|
value: t.memberId,
|
|
364
364
|
isErrored: !!o.memberId,
|
|
@@ -407,7 +407,7 @@ const Fa = ({
|
|
|
407
407
|
ua,
|
|
408
408
|
{
|
|
409
409
|
isRequired: !0,
|
|
410
|
-
options:
|
|
410
|
+
options: $(e.programTheme, E),
|
|
411
411
|
value: t.state || void 0,
|
|
412
412
|
isErrored: !!o.state,
|
|
413
413
|
onChange: async (a) => {
|
|
@@ -479,11 +479,11 @@ const Fa = ({
|
|
|
479
479
|
}
|
|
480
480
|
)
|
|
481
481
|
] }),
|
|
482
|
-
/* @__PURE__ */ s.jsx(
|
|
482
|
+
/* @__PURE__ */ s.jsx(U, { verificationService: e })
|
|
483
483
|
]
|
|
484
484
|
}
|
|
485
485
|
);
|
|
486
|
-
},
|
|
486
|
+
}, Qa = w(Fa);
|
|
487
487
|
export {
|
|
488
|
-
|
|
488
|
+
Qa as default
|
|
489
489
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CO75J-sD.js","sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\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 updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\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.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"names":["StepCollectPersonalInfo","intl","verificationService","viewModel","updateViewModel","programTheme","requiredFields","setRequiredFields","React","isFieldRequired","key","field","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updatePersonalInfoViewModel","value","nextState","produce","draft","updateViewModelWithRequiredFields","newRequiredFields","produceDraftViewModelWithAllRequiredFields","locale","options","getOptions","segment","availableStatuses","pascalCaseSegment","isStatusRequired","SegmentEnum","getAndSetRequiredFields","requestBody","collectFieldsResponse","getAllFieldsToCollect","getSafe","error","logger","getOrganizationField","jsx","CollegeName","getFieldConfigByFieldId","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","TeacherSchool","MembershipOrganization","BranchOfService","FirstResponderOrganization","MedicalProfessionalOrganization","LicensedProfessionalOrganization","LowIncomeOrganization","orgToOption","getMarketConsent","submitForm","VerificationStepsEnum","jsxs","PersonalInfoHeader","CountryComponentWrapper","Status","getStatusLabel","getAvailableStatuses","status","FirstName","newValue","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","AddressComponent","CityComponent","DischargeDateComponent","DriverLicenseNumber","EBTCardNumberComponent","MemberId","FormattedHTMLMessage","PostalCodeComponent","SocialSecurityNumber","FieldIdEnum","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","ActiveDutyStartDateComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","FormFooter","StepCollectPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0EO,MAAMA,KAA0B,CAAC;AAAA,EACtC,MAAAC;AAAA,EACA,qBAAAC;AACF,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,kBACAoB;AAAA,kBACA/D;AAAA,gBAAA;AAAA,cAEJ;AAAA,cACA,WAAAC;AAAA,cACA,UAAUuC,EAAwB,oBAAoB,GAAG;AAAA,YAAA;AAAA,UAAA;AAAA,UAG3DF,gBAAAA,EAAAA,IAACkD,GAAA,EAAa,qBAAAxF,GAA0C,QAAO,qBAAA,CAAqB;AAAA,UAEpFsC,gBAAAA,EAAAA;AAAAA,YAACmD;AAAA,YAAA;AAAA,cACC,qBAAAzF;AAAA,cACA,WAAW,CAAC,CAACU,EAAsB;AAAA,YAAA;AAAA,UAAA;AAAA,UAGrC4B,gBAAAA,EAAAA;AAAAA,YAACoD;AAAA,YAAA;AAAA,cACC,MAAMpC,EAAsB;AAAA,cAC5B,qBAAAtD;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAW;AAAA,cACA,YACE0B,gBAAAA,EAAAA;AAAAA,gBAACsC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,GACF;AAAA,QACAtC,gBAAAA,MAACqD,KAAW,qBAAA3F,EAAA,CAA0C;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D,GAEa4F,KAAmCC,EAAW/F,EAAuB;"}
|
|
1
|
+
{"version":3,"file":"index-Dxe89KuR.js","sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\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 updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\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.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"names":["StepCollectPersonalInfo","intl","verificationService","viewModel","updateViewModel","programTheme","requiredFields","setRequiredFields","React","isFieldRequired","key","field","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","updatePersonalInfoViewModel","value","nextState","produce","draft","updateViewModelWithRequiredFields","newRequiredFields","produceDraftViewModelWithAllRequiredFields","locale","options","getOptions","segment","availableStatuses","pascalCaseSegment","isStatusRequired","SegmentEnum","getAndSetRequiredFields","requestBody","collectFieldsResponse","getAllFieldsToCollect","getSafe","error","logger","getOrganizationField","jsx","CollegeName","getFieldConfigByFieldId","choice","updateViewModelOrganization","updateFieldValidationErrorsByFieldId","TeacherSchool","MembershipOrganization","BranchOfService","FirstResponderOrganization","MedicalProfessionalOrganization","LicensedProfessionalOrganization","LowIncomeOrganization","orgToOption","getMarketConsent","submitForm","VerificationStepsEnum","jsxs","PersonalInfoHeader","CountryComponentWrapper","Status","getStatusLabel","getAvailableStatuses","status","FirstName","newValue","LastName","BirthDate","Email","event","handleEmailOnKeyDown","PhoneNumber","AddressComponent","CityComponent","DischargeDateComponent","DriverLicenseNumber","EBTCardNumberComponent","MemberId","FormattedHTMLMessage","PostalCodeComponent","SocialSecurityNumber","FieldIdEnum","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","ActiveDutyStartDateComponent","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","FormFooter","StepCollectPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0EO,MAAMA,KAA0B,CAAC;AAAA,EACtC,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoC;AAClC,QAAMC,IAAYD,EAAoB,WAChC,EAAE,iBAAAE,GAAiB,cAAAC,EAAA,IAAiBH,GAEpC,CAACI,GAAgBC,CAAiB,IAAIC,EAAM,SAA6B,MAAS,GAElFC,IAAkB,CAACC,MACvBJ,KAAkBA,EAAe,KAAK,CAACK,MAAUA,EAAM,QAAQD,CAAG,GAE9D,EAAE,uBAAAE,MAA0BV,GAC5BW,IACJX,EAAoB,sBAChBY,IAAqBC,EAAsBF,CAAoB,GAE/DG,IAA8B,CAACN,GAAyCO,MAAe;AAC3F,UAAMC,IAA0CC;AAAAA,MAC9ChB;AAAA,MACA,CAACiB,MAAwC;AACtC,QAAAA,EAAMV,CAAG,IAAYO;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAb,EAAgBc,CAAS;AAAA,EAC3B,GAEMG,IAAoC,CAACC,MAA0C;AACnF,UAAMJ,IAA0CK;A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