@sheerid/jslib 2.272.0 → 2.274.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 +949 -939
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/AddressComponent-BGFbAsvK.js +4 -4
- package/chunk/{AddressComponent-BLDI7tct.js → AddressComponent-DeQlodxe.js} +7 -7
- package/chunk/{AddressComponent-BLDI7tct.js.map → AddressComponent-DeQlodxe.js.map} +1 -1
- package/chunk/{AnnouncingHeader-BRATyipQ.js → AnnouncingHeader-Ces-_Aei.js} +6 -6
- package/chunk/{AnnouncingHeader-BRATyipQ.js.map → AnnouncingHeader-Ces-_Aei.js.map} +1 -1
- package/chunk/AnnouncingHeader-D01_AW-Z.js +4 -4
- package/chunk/{ApiUrls--XFHYK_y.js → ApiUrls-CCrEMNcV.js} +12 -10
- package/chunk/ApiUrls-CCrEMNcV.js.map +1 -0
- package/chunk/{ApiUrls-C95G_IDd.js → ApiUrls-CtTZRLIz.js} +15 -11
- package/chunk/ApiUrls-CtTZRLIz.js.map +1 -0
- package/chunk/{BirthDateComponent-fvOK4oaB.js → BirthDateComponent-DidDEb4J.js} +5 -5
- package/chunk/{BirthDateComponent-D_pIZKnS.js.map → BirthDateComponent-DidDEb4J.js.map} +1 -1
- package/chunk/{BirthDateComponent-D_pIZKnS.js → BirthDateComponent-DlrYopO3.js} +8 -8
- package/chunk/{BirthDateComponent-fvOK4oaB.js.map → BirthDateComponent-DlrYopO3.js.map} +1 -1
- package/chunk/{CaptchaComponent-WxyecFik.js → CaptchaComponent-CoUrV-PT.js} +89 -89
- package/chunk/{CaptchaComponent-D-Nz76Qg.js.map → CaptchaComponent-CoUrV-PT.js.map} +1 -1
- package/chunk/{CaptchaComponent-D-Nz76Qg.js → CaptchaComponent-D57Ffe6H.js} +6 -6
- package/chunk/{CaptchaComponent-WxyecFik.js.map → CaptchaComponent-D57Ffe6H.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DJQZb54_.js → ChangeLocaleComponent-ClmSxxuE.js} +5 -5
- package/chunk/{ChangeLocaleComponent-BlBc_jHa.js.map → ChangeLocaleComponent-ClmSxxuE.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BlBc_jHa.js → ChangeLocaleComponent-fFVOdtsS.js} +8 -8
- package/chunk/{ChangeLocaleComponent-DJQZb54_.js.map → ChangeLocaleComponent-fFVOdtsS.js.map} +1 -1
- package/chunk/City-BJB8URp9.js +4 -4
- package/chunk/{City-EIxs9ACD.js → City-C1CWD14n.js} +7 -7
- package/chunk/{City-EIxs9ACD.js.map → City-C1CWD14n.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CBt---A3.js → CollegeNameComponent-BMBLbuQc.js} +5 -5
- package/chunk/{CollegeNameComponent-C9EAsbzB.js.map → CollegeNameComponent-BMBLbuQc.js.map} +1 -1
- package/chunk/{CollegeNameComponent-C9EAsbzB.js → CollegeNameComponent-BnJDGc88.js} +9 -9
- package/chunk/{CollegeNameComponent-CBt---A3.js.map → CollegeNameComponent-BnJDGc88.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-L-1toxiA.js → CopyToClipboardComponent-C4DDGwe8.js} +6 -6
- package/chunk/{CopyToClipboardComponent-L-1toxiA.js.map → CopyToClipboardComponent-C4DDGwe8.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-CWCaNcMS.js +4 -4
- package/chunk/{CountryComponentWrapper-LGUaAegT.js → CountryComponentWrapper-C1CD8ZAg.js} +5 -5
- package/chunk/{CountryComponentWrapper-Dc-JmygI.js.map → CountryComponentWrapper-C1CD8ZAg.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-Dc-JmygI.js → CountryComponentWrapper-DeOnkeWj.js} +10 -10
- package/chunk/{CountryComponentWrapper-LGUaAegT.js.map → CountryComponentWrapper-DeOnkeWj.js.map} +1 -1
- package/chunk/{DischargeDateComponent-XQlaYCm3.js → DischargeDateComponent-Rjgoohzn.js} +11 -11
- package/chunk/{DischargeDateComponent-XQlaYCm3.js.map → DischargeDateComponent-Rjgoohzn.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CofeIk6F.js → DischargeDateComponent-VzOdjzS5.js} +7 -7
- package/chunk/{DischargeDateComponent-CofeIk6F.js.map → DischargeDateComponent-VzOdjzS5.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-rkswBl9W.js → DriverLicenseNumberComponent-CFbngokf.js} +7 -7
- package/chunk/{DriverLicenseNumberComponent-rkswBl9W.js.map → DriverLicenseNumberComponent-CFbngokf.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-Cfjxx2ik.js +4 -4
- package/chunk/EmailLoopPending-BHVS5imA.js +137 -0
- package/chunk/EmailLoopPending-BHVS5imA.js.map +1 -0
- package/chunk/EmailLoopPending-C7lV28N9.js +141 -0
- package/chunk/EmailLoopPending-C7lV28N9.js.map +1 -0
- package/chunk/{ExtraMessage-BWiMOnGY.js → ExtraMessage-C2HFAvWw.js} +7 -7
- package/chunk/{ExtraMessage-2Q_abIAw.js.map → ExtraMessage-C2HFAvWw.js.map} +1 -1
- package/chunk/{ExtraMessage-2Q_abIAw.js → ExtraMessage-DU8TXgyJ.js} +5 -5
- package/chunk/{ExtraMessage-BWiMOnGY.js.map → ExtraMessage-DU8TXgyJ.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BM458oYQ.js → FirstResponderOrganizationComponent-Cojs7nNP.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-B8O9Js_y.js.map → FirstResponderOrganizationComponent-Cojs7nNP.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-B8O9Js_y.js → FirstResponderOrganizationComponent-DaIpM9B_.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-BM458oYQ.js.map → FirstResponderOrganizationComponent-DaIpM9B_.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-C8JRUmT0.js → FormFieldInputSelect-BF_uqQju.js} +7 -7
- package/chunk/{FormFieldInputSelect-BZAr3lul.js.map → FormFieldInputSelect-BF_uqQju.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BZAr3lul.js → FormFieldInputSelect-Cio6GCQa.js} +5 -5
- package/chunk/{FormFieldInputSelect-C8JRUmT0.js.map → FormFieldInputSelect-Cio6GCQa.js.map} +1 -1
- package/chunk/{FormFieldLayout-CZyAbU7A.js → FormFieldLayout-BPBIL09f.js} +6 -6
- package/chunk/{FormFieldLayout-CZyAbU7A.js.map → FormFieldLayout-BPBIL09f.js.map} +1 -1
- package/chunk/FormFieldLayout-CuxYu2-h.js +4 -4
- package/chunk/{FormFieldText-hh7QLPOB.js → FormFieldText-BTWjkwwz.js} +7 -7
- package/chunk/{FormFieldText-hh7QLPOB.js.map → FormFieldText-BTWjkwwz.js.map} +1 -1
- package/chunk/FormFieldText-Qen7EAhG.js +4 -4
- package/chunk/{FormFieldTypeahead-D_9PZ8-X.js → FormFieldTypeahead-CEVrBhmP.js} +7 -7
- package/chunk/{FormFieldTypeahead-D_9PZ8-X.js.map → FormFieldTypeahead-CEVrBhmP.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BX2aRyXH.js → FormFieldTypeahead-CTs2-gEo.js} +15 -15
- package/chunk/{FormFieldTypeahead-BX2aRyXH.js.map → FormFieldTypeahead-CTs2-gEo.js.map} +1 -1
- package/chunk/{FormFooterComponent-C_die6IY.js → FormFooterComponent-BYkrVAWO.js} +7 -7
- package/chunk/{FormFooterComponent-C_die6IY.js.map → FormFooterComponent-BYkrVAWO.js.map} +1 -1
- package/chunk/{FormFooterComponent-2At3EC6s.js → FormFooterComponent-DSZX7clY.js} +14 -14
- package/chunk/{FormFooterComponent-2At3EC6s.js.map → FormFooterComponent-DSZX7clY.js.map} +1 -1
- package/chunk/{FormSelectChoice-Bw2i04PW.js → FormSelectChoice-eq9jx2Ul.js} +8 -8
- package/chunk/{FormSelectChoice-Bw2i04PW.js.map → FormSelectChoice-eq9jx2Ul.js.map} +1 -1
- package/chunk/{FormSelectChoice-DaO1Ka0G.js → FormSelectChoice-ktUJwtNJ.js} +5 -5
- package/chunk/{FormSelectChoice-DaO1Ka0G.js.map → FormSelectChoice-ktUJwtNJ.js.map} +1 -1
- package/chunk/InputText-Bw9hR6-E.js +4 -4
- package/chunk/{InputText-DLjv31-v.js → InputText-C8Mt-ybW.js} +7 -7
- package/chunk/{InputText-DLjv31-v.js.map → InputText-C8Mt-ybW.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-D0HVaJJm.js → LicensedProfessionalOrganizationComponent-B_kcJSx5.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-D0HVaJJm.js.map → LicensedProfessionalOrganizationComponent-B_kcJSx5.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-hpsP5RWp.js → LicensedProfessionalOrganizationComponent-Bn6p2Wrg.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-hpsP5RWp.js.map → LicensedProfessionalOrganizationComponent-Bn6p2Wrg.js.map} +1 -1
- package/chunk/LogoComponent-BbW4WS1K.js +4 -4
- package/chunk/{LogoComponent-DwoLE9u6.js → LogoComponent-CRfZyj0K.js} +6 -6
- package/chunk/{LogoComponent-DwoLE9u6.js.map → LogoComponent-CRfZyj0K.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-qz116YzW.js → LowIncomeOrganizationComponent-DYt5-V2e.js} +12 -12
- package/chunk/{LowIncomeOrganizationComponent-Cdw9ZCY2.js.map → LowIncomeOrganizationComponent-DYt5-V2e.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Cdw9ZCY2.js → LowIncomeOrganizationComponent-Ddn9t9I5.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-qz116YzW.js.map → LowIncomeOrganizationComponent-Ddn9t9I5.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DsVqGq52.js → MedicalProfessionalOrganizationComponent-CiFB27-_.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-CpYu81O7.js.map → MedicalProfessionalOrganizationComponent-CiFB27-_.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CpYu81O7.js → MedicalProfessionalOrganizationComponent-Cjcj-Orv.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-DsVqGq52.js.map → MedicalProfessionalOrganizationComponent-Cjcj-Orv.js.map} +1 -1
- package/chunk/MemberIdComponent-CuflPh6q.js +4 -4
- package/chunk/{MemberIdComponent-B5k8k7Ri.js → MemberIdComponent-DbvTJcos.js} +7 -7
- package/chunk/{MemberIdComponent-B5k8k7Ri.js.map → MemberIdComponent-DbvTJcos.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-0OzqEfPm.js → MembershipOrganizationComponent-B4S0h6q3.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-DQAJm-UR.js.map → MembershipOrganizationComponent-B4S0h6q3.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-DQAJm-UR.js → MembershipOrganizationComponent-BoH-wjYj.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-0OzqEfPm.js.map → MembershipOrganizationComponent-BoH-wjYj.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-GRWIeaA0.js → PersonalInfoStepSubmitButton-C7QmpcVd.js} +11 -11
- package/chunk/{PersonalInfoStepSubmitButton-GRWIeaA0.js.map → PersonalInfoStepSubmitButton-C7QmpcVd.js.map} +1 -1
- package/chunk/PersonalInfoStepSubmitButton-D55ut5Yp.js +4 -4
- package/chunk/{PersonalInfoStepWrapper-B8Bql-P4.js → PersonalInfoStepWrapper-B084bLf0.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-B8Bql-P4.js.map → PersonalInfoStepWrapper-B084bLf0.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DITCr11F.js → PersonalInfoStepWrapper-eaFX3Ju2.js} +8 -8
- package/chunk/{PersonalInfoStepWrapper-DITCr11F.js.map → PersonalInfoStepWrapper-eaFX3Ju2.js.map} +1 -1
- package/chunk/PostalCodeComponent-Bs9KyOzc.js +4 -4
- package/chunk/{PostalCodeComponent-D9AMJfw1.js → PostalCodeComponent-Cd3MQUvZ.js} +7 -7
- package/chunk/{PostalCodeComponent-D9AMJfw1.js.map → PostalCodeComponent-Cd3MQUvZ.js.map} +1 -1
- package/chunk/SSN-Bj9BhqVP.js +4 -4
- package/chunk/{SSN-U1aHmtP9.js → SSN-xvlX6KT5.js} +8 -8
- package/chunk/{SSN-U1aHmtP9.js.map → SSN-xvlX6KT5.js.map} +1 -1
- package/chunk/{StateSelectComponent-DHTKj5Wr.js → StateSelectComponent-DB2ZVCla.js} +5 -5
- package/chunk/{StateSelectComponent-BHVGDHvm.js.map → StateSelectComponent-DB2ZVCla.js.map} +1 -1
- package/chunk/{StateSelectComponent-BHVGDHvm.js → StateSelectComponent-bfYGRqFK.js} +6 -6
- package/chunk/{StateSelectComponent-DHTKj5Wr.js.map → StateSelectComponent-bfYGRqFK.js.map} +1 -1
- package/chunk/{StatusComponent-BB2vWFCb.js → StatusComponent-B82t_yYt.js} +5 -5
- package/chunk/{StatusComponent-BB2vWFCb.js.map → StatusComponent-B82t_yYt.js.map} +1 -1
- package/chunk/{StatusComponent-BIHaYuzH.js → StatusComponent-DK_vIH9q.js} +8 -8
- package/chunk/{StatusComponent-BIHaYuzH.js.map → StatusComponent-DK_vIH9q.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-QDu81Gxq.js → StepActiveMilitaryPersonalInfoComponent-Cd3A-_0F.js} +13 -13
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-BTUcPHLY.js.map → StepActiveMilitaryPersonalInfoComponent-Cd3A-_0F.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-BTUcPHLY.js → StepActiveMilitaryPersonalInfoComponent-EQ6bJz4Q.js} +19 -19
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-QDu81Gxq.js.map → StepActiveMilitaryPersonalInfoComponent-EQ6bJz4Q.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DNgmilV6.js → StepAgePersonalInfo-CBZWwvsC.js} +19 -19
- package/chunk/{StepAgePersonalInfo-DNgmilV6.js.map → StepAgePersonalInfo-CBZWwvsC.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CqlMEv4L.js → StepAgePersonalInfo-DGEVSOm6.js} +12 -12
- package/chunk/{StepAgePersonalInfo-CqlMEv4L.js.map → StepAgePersonalInfo-DGEVSOm6.js.map} +1 -1
- package/chunk/StepCard-CPjUPPj0.js +4 -4
- package/chunk/{StepCard-C_A_mMZ0.js → StepCard-CbZaVC-t.js} +5 -5
- package/chunk/{StepCard-C_A_mMZ0.js.map → StepCard-CbZaVC-t.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-BCDtRblo.js → StepCollectIdentifier-CgDnf5rW.js} +9 -9
- package/chunk/{StepCollectIdentifier-CeoBjs-4.js.map → StepCollectIdentifier-CgDnf5rW.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CeoBjs-4.js → StepCollectIdentifier-DdbkjInv.js} +5 -5
- package/chunk/{StepCollectIdentifier-BCDtRblo.js.map → StepCollectIdentifier-DdbkjInv.js.map} +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-Ciey9jqp.js +9 -0
- package/chunk/{StepCollectMilitaryStatusComponent-Cmh7V4nS.js → StepCollectMilitaryStatusComponent-kyUWKjnU.js} +5 -5
- package/chunk/{StepCollectPersonalInfo-Bze5MY2K.js → StepCollectPersonalInfo-CrmZROYx.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-Bze5MY2K.js.map → StepCollectPersonalInfo-CrmZROYx.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-B72pYr2M.js → StepCollectPersonalInfo-DCuE4DCp.js} +20 -20
- package/chunk/{StepCollectPersonalInfo-B72pYr2M.js.map → StepCollectPersonalInfo-DCuE4DCp.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-B_kMG5T4.js → StepCompleteAuthentication-AKjdo3J9.js} +63 -60
- package/chunk/{StepCompleteAuthentication-B_kMG5T4.js.map → StepCompleteAuthentication-AKjdo3J9.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-WNoY9V_A.js → StepCompleteAuthentication-DytIfFlB.js} +68 -65
- package/chunk/{StepCompleteAuthentication-WNoY9V_A.js.map → StepCompleteAuthentication-DytIfFlB.js.map} +1 -1
- package/chunk/StepConsolation-CUnbBuhu.js +102 -0
- package/chunk/StepConsolation-CUnbBuhu.js.map +1 -0
- package/chunk/StepConsolation-CoWUFyb8.js +106 -0
- package/chunk/StepConsolation-CoWUFyb8.js.map +1 -0
- package/chunk/{StepDocUpload-YUcB9r4W.js → StepDocUpload-CxMWqwg6.js} +14 -14
- package/chunk/{StepDocUpload-mqNa0ERD.js.map → StepDocUpload-CxMWqwg6.js.map} +1 -1
- package/chunk/{StepDocUpload-mqNa0ERD.js → StepDocUpload-RjZfQA5x.js} +6 -6
- package/chunk/{StepDocUpload-YUcB9r4W.js.map → StepDocUpload-RjZfQA5x.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-Cmkn8ssJ.js → StepDriverLicensePersonalInfoComponent-Bi_QAHBT.js} +10 -10
- package/chunk/{StepDriverLicensePersonalInfoComponent-Cmkn8ssJ.js.map → StepDriverLicensePersonalInfoComponent-Bi_QAHBT.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CER5z8aa.js → StepDriverLicensePersonalInfoComponent-CJolYOjr.js} +16 -16
- package/chunk/{StepDriverLicensePersonalInfoComponent-CER5z8aa.js.map → StepDriverLicensePersonalInfoComponent-CJolYOjr.js.map} +1 -1
- package/chunk/{StepEmailLoop-CPTtkURy.js → StepEmailLoop-DgiXMCz5.js} +13 -13
- package/chunk/{StepEmailLoop-CPTtkURy.js.map → StepEmailLoop-DgiXMCz5.js.map} +1 -1
- package/chunk/{StepEmailLoop-B8jULmEc.js → StepEmailLoop-Doiy14Hn.js} +6 -6
- package/chunk/{StepEmailLoop-B8jULmEc.js.map → StepEmailLoop-Doiy14Hn.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BX4-rPJK.js → StepEmploymentPersonalInfo-B7E-tWiE.js} +19 -19
- package/chunk/{StepEmploymentPersonalInfo-BX4-rPJK.js.map → StepEmploymentPersonalInfo-B7E-tWiE.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-ZhNapb6M.js → StepEmploymentPersonalInfo-Ck7Qrd42.js} +11 -11
- package/chunk/{StepEmploymentPersonalInfo-ZhNapb6M.js.map → StepEmploymentPersonalInfo-Ck7Qrd42.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-B915idqX.js → StepFirstResponderPersonalInfo-Bu--Ctxo.js} +19 -19
- package/chunk/{StepFirstResponderPersonalInfo-B915idqX.js.map → StepFirstResponderPersonalInfo-Bu--Ctxo.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-uC_14VCl.js → StepFirstResponderPersonalInfo-oR__DCIi.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-uC_14VCl.js.map → StepFirstResponderPersonalInfo-oR__DCIi.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-ADRRmyOZ.js → StepGeneralIdentityPersonalInfoComponent-BWsszzUk.js} +11 -11
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-ADRRmyOZ.js.map → StepGeneralIdentityPersonalInfoComponent-BWsszzUk.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C52vpHHa.js → StepGeneralIdentityPersonalInfoComponent-C1LcXbVS.js} +19 -19
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C52vpHHa.js.map → StepGeneralIdentityPersonalInfoComponent-C1LcXbVS.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BM1k5KK1.js → StepHybridIdentityPersonalInfoComponent-DtVW5Ijk.js} +11 -11
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BM1k5KK1.js.map → StepHybridIdentityPersonalInfoComponent-DtVW5Ijk.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DODm4DTn.js → StepHybridIdentityPersonalInfoComponent-fcsS3HaW.js} +20 -20
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DODm4DTn.js.map → StepHybridIdentityPersonalInfoComponent-fcsS3HaW.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CEjxRr5H.js → StepIDCheckLoop-CkrXFNDD.js} +5 -5
- package/chunk/{StepIDCheckLoop-CEjxRr5H.js.map → StepIDCheckLoop-CkrXFNDD.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DIYrsFwr.js → StepIDCheckLoop-QwQxcr6G.js} +8 -8
- package/chunk/{StepIDCheckLoop-DIYrsFwr.js.map → StepIDCheckLoop-QwQxcr6G.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-D_eLypXC.js → StepIDCheckLoopOnfido-BxWt_tTD.js} +12 -12
- package/chunk/{StepIDCheckLoopOnfido-wtq0fJ-c.js.map → StepIDCheckLoopOnfido-BxWt_tTD.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-wtq0fJ-c.js → StepIDCheckLoopOnfido-DiPll7qE.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-D_eLypXC.js.map → StepIDCheckLoopOnfido-DiPll7qE.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B0r0Uv54.js → StepIDCheckLoopRegula-Bdm-MlNE.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-B0r0Uv54.js.map → StepIDCheckLoopRegula-Bdm-MlNE.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-Do3ozU_J.js → StepIDCheckLoopRegula-C4VNjr3j.js} +10 -10
- package/chunk/{StepIDCheckLoopRegula-Do3ozU_J.js.map → StepIDCheckLoopRegula-C4VNjr3j.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-QEnfHmjk.js → StepInactiveMilitaryPersonalInfoComponent-CFuD6VTH.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-QEnfHmjk.js.map → StepInactiveMilitaryPersonalInfoComponent-CFuD6VTH.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-efGhy63T.js → StepInactiveMilitaryPersonalInfoComponent-E7wXl5fr.js} +24 -24
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-efGhy63T.js.map → StepInactiveMilitaryPersonalInfoComponent-E7wXl5fr.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-Cs86v_OB.js → StepLicensedProfessionalPersonalInfo-7qvdOCxP.js} +18 -18
- package/chunk/{StepLicensedProfessionalPersonalInfo-CX9NspCc.js.map → StepLicensedProfessionalPersonalInfo-7qvdOCxP.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CX9NspCc.js → StepLicensedProfessionalPersonalInfo-BPO41u3Q.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-Cs86v_OB.js.map → StepLicensedProfessionalPersonalInfo-BPO41u3Q.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-D7eko7ht.js → StepLowIncomePersonalInfo-DM27_Fv9.js} +22 -22
- package/chunk/{StepLowIncomePersonalInfo-D7eko7ht.js.map → StepLowIncomePersonalInfo-DM27_Fv9.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-DFVNYXtR.js → StepLowIncomePersonalInfo-sLsTIBCk.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-DFVNYXtR.js.map → StepLowIncomePersonalInfo-sLsTIBCk.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-C_AnvyQj.js → StepMedicalProfessionalPersonalInfo-BKS432PR.js} +14 -14
- package/chunk/{StepMedicalProfessionalPersonalInfo-BAcFB6Mb.js.map → StepMedicalProfessionalPersonalInfo-BKS432PR.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BAcFB6Mb.js → StepMedicalProfessionalPersonalInfo-CXFjH431.js} +20 -20
- package/chunk/{StepMedicalProfessionalPersonalInfo-C_AnvyQj.js.map → StepMedicalProfessionalPersonalInfo-CXFjH431.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BW67LVWx.js → StepMemberPersonalInfo-BfERXavf.js} +12 -12
- package/chunk/{StepMemberPersonalInfo-BW67LVWx.js.map → StepMemberPersonalInfo-BfERXavf.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CDtaOn7T.js → StepMemberPersonalInfo-CqtZioX5.js} +17 -17
- package/chunk/{StepMemberPersonalInfo-CDtaOn7T.js.map → StepMemberPersonalInfo-CqtZioX5.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CnGdDV-d.js → StepMoverPersonalInfo-B4uXChsu.js} +15 -15
- package/chunk/{StepMoverPersonalInfo-CGhgUm1j.js.map → StepMoverPersonalInfo-B4uXChsu.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CGhgUm1j.js → StepMoverPersonalInfo-CQprA7My.js} +9 -9
- package/chunk/{StepMoverPersonalInfo-CnGdDV-d.js.map → StepMoverPersonalInfo-CQprA7My.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Cde3FPYX.js → StepOverrideComponent-BfutBYKU.js} +11 -11
- package/chunk/{StepOverrideComponent-Cde3FPYX.js.map → StepOverrideComponent-BfutBYKU.js.map} +1 -1
- package/chunk/{StepOverrideComponent-wiMuwIu-.js → StepOverrideComponent-BqQF_3dO.js} +5 -5
- package/chunk/{StepOverrideComponent-wiMuwIu-.js.map → StepOverrideComponent-BqQF_3dO.js.map} +1 -1
- package/chunk/StepSMSLoop-BZS30ArE.js +180 -0
- package/chunk/StepSMSLoop-BZS30ArE.js.map +1 -0
- package/chunk/StepSMSLoop-CsN3smWP.js +184 -0
- package/chunk/StepSMSLoop-CsN3smWP.js.map +1 -0
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-BOaXygFU.js → StepSocialSecurityNumber-CNYkj1us.js} +13 -13
- package/chunk/{StepSocialSecurityNumber-BOaXygFU.js.map → StepSocialSecurityNumber-CNYkj1us.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CBrM2Tm-.js → StepSocialSecurityNumber-h5XRRxQ1.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-CBrM2Tm-.js.map → StepSocialSecurityNumber-h5XRRxQ1.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CVQpNQXs.js → StepStudentPersonalInfo-BK4Vzxug.js} +19 -19
- package/chunk/{StepStudentPersonalInfo-BQuHXyBx.js.map → StepStudentPersonalInfo-BK4Vzxug.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BQuHXyBx.js → StepStudentPersonalInfo-DMDBFsoT.js} +13 -13
- package/chunk/{StepStudentPersonalInfo-CVQpNQXs.js.map → StepStudentPersonalInfo-DMDBFsoT.js.map} +1 -1
- package/chunk/{StepSuccess-Fh5qHhhJ.js → StepSuccess-BTgPBEUH.js} +78 -74
- package/chunk/StepSuccess-BTgPBEUH.js.map +1 -0
- package/chunk/{StepSuccess-B4m12cuz.js → StepSuccess-CpGC44L8.js} +104 -100
- package/chunk/StepSuccess-CpGC44L8.js.map +1 -0
- package/chunk/{StepTeacherPersonalInfo-BWIWPznT.js → StepTeacherPersonalInfo-3iYsyMc8.js} +13 -13
- package/chunk/{StepTeacherPersonalInfo-BWIWPznT.js.map → StepTeacherPersonalInfo-3iYsyMc8.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-Iimih9IF.js → StepTeacherPersonalInfo-CCm_8ZHt.js} +18 -18
- package/chunk/{StepTeacherPersonalInfo-Iimih9IF.js.map → StepTeacherPersonalInfo-CCm_8ZHt.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-BQd6FhY1.js → TeacherSchoolComponent-5OscH6cJ.js} +5 -5
- package/chunk/{TeacherSchoolComponent-Dd19Qkfb.js.map → TeacherSchoolComponent-5OscH6cJ.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-Dd19Qkfb.js → TeacherSchoolComponent-wTJoE5I1.js} +9 -9
- package/chunk/{TeacherSchoolComponent-BQd6FhY1.js.map → TeacherSchoolComponent-wTJoE5I1.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BeBP6XXB.js +4 -4
- package/chunk/{TestingRouteOverrides-DmJbygl9.js → TestingRouteOverrides-Bt8QuyMY.js} +13 -13
- package/chunk/{TestingRouteOverrides-DmJbygl9.js.map → TestingRouteOverrides-Bt8QuyMY.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-D9TY-1LV.js → VerificationApiClient-CV-pPSzS.js} +36 -36
- package/chunk/{VerificationApiClient-D9TY-1LV.js.map → VerificationApiClient-CV-pPSzS.js.map} +1 -1
- package/chunk/{VerificationApiClient-BU-AI9RP.js → VerificationApiClient-DDY8kVrd.js} +5 -5
- package/chunk/{VerificationApiClient-BU-AI9RP.js.map → VerificationApiClient-DDY8kVrd.js.map} +1 -1
- package/chunk/{VerificationApiUtils-DcBv0vx1.js → VerificationApiUtils-DVXEkkFJ.js} +8 -8
- package/chunk/{VerificationApiUtils-BSy9Ko-O.js.map → VerificationApiUtils-DVXEkkFJ.js.map} +1 -1
- package/chunk/{VerificationApiUtils-BSy9Ko-O.js → VerificationApiUtils-V2wmWL9a.js} +6 -6
- package/chunk/{VerificationApiUtils-DcBv0vx1.js.map → VerificationApiUtils-V2wmWL9a.js.map} +1 -1
- package/chunk/ar-Dh-2G5c3.js +4 -4
- package/chunk/bg-BbAhdJRh.js +4 -4
- package/chunk/bn-IN-Cx3Q5Utp.js +4 -4
- package/chunk/countryUtils-Bg9KdIbF.js +4 -4
- package/chunk/{countryUtils-DuFXy-Lc.js → countryUtils-QLzXPJsg.js} +5 -5
- package/chunk/{countryUtils-DuFXy-Lc.js.map → countryUtils-QLzXPJsg.js.map} +1 -1
- package/chunk/cs-CYGsmvju.js +4 -4
- package/chunk/da-COZWvvUD.js +4 -4
- package/chunk/de-BHclNQGr.js +4 -4
- package/chunk/{downshift.esm--oxGxbi5.js → downshift.esm-BMKqQbKD.js} +7 -7
- package/chunk/{downshift.esm--oxGxbi5.js.map → downshift.esm-BMKqQbKD.js.map} +1 -1
- package/chunk/{downshift.esm-KWl0sOpP.js → downshift.esm-Be27xbKJ.js} +5 -5
- package/chunk/{downshift.esm-KWl0sOpP.js.map → downshift.esm-Be27xbKJ.js.map} +1 -1
- package/chunk/el-Bv_XQ0FX.js +4 -4
- package/chunk/empties-COfIPxJ5.js +4 -4
- package/chunk/{empties-1_PAn0id.js → empties-DctbDY5s.js} +5 -5
- package/chunk/{empties-1_PAn0id.js.map → empties-DctbDY5s.js.map} +1 -1
- package/chunk/en-GB-CkENrh2I.js +4 -4
- package/chunk/es-BRKAFTKN.js +4 -4
- package/chunk/es-ES-BWfAbWbQ.js +4 -4
- package/chunk/et-CxMgVbW2.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BEC3aNBF.js +4 -4
- package/chunk/fi-BaP3FR15.js +4 -4
- package/chunk/fr-CA-CS4SuM-m.js +4 -4
- package/chunk/fr-DSU2B7p2.js +4 -4
- package/chunk/ga-DZEr9X_A.js +4 -4
- package/chunk/hi-IN-DvBVpWNQ.js +4 -4
- package/chunk/{hooks-XC-iN9KQ.js → hooks-DLtMDttz.js} +7 -7
- package/chunk/{hooks-XC-iN9KQ.js.map → hooks-DLtMDttz.js.map} +1 -1
- package/chunk/hooks-PN48cX8E.js +4 -4
- package/chunk/hr-CL1lHDbu.js +4 -4
- package/chunk/hu-Cf5Uq9R_.js +4 -4
- package/chunk/id-ay9yilKx.js +4 -4
- package/chunk/{intl-DJeZs3uh.js → intl-TN1Dianl.js} +583 -583
- package/chunk/{intl-DJeZs3uh.js.map → intl-TN1Dianl.js.map} +1 -1
- package/chunk/is-tpzRyIZi.js +4 -4
- package/chunk/it-C3-BupR4.js +4 -4
- package/chunk/iw-CBna3XPT.js +4 -4
- package/chunk/ja-DvXOkZRn.js +4 -4
- package/chunk/{jsx-runtime-Dd4OJ9ft.js → jsx-runtime-QRCZ6ZTK.js} +5 -5
- package/chunk/{jsx-runtime-Dd4OJ9ft.js.map → jsx-runtime-QRCZ6ZTK.js.map} +1 -1
- package/chunk/jsx-runtime-lVLuHIkM.js +4 -4
- package/chunk/kk-DGXgY6Uw.js +4 -4
- package/chunk/ko-BlUGwGxN.js +4 -4
- package/chunk/lo-DT6wxwS1.js +4 -4
- package/chunk/lt-CT5-H4ci.js +4 -4
- package/chunk/lv-CBMD1XRp.js +4 -4
- package/chunk/{militaryStepHelpers-DHTF3XjP.js → militaryStepHelpers-CF0fNRKQ.js} +5 -5
- package/chunk/{militaryStepHelpers-DHTF3XjP.js.map → militaryStepHelpers-CF0fNRKQ.js.map} +1 -1
- package/chunk/militaryStepHelpers-W31scSUE.js +4 -4
- package/chunk/{mocks-D4xoUQMt.js → mocks-BN2OnOjp.js} +6 -6
- package/chunk/{mocks-D4xoUQMt.js.map → mocks-BN2OnOjp.js.map} +1 -1
- package/chunk/mocks-l2e0aaeT.js +4 -4
- package/chunk/ms-DuxNeOgk.js +4 -4
- package/chunk/nl-BE-D028qM7-.js +4 -4
- package/chunk/nl-DEuaat_s.js +4 -4
- package/chunk/no-CjeRjD1D.js +4 -4
- package/chunk/options-BK6Zk2Oe.js +4 -4
- package/chunk/pl-X0qJw7IS.js +4 -4
- package/chunk/programThemeGetters-4Wf-YSPx.js +4 -4
- package/chunk/{programThemeGetters-UDiPGnE3.js → programThemeGetters-DECHMs91.js} +5 -5
- package/chunk/{programThemeGetters-UDiPGnE3.js.map → programThemeGetters-DECHMs91.js.map} +1 -1
- package/chunk/pt-BR-C6XmLn3o.js +4 -4
- package/chunk/pt-o7v4iOVx.js +4 -4
- package/chunk/{refs-i0Eo9ybu.js → refs-6KTRrw-F.js} +5 -5
- package/chunk/{refs-i0Eo9ybu.js.map → refs-6KTRrw-F.js.map} +1 -1
- package/chunk/refs-B8CaE8yL.js +4 -4
- package/chunk/ro-C74ZR3HS.js +4 -4
- package/chunk/ru-BA9P3RVu.js +4 -4
- package/chunk/sk-DmyizV49.js +4 -4
- package/chunk/sl-Cxm3YoWE.js +4 -4
- package/chunk/sr-gOtgEOlP.js +4 -4
- package/chunk/stepComponentHelpers-Darhp1Nn.js +4 -4
- package/chunk/{stepComponentHelpers-D-rc0nWU.js → stepComponentHelpers-DeWac6nj.js} +9 -9
- package/chunk/{stepComponentHelpers-D-rc0nWU.js.map → stepComponentHelpers-DeWac6nj.js.map} +1 -1
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DnCUWo1-.js +4 -4
- package/chunk/sw-BY7XXvUU.js +4 -4
- package/chunk/ta-CVL0b6Hh.js +4 -4
- package/chunk/th-CyU0RW3x.js +4 -4
- package/chunk/tl-BfgQ0irB.js +4 -4
- package/chunk/tr-BPg_L4bY.js +4 -4
- package/chunk/uk-CNaioa7V.js +4 -4
- package/chunk/ur-Ht1Mcpm0.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-sPDbkjgh.js → useCollectFieldsEndpoint-C63IlRvv.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-sPDbkjgh.js.map → useCollectFieldsEndpoint-C63IlRvv.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-D4yLfK0P.js → useCollectFieldsEndpoint-bttd-mOP.js} +8 -8
- package/chunk/{useCollectFieldsEndpoint-D4yLfK0P.js.map → useCollectFieldsEndpoint-bttd-mOP.js.map} +1 -1
- package/chunk/{useMetrics-BXtJHRFy.js → useMetrics-CiB8jnkE.js} +7 -7
- package/chunk/{useMetrics-BXtJHRFy.js.map → useMetrics-CiB8jnkE.js.map} +1 -1
- package/chunk/useMetrics-iqbs0R1u.js +4 -4
- package/chunk/vi-sI1BYLXG.js +4 -4
- package/chunk/zh-DNG4VB8r.js +4 -4
- package/chunk/zh-HK-5Y3ROXEm.js +4 -4
- package/chunk/zu-DNMG8Idu.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +6 -5
- package/sheerid-install.js.map +1 -1
- package/sheerid.css +5 -5
- package/sheerid.js +59 -50
- package/sheerid.js.map +1 -1
- package/chunk/ApiUrls--XFHYK_y.js.map +0 -1
- package/chunk/ApiUrls-C95G_IDd.js.map +0 -1
- package/chunk/EmailLoopPending-DE3tDyAY.js +0 -138
- package/chunk/EmailLoopPending-DE3tDyAY.js.map +0 -1
- package/chunk/EmailLoopPending-e5hz6IDY.js +0 -134
- package/chunk/EmailLoopPending-e5hz6IDY.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-DDpq80DQ.js +0 -9
- package/chunk/StepConsolation-DP_22v0E.js +0 -104
- package/chunk/StepConsolation-DP_22v0E.js.map +0 -1
- package/chunk/StepConsolation-ol5BCfGd.js +0 -100
- package/chunk/StepConsolation-ol5BCfGd.js.map +0 -1
- package/chunk/StepSMSLoop-0m1VJY-W.js +0 -181
- package/chunk/StepSMSLoop-0m1VJY-W.js.map +0 -1
- package/chunk/StepSMSLoop-CPLQBDGY.js +0 -177
- package/chunk/StepSMSLoop-CPLQBDGY.js.map +0 -1
- package/chunk/StepSuccess-B4m12cuz.js.map +0 -1
- package/chunk/StepSuccess-Fh5qHhhJ.js.map +0 -1
|
@@ -4,27 +4,27 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.274.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1787094668046
|
|
9
|
+
* BUILD_DATE: Tue Aug 18 2026 23:11:08 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: f159388091b6a2928e80ee1b0cbd31d037de5a6c
|
|
11
11
|
*/
|
|
12
|
-
import { Jt as e, Lt as t, Nt as n, p as r, s as i } from "./intl-
|
|
13
|
-
import { a, c as o, n as s, t as c } from "./jsx-runtime-
|
|
14
|
-
import { O as l } from "./FormFooterComponent-
|
|
15
|
-
import { t as u } from "./hooks-
|
|
12
|
+
import { Jt as e, Lt as t, Nt as n, p as r, s as i } from "./intl-TN1Dianl.js";
|
|
13
|
+
import { a, c as o, n as s, t as c } from "./jsx-runtime-QRCZ6ZTK.js";
|
|
14
|
+
import { O as l } from "./FormFooterComponent-DSZX7clY.js";
|
|
15
|
+
import { t as u } from "./hooks-DLtMDttz.js";
|
|
16
16
|
import { t as d } from "../_mysheerid-preview.js";
|
|
17
|
-
import { C as f, h as p, u as m, w as h } from "./stepComponentHelpers-
|
|
18
|
-
import { a as g, i as _, n as v, o as y, s as b, t as x } from "./CaptchaComponent-
|
|
19
|
-
import { t as S } from "./FormFieldText-
|
|
20
|
-
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-
|
|
21
|
-
import { t as T } from "./BirthDateComponent-
|
|
22
|
-
import { t as E } from "./CountryComponentWrapper-
|
|
23
|
-
import { t as D } from "./ExtraMessage-
|
|
24
|
-
import { t as O } from "./ChangeLocaleComponent-
|
|
25
|
-
import { t as k } from "./PersonalInfoStepWrapper-
|
|
26
|
-
import { t as A } from "./CollegeNameComponent-
|
|
27
|
-
import { t as j } from "./StatusComponent-
|
|
17
|
+
import { C as f, h as p, u as m, w as h } from "./stepComponentHelpers-DeWac6nj.js";
|
|
18
|
+
import { a as g, i as _, n as v, o as y, s as b, t as x } from "./CaptchaComponent-CoUrV-PT.js";
|
|
19
|
+
import { t as S } from "./FormFieldText-BTWjkwwz.js";
|
|
20
|
+
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-C7QmpcVd.js";
|
|
21
|
+
import { t as T } from "./BirthDateComponent-DlrYopO3.js";
|
|
22
|
+
import { t as E } from "./CountryComponentWrapper-DeOnkeWj.js";
|
|
23
|
+
import { t as D } from "./ExtraMessage-C2HFAvWw.js";
|
|
24
|
+
import { t as O } from "./ChangeLocaleComponent-fFVOdtsS.js";
|
|
25
|
+
import { t as k } from "./PersonalInfoStepWrapper-eaFX3Ju2.js";
|
|
26
|
+
import { t as A } from "./CollegeNameComponent-BnJDGc88.js";
|
|
27
|
+
import { t as j } from "./StatusComponent-DK_vIH9q.js";
|
|
28
28
|
//#region src/components/FormFields/CVECNumber/CVECNumberComponent.tsx
|
|
29
29
|
var M = /* @__PURE__ */ e(o(), 1), N = c(), P = a(({ value: e, isErrored: t, onChange: n, intl: r, explanation: i, placeholder: a = "", isRequired: o = !1 }) => {
|
|
30
30
|
let c = u("include-cvec-field-france-student");
|
package/chunk/{StepStudentPersonalInfo-BQuHXyBx.js.map → StepStudentPersonalInfo-BK4Vzxug.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepStudentPersonalInfo-BQuHXyBx.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\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 CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\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={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\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};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"../../lib/types/types\";\n\nimport {\n StudentStatusDefaultMessagesEnum,\n VerificationStepsEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: InjectedIntl;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n intl,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n const getStatusChoice = (status?: StudentStatusSelection): FormSelectChoice =>\n status\n ? {\n value: status,\n label: intl.formatHTMLMessage({\n id: status,\n defaultMessage: StudentStatusDefaultMessagesEnum[status],\n }),\n }\n : { value: \"\", label: \"\" };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={getStatusChoice(viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={STATUS_SELECTIONS.map(getStatusChoice)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = injectIntl(StepStudentPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;4CAuEA,IAAA,GA3DA,EAAA,UAAA,cAAA,aAAA,SAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,CACA,GCnBM,IAAoB,OAAO,KAAK,CAAgC,GAqOzD,IAAmC,GA9Nf,EAC/B,wBACA,cAC2C;CAC3C,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAU,EAAW,GAGrB,IAAyB,EAAQ,mCAAmC,GACpE,IACJ,MAA2B,aAC3B,MAA2B,aAC3B,GAAW,eAAe,UAAU,MAMhC,IAAoB,EAAqB,qBAAqB,CAAC,GAC/D,IACJ,EAAkB,SAAS,UAAU,KAA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sB,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,CAEkF"}
|
|
1
|
+
{"version":3,"file":"StepStudentPersonalInfo-BK4Vzxug.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\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 CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\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={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\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};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"../../lib/types/types\";\n\nimport {\n StudentStatusDefaultMessagesEnum,\n VerificationStepsEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: InjectedIntl;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n intl,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n const getStatusChoice = (status?: StudentStatusSelection): FormSelectChoice =>\n status\n ? {\n value: status,\n label: intl.formatHTMLMessage({\n id: status,\n defaultMessage: StudentStatusDefaultMessagesEnum[status],\n }),\n }\n : { value: \"\", label: \"\" };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={getStatusChoice(viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={STATUS_SELECTIONS.map(getStatusChoice)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = injectIntl(StepStudentPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;4CAuEA,IAAA,GA3DA,EAAA,UAAA,cAAA,aAAA,SAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,CACA,GCnBM,IAAoB,OAAO,KAAK,CAAgC,GAqOzD,IAAmC,GA9Nf,EAC/B,wBACA,cAC2C;CAC3C,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAU,EAAW,GAGrB,IAAyB,EAAQ,mCAAmC,GACpE,IACJ,MAA2B,aAC3B,MAA2B,aAC3B,GAAW,eAAe,UAAU,MAMhC,IAAoB,EAAqB,qBAAqB,CAAC,GAC/D,IACJ,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU;CAE1F,EAAM,gBAAgB;EACpB,IAAI,KAAmB,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QACjF,MAAO,MAAO,gBAAgB,MAAO,QACxC;EASA,AARK,MAEH,IAAO,CAAC,GAAG,GAAM,YAAY,IAE1B,MAEH,IAAO,CAAC,GAAG,GAAM,QAAQ,IAE3B,EAAuB,0BAA0B,CAAI;CACvD,GAAG,CAAC,GAAe,CAAuB,CAAC;CAE3C,IAAM,IAAqB,EAAsB,CAAoB,GAE/D,KAA0B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AAA;EACkB;;AAEzB,CAEkF"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.274.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1787094663644
|
|
5
|
+
* BUILD_DATE: Tue Aug 18 2026 23:11:03 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: f159388091b6a2928e80ee1b0cbd31d037de5a6c
|
|
7
7
|
*/
|
|
8
8
|
import { Ft as e, Jt as t, c as n, n as r, zt as i } from "./options-BK6Zk2Oe.js";
|
|
9
9
|
import { a, c as o, n as s, t as c } from "./jsx-runtime-lVLuHIkM.js";
|
|
10
|
-
import { w as l } from "./FormFooterComponent-
|
|
10
|
+
import { w as l } from "./FormFooterComponent-BYkrVAWO.js";
|
|
11
11
|
import { t as u } from "./hooks-PN48cX8E.js";
|
|
12
12
|
import { n as d } from "../sheerid.js";
|
|
13
13
|
import { C as f, h as p, u as m, w as h } from "./stepComponentHelpers-Darhp1Nn.js";
|
|
14
|
-
import { a as g, i as _, n as v, o as y, s as b, t as x } from "./CaptchaComponent-
|
|
14
|
+
import { a as g, i as _, n as v, o as y, s as b, t as x } from "./CaptchaComponent-D57Ffe6H.js";
|
|
15
15
|
import { t as S } from "./FormFieldText-Qen7EAhG.js";
|
|
16
16
|
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-D55ut5Yp.js";
|
|
17
|
-
import { t as T } from "./BirthDateComponent-
|
|
18
|
-
import { t as E } from "./CountryComponentWrapper-
|
|
19
|
-
import { t as D } from "./ExtraMessage-
|
|
20
|
-
import { t as O } from "./ChangeLocaleComponent-
|
|
21
|
-
import { t as k } from "./PersonalInfoStepWrapper-
|
|
22
|
-
import { t as A } from "./CollegeNameComponent-
|
|
23
|
-
import { t as j } from "./StatusComponent-
|
|
17
|
+
import { t as T } from "./BirthDateComponent-DidDEb4J.js";
|
|
18
|
+
import { t as E } from "./CountryComponentWrapper-C1CD8ZAg.js";
|
|
19
|
+
import { t as D } from "./ExtraMessage-DU8TXgyJ.js";
|
|
20
|
+
import { t as O } from "./ChangeLocaleComponent-ClmSxxuE.js";
|
|
21
|
+
import { t as k } from "./PersonalInfoStepWrapper-B084bLf0.js";
|
|
22
|
+
import { t as A } from "./CollegeNameComponent-BMBLbuQc.js";
|
|
23
|
+
import { t as j } from "./StatusComponent-B82t_yYt.js";
|
|
24
24
|
//#region src/components/FormFields/CVECNumber/CVECNumberComponent.tsx
|
|
25
25
|
var M = /* @__PURE__ */ t(o(), 1), N = c(), P = a(({ value: e, isErrored: t, onChange: n, intl: r, explanation: i, placeholder: a = "", isRequired: o = !1 }) => {
|
|
26
26
|
let c = u("include-cvec-field-france-student");
|
package/chunk/{StepStudentPersonalInfo-CVQpNQXs.js.map → StepStudentPersonalInfo-DMDBFsoT.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepStudentPersonalInfo-CVQpNQXs.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\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 CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\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={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\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};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"../../lib/types/types\";\n\nimport {\n StudentStatusDefaultMessagesEnum,\n VerificationStepsEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: InjectedIntl;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n intl,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n const getStatusChoice = (status?: StudentStatusSelection): FormSelectChoice =>\n status\n ? {\n value: status,\n label: intl.formatHTMLMessage({\n id: status,\n defaultMessage: StudentStatusDefaultMessagesEnum[status],\n }),\n }\n : { value: \"\", label: \"\" };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={getStatusChoice(viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={STATUS_SELECTIONS.map(getStatusChoice)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = injectIntl(StepStudentPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;4CAuEA,IAAA,GA3DA,EAAA,UAAA,cAAA,aAAA,SAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,CACA,GCnBM,IAAoB,OAAO,KAAK,CAAgC,GAqOzD,IAAmC,GA9Nf,EAC/B,wBACA,cAC2C;CAC3C,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAU,EAAW,GAGrB,IAAyB,EAAQ,mCAAmC,GACpE,IACJ,MAA2B,aAC3B,MAA2B,aAC3B,GAAW,eAAe,UAAU,MAMhC,IAAoB,EAAqB,qBAAqB,CAAC,GAC/D,IACJ,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU;CAE1F,EAAM,gBAAgB;EACpB,IAAI,KAAmB,EA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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,CAEkF"}
|
|
1
|
+
{"version":3,"file":"StepStudentPersonalInfo-DMDBFsoT.js","names":[],"sources":["../../src/components/FormFields/CVECNumber/CVECNumberComponent.tsx","../../src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\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 CVECNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n explanation,\n placeholder = \"\",\n isRequired = false,\n}: FormFieldComponentProps & PassedProps) => {\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={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"cvecNumberPlaceholder\",\n defaultMessage: \"CVEC certificate number\",\n })\n }\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};\nexport const CVECNumberComponent = injectIntl(CVECNumber);\n","/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationService,\n StudentPersonalInfoViewModel,\n Organization,\n StudentPersonalInfoResponse,\n CustomFormFieldConfig,\n type FieldId,\n type FormSelectChoice,\n type StudentStatusSelection,\n} from \"../../lib/types/types\";\n\nimport {\n StudentStatusDefaultMessagesEnum,\n VerificationStepsEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\nimport { CVECNumberComponent } from \"../FormFields/CVECNumber/CVECNumberComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\n\n// Graduation status dropdown is only Student/Graduate options, not the raw `availableStatuses`\nconst STATUS_SELECTIONS = Object.keys(StudentStatusDefaultMessagesEnum) as StudentStatusSelection[];\n\ninterface StepStudentPersonalInfoComponentProps {\n verificationService: VerificationService;\n intl: InjectedIntl;\n}\n\nconst StepStudentPersonalInfo = ({\n verificationService,\n intl,\n}: StepStudentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as StudentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as StudentPersonalInfoResponse;\n const options = getOptions();\n\n // #region include-cvec-field-france-student\n const showCvecInputVariation = useFlag(\"include-cvec-field-france-student\");\n const showCvecInput =\n showCvecInputVariation !== \"control\" &&\n showCvecInputVariation !== \"default\" &&\n viewModel?.countryChoice?.value === \"FR\";\n // #endregion include-cvec-field-france-student\n\n // The \"Graduation Status\" input applies only when the program offers a genuine\n // Student or Graduate choice: GRADUATE and at least one non-graduate student status\n // The \"Student\" option includes all program configured non-graduate statuses\n const availableStatuses = verificationResponse.availableStatuses ?? [];\n const showGraduateStatusInput =\n availableStatuses.includes(\"GRADUATE\") && availableStatuses.some((s) => s !== \"GRADUATE\");\n\n React.useEffect(() => {\n let skip: FieldId[] = (verificationService.viewModel?.fieldsToSkipValidation || []).filter(\n (id) => id !== \"cvecNumber\" && id !== \"status\",\n );\n if (!showCvecInput) {\n // Don't validate CVEC number if country is not France\n skip = [...skip, \"cvecNumber\"];\n }\n if (!showGraduateStatusInput) {\n // Only require a graduation status when the program offers the Student/Graduate choice.\n skip = [...skip, \"status\"];\n }\n updateStudentViewModel(\"fieldsToSkipValidation\", skip);\n }, [showCvecInput, showGraduateStatusInput]);\n\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateStudentViewModel = (key: keyof StudentPersonalInfoViewModel, value: any) => {\n const nextState: StudentPersonalInfoViewModel = produce(\n viewModel,\n (draft: StudentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n\n const getStatusChoice = (status?: StudentStatusSelection): FormSelectChoice =>\n status\n ? {\n value: status,\n label: intl.formatHTMLMessage({\n id: status,\n defaultMessage: StudentStatusDefaultMessagesEnum[status],\n }),\n }\n : { value: \"\", label: \"\" };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"student-personal-info\"\n />\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {showGraduateStatusInput && (\n <Status\n segmentId=\"student\"\n label={<FormattedHTMLMessage id=\"graduationStatus\" defaultMessage=\"Graduation Status\" />}\n value={getStatusChoice(viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n options={STATUS_SELECTIONS.map(getStatusChoice)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n const value = status ? (status.value as StudentStatusSelection) : undefined;\n updateStudentViewModel(\"status\", value);\n updateFieldValidationErrorsByFieldId(\"status\", value ?? \"\", verificationService);\n }}\n />\n )}\n <CollegeName\n value={(verificationService.viewModel as StudentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n {showCvecInput && (\n <CVECNumberComponent\n isRequired={getFieldConfigByFieldId(\"cvecNumber\")?.requireIfOptional}\n value={viewModel.cvecNumber}\n isErrored={!!fieldValidationErrors.cvecNumber}\n disabled={getFieldConfigByFieldId(\"cvecNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"cvecNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"cvecNumber\", newValue, verificationService);\n }}\n />\n )}\n <div className=\"sid-names-explanation sid-l-space-top-md\">\n <FormattedHTMLMessage\n id=\"step.personalInfo.nameInstructions\"\n defaultMessage=\"Personal or school email is fine\"\n />\n </div>\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal or school email is fine\"\n />\n }\n onChange={(newValue) => {\n updateStudentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n />\n ) : null}\n {(options.customFormFields || []).map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}{\" \"}\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n onChange={(newValue) => {\n updateStudentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n />\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectStudentPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Student Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepStudentPersonalInfoComponent = injectIntl(StepStudentPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;4CAuEA,IAAA,GA3DA,EAAA,UAAA,cAAA,aAAA,SAAA,gBAAA,iBAAA,IAAA,gBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,CACA,GCnBM,IAAoB,OAAO,KAAK,CAAgC,GAqOzD,IAAmC,GA9Nf,EAC/B,wBACA,cAC2C;CAC3C,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAU,EAAW,GAGrB,IAAyB,EAAQ,mCAAmC,GACpE,IACJ,MAA2B,aAC3B,MAA2B,aAC3B,GAAW,eAAe,UAAU,MAMhC,IAAoB,EAAqB,qBAAqB,CAAC,GAC/D,IACJ,EAAkB,SAAS,UAAU,KAAK,EAAkB,MAAM,MAAM,MAAM,UAAU;CAE1F,EAAM,gBAAgB;EACpB,IAAI,KAAmB,EAAoB,WAAW,0BAA0B,CAAC,GAAG,QACjF,MAAO,MAAO,gBAAgB,MAAO,QACxC;EASA,AARK,MAEH,IAAO,CAAC,GAAG,GAAM,YAAY,IAE1B,MAEH,IAAO,CAAC,GAAG,GAAM,QAAQ,IAE3B,EAAuB,0BAA0B,CAAI;CACvD,GAAG,CAAC,GAAe,CAAuB,CAAC;CAE3C,IAAM,IAAqB,EAAsB,CAAoB,GAE/D,KAA0B,GAAyC,MAAe;EACtF,IAAM,IAA0C,EAC9C,IACC,MAAwC;GACvC,EAAO,KAAe;EACxB,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|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.274.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1787094663644
|
|
5
|
+
* BUILD_DATE: Tue Aug 18 2026 23:11:03 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: f159388091b6a2928e80ee1b0cbd31d037de5a6c
|
|
7
7
|
*/
|
|
8
8
|
import { G as e, Jt as t, K as n, Wt as r, d as i, jt as a, m as o, n as s, w as c } from "./options-BK6Zk2Oe.js";
|
|
9
9
|
import { c as l, n as u, t as d } from "./jsx-runtime-lVLuHIkM.js";
|
|
10
10
|
import { i as f } from "./TestingRouteOverrides-BeBP6XXB.js";
|
|
11
|
-
import { d as p, t as m } from "./ApiUrls
|
|
11
|
+
import { d as p, t as m } from "./ApiUrls-CCrEMNcV.js";
|
|
12
12
|
import { t as h } from "./eventEmitter-CSG6jR7V.js";
|
|
13
13
|
import { t as g } from "./hooks-PN48cX8E.js";
|
|
14
14
|
import { t as _ } from "./LogoComponent-BbW4WS1K.js";
|
|
@@ -175,86 +175,90 @@ var O = d(), k = (e, t = "_top") => {
|
|
|
175
175
|
]), /* @__PURE__ */ (0, O.jsxs)("div", {
|
|
176
176
|
id: "sid-step-success",
|
|
177
177
|
className: "sid-success-container sid-l-container",
|
|
178
|
-
role: "region",
|
|
179
178
|
children: [
|
|
180
179
|
/* @__PURE__ */ (0, O.jsxs)("div", {
|
|
181
|
-
|
|
180
|
+
role: "main",
|
|
182
181
|
children: [
|
|
183
|
-
/* @__PURE__ */ (0, O.
|
|
184
|
-
className: "sid-
|
|
185
|
-
children:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
182
|
+
/* @__PURE__ */ (0, O.jsxs)("div", {
|
|
183
|
+
className: "sid-header sid-l-horz-center sid-l-space-top-md",
|
|
184
|
+
children: [
|
|
185
|
+
/* @__PURE__ */ (0, O.jsx)("div", {
|
|
186
|
+
className: "sid-success-logo-container sid-l-horz-center",
|
|
187
|
+
children: /* @__PURE__ */ (0, O.jsx)(_, {
|
|
188
|
+
verificationService: e,
|
|
189
|
+
fallbackLogo: !h && /* @__PURE__ */ (0, O.jsx)("img", {
|
|
190
|
+
className: "sid-success-logo-default sid-l-lead-image",
|
|
191
|
+
alt: "",
|
|
192
|
+
src: "https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg"
|
|
193
|
+
})
|
|
194
|
+
})
|
|
195
|
+
}),
|
|
196
|
+
/* @__PURE__ */ (0, O.jsx)(v, {
|
|
197
|
+
align: "center",
|
|
198
|
+
children: /* @__PURE__ */ (0, O.jsx)(u, {
|
|
199
|
+
id: "step.success.title",
|
|
200
|
+
defaultMessage: "Success! You've been verified.",
|
|
201
|
+
tagName: "h1"
|
|
202
|
+
})
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ (0, O.jsx)("div", {
|
|
205
|
+
className: "sid-header__subtitle sid-l-horz-center",
|
|
206
|
+
children: /* @__PURE__ */ (0, O.jsx)(u, {
|
|
207
|
+
id: "step.success.subtitle",
|
|
208
|
+
defaultMessage: "You are now eligible for this special offer.",
|
|
209
|
+
tagName: "p"
|
|
210
|
+
})
|
|
191
211
|
})
|
|
192
|
-
|
|
212
|
+
]
|
|
193
213
|
}),
|
|
194
|
-
/* @__PURE__ */ (0, O.jsx)(
|
|
195
|
-
|
|
196
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
})
|
|
214
|
+
E && /* @__PURE__ */ (0, O.jsx)("div", {
|
|
215
|
+
className: "sid-l-horz-center sid-reward-container sid-l-space-top-md",
|
|
216
|
+
children: T.map((e) => e === a.TEXT ? /* @__PURE__ */ (0, O.jsxs)("div", { children: [/* @__PURE__ */ (0, O.jsx)("div", {
|
|
217
|
+
className: "sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center",
|
|
218
|
+
role: "region",
|
|
219
|
+
children: C
|
|
220
|
+
}), /* @__PURE__ */ (0, O.jsx)("div", {
|
|
221
|
+
className: "sid-l-space-top-md sid-h-bold-text sid-l-horz-center",
|
|
222
|
+
children: /* @__PURE__ */ (0, O.jsx)(b, {
|
|
223
|
+
textToCopy: C,
|
|
224
|
+
notificationText: /* @__PURE__ */ (0, O.jsx)(u, {
|
|
225
|
+
id: "copied",
|
|
226
|
+
defaultMessage: "Copied"
|
|
227
|
+
}),
|
|
228
|
+
children: /* @__PURE__ */ (0, O.jsx)(u, {
|
|
229
|
+
id: "step.success.copyCouponCode",
|
|
230
|
+
defaultMessage: "Copy coupon code"
|
|
231
|
+
})
|
|
232
|
+
})
|
|
233
|
+
})] }, e) : /* @__PURE__ */ (0, O.jsx)("img", {
|
|
234
|
+
className: "sid-l-space-top-md sid-barcode",
|
|
235
|
+
alt: C,
|
|
236
|
+
src: m(s, "rewardCode", e)
|
|
237
|
+
}, e))
|
|
201
238
|
}),
|
|
202
239
|
/* @__PURE__ */ (0, O.jsx)("div", {
|
|
203
|
-
className:
|
|
240
|
+
className: `sid-footer sid-success-footer sid-l-horz-center ${w ? "sid-l-space-top-md" : "sid-l-space-top-lg"}`,
|
|
204
241
|
children: /* @__PURE__ */ (0, O.jsx)(u, {
|
|
205
|
-
id: "step.success.
|
|
206
|
-
defaultMessage: "
|
|
207
|
-
tagName: "p"
|
|
242
|
+
id: "step.success.emailNotification",
|
|
243
|
+
defaultMessage: "We have sent you a confirmation email with redemption instructions. Look for the email from {email}.",
|
|
244
|
+
tagName: "p",
|
|
245
|
+
values: { email: "verify@sheerid.com" }
|
|
208
246
|
})
|
|
209
|
-
})
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
children: /* @__PURE__ */ (0, O.jsx)(b, {
|
|
221
|
-
textToCopy: C,
|
|
222
|
-
notificationText: /* @__PURE__ */ (0, O.jsx)(u, {
|
|
223
|
-
id: "copied",
|
|
224
|
-
defaultMessage: "Copied"
|
|
225
|
-
}),
|
|
226
|
-
children: /* @__PURE__ */ (0, O.jsx)(u, {
|
|
227
|
-
id: "step.success.copyCouponCode",
|
|
228
|
-
defaultMessage: "Copy coupon code"
|
|
247
|
+
}),
|
|
248
|
+
S ? /* @__PURE__ */ (0, O.jsx)("div", {
|
|
249
|
+
className: "sid-submit sid-success-submit sid-l-space-top-md",
|
|
250
|
+
children: /* @__PURE__ */ (0, O.jsx)("button", {
|
|
251
|
+
type: "button",
|
|
252
|
+
onClick: () => k(l),
|
|
253
|
+
className: "sid-btn sid-success-redirect-btn sid-btn--dark",
|
|
254
|
+
children: /* @__PURE__ */ (0, O.jsx)(u, {
|
|
255
|
+
id: "step.success.redirectButtonText",
|
|
256
|
+
defaultMessage: "Continue"
|
|
257
|
+
})
|
|
229
258
|
})
|
|
230
|
-
})
|
|
231
|
-
|
|
232
|
-
className: "sid-l-space-top-md sid-barcode",
|
|
233
|
-
alt: C,
|
|
234
|
-
src: m(s, "rewardCode", e)
|
|
235
|
-
}, e))
|
|
236
|
-
}),
|
|
237
|
-
/* @__PURE__ */ (0, O.jsx)("div", {
|
|
238
|
-
className: `sid-footer sid-success-footer sid-l-horz-center ${w ? "sid-l-space-top-md" : "sid-l-space-top-lg"}`,
|
|
239
|
-
children: /* @__PURE__ */ (0, O.jsx)(u, {
|
|
240
|
-
id: "step.success.emailNotification",
|
|
241
|
-
defaultMessage: "We have sent you a confirmation email with redemption instructions. Look for the email from {email}.",
|
|
242
|
-
tagName: "p",
|
|
243
|
-
values: { email: "verify@sheerid.com" }
|
|
244
|
-
})
|
|
259
|
+
}) : ""
|
|
260
|
+
]
|
|
245
261
|
}),
|
|
246
|
-
S ? /* @__PURE__ */ (0, O.jsx)("div", {
|
|
247
|
-
className: "sid-submit sid-success-submit sid-l-space-top-md",
|
|
248
|
-
children: /* @__PURE__ */ (0, O.jsx)("button", {
|
|
249
|
-
type: "button",
|
|
250
|
-
onClick: () => k(l),
|
|
251
|
-
className: "sid-btn sid-success-redirect-btn sid-btn--dark",
|
|
252
|
-
children: /* @__PURE__ */ (0, O.jsx)(u, {
|
|
253
|
-
id: "step.success.redirectButtonText",
|
|
254
|
-
defaultMessage: "Continue"
|
|
255
|
-
})
|
|
256
|
-
})
|
|
257
|
-
}) : "",
|
|
258
262
|
/* @__PURE__ */ (0, O.jsx)("div", {
|
|
259
263
|
className: "sid-footer sid-success-verification-only-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text",
|
|
260
264
|
role: "contentinfo",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepSuccess-BTgPBEUH.js","names":[],"sources":["../../src/lib/installScript/utils.ts","../../src/lib/installScript/constants.ts","../../src/lib/installScript/iframe.ts","../../src/lib/installScript/affinity.ts","../../src/components/StepSuccess/StepSuccessComponent.tsx"],"sourcesContent":["export const fadeInElements = (elements: HTMLElement[]) => {\n elements.forEach((element: HTMLElement) => {\n element.classList.add(\"fade-in\");\n });\n};\n\nexport const removeElement = (element: HTMLElement, transitionTimeout: number) => {\n element.classList.remove(\"fade-in\");\n window.setTimeout(() => {\n document.body.style.overflow = \"\";\n element.parentNode.removeChild(element);\n }, transitionTimeout);\n};\n\nexport const getVerificationUrl = (url: string): string => {\n const newUrl = new URL(url);\n const parentUrl = new URL(window.location.href);\n\n // Combine query parameters from parent window and provided url.\n // If duplicates, provided url parameters supercede.\n parentUrl.searchParams.forEach((value, key) => {\n if (!newUrl.searchParams.has(key)) {\n newUrl.searchParams.set(key, value);\n }\n });\n\n return newUrl.href;\n};\n","const iframeClassNames = {\n INLINE_IFRAME_CONTENT: \"sid-inline-iframe\",\n MODAL_WRAPPER: \"sid-modal__wrapper\",\n MODAL_IFRAME: \"sid-modal__iframe\",\n OVERLAY: \"sid-modal__overlay\",\n CLOSE_BUTTON: \"sid-modal__close-button\",\n CLOSE_TEXT: \"sid-modal__close-text\",\n CLOSE_ICON: \"sid-modal__close-icon\",\n};\n\nexport const iframeTitle = \"SheerID Verification Form\";\n\nexport const iframeConstants = {\n CLASS_NAMES: iframeClassNames,\n DEFAULT_MOBILE_THRESHOLD_WIDTH: 620,\n MODAL_OPACITY_TRANSITION_PERIOD: 300,\n};\n","import { logger } from \"@jslib/shared/utils/logger\";\nimport { InstallTypes, type InstallType } from \"@jslib/shared/utils/getInstallType\";\n\nimport { QUERY_STRING_INSTALL_PAGE_URL, QUERY_STRING_INSTALL_TYPE } from \"../../constants\";\nimport { type InstallPageEvent } from \"../frames/frameMessages\";\nimport type { HookEvents, Options, PostMessageAction, ViewModel } from \"../types/types\";\nimport { EventEmitter } from \"../hooks/eventEmitter\";\n\nimport { getVerificationUrl } from \"./utils\";\nimport { iframeConstants as constants, iframeTitle } from \"./constants\";\n\nexport type IframeOptions = {\n className: string;\n title: string;\n};\n\nexport const DEFAULT_OPTIONS: IframeOptions = {\n className: constants.CLASS_NAMES.INLINE_IFRAME_CONTENT,\n title: iframeTitle,\n};\n\nexport const assertValidFunction = (candidate: Function) => {\n if (typeof candidate !== \"function\") {\n throw new Error(`Expected type \"function\", but received ${typeof candidate}`);\n }\n};\n\nclass Iframe extends EventEmitter<HookEvents> {\n containerElement: HTMLElement;\n\n verificationUrl: URL;\n\n isMobileDevice: boolean;\n\n iframe: HTMLIFrameElement;\n\n verificationIframeUid: string;\n\n locale: string;\n\n hasLoaded: boolean = false;\n\n onLoadEvents: Function[] = [];\n\n onCleanupEvents: (() => void)[] = [];\n\n installType: InstallType = InstallTypes.cdnInlineIframe;\n\n constructor(containerElement: HTMLElement, url: string) {\n super();\n\n if (Iframe.isValidHttpUrl(url)) {\n this.containerElement = containerElement;\n this.verificationUrl = new URL(getVerificationUrl(url));\n this.verificationIframeUid = Iframe.createUniqueId();\n } else {\n logger.error(\"Invalid URL. Provide a proper URL: https://example.com/\", \"iframe url\");\n }\n }\n\n cleanup(): void {\n this.onCleanupEvents.forEach((callback) => callback());\n }\n\n static createUniqueId(): string {\n return Math.random().toString(36).substr(2, 9);\n }\n\n static isValidHttpUrl(urlString: string): boolean {\n try {\n const url = new URL(urlString);\n return url.protocol === \"http:\" || url.protocol === \"https:\";\n } catch {\n return false;\n }\n }\n\n createIframe(options: IframeOptions): HTMLIFrameElement {\n this.iframe = document.createElement(\"iframe\");\n this.iframe.classList.add(options.className);\n this.iframe.title = options.title;\n this.iframe.src = this.getIframeUrl();\n this.iframe.allow = \"camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *\";\n this.iframe.onload = () => this.onLoad();\n return this.iframe;\n }\n\n getIframeUrl(): string {\n const url = new URL(this.verificationUrl);\n url.searchParams.set(\"verificationIframeUid\", this.verificationIframeUid);\n url.searchParams.set(QUERY_STRING_INSTALL_PAGE_URL, window.location.href);\n url.searchParams.set(QUERY_STRING_INSTALL_TYPE, this.installType);\n if (this.locale) {\n url.searchParams.set(\"locale\", this.locale);\n }\n return url.toString();\n }\n\n // If iFrame hasn't loaded yet, queue up the callback\n // otherwise call it immediately\n addOnLoadEvent(callback: Function) {\n try {\n assertValidFunction(callback);\n } catch (e) {\n logger.error(\"Invalid callback provided to iFrame.onLoad()\", \"iframe addOnLoadEvent\");\n return;\n }\n if (this.hasLoaded) {\n callback();\n } else {\n this.onLoadEvents.push(callback);\n }\n }\n\n onLoad() {\n this.hasLoaded = true;\n this.onLoadEvents.forEach((callback) => callback());\n }\n\n /**\n * Using this to add parent window message listeners gives us\n * - Event Cleanup for modals\n * - verification of origin, verificationIframeUid, and message data structure\n */\n addWindowMessageListener(actionCb: (action: PostMessageAction) => void): void {\n const listener = (ev: MessageEvent) => {\n if (this.verificationUrl.origin !== ev.origin) {\n return;\n }\n\n if (ev.data.verificationIframeUid !== this.verificationIframeUid) {\n return;\n }\n\n if (ev.data.action && ev.data.action.type) {\n actionCb(ev.data.action);\n } else if (ev.data.action && ev.data.height) {\n // Older versions of the jslib send the full action object as the message\n actionCb(ev.data);\n }\n };\n\n window.addEventListener(\"message\", listener);\n this.onCleanupEvents.push(() => window.removeEventListener(\"message\", listener));\n }\n\n addActionListener() {\n this.addWindowMessageListener((messageAction) => {\n if (messageAction.type === \"hook\") {\n this.emit(messageAction.hook.name, messageAction.hook.data);\n }\n\n if (\n (messageAction.action && messageAction.action === \"updateHeight\") ||\n messageAction.type === \"updateHeight\"\n ) {\n // UX-1129: If we are getting height updates, turn off scrolling for\n // the iframe. This prevents browsers (Safari in particular) from\n // re-wrapping because of different widths and constantly changing\n // it's own height. `scrolling = \"no\"` is deprecated, but supported in\n // all browsers and fixes the problem well.\n this.iframe.scrolling = \"no\";\n this.iframe.style.height = `${messageAction.height}px`;\n }\n });\n }\n\n setViewModel(viewModel: Partial<ViewModel> | ViewModel) {\n const message: InstallPageEvent = {\n action: \"setViewModel\",\n viewModel,\n };\n\n this.addOnLoadEvent(() => {\n this.iframe.contentWindow.postMessage(message, this.verificationUrl.origin);\n });\n }\n\n setOptions(options: Options) {\n const message: InstallPageEvent = {\n action: \"setOptions\",\n options,\n };\n\n // HC-1181: Special casing options.locale to set locale as as QSP if the frame hasn't fully loaded yet.\n // This causes a re-load, but in most cases would happen within milliseconds of the frame initialization.\n // It prevents the race conditions that were failing to set the locale properly on load.\n // If the associated playwright tests passes without this is can be removed.\n if (!this.hasLoaded && options.locale) {\n this.locale = options.locale;\n const newUrl = this.getIframeUrl();\n if (newUrl !== this.iframe.src) {\n this.iframe.src = newUrl;\n }\n }\n\n this.addOnLoadEvent(() => {\n this.iframe.contentWindow.postMessage(message, this.verificationUrl.origin);\n });\n }\n\n setInstallType(installType: InstallType) {\n this.installType = installType;\n }\n\n init(createIframe: boolean = true): void {\n if (createIframe) {\n this.createIframe(DEFAULT_OPTIONS);\n }\n\n this.addActionListener();\n this.containerElement.appendChild(this.iframe);\n }\n}\n\nexport default Iframe;\n","import type { PostMessageAction } from \"../types/types\";\n\nimport Iframe, { DEFAULT_OPTIONS, type IframeOptions } from \"./iframe\";\n\nexport const assertValidFunction = (candidate: Function) => {\n if (typeof candidate !== \"function\") {\n throw new Error(`Expected type \"function\", but received ${typeof candidate}`);\n }\n};\n\nclass AffinityIFrame extends Iframe {\n constructor(containerElement: HTMLElement, url: string) {\n super(containerElement, url);\n this.verificationUrl = new URL(this.getAffinityUrlWithUID(url));\n }\n\n static createUniqueId() {\n return Math.random().toString(36).substr(2, 9);\n }\n\n getAffinityUrlWithUID(url: string): string {\n const urlObj = new URL(url);\n urlObj.searchParams.set(\"affinityIframeUid\", this.verificationIframeUid);\n return urlObj.toString();\n }\n\n override addWindowMessageListener(actionCb: (action: PostMessageAction) => void): void {\n const listener = (ev: MessageEvent) => {\n if (this.verificationUrl.origin !== ev.origin) {\n return;\n }\n\n if (ev.data.affinityIframeUid !== this.verificationIframeUid) {\n return;\n }\n\n if (ev.data.action && ev.data.action.type) {\n actionCb(ev.data.action);\n }\n };\n\n window.addEventListener(\"message\", listener);\n this.onCleanupEvents.push(() => window.removeEventListener(\"message\", listener));\n }\n\n override createIframe(options: IframeOptions): HTMLIFrameElement {\n this.iframe = document.createElement(\"iframe\");\n this.iframe.classList.add(options.className);\n this.iframe.title = options.title;\n this.iframe.src = this.verificationUrl.href;\n this.iframe.allow = \"camera;microphone\";\n this.iframe.onload = () => this.onLoad();\n return this.iframe;\n }\n\n override init() {\n this.createIframe({ ...DEFAULT_OPTIONS, title: \"SheerID Affinity Offers\" });\n this.addActionListener();\n this.containerElement.appendChild(this.iframe);\n }\n}\n\nexport function loadAffinityIFrame(containerElement: HTMLElement, url: string): AffinityIFrame {\n const affinity = new AffinityIFrame(containerElement, url);\n affinity.init();\n return affinity;\n}\n\nexport default AffinityIFrame;\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { loadAffinityIFrame } from \"@/lib/installScript/affinity\";\n\nimport {\n type VerificationService,\n type SuccessResponse,\n type ConsumerInfoState,\n} from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getLocaleSafely } from \"../../lib/intl/intl\";\nimport { getRememberMeRedirectDestination } from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { getQueryOrOption } from \"../../lib/ServerApi/TestingRouteOverrides\";\nimport { QUERY_STRING_REMEMBER_ME_OVERRIDE } from \"../../constants\";\nimport { getOptions } from \"../../options/options\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\nimport { EventName, recordCTAClickEvent } from \"../../lib/GoogleAnalytics/ga\";\nimport { useFlag } from \"../FeatureFlags/hooks\";\n\ninterface StepSuccessProps {\n verificationService: VerificationService;\n}\n\nconst redirect = (redirectDestination: string, target: string = \"_top\") => {\n const win = window.open(redirectDestination, target);\n win.focus();\n};\n\nconst getAffinityBaseUrl = () => {\n const options = getOptions();\n const apiBaseUrl = options.restApi.serviceUrl;\n\n if (apiBaseUrl.includes(\"services.sheerid.com\") || apiBaseUrl.includes(\"my.sheerid.com\")) {\n return \"https://shr-id.com\";\n }\n\n return \"https://aa-preview.sheerid.net\";\n};\n\nconst StepSuccess = ({ verificationService }: StepSuccessProps) => {\n const { verificationResponse, programId, viewModel } = verificationService;\n const { verificationId, redirectUrl } = verificationResponse as SuccessResponse;\n const { config } = verificationService.programTheme;\n const affinityRef = React.useRef<HTMLDivElement>(null);\n const shouldHideIcon = useFlag(\"hc-my-sheer-id-theme-builder\");\n\n const showRedirect = Boolean(redirectUrl);\n const rewardCode = (verificationResponse as SuccessResponse).rewardCode || \"{rewardCode}\";\n const noCodeType = config.offerType === \"noCode\";\n\n const { rewardDisplay } = config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n const mockConsumerInfoState = getQueryOrOption(\n QUERY_STRING_REMEMBER_ME_OVERRIDE,\n ) as ConsumerInfoState;\n const consumerInfoState: ConsumerInfoState =\n mockConsumerInfoState || (verificationResponse as SuccessResponse).consumerInfoState;\n const showRememberMeFooter =\n consumerInfoState === \"consumerNotFound\" ||\n consumerInfoState === \"consumerFoundNewFieldsAvailable\";\n\n const locale = getLocaleSafely(viewModel, verificationResponse);\n\n const handleOnRedirect = () => {\n recordCTAClickEvent(EventName.SUCCESS_REDIRECT_CLICKED, {\n programId,\n locale,\n verificationId,\n });\n\n redirect(getRememberMeRedirectDestination(locale, programId, verificationId), \"_blank\");\n };\n\n React.useEffect(() => {\n // Load the affinity widget if enabled\n if (affinityRef.current) {\n affinityRef.current.innerHTML = \"\";\n loadAffinityIFrame(\n affinityRef.current,\n `${getAffinityBaseUrl()}/affinity/${locale}/${programId}/${verificationId}`,\n );\n }\n }, [affinityRef, programId, verificationId, locale]);\n\n return (\n <div id=\"sid-step-success\" className=\"sid-success-container sid-l-container\">\n <div role=\"main\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-success-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n !shouldHideIcon && (\n <img\n className=\"sid-success-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg\"\n />\n )\n }\n />\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.success.title\"\n defaultMessage=\"Success! You've been verified.\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.success.subtitle\"\n defaultMessage=\"You are now eligible for this special offer.\"\n tagName=\"p\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={rewardCode}\n src={getBarcodeUrl(verificationId, \"rewardCode\", displayType)}\n />\n );\n return (\n <div key={displayType}>\n <div\n className=\"sid-reward-code sid-l-space-top-md sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {rewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={rewardCode}\n notificationText={\n <FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />\n }\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy coupon code\"\n />\n </CopyToClipboard>\n </div>\n </div>\n );\n })}\n </div>\n )}\n\n <div\n className={`sid-footer sid-success-footer sid-l-horz-center ${\n noCodeType ? \"sid-l-space-top-md\" : \"sid-l-space-top-lg\"\n }`}\n >\n <FormattedHTMLMessage\n id=\"step.success.emailNotification\"\n defaultMessage=\"We have sent you a confirmation email with redemption instructions. Look for the email from {email}.\"\n tagName=\"p\"\n values={{ email: \"verify@sheerid.com\" }}\n />\n </div>\n\n {showRedirect ? (\n <div className=\"sid-submit sid-success-submit sid-l-space-top-md\">\n <button\n type=\"button\"\n onClick={() => redirect(redirectUrl)}\n className=\"sid-btn sid-success-redirect-btn sid-btn--dark\"\n >\n <FormattedHTMLMessage\n id=\"step.success.redirectButtonText\"\n defaultMessage=\"Continue\"\n />\n </button>\n </div>\n ) : (\n \"\"\n )}\n </div>\n\n <div\n className=\"sid-footer sid-success-verification-only-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.verificationOnly\"\n defaultMessage={`\n SheerID handles verification only.\n Now that you've been approved, please direct all questions about the\n promotion terms to {companyName} customer service.\n `}\n values={{ companyName }}\n tagName=\"p\"\n />\n )}\n </FormattedHTMLMessage>\n </div>\n\n {verificationService.programTheme.affinityProgramEnabled && (\n <div\n ref={affinityRef}\n id=\"sid-affinity-iframe\"\n className=\"sid-affinity-container sid-l-full-width sid-l-space-top-lg\"\n />\n )}\n\n {showRememberMeFooter && (\n <div className=\"sid-remember-me-footer-container\">\n <div className=\"sid-remember-me-title\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.title\"\n defaultMessage=\"Save your info for 1-click verification\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.title\"\n defaultMessage=\"Update Your Profile\"\n />\n )}\n </div>\n <div className=\"sid-remember-me-description\">\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.description\"\n defaultMessage=\"Get faster access to future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n ) : (\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.description\"\n defaultMessage=\"Save new info for future offers with {companyName} and other brands using SheerID's Remember Me service.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n )}\n </div>\n <button\n type=\"button\"\n onClick={handleOnRedirect}\n className=\"sid-btn sid-remember-me-redirect-btn\"\n >\n {consumerInfoState === \"consumerNotFound\" ? (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerNotFound.button\"\n defaultMessage=\"Enroll Now\"\n />\n ) : (\n <FormattedHTMLMessage\n id=\"step.success.rememberMe.consumerFound.button\"\n defaultMessage=\"Save to Remember Me\"\n />\n )}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nexport const StepSuccessComponent = StepSuccess;\n"],"mappings":";;;;;;;;;;;mCAcA,KAAA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