@sheerid/jslib 2.308.0 → 2.309.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 +1105 -1118
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-0YHKJ9J4.js → AddressComponent-B3Qml47B.js} +5 -5
- package/chunk/{AddressComponent-0YHKJ9J4.js.map → AddressComponent-B3Qml47B.js.map} +1 -1
- package/chunk/{AddressComponent-DIG0W__a.js → AddressComponent-a0r-YVHe.js} +8 -8
- package/chunk/{AddressComponent-DIG0W__a.js.map → AddressComponent-a0r-YVHe.js.map} +1 -1
- package/chunk/{AnnouncingHeader-DKOYC3b9.js → AnnouncingHeader-CB2PqiuT.js} +6 -6
- package/chunk/{AnnouncingHeader-DKOYC3b9.js.map → AnnouncingHeader-CB2PqiuT.js.map} +1 -1
- package/chunk/AnnouncingHeader-gJrk6VDV.js +4 -4
- package/chunk/{BirthDateComponent-CJwhC_Xn.js → BirthDateComponent-Ba0lmfef.js} +8 -8
- package/chunk/{BirthDateComponent-CJwhC_Xn.js.map → BirthDateComponent-Ba0lmfef.js.map} +1 -1
- package/chunk/{BirthDateComponent-DpiGGQ_Q.js → BirthDateComponent-Gh2Ww-HN.js} +5 -5
- package/chunk/{BirthDateComponent-DpiGGQ_Q.js.map → BirthDateComponent-Gh2Ww-HN.js.map} +1 -1
- package/chunk/{CaptchaComponent-CIxr0YQ1.js → CaptchaComponent-C-T4LXyy.js} +9 -9
- package/chunk/{CaptchaComponent-CIxr0YQ1.js.map → CaptchaComponent-C-T4LXyy.js.map} +1 -1
- package/chunk/{CaptchaComponent-DtanRbX-.js → CaptchaComponent-CqdB13MA.js} +24 -24
- package/chunk/{CaptchaComponent-DtanRbX-.js.map → CaptchaComponent-CqdB13MA.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-D1JuIC6Z.js → ChangeLocaleComponent-B-N4AzfB.js} +10 -10
- package/chunk/{ChangeLocaleComponent-Bwptiyp-.js.map → ChangeLocaleComponent-B-N4AzfB.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Bwptiyp-.js → ChangeLocaleComponent-BM6BkKWg.js} +13 -13
- package/chunk/{ChangeLocaleComponent-D1JuIC6Z.js.map → ChangeLocaleComponent-BM6BkKWg.js.map} +1 -1
- package/chunk/{City-D63Xv635.js → City-B7BEIzGI.js} +5 -5
- package/chunk/{City-CdtNA5Vw.js.map → City-B7BEIzGI.js.map} +1 -1
- package/chunk/{City-CdtNA5Vw.js → City-CDME59i2.js} +8 -8
- package/chunk/{City-D63Xv635.js.map → City-CDME59i2.js.map} +1 -1
- package/chunk/{CollegeNameComponent-NzTCk0Io.js → CollegeNameComponent-B64nCepe.js} +7 -7
- package/chunk/{CollegeNameComponent-D-KOseX_.js.map → CollegeNameComponent-B64nCepe.js.map} +1 -1
- package/chunk/{CollegeNameComponent-D-KOseX_.js → CollegeNameComponent-Cj39HCwB.js} +10 -10
- package/chunk/{CollegeNameComponent-NzTCk0Io.js.map → CollegeNameComponent-Cj39HCwB.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-BorxChs8.js → CopyToClipboardComponent-BABPBACX.js} +6 -6
- package/chunk/{CopyToClipboardComponent-BorxChs8.js.map → CopyToClipboardComponent-BABPBACX.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-ystjPwTW.js +4 -4
- package/chunk/{CountryComponentWrapper-CymqHdjW.js → CountryComponentWrapper-A1Vji18h.js} +12 -12
- package/chunk/{CountryComponentWrapper-CymqHdjW.js.map → CountryComponentWrapper-A1Vji18h.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-DAcu9MAP.js → CountryComponentWrapper-DuQVlELD.js} +16 -16
- package/chunk/{CountryComponentWrapper-DAcu9MAP.js.map → CountryComponentWrapper-DuQVlELD.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DvV87FK7.js → DischargeDateComponent-BUwpInEA.js} +11 -11
- package/chunk/{DischargeDateComponent-DvV87FK7.js.map → DischargeDateComponent-BUwpInEA.js.map} +1 -1
- package/chunk/{DischargeDateComponent-gHcdda1I.js → DischargeDateComponent-Dgwcq7Dw.js} +8 -8
- package/chunk/{DischargeDateComponent-gHcdda1I.js.map → DischargeDateComponent-Dgwcq7Dw.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-C8AwTtUM.js → DriverLicenseNumberComponent-B0D8GLcQ.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-C8AwTtUM.js.map → DriverLicenseNumberComponent-B0D8GLcQ.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-CTNAU4X4.js → DriverLicenseNumberComponent-IkhrhLmg.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-CTNAU4X4.js.map → DriverLicenseNumberComponent-IkhrhLmg.js.map} +1 -1
- package/chunk/{EmailLoopPending-DvGyQ6LS.js → EmailLoopPending-B9x32FhR.js} +13 -13
- package/chunk/{EmailLoopPending-CsZFcdcY.js.map → EmailLoopPending-B9x32FhR.js.map} +1 -1
- package/chunk/{EmailLoopPending-CsZFcdcY.js → EmailLoopPending-ClrVrMNH.js} +6 -6
- package/chunk/{EmailLoopPending-DvGyQ6LS.js.map → EmailLoopPending-ClrVrMNH.js.map} +1 -1
- package/chunk/{ExtraMessage-TBf4guH7.js → ExtraMessage-BK3KoHza.js} +7 -7
- package/chunk/{ExtraMessage-CgIIaamt.js.map → ExtraMessage-BK3KoHza.js.map} +1 -1
- package/chunk/{ExtraMessage-CgIIaamt.js → ExtraMessage-C0ccH6sk.js} +5 -5
- package/chunk/{ExtraMessage-TBf4guH7.js.map → ExtraMessage-C0ccH6sk.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BZmtl8eB.js → FirstResponderOrganizationComponent-DsYO3abb.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-BZmtl8eB.js.map → FirstResponderOrganizationComponent-DsYO3abb.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-keQCCYJl.js → FirstResponderOrganizationComponent-_EKhZEFo.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-keQCCYJl.js.map → FirstResponderOrganizationComponent-_EKhZEFo.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-cMUBA5Wz.js → FormFieldInputSelect-BSik3OPS.js} +7 -7
- package/chunk/{FormFieldInputSelect-DFhATWCA.js.map → FormFieldInputSelect-BSik3OPS.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DFhATWCA.js → FormFieldInputSelect-CCdSha1C.js} +5 -5
- package/chunk/{FormFieldInputSelect-cMUBA5Wz.js.map → FormFieldInputSelect-CCdSha1C.js.map} +1 -1
- package/chunk/{FormFieldLayout-B5_PsKrR.js → FormFieldLayout-BIsU84b_.js} +6 -6
- package/chunk/{FormFieldLayout-B5_PsKrR.js.map → FormFieldLayout-BIsU84b_.js.map} +1 -1
- package/chunk/FormFieldLayout-CRgEwTkx.js +4 -4
- package/chunk/{FormFieldText-BWImUS8U.js → FormFieldText-BDXz6mcz.js} +7 -7
- package/chunk/{FormFieldText-BWImUS8U.js.map → FormFieldText-BDXz6mcz.js.map} +1 -1
- package/chunk/FormFieldText-D4SW8w-w.js +4 -4
- package/chunk/{FormFieldTypeahead-B8WJLNfv.js → FormFieldTypeahead-CBF79-qs.js} +8 -8
- package/chunk/{FormFieldTypeahead-B8WJLNfv.js.map → FormFieldTypeahead-CBF79-qs.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BOaWqKW_.js → FormFieldTypeahead-DJHIv355.js} +128 -128
- package/chunk/{FormFieldTypeahead-BOaWqKW_.js.map → FormFieldTypeahead-DJHIv355.js.map} +1 -1
- package/chunk/{FormFooterComponent-DD4Q2LF_.js → FormFooterComponent-INKrqmGm.js} +450 -450
- package/chunk/{FormFooterComponent-DD4Q2LF_.js.map → FormFooterComponent-INKrqmGm.js.map} +1 -1
- package/chunk/{FormFooterComponent-CKEfiYXW.js → FormFooterComponent-MCHQU8Kl.js} +312 -312
- package/chunk/{FormFooterComponent-CKEfiYXW.js.map → FormFooterComponent-MCHQU8Kl.js.map} +1 -1
- package/chunk/{FormSelectChoice-CFSifM9G.js → FormSelectChoice-Bg_lsdUY.js} +9 -9
- package/chunk/{FormSelectChoice-BV0vYPBj.js.map → FormSelectChoice-Bg_lsdUY.js.map} +1 -1
- package/chunk/{FormSelectChoice-BV0vYPBj.js → FormSelectChoice-pFDbmXCQ.js} +7 -7
- package/chunk/{FormSelectChoice-CFSifM9G.js.map → FormSelectChoice-pFDbmXCQ.js.map} +1 -1
- package/chunk/{InputText-D__c437o.js → InputText-A_AtNJXr.js} +6 -6
- package/chunk/{InputText-D__c437o.js.map → InputText-A_AtNJXr.js.map} +1 -1
- package/chunk/InputText-CS8Q8oNz.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-bms818RU.js → LicensedProfessionalOrganizationComponent-B7vyVuT0.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-7bKQiaL-.js.map → LicensedProfessionalOrganizationComponent-B7vyVuT0.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-7bKQiaL-.js → LicensedProfessionalOrganizationComponent-aoNyG1l1.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-bms818RU.js.map → LicensedProfessionalOrganizationComponent-aoNyG1l1.js.map} +1 -1
- package/chunk/{LogoComponent-C9mw31aa.js → LogoComponent-C-hULigw.js} +6 -6
- package/chunk/{LogoComponent-BUBHH0fO.js.map → LogoComponent-C-hULigw.js.map} +1 -1
- package/chunk/{LogoComponent-BUBHH0fO.js → LogoComponent-CJ7yp-Hg.js} +5 -5
- package/chunk/{LogoComponent-C9mw31aa.js.map → LogoComponent-CJ7yp-Hg.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-B4B8WsuN.js → LowIncomeOrganizationComponent-B1EPJmpi.js} +13 -13
- package/chunk/{LowIncomeOrganizationComponent-CBr7KTuJ.js.map → LowIncomeOrganizationComponent-B1EPJmpi.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CBr7KTuJ.js → LowIncomeOrganizationComponent-DXaB9JPK.js} +9 -9
- package/chunk/{LowIncomeOrganizationComponent-B4B8WsuN.js.map → LowIncomeOrganizationComponent-DXaB9JPK.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DghdbPT-.js → MedicalProfessionalOrganizationComponent-Cb-0WpnI.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-sA9z9fly.js.map → MedicalProfessionalOrganizationComponent-Cb-0WpnI.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-sA9z9fly.js → MedicalProfessionalOrganizationComponent-Cj-LrGjb.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-DghdbPT-.js.map → MedicalProfessionalOrganizationComponent-Cj-LrGjb.js.map} +1 -1
- package/chunk/{MemberIdComponent-C-U5Bter.js → MemberIdComponent-BSWbA2VQ.js} +8 -8
- package/chunk/{MemberIdComponent-C-U5Bter.js.map → MemberIdComponent-BSWbA2VQ.js.map} +1 -1
- package/chunk/{MemberIdComponent-DBmj6PlN.js → MemberIdComponent-VeHt3zks.js} +5 -5
- package/chunk/{MemberIdComponent-DBmj6PlN.js.map → MemberIdComponent-VeHt3zks.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-22bEA9wd.js → MembershipOrganizationComponent-OKGd4OjD.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-22bEA9wd.js.map → MembershipOrganizationComponent-OKGd4OjD.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-0wqOpnqp.js → MembershipOrganizationComponent-YAQRcvyJ.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-0wqOpnqp.js.map → MembershipOrganizationComponent-YAQRcvyJ.js.map} +1 -1
- package/chunk/{Message-BbhLudQ4.js → Message-BTSGs0Uf.js} +51 -45
- package/chunk/{Message-BbhLudQ4.js.map → Message-BTSGs0Uf.js.map} +1 -1
- package/chunk/{Message-D1G_WiQs.js → Message-CPP7Iunj.js} +1453 -1445
- package/chunk/{Message-D1G_WiQs.js.map → Message-CPP7Iunj.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-Byq7BneV.js → PersonalInfoStepSubmitButton-BJG8WCCA.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-Byq7BneV.js.map → PersonalInfoStepSubmitButton-BJG8WCCA.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-B5m1zKXj.js → PersonalInfoStepSubmitButton-DTijgJ79.js} +15 -15
- package/chunk/{PersonalInfoStepSubmitButton-B5m1zKXj.js.map → PersonalInfoStepSubmitButton-DTijgJ79.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-Ds0Umiti.js → PersonalInfoStepWrapper-BnWD9XRN.js} +9 -9
- package/chunk/{PersonalInfoStepWrapper-Ds0Umiti.js.map → PersonalInfoStepWrapper-BnWD9XRN.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DCFj5mke.js → PersonalInfoStepWrapper-DJdAvOXE.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-DCFj5mke.js.map → PersonalInfoStepWrapper-DJdAvOXE.js.map} +1 -1
- package/chunk/{PostalCodeComponent-B52z4pxa.js → PostalCodeComponent-BJ6K7pYz.js} +8 -8
- package/chunk/{PostalCodeComponent-B52z4pxa.js.map → PostalCodeComponent-BJ6K7pYz.js.map} +1 -1
- package/chunk/{PostalCodeComponent-DDrsbmWU.js → PostalCodeComponent-C-U8RqcR.js} +5 -5
- package/chunk/{PostalCodeComponent-DDrsbmWU.js.map → PostalCodeComponent-C-U8RqcR.js.map} +1 -1
- package/chunk/{SSN-DlwXekbr.js → SSN-CSYBnPZE.js} +5 -5
- package/chunk/{SSN-DlwXekbr.js.map → SSN-CSYBnPZE.js.map} +1 -1
- package/chunk/{SSN-CPZMIdTV.js → SSN-Cp_zGaOX.js} +8 -8
- package/chunk/{SSN-CPZMIdTV.js.map → SSN-Cp_zGaOX.js.map} +1 -1
- package/chunk/{StateSelectComponent-BZuF9eDA.js → StateSelectComponent-C4937sVp.js} +6 -6
- package/chunk/{StateSelectComponent-BZuF9eDA.js.map → StateSelectComponent-C4937sVp.js.map} +1 -1
- package/chunk/{StateSelectComponent-CDkfQ77X.js → StateSelectComponent-D83Yw9AW.js} +7 -7
- package/chunk/{StateSelectComponent-CDkfQ77X.js.map → StateSelectComponent-D83Yw9AW.js.map} +1 -1
- package/chunk/{StatusComponent-Dhc7qHou.js → StatusComponent-B4Z6EtvN.js} +9 -9
- package/chunk/{StatusComponent-B6o6DQjp.js.map → StatusComponent-B4Z6EtvN.js.map} +1 -1
- package/chunk/{StatusComponent-B6o6DQjp.js → StatusComponent-FfBUlga7.js} +6 -6
- package/chunk/{StatusComponent-Dhc7qHou.js.map → StatusComponent-FfBUlga7.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DA2zbaXM.js → StepAgePersonalInfo-C6SEZ9Oa.js} +17 -17
- package/chunk/{StepAgePersonalInfo-DA2zbaXM.js.map → StepAgePersonalInfo-C6SEZ9Oa.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Ds7ZuZLo.js → StepAgePersonalInfo-DEv6exzf.js} +20 -20
- package/chunk/{StepAgePersonalInfo-Ds7ZuZLo.js.map → StepAgePersonalInfo-DEv6exzf.js.map} +1 -1
- package/chunk/StepCard-B72CFYHs.js +4 -4
- package/chunk/{StepCard-Bvt7Kykz.js → StepCard-BIpwIpzh.js} +5 -5
- package/chunk/{StepCard-Bvt7Kykz.js.map → StepCard-BIpwIpzh.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-q7MmZ0Wv.js → StepCollectIdentifier-MuXIkxMQ.js} +6 -6
- package/chunk/{StepCollectIdentifier-q7MmZ0Wv.js.map → StepCollectIdentifier-MuXIkxMQ.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-RScotr-L.js → StepCollectIdentifier-vMAPbX16.js} +9 -9
- package/chunk/{StepCollectIdentifier-RScotr-L.js.map → StepCollectIdentifier-vMAPbX16.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-uoOEMgLi.js → StepCollectMilitaryPersonalInfoComponent-CMZnywpF.js} +24 -24
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-Oy-H1lRT.js.map → StepCollectMilitaryPersonalInfoComponent-CMZnywpF.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-Oy-H1lRT.js → StepCollectMilitaryPersonalInfoComponent-D08jnp7r.js} +21 -21
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-uoOEMgLi.js.map → StepCollectMilitaryPersonalInfoComponent-D08jnp7r.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-BAeCckTR.js → StepCollectPersonalInfo-DVzTF-9a.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-BAeCckTR.js.map → StepCollectPersonalInfo-DVzTF-9a.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DMMMfo6f.js → StepCollectPersonalInfo-DpAAHptW.js} +34 -34
- package/chunk/{StepCollectPersonalInfo-DMMMfo6f.js.map → StepCollectPersonalInfo-DpAAHptW.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-BrdV0iN-.js +4 -4
- package/chunk/{StepCompleteAuthentication-DLwlKmBO.js → StepCompleteAuthentication-s8qDxFAa.js} +9 -9
- package/chunk/{StepCompleteAuthentication-DLwlKmBO.js.map → StepCompleteAuthentication-s8qDxFAa.js.map} +1 -1
- package/chunk/{StepConsolation-Cli0ZCqB.js → StepConsolation-CD_eKd9M.js} +6 -6
- package/chunk/{StepConsolation-DO1HOmRK.js.map → StepConsolation-CD_eKd9M.js.map} +1 -1
- package/chunk/{StepConsolation-DO1HOmRK.js → StepConsolation-CWshJB4w.js} +8 -8
- package/chunk/{StepConsolation-Cli0ZCqB.js.map → StepConsolation-CWshJB4w.js.map} +1 -1
- package/chunk/{StepDocUpload-0-pxhJxc.js → StepDocUpload-Cm2fp1nn.js} +46 -46
- package/chunk/{StepDocUpload-0-pxhJxc.js.map → StepDocUpload-Cm2fp1nn.js.map} +1 -1
- package/chunk/{StepDocUpload-hOSKrytn.js → StepDocUpload-LGeSkhys.js} +10 -10
- package/chunk/{StepDocUpload-hOSKrytn.js.map → StepDocUpload-LGeSkhys.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BBhT05Bm.js → StepDriverLicensePersonalInfoComponent-ChrYyEGe.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-BBhT05Bm.js.map → StepDriverLicensePersonalInfoComponent-ChrYyEGe.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-Bh-b_Tis.js → StepDriverLicensePersonalInfoComponent-DAUnpdwY.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-Bh-b_Tis.js.map → StepDriverLicensePersonalInfoComponent-DAUnpdwY.js.map} +1 -1
- package/chunk/{StepEmailLoop-Bd9Da3Pl.js → StepEmailLoop-C4zGiSxp.js} +7 -7
- package/chunk/{StepEmailLoop-Bd9Da3Pl.js.map → StepEmailLoop-C4zGiSxp.js.map} +1 -1
- package/chunk/{StepEmailLoop-CztfQGon.js → StepEmailLoop-e5L4MkM3.js} +13 -13
- package/chunk/{StepEmailLoop-CztfQGon.js.map → StepEmailLoop-e5L4MkM3.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BkYIVspE.js → StepEmploymentPersonalInfo-DInj_Kjv.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-BIiRPsPn.js.map → StepEmploymentPersonalInfo-DInj_Kjv.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BIiRPsPn.js → StepEmploymentPersonalInfo-DmgP04aU.js} +20 -20
- package/chunk/{StepEmploymentPersonalInfo-BkYIVspE.js.map → StepEmploymentPersonalInfo-DmgP04aU.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-C3eR92xc.js → StepFirstResponderPersonalInfo-BBINQ-12.js} +18 -18
- package/chunk/{StepFirstResponderPersonalInfo-C3eR92xc.js.map → StepFirstResponderPersonalInfo-BBINQ-12.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CLdFsv3a.js → StepFirstResponderPersonalInfo-COEtqwa_.js} +22 -22
- package/chunk/{StepFirstResponderPersonalInfo-CLdFsv3a.js.map → StepFirstResponderPersonalInfo-COEtqwa_.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B8v2yQKB.js → StepGeneralIdentityPersonalInfoComponent-CgaXuqc2.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B8v2yQKB.js.map → StepGeneralIdentityPersonalInfoComponent-CgaXuqc2.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CpEm8ogF.js → StepGeneralIdentityPersonalInfoComponent-Ug0AKY5T.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CpEm8ogF.js.map → StepGeneralIdentityPersonalInfoComponent-Ug0AKY5T.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BB01d66w.js → StepHybridIdentityPersonalInfoComponent-B4jNyOiR.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-63Gu1_km.js.map → StepHybridIdentityPersonalInfoComponent-B4jNyOiR.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-63Gu1_km.js → StepHybridIdentityPersonalInfoComponent-BR7bMAMt.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BB01d66w.js.map → StepHybridIdentityPersonalInfoComponent-BR7bMAMt.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BPX0-8EZ.js → StepIDCheckLoop-CchfAliF.js} +7 -7
- package/chunk/{StepIDCheckLoop-BPX0-8EZ.js.map → StepIDCheckLoop-CchfAliF.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-C3l5fiGY.js → StepIDCheckLoop-CtpXHEDW.js} +9 -9
- package/chunk/{StepIDCheckLoop-C3l5fiGY.js.map → StepIDCheckLoop-CtpXHEDW.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-D7F62wKH.js → StepIDCheckLoopOnfido-CbIGTfeY.js} +8 -8
- package/chunk/{StepIDCheckLoopOnfido-B-Vbzhgu.js.map → StepIDCheckLoopOnfido-CbIGTfeY.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-B-Vbzhgu.js → StepIDCheckLoopOnfido-FhVshXLX.js} +14 -14
- package/chunk/{StepIDCheckLoopOnfido-D7F62wKH.js.map → StepIDCheckLoopOnfido-FhVshXLX.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-Ig0TJvC6.js → StepIDCheckLoopRegula-BUIGJhX0.js} +12 -12
- package/chunk/{StepIDCheckLoopRegula-B-uJQSkm.js.map → StepIDCheckLoopRegula-BUIGJhX0.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B-uJQSkm.js → StepIDCheckLoopRegula-C1yG8mR5.js} +8 -8
- package/chunk/{StepIDCheckLoopRegula-Ig0TJvC6.js.map → StepIDCheckLoopRegula-C1yG8mR5.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CLqxHevY.js → StepLicensedProfessionalPersonalInfo-2z10hhnE.js} +18 -18
- package/chunk/{StepLicensedProfessionalPersonalInfo-CLqxHevY.js.map → StepLicensedProfessionalPersonalInfo-2z10hhnE.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-stTxqoo7.js → StepLicensedProfessionalPersonalInfo-B2MNxpX7.js} +21 -21
- package/chunk/{StepLicensedProfessionalPersonalInfo-stTxqoo7.js.map → StepLicensedProfessionalPersonalInfo-B2MNxpX7.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-uUC6wHOj.js → StepLowIncomePersonalInfo-CjlBDKUj.js} +25 -25
- package/chunk/{StepLowIncomePersonalInfo-D33BUTIM.js.map → StepLowIncomePersonalInfo-CjlBDKUj.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-D33BUTIM.js → StepLowIncomePersonalInfo-DvY2PYF2.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-uUC6wHOj.js.map → StepLowIncomePersonalInfo-DvY2PYF2.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-B4E1pl1K.js → StepMedicalProfessionalPersonalInfo-9aKJkkDY.js} +22 -22
- package/chunk/{StepMedicalProfessionalPersonalInfo-B4E1pl1K.js.map → StepMedicalProfessionalPersonalInfo-9aKJkkDY.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-Bcd9QwO-.js → StepMedicalProfessionalPersonalInfo-CnwQHj5v.js} +19 -19
- package/chunk/{StepMedicalProfessionalPersonalInfo-Bcd9QwO-.js.map → StepMedicalProfessionalPersonalInfo-CnwQHj5v.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-C7XHDFuz.js → StepMemberPersonalInfo-BgRL5j5g.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-C7XHDFuz.js.map → StepMemberPersonalInfo-BgRL5j5g.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-D6ER6Mnj.js → StepMemberPersonalInfo-Cw4HL7yZ.js} +17 -17
- package/chunk/{StepMemberPersonalInfo-D6ER6Mnj.js.map → StepMemberPersonalInfo-Cw4HL7yZ.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-YrdiKwnE.js → StepMoverPersonalInfo-DDyWo8d6.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-By_lrbN_.js.map → StepMoverPersonalInfo-DDyWo8d6.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-By_lrbN_.js → StepMoverPersonalInfo-DJnpx8M2.js} +15 -15
- package/chunk/{StepMoverPersonalInfo-YrdiKwnE.js.map → StepMoverPersonalInfo-DJnpx8M2.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DhpMCeYw.js → StepOverrideComponent-CHRZdJdv.js} +7 -7
- package/chunk/{StepOverrideComponent-BJ9ZmoRw.js.map → StepOverrideComponent-CHRZdJdv.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BJ9ZmoRw.js → StepOverrideComponent-iFmYg3Jf.js} +12 -12
- package/chunk/{StepOverrideComponent-DhpMCeYw.js.map → StepOverrideComponent-iFmYg3Jf.js.map} +1 -1
- package/chunk/{StepSMSLoop-CJwY9Ga1.js → StepSMSLoop-B4zc2475.js} +13 -13
- package/chunk/{StepSMSLoop-CJwY9Ga1.js.map → StepSMSLoop-B4zc2475.js.map} +1 -1
- package/chunk/{StepSMSLoop-DNFDqzE0.js → StepSMSLoop-B6IejBgf.js} +5 -5
- package/chunk/{StepSMSLoop-DNFDqzE0.js.map → StepSMSLoop-B6IejBgf.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-DnU2gGIN.js → StepSocialSecurityNumber-C8h5CjH0.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-CZiWVMNg.js.map → StepSocialSecurityNumber-C8h5CjH0.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CZiWVMNg.js → StepSocialSecurityNumber-CLCIPHL5.js} +12 -12
- package/chunk/{StepSocialSecurityNumber-DnU2gGIN.js.map → StepSocialSecurityNumber-CLCIPHL5.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BjG3Glf7.js → StepStudentPersonalInfo-CdFE8LZp.js} +22 -22
- package/chunk/{StepStudentPersonalInfo-BjG3Glf7.js.map → StepStudentPersonalInfo-CdFE8LZp.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DnwWqFQd.js → StepStudentPersonalInfo-JKQyuhXR.js} +17 -17
- package/chunk/{StepStudentPersonalInfo-DnwWqFQd.js.map → StepStudentPersonalInfo-JKQyuhXR.js.map} +1 -1
- package/chunk/{StepSuccess-C1k2Uq-n.js → StepSuccess-B_eN9rgQ.js} +7 -7
- package/chunk/{StepSuccess-4cju7qN8.js.map → StepSuccess-B_eN9rgQ.js.map} +1 -1
- package/chunk/{StepSuccess-4cju7qN8.js → StepSuccess-De0PQQ0p.js} +24 -24
- package/chunk/{StepSuccess-C1k2Uq-n.js.map → StepSuccess-De0PQQ0p.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CKBRyBNe.js → StepTeacherPersonalInfo-Bhq87jMj.js} +18 -18
- package/chunk/{StepTeacherPersonalInfo-CKBRyBNe.js.map → StepTeacherPersonalInfo-Bhq87jMj.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CZOX9gA4.js → StepTeacherPersonalInfo-hhwIENW1.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-CZOX9gA4.js.map → StepTeacherPersonalInfo-hhwIENW1.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-B77guOV9.js → TeacherSchoolComponent-BMKPJ_xe.js} +10 -10
- package/chunk/{TeacherSchoolComponent-B77guOV9.js.map → TeacherSchoolComponent-BMKPJ_xe.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BTfcCslB.js → TeacherSchoolComponent-Cx6v96GB.js} +7 -7
- package/chunk/{TeacherSchoolComponent-BTfcCslB.js.map → TeacherSchoolComponent-Cx6v96GB.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-CqkLaStu.js → TestingRouteOverrides-BkiKiFEo.js} +21 -27
- package/chunk/TestingRouteOverrides-BkiKiFEo.js.map +1 -0
- package/chunk/TestingRouteOverrides-DY8ArsjS.js +72 -0
- package/chunk/TestingRouteOverrides-DY8ArsjS.js.map +1 -0
- 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-C3U46Rd_.js +12 -0
- package/chunk/{countryUtils-CwgqZgtq.js.map → countryUtils-C3U46Rd_.js.map} +1 -1
- package/chunk/{countryUtils-CwgqZgtq.js → countryUtils-qGBFeGxN.js} +5 -5
- package/chunk/{countryUtils-sqGdJQaH.js.map → countryUtils-qGBFeGxN.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-DOcDbvAN.js → downshift.esm-D4y-Z20t.js} +105 -105
- package/chunk/{downshift.esm-DYNFn_A5.js.map → downshift.esm-D4y-Z20t.js.map} +1 -1
- package/chunk/{downshift.esm-DYNFn_A5.js → downshift.esm-jbY4UkQd.js} +5 -5
- package/chunk/{downshift.esm-DOcDbvAN.js.map → downshift.esm-jbY4UkQd.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-C1INRgC4.js +4 -4
- package/chunk/{empties-C38lUQIl.js → empties-DGHGXdAM.js} +8 -8
- package/chunk/{empties-C38lUQIl.js.map → empties-DGHGXdAM.js.map} +1 -1
- 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-Y72jcEAM.js → hooks-BAFUGrUF.js} +27 -27
- package/chunk/{hooks-Y72jcEAM.js.map → hooks-BAFUGrUF.js.map} +1 -1
- package/chunk/hooks-DFk9wlFh.js +4 -4
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/{options-BCFIfBTZ.js → i18next-BcwHhUFU.js} +2472 -2472
- package/chunk/i18next-BcwHhUFU.js.map +1 -0
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/intl-D5sUivUy.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-CB6nLaN6.js +4 -4
- package/chunk/{jsx-runtime-BfITI5pK.js → jsx-runtime-S693AykS.js} +5 -5
- package/chunk/{jsx-runtime-BfITI5pK.js.map → jsx-runtime-S693AykS.js.map} +1 -1
- 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/mockProgramConfiguration-YBQMVL51.js +4 -4
- package/chunk/mockProgramI18n-CgYx_1_a.js +4 -4
- package/chunk/mockProgramTheme-CPG4vkJd.js +4 -4
- package/chunk/{mocks-BJWOJTTC.js → mocks-BqCQsZhz.js} +5 -5
- package/chunk/{mocks-BJWOJTTC.js.map → mocks-BqCQsZhz.js.map} +1 -1
- package/chunk/mocks-BtNIwVeT.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/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-BzA30Gt9.js → programThemeGetters-Ck-5kuO1.js} +5 -5
- package/chunk/{programThemeGetters-BzA30Gt9.js.map → programThemeGetters-Ck-5kuO1.js.map} +1 -1
- package/chunk/{programThemeGetters-COq47Fnv.js → programThemeGetters-D-rexWk1.js} +29 -29
- package/chunk/{programThemeGetters-COq47Fnv.js.map → programThemeGetters-D-rexWk1.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--E4kvS6y.js +4 -4
- package/chunk/{stepComponentHelpers-CD1Gfspm.js → stepComponentHelpers-Cduf93Ed.js} +30 -30
- package/chunk/{stepComponentHelpers-CD1Gfspm.js.map → stepComponentHelpers-Cduf93Ed.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-0JWh9t6G.js → useCollectFieldsEndpoint-BdH4Y4YP.js} +13 -13
- package/chunk/{useCollectFieldsEndpoint-0JWh9t6G.js.map → useCollectFieldsEndpoint-BdH4Y4YP.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DD2bXY_y.js → useCollectFieldsEndpoint-D-LXczym.js} +21 -21
- package/chunk/{useCollectFieldsEndpoint-DD2bXY_y.js.map → useCollectFieldsEndpoint-D-LXczym.js.map} +1 -1
- package/chunk/{useMetrics-jabV9gsZ.js → useMetrics-C18IaSjY.js} +7 -7
- package/chunk/{useMetrics-jabV9gsZ.js.map → useMetrics-C18IaSjY.js.map} +1 -1
- package/chunk/useMetrics-CtsRRjGJ.js +4 -4
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +1219 -1232
- package/sheerid.js.map +1 -1
- package/chunk/TestingRouteOverrides-CqkLaStu.js.map +0 -1
- package/chunk/TestingRouteOverrides-DUx5spVA.js +0 -78
- package/chunk/TestingRouteOverrides-DUx5spVA.js.map +0 -1
- package/chunk/countryUtils-sqGdJQaH.js +0 -12
- package/chunk/options-BCFIfBTZ.js.map +0 -1
package/chunk/{StepSocialSecurityNumber-CZiWVMNg.js.map → StepSocialSecurityNumber-C8h5CjH0.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepSocialSecurityNumber-
|
|
1
|
+
{"version":3,"file":"StepSocialSecurityNumber-C8h5CjH0.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,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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"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Oct 27 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.309.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793140919172
|
|
5
|
+
* BUILD_DATE: Tue Oct 27 2026 22:41:59 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 8a5b24ef34ef392cf49cc330fcba8f34da95cb27
|
|
7
7
|
*/
|
|
8
|
-
import { At as e,
|
|
9
|
-
import { n, s as r, t as i } from "./jsx-runtime-
|
|
8
|
+
import { At as e, dt as t } from "./i18next-BcwHhUFU.js";
|
|
9
|
+
import { n, s as r, t as i } from "./jsx-runtime-S693AykS.js";
|
|
10
10
|
import { b as a, t as o } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { t as s } from "./FormFooterComponent-
|
|
11
|
+
import { t as s } from "./FormFooterComponent-INKrqmGm.js";
|
|
12
12
|
import { o as c } from "./refs-Mq0rtW9K.js";
|
|
13
|
-
import { t as l } from "./LogoComponent-
|
|
14
|
-
import { t as u } from "./AnnouncingHeader-
|
|
15
|
-
import { d, l as f } from "./stepComponentHelpers-
|
|
16
|
-
import { t as p } from "./ChangeLocaleComponent-
|
|
17
|
-
import { t as m } from "./SSN-
|
|
13
|
+
import { t as l } from "./LogoComponent-C-hULigw.js";
|
|
14
|
+
import { t as u } from "./AnnouncingHeader-CB2PqiuT.js";
|
|
15
|
+
import { d, l as f } from "./stepComponentHelpers-Cduf93Ed.js";
|
|
16
|
+
import { t as p } from "./ChangeLocaleComponent-BM6BkKWg.js";
|
|
17
|
+
import { t as m } from "./SSN-Cp_zGaOX.js";
|
|
18
18
|
//#region src/components/StepSocialSecurityNumber/SsnChoice.tsx
|
|
19
19
|
var h = /* @__PURE__ */ e(r(), 1), g = i(), _ = ({ useSsn: e, useDocUpload: t, verificationService: r }) => /* @__PURE__ */ (0, g.jsxs)("div", {
|
|
20
20
|
id: "sid-ssn-choice",
|
package/chunk/{StepSocialSecurityNumber-DnU2gGIN.js.map → StepSocialSecurityNumber-CLCIPHL5.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepSocialSecurityNumber-
|
|
1
|
+
{"version":3,"file":"StepSocialSecurityNumber-CLCIPHL5.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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AA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Oct 27 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.309.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793140919172
|
|
5
|
+
* BUILD_DATE: Tue Oct 27 2026 22:41:59 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 8a5b24ef34ef392cf49cc330fcba8f34da95cb27
|
|
7
7
|
*/
|
|
8
|
-
import { At as e,
|
|
9
|
-
import { n as r, s as i, t as a } from "./jsx-runtime-
|
|
10
|
-
import { n as o } from "./Message-
|
|
8
|
+
import { At as e, dt as t, u as n } from "./i18next-BcwHhUFU.js";
|
|
9
|
+
import { n as r, s as i, t as a } from "./jsx-runtime-S693AykS.js";
|
|
10
|
+
import { n as o } from "./Message-CPP7Iunj.js";
|
|
11
11
|
import { b as s, p as c } from "./runtimeTypes-B2AGNJMT.js";
|
|
12
|
-
import { h as l } from "./FormFooterComponent-
|
|
13
|
-
import { t as u } from "./hooks-
|
|
12
|
+
import { h as l } from "./FormFooterComponent-INKrqmGm.js";
|
|
13
|
+
import { t as u } from "./hooks-BAFUGrUF.js";
|
|
14
14
|
import { n as d } from "../sheerid.js";
|
|
15
|
-
import { t as f } from "./useCollectFieldsEndpoint-
|
|
16
|
-
import { d as p, f as m, r as h, t as g } from "./stepComponentHelpers-
|
|
17
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
18
|
-
import { t as C } from "./FormFieldText-
|
|
19
|
-
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-
|
|
20
|
-
import { i as E } from "./FormSelectChoice-
|
|
21
|
-
import { t as D } from "./BirthDateComponent-
|
|
22
|
-
import { t as O } from "./CountryComponentWrapper-
|
|
23
|
-
import { t as k } from "./ExtraMessage-
|
|
24
|
-
import { t as A } from "./ChangeLocaleComponent-
|
|
25
|
-
import { t as j } from "./PersonalInfoStepWrapper-
|
|
26
|
-
import { t as M } from "./CollegeNameComponent-
|
|
27
|
-
import { t as N } from "./StatusComponent-
|
|
15
|
+
import { t as f } from "./useCollectFieldsEndpoint-D-LXczym.js";
|
|
16
|
+
import { d as p, f as m, r as h, t as g } from "./stepComponentHelpers-Cduf93Ed.js";
|
|
17
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-CqdB13MA.js";
|
|
18
|
+
import { t as C } from "./FormFieldText-BDXz6mcz.js";
|
|
19
|
+
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-DTijgJ79.js";
|
|
20
|
+
import { i as E } from "./FormSelectChoice-Bg_lsdUY.js";
|
|
21
|
+
import { t as D } from "./BirthDateComponent-Ba0lmfef.js";
|
|
22
|
+
import { t as O } from "./CountryComponentWrapper-DuQVlELD.js";
|
|
23
|
+
import { t as k } from "./ExtraMessage-BK3KoHza.js";
|
|
24
|
+
import { t as A } from "./ChangeLocaleComponent-BM6BkKWg.js";
|
|
25
|
+
import { t as j } from "./PersonalInfoStepWrapper-BnWD9XRN.js";
|
|
26
|
+
import { t as M } from "./CollegeNameComponent-Cj39HCwB.js";
|
|
27
|
+
import { t as N } from "./StatusComponent-B4Z6EtvN.js";
|
|
28
28
|
//#region src/components/FormFields/CVECNumber/CVECNumberComponent.tsx
|
|
29
29
|
var P = /* @__PURE__ */ e(i(), 1), F = a(), I = ({ value: e, isErrored: t, onChange: n, explanation: i, placeholder: a = "", isRequired: s = !1 }) => {
|
|
30
30
|
let { msg: c } = o(), l = u("include-cvec-field-france-student");
|
package/chunk/{StepStudentPersonalInfo-BjG3Glf7.js.map → StepStudentPersonalInfo-CdFE8LZp.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepStudentPersonalInfo-BjG3Glf7.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/FormFields/GraduationStatus/graduationStatusUtils.ts","../../src/components/FormFields/GraduationStatus/GraduationStatusComponent.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 type { StudentStatus, StudentStatusSelection } from \"@/lib/types/types\";\n\nexport const hasGraduationStatusChoice = (availableStatuses: StudentStatus[] = []): boolean =>\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\nexport const statusesToSelection = (\n statuses: StudentStatus[] = [],\n): StudentStatusSelection | undefined => {\n if (statuses.includes(\"GRADUATE\")) {\n return \"GRADUATE\";\n }\n return statuses.length ? \"STUDENT\" : undefined;\n};\n\nexport const selectionToStatuses = (\n selection: StudentStatusSelection | undefined,\n availableStatuses: StudentStatus[] = [],\n): StudentStatus[] => {\n if (selection === \"GRADUATE\") {\n return [\"GRADUATE\"];\n }\n if (selection === \"STUDENT\") {\n return availableStatuses.filter((s) => s !== \"GRADUATE\");\n }\n return [];\n};\n","import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { StudentStatusDefaultMessagesEnum } from \"@/lib/types/runtimeTypes\";\nimport {\n type FormSelectChoice,\n type StudentStatus,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { useFormSelectChoice } from \"../../FormInputs/InputSelect/InputSelectComponent\";\nimport { StatusComponent as Status } from \"../Status/StatusComponent\";\n\nimport { selectionToStatuses, statusesToSelection } from \"./graduationStatusUtils\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface GraduationStatusProps {\n availableStatuses: StudentStatus[];\n value: StudentStatus[];\n onChange: (statuses: StudentStatus[]) => void;\n isErrored: boolean;\n disabled?: boolean;\n}\n\nexport const GraduationStatusComponent: React.FC<GraduationStatusProps> = ({\n availableStatuses,\n value,\n onChange,\n isErrored,\n disabled = false,\n}) => {\n const options = useFormSelectChoice(STATUS_SELECTIONS);\n\n const selection = statusesToSelection(value);\n\n return (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={options.find((option) => option.value === selection)}\n isErrored={isErrored}\n options={options}\n disabled={disabled}\n onChange={(choice: FormSelectChoice) =>\n onChange(\n selectionToStatuses(\n choice ? (choice.value as StudentStatusSelection) : undefined,\n availableStatuses,\n ),\n )\n }\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 StudentStatus,\n} from \"@/lib/types/types\";\n\nimport { VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\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 { GraduationStatusComponent as GraduationStatus } from \"../FormFields/GraduationStatus/GraduationStatusComponent\";\nimport {\n hasGraduationStatusChoice,\n selectionToStatuses,\n statusesToSelection,\n} from \"../FormFields/GraduationStatus/graduationStatusUtils\";\n\nconst NO_STATUSES: StudentStatus[] = [];\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 const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n // Only statuses come from the fields endpoint; every other field keeps the step's own validation\n // Cleanup: DATA-5704\n dispatchFieldRequirements: false,\n });\n\n const availableStatuses = (dynamicStatuses ??\n verificationResponse.availableStatuses ??\n NO_STATUSES) as StudentStatus[];\n const showGraduateStatusInput = hasGraduationStatusChoice(availableStatuses);\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"statuses\",\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, \"statuses\"];\n }\n const statuses = showGraduateStatusInput\n ? selectionToStatuses(statusesToSelection(viewModel.statuses), availableStatuses)\n : [];\n verificationService.updateViewModel(\n produce(viewModel, (draft: StudentPersonalInfoViewModel) => {\n draft.fieldsToSkipValidation = skip;\n draft.statuses = statuses;\n }),\n );\n }, [showCvecInput, showGraduateStatusInput, availableStatuses]);\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\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 <GraduationStatus\n availableStatuses={availableStatuses}\n value={viewModel.statuses ?? []}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(statuses: StudentStatus[]) => {\n updateStudentViewModel(\"statuses\", statuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n statuses[0] ?? \"\",\n verificationService,\n );\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,GC/Da,KAA6B,IAAqC,CAAC,MAC9E,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU,GAE7E,KACX,IAA4B,CAAC,MAEzB,EAAS,SAAS,UAAU,IACvB,aAEF,EAAS,SAAS,YAAY,KAAA,GAG1B,KACX,GACA,IAAqC,CAAC,MAElC,MAAc,aACT,CAAC,UAAU,IAEhB,MAAc,YACT,EAAkB,QAAQ,MAAM,MAAM,UAAU,IAElD,CAAC,GCRJ,IAAoB,OAAO,KAAK,CAAgC,GAUzD,KAA8D,EACzE,sBACA,UACA,aACA,cACA,cAAW,SACP;CACJ,IAAM,IAAU,EAAoB,CAAiB,GAE/C,IAAY,EAAoB,CAAK;CAE3C,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,WAAU;EACV,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAmB,gBAAe;EAAqB,CAAA;EACvF,OAAO,EAAQ,MAAM,MAAW,EAAO,UAAU,CAAS;EAC/C;EACF;EACC;EACV,WAAW,MACT,EACE,EACE,IAAU,EAAO,QAAmC,KAAA,GACpD,CACF,CACF;CAEH,CAAA;AAEL,GCJM,IAA+B,CAAC,GAMzB,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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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-CdFE8LZp.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/FormFields/GraduationStatus/graduationStatusUtils.ts","../../src/components/FormFields/GraduationStatus/GraduationStatusComponent.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 type { StudentStatus, StudentStatusSelection } from \"@/lib/types/types\";\n\nexport const hasGraduationStatusChoice = (availableStatuses: StudentStatus[] = []): boolean =>\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\nexport const statusesToSelection = (\n statuses: StudentStatus[] = [],\n): StudentStatusSelection | undefined => {\n if (statuses.includes(\"GRADUATE\")) {\n return \"GRADUATE\";\n }\n return statuses.length ? \"STUDENT\" : undefined;\n};\n\nexport const selectionToStatuses = (\n selection: StudentStatusSelection | undefined,\n availableStatuses: StudentStatus[] = [],\n): StudentStatus[] => {\n if (selection === \"GRADUATE\") {\n return [\"GRADUATE\"];\n }\n if (selection === \"STUDENT\") {\n return availableStatuses.filter((s) => s !== \"GRADUATE\");\n }\n return [];\n};\n","import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { StudentStatusDefaultMessagesEnum } from \"@/lib/types/runtimeTypes\";\nimport {\n type FormSelectChoice,\n type StudentStatus,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { useFormSelectChoice } from \"../../FormInputs/InputSelect/InputSelectComponent\";\nimport { StatusComponent as Status } from \"../Status/StatusComponent\";\n\nimport { selectionToStatuses, statusesToSelection } from \"./graduationStatusUtils\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface GraduationStatusProps {\n availableStatuses: StudentStatus[];\n value: StudentStatus[];\n onChange: (statuses: StudentStatus[]) => void;\n isErrored: boolean;\n disabled?: boolean;\n}\n\nexport const GraduationStatusComponent: React.FC<GraduationStatusProps> = ({\n availableStatuses,\n value,\n onChange,\n isErrored,\n disabled = false,\n}) => {\n const options = useFormSelectChoice(STATUS_SELECTIONS);\n\n const selection = statusesToSelection(value);\n\n return (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={options.find((option) => option.value === selection)}\n isErrored={isErrored}\n options={options}\n disabled={disabled}\n onChange={(choice: FormSelectChoice) =>\n onChange(\n selectionToStatuses(\n choice ? (choice.value as StudentStatusSelection) : undefined,\n availableStatuses,\n ),\n )\n }\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 StudentStatus,\n} from \"@/lib/types/types\";\n\nimport { VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\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 { GraduationStatusComponent as GraduationStatus } from \"../FormFields/GraduationStatus/GraduationStatusComponent\";\nimport {\n hasGraduationStatusChoice,\n selectionToStatuses,\n statusesToSelection,\n} from \"../FormFields/GraduationStatus/graduationStatusUtils\";\n\nconst NO_STATUSES: StudentStatus[] = [];\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 const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n // Only statuses come from the fields endpoint; every other field keeps the step's own validation\n // Cleanup: DATA-5704\n dispatchFieldRequirements: false,\n });\n\n const availableStatuses = (dynamicStatuses ??\n verificationResponse.availableStatuses ??\n NO_STATUSES) as StudentStatus[];\n const showGraduateStatusInput = hasGraduationStatusChoice(availableStatuses);\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"statuses\",\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, \"statuses\"];\n }\n const statuses = showGraduateStatusInput\n ? selectionToStatuses(statusesToSelection(viewModel.statuses), availableStatuses)\n : [];\n verificationService.updateViewModel(\n produce(viewModel, (draft: StudentPersonalInfoViewModel) => {\n draft.fieldsToSkipValidation = skip;\n draft.statuses = statuses;\n }),\n );\n }, [showCvecInput, showGraduateStatusInput, availableStatuses]);\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\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 <GraduationStatus\n availableStatuses={availableStatuses}\n value={viewModel.statuses ?? []}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(statuses: StudentStatus[]) => {\n updateStudentViewModel(\"statuses\", statuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n statuses[0] ?? \"\",\n verificationService,\n );\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,GC/Da,KAA6B,IAAqC,CAAC,MAC9E,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU,GAE7E,KACX,IAA4B,CAAC,MAEzB,EAAS,SAAS,UAAU,IACvB,aAEF,EAAS,SAAS,YAAY,KAAA,GAG1B,KACX,GACA,IAAqC,CAAC,MAElC,MAAc,aACT,CAAC,UAAU,IAEhB,MAAc,YACT,EAAkB,QAAQ,MAAM,MAAM,UAAU,IAElD,CAAC,GCRJ,IAAoB,OAAO,KAAK,CAAgC,GAUzD,KAA8D,EACzE,sBACA,UACA,aACA,cACA,cAAW,SACP;CACJ,IAAM,IAAU,EAAoB,CAAiB,GAE/C,IAAY,EAAoB,CAAK;CAE3C,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,WAAU;EACV,OAAO,iBAAA,GAAA,E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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"}
|
|
@@ -4,31 +4,31 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Oct 27 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.309.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793140923116
|
|
9
|
+
* BUILD_DATE: Tue Oct 27 2026 22:42:03 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 8a5b24ef34ef392cf49cc330fcba8f34da95cb27
|
|
11
11
|
*/
|
|
12
12
|
import { At as e, p as t, s as n } from "./intl-D5sUivUy.js";
|
|
13
13
|
import { b as r, p as i } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { n as a, s as o, t as s } from "./jsx-runtime-CB6nLaN6.js";
|
|
15
|
-
import { n as c } from "./Message-
|
|
16
|
-
import { p as l } from "./FormFooterComponent-
|
|
15
|
+
import { n as c } from "./Message-BTSGs0Uf.js";
|
|
16
|
+
import { p as l } from "./FormFooterComponent-MCHQU8Kl.js";
|
|
17
17
|
import { t as u } from "./hooks-DFk9wlFh.js";
|
|
18
18
|
import { t as d } from "../_mysheerid-preview.js";
|
|
19
|
-
import { t as f } from "./useCollectFieldsEndpoint-
|
|
19
|
+
import { t as f } from "./useCollectFieldsEndpoint-BdH4Y4YP.js";
|
|
20
20
|
import { d as p, f as m, r as h, t as g } from "./stepComponentHelpers--E4kvS6y.js";
|
|
21
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
21
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-C-T4LXyy.js";
|
|
22
22
|
import { t as C } from "./FormFieldText-D4SW8w-w.js";
|
|
23
|
-
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-
|
|
24
|
-
import { i as E } from "./FormSelectChoice-
|
|
25
|
-
import { t as D } from "./BirthDateComponent-
|
|
26
|
-
import { t as O } from "./CountryComponentWrapper-
|
|
27
|
-
import { t as k } from "./ExtraMessage-
|
|
28
|
-
import { t as A } from "./ChangeLocaleComponent-
|
|
29
|
-
import { t as j } from "./PersonalInfoStepWrapper-
|
|
30
|
-
import { t as M } from "./CollegeNameComponent-
|
|
31
|
-
import { t as N } from "./StatusComponent-
|
|
23
|
+
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-BJG8WCCA.js";
|
|
24
|
+
import { i as E } from "./FormSelectChoice-pFDbmXCQ.js";
|
|
25
|
+
import { t as D } from "./BirthDateComponent-Gh2Ww-HN.js";
|
|
26
|
+
import { t as O } from "./CountryComponentWrapper-A1Vji18h.js";
|
|
27
|
+
import { t as k } from "./ExtraMessage-C0ccH6sk.js";
|
|
28
|
+
import { t as A } from "./ChangeLocaleComponent-B-N4AzfB.js";
|
|
29
|
+
import { t as j } from "./PersonalInfoStepWrapper-DJdAvOXE.js";
|
|
30
|
+
import { t as M } from "./CollegeNameComponent-B64nCepe.js";
|
|
31
|
+
import { t as N } from "./StatusComponent-FfBUlga7.js";
|
|
32
32
|
//#region src/components/FormFields/CVECNumber/CVECNumberComponent.tsx
|
|
33
33
|
var P = /* @__PURE__ */ e(o(), 1), F = s(), I = ({ value: e, isErrored: t, onChange: n, explanation: r, placeholder: i = "", isRequired: o = !1 }) => {
|
|
34
34
|
let { msg: s } = c(), l = u("include-cvec-field-france-student");
|
package/chunk/{StepStudentPersonalInfo-DnwWqFQd.js.map → StepStudentPersonalInfo-JKQyuhXR.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepStudentPersonalInfo-DnwWqFQd.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/FormFields/GraduationStatus/graduationStatusUtils.ts","../../src/components/FormFields/GraduationStatus/GraduationStatusComponent.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 type { StudentStatus, StudentStatusSelection } from \"@/lib/types/types\";\n\nexport const hasGraduationStatusChoice = (availableStatuses: StudentStatus[] = []): boolean =>\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\nexport const statusesToSelection = (\n statuses: StudentStatus[] = [],\n): StudentStatusSelection | undefined => {\n if (statuses.includes(\"GRADUATE\")) {\n return \"GRADUATE\";\n }\n return statuses.length ? \"STUDENT\" : undefined;\n};\n\nexport const selectionToStatuses = (\n selection: StudentStatusSelection | undefined,\n availableStatuses: StudentStatus[] = [],\n): StudentStatus[] => {\n if (selection === \"GRADUATE\") {\n return [\"GRADUATE\"];\n }\n if (selection === \"STUDENT\") {\n return availableStatuses.filter((s) => s !== \"GRADUATE\");\n }\n return [];\n};\n","import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { StudentStatusDefaultMessagesEnum } from \"@/lib/types/runtimeTypes\";\nimport {\n type FormSelectChoice,\n type StudentStatus,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { useFormSelectChoice } from \"../../FormInputs/InputSelect/InputSelectComponent\";\nimport { StatusComponent as Status } from \"../Status/StatusComponent\";\n\nimport { selectionToStatuses, statusesToSelection } from \"./graduationStatusUtils\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface GraduationStatusProps {\n availableStatuses: StudentStatus[];\n value: StudentStatus[];\n onChange: (statuses: StudentStatus[]) => void;\n isErrored: boolean;\n disabled?: boolean;\n}\n\nexport const GraduationStatusComponent: React.FC<GraduationStatusProps> = ({\n availableStatuses,\n value,\n onChange,\n isErrored,\n disabled = false,\n}) => {\n const options = useFormSelectChoice(STATUS_SELECTIONS);\n\n const selection = statusesToSelection(value);\n\n return (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={options.find((option) => option.value === selection)}\n isErrored={isErrored}\n options={options}\n disabled={disabled}\n onChange={(choice: FormSelectChoice) =>\n onChange(\n selectionToStatuses(\n choice ? (choice.value as StudentStatusSelection) : undefined,\n availableStatuses,\n ),\n )\n }\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 StudentStatus,\n} from \"@/lib/types/types\";\n\nimport { VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\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 { GraduationStatusComponent as GraduationStatus } from \"../FormFields/GraduationStatus/GraduationStatusComponent\";\nimport {\n hasGraduationStatusChoice,\n selectionToStatuses,\n statusesToSelection,\n} from \"../FormFields/GraduationStatus/graduationStatusUtils\";\n\nconst NO_STATUSES: StudentStatus[] = [];\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 const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n // Only statuses come from the fields endpoint; every other field keeps the step's own validation\n // Cleanup: DATA-5704\n dispatchFieldRequirements: false,\n });\n\n const availableStatuses = (dynamicStatuses ??\n verificationResponse.availableStatuses ??\n NO_STATUSES) as StudentStatus[];\n const showGraduateStatusInput = hasGraduationStatusChoice(availableStatuses);\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"statuses\",\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, \"statuses\"];\n }\n const statuses = showGraduateStatusInput\n ? selectionToStatuses(statusesToSelection(viewModel.statuses), availableStatuses)\n : [];\n verificationService.updateViewModel(\n produce(viewModel, (draft: StudentPersonalInfoViewModel) => {\n draft.fieldsToSkipValidation = skip;\n draft.statuses = statuses;\n }),\n );\n }, [showCvecInput, showGraduateStatusInput, availableStatuses]);\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\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 <GraduationStatus\n availableStatuses={availableStatuses}\n value={viewModel.statuses ?? []}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(statuses: StudentStatus[]) => {\n updateStudentViewModel(\"statuses\", statuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n statuses[0] ?? \"\",\n verificationService,\n );\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,GC/Da,KAA6B,IAAqC,CAAC,MAC9E,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU,GAE7E,KACX,IAA4B,CAAC,MAEzB,EAAS,SAAS,UAAU,IACvB,aAEF,EAAS,SAAS,YAAY,KAAA,GAG1B,KACX,GACA,IAAqC,CAAC,MAElC,MAAc,aACT,CAAC,UAAU,IAEhB,MAAc,YACT,EAAkB,QAAQ,MAAM,MAAM,UAAU,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,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-JKQyuhXR.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/FormFields/GraduationStatus/graduationStatusUtils.ts","../../src/components/FormFields/GraduationStatus/GraduationStatusComponent.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 type { StudentStatus, StudentStatusSelection } from \"@/lib/types/types\";\n\nexport const hasGraduationStatusChoice = (availableStatuses: StudentStatus[] = []): boolean =>\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\nexport const statusesToSelection = (\n statuses: StudentStatus[] = [],\n): StudentStatusSelection | undefined => {\n if (statuses.includes(\"GRADUATE\")) {\n return \"GRADUATE\";\n }\n return statuses.length ? \"STUDENT\" : undefined;\n};\n\nexport const selectionToStatuses = (\n selection: StudentStatusSelection | undefined,\n availableStatuses: StudentStatus[] = [],\n): StudentStatus[] => {\n if (selection === \"GRADUATE\") {\n return [\"GRADUATE\"];\n }\n if (selection === \"STUDENT\") {\n return availableStatuses.filter((s) => s !== \"GRADUATE\");\n }\n return [];\n};\n","import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { StudentStatusDefaultMessagesEnum } from \"@/lib/types/runtimeTypes\";\nimport {\n type FormSelectChoice,\n type StudentStatus,\n type StudentStatusSelection,\n} from \"@/lib/types/types\";\n\nimport { useFormSelectChoice } from \"../../FormInputs/InputSelect/InputSelectComponent\";\nimport { StatusComponent as Status } from \"../Status/StatusComponent\";\n\nimport { selectionToStatuses, statusesToSelection } from \"./graduationStatusUtils\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface GraduationStatusProps {\n availableStatuses: StudentStatus[];\n value: StudentStatus[];\n onChange: (statuses: StudentStatus[]) => void;\n isErrored: boolean;\n disabled?: boolean;\n}\n\nexport const GraduationStatusComponent: React.FC<GraduationStatusProps> = ({\n availableStatuses,\n value,\n onChange,\n isErrored,\n disabled = false,\n}) => {\n const options = useFormSelectChoice(STATUS_SELECTIONS);\n\n const selection = statusesToSelection(value);\n\n return (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={options.find((option) => option.value === selection)}\n isErrored={isErrored}\n options={options}\n disabled={disabled}\n onChange={(choice: FormSelectChoice) =>\n onChange(\n selectionToStatuses(\n choice ? (choice.value as StudentStatusSelection) : undefined,\n availableStatuses,\n ),\n )\n }\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 StudentStatus,\n} from \"@/lib/types/types\";\n\nimport { VerificationStepsEnum } from \"@/lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"@/lib/VerificationService/VerificationServiceHelpers\";\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\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 { GraduationStatusComponent as GraduationStatus } from \"../FormFields/GraduationStatus/GraduationStatusComponent\";\nimport {\n hasGraduationStatusChoice,\n selectionToStatuses,\n statusesToSelection,\n} from \"../FormFields/GraduationStatus/graduationStatusUtils\";\n\nconst NO_STATUSES: StudentStatus[] = [];\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 const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n // Only statuses come from the fields endpoint; every other field keeps the step's own validation\n // Cleanup: DATA-5704\n dispatchFieldRequirements: false,\n });\n\n const availableStatuses = (dynamicStatuses ??\n verificationResponse.availableStatuses ??\n NO_STATUSES) as StudentStatus[];\n const showGraduateStatusInput = hasGraduationStatusChoice(availableStatuses);\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"statuses\",\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, \"statuses\"];\n }\n const statuses = showGraduateStatusInput\n ? selectionToStatuses(statusesToSelection(viewModel.statuses), availableStatuses)\n : [];\n verificationService.updateViewModel(\n produce(viewModel, (draft: StudentPersonalInfoViewModel) => {\n draft.fieldsToSkipValidation = skip;\n draft.statuses = statuses;\n }),\n );\n }, [showCvecInput, showGraduateStatusInput, availableStatuses]);\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\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 <GraduationStatus\n availableStatuses={availableStatuses}\n value={viewModel.statuses ?? []}\n isErrored={!!fieldValidationErrors.statuses}\n disabled={getFieldConfigByFieldId(\"statuses\")?.disabled}\n onChange={(statuses: StudentStatus[]) => {\n updateStudentViewModel(\"statuses\", statuses);\n updateFieldValidationErrorsByFieldId(\n \"statuses\",\n statuses[0] ?? \"\",\n verificationService,\n );\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"],"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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"}
|
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Oct 27 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.309.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793140923116
|
|
9
|
+
* BUILD_DATE: Tue Oct 27 2026 22:42:03 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 8a5b24ef34ef392cf49cc330fcba8f34da95cb27
|
|
11
11
|
*/
|
|
12
12
|
import { At as e, X as t, Y as n, ft as r, g as i, s as a, t as o, y as s } from "./intl-D5sUivUy.js";
|
|
13
13
|
import { S as c, l } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { d as u, w as d } from "./programThemeGetters-
|
|
14
|
+
import { d as u, w as d } from "./programThemeGetters-Ck-5kuO1.js";
|
|
15
15
|
import { n as f, s as p, t as m } from "./jsx-runtime-CB6nLaN6.js";
|
|
16
|
-
import { i as h } from "./TestingRouteOverrides-
|
|
16
|
+
import { i as h } from "./TestingRouteOverrides-BkiKiFEo.js";
|
|
17
17
|
import { t as g } from "./eventEmitter-CSG6jR7V.js";
|
|
18
18
|
import { t as _ } from "./hooks-DFk9wlFh.js";
|
|
19
|
-
import { t as v } from "./LogoComponent-
|
|
19
|
+
import { t as v } from "./LogoComponent-CJ7yp-Hg.js";
|
|
20
20
|
import { t as y } from "./AnnouncingHeader-gJrk6VDV.js";
|
|
21
21
|
import { n as b } from "./stepComponentHelpers--E4kvS6y.js";
|
|
22
22
|
import { t as x } from "./clsx-CB5rauS5.js";
|