@sheerid/jslib-nightly 2.232.0-alpha.0 → 2.232.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +3 -3
- package/_mysheerid-preview.js +1348 -1310
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{ActiveDutyStartDateComponent-vtVgKCY6.js → ActiveDutyStartDateComponent-BNwC2c3Y.js} +13 -13
- package/chunk/{ActiveDutyStartDateComponent-BqqZPmED.js.map → ActiveDutyStartDateComponent-BNwC2c3Y.js.map} +1 -1
- package/chunk/{ActiveDutyStartDateComponent-BqqZPmED.js → ActiveDutyStartDateComponent-CF9c-0bL.js} +13 -13
- package/chunk/{ActiveDutyStartDateComponent-vtVgKCY6.js.map → ActiveDutyStartDateComponent-CF9c-0bL.js.map} +1 -1
- package/chunk/{AddressComponent-uP4u4iGw.js → AddressComponent-AiyIPiCz.js} +4 -4
- package/chunk/{AddressComponent-DKaHo8cD.js.map → AddressComponent-AiyIPiCz.js.map} +1 -1
- package/chunk/{AddressComponent-DKaHo8cD.js → AddressComponent-DV2Wsw6k.js} +4 -4
- package/chunk/{AddressComponent-uP4u4iGw.js.map → AddressComponent-DV2Wsw6k.js.map} +1 -1
- package/chunk/{CaptchaComponent-CajCtTWY.js → CaptchaComponent-CnWyxiTy.js} +173 -173
- package/chunk/{CaptchaComponent-BVvwKmWz.js.map → CaptchaComponent-CnWyxiTy.js.map} +1 -1
- package/chunk/{CaptchaComponent-BVvwKmWz.js → CaptchaComponent-SmUa6m52.js} +173 -173
- package/chunk/{CaptchaComponent-CajCtTWY.js.map → CaptchaComponent-SmUa6m52.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BLoBbyRc.js → ChangeLocaleComponent-Cu2DR-Q3.js} +11 -11
- package/chunk/{ChangeLocaleComponent-BLoBbyRc.js.map → ChangeLocaleComponent-Cu2DR-Q3.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Cd8lWGKu.js → ChangeLocaleComponent-DUnfgQuX.js} +11 -11
- package/chunk/{ChangeLocaleComponent-Cd8lWGKu.js.map → ChangeLocaleComponent-DUnfgQuX.js.map} +1 -1
- package/chunk/{City-CvuPh0vE.js → City-BmrJpnS6.js} +4 -4
- package/chunk/{City-BO8oii6s.js.map → City-BmrJpnS6.js.map} +1 -1
- package/chunk/{City-BO8oii6s.js → City-yVVnZQTP.js} +4 -4
- package/chunk/{City-CvuPh0vE.js.map → City-yVVnZQTP.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DLUa5UO5.js → CollegeNameComponent-DaTimEqC.js} +7 -7
- package/chunk/{CollegeNameComponent-C63SSy9-.js.map → CollegeNameComponent-DaTimEqC.js.map} +1 -1
- package/chunk/{CollegeNameComponent-C63SSy9-.js → CollegeNameComponent-DtKPZHb-.js} +7 -7
- package/chunk/{CollegeNameComponent-DLUa5UO5.js.map → CollegeNameComponent-DtKPZHb-.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-D2lIKOi1.js → CopyToClipboardComponent-9hyfSMC0.js} +4 -4
- package/chunk/{CopyToClipboardComponent-BQlp--1k.js.map → CopyToClipboardComponent-9hyfSMC0.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-BQlp--1k.js → CopyToClipboardComponent-H3bJGcOM.js} +4 -4
- package/chunk/{CopyToClipboardComponent-D2lIKOi1.js.map → CopyToClipboardComponent-H3bJGcOM.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-Ucm1dIRU.js → CountryComponentWrapper--2UQ7mXP.js} +12 -12
- package/chunk/{CountryComponentWrapper-7ribqnbU.js.map → CountryComponentWrapper--2UQ7mXP.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-7ribqnbU.js → CountryComponentWrapper-Ceq-eink.js} +11 -11
- package/chunk/{CountryComponentWrapper-Ucm1dIRU.js.map → CountryComponentWrapper-Ceq-eink.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-BeHTT5Ne.js → DriverLicenseNumberComponent-D9cakdvU.js} +4 -4
- package/chunk/{DriverLicenseNumberComponent-BOz1NpwC.js.map → DriverLicenseNumberComponent-D9cakdvU.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-BOz1NpwC.js → DriverLicenseNumberComponent-ziLNYB8e.js} +4 -4
- package/chunk/{DriverLicenseNumberComponent-BeHTT5Ne.js.map → DriverLicenseNumberComponent-ziLNYB8e.js.map} +1 -1
- package/chunk/{EBTCardNumberComponent-DfeKTGSF.js → EBTCardNumberComponent-B1kv4R4G.js} +15 -15
- package/chunk/{EBTCardNumberComponent-BqsSdTW-.js.map → EBTCardNumberComponent-B1kv4R4G.js.map} +1 -1
- package/chunk/{EBTCardNumberComponent-BqsSdTW-.js → EBTCardNumberComponent-oYQJ_tP7.js} +15 -15
- package/chunk/{EBTCardNumberComponent-DfeKTGSF.js.map → EBTCardNumberComponent-oYQJ_tP7.js.map} +1 -1
- package/chunk/{EmailLoopPending-CEbt9qgk.js → EmailLoopPending-In0FH-Ap.js} +12 -12
- package/chunk/{EmailLoopPending-CEbt9qgk.js.map → EmailLoopPending-In0FH-Ap.js.map} +1 -1
- package/chunk/{EmailLoopPending-nl9f9omb.js → EmailLoopPending-lxRF0bx8.js} +12 -12
- package/chunk/{EmailLoopPending-nl9f9omb.js.map → EmailLoopPending-lxRF0bx8.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BMDUk_Ks.js → FirstResponderOrganizationComponent-Bru1a0U7.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-3_dzxZ3b.js.map → FirstResponderOrganizationComponent-Bru1a0U7.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-3_dzxZ3b.js → FirstResponderOrganizationComponent-fPxZFdpO.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-BMDUk_Ks.js.map → FirstResponderOrganizationComponent-fPxZFdpO.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DVZsJ-dJ.js → FormFieldInputSelect-CjWY_ush.js} +4 -4
- package/chunk/{FormFieldInputSelect-DVZsJ-dJ.js.map → FormFieldInputSelect-CjWY_ush.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Dekt13Wn.js → FormFieldInputSelect-o7QZaYhS.js} +4 -4
- package/chunk/{FormFieldInputSelect-Dekt13Wn.js.map → FormFieldInputSelect-o7QZaYhS.js.map} +1 -1
- package/chunk/FormFieldLayout-DDEEmlGC.js +3 -3
- package/chunk/FormFieldLayout-DEVPpEyA.js +3 -3
- package/chunk/{FormFieldText-D5TNr9TU.js → FormFieldText-CJ-GVpZE.js} +7 -7
- package/chunk/{FormFieldText-C5ELKxp9.js.map → FormFieldText-CJ-GVpZE.js.map} +1 -1
- package/chunk/{FormFieldText-C5ELKxp9.js → FormFieldText-CaWtYVur.js} +7 -7
- package/chunk/{FormFieldText-D5TNr9TU.js.map → FormFieldText-CaWtYVur.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-Ckb75rso.js → FormFieldTypeahead-C6eS7yJg.js} +79 -79
- package/chunk/{FormFieldTypeahead-8mywdHOl.js.map → FormFieldTypeahead-C6eS7yJg.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-8mywdHOl.js → FormFieldTypeahead-CyKKVK89.js} +79 -79
- package/chunk/{FormFieldTypeahead-Ckb75rso.js.map → FormFieldTypeahead-CyKKVK89.js.map} +1 -1
- package/chunk/{FormSelectChoice-D_80dED1.js → FormSelectChoice-BahCx4wG.js} +14 -14
- package/chunk/{FormSelectChoice-B_Cc1d2F.js.map → FormSelectChoice-BahCx4wG.js.map} +1 -1
- package/chunk/{FormSelectChoice-B_Cc1d2F.js → FormSelectChoice-C-rIlDKl.js} +14 -14
- package/chunk/{FormSelectChoice-D_80dED1.js.map → FormSelectChoice-C-rIlDKl.js.map} +1 -1
- package/chunk/{InputText-D8Ob-kQk.js → InputText-CCNbZmMe.js} +6 -6
- package/chunk/{InputText-U-PGva3s.js.map → InputText-CCNbZmMe.js.map} +1 -1
- package/chunk/{InputText-U-PGva3s.js → InputText-PEiatRRJ.js} +6 -6
- package/chunk/{InputText-D8Ob-kQk.js.map → InputText-PEiatRRJ.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CFVIc7iQ.js → LicensedProfessionalOrganizationComponent-C5pc7hVJ.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-CFVIc7iQ.js.map → LicensedProfessionalOrganizationComponent-C5pc7hVJ.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BEwjSmfW.js → LicensedProfessionalOrganizationComponent-CnR_qF3r.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-BEwjSmfW.js.map → LicensedProfessionalOrganizationComponent-CnR_qF3r.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-C5h14pIK.js → MedicalProfessionalOrganizationComponent-CXHX25GN.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-C5h14pIK.js.map → MedicalProfessionalOrganizationComponent-CXHX25GN.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DziG8JnV.js → MedicalProfessionalOrganizationComponent-DBf6V49M.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-DziG8JnV.js.map → MedicalProfessionalOrganizationComponent-DBf6V49M.js.map} +1 -1
- package/chunk/{MemberIdComponent-DOIYFMn2.js → MemberIdComponent-C8mVSo9m.js} +4 -4
- package/chunk/{MemberIdComponent-BScPderq.js.map → MemberIdComponent-C8mVSo9m.js.map} +1 -1
- package/chunk/{MemberIdComponent-BScPderq.js → MemberIdComponent-oanWSvQh.js} +4 -4
- package/chunk/{MemberIdComponent-DOIYFMn2.js.map → MemberIdComponent-oanWSvQh.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-D_kZ2VLs.js → MembershipOrganizationComponent-CN6_d_Fk.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-DYRmX21h.js.map → MembershipOrganizationComponent-CN6_d_Fk.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DYRmX21h.js → MembershipOrganizationComponent-yu-UNXIK.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-D_kZ2VLs.js.map → MembershipOrganizationComponent-yu-UNXIK.js.map} +1 -1
- package/chunk/Onfido-BG8cDEVW.js +3 -3
- package/chunk/{PersonalInfoStepSubmitButton-Bu2zmi86.js → PersonalInfoStepSubmitButton-j44RdZDq.js} +6 -6
- package/chunk/{PersonalInfoStepSubmitButton-22jOKa2g.js.map → PersonalInfoStepSubmitButton-j44RdZDq.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-22jOKa2g.js → PersonalInfoStepSubmitButton-v_kWLmEw.js} +6 -6
- package/chunk/{PersonalInfoStepSubmitButton-Bu2zmi86.js.map → PersonalInfoStepSubmitButton-v_kWLmEw.js.map} +1 -1
- package/chunk/PersonalInfoStepWrapper-BOBNCgik.js +43 -0
- package/chunk/PersonalInfoStepWrapper-BOBNCgik.js.map +1 -0
- package/chunk/PersonalInfoStepWrapper-PV06WMKL.js +39 -0
- package/chunk/PersonalInfoStepWrapper-PV06WMKL.js.map +1 -0
- package/chunk/{PostalCodeComponent-DAMiXR2z.js → PostalCodeComponent-DrCcV90W.js} +4 -4
- package/chunk/{PostalCodeComponent-DAMiXR2z.js.map → PostalCodeComponent-DrCcV90W.js.map} +1 -1
- package/chunk/{PostalCodeComponent-gTyGTdav.js → PostalCodeComponent-KXVfZkLx.js} +4 -4
- package/chunk/{PostalCodeComponent-gTyGTdav.js.map → PostalCodeComponent-KXVfZkLx.js.map} +1 -1
- package/chunk/{SSN-BZDlbDHI.js → SSN-B_z2R4Bx.js} +5 -5
- package/chunk/{SSN-BZDlbDHI.js.map → SSN-B_z2R4Bx.js.map} +1 -1
- package/chunk/{SSN-CRCZxt7F.js → SSN-Hb1lTx8A.js} +5 -5
- package/chunk/{SSN-CRCZxt7F.js.map → SSN-Hb1lTx8A.js.map} +1 -1
- package/chunk/{StateSelectComponent-3VINgXA_.js → StateSelectComponent-CChSqKXz.js} +4 -4
- package/chunk/{StateSelectComponent-3VINgXA_.js.map → StateSelectComponent-CChSqKXz.js.map} +1 -1
- package/chunk/{StateSelectComponent-qwzKiEzn.js → StateSelectComponent-CIpB-Rh1.js} +4 -4
- package/chunk/{StateSelectComponent-qwzKiEzn.js.map → StateSelectComponent-CIpB-Rh1.js.map} +1 -1
- package/chunk/{StatusComponent-BA29-IR-.js → StatusComponent-C6J1B7Tl.js} +4 -4
- package/chunk/{StatusComponent-BA29-IR-.js.map → StatusComponent-C6J1B7Tl.js.map} +1 -1
- package/chunk/{StatusComponent-CXBhA3Ni.js → StatusComponent-pmuIhuXi.js} +4 -4
- package/chunk/{StatusComponent-CXBhA3Ni.js.map → StatusComponent-pmuIhuXi.js.map} +1 -1
- package/chunk/{StepCard-DnOGZrfz.js → StepCard-CIfaQVu-.js} +11 -11
- package/chunk/{StepCard-BBxGouj6.js.map → StepCard-CIfaQVu-.js.map} +1 -1
- package/chunk/{StepCard-BBxGouj6.js → StepCard-dcwCtPrW.js} +11 -11
- package/chunk/{StepCard-DnOGZrfz.js.map → StepCard-dcwCtPrW.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-BVvtx9IM.js → StepCollectMilitaryStatusComponent-7aKgQ9Sj.js} +25 -25
- package/chunk/{StepCollectMilitaryStatusComponent-BVvtx9IM.js.map → StepCollectMilitaryStatusComponent-7aKgQ9Sj.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-qhnXCNLW.js → StepCollectMilitaryStatusComponent-BRimaaXv.js} +27 -27
- package/chunk/{StepCollectMilitaryStatusComponent-qhnXCNLW.js.map → StepCollectMilitaryStatusComponent-BRimaaXv.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-ChUK8_CL.js → StepDriverLicensePersonalInfoComponent-2TPYKvF4.js} +20 -20
- package/chunk/{StepDriverLicensePersonalInfoComponent-CaoVWjV6.js.map → StepDriverLicensePersonalInfoComponent-2TPYKvF4.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CaoVWjV6.js → StepDriverLicensePersonalInfoComponent-BwVtnrmJ.js} +20 -20
- package/chunk/{StepDriverLicensePersonalInfoComponent-ChUK8_CL.js.map → StepDriverLicensePersonalInfoComponent-BwVtnrmJ.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B0RDxv-x.js → StepGeneralIdentityPersonalInfoComponent-B_GAU5ZU.js} +24 -24
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B0RDxv-x.js.map → StepGeneralIdentityPersonalInfoComponent-B_GAU5ZU.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CDowUntJ.js → StepGeneralIdentityPersonalInfoComponent-D51YIuCd.js} +23 -23
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CDowUntJ.js.map → StepGeneralIdentityPersonalInfoComponent-D51YIuCd.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BgI5l8AJ.js → StepHybridIdentityPersonalInfoComponent-kap6IZbx.js} +23 -23
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BgI5l8AJ.js.map → StepHybridIdentityPersonalInfoComponent-kap6IZbx.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dqq-dZ2C.js → StepHybridIdentityPersonalInfoComponent-zAjPWGNG.js} +24 -24
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dqq-dZ2C.js.map → StepHybridIdentityPersonalInfoComponent-zAjPWGNG.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Ba5IJMDE.js → StepIDCheckLoopOnfido-Sg4a19wV.js} +10 -10
- package/chunk/{StepIDCheckLoopOnfido-Ba5IJMDE.js.map → StepIDCheckLoopOnfido-Sg4a19wV.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-C4WgRPlX.js → StepIDCheckLoopOnfido-djTS20UT.js} +10 -10
- package/chunk/{StepIDCheckLoopOnfido-C4WgRPlX.js.map → StepIDCheckLoopOnfido-djTS20UT.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DMJ1Pdll.js → StepIDCheckLoopRegula-B5I-ojjy.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-D0Hbm46j.js.map → StepIDCheckLoopRegula-B5I-ojjy.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-D0Hbm46j.js → StepIDCheckLoopRegula-DZA5G1Z6.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-DMJ1Pdll.js.map → StepIDCheckLoopRegula-DZA5G1Z6.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BxIXowll.js → StepInactiveMilitaryPersonalInfoComponent-Bieu_7kd.js} +27 -27
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BxIXowll.js.map → StepInactiveMilitaryPersonalInfoComponent-Bieu_7kd.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DrbwAajw.js → StepInactiveMilitaryPersonalInfoComponent-Czd3ecq6.js} +27 -27
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DrbwAajw.js.map → StepInactiveMilitaryPersonalInfoComponent-Czd3ecq6.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-R8ERd8je.js → TeacherSchoolComponent-BSHPjiwQ.js} +5 -5
- package/chunk/{TeacherSchoolComponent-BLfEL1Qa.js.map → TeacherSchoolComponent-BSHPjiwQ.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BLfEL1Qa.js → TeacherSchoolComponent-Bf3ZhJ_c.js} +5 -5
- package/chunk/{TeacherSchoolComponent-R8ERd8je.js.map → TeacherSchoolComponent-Bf3ZhJ_c.js.map} +1 -1
- package/chunk/ar-DRRl0F7-.js +3 -3
- package/chunk/bg-F0WsRCx8.js +3 -3
- package/chunk/bn-IN-CMjQj55J.js +3 -3
- package/chunk/cs-fNk_NoQI.js +3 -3
- package/chunk/da-KMILteCO.js +3 -3
- package/chunk/de-CWVNPgGa.js +3 -3
- package/chunk/{downshift.esm-DdJojPIu.js → downshift.esm-CtrbqQGL.js} +4 -4
- package/chunk/{downshift.esm-CssrXaoY.js.map → downshift.esm-CtrbqQGL.js.map} +1 -1
- package/chunk/{downshift.esm-CssrXaoY.js → downshift.esm-huKBwB2d.js} +4 -4
- package/chunk/{downshift.esm-DdJojPIu.js.map → downshift.esm-huKBwB2d.js.map} +1 -1
- package/chunk/el-Cwv4peel.js +3 -3
- package/chunk/en-GB-Dqonxi7-.js +3 -3
- package/chunk/es-ES-C4H8ciVZ.js +3 -3
- package/chunk/es-hn_UHPBI.js +3 -3
- package/chunk/fi-CYcXXvjq.js +3 -3
- package/chunk/fr-CA-CGAQ-6AP.js +3 -3
- package/chunk/fr-D_IYCyUP.js +3 -3
- package/chunk/ga-45LsHAEB.js +3 -3
- package/chunk/hi-IN-ChuePzRc.js +3 -3
- package/chunk/hr-CX75fSnP.js +3 -3
- package/chunk/hu-BaLNR_Fx.js +3 -3
- package/chunk/id-BuJILOHQ.js +3 -3
- package/chunk/{index-DLe5wGZO.js → index-4SoX7nBO.js} +22 -22
- package/chunk/{index-EoexN2D2.js.map → index-4SoX7nBO.js.map} +1 -1
- package/chunk/{index-B5yen8fX.js → index-B0SBEWOf.js} +9 -9
- package/chunk/{index-B5yen8fX.js.map → index-B0SBEWOf.js.map} +1 -1
- package/chunk/{index-oh8h9rFi.js → index-B0gkU4sD.js} +36 -36
- package/chunk/{index-Ce9W4oJY.js.map → index-B0gkU4sD.js.map} +1 -1
- package/chunk/{index-BY7MLfGQ.js → index-B4FcNhzB.js} +10 -10
- package/chunk/{index-BY7MLfGQ.js.map → index-B4FcNhzB.js.map} +1 -1
- package/chunk/{index--dxw0RrI.js → index-B6DSPaeb.js} +20 -20
- package/chunk/{index--dxw0RrI.js.map → index-B6DSPaeb.js.map} +1 -1
- package/chunk/{index-BvGr52QK.js → index-BA3bE-f-.js} +10 -10
- package/chunk/{index-BvGr52QK.js.map → index-BA3bE-f-.js.map} +1 -1
- package/chunk/{index-BA0YQsod.js → index-BDfHyxH2.js} +21 -21
- package/chunk/{index-BA0YQsod.js.map → index-BDfHyxH2.js.map} +1 -1
- package/chunk/{index-BqoDHpvU.js → index-BKpiJJJ9.js} +16 -16
- package/chunk/{index-BqoDHpvU.js.map → index-BKpiJJJ9.js.map} +1 -1
- package/chunk/{index-c2lNIRe2.js → index-BZ1nv-sB.js} +10 -10
- package/chunk/{index-ByZqea9-.js.map → index-BZ1nv-sB.js.map} +1 -1
- package/chunk/{index--4tHsN4Z.js → index-BbOCWcRK.js} +13 -13
- package/chunk/{index--4tHsN4Z.js.map → index-BbOCWcRK.js.map} +1 -1
- package/chunk/{index-D2ASN9F5.js → index-Blxi9-p3.js} +16 -16
- package/chunk/{index-BRJxWBkM.js.map → index-Blxi9-p3.js.map} +1 -1
- package/chunk/{index-CvjYvI52.js → index-Bn00xQJF.js} +5 -5
- package/chunk/{index-CvjYvI52.js.map → index-Bn00xQJF.js.map} +1 -1
- package/chunk/{index-D7tLO360.js → index-Brpm5gN6.js} +5 -5
- package/chunk/{index-Bk-uaURB.js.map → index-Brpm5gN6.js.map} +1 -1
- package/chunk/{index-jkBy42Tf.js → index-CHDBBfsg.js} +5 -5
- package/chunk/{index-jkBy42Tf.js.map → index-CHDBBfsg.js.map} +1 -1
- package/chunk/{index-BbdG7ED4.js → index-CMYxhs0t.js} +35 -35
- package/chunk/{index-BbdG7ED4.js.map → index-CMYxhs0t.js.map} +1 -1
- package/chunk/{index-Ce9W4oJY.js → index-CMwYcIy7.js} +32 -32
- package/chunk/{index-oh8h9rFi.js.map → index-CMwYcIy7.js.map} +1 -1
- package/chunk/{index-Dxe89KuR.js → index-CO75J-sD.js} +45 -45
- package/chunk/{index-Dxe89KuR.js.map → index-CO75J-sD.js.map} +1 -1
- package/chunk/{index-Dbedpzxf.js → index-CR19uOwz.js} +7 -7
- package/chunk/{index-Dbedpzxf.js.map → index-CR19uOwz.js.map} +1 -1
- package/chunk/{index-DqWLITMK.js → index-CTGY1a4m.js} +8 -8
- package/chunk/{index-DqWLITMK.js.map → index-CTGY1a4m.js.map} +1 -1
- package/chunk/{index-dvuScNNc.js → index-CTjvQpKK.js} +32 -32
- package/chunk/{index-gSxZOEDm.js.map → index-CTjvQpKK.js.map} +1 -1
- package/chunk/{index-B8oKdmJa.js → index-CaBrLsal.js} +15 -15
- package/chunk/{index-B8oKdmJa.js.map → index-CaBrLsal.js.map} +1 -1
- package/chunk/{index-Bz-BZZ-I.js → index-Ccp2Exqo.js} +28 -28
- package/chunk/{index-Bz-BZZ-I.js.map → index-Ccp2Exqo.js.map} +1 -1
- package/chunk/{index-qnonuzV7.js → index-CfHHbJNm.js} +18 -18
- package/chunk/{index-qnonuzV7.js.map → index-CfHHbJNm.js.map} +1 -1
- package/chunk/{index-BRJxWBkM.js → index-Cgw-oCXC.js} +16 -16
- package/chunk/{index-D2ASN9F5.js.map → index-Cgw-oCXC.js.map} +1 -1
- package/chunk/{index-ByZqea9-.js → index-CrPc1exn.js} +10 -10
- package/chunk/{index-c2lNIRe2.js.map → index-CrPc1exn.js.map} +1 -1
- package/chunk/{index-CbEBL8DR.js → index-CwaTj-69.js} +12 -12
- package/chunk/{index-CbEBL8DR.js.map → index-CwaTj-69.js.map} +1 -1
- package/chunk/{index-BkWR02uU.js → index-D2d6x5LN.js} +27 -27
- package/chunk/{index-BhhbjTBf.js.map → index-D2d6x5LN.js.map} +1 -1
- package/chunk/{index-DmGOS3zf.js → index-D62LImgf.js} +16 -16
- package/chunk/{index-DmGOS3zf.js.map → index-D62LImgf.js.map} +1 -1
- package/chunk/{index-BhhbjTBf.js → index-D7Mqx5na.js} +27 -27
- package/chunk/{index-BkWR02uU.js.map → index-D7Mqx5na.js.map} +1 -1
- package/chunk/{index-Ddnm8yRA.js → index-DFoMYB8K.js} +8 -8
- package/chunk/{index-wtMb5Ukv.js.map → index-DFoMYB8K.js.map} +1 -1
- package/chunk/{index-CP6anWAe.js → index-DGCqI3ez.js} +28 -28
- package/chunk/{index-CP6anWAe.js.map → index-DGCqI3ez.js.map} +1 -1
- package/chunk/index-DIkWpujR.js +3 -3
- package/chunk/{index-EoexN2D2.js → index-DM6d_MOp.js} +22 -22
- package/chunk/{index-DLe5wGZO.js.map → index-DM6d_MOp.js.map} +1 -1
- package/chunk/{index-Cb8H7NMc.js → index-Di4VOQ0c.js} +43 -43
- package/chunk/{index-Cb8H7NMc.js.map → index-Di4VOQ0c.js.map} +1 -1
- package/chunk/{index-DaqKa17_.js → index-DsIG7oZ5.js} +48 -48
- package/chunk/{index-DaqKa17_.js.map → index-DsIG7oZ5.js.map} +1 -1
- package/chunk/{index-wtMb5Ukv.js → index-EUJqfdiJ.js} +6 -6
- package/chunk/{index-Ddnm8yRA.js.map → index-EUJqfdiJ.js.map} +1 -1
- package/chunk/{index-Q5CtHdVj.js → index-Tt8XFCKg.js} +33 -33
- package/chunk/{index-Q5CtHdVj.js.map → index-Tt8XFCKg.js.map} +1 -1
- package/chunk/{index-gSxZOEDm.js → index-XxwXcW8j.js} +30 -30
- package/chunk/{index-dvuScNNc.js.map → index-XxwXcW8j.js.map} +1 -1
- package/chunk/{index-BTyiwF80.js → index-brtM2eoI.js} +14 -14
- package/chunk/{index-BTyiwF80.js.map → index-brtM2eoI.js.map} +1 -1
- package/chunk/{index-Bk-uaURB.js → index-dTu4ORna.js} +8 -8
- package/chunk/{index-D7tLO360.js.map → index-dTu4ORna.js.map} +1 -1
- package/chunk/{index-BbU4jdZK.js → index-yLck7gVG.js} +29 -29
- package/chunk/{index-BbU4jdZK.js.map → index-yLck7gVG.js.map} +1 -1
- package/chunk/is-B3D8NTKa.js +3 -3
- package/chunk/it-CzAy2lzA.js +3 -3
- package/chunk/iw-C9nimuXe.js +3 -3
- package/chunk/ja-BEXgm7zu.js +3 -3
- package/chunk/ko-Ct-zPR2E.js +3 -3
- package/chunk/lo-Di9C_kLP.js +3 -3
- package/chunk/lt-CEBQxuWT.js +3 -3
- package/chunk/{militaryStepHelpers-DwVOy2yj.js → militaryStepHelpers-0OUuQpBw.js} +5 -5
- package/chunk/{militaryStepHelpers-B7eWlfFD.js.map → militaryStepHelpers-0OUuQpBw.js.map} +1 -1
- package/chunk/{militaryStepHelpers-B7eWlfFD.js → militaryStepHelpers-jW2_4c1l.js} +5 -5
- package/chunk/{militaryStepHelpers-DwVOy2yj.js.map → militaryStepHelpers-jW2_4c1l.js.map} +1 -1
- package/chunk/{mocks-BbQTtWk5.js → mocks-CeAm-JFs.js} +4 -4
- package/chunk/{mocks-BbQTtWk5.js.map → mocks-CeAm-JFs.js.map} +1 -1
- package/chunk/{mocks-Rqlyj4hz.js → mocks-ClJ0M6QH.js} +4 -4
- package/chunk/{mocks-Rqlyj4hz.js.map → mocks-ClJ0M6QH.js.map} +1 -1
- package/chunk/ms-CxGIGN7C.js +3 -3
- package/chunk/nl-BE-DPBUnfk6.js +3 -3
- package/chunk/nl-BIm7MF9X.js +3 -3
- package/chunk/no-BmBisNVx.js +3 -3
- package/chunk/pl-BOGNzi_o.js +3 -3
- package/chunk/pt-BR-uABX_syI.js +3 -3
- package/chunk/pt-MSESKPWr.js +3 -3
- package/chunk/ro-DoSzUhte.js +3 -3
- package/chunk/ru-_re-OOAp.js +3 -3
- package/chunk/sk-BS3zToE5.js +3 -3
- package/chunk/sl-CVBUMpyN.js +3 -3
- package/chunk/sr-Cmqfavur.js +3 -3
- package/chunk/sv-BzRp9aoC.js +3 -3
- package/chunk/sw-C4I4Ivyc.js +3 -3
- package/chunk/th-SsMlrFQN.js +3 -3
- package/chunk/tr-i4hcCWIF.js +3 -3
- package/chunk/uk-CLl1S03h.js +3 -3
- package/chunk/ur-CfVN1Pr2.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-690w1BPY.js → useCollectFieldsEndpoint-Cd6d_u47.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-690w1BPY.js.map → useCollectFieldsEndpoint-Cd6d_u47.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DCP1smnC.js → useCollectFieldsEndpoint-DqTjyVEr.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-DCP1smnC.js.map → useCollectFieldsEndpoint-DqTjyVEr.js.map} +1 -1
- package/chunk/{useMetrics-CUyKTp9h.js → useMetrics-D2fG6cgw.js} +4 -4
- package/chunk/{useMetrics-CUyKTp9h.js.map → useMetrics-D2fG6cgw.js.map} +1 -1
- package/chunk/{useMetrics-DwEPEO5F.js → useMetrics-wq7yrL0b.js} +4 -4
- package/chunk/{useMetrics-DwEPEO5F.js.map → useMetrics-wq7yrL0b.js.map} +1 -1
- package/chunk/vi-STS0AV-q.js +3 -3
- package/chunk/zh-HK-DGm6tmJZ.js +3 -3
- package/chunk/zh-rPW1DJOh.js +3 -3
- package/chunk/zu-D7Vc6viT.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +3 -3
- package/sheerid.css +3 -3
- package/sheerid.js +1321 -1325
- package/sheerid.js.map +1 -1
- package/chunk/PersonalInfoStepWrapper-BCVAx0W6.js +0 -53
- package/chunk/PersonalInfoStepWrapper-BCVAx0W6.js.map +0 -1
- package/chunk/PersonalInfoStepWrapper-Bi9zH52s.js +0 -99
- package/chunk/PersonalInfoStepWrapper-Bi9zH52s.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectMilitaryStatusComponent-BVvtx9IM.js","sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"names":["StepActiveMilitaryPersonalInfo","intl","verificationService","viewModel","previousViewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","availableStatuses","getAvailableMilitaryStatuses","locale","options","getOptions","updateActiveMilitaryViewModel","key","value","updateMilitaryViewModel","submitStep","nextState","produce","logger","VerificationStepsEnum","resetRefs","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","Fragment","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","MilitaryStatus","getStatusLabel","MilitaryStatusDefaultMessagesEnum","status","updateFieldValidationErrorsByFieldId","BranchOfService","choice","updateViewModelOrganization","FirstName","newValue","LastName","BirthDate","DischargeDate","ActiveDutyStartDateComponent","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","StepActiveMilitaryPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;AA0DO,MAAMA,IAAiC,CAAC;AAAA,EAC7C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoD;AAClD,QAAMC,IAAYD,EAAoB,WAChCE,IACJF,EAAoB,mBAChB,EAAE,uBAAAG,MAA0BH,GAC5BI,IACJJ,EAAoB,sBAChBK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAoBC,EAA6BR,GAAqBD,CAAI,GAC1EU,IAASR,EAAU,aAAa,OAChCS,IAAUC,EAAA,GAEVC,IAAgC,CACpCC,GACAC,MACG;AACH,IAAAd,EAAoB;AAAA,MAClBe,EAAwBF,GAAKC,GAAOd,GAAqBO,CAAiB;AAAA,IAAA;AAAA,EAE9E,GAEMS,IAAa,MAAM;AACvB,UAAMC,IAAYC,EAAQjB,GAAW,MAAM;AAAA,IAAC,CAAC;AAC7C,IAAAkB,EAAO,KAAK,6CAA6C,GACzDnB,EAAoB;AAAA,MAClBoB,EAAsB;AAAA,MACtBH;AAAA,MACAjB,EAAoB,gCAAgCA,EAAoB;AAAA,IAAA;AAAA,EAE5E;AAEA,UACGC,EAAU,UAAUC,KAAqBA,EAAkB,WAAWD,EAAU,UAChFA,EAAU,UACTD,EAAoB,qBAAqB,gBACvCoB,EAAsB,0BAE1BJ,EAAA,GAIFK,EAAA,GAGEC,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAvB;AAAA,MACA,MAAMI,EAAqB;AAAA,MAC3B,WAAU;AAAA,MAEV,UAAA;A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BAAAA,EAAAA;AAAAA,gBAACqB;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaU,IAA0CC,EAAW1D,CAA8B;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"StepCollectMilitaryStatusComponent-7aKgQ9Sj.js","sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"names":["StepActiveMilitaryPersonalInfo","intl","verificationService","viewModel","previousViewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","availableStatuses","getAvailableMilitaryStatuses","locale","options","getOptions","updateActiveMilitaryViewModel","key","value","updateMilitaryViewModel","submitStep","nextState","produce","logger","VerificationStepsEnum","resetRefs","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","Fragment","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","MilitaryStatus","getStatusLabel","MilitaryStatusDefaultMessagesEnum","status","updateFieldValidationErrorsByFieldId","BranchOfService","choice","updateViewModelOrganization","FirstName","newValue","LastName","BirthDate","DischargeDate","ActiveDutyStartDateComponent","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","StepActiveMilitaryPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;AA0DO,MAAMA,IAAiC,CAAC;AAAA,EAC7C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoD;AAClD,QAAMC,IAAYD,EAAoB,WAChCE,IACJF,EAAoB,mBAChB,EAAE,uBAAAG,MAA0BH,GAC5BI,IACJJ,EAAoB,sBAChBK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAoBC,EAA6BR,GAAqBD,C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cACnC,UAAU,CAACoC,MAAa;AACtB,gBAAA3B,EAA8B,YAAY;AAAA,kBACxC,GAAGZ,EAAoB,UAAU;AAAA,kBACjC,oBAAoBuC;AAAA,gBAAA,CACrB,GACDL;AAAA,kBACE;AAAA,kBACAK;AAAA,kBACAvC;AAAA,gBAAA;AAAA,cAEJ;AAAA,cACA,WAAAC;AAAA,cACA,UAAU4B,EAAwB,oBAAoB,GAAG;AAAA,YAAA;AAAA,UAAA;AAAA,UAG3DL,gBAAAA,EAAAA,IAAC4B,GAAA,EAAa,qBAAApD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,UAEpFwB,gBAAAA,EAAAA;AAAAA,YAAC6B;AAAA,YAAA;AAAA,cACC,qBAAArD;AAAA,cACA,WAAW,CAAC,CAACG,EAAsB;AAAA,YAAA;AAAA,UAAA;AAAA,UAGrCqB,gBAAAA,EAAAA;AAAAA,YAAC8B;AAAA,YAAA;AAAA,cACC,MAAMlC,EAAsB;AAAA,cAC5B,qBAAApB;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAI;AAAA,cACA,YACEmB,gBAAAA,EAAAA;AAAAA,gBAACqB;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaU,IAA0CC,EAAW1D,CAA8B;;;;;;;;;"}
|
|
@@ -4,27 +4,27 @@
|
|
|
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.232.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.232.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1779218546706
|
|
9
|
+
* BUILD_DATE: Tue May 19 2026 19:22:26 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
|
|
11
11
|
*/
|
|
12
|
-
import { i as j,
|
|
13
|
-
import { C as
|
|
14
|
-
import { F as
|
|
15
|
-
import { E as
|
|
16
|
-
import { B as K, u as
|
|
17
|
-
import { S } from "./StatusComponent-
|
|
18
|
-
import { B as
|
|
19
|
-
import { C as
|
|
20
|
-
import { P as
|
|
12
|
+
import { i as j, m as N, ab as E, V as u, X as I, j as s, P as f, g as o, o as n, a2 as P, _ as F, n as T, F as C, U as V, p as A, l as O, e as R, ac as _ } from "../_mysheerid-preview.js";
|
|
13
|
+
import { C as z } from "./CountryComponentWrapper--2UQ7mXP.js";
|
|
14
|
+
import { F as B, L, P as k, a as w, M as c, C as q } from "./CaptchaComponent-CnWyxiTy.js";
|
|
15
|
+
import { E as W, P as H } from "./PersonalInfoStepSubmitButton-v_kWLmEw.js";
|
|
16
|
+
import { B as K, u as S } from "./militaryStepHelpers-jW2_4c1l.js";
|
|
17
|
+
import { S as U } from "./StatusComponent-pmuIhuXi.js";
|
|
18
|
+
import { B as X, D as $, A as G } from "./ActiveDutyStartDateComponent-BNwC2c3Y.js";
|
|
19
|
+
import { C as J } from "./ChangeLocaleComponent-Cu2DR-Q3.js";
|
|
20
|
+
import { P as Q } from "./PersonalInfoStepWrapper-BOBNCgik.js";
|
|
21
21
|
const h = ({
|
|
22
22
|
intl: i,
|
|
23
23
|
verificationService: a
|
|
24
24
|
}) => {
|
|
25
25
|
const e = a.viewModel, b = a.previousViewModel, { fieldValidationErrors: l } = a, g = a.verificationResponse, y = N(g), r = E(a, i), m = e.localeChoice.value, M = R(), d = (t, D) => {
|
|
26
26
|
a.updateViewModel(
|
|
27
|
-
|
|
27
|
+
S(t, D, a, r)
|
|
28
28
|
);
|
|
29
29
|
}, x = () => {
|
|
30
30
|
const t = A(e, () => {
|
|
@@ -36,7 +36,7 @@ const h = ({
|
|
|
36
36
|
);
|
|
37
37
|
};
|
|
38
38
|
return (e.status && b && b.status !== e.status || e.status && a.verificationResponse.currentStep === u.collectMilitaryStatus) && x(), I(), /* @__PURE__ */ s.jsxs(
|
|
39
|
-
|
|
39
|
+
Q,
|
|
40
40
|
{
|
|
41
41
|
verificationService: a,
|
|
42
42
|
step: g.currentStep,
|
|
@@ -50,21 +50,21 @@ const h = ({
|
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
52
|
/* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
53
|
-
/* @__PURE__ */ s.jsx(
|
|
53
|
+
/* @__PURE__ */ s.jsx(J, { verificationService: a }),
|
|
54
54
|
/* @__PURE__ */ s.jsx(
|
|
55
|
-
|
|
55
|
+
z,
|
|
56
56
|
{
|
|
57
57
|
verificationService: a,
|
|
58
58
|
disabled: o("country")?.disabled
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
61
|
r ? /* @__PURE__ */ s.jsx(
|
|
62
|
-
|
|
62
|
+
U,
|
|
63
63
|
{
|
|
64
64
|
segmentId: "military",
|
|
65
65
|
value: {
|
|
66
66
|
value: e.status,
|
|
67
|
-
label: P(i, e.status,
|
|
67
|
+
label: P(i, e.status, _)
|
|
68
68
|
},
|
|
69
69
|
isErrored: !!l.status,
|
|
70
70
|
errorId: "invalidMilitaryStatus",
|
|
@@ -80,7 +80,7 @@ const h = ({
|
|
|
80
80
|
}
|
|
81
81
|
) : null,
|
|
82
82
|
/* @__PURE__ */ s.jsx(
|
|
83
|
-
|
|
83
|
+
X,
|
|
84
84
|
{
|
|
85
85
|
isErrored: !!l.organization,
|
|
86
86
|
onChange: (t) => {
|
|
@@ -96,7 +96,7 @@ const h = ({
|
|
|
96
96
|
),
|
|
97
97
|
/* @__PURE__ */ s.jsxs("div", { className: "sid-names", children: [
|
|
98
98
|
/* @__PURE__ */ s.jsx(
|
|
99
|
-
|
|
99
|
+
B,
|
|
100
100
|
{
|
|
101
101
|
value: e.firstName,
|
|
102
102
|
isErrored: !!l.firstName,
|
|
@@ -107,7 +107,7 @@ const h = ({
|
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
109
|
/* @__PURE__ */ s.jsx(
|
|
110
|
-
|
|
110
|
+
L,
|
|
111
111
|
{
|
|
112
112
|
value: e.lastName,
|
|
113
113
|
isErrored: !!l.lastName,
|
|
@@ -131,7 +131,7 @@ const h = ({
|
|
|
131
131
|
}
|
|
132
132
|
),
|
|
133
133
|
!!a.programTheme.transitionalMilitaryValidityDays && /* @__PURE__ */ s.jsx(
|
|
134
|
-
|
|
134
|
+
$,
|
|
135
135
|
{
|
|
136
136
|
mode: "date",
|
|
137
137
|
errorId: l.dischargeDate,
|
|
@@ -144,7 +144,7 @@ const h = ({
|
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
146
|
a.programTheme.strictMilitaryValidationEnabled && /* @__PURE__ */ s.jsx(
|
|
147
|
-
|
|
147
|
+
G,
|
|
148
148
|
{
|
|
149
149
|
errorId: l.activeDutyStartDate,
|
|
150
150
|
locale: m,
|
|
@@ -161,7 +161,7 @@ const h = ({
|
|
|
161
161
|
}
|
|
162
162
|
),
|
|
163
163
|
/* @__PURE__ */ s.jsx(
|
|
164
|
-
|
|
164
|
+
W,
|
|
165
165
|
{
|
|
166
166
|
value: e.email,
|
|
167
167
|
isErrored: !!l.email,
|
|
@@ -180,7 +180,7 @@ const h = ({
|
|
|
180
180
|
}
|
|
181
181
|
),
|
|
182
182
|
a.programTheme.isSmsNotifierConfigured || a.programTheme.smsLoopEnabled ? /* @__PURE__ */ s.jsx(
|
|
183
|
-
|
|
183
|
+
k,
|
|
184
184
|
{
|
|
185
185
|
isRequired: !!a.programTheme.smsLoopEnabled,
|
|
186
186
|
value: e.phoneNumber,
|
|
@@ -194,7 +194,7 @@ const h = ({
|
|
|
194
194
|
) : null,
|
|
195
195
|
M.customFormFields.map((t) => /* @__PURE__ */ s.jsx(w, { config: t, verificationService: a })),
|
|
196
196
|
/* @__PURE__ */ s.jsx(
|
|
197
|
-
|
|
197
|
+
c,
|
|
198
198
|
{
|
|
199
199
|
verificationService: a,
|
|
200
200
|
isErrored: !!l.marketConsentValue,
|
|
@@ -214,7 +214,7 @@ const h = ({
|
|
|
214
214
|
),
|
|
215
215
|
/* @__PURE__ */ s.jsx(V, { verificationService: a, suffix: "CollectAboveSubmit" }),
|
|
216
216
|
/* @__PURE__ */ s.jsx(
|
|
217
|
-
|
|
217
|
+
q,
|
|
218
218
|
{
|
|
219
219
|
verificationService: a,
|
|
220
220
|
isErrored: !!l.captchaToken
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectMilitaryStatusComponent-qhnXCNLW.js","sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"names":["StepActiveMilitaryPersonalInfo","intl","verificationService","viewModel","previousViewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","availableStatuses","getAvailableMilitaryStatuses","locale","options","getOptions","updateActiveMilitaryViewModel","key","value","updateMilitaryViewModel","submitStep","nextState","produce","logger","VerificationStepsEnum","resetRefs","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","Fragment","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","MilitaryStatus","getStatusLabel","MilitaryStatusDefaultMessagesEnum","status","updateFieldValidationErrorsByFieldId","BranchOfService","choice","updateViewModelOrganization","FirstName","newValue","LastName","BirthDate","DischargeDate","ActiveDutyStartDateComponent","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","StepActiveMilitaryPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;AA0DO,MAAMA,IAAiC,CAAC;AAAA,EAC7C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoD;AAClD,QAAMC,IAAYD,EAAoB,WAChCE,IACJF,EAAo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;AAAA,UAEDwB,gBAAAA,EAAAA;AAAAA,YAAC2B;AAAAA,YAAA;AAAA,cACC,qBAAAnD;AAAA,cACA,WAAW,CAAC,CAACG,EAAsB;AAAA,cACnC,UAAU,CAACoC,MAAa;AACtB,gBAAA3B,EAA8B,YAAY;AAAA,kBACxC,GAAGZ,EAAoB,UAAU;AAAA,kBACjC,oBAAoBuC;AAAA,gBAAA,CACrB,GACDL;AAAA,kBACE;AAAA,kBACAK;AAAA,kBACAvC;AAAA,gBAAA;AAAA,cAEJ;AAAA,cACA,WAAAC;AAAA,cACA,UAAU4B,EAAwB,oBAAoB,GAAG;AAAA,YAAA;AAAA,UAAA;AAAA,UAG3DL,gBAAAA,EAAAA,IAAC4B,GAAA,EAAa,qBAAApD,GAA0C,QAAO,qBAAA,CAAqB;AAAA,UAEpFwB,gBAAAA,EAAAA;AAAAA,YAAC6B;AAAA,YAAA;AAAA,cACC,qBAAArD;AAAA,cACA,WAAW,CAAC,CAACG,EAAsB;AAAA,YAAA;AAAA,UAAA;AAAA,UAGrCqB,gBAAAA,EAAAA;AAAAA,YAAC8B;AAAA,YAAA;AAAA,cACC,MAAMlC,EAAsB;AAAA,cAC5B,qBAAApB;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAI;AAAA,cACA,YACEmB,gBAAAA,EAAAA;AAAAA,gBAACqB;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaU,IAA0CC,EAAW1D,CAA8B;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"StepCollectMilitaryStatusComponent-BRimaaXv.js","sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\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 updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"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.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"names":["StepActiveMilitaryPersonalInfo","intl","verificationService","viewModel","previousViewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","availableStatuses","getAvailableMilitaryStatuses","locale","options","getOptions","updateActiveMilitaryViewModel","key","value","updateMilitaryViewModel","submitStep","nextState","produce","logger","VerificationStepsEnum","resetRefs","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","Fragment","ChangeLocaleV2Component","CountryComponentWrapper","getFieldConfigByFieldId","MilitaryStatus","getStatusLabel","MilitaryStatusDefaultMessagesEnum","status","updateFieldValidationErrorsByFieldId","BranchOfService","choice","updateViewModelOrganization","FirstName","newValue","LastName","BirthDate","DischargeDate","ActiveDutyStartDateComponent","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","StepActiveMilitaryPersonalInfoComponent","injectIntl"],"mappings":";;;;;;;;;AA0DO,MAAMA,IAAiC,CAAC;AAAA,EAC7C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAoD;AAClD,QAAMC,IAAYD,EAAoB,WAChCE,IACJF,EAAoB,mBAChB,EAAE,uBAAAG,MAA0BH,GAC5BI,IACJJ,EAAoB,sBAChBK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAoBC,EAA6BR,GAAqBD,CAAI,GAC1EU,IAASR,EAAU,aAAa,OAChCS,IAAUC,EAAA,GAEVC,IAAgC,CACpCC,GACAC,MACG;AACH,IAAAd,EAAoB;AAAA,MAClBe,EAAwBF,GAAKC,GAAOd,GAAqBO,CAAiB;AAAA,IAAA;AAAA,EAE9E,GAEMS,IAAa,MAAM;AACvB,UAAMC,IAAYC,EAAQjB,GAAW,MAAM;AAAA,IAAC,CAAC;AAC7C,IAAAkB,EAAO,KAAK,6CAA6C,GACzDnB,EAAoB;AAAA,MAClBoB,EAAsB;AAAA,MACtBH;AAAA,MACAjB,EAAoB,gCAAgCA,EAAoB;AAAA,IAAA;AAAA,EAE5E;AAEA,UACGC,EAAU,UAAUC,KAA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A,cACC,qBAAArD;AAAA,cACA,WAAW,CAAC,CAACG,EAAsB;AAAA,YAAA;AAAA,UAAA;AAAA,UAGrCqB,gBAAAA,EAAAA;AAAAA,YAAC8B;AAAA,YAAA;AAAA,cACC,MAAMlC,EAAsB;AAAA,cAC5B,qBAAApB;AAAA,cACA,WAAAC;AAAA,cACA,oBAAAI;AAAA,cACA,YACEmB,gBAAAA,EAAAA;AAAAA,gBAACqB;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,gBAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QAEJ,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaU,IAA0CC,EAAW1D,CAA8B;;;;;;;;;"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.232.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
3
|
+
* VERSION: 2.232.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1779218532773
|
|
5
|
+
* BUILD_DATE: Tue May 19 2026 19:22:12 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { F as y, L as P, P as D, a as T, M as R, C as V } from "./CaptchaComponent-
|
|
10
|
-
import { E as k, P as B } from "./PersonalInfoStepSubmitButton-
|
|
11
|
-
import { D as
|
|
12
|
-
import { S as
|
|
13
|
-
import { C as
|
|
14
|
-
import { P as
|
|
15
|
-
const
|
|
8
|
+
import { m as x, X as N, j as a, P as g, o as d, g as r, n as j, F as l, Y as E, U as L, V as M, i as I, p as f, e as F } from "../sheerid.js";
|
|
9
|
+
import { F as y, L as P, P as D, a as T, M as R, C as V } from "./CaptchaComponent-SmUa6m52.js";
|
|
10
|
+
import { E as k, P as B } from "./PersonalInfoStepSubmitButton-j44RdZDq.js";
|
|
11
|
+
import { D as c } from "./DriverLicenseNumberComponent-ziLNYB8e.js";
|
|
12
|
+
import { S as q } from "./StateSelectComponent-CChSqKXz.js";
|
|
13
|
+
import { C as A } from "./ChangeLocaleComponent-DUnfgQuX.js";
|
|
14
|
+
import { P as H } from "./PersonalInfoStepWrapper-PV06WMKL.js";
|
|
15
|
+
const K = ({
|
|
16
16
|
intl: u,
|
|
17
17
|
verificationService: s
|
|
18
18
|
}) => {
|
|
19
19
|
const t = s.viewModel, { fieldValidationErrors: o } = s, p = s.verificationResponse, i = x(p), b = F(), n = (e, m) => {
|
|
20
|
-
const C =
|
|
20
|
+
const C = f(
|
|
21
21
|
t,
|
|
22
22
|
(h) => {
|
|
23
23
|
h[e] = m;
|
|
@@ -26,7 +26,7 @@ const H = ({
|
|
|
26
26
|
s.updateViewModel(C);
|
|
27
27
|
};
|
|
28
28
|
return N(), /* @__PURE__ */ a.jsxs(
|
|
29
|
-
|
|
29
|
+
H,
|
|
30
30
|
{
|
|
31
31
|
verificationService: s,
|
|
32
32
|
step: p.currentStep,
|
|
@@ -38,7 +38,7 @@ const H = ({
|
|
|
38
38
|
classNameIdentifier: "drivers-license"
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
|
-
/* @__PURE__ */ a.jsx(
|
|
41
|
+
/* @__PURE__ */ a.jsx(A, { verificationService: s }),
|
|
42
42
|
/* @__PURE__ */ a.jsxs("div", { className: "sid-names", children: [
|
|
43
43
|
/* @__PURE__ */ a.jsx(
|
|
44
44
|
y,
|
|
@@ -96,7 +96,7 @@ const H = ({
|
|
|
96
96
|
}
|
|
97
97
|
) : null,
|
|
98
98
|
/* @__PURE__ */ a.jsx(
|
|
99
|
-
|
|
99
|
+
q,
|
|
100
100
|
{
|
|
101
101
|
isRequired: !0,
|
|
102
102
|
options: E(s.programTheme, u),
|
|
@@ -111,7 +111,7 @@ const H = ({
|
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
113
|
/* @__PURE__ */ a.jsx(
|
|
114
|
-
|
|
114
|
+
c,
|
|
115
115
|
{
|
|
116
116
|
value: t.driverLicenseNumber,
|
|
117
117
|
isErrored: !!o.driverLicenseNumber,
|
|
@@ -169,9 +169,9 @@ const H = ({
|
|
|
169
169
|
]
|
|
170
170
|
}
|
|
171
171
|
);
|
|
172
|
-
},
|
|
172
|
+
}, G = I(K);
|
|
173
173
|
export {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
K as StepDriverLicensePersonalInfo,
|
|
175
|
+
G as StepDriverLicensePersonalInfoComponent,
|
|
176
|
+
G as default
|
|
177
177
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepDriverLicensePersonalInfoComponent-CaoVWjV6.js","sources":["../../src/components/StepIdentityPersonalInfo/StepDriverLicensePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type DriverLicensePersonalInfoViewModel,\n type DriverLicensePersonalInfoResponse,\n type State,\n type FormSelectChoice,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\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 { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { getOptions } from \"../../options/options\";\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 StepDriverLicensePersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepDriverLicensePersonalInfo = ({\n intl,\n verificationService,\n}: StepDriverLicensePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as DriverLicensePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as DriverLicensePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const updateIdentityViewModel = (key: keyof DriverLicensePersonalInfoViewModel, value: any) => {\n const nextState: DriverLicensePersonalInfoViewModel = produce(\n viewModel,\n (draft: DriverLicensePersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"drivers-license\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateIdentityViewModel(\"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 updateIdentityViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateIdentityViewModel(\"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 updateIdentityViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateIdentityViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage id=\"driverLicenseState\" defaultMessage=\"Driver license state\" />\n }\n />\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updateIdentityViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\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 updateIdentityViewModel(\"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.collectDriverLicensePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Identity\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepDriverLicensePersonalInfoComponent = injectIntl(StepDriverLicensePersonalInfo);\nexport default StepDriverLicensePersonalInfoComponent;\n"],"names":["StepDriverLicensePersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","updateIdentityViewModel","key","value","nextState","produce","draft","resetRefs","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","FirstName","getFieldConfigByFieldId","newValue","updateFieldValidationErrorsByFieldId","LastName","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","DriverLicenseNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepDriverLicensePersonalInfoComponent","injectIntl"],"mappings":";;;;;;;AA4CO,MAAMA,IAAgC,CAAC;AAAA,EAC5C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAmD;AACjD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GAEVC,IAA0B,CAACC,GAA+CC,MAAe;AAC7F,UAAMC,IAAgDC;AAAAA,MACpDX;AAAA,MACA,CAACY,MAA8C;AAC5C,QAAAA,EAAMJ,CAAG,IAAYC;AAAA,MACxB;AAAA,IAAA;AAEF,IAAAV,EAAoB,gBAAgBW,CAAS;AAAA,EAC/C;AAGA,SAAAG,EAAA,GAGEC,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,qBAAAhB;AAAA,MACA,MAAMG,EAAqB;AAAA,MAE3B,UAAA;AAAA,QAAAc,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,qBAAAlB;AAAA,YACA,qBAAoB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtBiB,gBAAAA,MAACE,KAAwB,qBAAAnB,GAA0C;AAAA,QAEnEe,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,aACb,UAAA;AA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AnC,EAAA,CAA0C,CAC5E;AAAA,QAEDiB,gBAAAA,EAAAA;AAAAA,UAACoB;AAAAA,UAAA;AAAA,YACC,qBAAArC;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,YACnC,UAAU,CAACoB,MAAa;AACtB,cAAAd,EAAwB,YAAY;AAAA,gBAClC,GAAGR,EAAoB,UAAU;AAAA,gBACjC,oBAAoBsB;AAAA,cAAA,CACrB,GACDC,EAAqC,sBAAsBD,GAAUtB,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAC;AAAA,YACA,UAAUoB,EAAwB,oBAAoB,GAAG;AAAA,UAAA;AAAA,QAAA;AAAA,QAG3DJ,gBAAAA,EAAAA,IAACqB,GAAA,EAAa,qBAAAtC,GAA0C,QAAO,qBAAA,CAAqB;AAAA,QAEpFiB,gBAAAA,EAAAA;AAAAA,UAACsB;AAAA,UAAA;AAAA,YACC,qBAAAvC;AAAA,YACA,WAAW,CAAC,CAACE,EAAsB;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrCe,gBAAAA,EAAAA;AAAAA,UAACuB;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAzC;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEa,gBAAAA,EAAAA;AAAAA,cAACS;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEagB,IAAyCC,EAAW7C,CAA6B;"}
|
|
1
|
+
{"version":3,"file":"StepDriverLicensePersonalInfoComponent-2TPYKvF4.js","sources":["../../src/components/StepIdentityPersonalInfo/StepDriverLicensePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type DriverLicensePersonalInfoViewModel,\n type DriverLicensePersonalInfoResponse,\n type State,\n type FormSelectChoice,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\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 { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { getOptions } from \"../../options/options\";\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 StepDriverLicensePersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepDriverLicensePersonalInfo = ({\n intl,\n verificationService,\n}: StepDriverLicensePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as DriverLicensePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as DriverLicensePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const updateIdentityViewModel = (key: keyof DriverLicensePersonalInfoViewModel, value: any) => {\n const nextState: DriverLicensePersonalInfoViewModel = produce(\n viewModel,\n (draft: DriverLicensePersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"drivers-license\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateIdentityViewModel(\"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 updateIdentityViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateIdentityViewModel(\"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 updateIdentityViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateIdentityViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage id=\"driverLicenseState\" defaultMessage=\"Driver license state\" />\n }\n />\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updateIdentityViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\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 updateIdentityViewModel(\"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.collectDriverLicensePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Identity\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepDriverLicensePersonalInfoComponent = injectIntl(StepDriverLicensePersonalInfo);\nexport default StepDriverLicensePersonalInfoComponent;\n"],"names":["StepDriverLicensePersonalInfo","intl","verificationService","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","options","getOptions","updateIdentityViewModel","key","value","nextState","produce","draft","resetRefs","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","FirstName","getFieldConfigByFieldId","newValue","updateFieldValidationErrorsByFieldId","LastName","Email","FormattedHTMLMessage","event","handleEmailOnKeyDown","PhoneNumber","StateSelectComponent","getAvailableStateChoices","stateChoice","stateValue","DriverLicenseNumber","config","FormFieldCustom","MarketConsentWrapper","ExtraMessage","CaptchaComponent","PersonalInfoStepSubmitButton","VerificationStepsEnum","StepDriverLicensePersonalInfoComponent","injectIntl"],"mappings":";;;;;;;AA4CO,MAAMA,IAAgC,CAAC;AAAA,EAC5C,MAAAC;AAAA,EACA,qBAAAC;AACF,MAAmD;AACjD,QAAMC,IAAYD,EAAoB,WAChC,EAAE,uBAAAE,MAA0BF,GAC5BG,IACJH,EAAoB,sBAChBI,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAUC,EAAA,GAEVC,IAA0B,CAACC,GAA+CC,M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AAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAAzC;AAAA,YACA,WAAAC;AAAA,YACA,oBAAAG;AAAA,YACA,YACEa,gBAAAA,EAAAA;AAAAA,cAACS;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,GAEagB,IAAyCC,EAAW7C,CAA6B;"}
|
|
@@ -4,19 +4,19 @@
|
|
|
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.232.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.232.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1779218546706
|
|
9
|
+
* BUILD_DATE: Tue May 19 2026 19:22:26 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: e2c23e54ba6fc3b35cb24b5b0cb59bd07dbdc3a1
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { F as y, L as P, P as D, a as T, M as
|
|
14
|
-
import { E as
|
|
15
|
-
import { D as c } from "./DriverLicenseNumberComponent-
|
|
16
|
-
import { S as q } from "./StateSelectComponent-
|
|
17
|
-
import { C as
|
|
18
|
-
import { P as
|
|
19
|
-
const
|
|
12
|
+
import { m as x, X as N, j as a, P as g, o as d, g as r, n as j, F as l, Y as E, U as L, V as M, i as I, p as f, e as F } from "../_mysheerid-preview.js";
|
|
13
|
+
import { F as y, L as P, P as D, a as T, M as R, C as V } from "./CaptchaComponent-CnWyxiTy.js";
|
|
14
|
+
import { E as k, P as B } from "./PersonalInfoStepSubmitButton-v_kWLmEw.js";
|
|
15
|
+
import { D as c } from "./DriverLicenseNumberComponent-D9cakdvU.js";
|
|
16
|
+
import { S as q } from "./StateSelectComponent-CIpB-Rh1.js";
|
|
17
|
+
import { C as A } from "./ChangeLocaleComponent-Cu2DR-Q3.js";
|
|
18
|
+
import { P as H } from "./PersonalInfoStepWrapper-BOBNCgik.js";
|
|
19
|
+
const K = ({
|
|
20
20
|
intl: u,
|
|
21
21
|
verificationService: s
|
|
22
22
|
}) => {
|
|
@@ -30,7 +30,7 @@ const H = ({
|
|
|
30
30
|
s.updateViewModel(C);
|
|
31
31
|
};
|
|
32
32
|
return N(), /* @__PURE__ */ a.jsxs(
|
|
33
|
-
|
|
33
|
+
H,
|
|
34
34
|
{
|
|
35
35
|
verificationService: s,
|
|
36
36
|
step: p.currentStep,
|
|
@@ -42,7 +42,7 @@ const H = ({
|
|
|
42
42
|
classNameIdentifier: "drivers-license"
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
|
-
/* @__PURE__ */ a.jsx(
|
|
45
|
+
/* @__PURE__ */ a.jsx(A, { verificationService: s }),
|
|
46
46
|
/* @__PURE__ */ a.jsxs("div", { className: "sid-names", children: [
|
|
47
47
|
/* @__PURE__ */ a.jsx(
|
|
48
48
|
y,
|
|
@@ -68,7 +68,7 @@ const H = ({
|
|
|
68
68
|
)
|
|
69
69
|
] }),
|
|
70
70
|
/* @__PURE__ */ a.jsx(
|
|
71
|
-
|
|
71
|
+
k,
|
|
72
72
|
{
|
|
73
73
|
value: t.email,
|
|
74
74
|
isErrored: !!o.email,
|
|
@@ -132,7 +132,7 @@ const H = ({
|
|
|
132
132
|
),
|
|
133
133
|
b.customFormFields.map((e) => /* @__PURE__ */ a.jsx(T, { config: e, verificationService: s })),
|
|
134
134
|
/* @__PURE__ */ a.jsx(
|
|
135
|
-
|
|
135
|
+
R,
|
|
136
136
|
{
|
|
137
137
|
verificationService: s,
|
|
138
138
|
isErrored: !!o.marketConsentValue,
|
|
@@ -148,7 +148,7 @@ const H = ({
|
|
|
148
148
|
),
|
|
149
149
|
/* @__PURE__ */ a.jsx(L, { verificationService: s, suffix: "CollectAboveSubmit" }),
|
|
150
150
|
/* @__PURE__ */ a.jsx(
|
|
151
|
-
|
|
151
|
+
V,
|
|
152
152
|
{
|
|
153
153
|
verificationService: s,
|
|
154
154
|
isErrored: !!o.captchaToken
|
|
@@ -173,9 +173,9 @@ const H = ({
|
|
|
173
173
|
]
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
|
-
},
|
|
176
|
+
}, G = I(K);
|
|
177
177
|
export {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
K as StepDriverLicensePersonalInfo,
|
|
179
|
+
G as StepDriverLicensePersonalInfoComponent,
|
|
180
|
+
G as default
|
|
181
181
|
};
|