@sheerid/jslib 2.305.0 → 2.306.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 +1097 -1104
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-7Kn9xST8.js → AddressComponent-CcEzpDGt.js} +8 -8
- package/chunk/{AddressComponent-7Kn9xST8.js.map → AddressComponent-CcEzpDGt.js.map} +1 -1
- package/chunk/{AddressComponent-Cy1Rhow8.js → AddressComponent-uJCuo22u.js} +8 -8
- package/chunk/{AddressComponent-Cy1Rhow8.js.map → AddressComponent-uJCuo22u.js.map} +1 -1
- package/chunk/{AnnouncingHeader-zH7WLU2-.js → AnnouncingHeader-DKOYC3b9.js} +6 -6
- package/chunk/{AnnouncingHeader-CnV2m0Ak.js.map → AnnouncingHeader-DKOYC3b9.js.map} +1 -1
- package/chunk/{AnnouncingHeader-CnV2m0Ak.js → AnnouncingHeader-gJrk6VDV.js} +6 -6
- package/chunk/{AnnouncingHeader-zH7WLU2-.js.map → AnnouncingHeader-gJrk6VDV.js.map} +1 -1
- package/chunk/{BirthDateComponent-Jlv1ygoa.js → BirthDateComponent-DPwL_esM.js} +8 -8
- package/chunk/{BirthDateComponent-D1M8ATw2.js.map → BirthDateComponent-DPwL_esM.js.map} +1 -1
- package/chunk/{BirthDateComponent-D1M8ATw2.js → BirthDateComponent-c3-VfXxt.js} +8 -8
- package/chunk/{BirthDateComponent-Jlv1ygoa.js.map → BirthDateComponent-c3-VfXxt.js.map} +1 -1
- package/chunk/{CaptchaComponent-DijVQaDh.js → CaptchaComponent-3YIkG9Wr.js} +51 -51
- package/chunk/{CaptchaComponent-DijVQaDh.js.map → CaptchaComponent-3YIkG9Wr.js.map} +1 -1
- package/chunk/{CaptchaComponent-Jj13Tw4k.js → CaptchaComponent-B9U-3SMZ.js} +83 -83
- package/chunk/{CaptchaComponent-Jj13Tw4k.js.map → CaptchaComponent-B9U-3SMZ.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-B_Ya5hV4.js → ChangeLocaleComponent-FiBBf-GR.js} +9 -9
- package/chunk/{ChangeLocaleComponent-B_Ya5hV4.js.map → ChangeLocaleComponent-FiBBf-GR.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DhcUoMWL.js → ChangeLocaleComponent-k7OjzNbY.js} +9 -9
- package/chunk/{ChangeLocaleComponent-DhcUoMWL.js.map → ChangeLocaleComponent-k7OjzNbY.js.map} +1 -1
- package/chunk/{City-iq1DR3HC.js → City-DWGcObHo.js} +8 -8
- package/chunk/{City-DmwFHxPe.js.map → City-DWGcObHo.js.map} +1 -1
- package/chunk/{City-DmwFHxPe.js → City-PTqumFny.js} +8 -8
- package/chunk/{City-iq1DR3HC.js.map → City-PTqumFny.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BfM_mY5M.js → CollegeNameComponent-CxOhMPuq.js} +11 -11
- package/chunk/{CollegeNameComponent-BfM_mY5M.js.map → CollegeNameComponent-CxOhMPuq.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CR9Jp91m.js → CollegeNameComponent-O9Aa01US.js} +11 -11
- package/chunk/{CollegeNameComponent-CR9Jp91m.js.map → CollegeNameComponent-O9Aa01US.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-BdrpxpHJ.js → CopyToClipboardComponent-BorxChs8.js} +9 -9
- package/chunk/{CopyToClipboardComponent-BdrpxpHJ.js.map → CopyToClipboardComponent-BorxChs8.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-Dm3-3x4b.js → CopyToClipboardComponent-ystjPwTW.js} +9 -9
- package/chunk/{CopyToClipboardComponent-Dm3-3x4b.js.map → CopyToClipboardComponent-ystjPwTW.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CFooYkPK.js → CountryComponentWrapper-CZK3RrMe.js} +12 -12
- package/chunk/{CountryComponentWrapper-BmNABlLF.js.map → CountryComponentWrapper-CZK3RrMe.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BmNABlLF.js → CountryComponentWrapper-DangmyAi.js} +29 -29
- package/chunk/{CountryComponentWrapper-CFooYkPK.js.map → CountryComponentWrapper-DangmyAi.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CKL2mQc6.js → DischargeDateComponent-CS7xH5hw.js} +18 -18
- package/chunk/{DischargeDateComponent-CKL2mQc6.js.map → DischargeDateComponent-CS7xH5hw.js.map} +1 -1
- package/chunk/{DischargeDateComponent-WBm110Pc.js → DischargeDateComponent-D7ahRNvU.js} +17 -17
- package/chunk/{DischargeDateComponent-WBm110Pc.js.map → DischargeDateComponent-D7ahRNvU.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-C2nVV_gO.js → DriverLicenseNumberComponent-CIqKv5_E.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-C2nVV_gO.js.map → DriverLicenseNumberComponent-CIqKv5_E.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-bTA5d7cI.js → DriverLicenseNumberComponent-riQXCF7X.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-bTA5d7cI.js.map → DriverLicenseNumberComponent-riQXCF7X.js.map} +1 -1
- package/chunk/{EmailLoopPending-DTnuWa6p.js → EmailLoopPending-BvvnCpWf.js} +12 -12
- package/chunk/{EmailLoopPending-ByW9XkIK.js.map → EmailLoopPending-BvvnCpWf.js.map} +1 -1
- package/chunk/{EmailLoopPending-ByW9XkIK.js → EmailLoopPending-CfFPbM5A.js} +12 -12
- package/chunk/{EmailLoopPending-DTnuWa6p.js.map → EmailLoopPending-CfFPbM5A.js.map} +1 -1
- package/chunk/{ExtraMessage-DuuHw84g.js → ExtraMessage-B0Pl1Fx3.js} +7 -7
- package/chunk/{ExtraMessage-DuuHw84g.js.map → ExtraMessage-B0Pl1Fx3.js.map} +1 -1
- package/chunk/{ExtraMessage-W3biUb29.js → ExtraMessage-BtQiKR6F.js} +7 -7
- package/chunk/{ExtraMessage-W3biUb29.js.map → ExtraMessage-BtQiKR6F.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DquuqEdB.js → FirstResponderOrganizationComponent-3LHhZthH.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-C4caR50S.js.map → FirstResponderOrganizationComponent-3LHhZthH.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-C4caR50S.js → FirstResponderOrganizationComponent-Cn3DJnck.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-DquuqEdB.js.map → FirstResponderOrganizationComponent-Cn3DJnck.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-CnGM7mg4.js → FormFieldInputSelect-BHFYCp09.js} +7 -7
- package/chunk/{FormFieldInputSelect-CnGM7mg4.js.map → FormFieldInputSelect-BHFYCp09.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-d-hHVoQQ.js → FormFieldInputSelect-CWAKAPf9.js} +7 -7
- package/chunk/{FormFieldInputSelect-d-hHVoQQ.js.map → FormFieldInputSelect-CWAKAPf9.js.map} +1 -1
- package/chunk/{FormFieldLayout-D1tb5nAu.js → FormFieldLayout-B5_PsKrR.js} +6 -6
- package/chunk/{FormFieldLayout-D1tb5nAu.js.map → FormFieldLayout-B5_PsKrR.js.map} +1 -1
- package/chunk/{FormFieldLayout-Dt_dMiDh.js → FormFieldLayout-CRgEwTkx.js} +6 -6
- package/chunk/{FormFieldLayout-Dt_dMiDh.js.map → FormFieldLayout-CRgEwTkx.js.map} +1 -1
- package/chunk/{FormFieldText-CsFISbyw.js → FormFieldText-BWImUS8U.js} +7 -7
- package/chunk/{FormFieldText-BU2NBm1H.js.map → FormFieldText-BWImUS8U.js.map} +1 -1
- package/chunk/{FormFieldText-BU2NBm1H.js → FormFieldText-D4SW8w-w.js} +7 -7
- package/chunk/{FormFieldText-CsFISbyw.js.map → FormFieldText-D4SW8w-w.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-UICnjipa.js → FormFieldTypeahead-C27MDdwq.js} +85 -85
- package/chunk/{FormFieldTypeahead-UICnjipa.js.map → FormFieldTypeahead-C27MDdwq.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DQe-u8ke.js → FormFieldTypeahead-DLN-DRL3.js} +87 -87
- package/chunk/{FormFieldTypeahead-DQe-u8ke.js.map → FormFieldTypeahead-DLN-DRL3.js.map} +1 -1
- package/chunk/{FormFooterComponent-INOCMS5I.js → FormFooterComponent-D0U-oYDf.js} +504 -524
- package/chunk/FormFooterComponent-D0U-oYDf.js.map +1 -0
- package/chunk/{FormFooterComponent-GntU0CK1.js → FormFooterComponent-DzG4p93f.js} +489 -509
- package/chunk/FormFooterComponent-DzG4p93f.js.map +1 -0
- package/chunk/{FormSelectChoice-lKpoGUFg.js → FormSelectChoice-2j71fL0j.js} +8 -8
- package/chunk/{FormSelectChoice-CbCgCvkh.js.map → FormSelectChoice-2j71fL0j.js.map} +1 -1
- package/chunk/{FormSelectChoice-CbCgCvkh.js → FormSelectChoice-BGa9KqEI.js} +8 -8
- package/chunk/{FormSelectChoice-lKpoGUFg.js.map → FormSelectChoice-BGa9KqEI.js.map} +1 -1
- package/chunk/{InputText-DMztCQmi.js → InputText-CS8Q8oNz.js} +6 -6
- package/chunk/{InputText-CuBi-ytU.js.map → InputText-CS8Q8oNz.js.map} +1 -1
- package/chunk/{InputText-CuBi-ytU.js → InputText-D__c437o.js} +6 -6
- package/chunk/{InputText-DMztCQmi.js.map → InputText-D__c437o.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Ca5Q95Dv.js → LicensedProfessionalOrganizationComponent-BFocaYeI.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-Ca5Q95Dv.js.map → LicensedProfessionalOrganizationComponent-BFocaYeI.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CzbEn3OT.js → LicensedProfessionalOrganizationComponent-TdpFCMlR.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-CzbEn3OT.js.map → LicensedProfessionalOrganizationComponent-TdpFCMlR.js.map} +1 -1
- package/chunk/{LogoComponent-BBafuteW.js → LogoComponent-BcMnrRvP.js} +6 -6
- package/chunk/{LogoComponent-BBafuteW.js.map → LogoComponent-BcMnrRvP.js.map} +1 -1
- package/chunk/{LogoComponent-BlvwHGG7.js → LogoComponent-Dygket6f.js} +6 -6
- package/chunk/{LogoComponent-BlvwHGG7.js.map → LogoComponent-Dygket6f.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-SXofGZtZ.js → LowIncomeOrganizationComponent-BrsVGnzb.js} +21 -21
- package/chunk/{LowIncomeOrganizationComponent-SXofGZtZ.js.map → LowIncomeOrganizationComponent-BrsVGnzb.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-C5tBx4R1.js → LowIncomeOrganizationComponent-DEwaJ0BF.js} +15 -15
- package/chunk/{LowIncomeOrganizationComponent-C5tBx4R1.js.map → LowIncomeOrganizationComponent-DEwaJ0BF.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DhXuwA6G.js → MedicalProfessionalOrganizationComponent-BY2Hq4h6.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-DhXuwA6G.js.map → MedicalProfessionalOrganizationComponent-BY2Hq4h6.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DDEwJw25.js → MedicalProfessionalOrganizationComponent-BdBFSzZK.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-DDEwJw25.js.map → MedicalProfessionalOrganizationComponent-BdBFSzZK.js.map} +1 -1
- package/chunk/{MemberIdComponent-CYE9NWER.js → MemberIdComponent-CK7-5MwH.js} +8 -8
- package/chunk/{MemberIdComponent-CYE9NWER.js.map → MemberIdComponent-CK7-5MwH.js.map} +1 -1
- package/chunk/{MemberIdComponent-zZA-2Be7.js → MemberIdComponent-KkHtb-GL.js} +8 -8
- package/chunk/{MemberIdComponent-zZA-2Be7.js.map → MemberIdComponent-KkHtb-GL.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BvUIEiHp.js → MembershipOrganizationComponent-fWo6qweD.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-BvUIEiHp.js.map → MembershipOrganizationComponent-fWo6qweD.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-Dt6uhM9W.js → MembershipOrganizationComponent-z2gRbxPZ.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-Dt6uhM9W.js.map → MembershipOrganizationComponent-z2gRbxPZ.js.map} +1 -1
- package/chunk/{Message-B01COPOe.js → Message-D1m8rtsf.js} +7620 -7598
- package/chunk/Message-D1m8rtsf.js.map +1 -0
- package/chunk/{Message-D2z1-4t7.js → Message-bCY_JxvZ.js} +7833 -7811
- package/chunk/Message-bCY_JxvZ.js.map +1 -0
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-BhivUjA7.js → PersonalInfoStepSubmitButton-6Kg-pZ_I.js} +20 -20
- package/chunk/{PersonalInfoStepSubmitButton-BIFTcGKn.js.map → PersonalInfoStepSubmitButton-6Kg-pZ_I.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-BIFTcGKn.js → PersonalInfoStepSubmitButton-DF3V6hJY.js} +19 -19
- package/chunk/{PersonalInfoStepSubmitButton-BhivUjA7.js.map → PersonalInfoStepSubmitButton-DF3V6hJY.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-BhmtlbC3.js → PersonalInfoStepWrapper-BHXuN88z.js} +8 -8
- package/chunk/{PersonalInfoStepWrapper-BhmtlbC3.js.map → PersonalInfoStepWrapper-BHXuN88z.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-CmbBT85L.js → PersonalInfoStepWrapper-DuKZA7Bm.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-CmbBT85L.js.map → PersonalInfoStepWrapper-DuKZA7Bm.js.map} +1 -1
- package/chunk/{PostalCodeComponent-DCpTuzDt.js → PostalCodeComponent-BDLw-xEX.js} +8 -8
- package/chunk/{PostalCodeComponent-1D8zJ6Gw.js.map → PostalCodeComponent-BDLw-xEX.js.map} +1 -1
- package/chunk/{PostalCodeComponent-1D8zJ6Gw.js → PostalCodeComponent-BDVa1QY7.js} +8 -8
- package/chunk/{PostalCodeComponent-DCpTuzDt.js.map → PostalCodeComponent-BDVa1QY7.js.map} +1 -1
- package/chunk/{SSN-BYa6bN2F.js → SSN-C4RsyvaG.js} +8 -8
- package/chunk/{SSN-BYa6bN2F.js.map → SSN-C4RsyvaG.js.map} +1 -1
- package/chunk/{SSN-Cv-vv86v.js → SSN-Dn0TLNb9.js} +8 -8
- package/chunk/{SSN-Cv-vv86v.js.map → SSN-Dn0TLNb9.js.map} +1 -1
- package/chunk/{StateSelectComponent-C5SyZrP9.js → StateSelectComponent-BuF9uoFe.js} +7 -7
- package/chunk/{StateSelectComponent-C5SyZrP9.js.map → StateSelectComponent-BuF9uoFe.js.map} +1 -1
- package/chunk/{StateSelectComponent-Yrm2gmjt.js → StateSelectComponent-OMXNQVGE.js} +7 -7
- package/chunk/{StateSelectComponent-Yrm2gmjt.js.map → StateSelectComponent-OMXNQVGE.js.map} +1 -1
- package/chunk/{StatusComponent-DVPyiAZr.js → StatusComponent-B-1gIOek.js} +10 -10
- package/chunk/{StatusComponent-CBcXQ1RR.js.map → StatusComponent-B-1gIOek.js.map} +1 -1
- package/chunk/{StatusComponent-CBcXQ1RR.js → StatusComponent-U699Nzbq.js} +10 -10
- package/chunk/{StatusComponent-DVPyiAZr.js.map → StatusComponent-U699Nzbq.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-B-fHCbQ0.js → StepAgePersonalInfo-C8-SdaGI.js} +58 -58
- package/chunk/{StepAgePersonalInfo-B-fHCbQ0.js.map → StepAgePersonalInfo-C8-SdaGI.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BZ8HQDRa.js → StepAgePersonalInfo-DMMuSV6H.js} +58 -58
- package/chunk/{StepAgePersonalInfo-BZ8HQDRa.js.map → StepAgePersonalInfo-DMMuSV6H.js.map} +1 -1
- package/chunk/{StepCard-DJR-l3sW.js → StepCard-B72CFYHs.js} +5 -5
- package/chunk/{StepCard-DJR-l3sW.js.map → StepCard-B72CFYHs.js.map} +1 -1
- package/chunk/{StepCard-wwTRGIhn.js → StepCard-Bvt7Kykz.js} +5 -5
- package/chunk/{StepCard-wwTRGIhn.js.map → StepCard-Bvt7Kykz.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CyCr6Kkf.js → StepCollectIdentifier-Cf_OO2eb.js} +9 -9
- package/chunk/{StepCollectIdentifier-DduKuXJZ.js.map → StepCollectIdentifier-Cf_OO2eb.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DduKuXJZ.js → StepCollectIdentifier-D8BXMPSm.js} +9 -9
- package/chunk/{StepCollectIdentifier-CyCr6Kkf.js.map → StepCollectIdentifier-D8BXMPSm.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DYvlaLFf.js → StepCollectMilitaryPersonalInfoComponent--ylC8N5Z.js} +24 -24
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CTzbUlUh.js.map → StepCollectMilitaryPersonalInfoComponent--ylC8N5Z.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CTzbUlUh.js → StepCollectMilitaryPersonalInfoComponent-D-xxPyNf.js} +24 -24
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DYvlaLFf.js.map → StepCollectMilitaryPersonalInfoComponent-D-xxPyNf.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-BKe3gp2Y.js → StepCollectPersonalInfo-CIskNcb_.js} +121 -121
- package/chunk/{StepCollectPersonalInfo-BKe3gp2Y.js.map → StepCollectPersonalInfo-CIskNcb_.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DMhjFyhS.js → StepCollectPersonalInfo-CaVYVLpx.js} +122 -122
- package/chunk/{StepCollectPersonalInfo-DMhjFyhS.js.map → StepCollectPersonalInfo-CaVYVLpx.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-Cj1zd9Fz.js → StepCompleteAuthentication-BrdV0iN-.js} +9 -9
- package/chunk/{StepCompleteAuthentication-76dd_HoE.js.map → StepCompleteAuthentication-BrdV0iN-.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-76dd_HoE.js → StepCompleteAuthentication-DLwlKmBO.js} +20 -20
- package/chunk/{StepCompleteAuthentication-Cj1zd9Fz.js.map → StepCompleteAuthentication-DLwlKmBO.js.map} +1 -1
- package/chunk/{StepConsolation-D4U5Lz4s.js → StepConsolation-BzbijBhL.js} +8 -8
- package/chunk/{StepConsolation-D4U5Lz4s.js.map → StepConsolation-BzbijBhL.js.map} +1 -1
- package/chunk/{StepConsolation-BMIhHrZ_.js → StepConsolation-DFQwmpUe.js} +8 -8
- package/chunk/{StepConsolation-BMIhHrZ_.js.map → StepConsolation-DFQwmpUe.js.map} +1 -1
- package/chunk/{StepDocUpload-BPWmYRcH.js → StepDocUpload-CFcyuvS6.js} +30 -30
- package/chunk/{StepDocUpload-BPWmYRcH.js.map → StepDocUpload-CFcyuvS6.js.map} +1 -1
- package/chunk/{StepDocUpload-ATFJ1VNK.js → StepDocUpload-h1JWZUZC.js} +23 -23
- package/chunk/{StepDocUpload-ATFJ1VNK.js.map → StepDocUpload-h1JWZUZC.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-B6BPGM9y.js → StepDriverLicensePersonalInfoComponent-DFc0FiIt.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-B6BPGM9y.js.map → StepDriverLicensePersonalInfoComponent-DFc0FiIt.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CLv-0SEo.js → StepDriverLicensePersonalInfoComponent-s_PvlzNE.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-CLv-0SEo.js.map → StepDriverLicensePersonalInfoComponent-s_PvlzNE.js.map} +1 -1
- package/chunk/{StepEmailLoop-D7TmjcYy.js → StepEmailLoop-D5T68VTx.js} +13 -13
- package/chunk/{StepEmailLoop-D7TmjcYy.js.map → StepEmailLoop-D5T68VTx.js.map} +1 -1
- package/chunk/{StepEmailLoop-UdxzIxg_.js → StepEmailLoop-DLoLfr39.js} +13 -13
- package/chunk/{StepEmailLoop-UdxzIxg_.js.map → StepEmailLoop-DLoLfr39.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DppM-dRp.js → StepEmploymentPersonalInfo-BiXV9zG6.js} +20 -20
- package/chunk/{StepEmploymentPersonalInfo-DppM-dRp.js.map → StepEmploymentPersonalInfo-BiXV9zG6.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-eF2ZaDPS.js → StepEmploymentPersonalInfo-ByAaA9uJ.js} +20 -20
- package/chunk/{StepEmploymentPersonalInfo-eF2ZaDPS.js.map → StepEmploymentPersonalInfo-ByAaA9uJ.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BQtlqbwc.js → StepFirstResponderPersonalInfo-BqS568ZP.js} +22 -22
- package/chunk/{StepFirstResponderPersonalInfo-BQtlqbwc.js.map → StepFirstResponderPersonalInfo-BqS568ZP.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CztSfSRA.js → StepFirstResponderPersonalInfo-DEc90JZ2.js} +22 -22
- package/chunk/{StepFirstResponderPersonalInfo-CztSfSRA.js.map → StepFirstResponderPersonalInfo-DEc90JZ2.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cdfe4rFN.js → StepGeneralIdentityPersonalInfoComponent-2_g0jDtn.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CKd4Dp6T.js.map → StepGeneralIdentityPersonalInfoComponent-2_g0jDtn.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CKd4Dp6T.js → StepGeneralIdentityPersonalInfoComponent-B3_zfixj.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cdfe4rFN.js.map → StepGeneralIdentityPersonalInfoComponent-B3_zfixj.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-q4VhGaMS.js → StepHybridIdentityPersonalInfoComponent-BFhxyJWJ.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dsa_CKJM.js.map → StepHybridIdentityPersonalInfoComponent-BFhxyJWJ.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dsa_CKJM.js → StepHybridIdentityPersonalInfoComponent-DzYYUzME.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-q4VhGaMS.js.map → StepHybridIdentityPersonalInfoComponent-DzYYUzME.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BWxld16D.js → StepIDCheckLoop-8HP5_FVH.js} +8 -8
- package/chunk/{StepIDCheckLoop-BWxld16D.js.map → StepIDCheckLoop-8HP5_FVH.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-EhL3Le-F.js → StepIDCheckLoop-D-Y9rKsk.js} +8 -8
- package/chunk/{StepIDCheckLoop-EhL3Le-F.js.map → StepIDCheckLoop-D-Y9rKsk.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CHKilPtA.js → StepIDCheckLoopOnfido-C_EEaIvS.js} +27 -27
- package/chunk/{StepIDCheckLoopOnfido-CHKilPtA.js.map → StepIDCheckLoopOnfido-C_EEaIvS.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Di9NfHJM.js → StepIDCheckLoopOnfido-DQacZCgs.js} +14 -14
- package/chunk/{StepIDCheckLoopOnfido-Di9NfHJM.js.map → StepIDCheckLoopOnfido-DQacZCgs.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DQUN1TMk.js → StepIDCheckLoopRegula-DEiy_meG.js} +11 -11
- package/chunk/{StepIDCheckLoopRegula-BYts2Drd.js.map → StepIDCheckLoopRegula-DEiy_meG.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BYts2Drd.js → StepIDCheckLoopRegula-FMQtQ00c.js} +11 -11
- package/chunk/{StepIDCheckLoopRegula-DQUN1TMk.js.map → StepIDCheckLoopRegula-FMQtQ00c.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-B9tXN-Gj.js → StepLicensedProfessionalPersonalInfo-B6qktzsF.js} +21 -21
- package/chunk/{StepLicensedProfessionalPersonalInfo-B9tXN-Gj.js.map → StepLicensedProfessionalPersonalInfo-B6qktzsF.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-Bk__6Yly.js → StepLicensedProfessionalPersonalInfo-f6waS68x.js} +21 -21
- package/chunk/{StepLicensedProfessionalPersonalInfo-Bk__6Yly.js.map → StepLicensedProfessionalPersonalInfo-f6waS68x.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-C1yGX0tU.js → StepLowIncomePersonalInfo-CVrkhAxr.js} +25 -25
- package/chunk/{StepLowIncomePersonalInfo-C1yGX0tU.js.map → StepLowIncomePersonalInfo-CVrkhAxr.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-UIbxTxQ6.js → StepLowIncomePersonalInfo-Cpr_D1eF.js} +74 -74
- package/chunk/{StepLowIncomePersonalInfo-UIbxTxQ6.js.map → StepLowIncomePersonalInfo-Cpr_D1eF.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CKwl0Aoz.js → StepMedicalProfessionalPersonalInfo-BMdmppPh.js} +22 -22
- package/chunk/{StepMedicalProfessionalPersonalInfo-CKwl0Aoz.js.map → StepMedicalProfessionalPersonalInfo-BMdmppPh.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-PZWUlBsx.js → StepMedicalProfessionalPersonalInfo-CR_cOA88.js} +22 -22
- package/chunk/{StepMedicalProfessionalPersonalInfo-PZWUlBsx.js.map → StepMedicalProfessionalPersonalInfo-CR_cOA88.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BF9YI1SU.js → StepMemberPersonalInfo-3ycGLGMb.js} +17 -17
- package/chunk/{StepMemberPersonalInfo-BF9YI1SU.js.map → StepMemberPersonalInfo-3ycGLGMb.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CHgfdkTw.js → StepMemberPersonalInfo-BTBjBkLR.js} +57 -57
- package/chunk/{StepMemberPersonalInfo-CHgfdkTw.js.map → StepMemberPersonalInfo-BTBjBkLR.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DBQ7vjuj.js → StepMoverPersonalInfo-CHmJAEta.js} +47 -47
- package/chunk/{StepMoverPersonalInfo-DBQ7vjuj.js.map → StepMoverPersonalInfo-CHmJAEta.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-JN4fzgsz.js → StepMoverPersonalInfo-CJEvhUg5.js} +15 -15
- package/chunk/{StepMoverPersonalInfo-JN4fzgsz.js.map → StepMoverPersonalInfo-CJEvhUg5.js.map} +1 -1
- package/chunk/{StepOverrideComponent-I6jIloHJ.js → StepOverrideComponent-B9fvWbBC.js} +21 -21
- package/chunk/{StepOverrideComponent-I6jIloHJ.js.map → StepOverrideComponent-B9fvWbBC.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BdKhdxCF.js → StepOverrideComponent-BYUbyZkl.js} +21 -21
- package/chunk/{StepOverrideComponent-BdKhdxCF.js.map → StepOverrideComponent-BYUbyZkl.js.map} +1 -1
- package/chunk/{StepSMSLoop-BQ-ebg-w.js → StepSMSLoop-BR4v_UvU.js} +22 -22
- package/chunk/{StepSMSLoop-BQ-ebg-w.js.map → StepSMSLoop-BR4v_UvU.js.map} +1 -1
- package/chunk/{StepSMSLoop-DhwsBE2w.js → StepSMSLoop-Dp77AMrb.js} +22 -22
- package/chunk/{StepSMSLoop-DhwsBE2w.js.map → StepSMSLoop-Dp77AMrb.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-BjMAYy4I.js → StepSocialSecurityNumber-A2Q_UluD.js} +12 -12
- package/chunk/{StepSocialSecurityNumber-BjMAYy4I.js.map → StepSocialSecurityNumber-A2Q_UluD.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-ITN1udUd.js → StepSocialSecurityNumber-BO5uts-s.js} +24 -24
- package/chunk/{StepSocialSecurityNumber-ITN1udUd.js.map → StepSocialSecurityNumber-BO5uts-s.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-B8EJqu5o.js → StepStudentPersonalInfo-CLchkf6y.js} +64 -64
- package/chunk/{StepStudentPersonalInfo-B8EJqu5o.js.map → StepStudentPersonalInfo-CLchkf6y.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-C6OXBOsJ.js → StepStudentPersonalInfo-oc0V1SEn.js} +22 -22
- package/chunk/{StepStudentPersonalInfo-C6OXBOsJ.js.map → StepStudentPersonalInfo-oc0V1SEn.js.map} +1 -1
- package/chunk/{StepSuccess-D1Hg8KzS.js → StepSuccess-DYAR3u5v.js} +28 -28
- package/chunk/{StepSuccess-D1Hg8KzS.js.map → StepSuccess-DYAR3u5v.js.map} +1 -1
- package/chunk/{StepSuccess-ye_BWJ5v.js → StepSuccess-z93uD3YR.js} +30 -30
- package/chunk/{StepSuccess-ye_BWJ5v.js.map → StepSuccess-z93uD3YR.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-B_nvmggg.js → StepTeacherPersonalInfo-Bm4zMphQ.js} +18 -18
- package/chunk/{StepTeacherPersonalInfo-B_fczbbC.js.map → StepTeacherPersonalInfo-Bm4zMphQ.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-B_fczbbC.js → StepTeacherPersonalInfo-UxRien1W.js} +18 -18
- package/chunk/{StepTeacherPersonalInfo-B_nvmggg.js.map → StepTeacherPersonalInfo-UxRien1W.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-C1IpPIt7.js → TeacherSchoolComponent-B-8Zac1k.js} +11 -11
- package/chunk/{TeacherSchoolComponent-C1IpPIt7.js.map → TeacherSchoolComponent-B-8Zac1k.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-l3FK9Z72.js → TeacherSchoolComponent-Bnurez7X.js} +11 -11
- package/chunk/{TeacherSchoolComponent-l3FK9Z72.js.map → TeacherSchoolComponent-Bnurez7X.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-CujYUoVO.js → TestingRouteOverrides-CqkLaStu.js} +26 -26
- package/chunk/{TestingRouteOverrides-CUyDPV66.js.map → TestingRouteOverrides-CqkLaStu.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-CUyDPV66.js → TestingRouteOverrides-DUx5spVA.js} +24 -24
- package/chunk/{TestingRouteOverrides-CujYUoVO.js.map → TestingRouteOverrides-DUx5spVA.js.map} +1 -1
- 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-DnejTdLp.js → countryUtils-CSpfIQmr.js} +5 -5
- package/chunk/{countryUtils-BdYD9O0C.js.map → countryUtils-CSpfIQmr.js.map} +1 -1
- package/chunk/countryUtils-ROgCMKtt.js +12 -0
- package/chunk/{countryUtils-DnejTdLp.js.map → countryUtils-ROgCMKtt.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-W4ZpLUFm.js → downshift.esm-B_3QLNGg.js} +7 -7
- package/chunk/{downshift.esm-W4ZpLUFm.js.map → downshift.esm-B_3QLNGg.js.map} +1 -1
- package/chunk/{downshift.esm-N5l_mTkN.js → downshift.esm-dTKHfRuW.js} +7 -7
- package/chunk/{downshift.esm-N5l_mTkN.js.map → downshift.esm-dTKHfRuW.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/{empties-CgrU7EMF.js → empties-C1INRgC4.js} +51 -57
- package/chunk/{empties-Cv-TCyNM.js.map → empties-C1INRgC4.js.map} +1 -1
- package/chunk/{empties-Cv-TCyNM.js → empties-C38lUQIl.js} +6 -12
- package/chunk/{empties-CgrU7EMF.js.map → empties-C38lUQIl.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-i_EJH0P5.js → hooks-DFk9wlFh.js} +51 -51
- package/chunk/hooks-DFk9wlFh.js.map +1 -0
- package/chunk/{hooks-HrcXcUYn.js → hooks-Y72jcEAM.js} +47 -47
- package/chunk/hooks-Y72jcEAM.js.map +1 -0
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/{intl-DYOqmiaL.js → intl-D5sUivUy.js} +285 -273
- package/chunk/intl-D5sUivUy.js.map +1 -0
- 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-DQO6A867.js → jsx-runtime-BfITI5pK.js} +19 -19
- package/chunk/{jsx-runtime-DtApx7WX.js.map → jsx-runtime-BfITI5pK.js.map} +1 -1
- package/chunk/{jsx-runtime-DtApx7WX.js → jsx-runtime-CB6nLaN6.js} +19 -19
- package/chunk/{jsx-runtime-DQO6A867.js.map → jsx-runtime-CB6nLaN6.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/mockProgramI18n-CgYx_1_a.js.map +1 -1
- package/chunk/{mockProgramTheme-CBqgtg7A.js → mockProgramTheme-CPG4vkJd.js} +4 -8
- package/chunk/mockProgramTheme-CPG4vkJd.js.map +1 -0
- package/chunk/{mocks-Cn2hY_Nm.js → mocks-BJWOJTTC.js} +73 -74
- package/chunk/mocks-BJWOJTTC.js.map +1 -0
- package/chunk/{mocks-Do-_JoZy.js → mocks-BtNIwVeT.js} +73 -74
- package/chunk/mocks-BtNIwVeT.js.map +1 -0
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/{options-DsRV5fwh.js → options-BCFIfBTZ.js} +356 -344
- package/chunk/options-BCFIfBTZ.js.map +1 -0
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-DtvKCzaA.js → programThemeGetters-CKWD2Nuw.js} +36 -56
- package/chunk/programThemeGetters-CKWD2Nuw.js.map +1 -0
- package/chunk/programThemeGetters-DKJV4UNP.js +158 -0
- package/chunk/programThemeGetters-DKJV4UNP.js.map +1 -0
- 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-DZXh3P6t.js → stepComponentHelpers--E4kvS6y.js} +14 -14
- package/chunk/{stepComponentHelpers-D8vgCSY7.js.map → stepComponentHelpers--E4kvS6y.js.map} +1 -1
- package/chunk/{stepComponentHelpers-D8vgCSY7.js → stepComponentHelpers-CD1Gfspm.js} +34 -34
- package/chunk/{stepComponentHelpers-DZXh3P6t.js.map → stepComponentHelpers-CD1Gfspm.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-Cre55nuJ.js → useCollectFieldsEndpoint-BFxNI9mD.js} +13 -13
- package/chunk/{useCollectFieldsEndpoint-Cre55nuJ.js.map → useCollectFieldsEndpoint-BFxNI9mD.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-C0qk0ahQ.js → useCollectFieldsEndpoint-Dy61hji9.js} +20 -20
- package/chunk/{useCollectFieldsEndpoint-C0qk0ahQ.js.map → useCollectFieldsEndpoint-Dy61hji9.js.map} +1 -1
- package/chunk/{useMetrics-BZU-S7E4.js → useMetrics-CtsRRjGJ.js} +7 -7
- package/chunk/{useMetrics-BZU-S7E4.js.map → useMetrics-CtsRRjGJ.js.map} +1 -1
- package/chunk/{useMetrics-CKV-Of-2.js → useMetrics-jabV9gsZ.js} +7 -7
- package/chunk/{useMetrics-CKV-Of-2.js.map → useMetrics-jabV9gsZ.js.map} +1 -1
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +1334 -1341
- package/sheerid.js.map +1 -1
- package/chunk/FormFooterComponent-GntU0CK1.js.map +0 -1
- package/chunk/FormFooterComponent-INOCMS5I.js.map +0 -1
- package/chunk/Message-B01COPOe.js.map +0 -1
- package/chunk/Message-D2z1-4t7.js.map +0 -1
- package/chunk/countryUtils-BdYD9O0C.js +0 -12
- package/chunk/hooks-HrcXcUYn.js.map +0 -1
- package/chunk/hooks-i_EJH0P5.js.map +0 -1
- package/chunk/intl-DYOqmiaL.js.map +0 -1
- package/chunk/mockProgramTheme-CBqgtg7A.js.map +0 -1
- package/chunk/mocks-Cn2hY_Nm.js.map +0 -1
- package/chunk/mocks-Do-_JoZy.js.map +0 -1
- package/chunk/options-DsRV5fwh.js.map +0 -1
- package/chunk/programThemeGetters-B8-9nrqc.js +0 -178
- package/chunk/programThemeGetters-B8-9nrqc.js.map +0 -1
- package/chunk/programThemeGetters-DtvKCzaA.js.map +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.306.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1792784358815
|
|
5
|
+
* BUILD_DATE: Fri Oct 23 2026 19:39:18 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 051dca165a15b769b71940fd854aaa10b824ca55
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
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, c as t, n } from "./options-BCFIfBTZ.js";
|
|
9
|
+
import { n as r, s as i, t as a } from "./jsx-runtime-BfITI5pK.js";
|
|
10
|
+
import { n as o } from "./Message-D1m8rtsf.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-D0U-oYDf.js";
|
|
13
|
+
import { t as u } from "./hooks-Y72jcEAM.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-Dy61hji9.js";
|
|
16
|
+
import { d as p, f as m, r as h, t as g } from "./stepComponentHelpers-CD1Gfspm.js";
|
|
17
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-3YIkG9Wr.js";
|
|
18
|
+
import { t as C } from "./FormFieldText-BWImUS8U.js";
|
|
19
|
+
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-6Kg-pZ_I.js";
|
|
20
|
+
import { i as E } from "./FormSelectChoice-2j71fL0j.js";
|
|
21
|
+
import { t as D } from "./BirthDateComponent-DPwL_esM.js";
|
|
22
|
+
import { t as O } from "./CountryComponentWrapper-DangmyAi.js";
|
|
23
|
+
import { t as k } from "./ExtraMessage-BtQiKR6F.js";
|
|
24
|
+
import { t as A } from "./ChangeLocaleComponent-k7OjzNbY.js";
|
|
25
|
+
import { t as j } from "./PersonalInfoStepWrapper-DuKZA7Bm.js";
|
|
26
|
+
import { t as M } from "./CollegeNameComponent-O9Aa01US.js";
|
|
27
|
+
import { t as N } from "./StatusComponent-U699Nzbq.js";
|
|
28
28
|
//#region src/components/FormFields/CVECNumber/CVECNumberComponent.tsx
|
|
29
|
-
var P = /* @__PURE__ */
|
|
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");
|
|
31
31
|
return g("cvecNumber")?.hidden ? null : /* @__PURE__ */ (0, F.jsx)(C, {
|
|
32
32
|
fieldId: "cvecNumber",
|
|
@@ -65,18 +65,18 @@ var P = /* @__PURE__ */ t(i(), 1), F = a(), I = ({ value: e, isErrored: t, onCha
|
|
|
65
65
|
disabled: a,
|
|
66
66
|
onChange: (t) => n(z(t ? t.value : void 0, e))
|
|
67
67
|
});
|
|
68
|
-
}, H = [], U = ({ verificationService:
|
|
69
|
-
let { msg: i } = o(), a =
|
|
68
|
+
}, H = [], U = ({ verificationService: e }) => {
|
|
69
|
+
let { msg: i } = o(), a = e.viewModel, { fieldValidationErrors: c } = e, C = e.verificationResponse, E = n(), N = u("include-cvec-field-france-student"), B = N !== "control" && N !== "default" && a?.countryChoice?.value === "FR", { availableStatuses: U } = f({
|
|
70
70
|
verificationId: C.verificationId,
|
|
71
71
|
currentStep: C.currentStep,
|
|
72
72
|
viewModel: a,
|
|
73
73
|
dispatchFieldRequirements: !1
|
|
74
74
|
}), W = U ?? C.availableStatuses ?? H, G = L(W);
|
|
75
75
|
P.useEffect(() => {
|
|
76
|
-
let n = (
|
|
76
|
+
let n = (e.viewModel?.fieldsToSkipValidation || []).filter((e) => e !== "cvecNumber" && e !== "statuses");
|
|
77
77
|
B || (n = [...n, "cvecNumber"]), G || (n = [...n, "statuses"]);
|
|
78
78
|
let r = G ? z(R(a.statuses), W) : [];
|
|
79
|
-
|
|
79
|
+
e.updateViewModel(t(a, (e) => {
|
|
80
80
|
e.fieldsToSkipValidation = n, e.statuses = r;
|
|
81
81
|
}));
|
|
82
82
|
}, [
|
|
@@ -85,22 +85,22 @@ var P = /* @__PURE__ */ t(i(), 1), F = a(), I = ({ value: e, isErrored: t, onCha
|
|
|
85
85
|
W
|
|
86
86
|
]);
|
|
87
87
|
let K = l(C), q = (n, r) => {
|
|
88
|
-
let i =
|
|
88
|
+
let i = t(a, (e) => {
|
|
89
89
|
e[n] = r;
|
|
90
90
|
});
|
|
91
|
-
|
|
91
|
+
e.updateViewModel(i);
|
|
92
92
|
}, J = a.localeChoice.value;
|
|
93
93
|
return /* @__PURE__ */ (0, F.jsxs)(j, {
|
|
94
|
-
verificationService:
|
|
94
|
+
verificationService: e,
|
|
95
95
|
step: C.currentStep,
|
|
96
96
|
children: [
|
|
97
97
|
/* @__PURE__ */ (0, F.jsx)(d, {
|
|
98
|
-
verificationService:
|
|
98
|
+
verificationService: e,
|
|
99
99
|
classNameIdentifier: "student-personal-info"
|
|
100
100
|
}),
|
|
101
|
-
/* @__PURE__ */ (0, F.jsx)(A, { verificationService:
|
|
101
|
+
/* @__PURE__ */ (0, F.jsx)(A, { verificationService: e }),
|
|
102
102
|
/* @__PURE__ */ (0, F.jsx)(O, {
|
|
103
|
-
verificationService:
|
|
103
|
+
verificationService: e,
|
|
104
104
|
disabled: g("country")?.disabled
|
|
105
105
|
}),
|
|
106
106
|
G && /* @__PURE__ */ (0, F.jsx)(V, {
|
|
@@ -108,18 +108,18 @@ var P = /* @__PURE__ */ t(i(), 1), F = a(), I = ({ value: e, isErrored: t, onCha
|
|
|
108
108
|
value: a.statuses ?? [],
|
|
109
109
|
isErrored: !!c.statuses,
|
|
110
110
|
disabled: g("statuses")?.disabled,
|
|
111
|
-
onChange: (
|
|
112
|
-
q("statuses",
|
|
111
|
+
onChange: (t) => {
|
|
112
|
+
q("statuses", t), p("statuses", t[0] ?? "", e);
|
|
113
113
|
}
|
|
114
114
|
}),
|
|
115
115
|
/* @__PURE__ */ (0, F.jsx)(M, {
|
|
116
|
-
value:
|
|
117
|
-
verificationService:
|
|
116
|
+
value: e.viewModel.organization,
|
|
117
|
+
verificationService: e,
|
|
118
118
|
isErrored: !!c.organization,
|
|
119
119
|
isRequired: !0,
|
|
120
120
|
disabled: g("organization")?.disabled,
|
|
121
|
-
onChange: (
|
|
122
|
-
m(
|
|
121
|
+
onChange: (t) => {
|
|
122
|
+
m(t, e), p("organization", t, e);
|
|
123
123
|
}
|
|
124
124
|
}),
|
|
125
125
|
B && /* @__PURE__ */ (0, F.jsx)(I, {
|
|
@@ -127,8 +127,8 @@ var P = /* @__PURE__ */ t(i(), 1), F = a(), I = ({ value: e, isErrored: t, onCha
|
|
|
127
127
|
value: a.cvecNumber,
|
|
128
128
|
isErrored: !!c.cvecNumber,
|
|
129
129
|
disabled: g("cvecNumber")?.disabled,
|
|
130
|
-
onChange: (
|
|
131
|
-
q("cvecNumber",
|
|
130
|
+
onChange: (t) => {
|
|
131
|
+
q("cvecNumber", t), p("cvecNumber", t, e);
|
|
132
132
|
}
|
|
133
133
|
}),
|
|
134
134
|
/* @__PURE__ */ (0, F.jsx)("div", {
|
|
@@ -144,15 +144,15 @@ var P = /* @__PURE__ */ t(i(), 1), F = a(), I = ({ value: e, isErrored: t, onCha
|
|
|
144
144
|
value: a.firstName,
|
|
145
145
|
isErrored: !!c.firstName,
|
|
146
146
|
disabled: g("firstName")?.disabled,
|
|
147
|
-
onChange: (
|
|
148
|
-
q("firstName",
|
|
147
|
+
onChange: (t) => {
|
|
148
|
+
q("firstName", t), p("firstName", t, e);
|
|
149
149
|
}
|
|
150
150
|
}), /* @__PURE__ */ (0, F.jsx)(v, {
|
|
151
151
|
value: a.lastName,
|
|
152
152
|
isErrored: !!c.lastName,
|
|
153
153
|
disabled: g("lastName")?.disabled,
|
|
154
|
-
onChange: (
|
|
155
|
-
q("lastName",
|
|
154
|
+
onChange: (t) => {
|
|
155
|
+
q("lastName", t), p("lastName", t, e);
|
|
156
156
|
}
|
|
157
157
|
})]
|
|
158
158
|
}),
|
|
@@ -162,8 +162,8 @@ var P = /* @__PURE__ */ t(i(), 1), F = a(), I = ({ value: e, isErrored: t, onCha
|
|
|
162
162
|
locale: J,
|
|
163
163
|
isRequired: !0,
|
|
164
164
|
disabled: g("birthDate")?.disabled,
|
|
165
|
-
onChange: (
|
|
166
|
-
q("birthDate",
|
|
165
|
+
onChange: (t) => {
|
|
166
|
+
q("birthDate", t), p("birthDate", t, e);
|
|
167
167
|
}
|
|
168
168
|
}),
|
|
169
169
|
/* @__PURE__ */ (0, F.jsx)(w, {
|
|
@@ -173,50 +173,50 @@ var P = /* @__PURE__ */ t(i(), 1), F = a(), I = ({ value: e, isErrored: t, onCha
|
|
|
173
173
|
id: "emailExplanation",
|
|
174
174
|
defaultMessage: "Personal or school email is fine"
|
|
175
175
|
}),
|
|
176
|
-
onChange: (
|
|
177
|
-
q("email",
|
|
176
|
+
onChange: (t) => {
|
|
177
|
+
q("email", t), p("email", t, e);
|
|
178
178
|
},
|
|
179
179
|
onKeyDown: (e) => h(e),
|
|
180
180
|
disabled: g("email")?.disabled
|
|
181
181
|
}),
|
|
182
|
-
|
|
183
|
-
isRequired: !!
|
|
182
|
+
e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, F.jsx)(b, {
|
|
183
|
+
isRequired: !!e.programTheme.smsLoopEnabled,
|
|
184
184
|
value: a.phoneNumber,
|
|
185
185
|
isErrored: !!c.phoneNumber,
|
|
186
186
|
disabled: g("phoneNumber")?.disabled,
|
|
187
|
-
onChange: (
|
|
188
|
-
q("phoneNumber",
|
|
187
|
+
onChange: (t) => {
|
|
188
|
+
q("phoneNumber", t), p("phoneNumber", t, e);
|
|
189
189
|
},
|
|
190
190
|
selectedCountryCode: a.countryChoice && a.countryChoice.value
|
|
191
191
|
}) : null,
|
|
192
|
-
(E.customFormFields || []).map((
|
|
193
|
-
config:
|
|
194
|
-
verificationService:
|
|
192
|
+
(E.customFormFields || []).map((t) => /* @__PURE__ */ (0, F.jsx)(y, {
|
|
193
|
+
config: t,
|
|
194
|
+
verificationService: e
|
|
195
195
|
})),
|
|
196
196
|
" ",
|
|
197
197
|
/* @__PURE__ */ (0, F.jsx)(x, {
|
|
198
|
-
verificationService:
|
|
198
|
+
verificationService: e,
|
|
199
199
|
isErrored: !!c.marketConsentValue,
|
|
200
200
|
disabled: g("marketConsentValue")?.disabled,
|
|
201
|
-
onChange: (
|
|
201
|
+
onChange: (t) => {
|
|
202
202
|
q("metadata", {
|
|
203
|
-
...
|
|
204
|
-
marketConsentValue:
|
|
205
|
-
}), p("marketConsentValue",
|
|
203
|
+
...e.viewModel.metadata,
|
|
204
|
+
marketConsentValue: t
|
|
205
|
+
}), p("marketConsentValue", t, e);
|
|
206
206
|
},
|
|
207
207
|
viewModel: a
|
|
208
208
|
}),
|
|
209
209
|
/* @__PURE__ */ (0, F.jsx)(k, {
|
|
210
|
-
verificationService:
|
|
210
|
+
verificationService: e,
|
|
211
211
|
suffix: "CollectAboveSubmit"
|
|
212
212
|
}),
|
|
213
213
|
/* @__PURE__ */ (0, F.jsx)(S, {
|
|
214
|
-
verificationService:
|
|
214
|
+
verificationService: e,
|
|
215
215
|
isErrored: !!c.captchaToken
|
|
216
216
|
}),
|
|
217
217
|
/* @__PURE__ */ (0, F.jsx)(T, {
|
|
218
218
|
step: s.collectStudentPersonalInfo,
|
|
219
|
-
verificationService:
|
|
219
|
+
verificationService: e,
|
|
220
220
|
viewModel: a,
|
|
221
221
|
failedInstantMatch: K,
|
|
222
222
|
buttonText: /* @__PURE__ */ (0, F.jsx)(r, {
|
package/chunk/{StepStudentPersonalInfo-B8EJqu5o.js.map → StepStudentPersonalInfo-CLchkf6y.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepStudentPersonalInfo-B8EJqu5o.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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A6B;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-CLchkf6y.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,I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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"}
|
|
@@ -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:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.306.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1792784366120
|
|
9
|
+
* BUILD_DATE: Fri Oct 23 2026 19:39:26 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 051dca165a15b769b71940fd854aaa10b824ca55
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
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
|
-
import { n as a, s as o, t as s } from "./jsx-runtime-
|
|
15
|
-
import { n as c } from "./Message-
|
|
16
|
-
import { p as l } from "./FormFooterComponent-
|
|
17
|
-
import { t as u } from "./hooks-
|
|
14
|
+
import { n as a, s as o, t as s } from "./jsx-runtime-CB6nLaN6.js";
|
|
15
|
+
import { n as c } from "./Message-bCY_JxvZ.js";
|
|
16
|
+
import { p as l } from "./FormFooterComponent-DzG4p93f.js";
|
|
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-
|
|
20
|
-
import { d as p, f as m, r as h, t as g } from "./stepComponentHelpers
|
|
21
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
22
|
-
import { t as C } from "./FormFieldText-
|
|
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-
|
|
19
|
+
import { t as f } from "./useCollectFieldsEndpoint-BFxNI9mD.js";
|
|
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-B9U-3SMZ.js";
|
|
22
|
+
import { t as C } from "./FormFieldText-D4SW8w-w.js";
|
|
23
|
+
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-DF3V6hJY.js";
|
|
24
|
+
import { i as E } from "./FormSelectChoice-BGa9KqEI.js";
|
|
25
|
+
import { t as D } from "./BirthDateComponent-c3-VfXxt.js";
|
|
26
|
+
import { t as O } from "./CountryComponentWrapper-CZK3RrMe.js";
|
|
27
|
+
import { t as k } from "./ExtraMessage-B0Pl1Fx3.js";
|
|
28
|
+
import { t as A } from "./ChangeLocaleComponent-FiBBf-GR.js";
|
|
29
|
+
import { t as j } from "./PersonalInfoStepWrapper-BHXuN88z.js";
|
|
30
|
+
import { t as M } from "./CollegeNameComponent-CxOhMPuq.js";
|
|
31
|
+
import { t as N } from "./StatusComponent-B-1gIOek.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-C6OXBOsJ.js.map → StepStudentPersonalInfo-oc0V1SEn.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepStudentPersonalInfo-C6OXBOsJ.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,K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AC,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-oc0V1SEn.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,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