@sheerid/jslib 2.294.0 → 2.296.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +47 -47
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-PHZhb2Mw.js → AddressComponent-BfmMdKRk.js} +8 -8
- package/chunk/{AddressComponent-C2dPxhhj.js.map → AddressComponent-BfmMdKRk.js.map} +1 -1
- package/chunk/{AddressComponent-C2dPxhhj.js → AddressComponent-D35t0wuk.js} +8 -8
- package/chunk/{AddressComponent-PHZhb2Mw.js.map → AddressComponent-D35t0wuk.js.map} +1 -1
- package/chunk/{AnnouncingHeader-C6QNdmy8.js → AnnouncingHeader-CnV2m0Ak.js} +5 -5
- package/chunk/{AnnouncingHeader-C6QNdmy8.js.map → AnnouncingHeader-CnV2m0Ak.js.map} +1 -1
- package/chunk/{AnnouncingHeader-DJd16MZV.js → AnnouncingHeader-zH7WLU2-.js} +5 -5
- package/chunk/{AnnouncingHeader-DJd16MZV.js.map → AnnouncingHeader-zH7WLU2-.js.map} +1 -1
- package/chunk/{BirthDateComponent-BpdF0g0b.js → BirthDateComponent-CTKl9PbC.js} +7 -7
- package/chunk/{BirthDateComponent-BpdF0g0b.js.map → BirthDateComponent-CTKl9PbC.js.map} +1 -1
- package/chunk/{BirthDateComponent-DCZXOXmm.js → BirthDateComponent-CpOFqU8H.js} +7 -7
- package/chunk/{BirthDateComponent-DCZXOXmm.js.map → BirthDateComponent-CpOFqU8H.js.map} +1 -1
- package/chunk/{CaptchaComponent-FWZqpEIU.js → CaptchaComponent-BJZ9V_pH.js} +49 -49
- package/chunk/CaptchaComponent-BJZ9V_pH.js.map +1 -0
- package/chunk/{CaptchaComponent-B0Uxhb51.js → CaptchaComponent-hjpjrO_P.js} +46 -46
- package/chunk/CaptchaComponent-hjpjrO_P.js.map +1 -0
- package/chunk/{ChangeLocaleComponent-B8ZVvEiq.js → ChangeLocaleComponent-Blkp6RPU.js} +8 -8
- package/chunk/{ChangeLocaleComponent-B8ZVvEiq.js.map → ChangeLocaleComponent-Blkp6RPU.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CGCnqwzm.js → ChangeLocaleComponent-lntDT1u0.js} +8 -8
- package/chunk/{ChangeLocaleComponent-CGCnqwzm.js.map → ChangeLocaleComponent-lntDT1u0.js.map} +1 -1
- package/chunk/{City-uCEYG4v0.js → City-B1Su4Q-3.js} +8 -8
- package/chunk/{City-BPckEV2l.js.map → City-B1Su4Q-3.js.map} +1 -1
- package/chunk/{City-BPckEV2l.js → City-D9gqlTjx.js} +8 -8
- package/chunk/{City-uCEYG4v0.js.map → City-D9gqlTjx.js.map} +1 -1
- package/chunk/{CollegeNameComponent-dB7K5QgA.js → CollegeNameComponent-CSI45Lxy.js} +9 -9
- package/chunk/{CollegeNameComponent-BqSQ4YOf.js.map → CollegeNameComponent-CSI45Lxy.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BqSQ4YOf.js → CollegeNameComponent-DkbR_G-h.js} +9 -9
- package/chunk/{CollegeNameComponent-dB7K5QgA.js.map → CollegeNameComponent-DkbR_G-h.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-nKhkSaum.js → CopyToClipboardComponent-BdrpxpHJ.js} +5 -5
- package/chunk/{CopyToClipboardComponent-cvPop_DN.js.map → CopyToClipboardComponent-BdrpxpHJ.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-cvPop_DN.js → CopyToClipboardComponent-Dm3-3x4b.js} +5 -5
- package/chunk/{CopyToClipboardComponent-nKhkSaum.js.map → CopyToClipboardComponent-Dm3-3x4b.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BRfRmGYM.js → CountryComponentWrapper-CCJkL-BP.js} +15 -15
- package/chunk/{CountryComponentWrapper-BRfRmGYM.js.map → CountryComponentWrapper-CCJkL-BP.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BoVcyVxO.js → CountryComponentWrapper-F2GH1MuK.js} +14 -14
- package/chunk/{CountryComponentWrapper-BoVcyVxO.js.map → CountryComponentWrapper-F2GH1MuK.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CZSf2ikm.js → DischargeDateComponent-CiE-h8-V.js} +25 -25
- package/chunk/{DischargeDateComponent-BQ459K7a.js.map → DischargeDateComponent-CiE-h8-V.js.map} +1 -1
- package/chunk/{DischargeDateComponent-BQ459K7a.js → DischargeDateComponent-DiIr0PAb.js} +25 -25
- package/chunk/{DischargeDateComponent-CZSf2ikm.js.map → DischargeDateComponent-DiIr0PAb.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-DnOPwPeC.js → DriverLicenseNumberComponent--ym3qzMT.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-Bh4Qolmi.js.map → DriverLicenseNumberComponent--ym3qzMT.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-Bh4Qolmi.js → DriverLicenseNumberComponent-Dy3-2Pmc.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-DnOPwPeC.js.map → DriverLicenseNumberComponent-Dy3-2Pmc.js.map} +1 -1
- package/chunk/{EmailLoopPending-D5G2UXKG.js → EmailLoopPending-Bt7BajuC.js} +20 -20
- package/chunk/{EmailLoopPending-BCYLcoGT.js.map → EmailLoopPending-Bt7BajuC.js.map} +1 -1
- package/chunk/{EmailLoopPending-BCYLcoGT.js → EmailLoopPending-C2edcgLy.js} +20 -20
- package/chunk/{EmailLoopPending-D5G2UXKG.js.map → EmailLoopPending-C2edcgLy.js.map} +1 -1
- package/chunk/{ExtraMessage-Bqf9TUts.js → ExtraMessage-Cob9qW6m.js} +6 -6
- package/chunk/{ExtraMessage-Bqf9TUts.js.map → ExtraMessage-Cob9qW6m.js.map} +1 -1
- package/chunk/{ExtraMessage-DNXSpqvW.js → ExtraMessage-wekuxzBu.js} +6 -6
- package/chunk/{ExtraMessage-DNXSpqvW.js.map → ExtraMessage-wekuxzBu.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-x0WgcQzG.js → FirstResponderOrganizationComponent-Al8r6Qm9.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-CfT8Biwu.js.map → FirstResponderOrganizationComponent-Al8r6Qm9.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CfT8Biwu.js → FirstResponderOrganizationComponent-BO-TvISL.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-x0WgcQzG.js.map → FirstResponderOrganizationComponent-BO-TvISL.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Cd-wGEHG.js → FormFieldInputSelect-DR3EfH0r.js} +7 -7
- package/chunk/{FormFieldInputSelect-BfmQAxFP.js.map → FormFieldInputSelect-DR3EfH0r.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BfmQAxFP.js → FormFieldInputSelect-Dv55bWvn.js} +7 -7
- package/chunk/{FormFieldInputSelect-Cd-wGEHG.js.map → FormFieldInputSelect-Dv55bWvn.js.map} +1 -1
- package/chunk/{FormFieldLayout-Bx2JoyDR.js → FormFieldLayout-D1tb5nAu.js} +5 -5
- package/chunk/{FormFieldLayout-Bx2JoyDR.js.map → FormFieldLayout-D1tb5nAu.js.map} +1 -1
- package/chunk/{FormFieldLayout-_lQMBCmX.js → FormFieldLayout-Dt_dMiDh.js} +5 -5
- package/chunk/{FormFieldLayout-_lQMBCmX.js.map → FormFieldLayout-Dt_dMiDh.js.map} +1 -1
- package/chunk/{FormFieldText-5WjD4GNf.js → FormFieldText-BU2NBm1H.js} +7 -7
- package/chunk/{FormFieldText-5WjD4GNf.js.map → FormFieldText-BU2NBm1H.js.map} +1 -1
- package/chunk/{FormFieldText-BQLBciux.js → FormFieldText-CsFISbyw.js} +7 -7
- package/chunk/{FormFieldText-BQLBciux.js.map → FormFieldText-CsFISbyw.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DVaRbEQG.js → FormFieldTypeahead-BdDdwhLS.js} +28 -28
- package/chunk/{FormFieldTypeahead-DVaRbEQG.js.map → FormFieldTypeahead-BdDdwhLS.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-GpVICIeC.js → FormFieldTypeahead-eRU9B5Ku.js} +28 -28
- package/chunk/{FormFieldTypeahead-GpVICIeC.js.map → FormFieldTypeahead-eRU9B5Ku.js.map} +1 -1
- package/chunk/{FormFooterComponent-Bzz3Bu-9.js → FormFooterComponent-CP5Igxpo.js} +10 -10
- package/chunk/{FormFooterComponent-Bzz3Bu-9.js.map → FormFooterComponent-CP5Igxpo.js.map} +1 -1
- package/chunk/{FormFooterComponent-Ca6EG7qf.js → FormFooterComponent-CmpIRI0d.js} +10 -10
- package/chunk/{FormFooterComponent-Ca6EG7qf.js.map → FormFooterComponent-CmpIRI0d.js.map} +1 -1
- package/chunk/{FormSelectChoice-BwYh7sj9.js → FormSelectChoice-BzH4Y9DK.js} +13 -13
- package/chunk/{FormSelectChoice-BwYh7sj9.js.map → FormSelectChoice-BzH4Y9DK.js.map} +1 -1
- package/chunk/{FormSelectChoice-RBx6V3b2.js → FormSelectChoice-CqsrGoB5.js} +10 -10
- package/chunk/{FormSelectChoice-RBx6V3b2.js.map → FormSelectChoice-CqsrGoB5.js.map} +1 -1
- package/chunk/{InputText-DBIXmm_R.js → InputText-CuBi-ytU.js} +5 -5
- package/chunk/InputText-CuBi-ytU.js.map +1 -0
- package/chunk/{InputText-DqQkxoCM.js → InputText-DMztCQmi.js} +5 -5
- package/chunk/InputText-DMztCQmi.js.map +1 -0
- package/chunk/{LicensedProfessionalOrganizationComponent-BPWGao1m.js → LicensedProfessionalOrganizationComponent-CS1-HJ1C.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-8uaSLE_5.js.map → LicensedProfessionalOrganizationComponent-CS1-HJ1C.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-8uaSLE_5.js → LicensedProfessionalOrganizationComponent-De1NTvgs.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-BPWGao1m.js.map → LicensedProfessionalOrganizationComponent-De1NTvgs.js.map} +1 -1
- package/chunk/{LogoComponent-D0I1mPJw.js → LogoComponent-DtnWbRII.js} +6 -6
- package/chunk/{LogoComponent-Ca7bTxZE.js.map → LogoComponent-DtnWbRII.js.map} +1 -1
- package/chunk/{LogoComponent-Ca7bTxZE.js → LogoComponent-jL4Rq6ZT.js} +6 -6
- package/chunk/{LogoComponent-D0I1mPJw.js.map → LogoComponent-jL4Rq6ZT.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-l4L0ov2d.js → LowIncomeOrganizationComponent-Dc4HYfr1.js} +20 -20
- package/chunk/{LowIncomeOrganizationComponent-l4L0ov2d.js.map → LowIncomeOrganizationComponent-Dc4HYfr1.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-l_HWVHzW.js → LowIncomeOrganizationComponent-xwq7_FKf.js} +20 -20
- package/chunk/{LowIncomeOrganizationComponent-l_HWVHzW.js.map → LowIncomeOrganizationComponent-xwq7_FKf.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DrzA5GBL.js → MedicalProfessionalOrganizationComponent-DRwIFnoi.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-DrzA5GBL.js.map → MedicalProfessionalOrganizationComponent-DRwIFnoi.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-BEV89rdD.js → MedicalProfessionalOrganizationComponent-DgSm4cZi.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-BEV89rdD.js.map → MedicalProfessionalOrganizationComponent-DgSm4cZi.js.map} +1 -1
- package/chunk/{MemberIdComponent-_RwOhcAg.js → MemberIdComponent-CXJD--6p.js} +8 -8
- package/chunk/{MemberIdComponent-C2G6z0us.js.map → MemberIdComponent-CXJD--6p.js.map} +1 -1
- package/chunk/{MemberIdComponent-C2G6z0us.js → MemberIdComponent-NEg1mYJM.js} +8 -8
- package/chunk/{MemberIdComponent-_RwOhcAg.js.map → MemberIdComponent-NEg1mYJM.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-oMfREuGs.js → MembershipOrganizationComponent-Ppqk5QyR.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-DaBngl5Q.js.map → MembershipOrganizationComponent-Ppqk5QyR.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DaBngl5Q.js → MembershipOrganizationComponent-tzDKZgR_.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-oMfREuGs.js.map → MembershipOrganizationComponent-tzDKZgR_.js.map} +1 -1
- package/chunk/{Message-DvgmOZft.js → Message-C4qWuoA7.js} +324 -324
- package/chunk/{Message-DvgmOZft.js.map → Message-C4qWuoA7.js.map} +1 -1
- package/chunk/{Message-Boy9Uyy0.js → Message-CZskfqcI.js} +14 -14
- package/chunk/{Message-Boy9Uyy0.js.map → Message-CZskfqcI.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-B_QubSRz.js → PersonalInfoStepSubmitButton-DevIpS3M.js} +21 -21
- package/chunk/{PersonalInfoStepSubmitButton-B_QubSRz.js.map → PersonalInfoStepSubmitButton-DevIpS3M.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-CASQFLdJ.js → PersonalInfoStepSubmitButton-obiTgRFv.js} +22 -22
- package/chunk/{PersonalInfoStepSubmitButton-CASQFLdJ.js.map → PersonalInfoStepSubmitButton-obiTgRFv.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-BzdMB6RD.js → PersonalInfoStepWrapper-Bwy_EnUr.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-BzdMB6RD.js.map → PersonalInfoStepWrapper-Bwy_EnUr.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-D-oNkXVC.js → PersonalInfoStepWrapper-_LiPRLv0.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-D-oNkXVC.js.map → PersonalInfoStepWrapper-_LiPRLv0.js.map} +1 -1
- package/chunk/{PostalCodeComponent-DTdFZJea.js → PostalCodeComponent-BU3uUkz5.js} +8 -8
- package/chunk/{PostalCodeComponent-5NKJ6zig.js.map → PostalCodeComponent-BU3uUkz5.js.map} +1 -1
- package/chunk/{PostalCodeComponent-5NKJ6zig.js → PostalCodeComponent-DE4FtHXn.js} +8 -8
- package/chunk/{PostalCodeComponent-DTdFZJea.js.map → PostalCodeComponent-DE4FtHXn.js.map} +1 -1
- package/chunk/{SSN-npx9fciR.js → SSN-Bd7iEK0D.js} +8 -8
- package/chunk/{SSN-BeveTYV1.js.map → SSN-Bd7iEK0D.js.map} +1 -1
- package/chunk/{SSN-BeveTYV1.js → SSN-CiU8LUIC.js} +8 -8
- package/chunk/{SSN-npx9fciR.js.map → SSN-CiU8LUIC.js.map} +1 -1
- package/chunk/{StateSelectComponent-D7vXl3OH.js → StateSelectComponent-BCHagpBG.js} +8 -8
- package/chunk/{StateSelectComponent-BljDbJ_7.js.map → StateSelectComponent-BCHagpBG.js.map} +1 -1
- package/chunk/{StateSelectComponent-BljDbJ_7.js → StateSelectComponent-Be_BuLYk.js} +8 -8
- package/chunk/{StateSelectComponent-D7vXl3OH.js.map → StateSelectComponent-Be_BuLYk.js.map} +1 -1
- package/chunk/{StatusComponent-5GNGDBSi.js → StatusComponent-CMoJS2Jl.js} +10 -10
- package/chunk/{StatusComponent-5GNGDBSi.js.map → StatusComponent-CMoJS2Jl.js.map} +1 -1
- package/chunk/{StatusComponent-BGqgQrBr.js → StatusComponent-CYTWVmt6.js} +10 -10
- package/chunk/{StatusComponent-BGqgQrBr.js.map → StatusComponent-CYTWVmt6.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BJ6WrgSZ.js → StepAgePersonalInfo-BtZmkOMB.js} +39 -39
- package/chunk/{StepAgePersonalInfo-BJ6WrgSZ.js.map → StepAgePersonalInfo-BtZmkOMB.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CbTV2OHL.js → StepAgePersonalInfo-D5RdoP-0.js} +38 -38
- package/chunk/{StepAgePersonalInfo-CbTV2OHL.js.map → StepAgePersonalInfo-D5RdoP-0.js.map} +1 -1
- package/chunk/{StepCard-DD1BU5jb.js → StepCard-DJR-l3sW.js} +5 -5
- package/chunk/{StepCard-CQGeXH7Z.js.map → StepCard-DJR-l3sW.js.map} +1 -1
- package/chunk/{StepCard-CQGeXH7Z.js → StepCard-wwTRGIhn.js} +5 -5
- package/chunk/{StepCard-DD1BU5jb.js.map → StepCard-wwTRGIhn.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-BiMRaTtt.js → StepCollectIdentifier-BkMWEbcs.js} +8 -8
- package/chunk/{StepCollectIdentifier-BXNQfg0X.js.map → StepCollectIdentifier-BkMWEbcs.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-BXNQfg0X.js → StepCollectIdentifier-DIHpPUyG.js} +8 -8
- package/chunk/{StepCollectIdentifier-BiMRaTtt.js.map → StepCollectIdentifier-DIHpPUyG.js.map} +1 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CL0bldgZ.js +248 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-CL0bldgZ.js.map +1 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-on1o7u6X.js +244 -0
- package/chunk/StepCollectMilitaryPersonalInfoComponent-on1o7u6X.js.map +1 -0
- package/chunk/StepCollectPersonalInfo-2_qDC_UX.js +370 -0
- package/chunk/StepCollectPersonalInfo-2_qDC_UX.js.map +1 -0
- package/chunk/StepCollectPersonalInfo-D9uCpSl7.js +366 -0
- package/chunk/StepCollectPersonalInfo-D9uCpSl7.js.map +1 -0
- package/chunk/{StepCompleteAuthentication-xpON0-yc.js → StepCompleteAuthentication-BawnNriI.js} +21 -21
- package/chunk/{StepCompleteAuthentication-xpON0-yc.js.map → StepCompleteAuthentication-BawnNriI.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-5kcqz-By.js → StepCompleteAuthentication-VpE4-5vs.js} +20 -20
- package/chunk/{StepCompleteAuthentication-5kcqz-By.js.map → StepCompleteAuthentication-VpE4-5vs.js.map} +1 -1
- package/chunk/{StepConsolation-D9oaYgDU.js → StepConsolation-CEEI3obU.js} +8 -8
- package/chunk/{StepConsolation-D9oaYgDU.js.map → StepConsolation-CEEI3obU.js.map} +1 -1
- package/chunk/{StepConsolation-BdSXDPgO.js → StepConsolation-CPHH5mJI.js} +8 -8
- package/chunk/{StepConsolation-BdSXDPgO.js.map → StepConsolation-CPHH5mJI.js.map} +1 -1
- package/chunk/{StepDocUpload-WORC4p6O.js → StepDocUpload-DbfG66DC.js} +12 -12
- package/chunk/{StepDocUpload-WORC4p6O.js.map → StepDocUpload-DbfG66DC.js.map} +1 -1
- package/chunk/{StepDocUpload-DlVEC1sX.js → StepDocUpload-MkUIAN5u.js} +12 -12
- package/chunk/{StepDocUpload-DlVEC1sX.js.map → StepDocUpload-MkUIAN5u.js.map} +1 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-D2gKosYd.js +146 -0
- package/chunk/StepDriverLicensePersonalInfoComponent-D2gKosYd.js.map +1 -0
- package/chunk/StepDriverLicensePersonalInfoComponent-kJQTIw6I.js +142 -0
- package/chunk/StepDriverLicensePersonalInfoComponent-kJQTIw6I.js.map +1 -0
- package/chunk/{StepEmailLoop-DDJM3zA3.js → StepEmailLoop-3mxe4-A1.js} +12 -12
- package/chunk/{StepEmailLoop-DDJM3zA3.js.map → StepEmailLoop-3mxe4-A1.js.map} +1 -1
- package/chunk/{StepEmailLoop-OYpg9_fk.js → StepEmailLoop-B-kLgRUt.js} +12 -12
- package/chunk/{StepEmailLoop-OYpg9_fk.js.map → StepEmailLoop-B-kLgRUt.js.map} +1 -1
- package/chunk/StepEmploymentPersonalInfo-CH3qSsU9.js +220 -0
- package/chunk/StepEmploymentPersonalInfo-CH3qSsU9.js.map +1 -0
- package/chunk/StepEmploymentPersonalInfo-DvOQsc4J.js +216 -0
- package/chunk/StepEmploymentPersonalInfo-DvOQsc4J.js.map +1 -0
- package/chunk/{StepFirstResponderPersonalInfo-BVZWOft8.js → StepFirstResponderPersonalInfo-CUU7noYw.js} +20 -20
- package/chunk/{StepFirstResponderPersonalInfo-BVQ7ivyQ.js.map → StepFirstResponderPersonalInfo-CUU7noYw.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BVQ7ivyQ.js → StepFirstResponderPersonalInfo-DIFcJEh2.js} +20 -20
- package/chunk/{StepFirstResponderPersonalInfo-BVZWOft8.js.map → StepFirstResponderPersonalInfo-DIFcJEh2.js.map} +1 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-6nOwJD32.js +179 -0
- package/chunk/StepGeneralIdentityPersonalInfoComponent-6nOwJD32.js.map +1 -0
- package/chunk/StepGeneralIdentityPersonalInfoComponent-jdxI-psg.js +175 -0
- package/chunk/StepGeneralIdentityPersonalInfoComponent-jdxI-psg.js.map +1 -0
- package/chunk/StepHybridIdentityPersonalInfoComponent-Bf7F-60O.js +188 -0
- package/chunk/StepHybridIdentityPersonalInfoComponent-Bf7F-60O.js.map +1 -0
- package/chunk/StepHybridIdentityPersonalInfoComponent-C9L2Ke1K.js +184 -0
- package/chunk/StepHybridIdentityPersonalInfoComponent-C9L2Ke1K.js.map +1 -0
- package/chunk/{StepIDCheckLoop-Mrxs3-7G.js → StepIDCheckLoop-CAeac23M.js} +6 -6
- package/chunk/{StepIDCheckLoop-Mrxs3-7G.js.map → StepIDCheckLoop-CAeac23M.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DUJFqwvk.js → StepIDCheckLoop-CCiosQ5Q.js} +6 -6
- package/chunk/{StepIDCheckLoop-DUJFqwvk.js.map → StepIDCheckLoop-CCiosQ5Q.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-znxJ5SR-.js → StepIDCheckLoopOnfido-7dr0m35-.js} +40 -40
- package/chunk/{StepIDCheckLoopOnfido-znxJ5SR-.js.map → StepIDCheckLoopOnfido-7dr0m35-.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CWyxxeuD.js → StepIDCheckLoopOnfido-CQNbs_q4.js} +40 -40
- package/chunk/{StepIDCheckLoopOnfido-CWyxxeuD.js.map → StepIDCheckLoopOnfido-CQNbs_q4.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DBUX-ItR.js → StepIDCheckLoopRegula-DRa-5-fJ.js} +35 -35
- package/chunk/{StepIDCheckLoopRegula-DBUX-ItR.js.map → StepIDCheckLoopRegula-DRa-5-fJ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-Dv0-RlwY.js → StepIDCheckLoopRegula-DyRVgrz6.js} +34 -34
- package/chunk/{StepIDCheckLoopRegula-Dv0-RlwY.js.map → StepIDCheckLoopRegula-DyRVgrz6.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-3Z8Bx-fV.js → StepLicensedProfessionalPersonalInfo-2raRP_sC.js} +20 -20
- package/chunk/{StepLicensedProfessionalPersonalInfo-3Z8Bx-fV.js.map → StepLicensedProfessionalPersonalInfo-2raRP_sC.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-DTfq7vRu.js → StepLicensedProfessionalPersonalInfo-C9TLaEUo.js} +20 -20
- package/chunk/{StepLicensedProfessionalPersonalInfo-DTfq7vRu.js.map → StepLicensedProfessionalPersonalInfo-C9TLaEUo.js.map} +1 -1
- package/chunk/StepLowIncomePersonalInfo-CriFm1p0.js +232 -0
- package/chunk/StepLowIncomePersonalInfo-CriFm1p0.js.map +1 -0
- package/chunk/StepLowIncomePersonalInfo-DUKc7Xzd.js +236 -0
- package/chunk/StepLowIncomePersonalInfo-DUKc7Xzd.js.map +1 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-BpskGst0.js +211 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-BpskGst0.js.map +1 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-BwQAKDQf.js +207 -0
- package/chunk/StepMedicalProfessionalPersonalInfo-BwQAKDQf.js.map +1 -0
- package/chunk/{StepMemberPersonalInfo-DD62pLNq.js → StepMemberPersonalInfo-CPIKj6JS.js} +31 -31
- package/chunk/{StepMemberPersonalInfo-C-28cVMR.js.map → StepMemberPersonalInfo-CPIKj6JS.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-C-28cVMR.js → StepMemberPersonalInfo-IZX2jT9o.js} +31 -31
- package/chunk/{StepMemberPersonalInfo-DD62pLNq.js.map → StepMemberPersonalInfo-IZX2jT9o.js.map} +1 -1
- package/chunk/StepMoverPersonalInfo-DkZFK0Y5.js +141 -0
- package/chunk/StepMoverPersonalInfo-DkZFK0Y5.js.map +1 -0
- package/chunk/StepMoverPersonalInfo-QrDDJn9q.js +145 -0
- package/chunk/StepMoverPersonalInfo-QrDDJn9q.js.map +1 -0
- package/chunk/{StepOverrideComponent-BBwMFjKP.js → StepOverrideComponent-DB8XcUxS.js} +20 -20
- package/chunk/{StepOverrideComponent-BBwMFjKP.js.map → StepOverrideComponent-DB8XcUxS.js.map} +1 -1
- package/chunk/{StepOverrideComponent-C0gkuJTU.js → StepOverrideComponent-DQK02UCn.js} +19 -19
- package/chunk/{StepOverrideComponent-C0gkuJTU.js.map → StepOverrideComponent-DQK02UCn.js.map} +1 -1
- package/chunk/{StepSMSLoop-CLyXQmON.js → StepSMSLoop-DHcrK3zK.js} +24 -24
- package/chunk/{StepSMSLoop-CClLLG5y.js.map → StepSMSLoop-DHcrK3zK.js.map} +1 -1
- package/chunk/{StepSMSLoop-CClLLG5y.js → StepSMSLoop-Dd-TlY0x.js} +23 -23
- package/chunk/{StepSMSLoop-CLyXQmON.js.map → StepSMSLoop-Dd-TlY0x.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/StepSocialSecurityNumber-eisNq5zV.js +151 -0
- package/chunk/StepSocialSecurityNumber-eisNq5zV.js.map +1 -0
- package/chunk/{StepSocialSecurityNumber-DORTk9EQ.js → StepSocialSecurityNumber-tQeL8BPo.js} +57 -57
- package/chunk/StepSocialSecurityNumber-tQeL8BPo.js.map +1 -0
- package/chunk/{StepStudentPersonalInfo-Bi5S_ykn.js → StepStudentPersonalInfo-BXKx-RjY.js} +43 -43
- package/chunk/{StepStudentPersonalInfo-Bi5S_ykn.js.map → StepStudentPersonalInfo-BXKx-RjY.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DoQ_K574.js → StepStudentPersonalInfo-xDQaapez.js} +30 -30
- package/chunk/{StepStudentPersonalInfo-DoQ_K574.js.map → StepStudentPersonalInfo-xDQaapez.js.map} +1 -1
- package/chunk/{StepSuccess-C_qFXDR2.js → StepSuccess-Buungtjz.js} +34 -34
- package/chunk/{StepSuccess-C_qFXDR2.js.map → StepSuccess-Buungtjz.js.map} +1 -1
- package/chunk/{StepSuccess-CJuSM1ZK.js → StepSuccess-DVw4r-Tw.js} +29 -29
- package/chunk/{StepSuccess-CJuSM1ZK.js.map → StepSuccess-DVw4r-Tw.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BMJi4dXH.js → StepTeacherPersonalInfo-CDDemAKT.js} +31 -31
- package/chunk/{StepTeacherPersonalInfo-BMJi4dXH.js.map → StepTeacherPersonalInfo-CDDemAKT.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-DtIq1FKy.js → StepTeacherPersonalInfo-D1JAJHN3.js} +31 -31
- package/chunk/{StepTeacherPersonalInfo-DtIq1FKy.js.map → StepTeacherPersonalInfo-D1JAJHN3.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-P9eOoEkC.js → TeacherSchoolComponent-BNIskQFr.js} +9 -9
- package/chunk/{TeacherSchoolComponent-INc6t5nM.js.map → TeacherSchoolComponent-BNIskQFr.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-INc6t5nM.js → TeacherSchoolComponent-DRXDnv-p.js} +9 -9
- package/chunk/{TeacherSchoolComponent-P9eOoEkC.js.map → TeacherSchoolComponent-DRXDnv-p.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BbCY31VT.js +4 -4
- package/chunk/TestingRouteOverrides-DEu_4afz.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-CB5rauS5.js +4 -4
- package/chunk/{countryUtils-CRwSXJAo.js → countryUtils-CxM4Re8c.js} +5 -5
- package/chunk/{countryUtils-2MKDd__w.js.map → countryUtils-CxM4Re8c.js.map} +1 -1
- package/chunk/countryUtils-R_5wICVb.js +12 -0
- package/chunk/{countryUtils-CRwSXJAo.js.map → countryUtils-R_5wICVb.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +4 -4
- package/chunk/da-DwrVoxto.js +4 -4
- package/chunk/de-IWGZLhgY.js +4 -4
- package/chunk/{downshift.esm-CAOak1io.js → downshift.esm-BbR19lWJ.js} +8 -8
- package/chunk/{downshift.esm-BkznXSJa.js.map → downshift.esm-BbR19lWJ.js.map} +1 -1
- package/chunk/{downshift.esm-BkznXSJa.js → downshift.esm-Cy3QHO2k.js} +8 -8
- package/chunk/{downshift.esm-CAOak1io.js.map → downshift.esm-Cy3QHO2k.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-B034wwK_.js +4 -4
- package/chunk/empties-lrCPA-9V.js +4 -4
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/{hooks-DSoorQS3.js → hooks-DtYEjP2m.js} +7 -7
- package/chunk/{hooks-Bu8Px0Ok.js.map → hooks-DtYEjP2m.js.map} +1 -1
- package/chunk/{hooks-Bu8Px0Ok.js → hooks-QCx6OZlb.js} +7 -7
- package/chunk/{hooks-DSoorQS3.js.map → hooks-QCx6OZlb.js.map} +1 -1
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/intl-DYOqmiaL.js +4 -4
- package/chunk/is-CvmKEON9.js +4 -4
- package/chunk/it-CnmveGgC.js +4 -4
- package/chunk/iw-DFUYHkxF.js +4 -4
- package/chunk/ja-CjVb2tWW.js +4 -4
- package/chunk/{jsx-runtime-338NbZob.js → jsx-runtime-DQO6A867.js} +396 -429
- package/chunk/jsx-runtime-DQO6A867.js.map +1 -0
- package/chunk/{jsx-runtime-B6t5B3Mb.js → jsx-runtime-DtApx7WX.js} +396 -429
- package/chunk/jsx-runtime-DtApx7WX.js.map +1 -0
- package/chunk/kk-Dvz4nK6K.js +4 -4
- package/chunk/ko-DzOqBMGC.js +4 -4
- package/chunk/lo-C2WPq55d.js +4 -4
- package/chunk/lt-BSDYvjTF.js +4 -4
- package/chunk/lv-CefDPT-M.js +4 -4
- package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
- package/chunk/mocks-BQNtP7qW.js +4 -4
- package/chunk/mocks-DC7WJf5c.js +4 -4
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/options-DsRV5fwh.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-cPK2r02v.js → programThemeGetters-Bs9weQ3i.js} +5 -5
- package/chunk/{programThemeGetters-cPK2r02v.js.map → programThemeGetters-Bs9weQ3i.js.map} +1 -1
- package/chunk/{programThemeGetters-VBBOPS4w.js → programThemeGetters-CHcPOXgA.js} +5 -5
- package/chunk/{programThemeGetters-VBBOPS4w.js.map → programThemeGetters-CHcPOXgA.js.map} +1 -1
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/{stepComponentHelpers-J67LZsd0.js → stepComponentHelpers-C-r8qzyD.js} +5 -5
- package/chunk/{stepComponentHelpers-J67LZsd0.js.map → stepComponentHelpers-C-r8qzyD.js.map} +1 -1
- package/chunk/{stepComponentHelpers-hkvp2qUS.js → stepComponentHelpers-CDj3don1.js} +5 -5
- package/chunk/{stepComponentHelpers-hkvp2qUS.js.map → stepComponentHelpers-CDj3don1.js.map} +1 -1
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-0xjc0i8b.js → useCollectFieldsEndpoint-Bj5AYf3g.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-0xjc0i8b.js.map → useCollectFieldsEndpoint-Bj5AYf3g.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-B2_olsVn.js → useCollectFieldsEndpoint-DKrY7rlv.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-B2_olsVn.js.map → useCollectFieldsEndpoint-DKrY7rlv.js.map} +1 -1
- package/chunk/{useMetrics-C3RIqUJI.js → useMetrics-D6LU4c5p.js} +6 -6
- package/chunk/{useMetrics-dwc-Zjl_.js.map → useMetrics-D6LU4c5p.js.map} +1 -1
- package/chunk/{useMetrics-dwc-Zjl_.js → useMetrics-DGl7Sxfe.js} +6 -6
- package/chunk/{useMetrics-C3RIqUJI.js.map → useMetrics-DGl7Sxfe.js.map} +1 -1
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +82 -82
- package/sheerid.js.map +1 -1
- package/chunk/CaptchaComponent-B0Uxhb51.js.map +0 -1
- package/chunk/CaptchaComponent-FWZqpEIU.js.map +0 -1
- package/chunk/InputText-DBIXmm_R.js.map +0 -1
- package/chunk/InputText-DqQkxoCM.js.map +0 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-Bwc_N_YU.js +0 -243
- package/chunk/StepCollectMilitaryPersonalInfoComponent-Bwc_N_YU.js.map +0 -1
- package/chunk/StepCollectMilitaryPersonalInfoComponent-DYUc7Vl8.js +0 -247
- package/chunk/StepCollectMilitaryPersonalInfoComponent-DYUc7Vl8.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-DT-XZGrm.js +0 -370
- package/chunk/StepCollectPersonalInfo-DT-XZGrm.js.map +0 -1
- package/chunk/StepCollectPersonalInfo-GMuXh62L.js +0 -366
- package/chunk/StepCollectPersonalInfo-GMuXh62L.js.map +0 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-C5upCQ_b.js +0 -141
- package/chunk/StepDriverLicensePersonalInfoComponent-C5upCQ_b.js.map +0 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-Cfqv4ArX.js +0 -145
- package/chunk/StepDriverLicensePersonalInfoComponent-Cfqv4ArX.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-BtzyaOOY.js +0 -216
- package/chunk/StepEmploymentPersonalInfo-BtzyaOOY.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-STBW2SrN.js +0 -220
- package/chunk/StepEmploymentPersonalInfo-STBW2SrN.js.map +0 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-0egbo84U.js +0 -174
- package/chunk/StepGeneralIdentityPersonalInfoComponent-0egbo84U.js.map +0 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-B-v5whS7.js +0 -178
- package/chunk/StepGeneralIdentityPersonalInfoComponent-B-v5whS7.js.map +0 -1
- package/chunk/StepHybridIdentityPersonalInfoComponent-DVNnEPFz.js +0 -183
- package/chunk/StepHybridIdentityPersonalInfoComponent-DVNnEPFz.js.map +0 -1
- package/chunk/StepHybridIdentityPersonalInfoComponent-FkG0Eyf1.js +0 -187
- package/chunk/StepHybridIdentityPersonalInfoComponent-FkG0Eyf1.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-CfeMIf_F.js +0 -236
- package/chunk/StepLowIncomePersonalInfo-CfeMIf_F.js.map +0 -1
- package/chunk/StepLowIncomePersonalInfo-DqKgsikM.js +0 -232
- package/chunk/StepLowIncomePersonalInfo-DqKgsikM.js.map +0 -1
- package/chunk/StepMedicalProfessionalPersonalInfo-BABdgYG1.js +0 -207
- package/chunk/StepMedicalProfessionalPersonalInfo-BABdgYG1.js.map +0 -1
- package/chunk/StepMedicalProfessionalPersonalInfo-D6Qa3OQa.js +0 -211
- package/chunk/StepMedicalProfessionalPersonalInfo-D6Qa3OQa.js.map +0 -1
- package/chunk/StepMoverPersonalInfo-BLVGo4WA.js +0 -141
- package/chunk/StepMoverPersonalInfo-BLVGo4WA.js.map +0 -1
- package/chunk/StepMoverPersonalInfo-RgHhWyvt.js +0 -145
- package/chunk/StepMoverPersonalInfo-RgHhWyvt.js.map +0 -1
- package/chunk/StepSocialSecurityNumber-C7WCFboD.js +0 -151
- package/chunk/StepSocialSecurityNumber-C7WCFboD.js.map +0 -1
- package/chunk/StepSocialSecurityNumber-DORTk9EQ.js.map +0 -1
- package/chunk/countryUtils-2MKDd__w.js +0 -12
- package/chunk/jsx-runtime-338NbZob.js.map +0 -1
- package/chunk/jsx-runtime-B6t5B3Mb.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepSocialSecurityNumber-eisNq5zV.js","names":[],"sources":["../../src/components/StepSocialSecurityNumber/SsnChoice.tsx","../../src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\n\ntype Props = {\n useSsn: () => void;\n useDocUpload: () => void;\n verificationService: any;\n};\n\nconst Step = ({ useSsn, useDocUpload, verificationService }: Props) => (\n <div id=\"sid-ssn-choice\" className=\"sid-ssn-choice-container sid-l-container sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-ssn-choice-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <div className=\"sid-header__title sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.selectOption\"\n defaultMessage=\"Select an option\"\n tagName=\"h1\"\n />\n </div>\n </div>\n\n <div className=\"sid-ssn-choice__choice1 sid-l-space-top-lg\">\n <button\n type=\"button\"\n onClick={useSsn}\n className=\"sid-btn sid-ssn-choice-one-btn sid-btn--light sid-l-full-width sid-use-ssn\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.useSsn\"\n defaultMessage=\"Verify using your social security number\"\n />\n </button>\n </div>\n\n <div className=\"sid-ssn-choice__choice2 sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={useDocUpload}\n className=\"sid-btn sid-ssn-choice-two-btn sid-btn--light sid-l-full-width sid-use-doc-upload\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadDoc\"\n defaultMessage=\"Upload a document\"\n />\n </button>\n </div>\n </div>\n <div className=\"sid-ssn-choice__footer sid-l-space-top-lg\">\n <FormFooter verificationService={verificationService} />\n </div>\n </div>\n);\n\nexport const SsnChoice = Step;\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum, FieldIdEnum } from \"../../lib/types/runtimeTypes\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport { type VerificationService, type SocialSecurityViewModel } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nimport { SsnChoice } from \"./SsnChoice\";\n\ninterface StepSocialSecurityNumberProps {\n verificationService: VerificationService;\n}\n\nexport const StepSocialSecurityNumber = ({\n verificationService,\n}: StepSocialSecurityNumberProps) => {\n const [showChoice, setShowChoice] = React.useState(true);\n const viewModel = verificationService.viewModel as SocialSecurityViewModel;\n const { fieldValidationErrors } = verificationService;\n const doCancelStep = () =>\n verificationService.submitStep(\n VerificationStepsEnum.cancelSocialSecurityNumber,\n viewModel,\n verificationService.verificationResponse,\n );\n\n const updateSSNViewModel = (key: keyof SocialSecurityViewModel, value: any) => {\n const nextState: SocialSecurityViewModel = produce(\n viewModel,\n (draft: SocialSecurityViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const isSubmittable =\n viewModel.socialSecurityNumber && viewModel.socialSecurityNumber.toString().length === 9;\n\n if (showChoice) {\n return (\n <SsnChoice\n useSsn={() => setShowChoice(false)}\n useDocUpload={doCancelStep}\n verificationService={verificationService}\n />\n );\n }\n\n return (\n <div\n id=\"sid-step-social-security\"\n className=\"sid-social-sercurity-number-container sid-l-container sid-l-horz-center\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-social-security-number-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.title\"\n defaultMessage=\"Enter your social security number\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updateSSNViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\">\n <div className=\"sid-social-security-number-submit sid-submit\">\n <button\n id=\"sid-submit-wrapper__collect-info\"\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.collectSocialSecurityNumber,\n )\n }\n type=\"submit\"\n className={`sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${\n isSubmittable ? \"\" : \"sid-btn--disabled-like\"\n }`}\n aria-label=\"submit\"\n ref={(button) => setRef(\"submitButton\", button)}\n >\n <FormattedHTMLMessage id=\"proceed\" defaultMessage=\"Proceed\" />\n </button>\n </div>\n </div>\n\n <div\n className=\"sid-form-region sid-social-security-number-upload-instead-btn sid-l-space-top-md\"\n role=\"button\"\n tabIndex={0}\n onKeyUp={doCancelStep}\n onClick={doCancelStep}\n >\n <div className=\"sid-social-security-number-upload-instead-text sid-h-link-like\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadInstead\"\n defaultMessage=\"Upload a document instead\"\n />\n </div>\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;4CA2DA,KAhDA,EAAA,WAAA,iBAAA,6BAAA,iBAAA,GAAA,EAAA,MAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ICYa,KAA4B,EACvC,6BACmC;CACnC,IAAM,CAAC,GAAY,KAAA,EAAuB,SAAS,EAAI,GACjD,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,UACJ,EAAoB,WAClB,EAAsB,4BACtB,GACA,EAAoB,oBACtB,GAEI,KAAsB,GAAoC,MAAe;EAC7E,IAAM,IAAqC,EACzC,IACC,MAAmC;GAClC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,IACJ,EAAU,wBAAwB,EAAU,qBAAqB,SAAS,EAAE,WAAW;CAYzF,OAVI,IAEA,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,cAAc,EAAc,EAAK;EACjC,cAAc;EACO;CACtB,CAAA,IAKH,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,MAAC,OAAD;KAAK,WAAU;eAAf;MACE,iBAAA,GAAA,EAAA,KAAC,OAAD;OAAK,WAAU;iBACb,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAoC,uBAAsB,CAAA;MACvD,CAAA;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD;OAAkB,OAAM;iBACtB,iBAAA,GAAA,EAAA,KAAC,GAAD;QACE,IAAG;QACH,gBAAe;QACf,SAAQ;OACT,CAAA;MACe,CAAA;MAElB,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;MAEpE,iBAAA,GAAA,EAAA,KAAC,OAAD;OAAK,WAAU;iBACb,iBAAA,GAAA,EAAA,KAAC,GAAD;QACE,OAAO,EAAU;QACjB,WAAW,MAAkB;SAE3B,AADA,EAAmB,wBAAwB,CAAK,GAChD,EACE,wBACA,GACA,CACF;QACF;QACA,WAAW,CAAC,CAAC,EAAsB,EAAY;QAC/C,aAAY;OACb,CAAA;MACE,CAAA;KACF;;IAEL,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,OAAD;MAAK,WAAU;gBACb,iBAAA,GAAA,EAAA,KAAC,UAAD;OACE,IAAG;OACH,eACE,EACE,GACA,GACA,EAAsB,2BACxB;OAEF,MAAK;OACL,WAAW,gFACT,IAAgB,KAAK;OAEvB,cAAW;OACX,MAAM,MAAW,EAAO,gBAAgB,CAAM;iBAE9C,iBAAA,GAAA,EAAA,KAAC,GAAD;QAAsB,IAAG;QAAU,gBAAe;OAAW,CAAA;MACvD,CAAA;KACL,CAAA;IACF,CAAA;IAEL,iBAAA,GAAA,EAAA,KAAC,OAAD;KACE,WAAU;KACV,MAAK;KACL,UAAU;KACV,SAAS;KACT,SAAS;eAET,iBAAA,GAAA,EAAA,KAAC,OAAD;MAAK,WAAU;gBACb,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KACE,CAAA;IACF,CAAA;GACF;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -4,110 +4,110 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.296.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790267309032
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 16:28:29 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: c40128b666ae42ee6a9edba848b7517c53c4e62a
|
|
11
11
|
*/
|
|
12
12
|
import { kt as e, p as t } from "./intl-DYOqmiaL.js";
|
|
13
13
|
import { b as n, t as r } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import { o as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { d
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
14
|
+
import { n as i, s as a, t as o } from "./jsx-runtime-DtApx7WX.js";
|
|
15
|
+
import { t as s } from "./FormFooterComponent-CmpIRI0d.js";
|
|
16
|
+
import { o as c } from "./refs-Mq0rtW9K.js";
|
|
17
|
+
import { t as l } from "./LogoComponent-jL4Rq6ZT.js";
|
|
18
|
+
import { t as u } from "./AnnouncingHeader-CnV2m0Ak.js";
|
|
19
|
+
import { d, l as f } from "./stepComponentHelpers-C-r8qzyD.js";
|
|
20
|
+
import { t as p } from "./ChangeLocaleComponent-Blkp6RPU.js";
|
|
21
|
+
import { t as m } from "./SSN-CiU8LUIC.js";
|
|
22
22
|
//#region src/components/StepSocialSecurityNumber/SsnChoice.tsx
|
|
23
|
-
var
|
|
23
|
+
var h = /* @__PURE__ */ e(a(), 1), g = o(), _ = ({ useSsn: e, useDocUpload: t, verificationService: n }) => /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
24
24
|
id: "sid-ssn-choice",
|
|
25
25
|
className: "sid-ssn-choice-container sid-l-container sid-l-horz-center",
|
|
26
|
-
children: [/* @__PURE__ */ (0,
|
|
26
|
+
children: [/* @__PURE__ */ (0, g.jsxs)("div", {
|
|
27
27
|
role: "main",
|
|
28
28
|
children: [
|
|
29
|
-
/* @__PURE__ */ (0,
|
|
29
|
+
/* @__PURE__ */ (0, g.jsxs)("div", {
|
|
30
30
|
className: "sid-header",
|
|
31
|
-
children: [/* @__PURE__ */ (0,
|
|
31
|
+
children: [/* @__PURE__ */ (0, g.jsx)("div", {
|
|
32
32
|
className: "sid-ssn-choice-logo-container sid-l-horz-center",
|
|
33
|
-
children: /* @__PURE__ */ (0,
|
|
34
|
-
}), /* @__PURE__ */ (0,
|
|
33
|
+
children: /* @__PURE__ */ (0, g.jsx)(l, { verificationService: n })
|
|
34
|
+
}), /* @__PURE__ */ (0, g.jsx)("div", {
|
|
35
35
|
className: "sid-header__title sid-l-horz-center",
|
|
36
|
-
children: /* @__PURE__ */ (0,
|
|
36
|
+
children: /* @__PURE__ */ (0, g.jsx)(i, {
|
|
37
37
|
id: "step.collectSocialSecurityNumber.selectOption",
|
|
38
38
|
defaultMessage: "Select an option",
|
|
39
39
|
tagName: "h1"
|
|
40
40
|
})
|
|
41
41
|
})]
|
|
42
42
|
}),
|
|
43
|
-
/* @__PURE__ */ (0,
|
|
43
|
+
/* @__PURE__ */ (0, g.jsx)("div", {
|
|
44
44
|
className: "sid-ssn-choice__choice1 sid-l-space-top-lg",
|
|
45
|
-
children: /* @__PURE__ */ (0,
|
|
45
|
+
children: /* @__PURE__ */ (0, g.jsx)("button", {
|
|
46
46
|
type: "button",
|
|
47
47
|
onClick: e,
|
|
48
48
|
className: "sid-btn sid-ssn-choice-one-btn sid-btn--light sid-l-full-width sid-use-ssn",
|
|
49
|
-
children: /* @__PURE__ */ (0,
|
|
49
|
+
children: /* @__PURE__ */ (0, g.jsx)(i, {
|
|
50
50
|
id: "step.collectSocialSecurityNumber.useSsn",
|
|
51
51
|
defaultMessage: "Verify using your social security number"
|
|
52
52
|
})
|
|
53
53
|
})
|
|
54
54
|
}),
|
|
55
|
-
/* @__PURE__ */ (0,
|
|
55
|
+
/* @__PURE__ */ (0, g.jsx)("div", {
|
|
56
56
|
className: "sid-ssn-choice__choice2 sid-l-space-top-md",
|
|
57
|
-
children: /* @__PURE__ */ (0,
|
|
57
|
+
children: /* @__PURE__ */ (0, g.jsx)("button", {
|
|
58
58
|
type: "button",
|
|
59
59
|
onClick: t,
|
|
60
60
|
className: "sid-btn sid-ssn-choice-two-btn sid-btn--light sid-l-full-width sid-use-doc-upload",
|
|
61
|
-
children: /* @__PURE__ */ (0,
|
|
61
|
+
children: /* @__PURE__ */ (0, g.jsx)(i, {
|
|
62
62
|
id: "step.collectSocialSecurityNumber.uploadDoc",
|
|
63
63
|
defaultMessage: "Upload a document"
|
|
64
64
|
})
|
|
65
65
|
})
|
|
66
66
|
})
|
|
67
67
|
]
|
|
68
|
-
}), /* @__PURE__ */ (0,
|
|
68
|
+
}), /* @__PURE__ */ (0, g.jsx)("div", {
|
|
69
69
|
className: "sid-ssn-choice__footer sid-l-space-top-lg",
|
|
70
|
-
children: /* @__PURE__ */ (0,
|
|
70
|
+
children: /* @__PURE__ */ (0, g.jsx)(s, { verificationService: n })
|
|
71
71
|
})]
|
|
72
|
-
}),
|
|
73
|
-
let [
|
|
74
|
-
let i = t(
|
|
72
|
+
}), v = ({ verificationService: e }) => {
|
|
73
|
+
let [a, o] = h.useState(!0), v = e.viewModel, { fieldValidationErrors: y } = e, b = () => e.submitStep(n.cancelSocialSecurityNumber, v, e.verificationResponse), x = (n, r) => {
|
|
74
|
+
let i = t(v, (e) => {
|
|
75
75
|
e[n] = r;
|
|
76
76
|
});
|
|
77
77
|
e.updateViewModel(i);
|
|
78
|
-
}, S =
|
|
79
|
-
return
|
|
80
|
-
useSsn: () =>
|
|
78
|
+
}, S = v.socialSecurityNumber && v.socialSecurityNumber.toString().length === 9;
|
|
79
|
+
return a ? /* @__PURE__ */ (0, g.jsx)(_, {
|
|
80
|
+
useSsn: () => o(!1),
|
|
81
81
|
useDocUpload: b,
|
|
82
82
|
verificationService: e
|
|
83
|
-
}) : /* @__PURE__ */ (0,
|
|
83
|
+
}) : /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
84
84
|
id: "sid-step-social-security",
|
|
85
85
|
className: "sid-social-sercurity-number-container sid-l-container sid-l-horz-center",
|
|
86
|
-
children: [/* @__PURE__ */ (0,
|
|
86
|
+
children: [/* @__PURE__ */ (0, g.jsxs)("div", {
|
|
87
87
|
role: "main",
|
|
88
88
|
children: [
|
|
89
|
-
/* @__PURE__ */ (0,
|
|
89
|
+
/* @__PURE__ */ (0, g.jsxs)("div", {
|
|
90
90
|
className: "sid-header",
|
|
91
91
|
children: [
|
|
92
|
-
/* @__PURE__ */ (0,
|
|
92
|
+
/* @__PURE__ */ (0, g.jsx)("div", {
|
|
93
93
|
className: "sid-social-security-number-logo-container sid-l-horz-center",
|
|
94
|
-
children: /* @__PURE__ */ (0,
|
|
94
|
+
children: /* @__PURE__ */ (0, g.jsx)(l, { verificationService: e })
|
|
95
95
|
}),
|
|
96
|
-
/* @__PURE__ */ (0,
|
|
96
|
+
/* @__PURE__ */ (0, g.jsx)(u, {
|
|
97
97
|
align: "center",
|
|
98
|
-
children: /* @__PURE__ */ (0,
|
|
98
|
+
children: /* @__PURE__ */ (0, g.jsx)(i, {
|
|
99
99
|
id: "step.collectSocialSecurityNumber.title",
|
|
100
100
|
defaultMessage: "Enter your social security number",
|
|
101
101
|
tagName: "h1"
|
|
102
102
|
})
|
|
103
103
|
}),
|
|
104
|
-
/* @__PURE__ */ (0,
|
|
105
|
-
/* @__PURE__ */ (0,
|
|
104
|
+
/* @__PURE__ */ (0, g.jsx)(p, { verificationService: e }),
|
|
105
|
+
/* @__PURE__ */ (0, g.jsx)("div", {
|
|
106
106
|
className: "sid-ssn-wrapper",
|
|
107
|
-
children: /* @__PURE__ */ (0,
|
|
108
|
-
value:
|
|
107
|
+
children: /* @__PURE__ */ (0, g.jsx)(m, {
|
|
108
|
+
value: v.socialSecurityNumber,
|
|
109
109
|
onChange: (t) => {
|
|
110
|
-
x("socialSecurityNumber", t),
|
|
110
|
+
x("socialSecurityNumber", t), d("socialSecurityNumber", t, e);
|
|
111
111
|
},
|
|
112
112
|
isErrored: !!y[r.socialSecurityNumber],
|
|
113
113
|
placeholder: "000-00-0000"
|
|
@@ -115,41 +115,41 @@ var g = /* @__PURE__ */ e(a(), 1), _ = s(), v = ({ useSsn: e, useDocUpload: t, v
|
|
|
115
115
|
})
|
|
116
116
|
]
|
|
117
117
|
}),
|
|
118
|
-
/* @__PURE__ */ (0,
|
|
118
|
+
/* @__PURE__ */ (0, g.jsx)("div", {
|
|
119
119
|
className: "sid-form-region sid-submit-wrapper sid-l-space-top-md",
|
|
120
|
-
children: /* @__PURE__ */ (0,
|
|
120
|
+
children: /* @__PURE__ */ (0, g.jsx)("div", {
|
|
121
121
|
className: "sid-social-security-number-submit sid-submit",
|
|
122
|
-
children: /* @__PURE__ */ (0,
|
|
122
|
+
children: /* @__PURE__ */ (0, g.jsx)("button", {
|
|
123
123
|
id: "sid-submit-wrapper__collect-info",
|
|
124
|
-
onClick: () =>
|
|
124
|
+
onClick: () => f(v, e, n.collectSocialSecurityNumber),
|
|
125
125
|
type: "submit",
|
|
126
126
|
className: `sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${S ? "" : "sid-btn--disabled-like"}`,
|
|
127
127
|
"aria-label": "submit",
|
|
128
|
-
ref: (e) =>
|
|
129
|
-
children: /* @__PURE__ */ (0,
|
|
128
|
+
ref: (e) => c("submitButton", e),
|
|
129
|
+
children: /* @__PURE__ */ (0, g.jsx)(i, {
|
|
130
130
|
id: "proceed",
|
|
131
131
|
defaultMessage: "Proceed"
|
|
132
132
|
})
|
|
133
133
|
})
|
|
134
134
|
})
|
|
135
135
|
}),
|
|
136
|
-
/* @__PURE__ */ (0,
|
|
136
|
+
/* @__PURE__ */ (0, g.jsx)("div", {
|
|
137
137
|
className: "sid-form-region sid-social-security-number-upload-instead-btn sid-l-space-top-md",
|
|
138
138
|
role: "button",
|
|
139
139
|
tabIndex: 0,
|
|
140
140
|
onKeyUp: b,
|
|
141
141
|
onClick: b,
|
|
142
|
-
children: /* @__PURE__ */ (0,
|
|
142
|
+
children: /* @__PURE__ */ (0, g.jsx)("div", {
|
|
143
143
|
className: "sid-social-security-number-upload-instead-text sid-h-link-like",
|
|
144
|
-
children: /* @__PURE__ */ (0,
|
|
144
|
+
children: /* @__PURE__ */ (0, g.jsx)(i, {
|
|
145
145
|
id: "step.collectSocialSecurityNumber.uploadInstead",
|
|
146
146
|
defaultMessage: "Upload a document instead"
|
|
147
147
|
})
|
|
148
148
|
})
|
|
149
149
|
})
|
|
150
150
|
]
|
|
151
|
-
}), /* @__PURE__ */ (0,
|
|
151
|
+
}), /* @__PURE__ */ (0, g.jsx)(s, { verificationService: e })]
|
|
152
152
|
});
|
|
153
|
-
}
|
|
153
|
+
};
|
|
154
154
|
//#endregion
|
|
155
|
-
export {
|
|
155
|
+
export { v as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepSocialSecurityNumber-tQeL8BPo.js","names":[],"sources":["../../src/components/StepSocialSecurityNumber/SsnChoice.tsx","../../src/components/StepSocialSecurityNumber/StepSocialSecurityNumber.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\n\ntype Props = {\n useSsn: () => void;\n useDocUpload: () => void;\n verificationService: any;\n};\n\nconst Step = ({ useSsn, useDocUpload, verificationService }: Props) => (\n <div id=\"sid-ssn-choice\" className=\"sid-ssn-choice-container sid-l-container sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-ssn-choice-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <div className=\"sid-header__title sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.selectOption\"\n defaultMessage=\"Select an option\"\n tagName=\"h1\"\n />\n </div>\n </div>\n\n <div className=\"sid-ssn-choice__choice1 sid-l-space-top-lg\">\n <button\n type=\"button\"\n onClick={useSsn}\n className=\"sid-btn sid-ssn-choice-one-btn sid-btn--light sid-l-full-width sid-use-ssn\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.useSsn\"\n defaultMessage=\"Verify using your social security number\"\n />\n </button>\n </div>\n\n <div className=\"sid-ssn-choice__choice2 sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={useDocUpload}\n className=\"sid-btn sid-ssn-choice-two-btn sid-btn--light sid-l-full-width sid-use-doc-upload\"\n >\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadDoc\"\n defaultMessage=\"Upload a document\"\n />\n </button>\n </div>\n </div>\n <div className=\"sid-ssn-choice__footer sid-l-space-top-lg\">\n <FormFooter verificationService={verificationService} />\n </div>\n </div>\n);\n\nexport const SsnChoice = Step;\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum, FieldIdEnum } from \"../../lib/types/runtimeTypes\";\nimport { setRef } from \"../../lib/refs/refs\";\nimport { type VerificationService, type SocialSecurityViewModel } from \"../../lib/types/types\";\nimport {\n submitForm,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nimport { SsnChoice } from \"./SsnChoice\";\n\ninterface StepSocialSecurityNumberProps {\n verificationService: VerificationService;\n}\n\nexport const StepSocialSecurityNumber = ({\n verificationService,\n}: StepSocialSecurityNumberProps) => {\n const [showChoice, setShowChoice] = React.useState(true);\n const viewModel = verificationService.viewModel as SocialSecurityViewModel;\n const { fieldValidationErrors } = verificationService;\n const doCancelStep = () =>\n verificationService.submitStep(\n VerificationStepsEnum.cancelSocialSecurityNumber,\n viewModel,\n verificationService.verificationResponse,\n );\n\n const updateSSNViewModel = (key: keyof SocialSecurityViewModel, value: any) => {\n const nextState: SocialSecurityViewModel = produce(\n viewModel,\n (draft: SocialSecurityViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const isSubmittable =\n viewModel.socialSecurityNumber && viewModel.socialSecurityNumber.toString().length === 9;\n\n if (showChoice) {\n return (\n <SsnChoice\n useSsn={() => setShowChoice(false)}\n useDocUpload={doCancelStep}\n verificationService={verificationService}\n />\n );\n }\n\n return (\n <div\n id=\"sid-step-social-security\"\n className=\"sid-social-sercurity-number-container sid-l-container sid-l-horz-center\"\n >\n <div role=\"main\">\n <div className=\"sid-header\">\n <div className=\"sid-social-security-number-logo-container sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.title\"\n defaultMessage=\"Enter your social security number\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updateSSNViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-submit-wrapper sid-l-space-top-md\">\n <div className=\"sid-social-security-number-submit sid-submit\">\n <button\n id=\"sid-submit-wrapper__collect-info\"\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.collectSocialSecurityNumber,\n )\n }\n type=\"submit\"\n className={`sid-btn sid-social-security-number-submit-btn sid-btn--dark sid-l-full-width ${\n isSubmittable ? \"\" : \"sid-btn--disabled-like\"\n }`}\n aria-label=\"submit\"\n ref={(button) => setRef(\"submitButton\", button)}\n >\n <FormattedHTMLMessage id=\"proceed\" defaultMessage=\"Proceed\" />\n </button>\n </div>\n </div>\n\n <div\n className=\"sid-form-region sid-social-security-number-upload-instead-btn sid-l-space-top-md\"\n role=\"button\"\n tabIndex={0}\n onKeyUp={doCancelStep}\n onClick={doCancelStep}\n >\n <div className=\"sid-social-security-number-upload-instead-text sid-h-link-like\">\n <FormattedHTMLMessage\n id=\"step.collectSocialSecurityNumber.uploadInstead\"\n defaultMessage=\"Upload a document instead\"\n />\n </div>\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;4CA2DA,KAhDA,EAAA,WAAA,iBAAA,6BAAA,iBAAA,GAAA,EAAA,MAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ICYa,KAA4B,EACvC,6BACmC;CACnC,IAAM,CAAC,GAAY,KAAA,EAAuB,SAAS,EAAI,GACjD,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,UACJ,EAAoB,WAClB,EAAsB,4BACtB,GACA,EAAoB,oBACtB,GAEI,KAAsB,GAAoC,MAAe;EAC7E,IAAM,IAAqC,EACzC,IACC,MAAmC;GAClC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,IACJ,EAAU,wBAAwB,EAAU,qBAAqB,SAAS,EAAE,WAAW;CAYzF,OAVI,IAEA,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,cAAc,EAAc,EAAK;EACjC,cAAc;EACO;CACtB,C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SAAS;KACT,SAAS;eAET,iBAAA,GAAA,EAAA,KAAC,OAAD;MAAK,WAAU;gBACb,iBAAA,GAAA,EAAA,KAAC,GAAD;OACE,IAAG;OACH,gBAAe;MAChB,CAAA;KACE,CAAA;IACF,CAAA;GACF;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -4,68 +4,68 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.296.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1790267309032
|
|
9
|
+
* BUILD_DATE: Thu Sep 24 2026 16:28:29 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: c40128b666ae42ee6a9edba848b7517c53c4e62a
|
|
11
11
|
*/
|
|
12
12
|
import { kt as e, p as t, s as n } from "./intl-DYOqmiaL.js";
|
|
13
13
|
import { b as r, p as i } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import {
|
|
15
|
-
import { n as c } from "./Message-
|
|
16
|
-
import { p as l } from "./FormFooterComponent-
|
|
17
|
-
import { t as u } from "./hooks-
|
|
14
|
+
import { n as a, s as o, t as s } from "./jsx-runtime-DtApx7WX.js";
|
|
15
|
+
import { n as c } from "./Message-CZskfqcI.js";
|
|
16
|
+
import { p as l } from "./FormFooterComponent-CmpIRI0d.js";
|
|
17
|
+
import { t as u } from "./hooks-DtYEjP2m.js";
|
|
18
18
|
import { t as d } from "../_mysheerid-preview.js";
|
|
19
|
-
import { d as f, f as p, r as m, t as h } from "./stepComponentHelpers-
|
|
20
|
-
import { a as g, i as _, n as v, o as y, s as b, t as x } from "./CaptchaComponent-
|
|
21
|
-
import { t as S } from "./FormFieldText-
|
|
22
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-
|
|
23
|
-
import { i as T } from "./FormSelectChoice-
|
|
24
|
-
import { t as E } from "./BirthDateComponent-
|
|
25
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
26
|
-
import { t as O } from "./ExtraMessage-
|
|
27
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
28
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
29
|
-
import { t as j } from "./CollegeNameComponent-
|
|
30
|
-
import { t as M } from "./StatusComponent-
|
|
19
|
+
import { d as f, f as p, r as m, t as h } from "./stepComponentHelpers-C-r8qzyD.js";
|
|
20
|
+
import { a as g, i as _, n as v, o as y, s as b, t as x } from "./CaptchaComponent-hjpjrO_P.js";
|
|
21
|
+
import { t as S } from "./FormFieldText-BU2NBm1H.js";
|
|
22
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-obiTgRFv.js";
|
|
23
|
+
import { i as T } from "./FormSelectChoice-BzH4Y9DK.js";
|
|
24
|
+
import { t as E } from "./BirthDateComponent-CTKl9PbC.js";
|
|
25
|
+
import { t as D } from "./CountryComponentWrapper-F2GH1MuK.js";
|
|
26
|
+
import { t as O } from "./ExtraMessage-wekuxzBu.js";
|
|
27
|
+
import { t as k } from "./ChangeLocaleComponent-Blkp6RPU.js";
|
|
28
|
+
import { t as A } from "./PersonalInfoStepWrapper-Bwy_EnUr.js";
|
|
29
|
+
import { t as j } from "./CollegeNameComponent-DkbR_G-h.js";
|
|
30
|
+
import { t as M } from "./StatusComponent-CYTWVmt6.js";
|
|
31
31
|
//#region src/components/FormFields/CVECNumber/CVECNumberComponent.tsx
|
|
32
|
-
var N = /* @__PURE__ */ e(
|
|
32
|
+
var N = /* @__PURE__ */ e(o(), 1), P = s(), F = ({ value: e, isErrored: t, onChange: n, explanation: r, placeholder: i = "", isRequired: o = !1 }) => {
|
|
33
33
|
let { msg: s } = c(), l = u("include-cvec-field-france-student");
|
|
34
34
|
return h("cvecNumber")?.hidden ? null : /* @__PURE__ */ (0, P.jsx)(S, {
|
|
35
35
|
fieldId: "cvecNumber",
|
|
36
36
|
value: e,
|
|
37
37
|
onChange: n,
|
|
38
38
|
placeholder: i || s({ id: "cvecNumber" }),
|
|
39
|
-
label: /* @__PURE__ */ (0, P.jsx)(
|
|
39
|
+
label: /* @__PURE__ */ (0, P.jsx)(a, {
|
|
40
40
|
id: "cvecNumber",
|
|
41
41
|
defaultMessage: "CVEC certificate number"
|
|
42
42
|
}),
|
|
43
|
-
errorMessage: t && /* @__PURE__ */ (0, P.jsx)(
|
|
43
|
+
errorMessage: t && /* @__PURE__ */ (0, P.jsx)(a, {
|
|
44
44
|
id: "errorId.invalidCvecNumber",
|
|
45
45
|
defaultMessage: "Invalid CVEC certificate number"
|
|
46
46
|
}),
|
|
47
47
|
showPlaceholderAndHideLabel: !!i,
|
|
48
|
-
required:
|
|
49
|
-
explanation: r || (l === "labeled-optional" ? /* @__PURE__ */ (0, P.jsx)(
|
|
48
|
+
required: o,
|
|
49
|
+
explanation: r || (l === "labeled-optional" ? /* @__PURE__ */ (0, P.jsx)(a, {
|
|
50
50
|
id: "cvecNumberExplanation",
|
|
51
51
|
defaultMessage: "Optional - Add your CVEC number to increase your chances of being verified instantly."
|
|
52
|
-
}) : /* @__PURE__ */ (0, P.jsx)(
|
|
52
|
+
}) : /* @__PURE__ */ (0, P.jsx)(a, {
|
|
53
53
|
id: "_EXPERIMENTAL.cvecNumberExplanation",
|
|
54
54
|
defaultMessage: "Add your CVEC number to increase your chances of being verified instantly."
|
|
55
55
|
}))
|
|
56
56
|
});
|
|
57
57
|
}, I = Object.keys(i), L = ({ verificationService: e }) => {
|
|
58
|
-
let { msg: i } = c(),
|
|
58
|
+
let { msg: i } = c(), o = e.viewModel, { fieldValidationErrors: s } = e, S = e.verificationResponse, L = n(), R = u("include-cvec-field-france-student"), z = R !== "control" && R !== "default" && o?.countryChoice?.value === "FR", B = S.availableStatuses ?? [], V = B.includes("GRADUATE") && B.some((e) => e !== "GRADUATE");
|
|
59
59
|
N.useEffect(() => {
|
|
60
60
|
let t = (e.viewModel?.fieldsToSkipValidation || []).filter((e) => e !== "cvecNumber" && e !== "status");
|
|
61
61
|
z || (t = [...t, "cvecNumber"]), V || (t = [...t, "status"]), U("fieldsToSkipValidation", t);
|
|
62
62
|
}, [z, V]);
|
|
63
63
|
let H = l(S), U = (n, r) => {
|
|
64
|
-
let i = t(
|
|
64
|
+
let i = t(o, (e) => {
|
|
65
65
|
e[n] = r;
|
|
66
66
|
});
|
|
67
67
|
e.updateViewModel(i);
|
|
68
|
-
}, W =
|
|
68
|
+
}, W = o.localeChoice.value, G = T(I);
|
|
69
69
|
return /* @__PURE__ */ (0, P.jsxs)(A, {
|
|
70
70
|
verificationService: e,
|
|
71
71
|
step: S.currentStep,
|
|
@@ -81,11 +81,11 @@ var N = /* @__PURE__ */ e(a(), 1), P = s(), F = ({ value: e, isErrored: t, onCha
|
|
|
81
81
|
}),
|
|
82
82
|
V && /* @__PURE__ */ (0, P.jsx)(M, {
|
|
83
83
|
segmentId: "student",
|
|
84
|
-
label: /* @__PURE__ */ (0, P.jsx)(
|
|
84
|
+
label: /* @__PURE__ */ (0, P.jsx)(a, {
|
|
85
85
|
id: "graduationStatus",
|
|
86
86
|
defaultMessage: "Graduation Status"
|
|
87
87
|
}),
|
|
88
|
-
value: G.find((e) => e.value ===
|
|
88
|
+
value: G.find((e) => e.value === o.status),
|
|
89
89
|
isErrored: !!s.status,
|
|
90
90
|
options: G,
|
|
91
91
|
disabled: h("status")?.disabled,
|
|
@@ -106,7 +106,7 @@ var N = /* @__PURE__ */ e(a(), 1), P = s(), F = ({ value: e, isErrored: t, onCha
|
|
|
106
106
|
}),
|
|
107
107
|
z && /* @__PURE__ */ (0, P.jsx)(F, {
|
|
108
108
|
isRequired: h("cvecNumber")?.requireIfOptional,
|
|
109
|
-
value:
|
|
109
|
+
value: o.cvecNumber,
|
|
110
110
|
isErrored: !!s.cvecNumber,
|
|
111
111
|
disabled: h("cvecNumber")?.disabled,
|
|
112
112
|
onChange: (t) => {
|
|
@@ -115,7 +115,7 @@ var N = /* @__PURE__ */ e(a(), 1), P = s(), F = ({ value: e, isErrored: t, onCha
|
|
|
115
115
|
}),
|
|
116
116
|
/* @__PURE__ */ (0, P.jsx)("div", {
|
|
117
117
|
className: "sid-names-explanation sid-l-space-top-md",
|
|
118
|
-
children: /* @__PURE__ */ (0, P.jsx)(
|
|
118
|
+
children: /* @__PURE__ */ (0, P.jsx)(a, {
|
|
119
119
|
id: "step.personalInfo.nameInstructions",
|
|
120
120
|
defaultMessage: "Personal or school email is fine"
|
|
121
121
|
})
|
|
@@ -123,14 +123,14 @@ var N = /* @__PURE__ */ e(a(), 1), P = s(), F = ({ value: e, isErrored: t, onCha
|
|
|
123
123
|
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
124
124
|
className: "sid-names",
|
|
125
125
|
children: [/* @__PURE__ */ (0, P.jsx)(g, {
|
|
126
|
-
value:
|
|
126
|
+
value: o.firstName,
|
|
127
127
|
isErrored: !!s.firstName,
|
|
128
128
|
disabled: h("firstName")?.disabled,
|
|
129
129
|
onChange: (t) => {
|
|
130
130
|
U("firstName", t), f("firstName", t, e);
|
|
131
131
|
}
|
|
132
132
|
}), /* @__PURE__ */ (0, P.jsx)(_, {
|
|
133
|
-
value:
|
|
133
|
+
value: o.lastName,
|
|
134
134
|
isErrored: !!s.lastName,
|
|
135
135
|
disabled: h("lastName")?.disabled,
|
|
136
136
|
onChange: (t) => {
|
|
@@ -139,7 +139,7 @@ var N = /* @__PURE__ */ e(a(), 1), P = s(), F = ({ value: e, isErrored: t, onCha
|
|
|
139
139
|
})]
|
|
140
140
|
}),
|
|
141
141
|
/* @__PURE__ */ (0, P.jsx)(E, {
|
|
142
|
-
value:
|
|
142
|
+
value: o.birthDate,
|
|
143
143
|
errorId: s.birthDate,
|
|
144
144
|
locale: W,
|
|
145
145
|
isRequired: !0,
|
|
@@ -149,9 +149,9 @@ var N = /* @__PURE__ */ e(a(), 1), P = s(), F = ({ value: e, isErrored: t, onCha
|
|
|
149
149
|
}
|
|
150
150
|
}),
|
|
151
151
|
/* @__PURE__ */ (0, P.jsx)(C, {
|
|
152
|
-
value:
|
|
152
|
+
value: o.email,
|
|
153
153
|
isErrored: !!s.email,
|
|
154
|
-
explanation: /* @__PURE__ */ (0, P.jsx)(
|
|
154
|
+
explanation: /* @__PURE__ */ (0, P.jsx)(a, {
|
|
155
155
|
id: "emailExplanation",
|
|
156
156
|
defaultMessage: "Personal or school email is fine"
|
|
157
157
|
}),
|
|
@@ -163,13 +163,13 @@ var N = /* @__PURE__ */ e(a(), 1), P = s(), F = ({ value: e, isErrored: t, onCha
|
|
|
163
163
|
}),
|
|
164
164
|
e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, P.jsx)(y, {
|
|
165
165
|
isRequired: !!e.programTheme.smsLoopEnabled,
|
|
166
|
-
value:
|
|
166
|
+
value: o.phoneNumber,
|
|
167
167
|
isErrored: !!s.phoneNumber,
|
|
168
168
|
disabled: h("phoneNumber")?.disabled,
|
|
169
169
|
onChange: (t) => {
|
|
170
170
|
U("phoneNumber", t), f("phoneNumber", t, e);
|
|
171
171
|
},
|
|
172
|
-
selectedCountryCode:
|
|
172
|
+
selectedCountryCode: o.countryChoice && o.countryChoice.value
|
|
173
173
|
}) : null,
|
|
174
174
|
(L.customFormFields || []).map((t) => /* @__PURE__ */ (0, P.jsx)(v, {
|
|
175
175
|
config: t,
|
|
@@ -186,7 +186,7 @@ var N = /* @__PURE__ */ e(a(), 1), P = s(), F = ({ value: e, isErrored: t, onCha
|
|
|
186
186
|
marketConsentValue: t
|
|
187
187
|
}), f("marketConsentValue", t, e);
|
|
188
188
|
},
|
|
189
|
-
viewModel:
|
|
189
|
+
viewModel: o
|
|
190
190
|
}),
|
|
191
191
|
/* @__PURE__ */ (0, P.jsx)(O, {
|
|
192
192
|
verificationService: e,
|
|
@@ -199,9 +199,9 @@ var N = /* @__PURE__ */ e(a(), 1), P = s(), F = ({ value: e, isErrored: t, onCha
|
|
|
199
199
|
/* @__PURE__ */ (0, P.jsx)(w, {
|
|
200
200
|
step: r.collectStudentPersonalInfo,
|
|
201
201
|
verificationService: e,
|
|
202
|
-
viewModel:
|
|
202
|
+
viewModel: o,
|
|
203
203
|
failedInstantMatch: H,
|
|
204
|
-
buttonText: /* @__PURE__ */ (0, P.jsx)(
|
|
204
|
+
buttonText: /* @__PURE__ */ (0, P.jsx)(a, {
|
|
205
205
|
id: "step.personalInfo.submitButtonText",
|
|
206
206
|
defaultMessage: "Verify My Student Status"
|
|
207
207
|
})
|
package/chunk/{StepStudentPersonalInfo-Bi5S_ykn.js.map → StepStudentPersonalInfo-BXKx-RjY.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepStudentPersonalInfo-Bi5S_ykn.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumberComponent = ({\n value,\n isErrored,\n onChange,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cvecNumber\" })}\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\n\nimport {\n type VerificationService,\n type StudentPersonalInfoViewModel,\n type Organization,\n type StudentPersonalInfoResponse,\n type CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { StudentStatusDefaultMessagesEnum, VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { useFormSelectChoice } from \"../FormInputs/InputSelect/InputSelectComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepStudentPersonalInfoComponent = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const { msg } = useMessage();\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const statusOptions = useFormSelectChoice(STATUS_SELECTIONS);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={statusOptions}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"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 disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;4CAaA,KAAA,EAAA,UAAA,cAAA,aAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,GCjBM,IAAoB,OAAO,KAAK,CAAgC,GAMzD,KAAoC,EAC/C,6BAC2C;CAC3C,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAU,EAAW,GAGrB,IAAyB,EAAQ,mCAAmC,GACpE,IACJ,MAA2B,aAC3B,MAA2B,aAC3B,GAAW,eAAe,UAAU,MAMhC,IAAoB,EAAqB,qBAAqB,CAAC,GAC/D,IACJ,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU;CAE1F,EAAM,gBAAgB;EACpB,IAAI,KAAmB,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QACjF,MAAO,MAAO,gBAAgB,MAAO,QACxC;EASA,AARK,MAEH,IAAO,CAAC,GAAG,GAAM,YAAY,IAE1B,MAEH,IAAO,CAAC,GAAG,GAAM,QAAQ,IAE3B,EAAuB,0BAA0B,CAAI;CACvD,GAAG,CAAC,GAAe,CAAuB,CAAC;CAE3C,IAAM,IAAqB,EAAsB,CAAoB,GAE/D,KAA0B,GAAyC,MAAe;EACtF,IAAM,IAA0C,EAC9C,IACC,MAAwC;GACvC,EAAO,KAAe;EACxB,C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A;GACA,EAAoB,aAAa,2BAClC,EAAoB,aAAa,iBAC/B,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,YAAY,CAAC,CAAC,EAAoB,aAAa;IAC/C,OAAO,EAAU;IACjB,WAAW,CAAC,CAAC,EAAsB;IACnC,UAAU,EAAwB,aAAa,GAAG;IAClD,WAAW,MAAa;KAEtB,AADA,EAAuB,eAAe,CAAQ,GAC9C,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;GACzE,CAAA,IACC;IACF,EAAQ,oBAAoB,CAAC,GAAG,KAAK,MACrC,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAAG;GACJ,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,UAAU,EAAwB,oBAAoB,GAAG;IACzD,WAAW,MAAa;KAKtB,AAJA,EAAuB,YAAY;MACjC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;GACZ,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GACrF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepStudentPersonalInfo-BXKx-RjY.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\nimport { useFlag } from \"../../FeatureFlags/hooks\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const CVECNumberComponent = ({\n value,\n isErrored,\n onChange,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\n const { msg } = useMessage();\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n\n const getDefaultExplanation = () =>\n showCvecInputVariation === \"labeled-optional\" ? (\n <FormattedHTMLMessage\n id=\"cvecNumberExplanation\"\n defaultMessage=\"Optional - Add your CVEC number to increase your chances of being verified instantly.\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"_EXPERIMENTAL.cvecNumberExplanation\"\n defaultMessage=\"Add your CVEC number to increase your chances of being verified instantly.\"\n />\n );\n // #endregion include-cvec-field-france-student\n\n const isFieldHidden = getFieldConfigByFieldId(\"cvecNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"cvecNumber\"\n value={value}\n onChange={onChange}\n placeholder={placeholder || msg({ id: \"cvecNumber\" })}\n label={<FormattedHTMLMessage id=\"cvecNumber\" defaultMessage=\"CVEC certificate number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidCvecNumber\"\n defaultMessage=\"Invalid CVEC certificate number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n />\n );\n};\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\n\nimport {\n type VerificationService,\n type StudentPersonalInfoViewModel,\n type Organization,\n type StudentPersonalInfoResponse,\n type CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { StudentStatusDefaultMessagesEnum, VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { useFormSelectChoice } from \"../FormInputs/InputSelect/InputSelectComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepStudentPersonalInfoComponent = ({\n verificationService,\n}: StepStudentPersonalInfoComponentProps) => {\n const { msg } = useMessage();\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const statusOptions = useFormSelectChoice(STATUS_SELECTIONS);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={statusOptions}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"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 updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"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 disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;4CAaA,KAAA,EAAA,UAAA,cAAA,aAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,GCjBM,IAAoB,OAAO,KAAK,CAAgC,GAMzD,KAAoC,EAC/C,6BAC2C;CAC3C,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAU,EAAW,GAGrB,IAAyB,EAAQ,mCAAmC,GACpE,IACJ,MAA2B,aAC3B,MAA2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