@sheerid/jslib 2.296.0 → 2.297.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 +37 -37
- package/chunk/{AddressComponent-D35t0wuk.js → AddressComponent-0k1NF_KY.js} +5 -5
- package/chunk/{AddressComponent-BfmMdKRk.js.map → AddressComponent-0k1NF_KY.js.map} +1 -1
- package/chunk/{AddressComponent-BfmMdKRk.js → AddressComponent-CdwQsL7v.js} +5 -5
- package/chunk/{AddressComponent-D35t0wuk.js.map → AddressComponent-CdwQsL7v.js.map} +1 -1
- package/chunk/AnnouncingHeader-CnV2m0Ak.js +4 -4
- package/chunk/AnnouncingHeader-zH7WLU2-.js +4 -4
- package/chunk/{BirthDateComponent-CpOFqU8H.js → BirthDateComponent-CHHstyyj.js} +5 -5
- package/chunk/{BirthDateComponent-CTKl9PbC.js.map → BirthDateComponent-CHHstyyj.js.map} +1 -1
- package/chunk/{BirthDateComponent-CTKl9PbC.js → BirthDateComponent-Dvb6lKmI.js} +5 -5
- package/chunk/{BirthDateComponent-CpOFqU8H.js.map → BirthDateComponent-Dvb6lKmI.js.map} +1 -1
- package/chunk/{CaptchaComponent-hjpjrO_P.js → CaptchaComponent-DbPdhlAS.js} +8 -8
- package/chunk/{CaptchaComponent-BJZ9V_pH.js.map → CaptchaComponent-DbPdhlAS.js.map} +1 -1
- package/chunk/{CaptchaComponent-BJZ9V_pH.js → CaptchaComponent-DozS1WnN.js} +8 -8
- package/chunk/{CaptchaComponent-hjpjrO_P.js.map → CaptchaComponent-DozS1WnN.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-lntDT1u0.js → ChangeLocaleComponent-BCSP6utA.js} +7 -7
- package/chunk/{ChangeLocaleComponent-Blkp6RPU.js.map → ChangeLocaleComponent-BCSP6utA.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Blkp6RPU.js → ChangeLocaleComponent-HFXDiCM-.js} +7 -7
- package/chunk/{ChangeLocaleComponent-lntDT1u0.js.map → ChangeLocaleComponent-HFXDiCM-.js.map} +1 -1
- package/chunk/{City-D9gqlTjx.js → City-CfXPJin8.js} +5 -5
- package/chunk/{City-B1Su4Q-3.js.map → City-CfXPJin8.js.map} +1 -1
- package/chunk/{City-B1Su4Q-3.js → City-DS4thSuO.js} +5 -5
- package/chunk/{City-D9gqlTjx.js.map → City-DS4thSuO.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CSI45Lxy.js → CollegeNameComponent-C-jBNGzt.js} +7 -7
- package/chunk/{CollegeNameComponent-CSI45Lxy.js.map → CollegeNameComponent-C-jBNGzt.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DkbR_G-h.js → CollegeNameComponent-uWtQskEa.js} +7 -7
- package/chunk/{CollegeNameComponent-DkbR_G-h.js.map → CollegeNameComponent-uWtQskEa.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BdrpxpHJ.js +4 -4
- package/chunk/CopyToClipboardComponent-Dm3-3x4b.js +4 -4
- package/chunk/{CountryComponentWrapper-F2GH1MuK.js → CountryComponentWrapper-DMK4mXyj.js} +7 -7
- package/chunk/{CountryComponentWrapper-CCJkL-BP.js.map → CountryComponentWrapper-DMK4mXyj.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CCJkL-BP.js → CountryComponentWrapper-u1uEGSoo.js} +7 -7
- package/chunk/{CountryComponentWrapper-F2GH1MuK.js.map → CountryComponentWrapper-u1uEGSoo.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CiE-h8-V.js → DischargeDateComponent-ByMd4z06.js} +8 -8
- package/chunk/{DischargeDateComponent-CiE-h8-V.js.map → DischargeDateComponent-ByMd4z06.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DiIr0PAb.js → DischargeDateComponent-CWm_rfrf.js} +8 -8
- package/chunk/{DischargeDateComponent-DiIr0PAb.js.map → DischargeDateComponent-CWm_rfrf.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent--ym3qzMT.js → DriverLicenseNumberComponent-BH2PgBlR.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent--ym3qzMT.js.map → DriverLicenseNumberComponent-BH2PgBlR.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-Dy3-2Pmc.js → DriverLicenseNumberComponent-D-JmObdn.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-Dy3-2Pmc.js.map → DriverLicenseNumberComponent-D-JmObdn.js.map} +1 -1
- package/chunk/{EmailLoopPending-Bt7BajuC.js → EmailLoopPending-CIFjLuY_.js} +6 -6
- package/chunk/{EmailLoopPending-Bt7BajuC.js.map → EmailLoopPending-CIFjLuY_.js.map} +1 -1
- package/chunk/{EmailLoopPending-C2edcgLy.js → EmailLoopPending-pEFU9RKD.js} +6 -6
- package/chunk/{EmailLoopPending-C2edcgLy.js.map → EmailLoopPending-pEFU9RKD.js.map} +1 -1
- package/chunk/{ExtraMessage-Cob9qW6m.js → ExtraMessage-CXxx3n3y.js} +5 -5
- package/chunk/{ExtraMessage-Cob9qW6m.js.map → ExtraMessage-CXxx3n3y.js.map} +1 -1
- package/chunk/{ExtraMessage-wekuxzBu.js → ExtraMessage-wNLR13qq.js} +5 -5
- package/chunk/{ExtraMessage-wekuxzBu.js.map → ExtraMessage-wNLR13qq.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-Al8r6Qm9.js → FirstResponderOrganizationComponent-hF8jNkY-.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-Al8r6Qm9.js.map → FirstResponderOrganizationComponent-hF8jNkY-.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BO-TvISL.js → FirstResponderOrganizationComponent-ndZeO7z0.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-BO-TvISL.js.map → FirstResponderOrganizationComponent-ndZeO7z0.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Dv55bWvn.js → FormFieldInputSelect-CqFLZK6n.js} +5 -5
- package/chunk/{FormFieldInputSelect-DR3EfH0r.js.map → FormFieldInputSelect-CqFLZK6n.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DR3EfH0r.js → FormFieldInputSelect-DmHsyDSa.js} +5 -5
- package/chunk/{FormFieldInputSelect-Dv55bWvn.js.map → FormFieldInputSelect-DmHsyDSa.js.map} +1 -1
- package/chunk/FormFieldLayout-D1tb5nAu.js +4 -4
- package/chunk/FormFieldLayout-Dt_dMiDh.js +4 -4
- package/chunk/FormFieldText-BU2NBm1H.js +4 -4
- package/chunk/FormFieldText-CsFISbyw.js +4 -4
- package/chunk/{FormFieldTypeahead-eRU9B5Ku.js → FormFieldTypeahead-C_leSJVU.js} +7 -7
- package/chunk/{FormFieldTypeahead-eRU9B5Ku.js.map → FormFieldTypeahead-C_leSJVU.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BdDdwhLS.js → FormFieldTypeahead-D7JwAbCt.js} +7 -7
- package/chunk/{FormFieldTypeahead-BdDdwhLS.js.map → FormFieldTypeahead-D7JwAbCt.js.map} +1 -1
- package/chunk/{FormFooterComponent-CP5Igxpo.js → FormFooterComponent-CjKa0nmR.js} +8 -8
- package/chunk/{FormFooterComponent-CP5Igxpo.js.map → FormFooterComponent-CjKa0nmR.js.map} +1 -1
- package/chunk/{FormFooterComponent-CmpIRI0d.js → FormFooterComponent-Hqjhhq4x.js} +8 -8
- package/chunk/{FormFooterComponent-CmpIRI0d.js.map → FormFooterComponent-Hqjhhq4x.js.map} +1 -1
- package/chunk/{FormSelectChoice-CqsrGoB5.js → FormSelectChoice-8y034X39.js} +6 -6
- package/chunk/{FormSelectChoice-BzH4Y9DK.js.map → FormSelectChoice-8y034X39.js.map} +1 -1
- package/chunk/{FormSelectChoice-BzH4Y9DK.js → FormSelectChoice-D3vZ9YLa.js} +6 -6
- package/chunk/{FormSelectChoice-CqsrGoB5.js.map → FormSelectChoice-D3vZ9YLa.js.map} +1 -1
- package/chunk/InputText-CuBi-ytU.js +4 -4
- package/chunk/InputText-DMztCQmi.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-De1NTvgs.js → LicensedProfessionalOrganizationComponent-BwVTep9P.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-CS1-HJ1C.js.map → LicensedProfessionalOrganizationComponent-BwVTep9P.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CS1-HJ1C.js → LicensedProfessionalOrganizationComponent-Ws1z-TNj.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-De1NTvgs.js.map → LicensedProfessionalOrganizationComponent-Ws1z-TNj.js.map} +1 -1
- package/chunk/{LogoComponent-jL4Rq6ZT.js → LogoComponent-CNDQdB3O.js} +5 -5
- package/chunk/{LogoComponent-DtnWbRII.js.map → LogoComponent-CNDQdB3O.js.map} +1 -1
- package/chunk/{LogoComponent-DtnWbRII.js → LogoComponent-Dg9CMeQ7.js} +5 -5
- package/chunk/{LogoComponent-jL4Rq6ZT.js.map → LogoComponent-Dg9CMeQ7.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Dc4HYfr1.js → LowIncomeOrganizationComponent-B5HBYyEd.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-xwq7_FKf.js.map → LowIncomeOrganizationComponent-B5HBYyEd.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-xwq7_FKf.js → LowIncomeOrganizationComponent-BH6GOXvO.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-Dc4HYfr1.js.map → LowIncomeOrganizationComponent-BH6GOXvO.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DRwIFnoi.js → MedicalProfessionalOrganizationComponent-Dl7Hiief.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-DRwIFnoi.js.map → MedicalProfessionalOrganizationComponent-Dl7Hiief.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DgSm4cZi.js → MedicalProfessionalOrganizationComponent-rLwSwSVP.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-DgSm4cZi.js.map → MedicalProfessionalOrganizationComponent-rLwSwSVP.js.map} +1 -1
- package/chunk/{MemberIdComponent-CXJD--6p.js → MemberIdComponent-BS6_Ck5F.js} +5 -5
- package/chunk/{MemberIdComponent-CXJD--6p.js.map → MemberIdComponent-BS6_Ck5F.js.map} +1 -1
- package/chunk/{MemberIdComponent-NEg1mYJM.js → MemberIdComponent-Cl8SJqe1.js} +5 -5
- package/chunk/{MemberIdComponent-NEg1mYJM.js.map → MemberIdComponent-Cl8SJqe1.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-tzDKZgR_.js → MembershipOrganizationComponent-4fmNyvHc.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-Ppqk5QyR.js.map → MembershipOrganizationComponent-4fmNyvHc.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-Ppqk5QyR.js → MembershipOrganizationComponent-Bia4eOXq.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-tzDKZgR_.js.map → MembershipOrganizationComponent-Bia4eOXq.js.map} +1 -1
- package/chunk/{Message-C4qWuoA7.js → Message-BKx1mJx9.js} +5 -5
- package/chunk/{Message-C4qWuoA7.js.map → Message-BKx1mJx9.js.map} +1 -1
- package/chunk/{Message-CZskfqcI.js → Message-DrsL5cWg.js} +5 -5
- package/chunk/{Message-CZskfqcI.js.map → Message-DrsL5cWg.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-obiTgRFv.js → PersonalInfoStepSubmitButton-CEd1YF_s.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-DevIpS3M.js.map → PersonalInfoStepSubmitButton-CEd1YF_s.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-DevIpS3M.js → PersonalInfoStepSubmitButton-uJnMrhRD.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-obiTgRFv.js.map → PersonalInfoStepSubmitButton-uJnMrhRD.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-_LiPRLv0.js → PersonalInfoStepWrapper-BXYJWMhY.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-_LiPRLv0.js.map → PersonalInfoStepWrapper-BXYJWMhY.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-Bwy_EnUr.js → PersonalInfoStepWrapper-DBae9z3B.js} +32 -30
- package/chunk/PersonalInfoStepWrapper-DBae9z3B.js.map +1 -0
- package/chunk/{PostalCodeComponent-DE4FtHXn.js → PostalCodeComponent-C8lhzleL.js} +5 -5
- package/chunk/{PostalCodeComponent-BU3uUkz5.js.map → PostalCodeComponent-C8lhzleL.js.map} +1 -1
- package/chunk/{PostalCodeComponent-BU3uUkz5.js → PostalCodeComponent-htsoPASM.js} +5 -5
- package/chunk/{PostalCodeComponent-DE4FtHXn.js.map → PostalCodeComponent-htsoPASM.js.map} +1 -1
- package/chunk/{SSN-CiU8LUIC.js → SSN-C9UaWSOT.js} +5 -5
- package/chunk/{SSN-Bd7iEK0D.js.map → SSN-C9UaWSOT.js.map} +1 -1
- package/chunk/{SSN-Bd7iEK0D.js → SSN-CVQqNHlQ.js} +5 -5
- package/chunk/{SSN-CiU8LUIC.js.map → SSN-CVQqNHlQ.js.map} +1 -1
- package/chunk/{StateSelectComponent-Be_BuLYk.js → StateSelectComponent-B7ts5wz_.js} +7 -7
- package/chunk/{StateSelectComponent-BCHagpBG.js.map → StateSelectComponent-B7ts5wz_.js.map} +1 -1
- package/chunk/{StateSelectComponent-BCHagpBG.js → StateSelectComponent-F8_noHFk.js} +7 -7
- package/chunk/{StateSelectComponent-Be_BuLYk.js.map → StateSelectComponent-F8_noHFk.js.map} +1 -1
- package/chunk/{StatusComponent-CYTWVmt6.js → StatusComponent-CaMmhM9a.js} +6 -6
- package/chunk/{StatusComponent-CMoJS2Jl.js.map → StatusComponent-CaMmhM9a.js.map} +1 -1
- package/chunk/{StatusComponent-CMoJS2Jl.js → StatusComponent-CewDc6v7.js} +6 -6
- package/chunk/{StatusComponent-CYTWVmt6.js.map → StatusComponent-CewDc6v7.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BtZmkOMB.js → StepAgePersonalInfo-CAIDFrDE.js} +17 -17
- package/chunk/{StepAgePersonalInfo-BtZmkOMB.js.map → StepAgePersonalInfo-CAIDFrDE.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-D5RdoP-0.js → StepAgePersonalInfo-Dsq6eekA.js} +17 -17
- package/chunk/{StepAgePersonalInfo-D5RdoP-0.js.map → StepAgePersonalInfo-Dsq6eekA.js.map} +1 -1
- package/chunk/StepCard-DJR-l3sW.js +4 -4
- package/chunk/StepCard-wwTRGIhn.js +4 -4
- package/chunk/{StepCollectIdentifier-BkMWEbcs.js → StepCollectIdentifier--DcPBqzY.js} +6 -6
- package/chunk/{StepCollectIdentifier-DIHpPUyG.js.map → StepCollectIdentifier--DcPBqzY.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DIHpPUyG.js → StepCollectIdentifier-Ck4mVen9.js} +6 -6
- package/chunk/{StepCollectIdentifier-BkMWEbcs.js.map → StepCollectIdentifier-Ck4mVen9.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CL0bldgZ.js → StepCollectMilitaryPersonalInfoComponent-CoBXICwm.js} +21 -21
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CL0bldgZ.js.map → StepCollectMilitaryPersonalInfoComponent-CoBXICwm.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-on1o7u6X.js → StepCollectMilitaryPersonalInfoComponent-D6T97dgm.js} +21 -21
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-on1o7u6X.js.map → StepCollectMilitaryPersonalInfoComponent-D6T97dgm.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-D9uCpSl7.js → StepCollectPersonalInfo-Daz6gwsR.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-2_qDC_UX.js.map → StepCollectPersonalInfo-Daz6gwsR.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-2_qDC_UX.js → StepCollectPersonalInfo-DcLIZ7K7.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-D9uCpSl7.js.map → StepCollectPersonalInfo-DcLIZ7K7.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-BawnNriI.js +4 -4
- package/chunk/StepCompleteAuthentication-VpE4-5vs.js +4 -4
- package/chunk/{StepConsolation-CEEI3obU.js → StepConsolation-CByemu8y.js} +6 -6
- package/chunk/{StepConsolation-CEEI3obU.js.map → StepConsolation-CByemu8y.js.map} +1 -1
- package/chunk/{StepConsolation-CPHH5mJI.js → StepConsolation-VI5aE9Ff.js} +6 -6
- package/chunk/{StepConsolation-CPHH5mJI.js.map → StepConsolation-VI5aE9Ff.js.map} +1 -1
- package/chunk/{StepDocUpload-MkUIAN5u.js → StepDocUpload-B2Ato7tg.js} +7 -7
- package/chunk/{StepDocUpload-MkUIAN5u.js.map → StepDocUpload-B2Ato7tg.js.map} +1 -1
- package/chunk/{StepDocUpload-DbfG66DC.js → StepDocUpload-BHhuxyj8.js} +7 -7
- package/chunk/{StepDocUpload-DbfG66DC.js.map → StepDocUpload-BHhuxyj8.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-D2gKosYd.js → StepDriverLicensePersonalInfoComponent-C8acsDEU.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-D2gKosYd.js.map → StepDriverLicensePersonalInfoComponent-C8acsDEU.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-kJQTIw6I.js → StepDriverLicensePersonalInfoComponent-YQti7kE2.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-kJQTIw6I.js.map → StepDriverLicensePersonalInfoComponent-YQti7kE2.js.map} +1 -1
- package/chunk/{StepEmailLoop-B-kLgRUt.js → StepEmailLoop-7CKgLe_b.js} +7 -7
- package/chunk/{StepEmailLoop-3mxe4-A1.js.map → StepEmailLoop-7CKgLe_b.js.map} +1 -1
- package/chunk/{StepEmailLoop-3mxe4-A1.js → StepEmailLoop-DAcnY3JC.js} +7 -7
- package/chunk/{StepEmailLoop-B-kLgRUt.js.map → StepEmailLoop-DAcnY3JC.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DvOQsc4J.js → StepEmploymentPersonalInfo-CZcQrgZ1.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-CH3qSsU9.js.map → StepEmploymentPersonalInfo-CZcQrgZ1.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CH3qSsU9.js → StepEmploymentPersonalInfo-DVwyE-Yr.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-DvOQsc4J.js.map → StepEmploymentPersonalInfo-DVwyE-Yr.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CUU7noYw.js → StepFirstResponderPersonalInfo-Bj8MmUcv.js} +18 -18
- package/chunk/{StepFirstResponderPersonalInfo-CUU7noYw.js.map → StepFirstResponderPersonalInfo-Bj8MmUcv.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DIFcJEh2.js → StepFirstResponderPersonalInfo-iEfxgt18.js} +18 -18
- package/chunk/{StepFirstResponderPersonalInfo-DIFcJEh2.js.map → StepFirstResponderPersonalInfo-iEfxgt18.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-jdxI-psg.js → StepGeneralIdentityPersonalInfoComponent-B71tWz0y.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-6nOwJD32.js.map → StepGeneralIdentityPersonalInfoComponent-B71tWz0y.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-6nOwJD32.js → StepGeneralIdentityPersonalInfoComponent-BGkXLgCj.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-jdxI-psg.js.map → StepGeneralIdentityPersonalInfoComponent-BGkXLgCj.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Bf7F-60O.js → StepHybridIdentityPersonalInfoComponent-4IFVA64R.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Bf7F-60O.js.map → StepHybridIdentityPersonalInfoComponent-4IFVA64R.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C9L2Ke1K.js → StepHybridIdentityPersonalInfoComponent-BYH7Mblt.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-C9L2Ke1K.js.map → StepHybridIdentityPersonalInfoComponent-BYH7Mblt.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CAeac23M.js → StepIDCheckLoop-C_0Hefcj.js} +5 -5
- package/chunk/{StepIDCheckLoop-CAeac23M.js.map → StepIDCheckLoop-C_0Hefcj.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CCiosQ5Q.js → StepIDCheckLoop-ui0FC3b2.js} +5 -5
- package/chunk/{StepIDCheckLoop-CCiosQ5Q.js.map → StepIDCheckLoop-ui0FC3b2.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CQNbs_q4.js → StepIDCheckLoopOnfido-B3sipKmy.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-CQNbs_q4.js.map → StepIDCheckLoopOnfido-B3sipKmy.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-7dr0m35-.js → StepIDCheckLoopOnfido-Bz9Idbty.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-7dr0m35-.js.map → StepIDCheckLoopOnfido-Bz9Idbty.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DRa-5-fJ.js → StepIDCheckLoopRegula-C-c-2SdO.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-DRa-5-fJ.js.map → StepIDCheckLoopRegula-C-c-2SdO.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DyRVgrz6.js → StepIDCheckLoopRegula-CaGnqRzd.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-DyRVgrz6.js.map → StepIDCheckLoopRegula-CaGnqRzd.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-C9TLaEUo.js → StepLicensedProfessionalPersonalInfo-CDynSBlS.js} +18 -18
- package/chunk/{StepLicensedProfessionalPersonalInfo-2raRP_sC.js.map → StepLicensedProfessionalPersonalInfo-CDynSBlS.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-2raRP_sC.js → StepLicensedProfessionalPersonalInfo-CFI2NO-r.js} +18 -18
- package/chunk/{StepLicensedProfessionalPersonalInfo-C9TLaEUo.js.map → StepLicensedProfessionalPersonalInfo-CFI2NO-r.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-CriFm1p0.js → StepLowIncomePersonalInfo-DBMFpp9P.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-CriFm1p0.js.map → StepLowIncomePersonalInfo-DBMFpp9P.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-DUKc7Xzd.js → StepLowIncomePersonalInfo-Nlccep8k.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-DUKc7Xzd.js.map → StepLowIncomePersonalInfo-Nlccep8k.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BpskGst0.js → StepMedicalProfessionalPersonalInfo-CX8Kdi38.js} +19 -19
- package/chunk/{StepMedicalProfessionalPersonalInfo-BpskGst0.js.map → StepMedicalProfessionalPersonalInfo-CX8Kdi38.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BwQAKDQf.js → StepMedicalProfessionalPersonalInfo-D8mGJQE6.js} +19 -19
- package/chunk/{StepMedicalProfessionalPersonalInfo-BwQAKDQf.js.map → StepMedicalProfessionalPersonalInfo-D8mGJQE6.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-IZX2jT9o.js → StepMemberPersonalInfo-BH5mmkWH.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-CPIKj6JS.js.map → StepMemberPersonalInfo-BH5mmkWH.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CPIKj6JS.js → StepMemberPersonalInfo-ZYOKLtlx.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-IZX2jT9o.js.map → StepMemberPersonalInfo-ZYOKLtlx.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DkZFK0Y5.js → StepMoverPersonalInfo-C0QTvowi.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-DkZFK0Y5.js.map → StepMoverPersonalInfo-C0QTvowi.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-QrDDJn9q.js → StepMoverPersonalInfo-CWVP0DZ3.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-QrDDJn9q.js.map → StepMoverPersonalInfo-CWVP0DZ3.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DB8XcUxS.js → StepOverrideComponent-26qhuhSy.js} +7 -7
- package/chunk/{StepOverrideComponent-DB8XcUxS.js.map → StepOverrideComponent-26qhuhSy.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DQK02UCn.js → StepOverrideComponent-rGX9RQRf.js} +7 -7
- package/chunk/{StepOverrideComponent-DQK02UCn.js.map → StepOverrideComponent-rGX9RQRf.js.map} +1 -1
- package/chunk/{StepSMSLoop-Dd-TlY0x.js → StepSMSLoop-8bT0iiE_.js} +5 -5
- package/chunk/{StepSMSLoop-DHcrK3zK.js.map → StepSMSLoop-8bT0iiE_.js.map} +1 -1
- package/chunk/{StepSMSLoop-DHcrK3zK.js → StepSMSLoop-iU3B6jRs.js} +5 -5
- package/chunk/{StepSMSLoop-Dd-TlY0x.js.map → StepSMSLoop-iU3B6jRs.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-tQeL8BPo.js → StepSocialSecurityNumber-BmdQcIkT.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-eisNq5zV.js.map → StepSocialSecurityNumber-BmdQcIkT.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-eisNq5zV.js → StepSocialSecurityNumber-TR-_BNnt.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-tQeL8BPo.js.map → StepSocialSecurityNumber-TR-_BNnt.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BXKx-RjY.js → StepStudentPersonalInfo-BF5qeKVa.js} +16 -16
- package/chunk/{StepStudentPersonalInfo-BXKx-RjY.js.map → StepStudentPersonalInfo-BF5qeKVa.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-xDQaapez.js → StepStudentPersonalInfo-BWv-PNZV.js} +16 -16
- package/chunk/{StepStudentPersonalInfo-xDQaapez.js.map → StepStudentPersonalInfo-BWv-PNZV.js.map} +1 -1
- package/chunk/{StepSuccess-DVw4r-Tw.js → StepSuccess-D1-3dfsQ.js} +6 -6
- package/chunk/{StepSuccess-Buungtjz.js.map → StepSuccess-D1-3dfsQ.js.map} +1 -1
- package/chunk/{StepSuccess-Buungtjz.js → StepSuccess-DipyaSAH.js} +6 -6
- package/chunk/{StepSuccess-DVw4r-Tw.js.map → StepSuccess-DipyaSAH.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-D1JAJHN3.js → StepTeacherPersonalInfo-CXr8cpYW.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-CDDemAKT.js.map → StepTeacherPersonalInfo-CXr8cpYW.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CDDemAKT.js → StepTeacherPersonalInfo-DlzNmBFm.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-D1JAJHN3.js.map → StepTeacherPersonalInfo-DlzNmBFm.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-DRXDnv-p.js → TeacherSchoolComponent-DRKDABFa.js} +7 -7
- package/chunk/{TeacherSchoolComponent-BNIskQFr.js.map → TeacherSchoolComponent-DRKDABFa.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BNIskQFr.js → TeacherSchoolComponent-DXUQHUIt.js} +7 -7
- package/chunk/{TeacherSchoolComponent-DRXDnv-p.js.map → TeacherSchoolComponent-DXUQHUIt.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BbCY31VT.js +4 -4
- package/chunk/TestingRouteOverrides-DEu_4afz.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-CB5rauS5.js +4 -4
- package/chunk/countryUtils-DEqx7X1F.js +12 -0
- package/chunk/{countryUtils-CxM4Re8c.js.map → countryUtils-DEqx7X1F.js.map} +1 -1
- package/chunk/{countryUtils-CxM4Re8c.js → countryUtils-DGhKkc1P.js} +5 -5
- package/chunk/{countryUtils-R_5wICVb.js.map → countryUtils-DGhKkc1P.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +4 -4
- package/chunk/da-DwrVoxto.js +4 -4
- package/chunk/de-IWGZLhgY.js +4 -4
- package/chunk/{downshift.esm-BbR19lWJ.js → downshift.esm-Be63aT-_.js} +5 -5
- package/chunk/{downshift.esm-BbR19lWJ.js.map → downshift.esm-Be63aT-_.js.map} +1 -1
- package/chunk/{downshift.esm-Cy3QHO2k.js → downshift.esm-D_RaSClH.js} +5 -5
- package/chunk/{downshift.esm-Cy3QHO2k.js.map → downshift.esm-D_RaSClH.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-B034wwK_.js +4 -4
- package/chunk/empties-lrCPA-9V.js +4 -4
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/hooks-DtYEjP2m.js +4 -4
- package/chunk/hooks-QCx6OZlb.js +4 -4
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/intl-DYOqmiaL.js +4 -4
- package/chunk/is-CvmKEON9.js +4 -4
- package/chunk/it-CnmveGgC.js +4 -4
- package/chunk/iw-DFUYHkxF.js +4 -4
- package/chunk/ja-CjVb2tWW.js +4 -4
- package/chunk/jsx-runtime-DQO6A867.js +4 -4
- package/chunk/jsx-runtime-DtApx7WX.js +4 -4
- package/chunk/kk-Dvz4nK6K.js +4 -4
- package/chunk/ko-DzOqBMGC.js +4 -4
- package/chunk/lo-C2WPq55d.js +4 -4
- package/chunk/lt-BSDYvjTF.js +4 -4
- package/chunk/lv-CefDPT-M.js +4 -4
- package/chunk/mockProgramTheme-CBqgtg7A.js +4 -4
- package/chunk/mocks-BQNtP7qW.js +4 -4
- package/chunk/mocks-DC7WJf5c.js +4 -4
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/options-DsRV5fwh.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-Bs9weQ3i.js → programThemeGetters-BlMeCwyW.js} +5 -5
- package/chunk/{programThemeGetters-Bs9weQ3i.js.map → programThemeGetters-BlMeCwyW.js.map} +1 -1
- package/chunk/{programThemeGetters-CHcPOXgA.js → programThemeGetters-zfJ5vzCG.js} +5 -5
- package/chunk/{programThemeGetters-CHcPOXgA.js.map → programThemeGetters-zfJ5vzCG.js.map} +1 -1
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/stepComponentHelpers-C-r8qzyD.js +4 -4
- package/chunk/stepComponentHelpers-CDj3don1.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-DKrY7rlv.js → useCollectFieldsEndpoint-mH1ldSpQ.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-DKrY7rlv.js.map → useCollectFieldsEndpoint-mH1ldSpQ.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-Bj5AYf3g.js → useCollectFieldsEndpoint-nnWmHVWb.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-Bj5AYf3g.js.map → useCollectFieldsEndpoint-nnWmHVWb.js.map} +1 -1
- package/chunk/useMetrics-D6LU4c5p.js +4 -4
- package/chunk/useMetrics-DGl7Sxfe.js +4 -4
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +939 -937
- package/sheerid.js.map +1 -1
- package/chunk/PersonalInfoStepWrapper-Bwy_EnUr.js.map +0 -1
- package/chunk/countryUtils-R_5wICVb.js +0 -12
package/sheerid.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Thu Sep 24 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.297.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1790284263507
|
|
5
|
+
* BUILD_DATE: Thu Sep 24 2026 21:11:03 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 9315c638699c60e5622b9f878abfccad2a009219
|
|
7
7
|
*/
|
|
8
|
-
import { D as e, Dt as t, E as n, O as r, S as i, T as a, _t as o, at as s, b as c, c as l, d as u, dt as d, g as f, h as p, i as m, kt as h, l as g, lt as _, m as v, n as y, p as b, r as x, s as S, t as C, u as w, ut as T, y as
|
|
9
|
-
import { i as
|
|
10
|
-
import { A as
|
|
11
|
-
import { S as
|
|
12
|
-
import { a as
|
|
13
|
-
import { S as
|
|
14
|
-
import { C as
|
|
15
|
-
import { a as
|
|
16
|
-
import { i as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
8
|
+
import { D as e, Dt as t, E as n, O as r, S as i, T as a, _t as o, at as s, b as c, c as l, d as u, dt as d, g as f, h as p, i as m, kt as h, l as g, lt as _, m as v, n as y, p as b, r as x, s as S, t as C, u as w, ut as T, y as E } from "./chunk/options-DsRV5fwh.js";
|
|
9
|
+
import { i as D, n as O, s as k, t as A } from "./chunk/jsx-runtime-DQO6A867.js";
|
|
10
|
+
import { A as ee, D as j, O as M, P as te, S as ne, T as re, a as ie, c as ae, d as oe, f as se, g as ce, i as le, k as ue, m as de, o as fe, p as pe, r as me, s as he, t as N, u as ge, w as _e, x as ve } from "./chunk/Message-BKx1mJx9.js";
|
|
11
|
+
import { S as P, b as F, h as ye, x as be } from "./chunk/runtimeTypes-B2AGNJMT.js";
|
|
12
|
+
import { a as xe, i as Se, r as Ce, s as we, t as Te } from "./chunk/TestingRouteOverrides-DEu_4afz.js";
|
|
13
|
+
import { S as Ee, T as De, i as Oe, w as ke } from "./chunk/programThemeGetters-zfJ5vzCG.js";
|
|
14
|
+
import { C as Ae, S as je, _ as Me, a as Ne, b as Pe, c as Fe, d as Ie, f as Le, g as Re, h as ze, i as Be, l as Ve, m as He, n as Ue, o as We, p as Ge, r as Ke, s as qe, t as Je, u as Ye, v as Xe, w as Ze, x as Qe, y as $e } from "./chunk/FormFooterComponent-CjKa0nmR.js";
|
|
15
|
+
import { a as et, i as tt, n as nt, r as rt, t as it } from "./chunk/hooks-QCx6OZlb.js";
|
|
16
|
+
import { i as at, s as ot, t as st } from "./chunk/refs-Mq0rtW9K.js";
|
|
17
|
+
import { t as ct } from "./chunk/LogoComponent-Dg9CMeQ7.js";
|
|
18
|
+
import { t as lt } from "./chunk/strings-DWLVdUcm.js";
|
|
19
|
+
import { t as ut } from "./chunk/AnnouncingHeader-zH7WLU2-.js";
|
|
20
20
|
//#region ../node_modules/react-i18next/dist/es/I18nextProvider.js
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
let r = (0,
|
|
21
|
+
var I = /* @__PURE__ */ h(k());
|
|
22
|
+
function dt({ i18n: e, defaultNS: t, children: n }) {
|
|
23
|
+
let r = (0, I.useMemo)(() => ({
|
|
24
24
|
i18n: e,
|
|
25
25
|
defaultNS: t
|
|
26
26
|
}), [e, t]);
|
|
27
|
-
return (0,
|
|
27
|
+
return (0, I.createElement)(M.Provider, { value: r }, n);
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/components/LoadingSpinner/LoadingSpinnerComponent.tsx
|
|
31
|
-
var
|
|
31
|
+
var ft = /* @__PURE__ */ h(te(), 1), pt = /* @__PURE__ */ h(T(), 1), L = A(), mt = () => /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
32
32
|
className: "sid-spinner",
|
|
33
33
|
"data-testid": "sid-spinner",
|
|
34
34
|
children: [
|
|
35
|
-
/* @__PURE__ */ (0,
|
|
36
|
-
/* @__PURE__ */ (0,
|
|
37
|
-
/* @__PURE__ */ (0,
|
|
38
|
-
/* @__PURE__ */ (0,
|
|
35
|
+
/* @__PURE__ */ (0, L.jsx)("div", { className: "sid-spinner__frame" }),
|
|
36
|
+
/* @__PURE__ */ (0, L.jsx)("div", { className: "sid-spinner__frame" }),
|
|
37
|
+
/* @__PURE__ */ (0, L.jsx)("div", { className: "sid-spinner__frame" }),
|
|
38
|
+
/* @__PURE__ */ (0, L.jsx)("div", { className: "sid-spinner__frame" })
|
|
39
39
|
]
|
|
40
|
-
}),
|
|
40
|
+
}), ht = ({ step: e }) => /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
41
41
|
className: "sid-loading-screen__message",
|
|
42
|
-
children: [
|
|
42
|
+
children: [be(e) && /* @__PURE__ */ (0, L.jsx)("div", {
|
|
43
43
|
className: "sid-loading-screen__message-header",
|
|
44
44
|
role: "alert",
|
|
45
|
-
children: /* @__PURE__ */ (0,
|
|
45
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
46
46
|
id: "step.personalInfo.verifyingTitle",
|
|
47
47
|
defaultMessage: "Verifying your status"
|
|
48
48
|
})
|
|
49
|
-
}), /* @__PURE__ */ (0,
|
|
49
|
+
}), /* @__PURE__ */ (0, L.jsx)("div", {
|
|
50
50
|
className: "sid-loading-screen__message-subhead",
|
|
51
|
-
children: /* @__PURE__ */ (0,
|
|
51
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
52
52
|
id: "step.personalInfo.verifyingSubtitle",
|
|
53
53
|
defaultMessage: "This should only take a minute"
|
|
54
54
|
})
|
|
55
55
|
})]
|
|
56
|
-
}),
|
|
56
|
+
}), gt = ({ step: e = Te() }) => /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
57
57
|
className: "sid-loading-screen",
|
|
58
|
-
children: [/* @__PURE__ */ (0,
|
|
59
|
-
}),
|
|
58
|
+
children: [/* @__PURE__ */ (0, L.jsx)(mt, {}), e && /* @__PURE__ */ (0, L.jsx)(ht, { step: e })]
|
|
59
|
+
}), _t = /* @__PURE__ */ t(((e, t) => {
|
|
60
60
|
var n, r = n = {
|
|
61
61
|
_regexEscape: /([\.\*\+\^\$\[\]\\\(\)\|\{\}\,\-\:\?])/g,
|
|
62
62
|
_regexParseLocale: /^([a-zA-Z]*)([_\-a-zA-Z]*)$/,
|
|
@@ -123,13 +123,13 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
123
123
|
enumerable: !0,
|
|
124
124
|
configurable: !1
|
|
125
125
|
}), t.exports = r;
|
|
126
|
-
})),
|
|
127
|
-
var n =
|
|
126
|
+
})), vt = /* @__PURE__ */ t(((e, t) => {
|
|
127
|
+
var n = _t();
|
|
128
128
|
t.exports = {
|
|
129
129
|
isRtlLang: n.isRtlLang,
|
|
130
130
|
getLangDir: n.getLangDir
|
|
131
131
|
};
|
|
132
|
-
})),
|
|
132
|
+
})), yt = /* @__PURE__ */ h(j(), 1), bt = /* @__PURE__ */ h(vt(), 1), R = {
|
|
133
133
|
landingBackgroundColor: "#fff",
|
|
134
134
|
landingPrimaryFontColor: "#000",
|
|
135
135
|
landingBackgroundImage: "none",
|
|
@@ -143,7 +143,7 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
143
143
|
formFont: "var(--sheerid-font-family-sans)",
|
|
144
144
|
cssVariables: null,
|
|
145
145
|
customStyles: null
|
|
146
|
-
},
|
|
146
|
+
}, xt = I.createContext(R), z = {
|
|
147
147
|
landingBackgroundColor: "--sheerid-landing-background-color",
|
|
148
148
|
landingPrimaryFontColor: "--sheerid-landing-primary-font-color",
|
|
149
149
|
landingBackgroundImage: "--sheerid-landing-background-image-url",
|
|
@@ -157,7 +157,7 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
157
157
|
formFont: "--sheerid-font-family-body",
|
|
158
158
|
cssVariables: null,
|
|
159
159
|
customStyles: null
|
|
160
|
-
},
|
|
160
|
+
}, St = {
|
|
161
161
|
"--sheerid-color-fg-05": {
|
|
162
162
|
from: "--sheerid-color-bg",
|
|
163
163
|
to: "--sheerid-color-fg",
|
|
@@ -268,25 +268,25 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
268
268
|
to: "--sheerid-color-fg",
|
|
269
269
|
percentage: 3
|
|
270
270
|
}
|
|
271
|
-
},
|
|
272
|
-
let r = (e) => window.self === window.top ? e.replace(/body,/g, "").replace(/label,/g, "").replace(/button\[type=('|")submit('|")\]\s*?\{[\s\S]*?\}\n?/g, "").replace(/a:link,\s+a:visited,\s+a:hover,\s+a:active\s*?\{[\s\S]*?\}\n?/g, "").replace(/h1\s*?\{[\s\S]*?\}\n?/g, "") : e, i = t || e?.customCss || "", a = i ? r(i) : null, o = e?.landingPage, s = o?.backgroundColor ||
|
|
273
|
-
[
|
|
274
|
-
[
|
|
275
|
-
[
|
|
276
|
-
[
|
|
277
|
-
[
|
|
278
|
-
[
|
|
279
|
-
[
|
|
280
|
-
[
|
|
281
|
-
[
|
|
282
|
-
[
|
|
283
|
-
[
|
|
284
|
-
...Object.entries(
|
|
271
|
+
}, Ct = ({ themeChoices: e, customCssFromOptions: t, children: n }) => {
|
|
272
|
+
let r = (e) => window.self === window.top ? e.replace(/body,/g, "").replace(/label,/g, "").replace(/button\[type=('|")submit('|")\]\s*?\{[\s\S]*?\}\n?/g, "").replace(/a:link,\s+a:visited,\s+a:hover,\s+a:active\s*?\{[\s\S]*?\}\n?/g, "").replace(/h1\s*?\{[\s\S]*?\}\n?/g, "") : e, i = t || e?.customCss || "", a = i ? r(i) : null, o = e?.landingPage, s = o?.backgroundColor || R.landingBackgroundColor, c = o?.primaryFontColor || R.landingPrimaryFontColor, l = o?.backgroundImageUrl || R.landingBackgroundImage, u = e?.backgroundColor || R.formBackgroundColor, d = e?.primaryFontColor || R.formPrimaryFontColor, f = e?.buttonColor || R.formButtonColor, p = e?.buttonFontColor || R.formButtonFontColor, m = e?.linkColor || R.formLinkColor, h = e?.h1FontColor || R.formH1FontColor, g = e?.helperFontColor || R.formHelperFontColor, _ = e?.font || R.formFont, v = {
|
|
273
|
+
[z.landingBackgroundColor]: s,
|
|
274
|
+
[z.landingPrimaryFontColor]: c,
|
|
275
|
+
[z.landingBackgroundImage]: l === R.landingBackgroundImage ? R.landingBackgroundImage : `url(${l})`,
|
|
276
|
+
[z.formBackgroundColor]: u,
|
|
277
|
+
[z.formPrimaryFontColor]: d,
|
|
278
|
+
[z.formButtonColor]: f,
|
|
279
|
+
[z.formButtonFontColor]: p,
|
|
280
|
+
[z.formLinkColor]: m,
|
|
281
|
+
[z.formH1FontColor]: h,
|
|
282
|
+
[z.formHelperFontColor]: g,
|
|
283
|
+
[z.formFont]: _ === R.formFont ? R.formFont : `${_}, var(--sheerid-font-family-sans)`,
|
|
284
|
+
...Object.entries(St).reduce((e, [t, n]) => {
|
|
285
285
|
let r = n.from.startsWith("--") ? `var(${n.from})` : n.from, i = n.to.startsWith("--") ? `var(${n.to})` : n.to;
|
|
286
286
|
return e[t] = `color-mix(in oklab, ${r} ${100 - n.percentage}%, ${i} ${n.percentage}%)`, e;
|
|
287
287
|
}, {})
|
|
288
|
-
}, y =
|
|
289
|
-
return /* @__PURE__ */ (0,
|
|
288
|
+
}, y = I.useRef(null), b = De() === ke.cdnInlineIframe, x = De() === ke.cdnModalIframe;
|
|
289
|
+
return /* @__PURE__ */ (0, L.jsx)(xt.Provider, {
|
|
290
290
|
value: {
|
|
291
291
|
landingBackgroundColor: s,
|
|
292
292
|
landingPrimaryFontColor: c,
|
|
@@ -302,15 +302,15 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
302
302
|
cssVariables: v,
|
|
303
303
|
customStyles: a
|
|
304
304
|
},
|
|
305
|
-
children: /* @__PURE__ */ (0,
|
|
305
|
+
children: /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
306
306
|
style: v,
|
|
307
307
|
ref: y,
|
|
308
308
|
"data-in-iframe": b,
|
|
309
309
|
"data-in-modal": x,
|
|
310
|
-
children: [a && /* @__PURE__ */ (0,
|
|
310
|
+
children: [a && /* @__PURE__ */ (0, L.jsx)("style", { children: a }), n]
|
|
311
311
|
})
|
|
312
312
|
});
|
|
313
|
-
},
|
|
313
|
+
}, wt = (e, t, n) => ({
|
|
314
314
|
minAge: t?.minAge || e?.config?.minAge,
|
|
315
315
|
maxAge: t?.maxAge || e?.config?.maxAge,
|
|
316
316
|
smsLoopEnabled: e?.smsLoopEnabled,
|
|
@@ -318,132 +318,132 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
318
318
|
transitionalMilitaryValidityDays: e?.transitionalMilitaryValidityDays,
|
|
319
319
|
currentStep: t?.currentStep,
|
|
320
320
|
viewModel: n
|
|
321
|
-
}),
|
|
322
|
-
|
|
323
|
-
},
|
|
324
|
-
|
|
325
|
-
},
|
|
321
|
+
}), Tt = {}, Et = (e, t) => {
|
|
322
|
+
P.log(`overrideComponent registering ${e}`), Tt[e] = t;
|
|
323
|
+
}, Dt = (e) => Tt[e] ? (P.log(`getOverridenComponent returning ${e}`), Tt[e]) : null, Ot = () => {
|
|
324
|
+
Tt = {};
|
|
325
|
+
}, kt = ({ verificationService: e, linkText: t }) => {
|
|
326
326
|
let { segment: n } = e.verificationResponse, { programId: r, programTheme: i } = e;
|
|
327
|
-
return n ? /* @__PURE__ */ (0,
|
|
327
|
+
return n ? /* @__PURE__ */ (0, L.jsx)(me, {
|
|
328
328
|
className: "sid-faq sid-link",
|
|
329
|
-
href:
|
|
330
|
-
children: t || /* @__PURE__ */ (0,
|
|
329
|
+
href: Oe(i, n, r, a(e.viewModel), e.verificationResponse),
|
|
330
|
+
children: t || /* @__PURE__ */ (0, L.jsx)(O, {
|
|
331
331
|
id: "getHelp",
|
|
332
332
|
defaultMessage: "Get help"
|
|
333
333
|
})
|
|
334
334
|
}) : null;
|
|
335
|
-
},
|
|
335
|
+
}, At = /* @__PURE__ */ (0, L.jsx)(O, {
|
|
336
336
|
id: "poweredBy",
|
|
337
337
|
defaultMessage: "Verification services powered by SheerID."
|
|
338
|
-
}),
|
|
338
|
+
}), jt = ({ verificationService: e, isCentered: t, variant: n = "default", hideFaqLink: r = !1 }) => {
|
|
339
339
|
switch (n) {
|
|
340
|
-
case "poweredby": return /* @__PURE__ */ (0,
|
|
340
|
+
case "poweredby": return /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
341
341
|
className: "sid-footer__powered-by-container-experiment",
|
|
342
|
-
children: [/* @__PURE__ */ (0,
|
|
342
|
+
children: [/* @__PURE__ */ (0, L.jsx)("div", {
|
|
343
343
|
className: "sid-footer__powered-by_powerby-experiment",
|
|
344
|
-
children:
|
|
345
|
-
}), !r && /* @__PURE__ */ (0,
|
|
344
|
+
children: At
|
|
345
|
+
}), !r && /* @__PURE__ */ (0, L.jsx)("div", {
|
|
346
346
|
className: "sid-footer__powered-by_powerby-experiment",
|
|
347
|
-
children: /* @__PURE__ */ (0,
|
|
347
|
+
children: /* @__PURE__ */ (0, L.jsx)(kt, { verificationService: e })
|
|
348
348
|
})]
|
|
349
349
|
});
|
|
350
|
-
case "verificationby": return /* @__PURE__ */ (0,
|
|
350
|
+
case "verificationby": return /* @__PURE__ */ (0, L.jsx)("div", {
|
|
351
351
|
className: "sid-footer__powered-by-container--stacked sid-l-horz-center sid-footer__powered-by-experiment",
|
|
352
|
-
children: /* @__PURE__ */ (0,
|
|
352
|
+
children: /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
353
353
|
className: "sid-footer__powered-by-verificationby-experiment",
|
|
354
|
-
children: [/* @__PURE__ */ (0,
|
|
354
|
+
children: [/* @__PURE__ */ (0, L.jsx)("div", {
|
|
355
355
|
className: "sid-footer__powered-by-icon-experiment",
|
|
356
|
-
children: /* @__PURE__ */ (0,
|
|
356
|
+
children: /* @__PURE__ */ (0, L.jsx)("img", {
|
|
357
357
|
alt: "",
|
|
358
358
|
src: "https://com-sheerid-resources.s3.us-east-1.amazonaws.com/common/images/2018/icons/sheerid_logo.svg"
|
|
359
359
|
})
|
|
360
|
-
}),
|
|
360
|
+
}), At]
|
|
361
361
|
})
|
|
362
362
|
});
|
|
363
|
-
default: return /* @__PURE__ */ (0,
|
|
363
|
+
default: return /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
364
364
|
className: t ? "sid-footer__powered-by-container--stacked sid-l-horz-center" : "sid-footer__powered-by-container",
|
|
365
|
-
children: [/* @__PURE__ */ (0,
|
|
365
|
+
children: [/* @__PURE__ */ (0, L.jsx)("div", {
|
|
366
366
|
className: t ? "sid-footer__powered-by--stacked sid-l-horz-center" : "sid-footer__powered-by",
|
|
367
|
-
children:
|
|
368
|
-
}), !r && /* @__PURE__ */ (0,
|
|
367
|
+
children: At
|
|
368
|
+
}), !r && /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
369
369
|
className: t ? "sid-l-space-top-sm" : "",
|
|
370
|
-
children: ["\xA0", /* @__PURE__ */ (0,
|
|
370
|
+
children: ["\xA0", /* @__PURE__ */ (0, L.jsx)(kt, { verificationService: e })]
|
|
371
371
|
})]
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
},
|
|
375
|
-
let n =
|
|
374
|
+
}, Mt = (e, t) => {
|
|
375
|
+
let n = I.useRef(null);
|
|
376
376
|
function r() {
|
|
377
377
|
clearInterval(n.current);
|
|
378
378
|
}
|
|
379
|
-
return
|
|
380
|
-
},
|
|
381
|
-
let a =
|
|
382
|
-
return /* @__PURE__ */ (0,
|
|
379
|
+
return I.useEffect(() => (n.current = setInterval(e, t), () => r()), [e, t]), r;
|
|
380
|
+
}, Nt = ({ stepName: e, messages: t, logo: n, cancelSingleSignOn: r, cancelButtonType: i = It.PRIMARY }) => {
|
|
381
|
+
let a = lt(e);
|
|
382
|
+
return /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
383
383
|
className: "sid-header sid-l-horz-center",
|
|
384
384
|
children: [
|
|
385
|
-
/* @__PURE__ */ (0,
|
|
385
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
386
386
|
className: "sid-pending-logo-container sid-l-horz-center",
|
|
387
387
|
children: n
|
|
388
388
|
}),
|
|
389
|
-
/* @__PURE__ */ (0,
|
|
389
|
+
/* @__PURE__ */ (0, L.jsx)(ut, {
|
|
390
390
|
align: "center",
|
|
391
391
|
children: t.title
|
|
392
392
|
}),
|
|
393
|
-
/* @__PURE__ */ (0,
|
|
393
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
394
394
|
className: "sid-header__subtitle-one",
|
|
395
395
|
children: t.subtitle
|
|
396
396
|
}),
|
|
397
|
-
t?.subtitle2 && /* @__PURE__ */ (0,
|
|
398
|
-
/* @__PURE__ */ (0,
|
|
397
|
+
t?.subtitle2 && /* @__PURE__ */ (0, L.jsx)("div", { className: "sid-l-space-top-xl" }),
|
|
398
|
+
/* @__PURE__ */ (0, L.jsxs)("div", {
|
|
399
399
|
className: "sid-header__subtitle-two sid-h-small-text sid-l-space-top-md",
|
|
400
|
-
children: [t?.subtitle2 && t.subtitle2, /* @__PURE__ */ (0,
|
|
400
|
+
children: [t?.subtitle2 && t.subtitle2, /* @__PURE__ */ (0, L.jsx)("div", {
|
|
401
401
|
className: `sid-form-region sid-${a}-pending-submit sid-submit-wrapper sid-l-space-top-md`,
|
|
402
|
-
children: /* @__PURE__ */ (0,
|
|
402
|
+
children: /* @__PURE__ */ (0, L.jsx)("button", {
|
|
403
403
|
onClick: r,
|
|
404
404
|
type: "submit",
|
|
405
|
-
className: `sid-btn sid-${a}-pending-submit-btn ${i ===
|
|
405
|
+
className: `sid-btn sid-${a}-pending-submit-btn ${i === It.SECONDARY ? "sid-btn-light" : "sid-btn--dark"} sid-l-full-width`,
|
|
406
406
|
"aria-label": "submit",
|
|
407
407
|
children: t.cancel
|
|
408
408
|
})
|
|
409
409
|
})]
|
|
410
410
|
}),
|
|
411
|
-
t?.subtitle2 ? /* @__PURE__ */ (0,
|
|
411
|
+
t?.subtitle2 ? /* @__PURE__ */ (0, L.jsx)("div", { className: "sid-l-space-top-xl" }) : /* @__PURE__ */ (0, L.jsx)("div", { className: "sid-l-space-top-lg" })
|
|
412
412
|
]
|
|
413
413
|
});
|
|
414
|
-
},
|
|
414
|
+
}, Pt = ({ stepName: e, messages: t, logo: n, cancelSingleSignOn: r, cancelButtonType: i = It.PRIMARY }) => /* @__PURE__ */ (0, L.jsx)(Nt, {
|
|
415
415
|
messages: t,
|
|
416
416
|
stepName: e,
|
|
417
417
|
logo: n,
|
|
418
418
|
cancelSingleSignOn: r,
|
|
419
419
|
cancelButtonType: i
|
|
420
|
-
}),
|
|
421
|
-
let i =
|
|
422
|
-
return /* @__PURE__ */ (0,
|
|
420
|
+
}), Ft = ({ messages: e, verificationService: t, updateViewModelAndOpenLoginTab: n, dashedStepName: r }) => {
|
|
421
|
+
let i = it("hc-my-sheer-id-theme-builder");
|
|
422
|
+
return /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
423
423
|
className: "sid-header sid-l-horz-center",
|
|
424
424
|
children: [
|
|
425
|
-
/* @__PURE__ */ (0,
|
|
425
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
426
426
|
className: `sid-${r}-logo-container sid-l-horz-center`,
|
|
427
|
-
children: /* @__PURE__ */ (0,
|
|
427
|
+
children: /* @__PURE__ */ (0, L.jsx)(ct, {
|
|
428
428
|
verificationService: t,
|
|
429
|
-
fallbackLogo: !i && /* @__PURE__ */ (0,
|
|
429
|
+
fallbackLogo: !i && /* @__PURE__ */ (0, L.jsx)("img", {
|
|
430
430
|
className: `sid-${r}-logo-default sid-l-lead-image`,
|
|
431
431
|
alt: "",
|
|
432
432
|
src: "https://assets-resources.sheerid.com/common/images/2018/icons/sso-step.svg"
|
|
433
433
|
})
|
|
434
434
|
})
|
|
435
435
|
}),
|
|
436
|
-
/* @__PURE__ */ (0,
|
|
436
|
+
/* @__PURE__ */ (0, L.jsx)(ut, {
|
|
437
437
|
align: "center",
|
|
438
438
|
children: e.title
|
|
439
439
|
}),
|
|
440
|
-
/* @__PURE__ */ (0,
|
|
440
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
441
441
|
className: "sid-header__subtitle-one",
|
|
442
442
|
children: e.subtitle
|
|
443
443
|
}),
|
|
444
|
-
/* @__PURE__ */ (0,
|
|
444
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
445
445
|
className: `sid-form-region sid-${r}-submit sid-submit-wrapper sid-l-space-top-md`,
|
|
446
|
-
children: /* @__PURE__ */ (0,
|
|
446
|
+
children: /* @__PURE__ */ (0, L.jsx)("button", {
|
|
447
447
|
id: `sid-submit-btn-${r}`,
|
|
448
448
|
onClick: () => n("isSingleSignOnActive", !0),
|
|
449
449
|
type: "submit",
|
|
@@ -451,15 +451,15 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
451
451
|
children: e.login
|
|
452
452
|
})
|
|
453
453
|
}),
|
|
454
|
-
/* @__PURE__ */ (0,
|
|
454
|
+
/* @__PURE__ */ (0, L.jsx)("div", { className: "sid-l-space-top-lg" })
|
|
455
455
|
]
|
|
456
456
|
});
|
|
457
|
-
},
|
|
457
|
+
}, It = /* @__PURE__ */ function(e) {
|
|
458
458
|
return e.PRIMARY = "primary", e.SECONDARY = "secondary", e;
|
|
459
|
-
}({}),
|
|
460
|
-
let { programId: i } = e, a = e.viewModel, o = e.previousViewModel || void 0, s = e.verificationResponse, c = e.previousVerificationResponse || void 0, { verificationId: d, locale: f } = e.verificationResponse, p =
|
|
459
|
+
}({}), Lt = ({ verificationService: e, stepName: t, messages: n, cancelButtonType: r = "primary" }) => {
|
|
460
|
+
let { programId: i } = e, a = e.viewModel, o = e.previousViewModel || void 0, s = e.verificationResponse, c = e.previousVerificationResponse || void 0, { verificationId: d, locale: f } = e.verificationResponse, p = xe(), m = lt(t), h = it("hc-my-sheer-id-theme-builder"), g, y = /* @__PURE__ */ (0, L.jsx)(ct, {
|
|
461
461
|
verificationService: e,
|
|
462
|
-
fallbackLogo: !h && /* @__PURE__ */ (0,
|
|
462
|
+
fallbackLogo: !h && /* @__PURE__ */ (0, L.jsx)("img", {
|
|
463
463
|
className: `sid-${m}-logo-default sid-l-lead-image`,
|
|
464
464
|
alt: "",
|
|
465
465
|
src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg"
|
|
@@ -476,9 +476,9 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
476
476
|
programId: i,
|
|
477
477
|
locale: f,
|
|
478
478
|
verificationId: d
|
|
479
|
-
}),
|
|
479
|
+
}), st();
|
|
480
480
|
let n = l(a, () => {});
|
|
481
|
-
|
|
481
|
+
P.info("SingleSignOnComponent submitting cancel request"), clearTimeout(g), e.submitStep(t, n, e.verificationResponse);
|
|
482
482
|
}, C = (e, t) => {
|
|
483
483
|
v(u.SSO_SIGN_IN_CLICKED, {
|
|
484
484
|
programId: i,
|
|
@@ -486,169 +486,169 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
486
486
|
verificationId: d
|
|
487
487
|
}), x(e, t), w();
|
|
488
488
|
}, w = () => {
|
|
489
|
-
let e = t ===
|
|
489
|
+
let e = t === F.sso ? ve(s.loginUrl) : s.loginUrl;
|
|
490
490
|
if (!_(e)) {
|
|
491
|
-
|
|
491
|
+
P.error("Invalid loginUrl - must be an absolute http(s) URL. Not opening the login tab.", "sso loginUrl");
|
|
492
492
|
return;
|
|
493
493
|
}
|
|
494
|
-
|
|
494
|
+
ot(window.open(e, "_blank")), at().focus();
|
|
495
495
|
};
|
|
496
|
-
return a.isSingleSignOnActive && !p && (g = b()), !a.countryChoice && o && o.countryChoice && x("countryChoice", o.countryChoice), /* @__PURE__ */ (0,
|
|
496
|
+
return a.isSingleSignOnActive && !p && (g = b()), !a.countryChoice && o && o.countryChoice && x("countryChoice", o.countryChoice), /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
497
497
|
id: `sid-step-${m}`,
|
|
498
498
|
className: `sid-${m}-container sid-l-container`,
|
|
499
499
|
"data-testid": `sid-step-${m}`,
|
|
500
|
-
children: [/* @__PURE__ */ (0,
|
|
500
|
+
children: [/* @__PURE__ */ (0, L.jsx)("div", {
|
|
501
501
|
role: "main",
|
|
502
|
-
children: a.isSingleSignOnActive ? /* @__PURE__ */ (0,
|
|
502
|
+
children: a.isSingleSignOnActive ? /* @__PURE__ */ (0, L.jsx)(Pt, {
|
|
503
503
|
stepName: t,
|
|
504
504
|
messages: n,
|
|
505
505
|
logo: y,
|
|
506
506
|
cancelSingleSignOn: S,
|
|
507
507
|
cancelButtonType: r
|
|
508
|
-
}) : /* @__PURE__ */ (0,
|
|
508
|
+
}) : /* @__PURE__ */ (0, L.jsx)(Ft, {
|
|
509
509
|
verificationService: e,
|
|
510
510
|
messages: n,
|
|
511
511
|
updateViewModelAndOpenLoginTab: C,
|
|
512
512
|
dashedStepName: m
|
|
513
513
|
})
|
|
514
|
-
}), /* @__PURE__ */ (0,
|
|
514
|
+
}), /* @__PURE__ */ (0, L.jsx)(Je, { verificationService: e })]
|
|
515
515
|
});
|
|
516
|
-
},
|
|
517
|
-
title: /* @__PURE__ */ (0,
|
|
516
|
+
}, Rt = {
|
|
517
|
+
title: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
518
518
|
id: "step.sso.title",
|
|
519
519
|
defaultMessage: "Verify using your school credentials",
|
|
520
520
|
tagName: "h1"
|
|
521
521
|
}),
|
|
522
|
-
subtitle: /* @__PURE__ */ (0,
|
|
522
|
+
subtitle: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
523
523
|
id: "step.sso.subtitle",
|
|
524
524
|
defaultMessage: "Please sign in to your school's web portal. It will open in a new tab."
|
|
525
525
|
}),
|
|
526
|
-
login: /* @__PURE__ */ (0,
|
|
526
|
+
login: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
527
527
|
id: "step.sso.login",
|
|
528
528
|
defaultMessage: "Sign in to my school"
|
|
529
529
|
}),
|
|
530
|
-
cancel: /* @__PURE__ */ (0,
|
|
530
|
+
cancel: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
531
531
|
id: "step.sso.cancel",
|
|
532
532
|
defaultMessage: "Upload Proof of Enrollment"
|
|
533
533
|
}),
|
|
534
|
-
subtitle2: /* @__PURE__ */ (0,
|
|
534
|
+
subtitle2: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
535
535
|
id: "step.sso.subtitle2",
|
|
536
536
|
defaultMessage: "Can't sign in to your school?"
|
|
537
537
|
})
|
|
538
|
-
},
|
|
538
|
+
}, zt = ({ verificationService: e }) => /* @__PURE__ */ (0, L.jsx)(Lt, {
|
|
539
539
|
verificationService: e,
|
|
540
|
-
stepName:
|
|
541
|
-
messages:
|
|
542
|
-
}),
|
|
540
|
+
stepName: F.sso,
|
|
541
|
+
messages: Rt
|
|
542
|
+
}), Bt = ({ logo: e }) => /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
543
543
|
className: "sid-header sid-l-horz-center",
|
|
544
544
|
"data-testid": "sid-review-pending",
|
|
545
545
|
children: [
|
|
546
|
-
/* @__PURE__ */ (0,
|
|
546
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
547
547
|
className: "sid-l-horz-center",
|
|
548
548
|
children: e
|
|
549
549
|
}),
|
|
550
|
-
/* @__PURE__ */ (0,
|
|
550
|
+
/* @__PURE__ */ (0, L.jsx)(ut, {
|
|
551
551
|
align: "center",
|
|
552
|
-
children: /* @__PURE__ */ (0,
|
|
552
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
553
553
|
id: "step.pending.titleReview",
|
|
554
554
|
defaultMessage: "Reviewing",
|
|
555
555
|
tagName: "h1"
|
|
556
556
|
})
|
|
557
557
|
}),
|
|
558
|
-
/* @__PURE__ */ (0,
|
|
558
|
+
/* @__PURE__ */ (0, L.jsx)("div", { children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
559
559
|
id: "step.pending.uploadedDocument",
|
|
560
560
|
defaultMessage: "Your document was uploaded successfully and is being reviewed."
|
|
561
561
|
}) }),
|
|
562
|
-
/* @__PURE__ */ (0,
|
|
562
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
563
563
|
className: "sid-header__subtitle-one sid-l-space-top-md",
|
|
564
|
-
children: /* @__PURE__ */ (0,
|
|
564
|
+
children: /* @__PURE__ */ (0, L.jsx)(N, { id: "step.pending.turnaroundTime" })
|
|
565
565
|
}),
|
|
566
|
-
/* @__PURE__ */ (0,
|
|
566
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
567
567
|
className: "sid-header__subtitle-two sid-l-space-top-md",
|
|
568
|
-
children: /* @__PURE__ */ (0,
|
|
568
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
569
569
|
id: "step.pending.subtitle2",
|
|
570
570
|
defaultMessage: "Wait here or let us notify you of the outcome."
|
|
571
571
|
})
|
|
572
572
|
}),
|
|
573
|
-
/* @__PURE__ */ (0,
|
|
573
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
574
574
|
className: "sid-header__subtitle-three sid-l-space-top-md",
|
|
575
|
-
children: /* @__PURE__ */ (0,
|
|
575
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
576
576
|
id: "step.pending.subtitle3",
|
|
577
577
|
defaultMessage: "You will be contacted via email."
|
|
578
578
|
})
|
|
579
579
|
}),
|
|
580
|
-
/* @__PURE__ */ (0,
|
|
580
|
+
/* @__PURE__ */ (0, L.jsx)("div", { className: "sid-l-space-top-xl" })
|
|
581
581
|
]
|
|
582
|
-
}),
|
|
582
|
+
}), Vt = ({ logo: e }) => /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
583
583
|
className: "sid-header sid-l-horz-center",
|
|
584
584
|
"data-testid": "sid-review-pending",
|
|
585
585
|
children: [
|
|
586
|
-
/* @__PURE__ */ (0,
|
|
586
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
587
587
|
className: "sid-l-horz-center",
|
|
588
588
|
children: e
|
|
589
589
|
}),
|
|
590
|
-
/* @__PURE__ */ (0,
|
|
590
|
+
/* @__PURE__ */ (0, L.jsx)(ut, {
|
|
591
591
|
align: "center",
|
|
592
|
-
children: /* @__PURE__ */ (0,
|
|
592
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
593
593
|
id: "step.pending.idCheckLoop.title",
|
|
594
594
|
defaultMessage: "We're reviewing your documents",
|
|
595
595
|
tagName: "h1"
|
|
596
596
|
})
|
|
597
597
|
}),
|
|
598
|
-
/* @__PURE__ */ (0,
|
|
598
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
599
599
|
className: "sid-header__subtitle-one",
|
|
600
|
-
children: /* @__PURE__ */ (0,
|
|
600
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
601
601
|
id: "step.pending.idCheckLoop.subtitle",
|
|
602
602
|
defaultMessage: "Hold tight, turnaround time is typically a few minutes or less."
|
|
603
603
|
})
|
|
604
604
|
}),
|
|
605
|
-
/* @__PURE__ */ (0,
|
|
605
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
606
606
|
className: "sid-header__subtitle-two sid-l-space-top-md sid-h-bold-text",
|
|
607
|
-
children: /* @__PURE__ */ (0,
|
|
607
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
608
608
|
id: "step.pending.idCheckLoop.subtitle2",
|
|
609
609
|
defaultMessage: "We'll send you an email when we're finished reviewing."
|
|
610
610
|
})
|
|
611
611
|
}),
|
|
612
|
-
/* @__PURE__ */ (0,
|
|
612
|
+
/* @__PURE__ */ (0, L.jsx)("div", { className: "sid-l-space-top-xl" })
|
|
613
613
|
]
|
|
614
|
-
}),
|
|
615
|
-
title: /* @__PURE__ */ (0,
|
|
614
|
+
}), Ht = { [ye.SIGNZY]: {
|
|
615
|
+
title: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
616
616
|
id: "step.thirdPartyLoop.signzy.title",
|
|
617
617
|
tagName: "h1",
|
|
618
618
|
defaultMessage: "Verify using DigiLocker"
|
|
619
619
|
}),
|
|
620
|
-
subtitle: /* @__PURE__ */ (0,
|
|
620
|
+
subtitle: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
621
621
|
id: "step.thirdPartyLoop.signzy.subtitle",
|
|
622
622
|
defaultMessage: "Verify using your DigiLocker login information"
|
|
623
623
|
}),
|
|
624
|
-
login: /* @__PURE__ */ (0,
|
|
624
|
+
login: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
625
625
|
id: "step.thirdPartyLoop.signzy.login",
|
|
626
626
|
defaultMessage: "Sign in to DigiLocker"
|
|
627
627
|
}),
|
|
628
|
-
cancel: /* @__PURE__ */ (0,
|
|
628
|
+
cancel: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
629
629
|
id: "step.thirdPartyLoop.signzy.cancel",
|
|
630
630
|
defaultMessage: "Upload Proof of Identity"
|
|
631
631
|
})
|
|
632
|
-
} },
|
|
633
|
-
let n = /* @__PURE__ */ (0,
|
|
632
|
+
} }, Ut = ({ logo: e, isStepRoot: t = !1 }) => {
|
|
633
|
+
let n = /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
634
634
|
className: "sid-header sid-l-horz-center",
|
|
635
635
|
children: [
|
|
636
|
-
/* @__PURE__ */ (0,
|
|
636
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
637
637
|
className: "sid-error-logo-container sid-l-horz-center",
|
|
638
638
|
children: e
|
|
639
639
|
}),
|
|
640
|
-
/* @__PURE__ */ (0,
|
|
640
|
+
/* @__PURE__ */ (0, L.jsx)(ut, {
|
|
641
641
|
align: "center",
|
|
642
|
-
children: /* @__PURE__ */ (0,
|
|
642
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
643
643
|
id: "error",
|
|
644
644
|
tagName: "h1"
|
|
645
645
|
})
|
|
646
646
|
}),
|
|
647
|
-
/* @__PURE__ */ (0,
|
|
647
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
648
648
|
className: "sid-header__subtitle sid-l-horz-center sid-l-space-top-md",
|
|
649
|
-
children: /* @__PURE__ */ (0,
|
|
649
|
+
children: /* @__PURE__ */ (0, L.jsx)("div", {
|
|
650
650
|
className: "sid-error-msg sid-l-horz-center",
|
|
651
|
-
children: /* @__PURE__ */ (0,
|
|
651
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
652
652
|
id: "step.thirdPartyLoop.error",
|
|
653
653
|
defaultMessage: "Provider not supported"
|
|
654
654
|
})
|
|
@@ -656,237 +656,237 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
656
656
|
})
|
|
657
657
|
]
|
|
658
658
|
});
|
|
659
|
-
return /* @__PURE__ */ (0,
|
|
659
|
+
return /* @__PURE__ */ (0, L.jsx)("div", {
|
|
660
660
|
id: "sid-step-third-party-loop",
|
|
661
661
|
className: "sid-step-third-party-loop-container sid-l-container",
|
|
662
662
|
"data-testid": "sid-step-third-party-loop-error",
|
|
663
|
-
children: t ? /* @__PURE__ */ (0,
|
|
663
|
+
children: t ? /* @__PURE__ */ (0, L.jsx)("div", {
|
|
664
664
|
role: "main",
|
|
665
665
|
children: n
|
|
666
666
|
}) : n
|
|
667
667
|
});
|
|
668
|
-
},
|
|
669
|
-
let t =
|
|
670
|
-
return t ? /* @__PURE__ */ (0,
|
|
668
|
+
}, Wt = ({ verificationService: e }) => {
|
|
669
|
+
let t = Ht[e.verificationResponse.thirdPartyLoopProvider] || void 0, n = it("hc-my-sheer-id-theme-builder");
|
|
670
|
+
return t ? /* @__PURE__ */ (0, L.jsx)(Lt, {
|
|
671
671
|
verificationService: e,
|
|
672
|
-
stepName:
|
|
672
|
+
stepName: F.thirdPartyLoop,
|
|
673
673
|
messages: t,
|
|
674
|
-
cancelButtonType:
|
|
675
|
-
}) : /* @__PURE__ */ (0,
|
|
674
|
+
cancelButtonType: It.SECONDARY
|
|
675
|
+
}) : /* @__PURE__ */ (0, L.jsx)(Ut, {
|
|
676
676
|
isStepRoot: !0,
|
|
677
|
-
logo: /* @__PURE__ */ (0,
|
|
677
|
+
logo: /* @__PURE__ */ (0, L.jsx)(ct, {
|
|
678
678
|
verificationService: e,
|
|
679
|
-
fallbackLogo: !n && /* @__PURE__ */ (0,
|
|
679
|
+
fallbackLogo: !n && /* @__PURE__ */ (0, L.jsx)("img", {
|
|
680
680
|
className: "sid-error-logo sid-l-lead-image",
|
|
681
681
|
alt: "",
|
|
682
682
|
src: "https://assets-resources.sheerid.com/common/images/2018/icons/circle-exclamation.svg"
|
|
683
683
|
})
|
|
684
684
|
})
|
|
685
685
|
});
|
|
686
|
-
},
|
|
687
|
-
let i =
|
|
688
|
-
return i ? /* @__PURE__ */ (0,
|
|
689
|
-
stepName:
|
|
686
|
+
}, Gt = ({ logo: e, verificationLastResponse: t, cancelThirdPartyLoop: n, isMockingPreviousStepThirdPartyLoop: r }) => {
|
|
687
|
+
let i = Ht[r ? Se("thirdPartyLoopProvider") : t?.thirdPartyLoopProvider] || void 0;
|
|
688
|
+
return i ? /* @__PURE__ */ (0, L.jsx)(Pt, {
|
|
689
|
+
stepName: F.thirdPartyLoop,
|
|
690
690
|
messages: i,
|
|
691
691
|
logo: e,
|
|
692
692
|
cancelSingleSignOn: n,
|
|
693
|
-
cancelButtonType:
|
|
694
|
-
}) : /* @__PURE__ */ (0,
|
|
695
|
-
},
|
|
696
|
-
let { programId: t } = e, { viewModel: n } = e, r = e.previousViewModel || void 0, i = e.verificationResponse.lastResponse || e.previousVerificationResponse || void 0, { verificationId: a } = e.verificationResponse, o =
|
|
697
|
-
|
|
693
|
+
cancelButtonType: It.SECONDARY
|
|
694
|
+
}) : /* @__PURE__ */ (0, L.jsx)(Ut, { logo: e });
|
|
695
|
+
}, Kt = 5e3, qt = 2e4, Jt = 2e4, Yt = 2e3, Xt = ({ verificationService: e }) => {
|
|
696
|
+
let { programId: t } = e, { viewModel: n } = e, r = e.previousViewModel || void 0, i = e.verificationResponse.lastResponse || e.previousVerificationResponse || void 0, { verificationId: a } = e.verificationResponse, o = xe(), s = Ce() && Ce() === F.sso, c = Ce() && Ce() === F.thirdPartyLoop, u = Ce() && Ce() === F.idCheckLoop, d = it("hc-my-sheer-id-theme-builder"), f = () => i?.currentStep === F.sso, p = () => i?.currentStep === F.thirdPartyLoop, m = () => i?.currentStep === F.idCheckLoop, h = f() || p() || s || c, g = m() || u, _ = !h && !g, [v, y] = I.useState(() => h ? Yt : g ? Jt : Kt);
|
|
697
|
+
I.useEffect(() => {
|
|
698
698
|
if (!_) return;
|
|
699
|
-
let e = setTimeout(() => y(
|
|
699
|
+
let e = setTimeout(() => y(Jt), qt);
|
|
700
700
|
return () => clearTimeout(e);
|
|
701
701
|
}, [_]);
|
|
702
|
-
let b = !o &&
|
|
702
|
+
let b = !o && Mt(() => {
|
|
703
703
|
e.fetchExistingVerificationRequest(t, a, i, r, !1);
|
|
704
704
|
}, v), x = (t) => {
|
|
705
705
|
let r = l(n, () => {});
|
|
706
|
-
|
|
707
|
-
}, S = /* @__PURE__ */ (0,
|
|
706
|
+
P.info("StepSingleSignOnComponent submitting cancel request, step:", t), b(), st(), e.submitStep(t, r, i);
|
|
707
|
+
}, S = /* @__PURE__ */ (0, L.jsx)(ct, {
|
|
708
708
|
verificationService: e,
|
|
709
|
-
fallbackLogo: !d && /* @__PURE__ */ (0,
|
|
709
|
+
fallbackLogo: !d && /* @__PURE__ */ (0, L.jsx)("img", {
|
|
710
710
|
className: "sid-l-lead-image",
|
|
711
711
|
alt: "",
|
|
712
712
|
src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg"
|
|
713
713
|
})
|
|
714
714
|
});
|
|
715
|
-
return /* @__PURE__ */ (0,
|
|
715
|
+
return /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
716
716
|
id: "sid-step-pending",
|
|
717
717
|
className: "sid-l-container",
|
|
718
|
-
children: [/* @__PURE__ */ (0,
|
|
718
|
+
children: [/* @__PURE__ */ (0, L.jsx)("div", {
|
|
719
719
|
role: "main",
|
|
720
720
|
children: (() => {
|
|
721
721
|
let e = f() || s, t = p() || c, n = m() || u;
|
|
722
|
-
return e ? /* @__PURE__ */ (0,
|
|
723
|
-
stepName:
|
|
724
|
-
messages:
|
|
722
|
+
return e ? /* @__PURE__ */ (0, L.jsx)(Pt, {
|
|
723
|
+
stepName: F.sso,
|
|
724
|
+
messages: Rt,
|
|
725
725
|
logo: S,
|
|
726
|
-
cancelSingleSignOn: () => x(
|
|
727
|
-
}) : t ? /* @__PURE__ */ (0,
|
|
726
|
+
cancelSingleSignOn: () => x(F.sso)
|
|
727
|
+
}) : t ? /* @__PURE__ */ (0, L.jsx)(Gt, {
|
|
728
728
|
logo: S,
|
|
729
|
-
cancelThirdPartyLoop: () => x(
|
|
729
|
+
cancelThirdPartyLoop: () => x(F.thirdPartyLoop),
|
|
730
730
|
verificationLastResponse: i,
|
|
731
731
|
isMockingPreviousStepThirdPartyLoop: c
|
|
732
|
-
}) : n ? /* @__PURE__ */ (0,
|
|
732
|
+
}) : n ? /* @__PURE__ */ (0, L.jsx)(Vt, { logo: S }) : /* @__PURE__ */ (0, L.jsx)(Bt, { logo: S });
|
|
733
733
|
})()
|
|
734
|
-
}), g ? /* @__PURE__ */ (0,
|
|
734
|
+
}), g ? /* @__PURE__ */ (0, L.jsx)(jt, {
|
|
735
735
|
verificationService: e,
|
|
736
736
|
isCentered: !0
|
|
737
|
-
}) : /* @__PURE__ */ (0,
|
|
737
|
+
}) : /* @__PURE__ */ (0, L.jsxs)(Je, {
|
|
738
738
|
verificationService: e,
|
|
739
|
-
children: [/* @__PURE__ */ (0,
|
|
739
|
+
children: [/* @__PURE__ */ (0, L.jsx)("div", {}), " "]
|
|
740
740
|
})]
|
|
741
741
|
});
|
|
742
|
-
},
|
|
743
|
-
let e =
|
|
742
|
+
}, Zt = () => {
|
|
743
|
+
let e = le(), t = ie(), n = ae(), r = d(() => n.segment), i = I.useCallback(() => {
|
|
744
744
|
if (window.self !== window.top) {
|
|
745
745
|
let e = new URL(window.location.href);
|
|
746
746
|
e.searchParams.delete("verificationId"), window.location.replace(e);
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
749
|
(async () => {
|
|
750
|
-
|
|
750
|
+
Ve(e)(), await Fe(e)(t, r, void 0, void 0, !0);
|
|
751
751
|
})();
|
|
752
752
|
}, [
|
|
753
753
|
e,
|
|
754
754
|
t,
|
|
755
755
|
r
|
|
756
756
|
]);
|
|
757
|
-
return /* @__PURE__ */ (0,
|
|
757
|
+
return /* @__PURE__ */ (0, L.jsx)("button", {
|
|
758
758
|
type: "button",
|
|
759
759
|
className: "sid-btn sid-btn-light sid-btn__try-again",
|
|
760
760
|
onClick: i,
|
|
761
761
|
onKeyPress: i,
|
|
762
|
-
children: /* @__PURE__ */ (0,
|
|
762
|
+
children: /* @__PURE__ */ (0, L.jsx)(N, { id: "tryAgain" })
|
|
763
763
|
});
|
|
764
|
-
},
|
|
764
|
+
}, Qt = {
|
|
765
765
|
NONE: "none",
|
|
766
766
|
RESET: "reset",
|
|
767
767
|
POSTMESSAGE: "postMessage",
|
|
768
768
|
REDIRECT: "redirect"
|
|
769
|
-
},
|
|
770
|
-
let e =
|
|
769
|
+
}, $t = () => {
|
|
770
|
+
let e = ae(), t = () => re({
|
|
771
771
|
action: "tryAgain",
|
|
772
772
|
verificationResponse: e
|
|
773
773
|
});
|
|
774
|
-
return /* @__PURE__ */ (0,
|
|
774
|
+
return /* @__PURE__ */ (0, L.jsx)("button", {
|
|
775
775
|
type: "button",
|
|
776
776
|
className: "sid-btn sid-btn-light sid-btn__try-again",
|
|
777
777
|
onClick: t,
|
|
778
778
|
onKeyPress: t,
|
|
779
|
-
children: /* @__PURE__ */ (0,
|
|
779
|
+
children: /* @__PURE__ */ (0, L.jsx)(N, { id: "tryAgain" })
|
|
780
780
|
});
|
|
781
|
-
},
|
|
781
|
+
}, en = ({ redirectUrl: e, target: t = "_blank" }) => /* @__PURE__ */ (0, L.jsx)(me, {
|
|
782
782
|
target: t,
|
|
783
783
|
href: e.toString(),
|
|
784
784
|
className: "sid-btn sid-btn--dark",
|
|
785
|
-
children: /* @__PURE__ */ (0,
|
|
786
|
-
}),
|
|
787
|
-
if (!(typeof e == "object" && "type" in e && Object.values(
|
|
788
|
-
},
|
|
785
|
+
children: /* @__PURE__ */ (0, L.jsx)(N, { id: "seeOtherOffers" })
|
|
786
|
+
}), tn = (e) => {
|
|
787
|
+
if (!(typeof e == "object" && "type" in e && Object.values(Qt).includes(e.type))) throw RangeError("Invalid tryAgainAction option type - using default TryAgainButton.");
|
|
788
|
+
}, nn = () => {
|
|
789
789
|
let e = C("tryAgainAction");
|
|
790
790
|
try {
|
|
791
|
-
switch (
|
|
792
|
-
case
|
|
793
|
-
case
|
|
794
|
-
case
|
|
791
|
+
switch (tn(e), e.type) {
|
|
792
|
+
case Qt.NONE: return null;
|
|
793
|
+
case Qt.POSTMESSAGE: return window.self === window.top ? (P.error(`Invalid tryAgainAction option type "${e.type}" - page must be embedded in an iframe.`), null) : /* @__PURE__ */ (0, L.jsx)($t, {});
|
|
794
|
+
case Qt.REDIRECT:
|
|
795
795
|
if (!_(e.url)) throw RangeError("Invalid tryAgainAction redirect url - must be an absolute http(s) URL. Using default TryAgainButton.");
|
|
796
|
-
return /* @__PURE__ */ (0,
|
|
796
|
+
return /* @__PURE__ */ (0, L.jsx)(en, {
|
|
797
797
|
redirectUrl: e.url,
|
|
798
798
|
target: e.target
|
|
799
799
|
});
|
|
800
|
-
case
|
|
800
|
+
case Qt.RESET: return /* @__PURE__ */ (0, L.jsx)(Zt, {});
|
|
801
801
|
default: throw RangeError("Invalid tryAgainAction option type - using default TryAgainButton.");
|
|
802
802
|
}
|
|
803
803
|
} catch (e) {
|
|
804
|
-
return
|
|
804
|
+
return P.error(e.message), /* @__PURE__ */ (0, L.jsx)(Zt, {});
|
|
805
805
|
}
|
|
806
|
-
},
|
|
806
|
+
}, rn = [
|
|
807
807
|
"docReviewLimitExceeded",
|
|
808
808
|
"verificationLimitExceeded",
|
|
809
809
|
"fraudRulesReject"
|
|
810
|
-
],
|
|
810
|
+
], an = ({ verificationService: e, errorIds: t }) => {
|
|
811
811
|
let n = t[0];
|
|
812
|
-
return /* @__PURE__ */ (0,
|
|
812
|
+
return /* @__PURE__ */ (0, L.jsx)(ut, {
|
|
813
813
|
align: "center",
|
|
814
|
-
children: /* @__PURE__ */ (0,
|
|
814
|
+
children: /* @__PURE__ */ (0, L.jsx)("h1", { children: /* @__PURE__ */ (0, L.jsx)(N, { id: e?.messages[`step.error.errorId.${n}.title`] ? `step.error.errorId.${n}.title` : "step.error.title" }) })
|
|
815
815
|
});
|
|
816
|
-
},
|
|
816
|
+
}, on = ({ errorIds: e, errorDetailId: t }) => {
|
|
817
817
|
let n = /* @__PURE__ */ new Map();
|
|
818
|
-
return t ? n.set(t, `errorDetailId.${t}`) : e?.forEach((e) => n.set(e, `errorId.${e}`)), n.size > 0 ? /* @__PURE__ */ (0,
|
|
819
|
-
},
|
|
818
|
+
return t ? n.set(t, `errorDetailId.${t}`) : e?.forEach((e) => n.set(e, `errorId.${e}`)), n.size > 0 ? /* @__PURE__ */ (0, L.jsx)("p", { children: Array.from(n).map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(N, { id: t }, t)) }) : null;
|
|
819
|
+
}, sn = ({ verificationService: e, errorIds: t }) => {
|
|
820
820
|
let n = `step.error.errorId.${t[0]}.note`;
|
|
821
|
-
return e.messages?.[n] ? /* @__PURE__ */ (0,
|
|
821
|
+
return e.messages?.[n] ? /* @__PURE__ */ (0, L.jsx)("p", {
|
|
822
822
|
className: "sid-error-note sid-h-small-text",
|
|
823
|
-
children: /* @__PURE__ */ (0,
|
|
823
|
+
children: /* @__PURE__ */ (0, L.jsx)(N, { id: n })
|
|
824
824
|
}) : null;
|
|
825
|
-
},
|
|
825
|
+
}, cn = ({ verificationService: e, errorIds: t, redirectUrl: n }) => {
|
|
826
826
|
if (t.includes("unauthorizedAccountStatus")) {
|
|
827
827
|
let t = d(() => e.programTheme.config.brandInfo.faqUrl);
|
|
828
|
-
return t ? /* @__PURE__ */ (0,
|
|
828
|
+
return t ? /* @__PURE__ */ (0, L.jsx)(me, {
|
|
829
829
|
href: t,
|
|
830
|
-
onClick: () => p(
|
|
830
|
+
onClick: () => p(F.error, t),
|
|
831
831
|
className: "sid-btn sid-faq-btn sid-btn-light",
|
|
832
|
-
children: /* @__PURE__ */ (0,
|
|
832
|
+
children: /* @__PURE__ */ (0, L.jsx)(N, { id: "step.error.errorId.unauthorizedAccountStatus.buttonText" })
|
|
833
833
|
}) : null;
|
|
834
834
|
}
|
|
835
835
|
if (t.includes("verificationLimitExceeded")) return null;
|
|
836
|
-
if (t.includes("missingRequiredMetadata") || t.includes("missingRequiredExternalId")) return C("tryAgainAction").type === "reset" ? null : /* @__PURE__ */ (0,
|
|
836
|
+
if (t.includes("missingRequiredMetadata") || t.includes("missingRequiredExternalId")) return C("tryAgainAction").type === "reset" ? null : /* @__PURE__ */ (0, L.jsx)(nn, {});
|
|
837
837
|
let r = t[0];
|
|
838
|
-
return e.messages?.[`step.error.errorId.${r}.buttonText`] && _(n) ? /* @__PURE__ */ (0,
|
|
838
|
+
return e.messages?.[`step.error.errorId.${r}.buttonText`] && _(n) ? /* @__PURE__ */ (0, L.jsx)(me, {
|
|
839
839
|
href: n,
|
|
840
|
-
onClick: () => p(
|
|
840
|
+
onClick: () => p(F.error, n),
|
|
841
841
|
className: "sid-btn sid-error-btn sid-btn-light",
|
|
842
|
-
children: /* @__PURE__ */ (0,
|
|
843
|
-
}) : /* @__PURE__ */ (0,
|
|
844
|
-
},
|
|
845
|
-
let { errorIds: n, redirectUrl: r, errorDetailId: i } = e.verificationResponse, a =
|
|
842
|
+
children: /* @__PURE__ */ (0, L.jsx)(N, { id: `step.error.errorId.${r}.buttonText` })
|
|
843
|
+
}) : /* @__PURE__ */ (0, L.jsx)(nn, {});
|
|
844
|
+
}, ln = ({ verificationService: e, errorId: t }) => {
|
|
845
|
+
let { errorIds: n, redirectUrl: r, errorDetailId: i } = e.verificationResponse, a = it("hc-my-sheer-id-theme-builder"), o = /* @__PURE__ */ new Set();
|
|
846
846
|
t && o.add(t), Array.isArray(n) && n.forEach((e) => o.add(e));
|
|
847
|
-
let s = Array.from(o), c = s.some((e) =>
|
|
848
|
-
return /* @__PURE__ */ (0,
|
|
847
|
+
let s = Array.from(o), c = s.some((e) => rn.includes(e));
|
|
848
|
+
return /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
849
849
|
id: "sid-step-error",
|
|
850
850
|
className: "sid-error-container sid-l-container",
|
|
851
|
-
children: [/* @__PURE__ */ (0,
|
|
851
|
+
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
|
|
852
852
|
className: "sid-header sid-l-horz-center",
|
|
853
853
|
role: "banner",
|
|
854
854
|
children: [
|
|
855
|
-
/* @__PURE__ */ (0,
|
|
855
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
856
856
|
className: "sid-error-logo-container sid-l-horz-center",
|
|
857
|
-
children: /* @__PURE__ */ (0,
|
|
857
|
+
children: /* @__PURE__ */ (0, L.jsx)(ct, {
|
|
858
858
|
verificationService: e,
|
|
859
|
-
fallbackLogo: !a && /* @__PURE__ */ (0,
|
|
859
|
+
fallbackLogo: !a && /* @__PURE__ */ (0, L.jsx)("img", {
|
|
860
860
|
className: "sid-error-logo sid-l-lead-image",
|
|
861
861
|
alt: "",
|
|
862
862
|
src: "https://assets-resources.sheerid.com/common/images/2018/icons/circle-exclamation.svg"
|
|
863
863
|
})
|
|
864
864
|
})
|
|
865
865
|
}),
|
|
866
|
-
/* @__PURE__ */ (0,
|
|
866
|
+
/* @__PURE__ */ (0, L.jsx)(an, {
|
|
867
867
|
verificationService: e,
|
|
868
868
|
errorIds: s
|
|
869
869
|
}),
|
|
870
|
-
/* @__PURE__ */ (0,
|
|
870
|
+
/* @__PURE__ */ (0, L.jsxs)("div", {
|
|
871
871
|
className: "sid-header__subtitle sid-l-horz-center sid-l-space-top-md",
|
|
872
872
|
children: [
|
|
873
|
-
/* @__PURE__ */ (0,
|
|
873
|
+
/* @__PURE__ */ (0, L.jsxs)("div", {
|
|
874
874
|
className: "sid-error-msg sid-l-horz-center",
|
|
875
|
-
children: [/* @__PURE__ */ (0,
|
|
875
|
+
children: [/* @__PURE__ */ (0, L.jsx)(on, {
|
|
876
876
|
errorIds: s,
|
|
877
877
|
errorDetailId: i
|
|
878
|
-
}), /* @__PURE__ */ (0,
|
|
878
|
+
}), /* @__PURE__ */ (0, L.jsx)(sn, {
|
|
879
879
|
verificationService: e,
|
|
880
880
|
errorIds: s
|
|
881
881
|
})]
|
|
882
882
|
}),
|
|
883
|
-
c && /* @__PURE__ */ (0,
|
|
883
|
+
c && /* @__PURE__ */ (0, L.jsx)("p", {
|
|
884
884
|
className: "sid-error-contact-support sid-l-space-top-md",
|
|
885
|
-
children: /* @__PURE__ */ (0,
|
|
885
|
+
children: /* @__PURE__ */ (0, L.jsx)(N, { id: "contactSupport" })
|
|
886
886
|
}),
|
|
887
|
-
/* @__PURE__ */ (0,
|
|
887
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
888
888
|
className: "sid-l-space-top-lg sid-error-button-container sid-l-horz-center",
|
|
889
|
-
children: /* @__PURE__ */ (0,
|
|
889
|
+
children: /* @__PURE__ */ (0, L.jsx)(cn, {
|
|
890
890
|
verificationService: e,
|
|
891
891
|
errorIds: s,
|
|
892
892
|
redirectUrl: r
|
|
@@ -895,266 +895,266 @@ var pt = /* @__PURE__ */ h(ne(), 1), mt = /* @__PURE__ */ h(T(), 1), I = k(), ht
|
|
|
895
895
|
]
|
|
896
896
|
})
|
|
897
897
|
]
|
|
898
|
-
}), /* @__PURE__ */ (0,
|
|
898
|
+
}), /* @__PURE__ */ (0, L.jsx)("div", {
|
|
899
899
|
className: "sid-footer sid-powered-by-container sid-l-horz-center sid-l-space-top-xl sid-h-small-text",
|
|
900
|
-
children: /* @__PURE__ */ (0,
|
|
900
|
+
children: /* @__PURE__ */ (0, L.jsx)(jt, {
|
|
901
901
|
verificationService: e,
|
|
902
902
|
isCentered: !0,
|
|
903
903
|
hideFaqLink: c
|
|
904
904
|
})
|
|
905
905
|
})]
|
|
906
906
|
});
|
|
907
|
-
},
|
|
908
|
-
StepPendingComponent:
|
|
909
|
-
StepErrorComponent:
|
|
910
|
-
StepStudentPersonalInfoComponent:
|
|
911
|
-
StepOverrideComponent:
|
|
912
|
-
StepAgePersonalInfoComponent:
|
|
913
|
-
StepSeniorPersonalInfoComponent:
|
|
914
|
-
StepCollectMilitaryPersonalInfoComponent:
|
|
915
|
-
StepCollectMilitaryStatusComponent:
|
|
916
|
-
StepActiveMilitaryPersonalInfoComponent:
|
|
917
|
-
StepInactiveMilitaryPersonalInfoComponent:
|
|
918
|
-
StepDriverLicensePersonalInfoComponent:
|
|
919
|
-
StepEmploymentPersonalInfoComponent:
|
|
920
|
-
StepFirstResponderPersonalInfoComponent:
|
|
921
|
-
StepGeneralIdentityPersonalInfoComponent:
|
|
922
|
-
StepHybridIdentityPersonalInfoComponent:
|
|
923
|
-
StepIDCheckLoopComponent:
|
|
924
|
-
StepLicensedProfessionalPersonalInfoComponent:
|
|
925
|
-
StepLowIncomePersonalInfoComponent:
|
|
926
|
-
StepMedicalProfessionalPersonalInfoComponent:
|
|
927
|
-
StepMemberPersonalInfoComponent:
|
|
928
|
-
StepConsolationComponent:
|
|
929
|
-
StepDocUploadComponent:
|
|
930
|
-
StepEmailLoopComponent:
|
|
931
|
-
StepPendingEmailLoopComponent:
|
|
932
|
-
StepMoverPersonalInfoComponent:
|
|
933
|
-
StepSMSLoopComponent:
|
|
934
|
-
StepSocialSecurity:
|
|
935
|
-
StepSSOComponent:
|
|
936
|
-
StepSuccessComponent:
|
|
937
|
-
StepTeacherPersonalInfoComponent:
|
|
938
|
-
StepCompleteAuthentication:
|
|
939
|
-
StepCollectIdentifierComponent:
|
|
940
|
-
StepCollectPersonalInfo:
|
|
941
|
-
StepThirdPartyLoopComponent:
|
|
942
|
-
},
|
|
943
|
-
|
|
907
|
+
}, un = {
|
|
908
|
+
StepPendingComponent: Xt,
|
|
909
|
+
StepErrorComponent: ln,
|
|
910
|
+
StepStudentPersonalInfoComponent: I.lazy(() => import("./chunk/StepStudentPersonalInfo-BWv-PNZV.js")),
|
|
911
|
+
StepOverrideComponent: I.lazy(() => import("./chunk/StepOverrideComponent-26qhuhSy.js")),
|
|
912
|
+
StepAgePersonalInfoComponent: I.lazy(() => import("./chunk/StepAgePersonalInfo-CAIDFrDE.js")),
|
|
913
|
+
StepSeniorPersonalInfoComponent: I.lazy(() => import("./chunk/StepAgePersonalInfo-CAIDFrDE.js")),
|
|
914
|
+
StepCollectMilitaryPersonalInfoComponent: I.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-D6T97dgm.js")),
|
|
915
|
+
StepCollectMilitaryStatusComponent: I.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-D6T97dgm.js")),
|
|
916
|
+
StepActiveMilitaryPersonalInfoComponent: I.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-D6T97dgm.js")),
|
|
917
|
+
StepInactiveMilitaryPersonalInfoComponent: I.lazy(() => import("./chunk/StepCollectMilitaryPersonalInfoComponent-D6T97dgm.js")),
|
|
918
|
+
StepDriverLicensePersonalInfoComponent: I.lazy(() => import("./chunk/StepDriverLicensePersonalInfoComponent-YQti7kE2.js")),
|
|
919
|
+
StepEmploymentPersonalInfoComponent: I.lazy(() => import("./chunk/StepEmploymentPersonalInfo-CZcQrgZ1.js")),
|
|
920
|
+
StepFirstResponderPersonalInfoComponent: I.lazy(() => import("./chunk/StepFirstResponderPersonalInfo-Bj8MmUcv.js")),
|
|
921
|
+
StepGeneralIdentityPersonalInfoComponent: I.lazy(() => import("./chunk/StepGeneralIdentityPersonalInfoComponent-B71tWz0y.js")),
|
|
922
|
+
StepHybridIdentityPersonalInfoComponent: I.lazy(() => import("./chunk/StepHybridIdentityPersonalInfoComponent-BYH7Mblt.js")),
|
|
923
|
+
StepIDCheckLoopComponent: I.lazy(() => import("./chunk/StepIDCheckLoop-C_0Hefcj.js")),
|
|
924
|
+
StepLicensedProfessionalPersonalInfoComponent: I.lazy(() => import("./chunk/StepLicensedProfessionalPersonalInfo-CDynSBlS.js")),
|
|
925
|
+
StepLowIncomePersonalInfoComponent: I.lazy(() => import("./chunk/StepLowIncomePersonalInfo-DBMFpp9P.js")),
|
|
926
|
+
StepMedicalProfessionalPersonalInfoComponent: I.lazy(() => import("./chunk/StepMedicalProfessionalPersonalInfo-D8mGJQE6.js")),
|
|
927
|
+
StepMemberPersonalInfoComponent: I.lazy(() => import("./chunk/StepMemberPersonalInfo-BH5mmkWH.js")),
|
|
928
|
+
StepConsolationComponent: I.lazy(() => import("./chunk/StepConsolation-CByemu8y.js")),
|
|
929
|
+
StepDocUploadComponent: I.lazy(() => import("./chunk/StepDocUpload-BHhuxyj8.js")),
|
|
930
|
+
StepEmailLoopComponent: I.lazy(() => import("./chunk/StepEmailLoop-7CKgLe_b.js")),
|
|
931
|
+
StepPendingEmailLoopComponent: I.lazy(() => import("./chunk/EmailLoopPending-pEFU9RKD.js").then((e) => e.n)),
|
|
932
|
+
StepMoverPersonalInfoComponent: I.lazy(() => import("./chunk/StepMoverPersonalInfo-C0QTvowi.js")),
|
|
933
|
+
StepSMSLoopComponent: I.lazy(() => import("./chunk/StepSMSLoop-8bT0iiE_.js")),
|
|
934
|
+
StepSocialSecurity: I.lazy(() => import("./chunk/StepSocialSecurityNumber-TR-_BNnt.js")),
|
|
935
|
+
StepSSOComponent: I.lazy(() => import("./chunk/StepSSO-ZHByQpHa.js")),
|
|
936
|
+
StepSuccessComponent: I.lazy(() => import("./chunk/StepSuccess-DipyaSAH.js")),
|
|
937
|
+
StepTeacherPersonalInfoComponent: I.lazy(() => import("./chunk/StepTeacherPersonalInfo-DlzNmBFm.js")),
|
|
938
|
+
StepCompleteAuthentication: I.lazy(() => import("./chunk/StepCompleteAuthentication-BawnNriI.js")),
|
|
939
|
+
StepCollectIdentifierComponent: I.lazy(() => import("./chunk/StepCollectIdentifier--DcPBqzY.js")),
|
|
940
|
+
StepCollectPersonalInfo: I.lazy(() => import("./chunk/StepCollectPersonalInfo-Daz6gwsR.js")),
|
|
941
|
+
StepThirdPartyLoopComponent: I.lazy(() => import("./chunk/StepThirdPartyLoop-BrKuZcYb.js"))
|
|
942
|
+
}, B = (e) => (P.info("getComponent", e), Dt(e) || un[e]), dn = () => /* @__PURE__ */ (0, L.jsx)(gt, {}), fn = ({ stepToLoad: e, verificationService: t }) => {
|
|
943
|
+
P.info(`LoadStepComponent: rendering step: ${e}`);
|
|
944
944
|
let n;
|
|
945
|
-
switch ((0,
|
|
945
|
+
switch ((0, I.useEffect)(() => {
|
|
946
946
|
try {
|
|
947
947
|
performance.mark(w.INITIAL_STEP_LOAD);
|
|
948
948
|
} catch {}
|
|
949
|
-
}, []),
|
|
949
|
+
}, []), I.useEffect(() => {
|
|
950
950
|
if (!["pending", "error"].includes(e)) try {
|
|
951
951
|
performance.mark(u.STEP_SEEN), f({
|
|
952
952
|
eventName: u.STEP_SEEN,
|
|
953
953
|
params: { step: e }
|
|
954
954
|
});
|
|
955
955
|
} catch (e) {
|
|
956
|
-
|
|
956
|
+
P.error(e);
|
|
957
957
|
}
|
|
958
958
|
}, [e]), e) {
|
|
959
959
|
case "collectPersonalInfo":
|
|
960
|
-
n =
|
|
960
|
+
n = B("StepCollectPersonalInfo");
|
|
961
961
|
break;
|
|
962
962
|
case "collectStudentPersonalInfo":
|
|
963
|
-
n =
|
|
963
|
+
n = B("StepStudentPersonalInfoComponent");
|
|
964
964
|
break;
|
|
965
965
|
case "collectSeniorPersonalInfo":
|
|
966
|
-
n =
|
|
966
|
+
n = B("StepSeniorPersonalInfoComponent");
|
|
967
967
|
break;
|
|
968
968
|
case "collectAgePersonalInfo":
|
|
969
|
-
n =
|
|
969
|
+
n = B("StepAgePersonalInfoComponent");
|
|
970
970
|
break;
|
|
971
971
|
case "collectTeacherPersonalInfo":
|
|
972
|
-
n =
|
|
972
|
+
n = B("StepTeacherPersonalInfoComponent");
|
|
973
973
|
break;
|
|
974
974
|
case "collectMemberPersonalInfo":
|
|
975
|
-
n =
|
|
975
|
+
n = B("StepMemberPersonalInfoComponent");
|
|
976
976
|
break;
|
|
977
977
|
case "collectMilitaryStatus":
|
|
978
|
-
n =
|
|
978
|
+
n = B("StepCollectMilitaryStatusComponent");
|
|
979
979
|
break;
|
|
980
980
|
case "collectActiveMilitaryPersonalInfo":
|
|
981
|
-
n =
|
|
981
|
+
n = B("StepActiveMilitaryPersonalInfoComponent");
|
|
982
982
|
break;
|
|
983
983
|
case "collectInactiveMilitaryPersonalInfo":
|
|
984
|
-
n =
|
|
984
|
+
n = B("StepInactiveMilitaryPersonalInfoComponent");
|
|
985
985
|
break;
|
|
986
986
|
case "collectMilitaryPersonalInfo":
|
|
987
|
-
n =
|
|
987
|
+
n = B("StepCollectMilitaryPersonalInfoComponent");
|
|
988
988
|
break;
|
|
989
989
|
case "collectFirstResponderPersonalInfo":
|
|
990
|
-
n =
|
|
990
|
+
n = B("StepFirstResponderPersonalInfoComponent");
|
|
991
991
|
break;
|
|
992
992
|
case "collectMedicalProfessionalPersonalInfo":
|
|
993
|
-
n =
|
|
993
|
+
n = B("StepMedicalProfessionalPersonalInfoComponent");
|
|
994
994
|
break;
|
|
995
995
|
case "collectEmployeePersonalInfo":
|
|
996
|
-
n =
|
|
996
|
+
n = B("StepEmploymentPersonalInfoComponent");
|
|
997
997
|
break;
|
|
998
998
|
case "collectDriverLicensePersonalInfo":
|
|
999
|
-
n =
|
|
999
|
+
n = B("StepDriverLicensePersonalInfoComponent");
|
|
1000
1000
|
break;
|
|
1001
1001
|
case "collectGeneralIdentityPersonalInfo":
|
|
1002
|
-
n =
|
|
1002
|
+
n = B("StepGeneralIdentityPersonalInfoComponent");
|
|
1003
1003
|
break;
|
|
1004
1004
|
case "collectHybridIdentityPersonalInfo":
|
|
1005
|
-
n =
|
|
1005
|
+
n = B("StepHybridIdentityPersonalInfoComponent");
|
|
1006
1006
|
break;
|
|
1007
1007
|
case "collectLicensedProfessionalPersonalInfo":
|
|
1008
|
-
n =
|
|
1008
|
+
n = B("StepLicensedProfessionalPersonalInfoComponent");
|
|
1009
1009
|
break;
|
|
1010
1010
|
case "collectMoverPersonalInfo":
|
|
1011
|
-
n =
|
|
1011
|
+
n = B("StepMoverPersonalInfoComponent");
|
|
1012
1012
|
break;
|
|
1013
1013
|
case "collectLowIncomePersonalInfo":
|
|
1014
|
-
n =
|
|
1014
|
+
n = B("StepLowIncomePersonalInfoComponent");
|
|
1015
1015
|
break;
|
|
1016
1016
|
case "collectSocialSecurityNumber":
|
|
1017
|
-
n =
|
|
1017
|
+
n = B("StepSocialSecurity");
|
|
1018
1018
|
break;
|
|
1019
1019
|
case "success":
|
|
1020
|
-
n =
|
|
1020
|
+
n = B("StepSuccessComponent");
|
|
1021
1021
|
break;
|
|
1022
1022
|
case "consolation":
|
|
1023
|
-
n =
|
|
1023
|
+
n = B("StepConsolationComponent");
|
|
1024
1024
|
break;
|
|
1025
1025
|
case "override":
|
|
1026
|
-
n =
|
|
1026
|
+
n = B("StepOverrideComponent");
|
|
1027
1027
|
break;
|
|
1028
1028
|
case "docUpload":
|
|
1029
|
-
n =
|
|
1029
|
+
n = B("StepDocUploadComponent");
|
|
1030
1030
|
break;
|
|
1031
1031
|
case "pending":
|
|
1032
|
-
n =
|
|
1032
|
+
n = B("StepPendingComponent");
|
|
1033
1033
|
break;
|
|
1034
1034
|
case "sso":
|
|
1035
|
-
n =
|
|
1035
|
+
n = B("StepSSOComponent");
|
|
1036
1036
|
break;
|
|
1037
1037
|
case "thirdPartyLoop":
|
|
1038
|
-
n =
|
|
1038
|
+
n = B("StepThirdPartyLoopComponent");
|
|
1039
1039
|
break;
|
|
1040
1040
|
case "smsLoop":
|
|
1041
|
-
n =
|
|
1041
|
+
n = B("StepSMSLoopComponent");
|
|
1042
1042
|
break;
|
|
1043
1043
|
case "emailLoop":
|
|
1044
|
-
n =
|
|
1044
|
+
n = B("StepEmailLoopComponent");
|
|
1045
1045
|
break;
|
|
1046
1046
|
case "idCheckLoop":
|
|
1047
|
-
n =
|
|
1047
|
+
n = B("StepIDCheckLoopComponent");
|
|
1048
1048
|
break;
|
|
1049
1049
|
case "collectIdentifier":
|
|
1050
|
-
n =
|
|
1050
|
+
n = B("StepCollectIdentifierComponent");
|
|
1051
1051
|
break;
|
|
1052
1052
|
case "completeAuthentication":
|
|
1053
|
-
n =
|
|
1053
|
+
n = B("StepCompleteAuthentication");
|
|
1054
1054
|
break;
|
|
1055
|
-
case "missingRequiredMetadata": return n =
|
|
1055
|
+
case "missingRequiredMetadata": return n = B("StepErrorComponent"), /* @__PURE__ */ (0, L.jsx)(n, {
|
|
1056
1056
|
verificationService: t,
|
|
1057
1057
|
errorId: "missingRequiredMetadata"
|
|
1058
1058
|
});
|
|
1059
|
-
case "missingRequiredExternalId": return n =
|
|
1059
|
+
case "missingRequiredExternalId": return n = B("StepErrorComponent"), /* @__PURE__ */ (0, L.jsx)(n, {
|
|
1060
1060
|
verificationService: t,
|
|
1061
1061
|
errorId: "missingRequiredExternalId"
|
|
1062
1062
|
});
|
|
1063
1063
|
case "error":
|
|
1064
|
-
n =
|
|
1064
|
+
n = B("StepErrorComponent");
|
|
1065
1065
|
break;
|
|
1066
1066
|
case "cancelDocUpload":
|
|
1067
1067
|
case "cancelEmailLoop":
|
|
1068
1068
|
case "cancelSocialSecurityNumber":
|
|
1069
1069
|
case "docReviewLimitExceeded":
|
|
1070
|
-
case "emailLoopCollectOrganizationEmail": return
|
|
1070
|
+
case "emailLoopCollectOrganizationEmail": return P.error("Attempted to load unexpected step", e), /* @__PURE__ */ (0, L.jsx)(ln, {
|
|
1071
1071
|
verificationService: t,
|
|
1072
1072
|
errorId: "invalidStep"
|
|
1073
1073
|
});
|
|
1074
|
-
default: return
|
|
1074
|
+
default: return P.error("Unable to load step", e), /* @__PURE__ */ (0, L.jsx)(ln, {
|
|
1075
1075
|
verificationService: t,
|
|
1076
1076
|
errorId: "invalidStep"
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
|
-
return /* @__PURE__ */ (0,
|
|
1080
|
-
fallback:
|
|
1081
|
-
children: /* @__PURE__ */ (0,
|
|
1079
|
+
return /* @__PURE__ */ (0, L.jsx)(I.Suspense, {
|
|
1080
|
+
fallback: dn(),
|
|
1081
|
+
children: /* @__PURE__ */ (0, L.jsx)(n, { verificationService: t })
|
|
1082
1082
|
});
|
|
1083
|
-
},
|
|
1083
|
+
}, pn = ({ dangerouslySetInnerHTML: e, ...t }) => e ? /* @__PURE__ */ (0, L.jsx)("span", {
|
|
1084
1084
|
dangerouslySetInnerHTML: e,
|
|
1085
1085
|
...t
|
|
1086
|
-
}) : /* @__PURE__ */ (0,
|
|
1086
|
+
}) : /* @__PURE__ */ (0, L.jsx)(I.Fragment, { ...t }), mn = ({ verificationService: e }) => e.programTheme?.isTestMode ? /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
1087
1087
|
className: "sid-test-mode-flag sid-l-container sid-l-horz-center",
|
|
1088
1088
|
role: "note",
|
|
1089
|
-
children: ["Test Mode", /* @__PURE__ */ (0,
|
|
1089
|
+
children: ["Test Mode", /* @__PURE__ */ (0, L.jsx)(me, {
|
|
1090
1090
|
className: "sid-test-mode-flag__link",
|
|
1091
1091
|
href: "https://developer.sheerid.com/getting-started#test-program",
|
|
1092
1092
|
"aria-label": "learn more about a sheerid test mode program",
|
|
1093
1093
|
children: "(learn more)"
|
|
1094
1094
|
})]
|
|
1095
|
-
}) : null,
|
|
1095
|
+
}) : null, hn = ({ verificationService: e, title: t, children: n, fallbackLogo: r, classNameIdentifier: i = void 0 }) => /* @__PURE__ */ (0, L.jsxs)("header", {
|
|
1096
1096
|
className: "sid-header",
|
|
1097
1097
|
children: [
|
|
1098
|
-
/* @__PURE__ */ (0,
|
|
1098
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
1099
1099
|
className: `sid-logo-container sid-l-horz-center ${i ? `sid-${i}-logo-container` : ""}`,
|
|
1100
|
-
children: /* @__PURE__ */ (0,
|
|
1100
|
+
children: /* @__PURE__ */ (0, L.jsx)(ct, {
|
|
1101
1101
|
verificationService: e,
|
|
1102
1102
|
fallbackLogo: r
|
|
1103
1103
|
})
|
|
1104
1104
|
}),
|
|
1105
|
-
/* @__PURE__ */ (0,
|
|
1105
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
1106
1106
|
className: `sid-header__title sid-l-horz-center ${i ? `sid-${i}-header` : ""}`,
|
|
1107
|
-
children: /* @__PURE__ */ (0,
|
|
1107
|
+
children: /* @__PURE__ */ (0, L.jsx)("h1", { children: t })
|
|
1108
1108
|
}),
|
|
1109
1109
|
n
|
|
1110
1110
|
]
|
|
1111
1111
|
});
|
|
1112
1112
|
typeof window < "u" && window.document && window.document.createElement;
|
|
1113
|
-
function
|
|
1113
|
+
function V(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
1114
1114
|
return function(r) {
|
|
1115
1115
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
1116
1116
|
};
|
|
1117
1117
|
}
|
|
1118
1118
|
//#endregion
|
|
1119
1119
|
//#region ../node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
1120
|
-
function
|
|
1120
|
+
function gn(e, t) {
|
|
1121
1121
|
if (typeof e == "function") return e(t);
|
|
1122
1122
|
e != null && (e.current = t);
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1124
|
+
function _n(...e) {
|
|
1125
1125
|
return (t) => {
|
|
1126
1126
|
let n = !1, r = e.map((e) => {
|
|
1127
|
-
let r =
|
|
1127
|
+
let r = gn(e, t);
|
|
1128
1128
|
return !n && typeof r == "function" && (n = !0), r;
|
|
1129
1129
|
});
|
|
1130
1130
|
if (n) return () => {
|
|
1131
1131
|
for (let t = 0; t < r.length; t++) {
|
|
1132
1132
|
let n = r[t];
|
|
1133
|
-
typeof n == "function" ? n() :
|
|
1133
|
+
typeof n == "function" ? n() : gn(e[t], null);
|
|
1134
1134
|
}
|
|
1135
1135
|
};
|
|
1136
1136
|
};
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1138
|
+
function H(...e) {
|
|
1139
|
+
return I.useCallback(_n(...e), e);
|
|
1140
1140
|
}
|
|
1141
1141
|
//#endregion
|
|
1142
1142
|
//#region ../node_modules/@radix-ui/react-context/dist/index.mjs
|
|
1143
|
-
function
|
|
1143
|
+
function vn(e, t = []) {
|
|
1144
1144
|
let n = [];
|
|
1145
1145
|
function r(t, r) {
|
|
1146
|
-
let i =
|
|
1146
|
+
let i = I.createContext(r), a = n.length;
|
|
1147
1147
|
n = [...n, r];
|
|
1148
1148
|
let o = (t) => {
|
|
1149
|
-
let { scope: n, children: r, ...o } = t, s = n?.[e]?.[a] || i, c =
|
|
1150
|
-
return /* @__PURE__ */ (0,
|
|
1149
|
+
let { scope: n, children: r, ...o } = t, s = n?.[e]?.[a] || i, c = I.useMemo(() => o, Object.values(o));
|
|
1150
|
+
return /* @__PURE__ */ (0, L.jsx)(s.Provider, {
|
|
1151
1151
|
value: c,
|
|
1152
1152
|
children: r
|
|
1153
1153
|
});
|
|
1154
1154
|
};
|
|
1155
1155
|
o.displayName = t + "Provider";
|
|
1156
1156
|
function s(n, o) {
|
|
1157
|
-
let s = o?.[e]?.[a] || i, c =
|
|
1157
|
+
let s = o?.[e]?.[a] || i, c = I.useContext(s);
|
|
1158
1158
|
if (c) return c;
|
|
1159
1159
|
if (r !== void 0) return r;
|
|
1160
1160
|
throw Error(`\`${n}\` must be used within \`${t}\``);
|
|
@@ -1162,18 +1162,18 @@ function yn(e, t = []) {
|
|
|
1162
1162
|
return [o, s];
|
|
1163
1163
|
}
|
|
1164
1164
|
let i = () => {
|
|
1165
|
-
let t = n.map((e) =>
|
|
1165
|
+
let t = n.map((e) => I.createContext(e));
|
|
1166
1166
|
return function(n) {
|
|
1167
1167
|
let r = n?.[e] || t;
|
|
1168
|
-
return
|
|
1168
|
+
return I.useMemo(() => ({ [`__scope${e}`]: {
|
|
1169
1169
|
...n,
|
|
1170
1170
|
[e]: r
|
|
1171
1171
|
} }), [n, r]);
|
|
1172
1172
|
};
|
|
1173
1173
|
};
|
|
1174
|
-
return i.scopeName = e, [r,
|
|
1174
|
+
return i.scopeName = e, [r, yn(i, ...t)];
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function yn(...e) {
|
|
1177
1177
|
let t = e[0];
|
|
1178
1178
|
if (e.length === 1) return t;
|
|
1179
1179
|
let n = () => {
|
|
@@ -1189,7 +1189,7 @@ function bn(...e) {
|
|
|
1189
1189
|
...i
|
|
1190
1190
|
};
|
|
1191
1191
|
}, {});
|
|
1192
|
-
return
|
|
1192
|
+
return I.useMemo(() => ({ [`__scope${t.scopeName}`]: r }), [r]);
|
|
1193
1193
|
};
|
|
1194
1194
|
};
|
|
1195
1195
|
return n.scopeName = t.scopeName, n;
|
|
@@ -1197,18 +1197,18 @@ function bn(...e) {
|
|
|
1197
1197
|
//#endregion
|
|
1198
1198
|
//#region ../node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
1199
1199
|
// @__NO_SIDE_EFFECTS__
|
|
1200
|
-
function
|
|
1201
|
-
let t = /* @__PURE__ */
|
|
1202
|
-
let { children: r, ...i } = e, a =
|
|
1200
|
+
function bn(e) {
|
|
1201
|
+
let t = /* @__PURE__ */ xn(e), n = I.forwardRef((e, n) => {
|
|
1202
|
+
let { children: r, ...i } = e, a = I.Children.toArray(r), o = a.find(Cn);
|
|
1203
1203
|
if (o) {
|
|
1204
|
-
let e = o.props.children, r = a.map((t) => t === o ?
|
|
1205
|
-
return /* @__PURE__ */ (0,
|
|
1204
|
+
let e = o.props.children, r = a.map((t) => t === o ? I.Children.count(e) > 1 ? I.Children.only(null) : I.isValidElement(e) ? e.props.children : null : t);
|
|
1205
|
+
return /* @__PURE__ */ (0, L.jsx)(t, {
|
|
1206
1206
|
...i,
|
|
1207
1207
|
ref: n,
|
|
1208
|
-
children:
|
|
1208
|
+
children: I.isValidElement(e) ? I.cloneElement(e, void 0, r) : null
|
|
1209
1209
|
});
|
|
1210
1210
|
}
|
|
1211
|
-
return /* @__PURE__ */ (0,
|
|
1211
|
+
return /* @__PURE__ */ (0, L.jsx)(t, {
|
|
1212
1212
|
...i,
|
|
1213
1213
|
ref: n,
|
|
1214
1214
|
children: r
|
|
@@ -1217,22 +1217,22 @@ function xn(e) {
|
|
|
1217
1217
|
return n.displayName = `${e}.Slot`, n;
|
|
1218
1218
|
}
|
|
1219
1219
|
// @__NO_SIDE_EFFECTS__
|
|
1220
|
-
function
|
|
1221
|
-
let t =
|
|
1220
|
+
function xn(e) {
|
|
1221
|
+
let t = I.forwardRef((e, t) => {
|
|
1222
1222
|
let { children: n, ...r } = e;
|
|
1223
|
-
if (
|
|
1224
|
-
let e =
|
|
1225
|
-
return n.type !==
|
|
1223
|
+
if (I.isValidElement(n)) {
|
|
1224
|
+
let e = Tn(n), i = wn(r, n.props);
|
|
1225
|
+
return n.type !== I.Fragment && (i.ref = t ? _n(t, e) : e), I.cloneElement(n, i);
|
|
1226
1226
|
}
|
|
1227
|
-
return
|
|
1227
|
+
return I.Children.count(n) > 1 ? I.Children.only(null) : null;
|
|
1228
1228
|
});
|
|
1229
1229
|
return t.displayName = `${e}.SlotClone`, t;
|
|
1230
1230
|
}
|
|
1231
|
-
var
|
|
1232
|
-
function
|
|
1233
|
-
return
|
|
1231
|
+
var Sn = Symbol("radix.slottable");
|
|
1232
|
+
function Cn(e) {
|
|
1233
|
+
return I.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Sn;
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function wn(e, t) {
|
|
1236
1236
|
let n = { ...t };
|
|
1237
1237
|
for (let r in t) {
|
|
1238
1238
|
let i = e[r], a = t[r];
|
|
@@ -1249,13 +1249,13 @@ function Tn(e, t) {
|
|
|
1249
1249
|
...n
|
|
1250
1250
|
};
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function Tn(e) {
|
|
1253
1253
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1254
1254
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1255
1255
|
}
|
|
1256
1256
|
//#endregion
|
|
1257
1257
|
//#region ../node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
1258
|
-
var
|
|
1258
|
+
var U = [
|
|
1259
1259
|
"a",
|
|
1260
1260
|
"button",
|
|
1261
1261
|
"div",
|
|
@@ -1274,9 +1274,9 @@ var H = [
|
|
|
1274
1274
|
"svg",
|
|
1275
1275
|
"ul"
|
|
1276
1276
|
].reduce((e, t) => {
|
|
1277
|
-
let n = /* @__PURE__ */
|
|
1277
|
+
let n = /* @__PURE__ */ bn(`Primitive.${t}`), r = I.forwardRef((e, r) => {
|
|
1278
1278
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
1279
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ (0,
|
|
1279
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ (0, L.jsx)(o, {
|
|
1280
1280
|
...a,
|
|
1281
1281
|
ref: r
|
|
1282
1282
|
});
|
|
@@ -1286,22 +1286,22 @@ var H = [
|
|
|
1286
1286
|
[t]: r
|
|
1287
1287
|
};
|
|
1288
1288
|
}, {});
|
|
1289
|
-
function
|
|
1290
|
-
e &&
|
|
1289
|
+
function En(e, t) {
|
|
1290
|
+
e && ft.flushSync(() => e.dispatchEvent(t));
|
|
1291
1291
|
}
|
|
1292
1292
|
//#endregion
|
|
1293
1293
|
//#region ../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
1294
|
-
function
|
|
1295
|
-
let t =
|
|
1296
|
-
return
|
|
1294
|
+
function Dn(e) {
|
|
1295
|
+
let t = I.useRef(e);
|
|
1296
|
+
return I.useEffect(() => {
|
|
1297
1297
|
t.current = e;
|
|
1298
|
-
}),
|
|
1298
|
+
}), I.useMemo(() => (...e) => t.current?.(...e), []);
|
|
1299
1299
|
}
|
|
1300
1300
|
//#endregion
|
|
1301
1301
|
//#region ../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
1302
|
-
function
|
|
1303
|
-
let n =
|
|
1304
|
-
|
|
1302
|
+
function On(e, t = globalThis?.document) {
|
|
1303
|
+
let n = Dn(e);
|
|
1304
|
+
I.useEffect(() => {
|
|
1305
1305
|
let e = (e) => {
|
|
1306
1306
|
e.key === "Escape" && n(e);
|
|
1307
1307
|
};
|
|
@@ -1310,67 +1310,67 @@ function kn(e, t = globalThis?.document) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
//#endregion
|
|
1312
1312
|
//#region ../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
1313
|
-
var
|
|
1313
|
+
var kn = "DismissableLayer", An = "dismissableLayer.update", jn = "dismissableLayer.pointerDownOutside", Mn = "dismissableLayer.focusOutside", Nn, Pn = I.createContext({
|
|
1314
1314
|
layers: /* @__PURE__ */ new Set(),
|
|
1315
1315
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
1316
1316
|
branches: /* @__PURE__ */ new Set()
|
|
1317
|
-
}),
|
|
1318
|
-
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l =
|
|
1317
|
+
}), Fn = I.forwardRef((e, t) => {
|
|
1318
|
+
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l = I.useContext(Pn), [u, d] = I.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, p] = I.useState({}), m = H(t, (e) => d(e)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), _ = h.indexOf(g), v = u ? h.indexOf(u) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, b = v >= _, x = Rn((e) => {
|
|
1319
1319
|
let t = e.target, n = [...l.branches].some((e) => e.contains(t));
|
|
1320
1320
|
!b || n || (i?.(e), o?.(e), e.defaultPrevented || s?.());
|
|
1321
|
-
}, f), S =
|
|
1321
|
+
}, f), S = zn((e) => {
|
|
1322
1322
|
let t = e.target;
|
|
1323
1323
|
[...l.branches].some((e) => e.contains(t)) || (a?.(e), o?.(e), e.defaultPrevented || s?.());
|
|
1324
1324
|
}, f);
|
|
1325
|
-
return
|
|
1325
|
+
return On((e) => {
|
|
1326
1326
|
v === l.layers.size - 1 && (r?.(e), !e.defaultPrevented && s && (e.preventDefault(), s()));
|
|
1327
|
-
}, f),
|
|
1328
|
-
if (u) return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
1329
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents =
|
|
1327
|
+
}, f), I.useEffect(() => {
|
|
1328
|
+
if (u) return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Nn = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), Bn(), () => {
|
|
1329
|
+
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = Nn);
|
|
1330
1330
|
};
|
|
1331
1331
|
}, [
|
|
1332
1332
|
u,
|
|
1333
1333
|
f,
|
|
1334
1334
|
n,
|
|
1335
1335
|
l
|
|
1336
|
-
]),
|
|
1337
|
-
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u),
|
|
1338
|
-
}, [u, l]),
|
|
1336
|
+
]), I.useEffect(() => () => {
|
|
1337
|
+
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), Bn());
|
|
1338
|
+
}, [u, l]), I.useEffect(() => {
|
|
1339
1339
|
let e = () => p({});
|
|
1340
|
-
return document.addEventListener(
|
|
1341
|
-
}, []), /* @__PURE__ */ (0,
|
|
1340
|
+
return document.addEventListener(An, e), () => document.removeEventListener(An, e);
|
|
1341
|
+
}, []), /* @__PURE__ */ (0, L.jsx)(U.div, {
|
|
1342
1342
|
...c,
|
|
1343
1343
|
ref: m,
|
|
1344
1344
|
style: {
|
|
1345
1345
|
pointerEvents: y ? b ? "auto" : "none" : void 0,
|
|
1346
1346
|
...e.style
|
|
1347
1347
|
},
|
|
1348
|
-
onFocusCapture:
|
|
1349
|
-
onBlurCapture:
|
|
1350
|
-
onPointerDownCapture:
|
|
1348
|
+
onFocusCapture: V(e.onFocusCapture, S.onFocusCapture),
|
|
1349
|
+
onBlurCapture: V(e.onBlurCapture, S.onBlurCapture),
|
|
1350
|
+
onPointerDownCapture: V(e.onPointerDownCapture, x.onPointerDownCapture)
|
|
1351
1351
|
});
|
|
1352
1352
|
});
|
|
1353
|
-
|
|
1354
|
-
var
|
|
1355
|
-
let n =
|
|
1356
|
-
return
|
|
1353
|
+
Fn.displayName = kn;
|
|
1354
|
+
var In = "DismissableLayerBranch", Ln = I.forwardRef((e, t) => {
|
|
1355
|
+
let n = I.useContext(Pn), r = I.useRef(null), i = H(t, r);
|
|
1356
|
+
return I.useEffect(() => {
|
|
1357
1357
|
let e = r.current;
|
|
1358
1358
|
if (e) return n.branches.add(e), () => {
|
|
1359
1359
|
n.branches.delete(e);
|
|
1360
1360
|
};
|
|
1361
|
-
}, [n.branches]), /* @__PURE__ */ (0,
|
|
1361
|
+
}, [n.branches]), /* @__PURE__ */ (0, L.jsx)(U.div, {
|
|
1362
1362
|
...e,
|
|
1363
1363
|
ref: i
|
|
1364
1364
|
});
|
|
1365
1365
|
});
|
|
1366
|
-
|
|
1367
|
-
function
|
|
1368
|
-
let n =
|
|
1369
|
-
return
|
|
1366
|
+
Ln.displayName = In;
|
|
1367
|
+
function Rn(e, t = globalThis?.document) {
|
|
1368
|
+
let n = Dn(e), r = I.useRef(!1), i = I.useRef(() => {});
|
|
1369
|
+
return I.useEffect(() => {
|
|
1370
1370
|
let e = (e) => {
|
|
1371
1371
|
if (e.target && !r.current) {
|
|
1372
1372
|
let r = function() {
|
|
1373
|
-
|
|
1373
|
+
Vn(jn, n, a, { discrete: !0 });
|
|
1374
1374
|
}, a = { originalEvent: e };
|
|
1375
1375
|
e.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = r, t.addEventListener("click", i.current, { once: !0 })) : r();
|
|
1376
1376
|
} else t.removeEventListener("click", i.current);
|
|
@@ -1383,11 +1383,11 @@ function zn(e, t = globalThis?.document) {
|
|
|
1383
1383
|
};
|
|
1384
1384
|
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1387
|
-
let n =
|
|
1388
|
-
return
|
|
1386
|
+
function zn(e, t = globalThis?.document) {
|
|
1387
|
+
let n = Dn(e), r = I.useRef(!1);
|
|
1388
|
+
return I.useEffect(() => {
|
|
1389
1389
|
let e = (e) => {
|
|
1390
|
-
e.target && !r.current &&
|
|
1390
|
+
e.target && !r.current && Vn(Mn, n, { originalEvent: e }, { discrete: !1 });
|
|
1391
1391
|
};
|
|
1392
1392
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
1393
1393
|
}, [t, n]), {
|
|
@@ -1395,40 +1395,40 @@ function Bn(e, t = globalThis?.document) {
|
|
|
1395
1395
|
onBlurCapture: () => r.current = !1
|
|
1396
1396
|
};
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1399
|
-
let e = new CustomEvent(
|
|
1398
|
+
function Bn() {
|
|
1399
|
+
let e = new CustomEvent(An);
|
|
1400
1400
|
document.dispatchEvent(e);
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Vn(e, t, n, { discrete: r }) {
|
|
1403
1403
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
1404
1404
|
bubbles: !1,
|
|
1405
1405
|
cancelable: !0,
|
|
1406
1406
|
detail: n
|
|
1407
1407
|
});
|
|
1408
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
1408
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? En(i, a) : i.dispatchEvent(a);
|
|
1409
1409
|
}
|
|
1410
1410
|
//#endregion
|
|
1411
1411
|
//#region ../node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
1412
|
-
var
|
|
1413
|
-
function
|
|
1414
|
-
|
|
1412
|
+
var Hn = 0;
|
|
1413
|
+
function Un() {
|
|
1414
|
+
I.useEffect(() => {
|
|
1415
1415
|
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
1416
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
1417
|
-
|
|
1416
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Wn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Wn()), Hn++, () => {
|
|
1417
|
+
Hn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), Hn--;
|
|
1418
1418
|
};
|
|
1419
1419
|
}, []);
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function Wn() {
|
|
1422
1422
|
let e = document.createElement("span");
|
|
1423
1423
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
1424
1424
|
}
|
|
1425
1425
|
//#endregion
|
|
1426
1426
|
//#region ../node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
1427
|
-
var
|
|
1427
|
+
var Gn = "focusScope.autoFocusOnMount", Kn = "focusScope.autoFocusOnUnmount", qn = {
|
|
1428
1428
|
bubbles: !1,
|
|
1429
1429
|
cancelable: !0
|
|
1430
|
-
},
|
|
1431
|
-
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...o } = e, [s, c] =
|
|
1430
|
+
}, Jn = "FocusScope", Yn = I.forwardRef((e, t) => {
|
|
1431
|
+
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...o } = e, [s, c] = I.useState(null), l = Dn(i), u = Dn(a), d = I.useRef(null), f = H(t, (e) => c(e)), p = I.useRef({
|
|
1432
1432
|
paused: !1,
|
|
1433
1433
|
pause() {
|
|
1434
1434
|
this.paused = !0;
|
|
@@ -1437,18 +1437,18 @@ var Kn = "focusScope.autoFocusOnMount", qn = "focusScope.autoFocusOnUnmount", Jn
|
|
|
1437
1437
|
this.paused = !1;
|
|
1438
1438
|
}
|
|
1439
1439
|
}).current;
|
|
1440
|
-
|
|
1440
|
+
I.useEffect(() => {
|
|
1441
1441
|
if (r) {
|
|
1442
1442
|
let e = function(e) {
|
|
1443
1443
|
if (p.paused || !s) return;
|
|
1444
1444
|
let t = e.target;
|
|
1445
|
-
s.contains(t) ? d.current = t :
|
|
1445
|
+
s.contains(t) ? d.current = t : nr(d.current, { select: !0 });
|
|
1446
1446
|
}, t = function(e) {
|
|
1447
1447
|
if (p.paused || !s) return;
|
|
1448
1448
|
let t = e.relatedTarget;
|
|
1449
|
-
t !== null && (s.contains(t) ||
|
|
1449
|
+
t !== null && (s.contains(t) || nr(d.current, { select: !0 }));
|
|
1450
1450
|
}, n = function(e) {
|
|
1451
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
1451
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && nr(s);
|
|
1452
1452
|
};
|
|
1453
1453
|
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
1454
1454
|
let r = new MutationObserver(n);
|
|
@@ -1463,18 +1463,18 @@ var Kn = "focusScope.autoFocusOnMount", qn = "focusScope.autoFocusOnUnmount", Jn
|
|
|
1463
1463
|
r,
|
|
1464
1464
|
s,
|
|
1465
1465
|
p.paused
|
|
1466
|
-
]),
|
|
1466
|
+
]), I.useEffect(() => {
|
|
1467
1467
|
if (s) {
|
|
1468
|
-
|
|
1468
|
+
rr.add(p);
|
|
1469
1469
|
let e = document.activeElement;
|
|
1470
1470
|
if (!s.contains(e)) {
|
|
1471
|
-
let t = new CustomEvent(
|
|
1472
|
-
s.addEventListener(
|
|
1471
|
+
let t = new CustomEvent(Gn, qn);
|
|
1472
|
+
s.addEventListener(Gn, l), s.dispatchEvent(t), t.defaultPrevented || (Xn(or(Qn(s)), { select: !0 }), document.activeElement === e && nr(s));
|
|
1473
1473
|
}
|
|
1474
1474
|
return () => {
|
|
1475
|
-
s.removeEventListener(
|
|
1476
|
-
let t = new CustomEvent(
|
|
1477
|
-
s.addEventListener(
|
|
1475
|
+
s.removeEventListener(Gn, l), setTimeout(() => {
|
|
1476
|
+
let t = new CustomEvent(Kn, qn);
|
|
1477
|
+
s.addEventListener(Kn, u), s.dispatchEvent(t), t.defaultPrevented || nr(e ?? document.body, { select: !0 }), s.removeEventListener(Kn, u), rr.remove(p);
|
|
1478
1478
|
}, 0);
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
@@ -1484,35 +1484,35 @@ var Kn = "focusScope.autoFocusOnMount", qn = "focusScope.autoFocusOnUnmount", Jn
|
|
|
1484
1484
|
u,
|
|
1485
1485
|
p
|
|
1486
1486
|
]);
|
|
1487
|
-
let m =
|
|
1487
|
+
let m = I.useCallback((e) => {
|
|
1488
1488
|
if (!n && !r || p.paused) return;
|
|
1489
1489
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, i = document.activeElement;
|
|
1490
1490
|
if (t && i) {
|
|
1491
|
-
let t = e.currentTarget, [r, a] =
|
|
1492
|
-
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n &&
|
|
1491
|
+
let t = e.currentTarget, [r, a] = Zn(t);
|
|
1492
|
+
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n && nr(r, { select: !0 })) : e.shiftKey && i === r && (e.preventDefault(), n && nr(a, { select: !0 })) : i === t && e.preventDefault();
|
|
1493
1493
|
}
|
|
1494
1494
|
}, [
|
|
1495
1495
|
n,
|
|
1496
1496
|
r,
|
|
1497
1497
|
p.paused
|
|
1498
1498
|
]);
|
|
1499
|
-
return /* @__PURE__ */ (0,
|
|
1499
|
+
return /* @__PURE__ */ (0, L.jsx)(U.div, {
|
|
1500
1500
|
tabIndex: -1,
|
|
1501
1501
|
...o,
|
|
1502
1502
|
ref: f,
|
|
1503
1503
|
onKeyDown: m
|
|
1504
1504
|
});
|
|
1505
1505
|
});
|
|
1506
|
-
|
|
1507
|
-
function
|
|
1506
|
+
Yn.displayName = Jn;
|
|
1507
|
+
function Xn(e, { select: t = !1 } = {}) {
|
|
1508
1508
|
let n = document.activeElement;
|
|
1509
|
-
for (let r of e) if (
|
|
1509
|
+
for (let r of e) if (nr(r, { select: t }), document.activeElement !== n) return;
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1512
|
-
let t =
|
|
1513
|
-
return [
|
|
1511
|
+
function Zn(e) {
|
|
1512
|
+
let t = Qn(e);
|
|
1513
|
+
return [$n(t, e), $n(t.reverse(), e)];
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Qn(e) {
|
|
1516
1516
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
1517
1517
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
1518
1518
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -1520,10 +1520,10 @@ function $n(e) {
|
|
|
1520
1520
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
1521
1521
|
return t;
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1524
|
-
for (let n of e) if (!
|
|
1523
|
+
function $n(e, t) {
|
|
1524
|
+
for (let n of e) if (!er(n, { upTo: t })) return n;
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function er(e, { upTo: t }) {
|
|
1527
1527
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1528
1528
|
for (; e;) {
|
|
1529
1529
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -1532,120 +1532,120 @@ function tr(e, { upTo: t }) {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
return !1;
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function tr(e) {
|
|
1536
1536
|
return e instanceof HTMLInputElement && "select" in e;
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function nr(e, { select: t = !1 } = {}) {
|
|
1539
1539
|
if (e && e.focus) {
|
|
1540
1540
|
let n = document.activeElement;
|
|
1541
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
1541
|
+
e.focus({ preventScroll: !0 }), e !== n && tr(e) && t && e.select();
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
|
-
var
|
|
1545
|
-
function
|
|
1544
|
+
var rr = ir();
|
|
1545
|
+
function ir() {
|
|
1546
1546
|
let e = [];
|
|
1547
1547
|
return {
|
|
1548
1548
|
add(t) {
|
|
1549
1549
|
let n = e[0];
|
|
1550
|
-
t !== n && n?.pause(), e =
|
|
1550
|
+
t !== n && n?.pause(), e = ar(e, t), e.unshift(t);
|
|
1551
1551
|
},
|
|
1552
1552
|
remove(t) {
|
|
1553
|
-
e =
|
|
1553
|
+
e = ar(e, t), e[0]?.resume();
|
|
1554
1554
|
}
|
|
1555
1555
|
};
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function ar(e, t) {
|
|
1558
1558
|
let n = [...e], r = n.indexOf(t);
|
|
1559
1559
|
return r !== -1 && n.splice(r, 1), n;
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function or(e) {
|
|
1562
1562
|
return e.filter((e) => e.tagName !== "A");
|
|
1563
1563
|
}
|
|
1564
1564
|
//#endregion
|
|
1565
1565
|
//#region ../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
1566
|
-
var
|
|
1567
|
-
function
|
|
1568
|
-
let [t, n] =
|
|
1569
|
-
return
|
|
1570
|
-
e || n((e) => e ?? String(
|
|
1566
|
+
var sr = globalThis?.document ? I.useLayoutEffect : () => {}, cr = I.useId || (() => void 0), lr = 0;
|
|
1567
|
+
function ur(e) {
|
|
1568
|
+
let [t, n] = I.useState(cr());
|
|
1569
|
+
return sr(() => {
|
|
1570
|
+
e || n((e) => e ?? String(lr++));
|
|
1571
1571
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
1572
1572
|
}
|
|
1573
1573
|
//#endregion
|
|
1574
1574
|
//#region ../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
1575
|
-
var
|
|
1575
|
+
var dr = [
|
|
1576
1576
|
"top",
|
|
1577
1577
|
"right",
|
|
1578
1578
|
"bottom",
|
|
1579
1579
|
"left"
|
|
1580
|
-
],
|
|
1580
|
+
], fr = Math.min, W = Math.max, pr = Math.round, mr = Math.floor, G = (e) => ({
|
|
1581
1581
|
x: e,
|
|
1582
1582
|
y: e
|
|
1583
|
-
}),
|
|
1583
|
+
}), hr = {
|
|
1584
1584
|
left: "right",
|
|
1585
1585
|
right: "left",
|
|
1586
1586
|
bottom: "top",
|
|
1587
1587
|
top: "bottom"
|
|
1588
1588
|
};
|
|
1589
|
-
function
|
|
1590
|
-
return
|
|
1589
|
+
function gr(e, t, n) {
|
|
1590
|
+
return W(e, fr(t, n));
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function K(e, t) {
|
|
1593
1593
|
return typeof e == "function" ? e(t) : e;
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function q(e) {
|
|
1596
1596
|
return e.split("-")[0];
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function _r(e) {
|
|
1599
1599
|
return e.split("-")[1];
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function vr(e) {
|
|
1602
1602
|
return e === "x" ? "y" : "x";
|
|
1603
1603
|
}
|
|
1604
|
-
function
|
|
1604
|
+
function yr(e) {
|
|
1605
1605
|
return e === "y" ? "height" : "width";
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function J(e) {
|
|
1608
1608
|
let t = e[0];
|
|
1609
1609
|
return t === "t" || t === "b" ? "y" : "x";
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1612
|
-
return
|
|
1611
|
+
function br(e) {
|
|
1612
|
+
return vr(J(e));
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function xr(e, t, n) {
|
|
1615
1615
|
n === void 0 && (n = !1);
|
|
1616
|
-
let r =
|
|
1617
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
1616
|
+
let r = _r(e), i = br(e), a = yr(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1617
|
+
return t.reference[a] > t.floating[a] && (o = Ar(o)), [o, Ar(o)];
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1620
|
-
let t =
|
|
1619
|
+
function Sr(e) {
|
|
1620
|
+
let t = Ar(e);
|
|
1621
1621
|
return [
|
|
1622
|
-
|
|
1622
|
+
Cr(e),
|
|
1623
1623
|
t,
|
|
1624
|
-
|
|
1624
|
+
Cr(t)
|
|
1625
1625
|
];
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function Cr(e) {
|
|
1628
1628
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
1629
1629
|
}
|
|
1630
|
-
var
|
|
1631
|
-
function
|
|
1630
|
+
var wr = ["left", "right"], Tr = ["right", "left"], Er = ["top", "bottom"], Dr = ["bottom", "top"];
|
|
1631
|
+
function Or(e, t, n) {
|
|
1632
1632
|
switch (e) {
|
|
1633
1633
|
case "top":
|
|
1634
|
-
case "bottom": return n ? t ?
|
|
1634
|
+
case "bottom": return n ? t ? Tr : wr : t ? wr : Tr;
|
|
1635
1635
|
case "left":
|
|
1636
|
-
case "right": return t ?
|
|
1636
|
+
case "right": return t ? Er : Dr;
|
|
1637
1637
|
default: return [];
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1641
|
-
let i =
|
|
1642
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
1640
|
+
function kr(e, t, n, r) {
|
|
1641
|
+
let i = _r(e), a = Or(q(e), n === "start", r);
|
|
1642
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Cr)))), a;
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1645
|
-
let t =
|
|
1646
|
-
return
|
|
1644
|
+
function Ar(e) {
|
|
1645
|
+
let t = q(e);
|
|
1646
|
+
return hr[t] + e.slice(t.length);
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function jr(e) {
|
|
1649
1649
|
return {
|
|
1650
1650
|
top: 0,
|
|
1651
1651
|
right: 0,
|
|
@@ -1654,15 +1654,15 @@ function Mr(e) {
|
|
|
1654
1654
|
...e
|
|
1655
1655
|
};
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Mr(e) {
|
|
1658
1658
|
return typeof e == "number" ? {
|
|
1659
1659
|
top: e,
|
|
1660
1660
|
right: e,
|
|
1661
1661
|
bottom: e,
|
|
1662
1662
|
left: e
|
|
1663
|
-
} :
|
|
1663
|
+
} : jr(e);
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function Nr(e) {
|
|
1666
1666
|
let { x: t, y: n, width: r, height: i } = e;
|
|
1667
1667
|
return {
|
|
1668
1668
|
width: r,
|
|
@@ -1677,8 +1677,8 @@ function Pr(e) {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
//#endregion
|
|
1679
1679
|
//#region ../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
1680
|
-
function
|
|
1681
|
-
let { reference: r, floating: i } = e, a =
|
|
1680
|
+
function Pr(e, t, n) {
|
|
1681
|
+
let { reference: r, floating: i } = e, a = J(t), o = br(t), s = yr(o), c = q(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
1682
1682
|
switch (c) {
|
|
1683
1683
|
case "top":
|
|
1684
1684
|
p = {
|
|
@@ -1709,7 +1709,7 @@ function Fr(e, t, n) {
|
|
|
1709
1709
|
y: r.y
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
|
-
switch (
|
|
1712
|
+
switch (_r(t)) {
|
|
1713
1713
|
case "start":
|
|
1714
1714
|
p[o] -= f * (n && l ? -1 : 1);
|
|
1715
1715
|
break;
|
|
@@ -1719,9 +1719,9 @@ function Fr(e, t, n) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
return p;
|
|
1721
1721
|
}
|
|
1722
|
-
async function
|
|
1722
|
+
async function Fr(e, t) {
|
|
1723
1723
|
t === void 0 && (t = {});
|
|
1724
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
1724
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = K(t, e), p = Mr(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Nr(await i.getClippingRect({
|
|
1725
1725
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
1726
1726
|
boundary: c,
|
|
1727
1727
|
rootBoundary: l,
|
|
@@ -1734,7 +1734,7 @@ async function Ir(e, t) {
|
|
|
1734
1734
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
1735
1735
|
x: 1,
|
|
1736
1736
|
y: 1
|
|
1737
|
-
}, y =
|
|
1737
|
+
}, y = Nr(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1738
1738
|
elements: o,
|
|
1739
1739
|
rect: g,
|
|
1740
1740
|
offsetParent: _,
|
|
@@ -1747,15 +1747,15 @@ async function Ir(e, t) {
|
|
|
1747
1747
|
right: (y.right - h.right + p.right) / v.x
|
|
1748
1748
|
};
|
|
1749
1749
|
}
|
|
1750
|
-
var
|
|
1750
|
+
var Ir = 50, Lr = async (e, t, n) => {
|
|
1751
1751
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
1752
1752
|
...o,
|
|
1753
|
-
detectOverflow:
|
|
1753
|
+
detectOverflow: Fr
|
|
1754
1754
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
1755
1755
|
reference: e,
|
|
1756
1756
|
floating: t,
|
|
1757
1757
|
strategy: i
|
|
1758
|
-
}), { x: u, y: d } =
|
|
1758
|
+
}), { x: u, y: d } = Pr(l, r, c), f = r, p = 0, m = {};
|
|
1759
1759
|
for (let n = 0; n < a.length; n++) {
|
|
1760
1760
|
let h = a[n];
|
|
1761
1761
|
if (!h) continue;
|
|
@@ -1776,11 +1776,11 @@ var Lr = 50, Rr = async (e, t, n) => {
|
|
|
1776
1776
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
1777
1777
|
...m[g],
|
|
1778
1778
|
...b
|
|
1779
|
-
}, x && p <
|
|
1779
|
+
}, x && p < Ir && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
1780
1780
|
reference: e,
|
|
1781
1781
|
floating: t,
|
|
1782
1782
|
strategy: i
|
|
1783
|
-
}) : x.rects), {x: u, y: d} =
|
|
1783
|
+
}) : x.rects), {x: u, y: d} = Pr(l, f, c)), n = -1);
|
|
1784
1784
|
}
|
|
1785
1785
|
return {
|
|
1786
1786
|
x: u,
|
|
@@ -1789,41 +1789,41 @@ var Lr = 50, Rr = async (e, t, n) => {
|
|
|
1789
1789
|
strategy: i,
|
|
1790
1790
|
middlewareData: m
|
|
1791
1791
|
};
|
|
1792
|
-
},
|
|
1792
|
+
}, Rr = (e) => ({
|
|
1793
1793
|
name: "arrow",
|
|
1794
1794
|
options: e,
|
|
1795
1795
|
async fn(t) {
|
|
1796
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
1796
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = K(e, t) || {};
|
|
1797
1797
|
if (l == null) return {};
|
|
1798
|
-
let d =
|
|
1798
|
+
let d = Mr(u), f = {
|
|
1799
1799
|
x: n,
|
|
1800
1800
|
y: r
|
|
1801
|
-
}, p =
|
|
1801
|
+
}, p = br(i), m = yr(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
1802
1802
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
1803
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1,
|
|
1803
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = fr(d[_], T), D = fr(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, ee = gr(O, A, k), j = !c.arrow && _r(i) != null && A !== ee && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, M = j ? A < O ? A - O : A - k : 0;
|
|
1804
1804
|
return {
|
|
1805
|
-
[p]: f[p] +
|
|
1805
|
+
[p]: f[p] + M,
|
|
1806
1806
|
data: {
|
|
1807
|
-
[p]:
|
|
1808
|
-
centerOffset:
|
|
1809
|
-
...
|
|
1807
|
+
[p]: ee,
|
|
1808
|
+
centerOffset: A - ee - M,
|
|
1809
|
+
...j && { alignmentOffset: M }
|
|
1810
1810
|
},
|
|
1811
|
-
reset:
|
|
1811
|
+
reset: j
|
|
1812
1812
|
};
|
|
1813
1813
|
}
|
|
1814
|
-
}),
|
|
1814
|
+
}), zr = function(e) {
|
|
1815
1815
|
return e === void 0 && (e = {}), {
|
|
1816
1816
|
name: "flip",
|
|
1817
1817
|
options: e,
|
|
1818
1818
|
async fn(t) {
|
|
1819
1819
|
var n;
|
|
1820
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
1820
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = K(e, t);
|
|
1821
1821
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
1822
|
-
let g =
|
|
1823
|
-
!d && x && b.push(...
|
|
1822
|
+
let g = q(r), _ = J(o), v = q(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Ar(o)] : Sr(o)), x = p !== "none";
|
|
1823
|
+
!d && x && b.push(...kr(o, m, p, y));
|
|
1824
1824
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
1825
1825
|
if (l && w.push(C[g]), u) {
|
|
1826
|
-
let e =
|
|
1826
|
+
let e = xr(r, a, y);
|
|
1827
1827
|
w.push(C[e[0]], C[e[1]]);
|
|
1828
1828
|
}
|
|
1829
1829
|
if (T = [...T, {
|
|
@@ -1831,7 +1831,7 @@ var Lr = 50, Rr = async (e, t, n) => {
|
|
|
1831
1831
|
overflows: w
|
|
1832
1832
|
}], !w.every((e) => e <= 0)) {
|
|
1833
1833
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
1834
|
-
if (t && (!(u === "alignment" && _ !==
|
|
1834
|
+
if (t && (!(u === "alignment" && _ !== J(t)) || T.every((e) => J(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
1835
1835
|
data: {
|
|
1836
1836
|
index: e,
|
|
1837
1837
|
overflows: T
|
|
@@ -1843,7 +1843,7 @@ var Lr = 50, Rr = async (e, t, n) => {
|
|
|
1843
1843
|
case "bestFit": {
|
|
1844
1844
|
let e = T.filter((e) => {
|
|
1845
1845
|
if (x) {
|
|
1846
|
-
let t =
|
|
1846
|
+
let t = J(e.placement);
|
|
1847
1847
|
return t === _ || t === "y";
|
|
1848
1848
|
}
|
|
1849
1849
|
return !0;
|
|
@@ -1861,7 +1861,7 @@ var Lr = 50, Rr = async (e, t, n) => {
|
|
|
1861
1861
|
}
|
|
1862
1862
|
};
|
|
1863
1863
|
};
|
|
1864
|
-
function
|
|
1864
|
+
function Br(e, t) {
|
|
1865
1865
|
return {
|
|
1866
1866
|
top: e.top - t.height,
|
|
1867
1867
|
right: e.right - t.width,
|
|
@@ -1869,43 +1869,43 @@ function Vr(e, t) {
|
|
|
1869
1869
|
left: e.left - t.width
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1873
|
-
return
|
|
1872
|
+
function Vr(e) {
|
|
1873
|
+
return dr.some((t) => e[t] >= 0);
|
|
1874
1874
|
}
|
|
1875
|
-
var
|
|
1875
|
+
var Hr = function(e) {
|
|
1876
1876
|
return e === void 0 && (e = {}), {
|
|
1877
1877
|
name: "hide",
|
|
1878
1878
|
options: e,
|
|
1879
1879
|
async fn(t) {
|
|
1880
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
1880
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = K(e, t);
|
|
1881
1881
|
switch (i) {
|
|
1882
1882
|
case "referenceHidden": {
|
|
1883
|
-
let e =
|
|
1883
|
+
let e = Br(await r.detectOverflow(t, {
|
|
1884
1884
|
...a,
|
|
1885
1885
|
elementContext: "reference"
|
|
1886
1886
|
}), n.reference);
|
|
1887
1887
|
return { data: {
|
|
1888
1888
|
referenceHiddenOffsets: e,
|
|
1889
|
-
referenceHidden:
|
|
1889
|
+
referenceHidden: Vr(e)
|
|
1890
1890
|
} };
|
|
1891
1891
|
}
|
|
1892
1892
|
case "escaped": {
|
|
1893
|
-
let e =
|
|
1893
|
+
let e = Br(await r.detectOverflow(t, {
|
|
1894
1894
|
...a,
|
|
1895
1895
|
altBoundary: !0
|
|
1896
1896
|
}), n.floating);
|
|
1897
1897
|
return { data: {
|
|
1898
1898
|
escapedOffsets: e,
|
|
1899
|
-
escaped:
|
|
1899
|
+
escaped: Vr(e)
|
|
1900
1900
|
} };
|
|
1901
1901
|
}
|
|
1902
1902
|
default: return {};
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
1905
|
};
|
|
1906
|
-
},
|
|
1907
|
-
async function
|
|
1908
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
1906
|
+
}, Ur = /*#__PURE__*/ new Set(["left", "top"]);
|
|
1907
|
+
async function Wr(e, t) {
|
|
1908
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = q(n), s = _r(n), c = J(n) === "y", l = Ur.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = K(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
1909
1909
|
mainAxis: d,
|
|
1910
1910
|
crossAxis: 0,
|
|
1911
1911
|
alignmentAxis: null
|
|
@@ -1922,13 +1922,13 @@ async function Gr(e, t) {
|
|
|
1922
1922
|
y: p * u
|
|
1923
1923
|
};
|
|
1924
1924
|
}
|
|
1925
|
-
var
|
|
1925
|
+
var Gr = function(e) {
|
|
1926
1926
|
return e === void 0 && (e = 0), {
|
|
1927
1927
|
name: "offset",
|
|
1928
1928
|
options: e,
|
|
1929
1929
|
async fn(t) {
|
|
1930
1930
|
var n;
|
|
1931
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
1931
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Wr(t, e);
|
|
1932
1932
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
1933
1933
|
x: r + s.x,
|
|
1934
1934
|
y: i + s.y,
|
|
@@ -1939,7 +1939,7 @@ var Kr = function(e) {
|
|
|
1939
1939
|
};
|
|
1940
1940
|
}
|
|
1941
1941
|
};
|
|
1942
|
-
},
|
|
1942
|
+
}, Kr = function(e) {
|
|
1943
1943
|
return e === void 0 && (e = {}), {
|
|
1944
1944
|
name: "shift",
|
|
1945
1945
|
options: e,
|
|
@@ -1950,17 +1950,17 @@ var Kr = function(e) {
|
|
|
1950
1950
|
x: t,
|
|
1951
1951
|
y: n
|
|
1952
1952
|
};
|
|
1953
|
-
} }, ...l } =
|
|
1953
|
+
} }, ...l } = K(e, t), u = {
|
|
1954
1954
|
x: n,
|
|
1955
1955
|
y: r
|
|
1956
|
-
}, d = await a.detectOverflow(t, l), f = q(
|
|
1956
|
+
}, d = await a.detectOverflow(t, l), f = J(q(i)), p = vr(f), m = u[p], h = u[f];
|
|
1957
1957
|
if (o) {
|
|
1958
1958
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
1959
|
-
m =
|
|
1959
|
+
m = gr(n, m, r);
|
|
1960
1960
|
}
|
|
1961
1961
|
if (s) {
|
|
1962
1962
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
1963
|
-
h =
|
|
1963
|
+
h = gr(n, h, r);
|
|
1964
1964
|
}
|
|
1965
1965
|
let g = c.fn({
|
|
1966
1966
|
...t,
|
|
@@ -1980,14 +1980,14 @@ var Kr = function(e) {
|
|
|
1980
1980
|
};
|
|
1981
1981
|
}
|
|
1982
1982
|
};
|
|
1983
|
-
},
|
|
1983
|
+
}, qr = function(e) {
|
|
1984
1984
|
return e === void 0 && (e = {}), {
|
|
1985
1985
|
options: e,
|
|
1986
1986
|
fn(t) {
|
|
1987
|
-
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } =
|
|
1987
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = K(e, t), u = {
|
|
1988
1988
|
x: n,
|
|
1989
1989
|
y: r
|
|
1990
|
-
}, d =
|
|
1990
|
+
}, d = J(i), f = vr(d), p = u[f], m = u[d], h = K(s, t), g = typeof h == "number" ? {
|
|
1991
1991
|
mainAxis: h,
|
|
1992
1992
|
crossAxis: 0
|
|
1993
1993
|
} : {
|
|
@@ -2000,7 +2000,7 @@ var Kr = function(e) {
|
|
|
2000
2000
|
p < t ? p = t : p > n && (p = n);
|
|
2001
2001
|
}
|
|
2002
2002
|
if (l) {
|
|
2003
|
-
let e = f === "y" ? "width" : "height", t =
|
|
2003
|
+
let e = f === "y" ? "width" : "height", t = Ur.has(q(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
2004
2004
|
m < n ? m = n : m > r && (m = r);
|
|
2005
2005
|
}
|
|
2006
2006
|
return {
|
|
@@ -2009,18 +2009,18 @@ var Kr = function(e) {
|
|
|
2009
2009
|
};
|
|
2010
2010
|
}
|
|
2011
2011
|
};
|
|
2012
|
-
},
|
|
2012
|
+
}, Jr = function(e) {
|
|
2013
2013
|
return e === void 0 && (e = {}), {
|
|
2014
2014
|
name: "size",
|
|
2015
2015
|
options: e,
|
|
2016
2016
|
async fn(t) {
|
|
2017
2017
|
var n, r;
|
|
2018
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
2018
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = K(e, t), u = await o.detectOverflow(t, l), d = q(i), f = _r(i), p = J(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
2019
2019
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
2020
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
2020
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = fr(h - u[g], v), x = fr(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
2021
2021
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
2022
|
-
let e =
|
|
2023
|
-
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t :
|
|
2022
|
+
let e = W(u.left, 0), t = W(u.right, 0), n = W(u.top, 0), r = W(u.bottom, 0);
|
|
2023
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : W(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : W(u.top, u.bottom));
|
|
2024
2024
|
}
|
|
2025
2025
|
await c({
|
|
2026
2026
|
...t,
|
|
@@ -2034,37 +2034,37 @@ var Kr = function(e) {
|
|
|
2034
2034
|
};
|
|
2035
2035
|
//#endregion
|
|
2036
2036
|
//#region ../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2037
|
-
function
|
|
2037
|
+
function Yr() {
|
|
2038
2038
|
return typeof window < "u";
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2041
|
-
return
|
|
2040
|
+
function Xr(e) {
|
|
2041
|
+
return Zr(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function Y(e) {
|
|
2044
2044
|
var t;
|
|
2045
2045
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2046
2046
|
}
|
|
2047
|
-
function Y(e) {
|
|
2048
|
-
return ((Qr(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
2049
|
-
}
|
|
2050
|
-
function Qr(e) {
|
|
2051
|
-
return Xr() ? e instanceof Node || e instanceof J(e).Node : !1;
|
|
2052
|
-
}
|
|
2053
2047
|
function X(e) {
|
|
2054
|
-
return
|
|
2048
|
+
return ((Zr(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
2049
|
+
}
|
|
2050
|
+
function Zr(e) {
|
|
2051
|
+
return Yr() ? e instanceof Node || e instanceof Y(e).Node : !1;
|
|
2055
2052
|
}
|
|
2056
2053
|
function Z(e) {
|
|
2057
|
-
return
|
|
2054
|
+
return Yr() ? e instanceof Element || e instanceof Y(e).Element : !1;
|
|
2055
|
+
}
|
|
2056
|
+
function Qr(e) {
|
|
2057
|
+
return Yr() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
|
|
2058
2058
|
}
|
|
2059
2059
|
function $r(e) {
|
|
2060
|
-
return !
|
|
2060
|
+
return !Yr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
|
|
2061
2061
|
}
|
|
2062
2062
|
function ei(e) {
|
|
2063
2063
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = Q(e);
|
|
2064
2064
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
2065
2065
|
}
|
|
2066
2066
|
function ti(e) {
|
|
2067
|
-
return /^(table|td|th)$/.test(
|
|
2067
|
+
return /^(table|td|th)$/.test(Xr(e));
|
|
2068
2068
|
}
|
|
2069
2069
|
function ni(e) {
|
|
2070
2070
|
try {
|
|
@@ -2078,12 +2078,12 @@ function ni(e) {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
var ri = /transform|translate|scale|rotate|perspective|filter/, ii = /paint|layout|strict|content/, ai = (e) => !!e && e !== "none", oi;
|
|
2080
2080
|
function si(e) {
|
|
2081
|
-
let t =
|
|
2081
|
+
let t = Z(e) ? Q(e) : e;
|
|
2082
2082
|
return ai(t.transform) || ai(t.translate) || ai(t.scale) || ai(t.rotate) || ai(t.perspective) || !li() && (ai(t.backdropFilter) || ai(t.filter)) || ri.test(t.willChange || "") || ii.test(t.contain || "");
|
|
2083
2083
|
}
|
|
2084
2084
|
function ci(e) {
|
|
2085
2085
|
let t = fi(e);
|
|
2086
|
-
for (;
|
|
2086
|
+
for (; Qr(t) && !ui(t);) {
|
|
2087
2087
|
if (si(t)) return t;
|
|
2088
2088
|
if (ni(t)) return null;
|
|
2089
2089
|
t = fi(t);
|
|
@@ -2094,13 +2094,13 @@ function li() {
|
|
|
2094
2094
|
return oi ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), oi;
|
|
2095
2095
|
}
|
|
2096
2096
|
function ui(e) {
|
|
2097
|
-
return /^(html|body|#document)$/.test(
|
|
2097
|
+
return /^(html|body|#document)$/.test(Xr(e));
|
|
2098
2098
|
}
|
|
2099
2099
|
function Q(e) {
|
|
2100
|
-
return
|
|
2100
|
+
return Y(e).getComputedStyle(e);
|
|
2101
2101
|
}
|
|
2102
2102
|
function di(e) {
|
|
2103
|
-
return
|
|
2103
|
+
return Z(e) ? {
|
|
2104
2104
|
scrollLeft: e.scrollLeft,
|
|
2105
2105
|
scrollTop: e.scrollTop
|
|
2106
2106
|
} : {
|
|
@@ -2109,17 +2109,17 @@ function di(e) {
|
|
|
2109
2109
|
};
|
|
2110
2110
|
}
|
|
2111
2111
|
function fi(e) {
|
|
2112
|
-
if (
|
|
2113
|
-
let t = e.assignedSlot || e.parentNode || $r(e) && e.host ||
|
|
2112
|
+
if (Xr(e) === "html") return e;
|
|
2113
|
+
let t = e.assignedSlot || e.parentNode || $r(e) && e.host || X(e);
|
|
2114
2114
|
return $r(t) ? t.host : t;
|
|
2115
2115
|
}
|
|
2116
2116
|
function pi(e) {
|
|
2117
2117
|
let t = fi(e);
|
|
2118
|
-
return ui(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
2118
|
+
return ui(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Qr(t) && ei(t) ? t : pi(t);
|
|
2119
2119
|
}
|
|
2120
2120
|
function mi(e, t, n) {
|
|
2121
2121
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2122
|
-
let r = pi(e), i = r === e.ownerDocument?.body, a =
|
|
2122
|
+
let r = pi(e), i = r === e.ownerDocument?.body, a = Y(r);
|
|
2123
2123
|
if (i) {
|
|
2124
2124
|
let e = hi(a);
|
|
2125
2125
|
return t.concat(a, a.visualViewport || [], ei(r) ? r : [], e && n ? mi(e) : []);
|
|
@@ -2131,7 +2131,7 @@ function hi(e) {
|
|
|
2131
2131
|
//#endregion
|
|
2132
2132
|
//#region ../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
2133
2133
|
function gi(e) {
|
|
2134
|
-
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i =
|
|
2134
|
+
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Qr(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = pr(n) !== a || pr(r) !== o;
|
|
2135
2135
|
return s && (n = a, r = o), {
|
|
2136
2136
|
width: n,
|
|
2137
2137
|
height: r,
|
|
@@ -2139,41 +2139,41 @@ function gi(e) {
|
|
|
2139
2139
|
};
|
|
2140
2140
|
}
|
|
2141
2141
|
function _i(e) {
|
|
2142
|
-
return
|
|
2142
|
+
return Z(e) ? e : e.contextElement;
|
|
2143
2143
|
}
|
|
2144
2144
|
function vi(e) {
|
|
2145
2145
|
let t = _i(e);
|
|
2146
|
-
if (!
|
|
2147
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = gi(t), o = (a ?
|
|
2146
|
+
if (!Qr(t)) return G(1);
|
|
2147
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = gi(t), o = (a ? pr(n.width) : n.width) / r, s = (a ? pr(n.height) : n.height) / i;
|
|
2148
2148
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
2149
2149
|
x: o,
|
|
2150
2150
|
y: s
|
|
2151
2151
|
};
|
|
2152
2152
|
}
|
|
2153
|
-
var yi = /*#__PURE__*/
|
|
2153
|
+
var yi = /*#__PURE__*/ G(0);
|
|
2154
2154
|
function bi(e) {
|
|
2155
|
-
let t =
|
|
2155
|
+
let t = Y(e);
|
|
2156
2156
|
return !li() || !t.visualViewport ? yi : {
|
|
2157
2157
|
x: t.visualViewport.offsetLeft,
|
|
2158
2158
|
y: t.visualViewport.offsetTop
|
|
2159
2159
|
};
|
|
2160
2160
|
}
|
|
2161
2161
|
function xi(e, t, n) {
|
|
2162
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
2162
|
+
return t === void 0 && (t = !1), !n || t && n !== Y(e) ? !1 : t;
|
|
2163
2163
|
}
|
|
2164
2164
|
function Si(e, t, n, r) {
|
|
2165
2165
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2166
|
-
let i = e.getBoundingClientRect(), a = _i(e), o =
|
|
2167
|
-
t && (r ?
|
|
2168
|
-
let s = xi(a, n, r) ? bi(a) :
|
|
2166
|
+
let i = e.getBoundingClientRect(), a = _i(e), o = G(1);
|
|
2167
|
+
t && (r ? Z(r) && (o = vi(r)) : o = vi(e));
|
|
2168
|
+
let s = xi(a, n, r) ? bi(a) : G(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
2169
2169
|
if (a) {
|
|
2170
|
-
let e =
|
|
2170
|
+
let e = Y(a), t = r && Z(r) ? Y(r) : r, n = e, i = hi(n);
|
|
2171
2171
|
for (; i && r && t !== n;) {
|
|
2172
2172
|
let e = vi(i), t = i.getBoundingClientRect(), r = Q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
2173
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
2173
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Y(i), i = hi(n);
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
|
-
return
|
|
2176
|
+
return Nr({
|
|
2177
2177
|
width: u,
|
|
2178
2178
|
height: d,
|
|
2179
2179
|
x: c,
|
|
@@ -2182,7 +2182,7 @@ function Si(e, t, n, r) {
|
|
|
2182
2182
|
}
|
|
2183
2183
|
function Ci(e, t) {
|
|
2184
2184
|
let n = di(e).scrollLeft;
|
|
2185
|
-
return t ? t.left + n : Si(
|
|
2185
|
+
return t ? t.left + n : Si(X(e)).left + n;
|
|
2186
2186
|
}
|
|
2187
2187
|
function wi(e, t) {
|
|
2188
2188
|
let n = e.getBoundingClientRect();
|
|
@@ -2192,17 +2192,17 @@ function wi(e, t) {
|
|
|
2192
2192
|
};
|
|
2193
2193
|
}
|
|
2194
2194
|
function Ti(e) {
|
|
2195
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
2195
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = X(r), s = t ? ni(t.floating) : !1;
|
|
2196
2196
|
if (r === o || s && a) return n;
|
|
2197
2197
|
let c = {
|
|
2198
2198
|
scrollLeft: 0,
|
|
2199
2199
|
scrollTop: 0
|
|
2200
|
-
}, l =
|
|
2201
|
-
if ((d || !d && !a) && ((
|
|
2200
|
+
}, l = G(1), u = G(0), d = Qr(r);
|
|
2201
|
+
if ((d || !d && !a) && ((Xr(r) !== "body" || ei(o)) && (c = di(r)), d)) {
|
|
2202
2202
|
let e = Si(r);
|
|
2203
2203
|
l = vi(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
2204
2204
|
}
|
|
2205
|
-
let f = o && !d && !a ? wi(o, c) :
|
|
2205
|
+
let f = o && !d && !a ? wi(o, c) : G(0);
|
|
2206
2206
|
return {
|
|
2207
2207
|
width: n.width * l.x,
|
|
2208
2208
|
height: n.height * l.y,
|
|
@@ -2214,8 +2214,8 @@ function Ei(e) {
|
|
|
2214
2214
|
return Array.from(e.getClientRects());
|
|
2215
2215
|
}
|
|
2216
2216
|
function Di(e) {
|
|
2217
|
-
let t =
|
|
2218
|
-
return Q(r).direction === "rtl" && (o +=
|
|
2217
|
+
let t = X(e), n = di(e), r = e.ownerDocument.body, i = W(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = W(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Ci(e), s = -n.scrollTop;
|
|
2218
|
+
return Q(r).direction === "rtl" && (o += W(t.clientWidth, r.clientWidth) - i), {
|
|
2219
2219
|
width: i,
|
|
2220
2220
|
height: a,
|
|
2221
2221
|
x: o,
|
|
@@ -2224,7 +2224,7 @@ function Di(e) {
|
|
|
2224
2224
|
}
|
|
2225
2225
|
var Oi = 25;
|
|
2226
2226
|
function ki(e, t) {
|
|
2227
|
-
let n =
|
|
2227
|
+
let n = Y(e), r = X(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
2228
2228
|
if (i) {
|
|
2229
2229
|
a = i.width, o = i.height;
|
|
2230
2230
|
let e = li();
|
|
@@ -2243,7 +2243,7 @@ function ki(e, t) {
|
|
|
2243
2243
|
};
|
|
2244
2244
|
}
|
|
2245
2245
|
function Ai(e, t) {
|
|
2246
|
-
let n = Si(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a =
|
|
2246
|
+
let n = Si(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Qr(e) ? vi(e) : G(1);
|
|
2247
2247
|
return {
|
|
2248
2248
|
width: e.clientWidth * a.x,
|
|
2249
2249
|
height: e.clientHeight * a.y,
|
|
@@ -2254,8 +2254,8 @@ function Ai(e, t) {
|
|
|
2254
2254
|
function ji(e, t, n) {
|
|
2255
2255
|
let r;
|
|
2256
2256
|
if (t === "viewport") r = ki(e, n);
|
|
2257
|
-
else if (t === "document") r = Di(
|
|
2258
|
-
else if (
|
|
2257
|
+
else if (t === "document") r = Di(X(e));
|
|
2258
|
+
else if (Z(t)) r = Ai(t, n);
|
|
2259
2259
|
else {
|
|
2260
2260
|
let n = bi(e);
|
|
2261
2261
|
r = {
|
|
@@ -2265,17 +2265,17 @@ function ji(e, t, n) {
|
|
|
2265
2265
|
height: t.height
|
|
2266
2266
|
};
|
|
2267
2267
|
}
|
|
2268
|
-
return
|
|
2268
|
+
return Nr(r);
|
|
2269
2269
|
}
|
|
2270
2270
|
function Mi(e, t) {
|
|
2271
2271
|
let n = fi(e);
|
|
2272
|
-
return n === t || !
|
|
2272
|
+
return n === t || !Z(n) || ui(n) ? !1 : Q(n).position === "fixed" || Mi(n, t);
|
|
2273
2273
|
}
|
|
2274
2274
|
function Ni(e, t) {
|
|
2275
2275
|
let n = t.get(e);
|
|
2276
2276
|
if (n) return n;
|
|
2277
|
-
let r = mi(e, [], !1).filter((e) =>
|
|
2278
|
-
for (;
|
|
2277
|
+
let r = mi(e, [], !1).filter((e) => Z(e) && Xr(e) !== "body"), i = null, a = Q(e).position === "fixed", o = a ? fi(e) : e;
|
|
2278
|
+
for (; Z(o) && !ui(o);) {
|
|
2279
2279
|
let t = Q(o), n = si(o);
|
|
2280
2280
|
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || ei(o) && !n && Mi(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = fi(o);
|
|
2281
2281
|
}
|
|
@@ -2285,7 +2285,7 @@ function Pi(e) {
|
|
|
2285
2285
|
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ni(t) ? [] : Ni(t, this._c) : [].concat(n), r], o = ji(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
2286
2286
|
for (let e = 1; e < a.length; e++) {
|
|
2287
2287
|
let n = ji(t, a[e], i);
|
|
2288
|
-
s =
|
|
2288
|
+
s = W(n.top, s), c = fr(n.right, c), l = fr(n.bottom, l), u = W(n.left, u);
|
|
2289
2289
|
}
|
|
2290
2290
|
return {
|
|
2291
2291
|
width: c - u,
|
|
@@ -2302,19 +2302,19 @@ function Fi(e) {
|
|
|
2302
2302
|
};
|
|
2303
2303
|
}
|
|
2304
2304
|
function Ii(e, t, n) {
|
|
2305
|
-
let r =
|
|
2305
|
+
let r = Qr(t), i = X(t), a = n === "fixed", o = Si(e, !0, a, t), s = {
|
|
2306
2306
|
scrollLeft: 0,
|
|
2307
2307
|
scrollTop: 0
|
|
2308
|
-
}, c =
|
|
2308
|
+
}, c = G(0);
|
|
2309
2309
|
function l() {
|
|
2310
2310
|
c.x = Ci(i);
|
|
2311
2311
|
}
|
|
2312
|
-
if (r || !r && !a) if ((
|
|
2312
|
+
if (r || !r && !a) if ((Xr(t) !== "body" || ei(i)) && (s = di(t)), r) {
|
|
2313
2313
|
let e = Si(t, !0, a, t);
|
|
2314
2314
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
2315
2315
|
} else i && l();
|
|
2316
2316
|
a && !r && i && l();
|
|
2317
|
-
let u = i && !r && !a ? wi(i, s) :
|
|
2317
|
+
let u = i && !r && !a ? wi(i, s) : G(0);
|
|
2318
2318
|
return {
|
|
2319
2319
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
2320
2320
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -2326,18 +2326,18 @@ function Li(e) {
|
|
|
2326
2326
|
return Q(e).position === "static";
|
|
2327
2327
|
}
|
|
2328
2328
|
function Ri(e, t) {
|
|
2329
|
-
if (!
|
|
2329
|
+
if (!Qr(e) || Q(e).position === "fixed") return null;
|
|
2330
2330
|
if (t) return t(e);
|
|
2331
2331
|
let n = e.offsetParent;
|
|
2332
|
-
return
|
|
2332
|
+
return X(e) === n && (n = n.ownerDocument.body), n;
|
|
2333
2333
|
}
|
|
2334
2334
|
function zi(e, t) {
|
|
2335
|
-
let n =
|
|
2335
|
+
let n = Y(e);
|
|
2336
2336
|
if (ni(e)) return n;
|
|
2337
|
-
if (!
|
|
2337
|
+
if (!Qr(e)) {
|
|
2338
2338
|
let t = fi(e);
|
|
2339
2339
|
for (; t && !ui(t);) {
|
|
2340
|
-
if (
|
|
2340
|
+
if (Z(t) && !Li(t)) return t;
|
|
2341
2341
|
t = fi(t);
|
|
2342
2342
|
}
|
|
2343
2343
|
return n;
|
|
@@ -2363,21 +2363,21 @@ function Vi(e) {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
var Hi = {
|
|
2365
2365
|
convertOffsetParentRelativeRectToViewportRelativeRect: Ti,
|
|
2366
|
-
getDocumentElement:
|
|
2366
|
+
getDocumentElement: X,
|
|
2367
2367
|
getClippingRect: Pi,
|
|
2368
2368
|
getOffsetParent: zi,
|
|
2369
2369
|
getElementRects: Bi,
|
|
2370
2370
|
getClientRects: Ei,
|
|
2371
2371
|
getDimensions: Fi,
|
|
2372
2372
|
getScale: vi,
|
|
2373
|
-
isElement:
|
|
2373
|
+
isElement: Z,
|
|
2374
2374
|
isRTL: Vi
|
|
2375
2375
|
};
|
|
2376
2376
|
function Ui(e, t) {
|
|
2377
2377
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2378
2378
|
}
|
|
2379
2379
|
function Wi(e, t) {
|
|
2380
|
-
let n = null, r, i =
|
|
2380
|
+
let n = null, r, i = X(e);
|
|
2381
2381
|
function a() {
|
|
2382
2382
|
var e;
|
|
2383
2383
|
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
@@ -2386,9 +2386,9 @@ function Wi(e, t) {
|
|
|
2386
2386
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
2387
2387
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
2388
2388
|
if (s || t(), !f || !p) return;
|
|
2389
|
-
let m =
|
|
2389
|
+
let m = mr(d), h = mr(i.clientWidth - (u + f)), g = mr(i.clientHeight - (d + p)), _ = mr(u), v = {
|
|
2390
2390
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
2391
|
-
threshold:
|
|
2391
|
+
threshold: W(0, fr(1, c)) || 1
|
|
2392
2392
|
}, y = !0;
|
|
2393
2393
|
function b(t) {
|
|
2394
2394
|
let n = t[0].intersectionRatio;
|
|
@@ -2439,7 +2439,7 @@ function Gi(e, t, n, r) {
|
|
|
2439
2439
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
2440
2440
|
};
|
|
2441
2441
|
}
|
|
2442
|
-
var Ki =
|
|
2442
|
+
var Ki = Gr, qi = Kr, Ji = zr, Yi = Jr, Xi = Hr, Zi = Rr, Qi = qr, $i = (e, t, n) => {
|
|
2443
2443
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
2444
2444
|
platform: Hi,
|
|
2445
2445
|
...n
|
|
@@ -2447,11 +2447,11 @@ var Ki = Kr, qi = qr, Ji = Br, Yi = Yr, Xi = Ur, Zi = zr, Qi = Jr, $i = (e, t, n
|
|
|
2447
2447
|
...i.platform,
|
|
2448
2448
|
_c: r
|
|
2449
2449
|
};
|
|
2450
|
-
return
|
|
2450
|
+
return Lr(e, t, {
|
|
2451
2451
|
...i,
|
|
2452
2452
|
platform: a
|
|
2453
2453
|
});
|
|
2454
|
-
}, ea = typeof document < "u" ?
|
|
2454
|
+
}, ea = typeof document < "u" ? I.useLayoutEffect : function() {};
|
|
2455
2455
|
function ta(e, t) {
|
|
2456
2456
|
if (e === t) return !0;
|
|
2457
2457
|
if (typeof e != typeof t) return !1;
|
|
@@ -2481,39 +2481,39 @@ function ra(e, t) {
|
|
|
2481
2481
|
return Math.round(t * n) / n;
|
|
2482
2482
|
}
|
|
2483
2483
|
function ia(e) {
|
|
2484
|
-
let t =
|
|
2484
|
+
let t = I.useRef(e);
|
|
2485
2485
|
return ea(() => {
|
|
2486
2486
|
t.current = e;
|
|
2487
2487
|
}), t;
|
|
2488
2488
|
}
|
|
2489
2489
|
function aa(e) {
|
|
2490
2490
|
e === void 0 && (e = {});
|
|
2491
|
-
let { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: a, floating: o } = {}, transform: s = !0, whileElementsMounted: c, open: l } = e, [u, d] =
|
|
2491
|
+
let { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: a, floating: o } = {}, transform: s = !0, whileElementsMounted: c, open: l } = e, [u, d] = I.useState({
|
|
2492
2492
|
x: 0,
|
|
2493
2493
|
y: 0,
|
|
2494
2494
|
strategy: n,
|
|
2495
2495
|
placement: t,
|
|
2496
2496
|
middlewareData: {},
|
|
2497
2497
|
isPositioned: !1
|
|
2498
|
-
}), [f, p] =
|
|
2498
|
+
}), [f, p] = I.useState(r);
|
|
2499
2499
|
ta(f, r) || p(r);
|
|
2500
|
-
let [m, h] =
|
|
2500
|
+
let [m, h] = I.useState(null), [g, _] = I.useState(null), v = I.useCallback((e) => {
|
|
2501
2501
|
e !== S.current && (S.current = e, h(e));
|
|
2502
|
-
}, []), y =
|
|
2502
|
+
}, []), y = I.useCallback((e) => {
|
|
2503
2503
|
e !== C.current && (C.current = e, _(e));
|
|
2504
|
-
}, []), b = a || m, x = o || g, S =
|
|
2504
|
+
}, []), b = a || m, x = o || g, S = I.useRef(null), C = I.useRef(null), w = I.useRef(u), T = c != null, E = ia(c), D = ia(i), O = ia(l), k = I.useCallback(() => {
|
|
2505
2505
|
if (!S.current || !C.current) return;
|
|
2506
2506
|
let e = {
|
|
2507
2507
|
placement: t,
|
|
2508
2508
|
strategy: n,
|
|
2509
2509
|
middleware: f
|
|
2510
2510
|
};
|
|
2511
|
-
|
|
2511
|
+
D.current && (e.platform = D.current), $i(S.current, C.current, e).then((e) => {
|
|
2512
2512
|
let t = {
|
|
2513
2513
|
...e,
|
|
2514
|
-
isPositioned:
|
|
2514
|
+
isPositioned: O.current !== !1
|
|
2515
2515
|
};
|
|
2516
|
-
|
|
2516
|
+
A.current && !ta(w.current, t) && (w.current = t, ft.flushSync(() => {
|
|
2517
2517
|
d(t);
|
|
2518
2518
|
}));
|
|
2519
2519
|
});
|
|
@@ -2521,8 +2521,8 @@ function aa(e) {
|
|
|
2521
2521
|
f,
|
|
2522
2522
|
t,
|
|
2523
2523
|
n,
|
|
2524
|
-
|
|
2525
|
-
|
|
2524
|
+
D,
|
|
2525
|
+
O
|
|
2526
2526
|
]);
|
|
2527
2527
|
ea(() => {
|
|
2528
2528
|
l === !1 && w.current.isPositioned && (w.current.isPositioned = !1, d((e) => ({
|
|
@@ -2530,41 +2530,41 @@ function aa(e) {
|
|
|
2530
2530
|
isPositioned: !1
|
|
2531
2531
|
})));
|
|
2532
2532
|
}, [l]);
|
|
2533
|
-
let
|
|
2534
|
-
ea(() => (
|
|
2535
|
-
|
|
2533
|
+
let A = I.useRef(!1);
|
|
2534
|
+
ea(() => (A.current = !0, () => {
|
|
2535
|
+
A.current = !1;
|
|
2536
2536
|
}), []), ea(() => {
|
|
2537
2537
|
if (b && (S.current = b), x && (C.current = x), b && x) {
|
|
2538
|
-
if (
|
|
2539
|
-
|
|
2538
|
+
if (E.current) return E.current(b, x, k);
|
|
2539
|
+
k();
|
|
2540
2540
|
}
|
|
2541
2541
|
}, [
|
|
2542
2542
|
b,
|
|
2543
2543
|
x,
|
|
2544
|
-
|
|
2545
|
-
|
|
2544
|
+
k,
|
|
2545
|
+
E,
|
|
2546
2546
|
T
|
|
2547
2547
|
]);
|
|
2548
|
-
let
|
|
2548
|
+
let ee = I.useMemo(() => ({
|
|
2549
2549
|
reference: S,
|
|
2550
2550
|
floating: C,
|
|
2551
2551
|
setReference: v,
|
|
2552
2552
|
setFloating: y
|
|
2553
|
-
}), [v, y]),
|
|
2553
|
+
}), [v, y]), j = I.useMemo(() => ({
|
|
2554
2554
|
reference: b,
|
|
2555
2555
|
floating: x
|
|
2556
|
-
}), [b, x]),
|
|
2556
|
+
}), [b, x]), M = I.useMemo(() => {
|
|
2557
2557
|
let e = {
|
|
2558
2558
|
position: n,
|
|
2559
2559
|
left: 0,
|
|
2560
2560
|
top: 0
|
|
2561
2561
|
};
|
|
2562
|
-
if (!
|
|
2563
|
-
let t = ra(
|
|
2562
|
+
if (!j.floating) return e;
|
|
2563
|
+
let t = ra(j.floating, u.x), r = ra(j.floating, u.y);
|
|
2564
2564
|
return s ? {
|
|
2565
2565
|
...e,
|
|
2566
2566
|
transform: "translate(" + t + "px, " + r + "px)",
|
|
2567
|
-
...na(
|
|
2567
|
+
...na(j.floating) >= 1.5 && { willChange: "transform" }
|
|
2568
2568
|
} : {
|
|
2569
2569
|
position: n,
|
|
2570
2570
|
left: t,
|
|
@@ -2573,22 +2573,22 @@ function aa(e) {
|
|
|
2573
2573
|
}, [
|
|
2574
2574
|
n,
|
|
2575
2575
|
s,
|
|
2576
|
-
|
|
2576
|
+
j.floating,
|
|
2577
2577
|
u.x,
|
|
2578
2578
|
u.y
|
|
2579
2579
|
]);
|
|
2580
|
-
return
|
|
2580
|
+
return I.useMemo(() => ({
|
|
2581
2581
|
...u,
|
|
2582
|
-
update:
|
|
2583
|
-
refs:
|
|
2584
|
-
elements:
|
|
2585
|
-
floatingStyles:
|
|
2582
|
+
update: k,
|
|
2583
|
+
refs: ee,
|
|
2584
|
+
elements: j,
|
|
2585
|
+
floatingStyles: M
|
|
2586
2586
|
}), [
|
|
2587
2587
|
u,
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2588
|
+
k,
|
|
2589
|
+
ee,
|
|
2590
|
+
j,
|
|
2591
|
+
M
|
|
2592
2592
|
]);
|
|
2593
2593
|
}
|
|
2594
2594
|
var oa = (e) => {
|
|
@@ -2654,16 +2654,16 @@ var oa = (e) => {
|
|
|
2654
2654
|
fn: n.fn,
|
|
2655
2655
|
options: [e, t]
|
|
2656
2656
|
};
|
|
2657
|
-
}, ma = "Arrow", ha =
|
|
2657
|
+
}, ma = "Arrow", ha = I.forwardRef((e, t) => {
|
|
2658
2658
|
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
2659
|
-
return /* @__PURE__ */ (0,
|
|
2659
|
+
return /* @__PURE__ */ (0, L.jsx)(U.svg, {
|
|
2660
2660
|
...a,
|
|
2661
2661
|
ref: t,
|
|
2662
2662
|
width: r,
|
|
2663
2663
|
height: i,
|
|
2664
2664
|
viewBox: "0 0 30 10",
|
|
2665
2665
|
preserveAspectRatio: "none",
|
|
2666
|
-
children: e.asChild ? n : /* @__PURE__ */ (0,
|
|
2666
|
+
children: e.asChild ? n : /* @__PURE__ */ (0, L.jsx)("polygon", { points: "0,0 30,0 15,10" })
|
|
2667
2667
|
});
|
|
2668
2668
|
});
|
|
2669
2669
|
ha.displayName = ma;
|
|
@@ -2671,8 +2671,8 @@ var ga = ha;
|
|
|
2671
2671
|
//#endregion
|
|
2672
2672
|
//#region ../node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
2673
2673
|
function _a(e) {
|
|
2674
|
-
let [t, n] =
|
|
2675
|
-
return
|
|
2674
|
+
let [t, n] = I.useState(void 0);
|
|
2675
|
+
return sr(() => {
|
|
2676
2676
|
if (e) {
|
|
2677
2677
|
n({
|
|
2678
2678
|
width: e.offsetWidth,
|
|
@@ -2696,9 +2696,9 @@ function _a(e) {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
//#endregion
|
|
2698
2698
|
//#region ../node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
2699
|
-
var va = "Popper", [ya, ba] =
|
|
2700
|
-
let { __scopePopper: t, children: n } = e, [r, i] =
|
|
2701
|
-
return /* @__PURE__ */ (0,
|
|
2699
|
+
var va = "Popper", [ya, ba] = vn(va), [xa, Sa] = ya(va), Ca = (e) => {
|
|
2700
|
+
let { __scopePopper: t, children: n } = e, [r, i] = I.useState(null);
|
|
2701
|
+
return /* @__PURE__ */ (0, L.jsx)(xa, {
|
|
2702
2702
|
scope: t,
|
|
2703
2703
|
anchor: r,
|
|
2704
2704
|
onAnchorChange: i,
|
|
@@ -2706,29 +2706,29 @@ var va = "Popper", [ya, ba] = yn(va), [xa, Sa] = ya(va), Ca = (e) => {
|
|
|
2706
2706
|
});
|
|
2707
2707
|
};
|
|
2708
2708
|
Ca.displayName = va;
|
|
2709
|
-
var wa = "PopperAnchor", Ta =
|
|
2710
|
-
let { __scopePopper: n, virtualRef: r, ...i } = e, a = Sa(wa, n), o =
|
|
2711
|
-
return
|
|
2709
|
+
var wa = "PopperAnchor", Ta = I.forwardRef((e, t) => {
|
|
2710
|
+
let { __scopePopper: n, virtualRef: r, ...i } = e, a = Sa(wa, n), o = I.useRef(null), s = H(t, o), c = I.useRef(null);
|
|
2711
|
+
return I.useEffect(() => {
|
|
2712
2712
|
let e = c.current;
|
|
2713
2713
|
c.current = r?.current || o.current, e !== c.current && a.onAnchorChange(c.current);
|
|
2714
|
-
}), r ? null : /* @__PURE__ */ (0,
|
|
2714
|
+
}), r ? null : /* @__PURE__ */ (0, L.jsx)(U.div, {
|
|
2715
2715
|
...i,
|
|
2716
2716
|
ref: s
|
|
2717
2717
|
});
|
|
2718
2718
|
});
|
|
2719
2719
|
Ta.displayName = wa;
|
|
2720
|
-
var Ea = "PopperContent", [Da, Oa] = ya(Ea), ka =
|
|
2721
|
-
let { __scopePopper: n, side: r = "bottom", sideOffset: i = 0, align: a = "center", alignOffset: o = 0, arrowPadding: s = 0, avoidCollisions: c = !0, collisionBoundary: l = [], collisionPadding: u = 0, sticky: d = "partial", hideWhenDetached: f = !1, updatePositionStrategy: p = "optimized", onPlaced: m, ...h } = e, g = Sa(Ea, n), [_, v] =
|
|
2720
|
+
var Ea = "PopperContent", [Da, Oa] = ya(Ea), ka = I.forwardRef((e, t) => {
|
|
2721
|
+
let { __scopePopper: n, side: r = "bottom", sideOffset: i = 0, align: a = "center", alignOffset: o = 0, arrowPadding: s = 0, avoidCollisions: c = !0, collisionBoundary: l = [], collisionPadding: u = 0, sticky: d = "partial", hideWhenDetached: f = !1, updatePositionStrategy: p = "optimized", onPlaced: m, ...h } = e, g = Sa(Ea, n), [_, v] = I.useState(null), y = H(t, (e) => v(e)), [b, x] = I.useState(null), S = _a(b), C = S?.width ?? 0, w = S?.height ?? 0, T = r + (a === "center" ? "" : "-" + a), E = typeof u == "number" ? u : {
|
|
2722
2722
|
top: 0,
|
|
2723
2723
|
right: 0,
|
|
2724
2724
|
bottom: 0,
|
|
2725
2725
|
left: 0,
|
|
2726
2726
|
...u
|
|
2727
|
-
},
|
|
2728
|
-
padding:
|
|
2729
|
-
boundary:
|
|
2730
|
-
altBoundary:
|
|
2731
|
-
}, { refs:
|
|
2727
|
+
}, D = Array.isArray(l) ? l : [l], O = D.length > 0, k = {
|
|
2728
|
+
padding: E,
|
|
2729
|
+
boundary: D.filter(Na),
|
|
2730
|
+
altBoundary: O
|
|
2731
|
+
}, { refs: A, floatingStyles: ee, placement: j, isPositioned: M, middlewareData: te } = aa({
|
|
2732
2732
|
strategy: "fixed",
|
|
2733
2733
|
placement: T,
|
|
2734
2734
|
whileElementsMounted: (...e) => Gi(...e, { animationFrame: p === "always" }),
|
|
@@ -2742,11 +2742,11 @@ var Ea = "PopperContent", [Da, Oa] = ya(Ea), ka = F.forwardRef((e, t) => {
|
|
|
2742
2742
|
mainAxis: !0,
|
|
2743
2743
|
crossAxis: !1,
|
|
2744
2744
|
limiter: d === "partial" ? la() : void 0,
|
|
2745
|
-
...
|
|
2745
|
+
...k
|
|
2746
2746
|
}),
|
|
2747
|
-
c && ua({ ...
|
|
2747
|
+
c && ua({ ...k }),
|
|
2748
2748
|
da({
|
|
2749
|
-
...
|
|
2749
|
+
...k,
|
|
2750
2750
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
2751
2751
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
2752
2752
|
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
@@ -2762,46 +2762,46 @@ var Ea = "PopperContent", [Da, Oa] = ya(Ea), ka = F.forwardRef((e, t) => {
|
|
|
2762
2762
|
}),
|
|
2763
2763
|
f && fa({
|
|
2764
2764
|
strategy: "referenceHidden",
|
|
2765
|
-
...
|
|
2765
|
+
...k
|
|
2766
2766
|
})
|
|
2767
2767
|
]
|
|
2768
|
-
}), [
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
}, [
|
|
2772
|
-
let
|
|
2773
|
-
return
|
|
2774
|
-
_ &&
|
|
2775
|
-
}, [_]), /* @__PURE__ */ (0,
|
|
2776
|
-
ref:
|
|
2768
|
+
}), [ne, re] = Fa(j), ie = Dn(m);
|
|
2769
|
+
sr(() => {
|
|
2770
|
+
M && ie?.();
|
|
2771
|
+
}, [M, ie]);
|
|
2772
|
+
let ae = te.arrow?.x, oe = te.arrow?.y, se = te.arrow?.centerOffset !== 0, [ce, le] = I.useState();
|
|
2773
|
+
return sr(() => {
|
|
2774
|
+
_ && le(window.getComputedStyle(_).zIndex);
|
|
2775
|
+
}, [_]), /* @__PURE__ */ (0, L.jsx)("div", {
|
|
2776
|
+
ref: A.setFloating,
|
|
2777
2777
|
"data-radix-popper-content-wrapper": "",
|
|
2778
2778
|
style: {
|
|
2779
|
-
...
|
|
2780
|
-
transform:
|
|
2779
|
+
...ee,
|
|
2780
|
+
transform: M ? ee.transform : "translate(0, -200%)",
|
|
2781
2781
|
minWidth: "max-content",
|
|
2782
|
-
zIndex:
|
|
2783
|
-
"--radix-popper-transform-origin": [
|
|
2784
|
-
...
|
|
2782
|
+
zIndex: ce,
|
|
2783
|
+
"--radix-popper-transform-origin": [te.transformOrigin?.x, te.transformOrigin?.y].join(" "),
|
|
2784
|
+
...te.hide?.referenceHidden && {
|
|
2785
2785
|
visibility: "hidden",
|
|
2786
2786
|
pointerEvents: "none"
|
|
2787
2787
|
}
|
|
2788
2788
|
},
|
|
2789
2789
|
dir: e.dir,
|
|
2790
|
-
children: /* @__PURE__ */ (0,
|
|
2790
|
+
children: /* @__PURE__ */ (0, L.jsx)(Da, {
|
|
2791
2791
|
scope: n,
|
|
2792
|
-
placedSide:
|
|
2792
|
+
placedSide: ne,
|
|
2793
2793
|
onArrowChange: x,
|
|
2794
|
-
arrowX:
|
|
2795
|
-
arrowY:
|
|
2796
|
-
shouldHideArrow:
|
|
2797
|
-
children: /* @__PURE__ */ (0,
|
|
2798
|
-
"data-side":
|
|
2799
|
-
"data-align":
|
|
2794
|
+
arrowX: ae,
|
|
2795
|
+
arrowY: oe,
|
|
2796
|
+
shouldHideArrow: se,
|
|
2797
|
+
children: /* @__PURE__ */ (0, L.jsx)(U.div, {
|
|
2798
|
+
"data-side": ne,
|
|
2799
|
+
"data-align": re,
|
|
2800
2800
|
...h,
|
|
2801
2801
|
ref: y,
|
|
2802
2802
|
style: {
|
|
2803
2803
|
...h.style,
|
|
2804
|
-
animation:
|
|
2804
|
+
animation: M ? void 0 : "none"
|
|
2805
2805
|
}
|
|
2806
2806
|
})
|
|
2807
2807
|
})
|
|
@@ -2813,9 +2813,9 @@ var Aa = "PopperArrow", ja = {
|
|
|
2813
2813
|
right: "left",
|
|
2814
2814
|
bottom: "top",
|
|
2815
2815
|
left: "right"
|
|
2816
|
-
}, Ma =
|
|
2816
|
+
}, Ma = I.forwardRef(function(e, t) {
|
|
2817
2817
|
let { __scopePopper: n, ...r } = e, i = Oa(Aa, n), a = ja[i.placedSide];
|
|
2818
|
-
return /* @__PURE__ */ (0,
|
|
2818
|
+
return /* @__PURE__ */ (0, L.jsx)("span", {
|
|
2819
2819
|
ref: i.onArrowChange,
|
|
2820
2820
|
style: {
|
|
2821
2821
|
position: "absolute",
|
|
@@ -2836,7 +2836,7 @@ var Aa = "PopperArrow", ja = {
|
|
|
2836
2836
|
}[i.placedSide],
|
|
2837
2837
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2838
2838
|
},
|
|
2839
|
-
children: /* @__PURE__ */ (0,
|
|
2839
|
+
children: /* @__PURE__ */ (0, L.jsx)(ga, {
|
|
2840
2840
|
...r,
|
|
2841
2841
|
ref: t,
|
|
2842
2842
|
style: {
|
|
@@ -2869,11 +2869,11 @@ function Fa(e) {
|
|
|
2869
2869
|
let [t, n = "center"] = e.split("-");
|
|
2870
2870
|
return [t, n];
|
|
2871
2871
|
}
|
|
2872
|
-
var Ia = Ca, La = Ta, Ra = ka, za = Ma, Ba = "Portal", Va =
|
|
2873
|
-
let { container: n, ...r } = e, [i, a] =
|
|
2874
|
-
|
|
2872
|
+
var Ia = Ca, La = Ta, Ra = ka, za = Ma, Ba = "Portal", Va = I.forwardRef((e, t) => {
|
|
2873
|
+
let { container: n, ...r } = e, [i, a] = I.useState(!1);
|
|
2874
|
+
sr(() => a(!0), []);
|
|
2875
2875
|
let o = n || i && globalThis?.document?.body;
|
|
2876
|
-
return o ?
|
|
2876
|
+
return o ? ft.createPortal(/* @__PURE__ */ (0, L.jsx)(U.div, {
|
|
2877
2877
|
...r,
|
|
2878
2878
|
ref: t
|
|
2879
2879
|
}), o) : null;
|
|
@@ -2882,15 +2882,15 @@ Va.displayName = Ba;
|
|
|
2882
2882
|
//#endregion
|
|
2883
2883
|
//#region ../node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
2884
2884
|
function Ha(e, t) {
|
|
2885
|
-
return
|
|
2885
|
+
return I.useReducer((e, n) => t[e][n] ?? e, e);
|
|
2886
2886
|
}
|
|
2887
2887
|
var Ua = (e) => {
|
|
2888
|
-
let { present: t, children: n } = e, r = Wa(t), i = typeof n == "function" ? n({ present: r.isPresent }) :
|
|
2889
|
-
return typeof n == "function" || r.isPresent ?
|
|
2888
|
+
let { present: t, children: n } = e, r = Wa(t), i = typeof n == "function" ? n({ present: r.isPresent }) : I.Children.only(n), a = H(r.ref, Ka(i));
|
|
2889
|
+
return typeof n == "function" || r.isPresent ? I.cloneElement(i, { ref: a }) : null;
|
|
2890
2890
|
};
|
|
2891
2891
|
Ua.displayName = "Presence";
|
|
2892
2892
|
function Wa(e) {
|
|
2893
|
-
let [t, n] =
|
|
2893
|
+
let [t, n] = I.useState(), r = I.useRef(null), i = I.useRef(e), a = I.useRef("none"), [o, s] = Ha(e ? "mounted" : "unmounted", {
|
|
2894
2894
|
mounted: {
|
|
2895
2895
|
UNMOUNT: "unmounted",
|
|
2896
2896
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2901,16 +2901,16 @@ function Wa(e) {
|
|
|
2901
2901
|
},
|
|
2902
2902
|
unmounted: { MOUNT: "mounted" }
|
|
2903
2903
|
});
|
|
2904
|
-
return
|
|
2904
|
+
return I.useEffect(() => {
|
|
2905
2905
|
let e = Ga(r.current);
|
|
2906
2906
|
a.current = o === "mounted" ? e : "none";
|
|
2907
|
-
}, [o]),
|
|
2907
|
+
}, [o]), sr(() => {
|
|
2908
2908
|
let t = r.current, n = i.current;
|
|
2909
2909
|
if (n !== e) {
|
|
2910
2910
|
let r = a.current, o = Ga(t);
|
|
2911
2911
|
e ? s("MOUNT") : o === "none" || t?.display === "none" ? s("UNMOUNT") : s(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
2912
2912
|
}
|
|
2913
|
-
}, [e, s]),
|
|
2913
|
+
}, [e, s]), sr(() => {
|
|
2914
2914
|
if (t) {
|
|
2915
2915
|
let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
|
|
2916
2916
|
let o = Ga(r.current).includes(CSS.escape(a.animationName));
|
|
@@ -2929,7 +2929,7 @@ function Wa(e) {
|
|
|
2929
2929
|
} else s("ANIMATION_END");
|
|
2930
2930
|
}, [t, s]), {
|
|
2931
2931
|
isPresent: ["mounted", "unmountSuspended"].includes(o),
|
|
2932
|
-
ref:
|
|
2932
|
+
ref: I.useCallback((e) => {
|
|
2933
2933
|
r.current = e ? getComputedStyle(e) : null, n(e);
|
|
2934
2934
|
}, [])
|
|
2935
2935
|
};
|
|
@@ -2943,20 +2943,20 @@ function Ka(e) {
|
|
|
2943
2943
|
}
|
|
2944
2944
|
//#endregion
|
|
2945
2945
|
//#region ../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
2946
|
-
var qa =
|
|
2946
|
+
var qa = I.useInsertionEffect || sr;
|
|
2947
2947
|
function Ja({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
2948
2948
|
let [i, a, o] = Ya({
|
|
2949
2949
|
defaultProp: t,
|
|
2950
2950
|
onChange: n
|
|
2951
2951
|
}), s = e !== void 0, c = s ? e : i;
|
|
2952
2952
|
{
|
|
2953
|
-
let t =
|
|
2954
|
-
|
|
2953
|
+
let t = I.useRef(e !== void 0);
|
|
2954
|
+
I.useEffect(() => {
|
|
2955
2955
|
let e = t.current;
|
|
2956
2956
|
e !== s && console.warn(`${r} is changing from ${e ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`), t.current = s;
|
|
2957
2957
|
}, [s, r]);
|
|
2958
2958
|
}
|
|
2959
|
-
return [c,
|
|
2959
|
+
return [c, I.useCallback((t) => {
|
|
2960
2960
|
if (s) {
|
|
2961
2961
|
let n = Xa(t) ? t(e) : t;
|
|
2962
2962
|
n !== e && o.current?.(n);
|
|
@@ -2969,10 +2969,10 @@ function Ja({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
|
2969
2969
|
])];
|
|
2970
2970
|
}
|
|
2971
2971
|
function Ya({ defaultProp: e, onChange: t }) {
|
|
2972
|
-
let [n, r] =
|
|
2972
|
+
let [n, r] = I.useState(e), i = I.useRef(n), a = I.useRef(t);
|
|
2973
2973
|
return qa(() => {
|
|
2974
2974
|
a.current = t;
|
|
2975
|
-
}, [t]),
|
|
2975
|
+
}, [t]), I.useEffect(() => {
|
|
2976
2976
|
i.current !== n && (a.current?.(n), i.current = n);
|
|
2977
2977
|
}, [n, i]), [
|
|
2978
2978
|
n,
|
|
@@ -3172,7 +3172,7 @@ function _o(e, t) {
|
|
|
3172
3172
|
//#endregion
|
|
3173
3173
|
//#region ../node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
3174
3174
|
function vo(e, t) {
|
|
3175
|
-
var n = (0,
|
|
3175
|
+
var n = (0, I.useState)(function() {
|
|
3176
3176
|
return {
|
|
3177
3177
|
value: e,
|
|
3178
3178
|
callback: t,
|
|
@@ -3191,7 +3191,7 @@ function vo(e, t) {
|
|
|
3191
3191
|
}
|
|
3192
3192
|
//#endregion
|
|
3193
3193
|
//#region ../node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
3194
|
-
var yo = typeof window < "u" ?
|
|
3194
|
+
var yo = typeof window < "u" ? I.useLayoutEffect : I.useEffect, bo = /* @__PURE__ */ new WeakMap();
|
|
3195
3195
|
function xo(e, t) {
|
|
3196
3196
|
var n = vo(t || null, function(t) {
|
|
3197
3197
|
return e.forEach(function(e) {
|
|
@@ -3285,7 +3285,7 @@ var To = function(e) {
|
|
|
3285
3285
|
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
3286
3286
|
var r = t.read();
|
|
3287
3287
|
if (!r) throw Error("Sidecar medium not found");
|
|
3288
|
-
return
|
|
3288
|
+
return I.createElement(r, $({}, n));
|
|
3289
3289
|
};
|
|
3290
3290
|
To.isSideCarExport = !0;
|
|
3291
3291
|
function Eo(e, t) {
|
|
@@ -3293,8 +3293,8 @@ function Eo(e, t) {
|
|
|
3293
3293
|
}
|
|
3294
3294
|
//#endregion
|
|
3295
3295
|
//#region ../node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
3296
|
-
var Do = wo(), Oo = function() {}, ko =
|
|
3297
|
-
var n =
|
|
3296
|
+
var Do = wo(), Oo = function() {}, ko = I.forwardRef(function(e, t) {
|
|
3297
|
+
var n = I.useRef(null), r = I.useState({
|
|
3298
3298
|
onScrollCapture: Oo,
|
|
3299
3299
|
onWheelCapture: Oo,
|
|
3300
3300
|
onTouchMoveCapture: Oo
|
|
@@ -3313,7 +3313,7 @@ var Do = wo(), Oo = function() {}, ko = F.forwardRef(function(e, t) {
|
|
|
3313
3313
|
"as",
|
|
3314
3314
|
"gapMode"
|
|
3315
3315
|
]), x = f, S = xo([n, t]), C = $($({}, b), i);
|
|
3316
|
-
return
|
|
3316
|
+
return I.createElement(I.Fragment, null, u && I.createElement(x, {
|
|
3317
3317
|
sideCar: Do,
|
|
3318
3318
|
removeScrollBar: l,
|
|
3319
3319
|
shards: d,
|
|
@@ -3324,7 +3324,7 @@ var Do = wo(), Oo = function() {}, ko = F.forwardRef(function(e, t) {
|
|
|
3324
3324
|
allowPinchZoom: !!g,
|
|
3325
3325
|
lockRef: n,
|
|
3326
3326
|
gapMode: y
|
|
3327
|
-
}), o ?
|
|
3327
|
+
}), o ? I.cloneElement(I.Children.only(s), $($({}, C), { ref: S })) : I.createElement(v, $({}, C, {
|
|
3328
3328
|
className: c,
|
|
3329
3329
|
ref: S
|
|
3330
3330
|
}), s));
|
|
@@ -3371,7 +3371,7 @@ var Fo = function() {
|
|
|
3371
3371
|
}, Io = function() {
|
|
3372
3372
|
var e = Fo();
|
|
3373
3373
|
return function(t, n) {
|
|
3374
|
-
|
|
3374
|
+
I.useEffect(function() {
|
|
3375
3375
|
return e.add(t), function() {
|
|
3376
3376
|
e.remove();
|
|
3377
3377
|
};
|
|
@@ -3454,7 +3454,7 @@ var Fo = function() {
|
|
|
3454
3454
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
3455
3455
|
return isFinite(e) ? e : 0;
|
|
3456
3456
|
}, Ko = function() {
|
|
3457
|
-
|
|
3457
|
+
I.useEffect(function() {
|
|
3458
3458
|
return document.body.setAttribute(Uo, (Go() + 1).toString()), function() {
|
|
3459
3459
|
var e = Go() - 1;
|
|
3460
3460
|
e <= 0 ? document.body.removeAttribute(Uo) : document.body.setAttribute(Uo, e.toString());
|
|
@@ -3463,10 +3463,10 @@ var Fo = function() {
|
|
|
3463
3463
|
}, qo = function(e) {
|
|
3464
3464
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
3465
3465
|
Ko();
|
|
3466
|
-
var a =
|
|
3466
|
+
var a = I.useMemo(function() {
|
|
3467
3467
|
return Vo(i);
|
|
3468
3468
|
}, [i]);
|
|
3469
|
-
return
|
|
3469
|
+
return I.createElement(Ho, { styles: Wo(a, !t, i, n ? "" : "!important") });
|
|
3470
3470
|
}, Jo = !1;
|
|
3471
3471
|
if (typeof window < "u") try {
|
|
3472
3472
|
var Yo = Object.defineProperty({}, "passive", { get: function() {
|
|
@@ -3539,10 +3539,10 @@ var Xo = Jo ? { passive: !1 } : !1, Zo = function(e) {
|
|
|
3539
3539
|
`;
|
|
3540
3540
|
}, ps = 0, ms = [];
|
|
3541
3541
|
function hs(e) {
|
|
3542
|
-
var t =
|
|
3543
|
-
|
|
3542
|
+
var t = I.useRef([]), n = I.useRef([0, 0]), r = I.useRef(), i = I.useState(ps++)[0], a = I.useState(Lo)[0], o = I.useRef(e);
|
|
3543
|
+
I.useEffect(function() {
|
|
3544
3544
|
o.current = e;
|
|
3545
|
-
}, [e]),
|
|
3545
|
+
}, [e]), I.useEffect(function() {
|
|
3546
3546
|
if (e.inert) {
|
|
3547
3547
|
document.body.classList.add(`block-interactivity-${i}`);
|
|
3548
3548
|
var t = fo([e.lockRef.current], (e.shards || []).map(us), !0).filter(Boolean);
|
|
@@ -3559,7 +3559,7 @@ function hs(e) {
|
|
|
3559
3559
|
e.lockRef.current,
|
|
3560
3560
|
e.shards
|
|
3561
3561
|
]);
|
|
3562
|
-
var s =
|
|
3562
|
+
var s = I.useCallback(function(e, t) {
|
|
3563
3563
|
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
|
|
3564
3564
|
var i = cs(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
|
|
3565
3565
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
@@ -3571,7 +3571,7 @@ function hs(e) {
|
|
|
3571
3571
|
if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
|
|
3572
3572
|
var h = r.current || l;
|
|
3573
3573
|
return ss(h, t, e, h === "h" ? s : c, !0);
|
|
3574
|
-
}, []), c =
|
|
3574
|
+
}, []), c = I.useCallback(function(e) {
|
|
3575
3575
|
var n = e;
|
|
3576
3576
|
if (!(!ms.length || ms[ms.length - 1] !== a)) {
|
|
3577
3577
|
var r = "deltaY" in n ? ls(n) : cs(n), i = t.current.filter(function(e) {
|
|
@@ -3588,7 +3588,7 @@ function hs(e) {
|
|
|
3588
3588
|
(c.length > 0 ? s(n, c[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
3589
3589
|
}
|
|
3590
3590
|
}
|
|
3591
|
-
}, []), l =
|
|
3591
|
+
}, []), l = I.useCallback(function(e, n, r, i) {
|
|
3592
3592
|
var a = {
|
|
3593
3593
|
name: e,
|
|
3594
3594
|
delta: n,
|
|
@@ -3601,14 +3601,14 @@ function hs(e) {
|
|
|
3601
3601
|
return e !== a;
|
|
3602
3602
|
});
|
|
3603
3603
|
}, 1);
|
|
3604
|
-
}, []), u =
|
|
3604
|
+
}, []), u = I.useCallback(function(e) {
|
|
3605
3605
|
n.current = cs(e), r.current = void 0;
|
|
3606
|
-
}, []), d =
|
|
3606
|
+
}, []), d = I.useCallback(function(t) {
|
|
3607
3607
|
l(t.type, ls(t), t.target, s(t, e.lockRef.current));
|
|
3608
|
-
}, []), f =
|
|
3608
|
+
}, []), f = I.useCallback(function(t) {
|
|
3609
3609
|
l(t.type, cs(t), t.target, s(t, e.lockRef.current));
|
|
3610
3610
|
}, []);
|
|
3611
|
-
|
|
3611
|
+
I.useEffect(function() {
|
|
3612
3612
|
return ms.push(a), e.setCallbacks({
|
|
3613
3613
|
onScrollCapture: d,
|
|
3614
3614
|
onWheelCapture: d,
|
|
@@ -3620,7 +3620,7 @@ function hs(e) {
|
|
|
3620
3620
|
};
|
|
3621
3621
|
}, []);
|
|
3622
3622
|
var p = e.removeScrollBar, m = e.inert;
|
|
3623
|
-
return
|
|
3623
|
+
return I.createElement(I.Fragment, null, m ? I.createElement(a, { styles: fs(i) }) : null, p ? I.createElement(qo, {
|
|
3624
3624
|
noRelative: e.noRelative,
|
|
3625
3625
|
gapMode: e.gapMode
|
|
3626
3626
|
}) : null);
|
|
@@ -3631,8 +3631,8 @@ function gs(e) {
|
|
|
3631
3631
|
}
|
|
3632
3632
|
//#endregion
|
|
3633
3633
|
//#region ../node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
3634
|
-
var _s = Eo(Do, hs), vs =
|
|
3635
|
-
return
|
|
3634
|
+
var _s = Eo(Do, hs), vs = I.forwardRef(function(e, t) {
|
|
3635
|
+
return I.createElement(ko, $({}, e, {
|
|
3636
3636
|
ref: t,
|
|
3637
3637
|
sideCar: _s
|
|
3638
3638
|
}));
|
|
@@ -3640,42 +3640,42 @@ var _s = Eo(Do, hs), vs = F.forwardRef(function(e, t) {
|
|
|
3640
3640
|
vs.classNames = ko.classNames;
|
|
3641
3641
|
//#endregion
|
|
3642
3642
|
//#region ../node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
3643
|
-
var ys = "Popover", [bs, xs] =
|
|
3644
|
-
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = Ss(t), c =
|
|
3643
|
+
var ys = "Popover", [bs, xs] = vn(ys, [ba]), Ss = ba(), [Cs, ws] = bs(ys), Ts = (e) => {
|
|
3644
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = Ss(t), c = I.useRef(null), [l, u] = I.useState(!1), [d, f] = Ja({
|
|
3645
3645
|
prop: r,
|
|
3646
3646
|
defaultProp: i ?? !1,
|
|
3647
3647
|
onChange: a,
|
|
3648
3648
|
caller: ys
|
|
3649
3649
|
});
|
|
3650
|
-
return /* @__PURE__ */ (0,
|
|
3650
|
+
return /* @__PURE__ */ (0, L.jsx)(Ia, {
|
|
3651
3651
|
...s,
|
|
3652
|
-
children: /* @__PURE__ */ (0,
|
|
3652
|
+
children: /* @__PURE__ */ (0, L.jsx)(Cs, {
|
|
3653
3653
|
scope: t,
|
|
3654
|
-
contentId:
|
|
3654
|
+
contentId: ur(),
|
|
3655
3655
|
triggerRef: c,
|
|
3656
3656
|
open: d,
|
|
3657
3657
|
onOpenChange: f,
|
|
3658
|
-
onOpenToggle:
|
|
3658
|
+
onOpenToggle: I.useCallback(() => f((e) => !e), [f]),
|
|
3659
3659
|
hasCustomAnchor: l,
|
|
3660
|
-
onCustomAnchorAdd:
|
|
3661
|
-
onCustomAnchorRemove:
|
|
3660
|
+
onCustomAnchorAdd: I.useCallback(() => u(!0), []),
|
|
3661
|
+
onCustomAnchorRemove: I.useCallback(() => u(!1), []),
|
|
3662
3662
|
modal: o,
|
|
3663
3663
|
children: n
|
|
3664
3664
|
})
|
|
3665
3665
|
});
|
|
3666
3666
|
};
|
|
3667
3667
|
Ts.displayName = ys;
|
|
3668
|
-
var Es = "PopoverAnchor", Ds =
|
|
3668
|
+
var Es = "PopoverAnchor", Ds = I.forwardRef((e, t) => {
|
|
3669
3669
|
let { __scopePopover: n, ...r } = e, i = ws(Es, n), a = Ss(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
3670
|
-
return
|
|
3670
|
+
return I.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ (0, L.jsx)(La, {
|
|
3671
3671
|
...a,
|
|
3672
3672
|
...r,
|
|
3673
3673
|
ref: t
|
|
3674
3674
|
});
|
|
3675
3675
|
});
|
|
3676
3676
|
Ds.displayName = Es;
|
|
3677
|
-
var Os = "PopoverTrigger", ks =
|
|
3678
|
-
let { __scopePopover: n, ...r } = e, i = ws(Os, n), a = Ss(n), o =
|
|
3677
|
+
var Os = "PopoverTrigger", ks = I.forwardRef((e, t) => {
|
|
3678
|
+
let { __scopePopover: n, ...r } = e, i = ws(Os, n), a = Ss(n), o = H(t, i.triggerRef), s = /* @__PURE__ */ (0, L.jsx)(U.button, {
|
|
3679
3679
|
type: "button",
|
|
3680
3680
|
"aria-haspopup": "dialog",
|
|
3681
3681
|
"aria-expanded": i.open,
|
|
@@ -3683,9 +3683,9 @@ var Os = "PopoverTrigger", ks = F.forwardRef((e, t) => {
|
|
|
3683
3683
|
"data-state": Ws(i.open),
|
|
3684
3684
|
...r,
|
|
3685
3685
|
ref: o,
|
|
3686
|
-
onClick:
|
|
3686
|
+
onClick: V(e.onClick, i.onOpenToggle)
|
|
3687
3687
|
});
|
|
3688
|
-
return i.hasCustomAnchor ? s : /* @__PURE__ */ (0,
|
|
3688
|
+
return i.hasCustomAnchor ? s : /* @__PURE__ */ (0, L.jsx)(La, {
|
|
3689
3689
|
asChild: !0,
|
|
3690
3690
|
...a,
|
|
3691
3691
|
children: s
|
|
@@ -3694,12 +3694,12 @@ var Os = "PopoverTrigger", ks = F.forwardRef((e, t) => {
|
|
|
3694
3694
|
ks.displayName = Os;
|
|
3695
3695
|
var As = "PopoverPortal", [js, Ms] = bs(As, { forceMount: void 0 }), Ns = (e) => {
|
|
3696
3696
|
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = ws(As, t);
|
|
3697
|
-
return /* @__PURE__ */ (0,
|
|
3697
|
+
return /* @__PURE__ */ (0, L.jsx)(js, {
|
|
3698
3698
|
scope: t,
|
|
3699
3699
|
forceMount: n,
|
|
3700
|
-
children: /* @__PURE__ */ (0,
|
|
3700
|
+
children: /* @__PURE__ */ (0, L.jsx)(Ua, {
|
|
3701
3701
|
present: n || a.open,
|
|
3702
|
-
children: /* @__PURE__ */ (0,
|
|
3702
|
+
children: /* @__PURE__ */ (0, L.jsx)(Va, {
|
|
3703
3703
|
asChild: !0,
|
|
3704
3704
|
container: i,
|
|
3705
3705
|
children: r
|
|
@@ -3708,46 +3708,46 @@ var As = "PopoverPortal", [js, Ms] = bs(As, { forceMount: void 0 }), Ns = (e) =>
|
|
|
3708
3708
|
});
|
|
3709
3709
|
};
|
|
3710
3710
|
Ns.displayName = As;
|
|
3711
|
-
var Ps = "PopoverContent", Fs =
|
|
3711
|
+
var Ps = "PopoverContent", Fs = I.forwardRef((e, t) => {
|
|
3712
3712
|
let n = Ms(Ps, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = ws(Ps, e.__scopePopover);
|
|
3713
|
-
return /* @__PURE__ */ (0,
|
|
3713
|
+
return /* @__PURE__ */ (0, L.jsx)(Ua, {
|
|
3714
3714
|
present: r || a.open,
|
|
3715
|
-
children: a.modal ? /* @__PURE__ */ (0,
|
|
3715
|
+
children: a.modal ? /* @__PURE__ */ (0, L.jsx)(Ls, {
|
|
3716
3716
|
...i,
|
|
3717
3717
|
ref: t
|
|
3718
|
-
}) : /* @__PURE__ */ (0,
|
|
3718
|
+
}) : /* @__PURE__ */ (0, L.jsx)(Rs, {
|
|
3719
3719
|
...i,
|
|
3720
3720
|
ref: t
|
|
3721
3721
|
})
|
|
3722
3722
|
});
|
|
3723
3723
|
});
|
|
3724
3724
|
Fs.displayName = Ps;
|
|
3725
|
-
var Is = /* @__PURE__ */
|
|
3726
|
-
let n = ws(Ps, e.__scopePopover), r =
|
|
3727
|
-
return
|
|
3725
|
+
var Is = /* @__PURE__ */ bn("PopoverContent.RemoveScroll"), Ls = I.forwardRef((e, t) => {
|
|
3726
|
+
let n = ws(Ps, e.__scopePopover), r = I.useRef(null), i = H(t, r), a = I.useRef(!1);
|
|
3727
|
+
return I.useEffect(() => {
|
|
3728
3728
|
let e = r.current;
|
|
3729
3729
|
if (e) return ao(e);
|
|
3730
|
-
}, []), /* @__PURE__ */ (0,
|
|
3730
|
+
}, []), /* @__PURE__ */ (0, L.jsx)(vs, {
|
|
3731
3731
|
as: Is,
|
|
3732
3732
|
allowPinchZoom: !0,
|
|
3733
|
-
children: /* @__PURE__ */ (0,
|
|
3733
|
+
children: /* @__PURE__ */ (0, L.jsx)(zs, {
|
|
3734
3734
|
...e,
|
|
3735
3735
|
ref: i,
|
|
3736
3736
|
trapFocus: n.open,
|
|
3737
3737
|
disableOutsidePointerEvents: !0,
|
|
3738
|
-
onCloseAutoFocus:
|
|
3738
|
+
onCloseAutoFocus: V(e.onCloseAutoFocus, (e) => {
|
|
3739
3739
|
e.preventDefault(), a.current || n.triggerRef.current?.focus();
|
|
3740
3740
|
}),
|
|
3741
|
-
onPointerDownOutside:
|
|
3741
|
+
onPointerDownOutside: V(e.onPointerDownOutside, (e) => {
|
|
3742
3742
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
3743
3743
|
a.current = t.button === 2 || n;
|
|
3744
3744
|
}, { checkForDefaultPrevented: !1 }),
|
|
3745
|
-
onFocusOutside:
|
|
3745
|
+
onFocusOutside: V(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
3746
3746
|
})
|
|
3747
3747
|
});
|
|
3748
|
-
}), Rs =
|
|
3749
|
-
let n = ws(Ps, e.__scopePopover), r =
|
|
3750
|
-
return /* @__PURE__ */ (0,
|
|
3748
|
+
}), Rs = I.forwardRef((e, t) => {
|
|
3749
|
+
let n = ws(Ps, e.__scopePopover), r = I.useRef(!1), i = I.useRef(!1);
|
|
3750
|
+
return /* @__PURE__ */ (0, L.jsx)(zs, {
|
|
3751
3751
|
...e,
|
|
3752
3752
|
ref: t,
|
|
3753
3753
|
trapFocus: !1,
|
|
@@ -3761,15 +3761,15 @@ var Is = /* @__PURE__ */ xn("PopoverContent.RemoveScroll"), Ls = F.forwardRef((e
|
|
|
3761
3761
|
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
3762
3762
|
}
|
|
3763
3763
|
});
|
|
3764
|
-
}), zs =
|
|
3764
|
+
}), zs = I.forwardRef((e, t) => {
|
|
3765
3765
|
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...d } = e, f = ws(Ps, n), p = Ss(n);
|
|
3766
|
-
return
|
|
3766
|
+
return Un(), /* @__PURE__ */ (0, L.jsx)(Yn, {
|
|
3767
3767
|
asChild: !0,
|
|
3768
3768
|
loop: !0,
|
|
3769
3769
|
trapped: r,
|
|
3770
3770
|
onMountAutoFocus: i,
|
|
3771
3771
|
onUnmountAutoFocus: a,
|
|
3772
|
-
children: /* @__PURE__ */ (0,
|
|
3772
|
+
children: /* @__PURE__ */ (0, L.jsx)(Fn, {
|
|
3773
3773
|
asChild: !0,
|
|
3774
3774
|
disableOutsidePointerEvents: o,
|
|
3775
3775
|
onInteractOutside: u,
|
|
@@ -3777,7 +3777,7 @@ var Is = /* @__PURE__ */ xn("PopoverContent.RemoveScroll"), Ls = F.forwardRef((e
|
|
|
3777
3777
|
onPointerDownOutside: c,
|
|
3778
3778
|
onFocusOutside: l,
|
|
3779
3779
|
onDismiss: () => f.onOpenChange(!1),
|
|
3780
|
-
children: /* @__PURE__ */ (0,
|
|
3780
|
+
children: /* @__PURE__ */ (0, L.jsx)(Ra, {
|
|
3781
3781
|
"data-state": Ws(f.open),
|
|
3782
3782
|
role: "dialog",
|
|
3783
3783
|
id: f.contentId,
|
|
@@ -3795,19 +3795,19 @@ var Is = /* @__PURE__ */ xn("PopoverContent.RemoveScroll"), Ls = F.forwardRef((e
|
|
|
3795
3795
|
})
|
|
3796
3796
|
})
|
|
3797
3797
|
});
|
|
3798
|
-
}), Bs = "PopoverClose", Vs =
|
|
3798
|
+
}), Bs = "PopoverClose", Vs = I.forwardRef((e, t) => {
|
|
3799
3799
|
let { __scopePopover: n, ...r } = e, i = ws(Bs, n);
|
|
3800
|
-
return /* @__PURE__ */ (0,
|
|
3800
|
+
return /* @__PURE__ */ (0, L.jsx)(U.button, {
|
|
3801
3801
|
type: "button",
|
|
3802
3802
|
...r,
|
|
3803
3803
|
ref: t,
|
|
3804
|
-
onClick:
|
|
3804
|
+
onClick: V(e.onClick, () => i.onOpenChange(!1))
|
|
3805
3805
|
});
|
|
3806
3806
|
});
|
|
3807
3807
|
Vs.displayName = Bs;
|
|
3808
|
-
var Hs = "PopoverArrow", Us =
|
|
3808
|
+
var Hs = "PopoverArrow", Us = I.forwardRef((e, t) => {
|
|
3809
3809
|
let { __scopePopover: n, ...r } = e, i = Ss(n);
|
|
3810
|
-
return /* @__PURE__ */ (0,
|
|
3810
|
+
return /* @__PURE__ */ (0, L.jsx)(za, {
|
|
3811
3811
|
...i,
|
|
3812
3812
|
...r,
|
|
3813
3813
|
ref: t
|
|
@@ -3817,123 +3817,123 @@ Us.displayName = Hs;
|
|
|
3817
3817
|
function Ws(e) {
|
|
3818
3818
|
return e ? "open" : "closed";
|
|
3819
3819
|
}
|
|
3820
|
-
var Gs = Ts, Ks = ks, qs = Fs, Js = Us, Ys = ({ message: e, trigger: t, initialVisibility: n = !1 }) => /* @__PURE__ */ (0,
|
|
3820
|
+
var Gs = Ts, Ks = ks, qs = Fs, Js = Us, Ys = ({ message: e, trigger: t, initialVisibility: n = !1 }) => /* @__PURE__ */ (0, L.jsxs)(Gs, {
|
|
3821
3821
|
defaultOpen: n,
|
|
3822
|
-
children: [/* @__PURE__ */ (0,
|
|
3822
|
+
children: [/* @__PURE__ */ (0, L.jsx)("div", {
|
|
3823
3823
|
className: "flex justify-center",
|
|
3824
|
-
children: /* @__PURE__ */ (0,
|
|
3824
|
+
children: /* @__PURE__ */ (0, L.jsx)(Ks, {
|
|
3825
3825
|
asChild: !0,
|
|
3826
3826
|
children: t
|
|
3827
3827
|
})
|
|
3828
|
-
}), /* @__PURE__ */ (0,
|
|
3828
|
+
}), /* @__PURE__ */ (0, L.jsxs)(qs, {
|
|
3829
3829
|
className: "sid-popover__container",
|
|
3830
3830
|
sideOffset: 10,
|
|
3831
3831
|
side: "bottom",
|
|
3832
|
-
children: [e, /* @__PURE__ */ (0,
|
|
3832
|
+
children: [e, /* @__PURE__ */ (0, L.jsx)(Js, { className: "sid-popover__caret" })]
|
|
3833
3833
|
})]
|
|
3834
3834
|
}), Xs = ({ verificationService: e, initialVisibility: t = !1 }) => {
|
|
3835
|
-
let n =
|
|
3836
|
-
return /* @__PURE__ */ (0,
|
|
3835
|
+
let n = he();
|
|
3836
|
+
return /* @__PURE__ */ (0, L.jsx)(Ys, {
|
|
3837
3837
|
initialVisibility: t,
|
|
3838
|
-
trigger: /* @__PURE__ */ (0,
|
|
3838
|
+
trigger: /* @__PURE__ */ (0, L.jsx)("button", {
|
|
3839
3839
|
type: "button",
|
|
3840
3840
|
className: "sid-h-btn-link-like sid-link sid-how-does-verifying-work-hoverable",
|
|
3841
|
-
children: /* @__PURE__ */ (0,
|
|
3841
|
+
children: /* @__PURE__ */ (0, L.jsx)(N, { id: "howDoesVerifyingWork" })
|
|
3842
3842
|
}),
|
|
3843
|
-
message: /* @__PURE__ */ (0,
|
|
3844
|
-
/* @__PURE__ */ (0,
|
|
3843
|
+
message: /* @__PURE__ */ (0, L.jsxs)("div", { children: [
|
|
3844
|
+
/* @__PURE__ */ (0, L.jsx)(N, {
|
|
3845
3845
|
id: "step.personalInfo.howDoesVerifyingWorkDetails",
|
|
3846
3846
|
context: n
|
|
3847
3847
|
}),
|
|
3848
3848
|
"\xA0",
|
|
3849
|
-
/* @__PURE__ */ (0,
|
|
3849
|
+
/* @__PURE__ */ (0, L.jsx)(kt, { verificationService: e })
|
|
3850
3850
|
] })
|
|
3851
3851
|
});
|
|
3852
3852
|
}, Zs = ({ verificationService: e }) => {
|
|
3853
3853
|
let t = d(() => e.programTheme.remainingRewardCodes, null);
|
|
3854
|
-
return typeof t == "number" && t > 0 ? /* @__PURE__ */ (0,
|
|
3854
|
+
return typeof t == "number" && t > 0 ? /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
3855
3855
|
className: "sid-rewards-remaining",
|
|
3856
3856
|
role: "note",
|
|
3857
3857
|
children: [
|
|
3858
|
-
/* @__PURE__ */ (0,
|
|
3859
|
-
/* @__PURE__ */ (0,
|
|
3858
|
+
/* @__PURE__ */ (0, L.jsx)("div", { className: "sid-l-space-top-md" }),
|
|
3859
|
+
/* @__PURE__ */ (0, L.jsx)(O, {
|
|
3860
3860
|
id: "lowRewardPool",
|
|
3861
3861
|
defaultMessage: e.messages.lowRewardPool,
|
|
3862
3862
|
values: { offersRemaining: t }
|
|
3863
3863
|
}),
|
|
3864
|
-
/* @__PURE__ */ (0,
|
|
3864
|
+
/* @__PURE__ */ (0, L.jsx)("div", { className: "sid-l-space-top-sm" })
|
|
3865
3865
|
]
|
|
3866
3866
|
}) : null;
|
|
3867
3867
|
}, Qs = (e) => e !== void 0, $s = ({ verificationService: e, classNameIdentifier: t = void 0 }) => {
|
|
3868
|
-
let { verificationResponse: n } = e, r = Qs(n) ?
|
|
3869
|
-
return /* @__PURE__ */ (0,
|
|
3868
|
+
let { verificationResponse: n } = e, r = Qs(n) ? ze(n) : !1, i = r ? "step.personalInfo.tryAgain.title" : "step.personalInfo.title", a = r ? "step.personalInfo.tryAgain.subtitle" : "step.personalInfo.subtitle";
|
|
3869
|
+
return /* @__PURE__ */ (0, L.jsx)("div", {
|
|
3870
3870
|
className: "sid-personal-info-header",
|
|
3871
|
-
children: /* @__PURE__ */ (0,
|
|
3871
|
+
children: /* @__PURE__ */ (0, L.jsxs)(hn, {
|
|
3872
3872
|
verificationService: e,
|
|
3873
|
-
title: /* @__PURE__ */ (0,
|
|
3873
|
+
title: /* @__PURE__ */ (0, L.jsx)(N, {
|
|
3874
3874
|
id: i,
|
|
3875
3875
|
context: n.segment
|
|
3876
3876
|
}),
|
|
3877
3877
|
classNameIdentifier: t,
|
|
3878
3878
|
children: [
|
|
3879
|
-
/* @__PURE__ */ (0,
|
|
3879
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
3880
3880
|
className: `sid-header__subtitle sid-l-horz-center ${r ? "sid-header__subtitle--error" : ""}`,
|
|
3881
|
-
children: /* @__PURE__ */ (0,
|
|
3881
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, { id: a })
|
|
3882
3882
|
}),
|
|
3883
|
-
/* @__PURE__ */ (0,
|
|
3883
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
3884
3884
|
className: "sid-header__how-verifying-works sid-l-horz-center",
|
|
3885
|
-
children: !r && /* @__PURE__ */ (0,
|
|
3885
|
+
children: !r && /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Xs, { verificationService: e }), /* @__PURE__ */ (0, L.jsx)(Zs, { verificationService: e })] })
|
|
3886
3886
|
}),
|
|
3887
|
-
/* @__PURE__ */ (0,
|
|
3887
|
+
/* @__PURE__ */ (0, L.jsx)("div", {
|
|
3888
3888
|
className: "sid-h-medium-text sid-l-space-btm-sm sid-l-space-top-sm",
|
|
3889
|
-
children: /* @__PURE__ */ (0,
|
|
3889
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, { id: "requiredFields" })
|
|
3890
3890
|
})
|
|
3891
3891
|
]
|
|
3892
3892
|
})
|
|
3893
3893
|
});
|
|
3894
3894
|
}, ec = () => ({ isEmbedded: !!s("verificationIframeUid") }), tc = ({ layout: e, children: t, verificationService: n, renderAsLandingPage: r }) => {
|
|
3895
3895
|
let { isEmbedded: i } = ec();
|
|
3896
|
-
return !r || i ? /* @__PURE__ */ (0,
|
|
3896
|
+
return !r || i ? /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: t }) : /* @__PURE__ */ (0, L.jsx)("div", {
|
|
3897
3897
|
className: `sid-layout sid-layout--${e}`,
|
|
3898
|
-
children: /* @__PURE__ */ (0,
|
|
3898
|
+
children: /* @__PURE__ */ (0, L.jsxs)("div", {
|
|
3899
3899
|
className: "sid-layout__container",
|
|
3900
|
-
children: [e === "fullRight" && /* @__PURE__ */ (0,
|
|
3900
|
+
children: [e === "fullRight" && /* @__PURE__ */ (0, L.jsx)("div", {
|
|
3901
3901
|
className: "sid-layout__content",
|
|
3902
|
-
children: /* @__PURE__ */ (0,
|
|
3902
|
+
children: /* @__PURE__ */ (0, L.jsx)($s, {
|
|
3903
3903
|
verificationService: n,
|
|
3904
3904
|
classNameIdentifier: "landing"
|
|
3905
3905
|
})
|
|
3906
|
-
}), /* @__PURE__ */ (0,
|
|
3906
|
+
}), /* @__PURE__ */ (0, L.jsx)("div", {
|
|
3907
3907
|
className: "sid-layout__form-container",
|
|
3908
|
-
children: /* @__PURE__ */ (0,
|
|
3908
|
+
children: /* @__PURE__ */ (0, L.jsx)("div", {
|
|
3909
3909
|
className: "sid-layout__form",
|
|
3910
3910
|
children: t
|
|
3911
3911
|
})
|
|
3912
3912
|
})]
|
|
3913
3913
|
})
|
|
3914
3914
|
});
|
|
3915
|
-
}, nc = ({ children: e }) => /* @__PURE__ */ (0,
|
|
3915
|
+
}, nc = ({ children: e }) => /* @__PURE__ */ (0, L.jsx)("div", {
|
|
3916
3916
|
className: "sid sid-form-wrapper",
|
|
3917
3917
|
children: e
|
|
3918
3918
|
}), rc = ({ locale: t, messages: n, programTheme: i, verificationService: a, programId: o }) => {
|
|
3919
|
-
let s =
|
|
3919
|
+
let s = et(), u = y(), d = fe() ?? i, f = ge(se, de), p = (0, I.useMemo)(() => f ? {
|
|
3920
3920
|
...a.verificationResponse,
|
|
3921
3921
|
...f
|
|
3922
|
-
} : a.verificationResponse, [f, a.verificationResponse]), m = (0,
|
|
3922
|
+
} : a.verificationResponse, [f, a.verificationResponse]), m = (0, I.useMemo)(() => ({
|
|
3923
3923
|
...a,
|
|
3924
3924
|
programTheme: d,
|
|
3925
3925
|
verificationResponse: p,
|
|
3926
|
-
formValidationOptions:
|
|
3926
|
+
formValidationOptions: wt(d, p, a.viewModel)
|
|
3927
3927
|
}), [
|
|
3928
3928
|
a,
|
|
3929
3929
|
d,
|
|
3930
3930
|
p
|
|
3931
|
-
]), h = d.themeChoices?.landingPage?.layout || "center", { renderAs: _ } = u, v =
|
|
3932
|
-
|
|
3931
|
+
]), h = d.themeChoices?.landingPage?.layout || "center", { renderAs: _ } = u, v = nt();
|
|
3932
|
+
I.useEffect(() => {
|
|
3933
3933
|
try {
|
|
3934
3934
|
if (v && m && m.viewModel) {
|
|
3935
|
-
let e = (0,
|
|
3936
|
-
|
|
3935
|
+
let e = (0, yt.default)(v);
|
|
3936
|
+
E(g.flags, e);
|
|
3937
3937
|
let t = l(m.viewModel.metadata || {}, (t) => {
|
|
3938
3938
|
t.flags = e;
|
|
3939
3939
|
}), n = l(m.viewModel, (e) => {
|
|
@@ -3942,9 +3942,9 @@ var Gs = Ts, Ks = ks, qs = Fs, Js = Us, Ys = ({ message: e, trigger: t, initialV
|
|
|
3942
3942
|
m.updateViewModel(n);
|
|
3943
3943
|
}
|
|
3944
3944
|
} catch (e) {
|
|
3945
|
-
|
|
3945
|
+
P.error(e);
|
|
3946
3946
|
}
|
|
3947
|
-
}, []),
|
|
3947
|
+
}, []), I.useEffect(() => {
|
|
3948
3948
|
if (m.verificationResponse.verificationId && u._launchDarklyUserTargeting && s) {
|
|
3949
3949
|
let e = {
|
|
3950
3950
|
kind: "multi",
|
|
@@ -3952,40 +3952,40 @@ var Gs = Ts, Ks = ks, qs = Fs, Js = Us, Ys = ({ message: e, trigger: t, initialV
|
|
|
3952
3952
|
key: m.verificationResponse.verificationId,
|
|
3953
3953
|
locale: m.verificationResponse.locale,
|
|
3954
3954
|
segment: m.verificationResponse.segment,
|
|
3955
|
-
installType:
|
|
3955
|
+
installType: De()
|
|
3956
3956
|
},
|
|
3957
3957
|
program: { key: o }
|
|
3958
3958
|
};
|
|
3959
3959
|
d.accountId && (e.account = { key: d.accountId }), s.identify(e);
|
|
3960
3960
|
}
|
|
3961
|
-
}, [m.verificationResponse.verificationId, s]),
|
|
3961
|
+
}, [m.verificationResponse.verificationId, s]), I.useEffect(() => {
|
|
3962
3962
|
try {
|
|
3963
3963
|
y()._launchDarklyFlagCb(v);
|
|
3964
3964
|
} catch {}
|
|
3965
3965
|
}, [v]);
|
|
3966
|
-
let b =
|
|
3967
|
-
return /* @__PURE__ */ (0,
|
|
3966
|
+
let b = ge(se, pe);
|
|
3967
|
+
return /* @__PURE__ */ (0, L.jsx)(D, {
|
|
3968
3968
|
locale: "en",
|
|
3969
3969
|
messages: {
|
|
3970
3970
|
...n,
|
|
3971
|
-
...(0,
|
|
3972
|
-
...(0,
|
|
3971
|
+
...(0, pt.default)(e(t)),
|
|
3972
|
+
...(0, pt.default)(b?.[t] ?? {})
|
|
3973
3973
|
},
|
|
3974
|
-
textComponent:
|
|
3975
|
-
children: /* @__PURE__ */ (0,
|
|
3974
|
+
textComponent: pn,
|
|
3975
|
+
children: /* @__PURE__ */ (0, L.jsx)(Ct, {
|
|
3976
3976
|
themeChoices: d.themeChoices,
|
|
3977
3977
|
customCssFromOptions: y().customCss,
|
|
3978
|
-
children: /* @__PURE__ */ (0,
|
|
3979
|
-
className: `${
|
|
3980
|
-
children: /* @__PURE__ */ (0,
|
|
3978
|
+
children: /* @__PURE__ */ (0, L.jsx)("div", {
|
|
3979
|
+
className: `${bt.default.isRtlLang(r(t)) ? "sid-rtl" : "sid-ltr"} sid-locale-${t}`,
|
|
3980
|
+
children: /* @__PURE__ */ (0, L.jsx)(nc, { children: /* @__PURE__ */ (0, L.jsx)(tc, {
|
|
3981
3981
|
layout: h,
|
|
3982
3982
|
verificationService: m,
|
|
3983
3983
|
renderAsLandingPage: _ === "landingPage",
|
|
3984
|
-
children: /* @__PURE__ */ (0,
|
|
3985
|
-
fallback: /* @__PURE__ */ (0,
|
|
3986
|
-
children: /* @__PURE__ */ (0,
|
|
3984
|
+
children: /* @__PURE__ */ (0, L.jsx)(I.Suspense, {
|
|
3985
|
+
fallback: /* @__PURE__ */ (0, L.jsx)(gt, { step: m.loadingStep }),
|
|
3986
|
+
children: /* @__PURE__ */ (0, L.jsx)(dt, {
|
|
3987
3987
|
i18n: c,
|
|
3988
|
-
children: m.isLoading ? /* @__PURE__ */ (0,
|
|
3988
|
+
children: m.isLoading ? /* @__PURE__ */ (0, L.jsx)(gt, { step: m.loadingStep }) : /* @__PURE__ */ (0, L.jsxs)("div", { children: [!y().hideTestModeFlag && /* @__PURE__ */ (0, L.jsx)(mn, { verificationService: m }), /* @__PURE__ */ (0, L.jsx)(fn, {
|
|
3989
3989
|
stepToLoad: m.overrideStep || m.verificationResponse.currentStep,
|
|
3990
3990
|
verificationService: m
|
|
3991
3991
|
})] })
|
|
@@ -4000,13 +4000,13 @@ var Gs = Ts, Ks = ks, qs = Fs, Js = Us, Ys = ({ message: e, trigger: t, initialV
|
|
|
4000
4000
|
document.addEventListener("keydown", (t) => {
|
|
4001
4001
|
if (t.key !== "Tab") return;
|
|
4002
4002
|
let n = document.querySelectorAll("button, .sid-link, input, select, textarea, [tabindex]:not([tabindex=\"-1\"]");
|
|
4003
|
-
e = n[n.length - 1], e && !t.shiftKey && document.activeElement === e && (
|
|
4003
|
+
e = n[n.length - 1], e && !t.shiftKey && document.activeElement === e && (Ae({
|
|
4004
4004
|
type: "focus",
|
|
4005
4005
|
focusOn: "firstElement"
|
|
4006
4006
|
}), t.preventDefault());
|
|
4007
4007
|
}), window.addEventListener("message", (t) => {
|
|
4008
4008
|
t.data.focusOn === "lastElement" && e && e.focus();
|
|
4009
|
-
}),
|
|
4009
|
+
}), Ae({
|
|
4010
4010
|
type: "focus",
|
|
4011
4011
|
focusOn: "firstElement"
|
|
4012
4012
|
});
|
|
@@ -4014,16 +4014,16 @@ var Gs = Ts, Ks = ks, qs = Fs, Js = Us, Ys = ({ message: e, trigger: t, initialV
|
|
|
4014
4014
|
window.addEventListener("message", (e) => {
|
|
4015
4015
|
e.data.isInLightBox === "true" && ic();
|
|
4016
4016
|
});
|
|
4017
|
-
}, oc = class extends
|
|
4017
|
+
}, oc = class extends I.Component {
|
|
4018
4018
|
verificationService;
|
|
4019
4019
|
constructor(e) {
|
|
4020
|
-
super(e),
|
|
4020
|
+
super(e), P.info("NewVerificationComponent: constructing"), this.props.trackingId && this.props.trackingId.length ? P.info(`Attaching a trackingId to this verification request ${this.props.trackingId}`) : P.info("No trackingId to associate with the verification request");
|
|
4021
4021
|
}
|
|
4022
4022
|
componentDidMount() {
|
|
4023
|
-
if (S(), ac(),
|
|
4023
|
+
if (S(), ac(), _e((e) => {
|
|
4024
4024
|
switch (e.data.action) {
|
|
4025
4025
|
case "setViewModel":
|
|
4026
|
-
|
|
4026
|
+
Ke(e.data.viewModel, {
|
|
4027
4027
|
partial: !0,
|
|
4028
4028
|
metadataCheck: !0,
|
|
4029
4029
|
externalUserIdCheck: !0
|
|
@@ -4034,9 +4034,9 @@ var Gs = Ts, Ks = ks, qs = Fs, Js = Us, Ys = ({ message: e, trigger: t, initialV
|
|
|
4034
4034
|
break;
|
|
4035
4035
|
default:
|
|
4036
4036
|
}
|
|
4037
|
-
}),
|
|
4037
|
+
}), we()) P.info("Mocking loading screen. Not fetching new verification request.");
|
|
4038
4038
|
else {
|
|
4039
|
-
|
|
4039
|
+
P.info("NewVerificationComponent: fetchNewVerificationRequest");
|
|
4040
4040
|
let e = d(() => this.props.verificationService.verificationResponse.segment);
|
|
4041
4041
|
this.props.verificationService.fetchNewVerificationRequest(this.props.programId, e, this.props.verificationService.previousViewModel, this.props.trackingId);
|
|
4042
4042
|
}
|
|
@@ -4046,16 +4046,16 @@ var Gs = Ts, Ks = ks, qs = Fs, Js = Us, Ys = ({ message: e, trigger: t, initialV
|
|
|
4046
4046
|
this.props.messages && (r = this.props.messages);
|
|
4047
4047
|
let i = {
|
|
4048
4048
|
...r,
|
|
4049
|
-
...(0,
|
|
4049
|
+
...(0, pt.default)(e(n))
|
|
4050
4050
|
};
|
|
4051
|
-
if (this.props.verificationService.isLoading && !this.props.verificationService.loadingStep) return
|
|
4051
|
+
if (this.props.verificationService.isLoading && !this.props.verificationService.loadingStep) return P.info("NewVerificationComponent: VerificationService is loading"), /* @__PURE__ */ (0, L.jsx)(D, {
|
|
4052
4052
|
locale: "en",
|
|
4053
4053
|
messages: i,
|
|
4054
|
-
textComponent:
|
|
4055
|
-
children: /* @__PURE__ */ (0,
|
|
4054
|
+
textComponent: pn,
|
|
4055
|
+
children: /* @__PURE__ */ (0, L.jsx)(gt, {})
|
|
4056
4056
|
}, n);
|
|
4057
4057
|
let { programTheme: o } = this.props.verificationService, { verificationResponse: s } = this.props.verificationService;
|
|
4058
|
-
return
|
|
4058
|
+
return P.info("NewVerificationComponent: verificationResponse, viewModel", s, t), P.info(`NewVerificationComponent: locale: ${n}, currentStep: ${s.currentStep}, messages: `, r), /* @__PURE__ */ (0, L.jsx)(rc, {
|
|
4059
4059
|
locale: n,
|
|
4060
4060
|
messages: r,
|
|
4061
4061
|
programTheme: o,
|
|
@@ -4063,22 +4063,22 @@ var Gs = Ts, Ks = ks, qs = Fs, Js = Us, Ys = ({ message: e, trigger: t, initialV
|
|
|
4063
4063
|
programId: this.props.programId
|
|
4064
4064
|
});
|
|
4065
4065
|
}
|
|
4066
|
-
}, sc =
|
|
4066
|
+
}, sc = ee((e, t) => ({ ...e }), (e, t) => ({
|
|
4067
4067
|
dispatch: e,
|
|
4068
|
-
fetchNewVerificationRequest:
|
|
4069
|
-
fetchExistingVerificationRequest:
|
|
4070
|
-
updateViewModel:
|
|
4071
|
-
updateLocale:
|
|
4072
|
-
updateProgramTheme:
|
|
4073
|
-
updateFieldValidationErrors:
|
|
4074
|
-
resetState:
|
|
4068
|
+
fetchNewVerificationRequest: Fe(e),
|
|
4069
|
+
fetchExistingVerificationRequest: qe(e),
|
|
4070
|
+
updateViewModel: He(e),
|
|
4071
|
+
updateLocale: Le(e, t.programId),
|
|
4072
|
+
updateProgramTheme: Ge(e),
|
|
4073
|
+
updateFieldValidationErrors: Ie(e),
|
|
4074
|
+
resetState: Ve(e)
|
|
4075
4075
|
}), (e, t, n) => {
|
|
4076
4076
|
let { dispatch: r, ...i } = t, { programTheme: a } = e;
|
|
4077
4077
|
return {
|
|
4078
4078
|
verificationService: {
|
|
4079
4079
|
...e,
|
|
4080
4080
|
...i,
|
|
4081
|
-
submitStep:
|
|
4081
|
+
submitStep: Ye(r, a)
|
|
4082
4082
|
},
|
|
4083
4083
|
messages: e.messages,
|
|
4084
4084
|
...n
|
|
@@ -4086,34 +4086,34 @@ var Gs = Ts, Ks = ks, qs = Fs, Js = Us, Ys = ({ message: e, trigger: t, initialV
|
|
|
4086
4086
|
})(oc), cc = (e) => ({
|
|
4087
4087
|
kind: "program",
|
|
4088
4088
|
key: e
|
|
4089
|
-
}), lc = ({ programId: e, children: t }) => /* @__PURE__ */ (0,
|
|
4089
|
+
}), lc = ({ programId: e, children: t }) => /* @__PURE__ */ (0, L.jsx)(tt, {
|
|
4090
4090
|
clientSideID: "6530161f9ff41712a2eef741",
|
|
4091
4091
|
context: cc(e),
|
|
4092
|
-
flags:
|
|
4092
|
+
flags: rt,
|
|
4093
4093
|
reactOptions: { useCamelCaseFlagKeys: !1 },
|
|
4094
4094
|
options: { streaming: !1 },
|
|
4095
4095
|
children: t
|
|
4096
|
-
}), uc =
|
|
4097
|
-
|
|
4098
|
-
var dc =
|
|
4096
|
+
}), uc = Be();
|
|
4097
|
+
E(g.jslibVersionActual, d(() => Ee(), "?")), E(g.clientVersion, d(() => Ee(), "?"));
|
|
4098
|
+
var dc = I.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
4099
4099
|
try {
|
|
4100
|
-
|
|
4100
|
+
Qe();
|
|
4101
4101
|
} catch (e) {
|
|
4102
|
-
|
|
4102
|
+
P.warn("Failed to add predefined hooks", e);
|
|
4103
4103
|
}
|
|
4104
|
-
return (0,
|
|
4104
|
+
return (0, I.useEffect)(() => {
|
|
4105
4105
|
b();
|
|
4106
4106
|
}), uc.dispatch({
|
|
4107
4107
|
programId: e,
|
|
4108
4108
|
type: "PROGRAM_ID"
|
|
4109
4109
|
}), n && (n.current = {
|
|
4110
|
-
refresh:
|
|
4111
|
-
reset:
|
|
4112
|
-
}), /* @__PURE__ */ (0,
|
|
4110
|
+
refresh: I.useCallback(() => uc.dispatch({ type: "FORCE_UPDATE" }), []),
|
|
4111
|
+
reset: I.useCallback(() => uc.dispatch({ type: "RESET_STATE" }), [])
|
|
4112
|
+
}), /* @__PURE__ */ (0, L.jsx)(ue, {
|
|
4113
4113
|
store: uc,
|
|
4114
|
-
children: /* @__PURE__ */ (0,
|
|
4114
|
+
children: /* @__PURE__ */ (0, L.jsx)(lc, {
|
|
4115
4115
|
programId: e,
|
|
4116
|
-
children: /* @__PURE__ */ (0,
|
|
4116
|
+
children: /* @__PURE__ */ (0, L.jsx)(sc, {
|
|
4117
4117
|
programId: e,
|
|
4118
4118
|
trackingId: t
|
|
4119
4119
|
})
|
|
@@ -4127,7 +4127,7 @@ var dc = F.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
|
4127
4127
|
ref;
|
|
4128
4128
|
constructor(t, n, r) {
|
|
4129
4129
|
if (!(this instanceof e)) throw Error("Method \"render\" not found. Did you use the \"new\" keyword when instantiating VerificationForm?");
|
|
4130
|
-
|
|
4130
|
+
P.info(`Constructing VerificationFormEs5 ${n}`), o(t), this.element = t, this.programId = n, this.trackingId = r, this.ref = I.createRef(), this.render();
|
|
4131
4131
|
}
|
|
4132
4132
|
refresh() {
|
|
4133
4133
|
this.ref.current.refresh();
|
|
@@ -4136,31 +4136,33 @@ var dc = F.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
|
4136
4136
|
this.ref.current.reset();
|
|
4137
4137
|
}
|
|
4138
4138
|
render() {
|
|
4139
|
-
|
|
4139
|
+
ft.render(/* @__PURE__ */ (0, L.jsx)(dc, {
|
|
4140
4140
|
programId: this.programId,
|
|
4141
4141
|
trackingId: this.trackingId,
|
|
4142
4142
|
ref: this.ref
|
|
4143
4143
|
}), this.element);
|
|
4144
4144
|
}
|
|
4145
4145
|
unmount() {
|
|
4146
|
-
|
|
4146
|
+
ft.unmountComponentAtNode(this.element);
|
|
4147
4147
|
}
|
|
4148
|
-
}, pc =
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4148
|
+
}, pc = "ipqs", mc = "https://fd.sheerid.com/api/*/BJOvvIiNpZnA9XHXIHVc0S4FO87k4eub6NLOfmShTU7nRqamLKTzQixwD7XETz7bvtNHmicHNx9hEtOJ9NPo3kUJBl7o1jpwcbcXeOMDJjvulAWSrRnO7WYq9gxL6xNT0xnfou5UlshUGWQ2g68qBuWajMWbxZ25JELntxaP0neiVUbephG5E79ES89qBo4uIGBDvykdJb75hpo0URvJ0Fm1j6fuEqHQBq64Mi390KC9XoQwiFxyboxQ5lSooY4p/learn.js", hc = 3e4, gc = () => document.getElementById(pc) ? Promise.resolve() : new Promise((e, t) => {
|
|
4149
|
+
let n = document.createElement("script");
|
|
4150
|
+
n.id = pc, n.async = !0;
|
|
4151
|
+
let r = 0, i = (i) => {
|
|
4152
|
+
window.clearTimeout(r), n.onload = null, n.onerror = null, i ? (n.remove(), t(i)) : e();
|
|
4153
|
+
};
|
|
4154
|
+
r = window.setTimeout(() => {
|
|
4155
|
+
P.warn(`IPQS script still loading after ${hc}ms`), i();
|
|
4156
|
+
}, hc), n.onload = () => i(), n.onerror = () => i(/* @__PURE__ */ Error("IPQS script failed to load")), n.src = mc, document.body.appendChild(n);
|
|
4157
|
+
}), _c = async (e, t) => {
|
|
4156
4158
|
if (d(() => e.ipqsDeviceFingerprintEnabled, !1)) try {
|
|
4157
|
-
|
|
4159
|
+
window.IPQ = { Callback: () => {
|
|
4158
4160
|
window.Startup.Store("transactionID", t), window.Startup.Init();
|
|
4159
|
-
} };
|
|
4161
|
+
} }, await gc();
|
|
4160
4162
|
} catch (e) {
|
|
4161
|
-
|
|
4163
|
+
P.error(e, "Failed to collect IPQS device data");
|
|
4162
4164
|
}
|
|
4163
|
-
},
|
|
4165
|
+
}, vc = async (e, t) => {
|
|
4164
4166
|
if (!d(() => e.threatMetrixEnabled, !1)) return;
|
|
4165
4167
|
let n = e.threatMetrixOrgId || "cnl2my47";
|
|
4166
4168
|
try {
|
|
@@ -4170,45 +4172,45 @@ var dc = F.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
|
4170
4172
|
);
|
|
4171
4173
|
e !== void 0 && e.hasOwnProperty("profile") && typeof e.profile == "function" && e.profile("content.sheerid.com", n, t);
|
|
4172
4174
|
} catch (e) {
|
|
4173
|
-
|
|
4175
|
+
P.error(e, "Failed to collect ThreatMetrix device data");
|
|
4174
4176
|
}
|
|
4175
|
-
},
|
|
4176
|
-
let n =
|
|
4177
|
+
}, yc = /* @__PURE__ */ new Map(), bc = (e, t) => {
|
|
4178
|
+
let n = yc.get(t);
|
|
4177
4179
|
if (n) return n;
|
|
4178
4180
|
let r = (async () => {
|
|
4179
4181
|
let [, , n] = await Promise.all([
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4182
|
+
vc(e, t),
|
|
4183
|
+
_c(e, t),
|
|
4184
|
+
$e(e, t)
|
|
4183
4185
|
]);
|
|
4184
4186
|
return n ? { fpSessionId: n } : {};
|
|
4185
4187
|
})();
|
|
4186
|
-
return
|
|
4187
|
-
},
|
|
4188
|
+
return yc.set(t, r), r;
|
|
4189
|
+
}, xc = {
|
|
4188
4190
|
getMessages: n,
|
|
4189
|
-
setViewModel:
|
|
4190
|
-
resetViewModel:
|
|
4191
|
+
setViewModel: Ke,
|
|
4192
|
+
resetViewModel: Ue,
|
|
4191
4193
|
setOptions: m,
|
|
4192
4194
|
resetOptions: x,
|
|
4193
|
-
refreshStore:
|
|
4194
|
-
setMetadata:
|
|
4195
|
-
getMetadata:
|
|
4196
|
-
resetMetadata:
|
|
4197
|
-
conversion:
|
|
4198
|
-
overrideComponent:
|
|
4199
|
-
resetOverriddenComponents:
|
|
4200
|
-
postVerificationSizeUpdates:
|
|
4201
|
-
addHook:
|
|
4202
|
-
hooks:
|
|
4195
|
+
refreshStore: Ne,
|
|
4196
|
+
setMetadata: Xe,
|
|
4197
|
+
getMetadata: Re,
|
|
4198
|
+
resetMetadata: Me,
|
|
4199
|
+
conversion: ne,
|
|
4200
|
+
overrideComponent: Et,
|
|
4201
|
+
resetOverriddenComponents: Ot,
|
|
4202
|
+
postVerificationSizeUpdates: Ze,
|
|
4203
|
+
addHook: Pe,
|
|
4204
|
+
hooks: je,
|
|
4203
4205
|
VerificationForm: fc,
|
|
4204
|
-
collectDeviceProfile: async (e, t) =>
|
|
4205
|
-
resetStore:
|
|
4206
|
+
collectDeviceProfile: async (e, t) => bc(await ce.fetchProgramTheme(t), e),
|
|
4207
|
+
resetStore: We,
|
|
4206
4208
|
setProgramTheme: (e, t = { partial: !0 }) => {
|
|
4207
|
-
let n =
|
|
4209
|
+
let n = Be(), r = n.getState(), a = () => {
|
|
4208
4210
|
let r = i(e);
|
|
4209
|
-
|
|
4211
|
+
P.info("Setting programTheme", r), Ge(n.dispatch)(r, t.partial), oe(r, t.partial);
|
|
4210
4212
|
};
|
|
4211
|
-
r.isLoading ?
|
|
4213
|
+
r.isLoading ? Pe({
|
|
4212
4214
|
name: "ON_VERIFICATION_READY",
|
|
4213
4215
|
callback: () => {
|
|
4214
4216
|
a();
|
|
@@ -4217,4 +4219,4 @@ var dc = F.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
|
4217
4219
|
}
|
|
4218
4220
|
};
|
|
4219
4221
|
//#endregion
|
|
4220
|
-
export {
|
|
4222
|
+
export { zt as A, En as C, H as D, _n as E, mt as F, kt as M, xt as N, V as O, gt as P, U as S, vn as T, ur as _, so as a, Fn as b, ao as c, Va as d, xc as default, La as f, ba as g, Ia as h, vs as i, Mt as j, Wt as k, Ja as l, Ra as m, $s as n, co as o, za as p, Zs as r, uo as s, bc as t, Ua as u, Yn as v, bn as w, Dn as x, Un as y };
|