@sheerid/jslib 2.261.0 → 2.262.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 +1654 -1653
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/AddressComponent-CL1CDsWz.js +4 -4
- package/chunk/AddressComponent-DJPGVE04.js +4 -4
- package/chunk/AnnouncingHeader-DGy7wEme.js +4 -4
- package/chunk/AnnouncingHeader-lotcA5d8.js +4 -4
- package/chunk/{ApiUrls-BuY66Y8s.js → ApiUrls-CCydfy8I.js} +5 -5
- package/chunk/{ApiUrls-BuY66Y8s.js.map → ApiUrls-CCydfy8I.js.map} +1 -1
- package/chunk/{ApiUrls-DyBLXjMI.js → ApiUrls-DdwCkseK.js} +5 -5
- package/chunk/{ApiUrls-DyBLXjMI.js.map → ApiUrls-DdwCkseK.js.map} +1 -1
- package/chunk/{BirthDateComponent-BV5OfS9w.js → BirthDateComponent-CBXOBCcV.js} +5 -5
- package/chunk/{BirthDateComponent-BV5OfS9w.js.map → BirthDateComponent-CBXOBCcV.js.map} +1 -1
- package/chunk/{BirthDateComponent-DO26ydfr.js → BirthDateComponent-DRjYSB1_.js} +5 -5
- package/chunk/{BirthDateComponent-DO26ydfr.js.map → BirthDateComponent-DRjYSB1_.js.map} +1 -1
- package/chunk/{CaptchaComponent-BIrC4-y9.js → CaptchaComponent-BdltUs-q.js} +6 -6
- package/chunk/{CaptchaComponent-BIrC4-y9.js.map → CaptchaComponent-BdltUs-q.js.map} +1 -1
- package/chunk/{CaptchaComponent-CrMxGiFi.js → CaptchaComponent-DiYK5xPX.js} +6 -6
- package/chunk/{CaptchaComponent-CrMxGiFi.js.map → CaptchaComponent-DiYK5xPX.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BWA0at67.js → ChangeLocaleComponent-DUIMw7ra.js} +5 -5
- package/chunk/{ChangeLocaleComponent-BWA0at67.js.map → ChangeLocaleComponent-DUIMw7ra.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Dre-WrNa.js → ChangeLocaleComponent-DrY1Xz8z.js} +5 -5
- package/chunk/{ChangeLocaleComponent-Dre-WrNa.js.map → ChangeLocaleComponent-DrY1Xz8z.js.map} +1 -1
- package/chunk/City-C7052kY5.js +4 -4
- package/chunk/City-FRiBMMDp.js +4 -4
- package/chunk/{CollegeNameComponent-BP_Qvpok.js → CollegeNameComponent-BbW5HgWL.js} +5 -5
- package/chunk/{CollegeNameComponent-BP_Qvpok.js.map → CollegeNameComponent-BbW5HgWL.js.map} +1 -1
- package/chunk/{CollegeNameComponent-MbtKmsCB.js → CollegeNameComponent-D8AH4Ios.js} +5 -5
- package/chunk/{CollegeNameComponent-MbtKmsCB.js.map → CollegeNameComponent-D8AH4Ios.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-DMUuSpCM.js +4 -4
- package/chunk/CopyToClipboardComponent-DnS2qHDv.js +4 -4
- package/chunk/{CountryComponentWrapper-DMPb4PYH.js → CountryComponentWrapper-5cH6YXTK.js} +5 -5
- package/chunk/{CountryComponentWrapper-Bdjg7aro.js.map → CountryComponentWrapper-5cH6YXTK.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-Bdjg7aro.js → CountryComponentWrapper-NmfwlmFA.js} +5 -5
- package/chunk/{CountryComponentWrapper-DMPb4PYH.js.map → CountryComponentWrapper-NmfwlmFA.js.map} +1 -1
- package/chunk/{DischargeDateComponent-C2QXvH73.js → DischargeDateComponent-DXCPG2NN.js} +7 -7
- package/chunk/{DischargeDateComponent-7ysndXpU.js.map → DischargeDateComponent-DXCPG2NN.js.map} +1 -1
- package/chunk/{DischargeDateComponent-7ysndXpU.js → DischargeDateComponent-kDvAcwU2.js} +7 -7
- package/chunk/{DischargeDateComponent-C2QXvH73.js.map → DischargeDateComponent-kDvAcwU2.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-BpY0Emv_.js +4 -4
- package/chunk/DriverLicenseNumberComponent-DZtTp8zc.js +4 -4
- package/chunk/{EmailLoopPending-Bu08Lttc.js → EmailLoopPending-CqkK5rZw.js} +5 -5
- package/chunk/{EmailLoopPending-Bu08Lttc.js.map → EmailLoopPending-CqkK5rZw.js.map} +1 -1
- package/chunk/{EmailLoopPending-B1cfBZHE.js → EmailLoopPending-WlbBU74F.js} +5 -5
- package/chunk/{EmailLoopPending-B1cfBZHE.js.map → EmailLoopPending-WlbBU74F.js.map} +1 -1
- package/chunk/{ExtraMessage-DBg-MXRI.js → ExtraMessage-BjQEDNZp.js} +5 -5
- package/chunk/{ExtraMessage-DBg-MXRI.js.map → ExtraMessage-BjQEDNZp.js.map} +1 -1
- package/chunk/{ExtraMessage-DW-LLDPe.js → ExtraMessage-Cf_jXuhg.js} +5 -5
- package/chunk/{ExtraMessage-DW-LLDPe.js.map → ExtraMessage-Cf_jXuhg.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-C5bSjzFE.js → FirstResponderOrganizationComponent-5kCooG6X.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-C1CdHZBv.js.map → FirstResponderOrganizationComponent-5kCooG6X.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-C1CdHZBv.js → FirstResponderOrganizationComponent-BeCWKFfA.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-C5bSjzFE.js.map → FirstResponderOrganizationComponent-BeCWKFfA.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Df_oHoUK.js → FormFieldInputSelect-BGytnCis.js} +5 -5
- package/chunk/{FormFieldInputSelect-Df_oHoUK.js.map → FormFieldInputSelect-BGytnCis.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Dx26Hsnv.js → FormFieldInputSelect-ERxtSM2k.js} +5 -5
- package/chunk/{FormFieldInputSelect-Dx26Hsnv.js.map → FormFieldInputSelect-ERxtSM2k.js.map} +1 -1
- package/chunk/FormFieldLayout-Bmwrqqid.js +4 -4
- package/chunk/FormFieldLayout-BzljWm45.js +4 -4
- package/chunk/FormFieldText-Cd6qEKyH.js +4 -4
- package/chunk/FormFieldText-Dj7CbXHB.js +4 -4
- package/chunk/{FormFieldTypeahead-BNCAUNtO.js → FormFieldTypeahead-Qg03EGUM.js} +7 -7
- package/chunk/{FormFieldTypeahead-BNCAUNtO.js.map → FormFieldTypeahead-Qg03EGUM.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-B45RbeNF.js → FormFieldTypeahead-f3sCsyGd.js} +7 -7
- package/chunk/{FormFieldTypeahead-B45RbeNF.js.map → FormFieldTypeahead-f3sCsyGd.js.map} +1 -1
- package/chunk/{FormFooterComponent-BR5MwA7M.js → FormFooterComponent-B5GraQki.js} +9 -9
- package/chunk/{FormFooterComponent-BR5MwA7M.js.map → FormFooterComponent-B5GraQki.js.map} +1 -1
- package/chunk/{FormFooterComponent-uqSUZaeT.js → FormFooterComponent-Cjj1N06z.js} +9 -9
- package/chunk/{FormFooterComponent-uqSUZaeT.js.map → FormFooterComponent-Cjj1N06z.js.map} +1 -1
- package/chunk/{FormSelectChoice-Dqpe6Q1C.js → FormSelectChoice-BYqGfG0H.js} +5 -5
- package/chunk/{FormSelectChoice-Dqpe6Q1C.js.map → FormSelectChoice-BYqGfG0H.js.map} +1 -1
- package/chunk/{FormSelectChoice-V92FacN1.js → FormSelectChoice-CwTiq1ri.js} +5 -5
- package/chunk/{FormSelectChoice-V92FacN1.js.map → FormSelectChoice-CwTiq1ri.js.map} +1 -1
- package/chunk/InputText-15VS1v4H.js +4 -4
- package/chunk/InputText-B0p1sWvq.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-DK1sEcKd.js → LicensedProfessionalOrganizationComponent-Bh44hIRm.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-DK1sEcKd.js.map → LicensedProfessionalOrganizationComponent-Bh44hIRm.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-DZ1N0Cns.js → LicensedProfessionalOrganizationComponent-CIgDgcV-.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-DZ1N0Cns.js.map → LicensedProfessionalOrganizationComponent-CIgDgcV-.js.map} +1 -1
- package/chunk/LogoComponent-CTCMA59a.js +4 -4
- package/chunk/LogoComponent-CXrKiNgF.js +4 -4
- package/chunk/{LowIncomeOrganizationComponent-lO7ju03N.js → LowIncomeOrganizationComponent-BFyrnocd.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-CX1YSItm.js.map → LowIncomeOrganizationComponent-BFyrnocd.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CX1YSItm.js → LowIncomeOrganizationComponent-CeT3e_1t.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-lO7ju03N.js.map → LowIncomeOrganizationComponent-CeT3e_1t.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-36ZgdCDo.js → MedicalProfessionalOrganizationComponent-DIv02ngj.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-36ZgdCDo.js.map → MedicalProfessionalOrganizationComponent-DIv02ngj.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-eBLCSNz9.js → MedicalProfessionalOrganizationComponent-uOzlQSJl.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-eBLCSNz9.js.map → MedicalProfessionalOrganizationComponent-uOzlQSJl.js.map} +1 -1
- package/chunk/MemberIdComponent-CptMgI3z.js +4 -4
- package/chunk/MemberIdComponent-D9iQX3c1.js +4 -4
- package/chunk/{MembershipOrganizationComponent-DnayWcxa.js → MembershipOrganizationComponent-BxdQ7Dxj.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-B4Z6xx4r.js.map → MembershipOrganizationComponent-BxdQ7Dxj.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-B4Z6xx4r.js → MembershipOrganizationComponent-WAGr7NJ8.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-DnayWcxa.js.map → MembershipOrganizationComponent-WAGr7NJ8.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-BS-lDcpS.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-BjmIuVJ1.js +4 -4
- package/chunk/{PersonalInfoStepWrapper-Dv2rXqE_.js → PersonalInfoStepWrapper-BbIk3Vx2.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-Dv2rXqE_.js.map → PersonalInfoStepWrapper-BbIk3Vx2.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-BAbaCmzK.js → PersonalInfoStepWrapper-BdmcREBy.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-BAbaCmzK.js.map → PersonalInfoStepWrapper-BdmcREBy.js.map} +1 -1
- package/chunk/PostalCodeComponent-BLKNma3I.js +4 -4
- package/chunk/PostalCodeComponent-CvmEHXss.js +4 -4
- package/chunk/SSN-7ZWvh6Fl.js +4 -4
- package/chunk/SSN-D4L9dF07.js +4 -4
- package/chunk/{StateSelectComponent-DhbTdduK.js → StateSelectComponent-2ZrqKNnd.js} +5 -5
- package/chunk/{StateSelectComponent-Bs7aaROV.js.map → StateSelectComponent-2ZrqKNnd.js.map} +1 -1
- package/chunk/{StateSelectComponent-Bs7aaROV.js → StateSelectComponent-CIPdo6OL.js} +5 -5
- package/chunk/{StateSelectComponent-DhbTdduK.js.map → StateSelectComponent-CIPdo6OL.js.map} +1 -1
- package/chunk/{StatusComponent-B5JAcJUi.js → StatusComponent-Be-kNy-2.js} +5 -5
- package/chunk/{StatusComponent-B5JAcJUi.js.map → StatusComponent-Be-kNy-2.js.map} +1 -1
- package/chunk/{StatusComponent-BW4grCA0.js → StatusComponent-lWYpHXI5.js} +5 -5
- package/chunk/{StatusComponent-BW4grCA0.js.map → StatusComponent-lWYpHXI5.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-D8fA8sZB.js → StepActiveMilitaryPersonalInfoComponent-DBe3v9gn.js} +13 -13
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-CDV8VdeP.js.map → StepActiveMilitaryPersonalInfoComponent-DBe3v9gn.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-CDV8VdeP.js → StepActiveMilitaryPersonalInfoComponent-KkWaNIkx.js} +13 -13
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-D8fA8sZB.js.map → StepActiveMilitaryPersonalInfoComponent-KkWaNIkx.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BsXKWMyZ.js → StepAgePersonalInfo-BhvhM0Qc.js} +12 -12
- package/chunk/{StepAgePersonalInfo-BsXKWMyZ.js.map → StepAgePersonalInfo-BhvhM0Qc.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DWkSYjNM.js → StepAgePersonalInfo-yyCGLpxY.js} +12 -12
- package/chunk/{StepAgePersonalInfo-DWkSYjNM.js.map → StepAgePersonalInfo-yyCGLpxY.js.map} +1 -1
- package/chunk/StepCard-42EsVjXX.js +4 -4
- package/chunk/StepCard-Bp2KEF4j.js +4 -4
- package/chunk/{StepCollectIdentifier-D2LH-ULf.js → StepCollectIdentifier-BfsiGjxy.js} +5 -5
- package/chunk/{StepCollectIdentifier-0JB1TTim.js.map → StepCollectIdentifier-BfsiGjxy.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-0JB1TTim.js → StepCollectIdentifier-CL3M2ylz.js} +5 -5
- package/chunk/{StepCollectIdentifier-D2LH-ULf.js.map → StepCollectIdentifier-CL3M2ylz.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent--1Rs3NPi.js → StepCollectMilitaryStatusComponent-BkJqLpHn.js} +5 -5
- package/chunk/StepCollectMilitaryStatusComponent-BtbLeQMg.js +9 -0
- package/chunk/{StepCollectPersonalInfo-CT6Xxh8i.js → StepCollectPersonalInfo-D5Fs34Ny.js} +20 -20
- package/chunk/{StepCollectPersonalInfo-CT6Xxh8i.js.map → StepCollectPersonalInfo-D5Fs34Ny.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DvM5xl43.js → StepCollectPersonalInfo-D6eSY_w8.js} +20 -20
- package/chunk/{StepCollectPersonalInfo-DvM5xl43.js.map → StepCollectPersonalInfo-D6eSY_w8.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-B5kvuKWH.js +4 -4
- package/chunk/StepCompleteAuthentication-ZqAH64xm.js +4 -4
- package/chunk/{StepConsolation-5Ww0Ghcp.js → StepConsolation-Bsk_fLwi.js} +5 -5
- package/chunk/{StepConsolation-d5Vs4qKz.js.map → StepConsolation-Bsk_fLwi.js.map} +1 -1
- package/chunk/{StepConsolation-d5Vs4qKz.js → StepConsolation-DMvLMVkh.js} +5 -5
- package/chunk/{StepConsolation-5Ww0Ghcp.js.map → StepConsolation-DMvLMVkh.js.map} +1 -1
- package/chunk/{StepDocUpload-D3uz8pvd.js → StepDocUpload-BtRS8S-x.js} +5 -5
- package/chunk/{StepDocUpload-D3uz8pvd.js.map → StepDocUpload-BtRS8S-x.js.map} +1 -1
- package/chunk/{StepDocUpload-D22MqW7k.js → StepDocUpload-DSpodLC9.js} +5 -5
- package/chunk/{StepDocUpload-D22MqW7k.js.map → StepDocUpload-DSpodLC9.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-uC55KN1H.js → StepDriverLicensePersonalInfoComponent-BJwEr-7A.js} +10 -10
- package/chunk/{StepDriverLicensePersonalInfoComponent-4NmCJbRX.js.map → StepDriverLicensePersonalInfoComponent-BJwEr-7A.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-4NmCJbRX.js → StepDriverLicensePersonalInfoComponent-Dhsw3bkZ.js} +10 -10
- package/chunk/{StepDriverLicensePersonalInfoComponent-uC55KN1H.js.map → StepDriverLicensePersonalInfoComponent-Dhsw3bkZ.js.map} +1 -1
- package/chunk/{StepEmailLoop-L4HZY2Ll.js → StepEmailLoop-CLdfvPXB.js} +6 -6
- package/chunk/{StepEmailLoop-B6h7tO50.js.map → StepEmailLoop-CLdfvPXB.js.map} +1 -1
- package/chunk/{StepEmailLoop-B6h7tO50.js → StepEmailLoop-CRbDel8p.js} +6 -6
- package/chunk/{StepEmailLoop-L4HZY2Ll.js.map → StepEmailLoop-CRbDel8p.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-gHPilHxI.js → StepEmploymentPersonalInfo-DPJ0UMrJ.js} +11 -11
- package/chunk/{StepEmploymentPersonalInfo-B2DXKZtW.js.map → StepEmploymentPersonalInfo-DPJ0UMrJ.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-B2DXKZtW.js → StepEmploymentPersonalInfo-urokkAjm.js} +11 -11
- package/chunk/{StepEmploymentPersonalInfo-gHPilHxI.js.map → StepEmploymentPersonalInfo-urokkAjm.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BSQ7vz_r.js → StepFirstResponderPersonalInfo-BvK0QXPZ.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-BSQ7vz_r.js.map → StepFirstResponderPersonalInfo-BvK0QXPZ.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-Bk9noGW0.js → StepFirstResponderPersonalInfo-ThcHSwW0.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-Bk9noGW0.js.map → StepFirstResponderPersonalInfo-ThcHSwW0.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cd_CKy1T.js → StepGeneralIdentityPersonalInfoComponent-CDNQr2j2.js} +11 -11
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cd_CKy1T.js.map → StepGeneralIdentityPersonalInfoComponent-CDNQr2j2.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DfR1qkZ5.js → StepGeneralIdentityPersonalInfoComponent-aDUUPfUK.js} +11 -11
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DfR1qkZ5.js.map → StepGeneralIdentityPersonalInfoComponent-aDUUPfUK.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DbfDAXco.js → StepHybridIdentityPersonalInfoComponent-Cz7NMFyK.js} +11 -11
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DbfDAXco.js.map → StepHybridIdentityPersonalInfoComponent-Cz7NMFyK.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DmGunpf_.js → StepHybridIdentityPersonalInfoComponent-deShTQld.js} +11 -11
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DmGunpf_.js.map → StepHybridIdentityPersonalInfoComponent-deShTQld.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CeXiXGCY.js → StepIDCheckLoop-Bc69OZrr.js} +5 -5
- package/chunk/{StepIDCheckLoop-CeXiXGCY.js.map → StepIDCheckLoop-Bc69OZrr.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DStjHTP0.js → StepIDCheckLoop-qQM2ppOK.js} +5 -5
- package/chunk/{StepIDCheckLoop-DStjHTP0.js.map → StepIDCheckLoop-qQM2ppOK.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Dkx_whVZ.js → StepIDCheckLoopOnfido-CYiSsYZC.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-BsFShNND.js.map → StepIDCheckLoopOnfido-CYiSsYZC.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BsFShNND.js → StepIDCheckLoopOnfido-_Y2Yl8H4.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-Dkx_whVZ.js.map → StepIDCheckLoopOnfido-_Y2Yl8H4.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DxWl03zj.js → StepIDCheckLoopRegula-CjeAqwHh.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-DUOMDism.js.map → StepIDCheckLoopRegula-CjeAqwHh.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DUOMDism.js → StepIDCheckLoopRegula-KS_bH-2k.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-DxWl03zj.js.map → StepIDCheckLoopRegula-KS_bH-2k.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-2Jl1gQ4-.js → StepInactiveMilitaryPersonalInfoComponent-CUyp2gOH.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-2Jl1gQ4-.js.map → StepInactiveMilitaryPersonalInfoComponent-CUyp2gOH.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-B9JO-PhC.js → StepInactiveMilitaryPersonalInfoComponent-CwEps3yq.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-B9JO-PhC.js.map → StepInactiveMilitaryPersonalInfoComponent-CwEps3yq.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-DiU96qwY.js → StepLicensedProfessionalPersonalInfo-BrUYM89F.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-DiU96qwY.js.map → StepLicensedProfessionalPersonalInfo-BrUYM89F.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-YFEskZdU.js → StepLicensedProfessionalPersonalInfo-Ckl7LuJd.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-YFEskZdU.js.map → StepLicensedProfessionalPersonalInfo-Ckl7LuJd.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BPrir6RN.js → StepLowIncomePersonalInfo-Bn1TGxr5.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-BPrir6RN.js.map → StepLowIncomePersonalInfo-Bn1TGxr5.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-Ck6W-uii.js → StepLowIncomePersonalInfo-C3A_oITZ.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-Ck6W-uii.js.map → StepLowIncomePersonalInfo-C3A_oITZ.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CRIS1EYC.js → StepMedicalProfessionalPersonalInfo-Bny4aBGH.js} +14 -14
- package/chunk/{StepMedicalProfessionalPersonalInfo-C4-pOJC5.js.map → StepMedicalProfessionalPersonalInfo-Bny4aBGH.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-C4-pOJC5.js → StepMedicalProfessionalPersonalInfo-bEmltLO0.js} +14 -14
- package/chunk/{StepMedicalProfessionalPersonalInfo-CRIS1EYC.js.map → StepMedicalProfessionalPersonalInfo-bEmltLO0.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-Cot3hTJt.js → StepMemberPersonalInfo-ByHX0gaS.js} +12 -12
- package/chunk/{StepMemberPersonalInfo-Cot3hTJt.js.map → StepMemberPersonalInfo-ByHX0gaS.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-RG43951U.js → StepMemberPersonalInfo-wwAzUKPQ.js} +12 -12
- package/chunk/{StepMemberPersonalInfo-RG43951U.js.map → StepMemberPersonalInfo-wwAzUKPQ.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CLhIJvhI.js → StepMoverPersonalInfo-B1SbMnni.js} +9 -9
- package/chunk/{StepMoverPersonalInfo-BIKDuW5b.js.map → StepMoverPersonalInfo-B1SbMnni.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BIKDuW5b.js → StepMoverPersonalInfo-CUbmmXDG.js} +9 -9
- package/chunk/{StepMoverPersonalInfo-CLhIJvhI.js.map → StepMoverPersonalInfo-CUbmmXDG.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CMMXI4We.js → StepOverrideComponent-Brq5KLjj.js} +5 -5
- package/chunk/{StepOverrideComponent-CMMXI4We.js.map → StepOverrideComponent-Brq5KLjj.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DygO233q.js → StepOverrideComponent-DbVmCfo8.js} +5 -5
- package/chunk/{StepOverrideComponent-DygO233q.js.map → StepOverrideComponent-DbVmCfo8.js.map} +1 -1
- package/chunk/{StepSMSLoop-BmobfUfE.js → StepSMSLoop-BETiez1v.js} +5 -5
- package/chunk/{StepSMSLoop-BYatQ9OR.js.map → StepSMSLoop-BETiez1v.js.map} +1 -1
- package/chunk/{StepSMSLoop-BYatQ9OR.js → StepSMSLoop-DLc0yIT_.js} +5 -5
- package/chunk/{StepSMSLoop-BmobfUfE.js.map → StepSMSLoop-DLc0yIT_.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +4 -4
- package/chunk/StepSSO-BaFk7RFJ.js +4 -4
- package/chunk/{StepSocialSecurityNumber-B-N3uH86.js → StepSocialSecurityNumber-BdnDRRc3.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-B-N3uH86.js.map → StepSocialSecurityNumber-BdnDRRc3.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-DhZcbSdT.js → StepSocialSecurityNumber-Bpo4fPf6.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-DhZcbSdT.js.map → StepSocialSecurityNumber-Bpo4fPf6.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-Bae9FvUX.js → StepStudentPersonalInfo-C6vglquS.js} +13 -13
- package/chunk/{StepStudentPersonalInfo-Bae9FvUX.js.map → StepStudentPersonalInfo-C6vglquS.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DbM8Idy5.js → StepStudentPersonalInfo-DBBWOcEx.js} +13 -13
- package/chunk/{StepStudentPersonalInfo-DbM8Idy5.js.map → StepStudentPersonalInfo-DBBWOcEx.js.map} +1 -1
- package/chunk/{StepSuccess-VLdhtqqh.js → StepSuccess-C51_tEas.js} +5 -5
- package/chunk/{StepSuccess-PWJdenH2.js.map → StepSuccess-C51_tEas.js.map} +1 -1
- package/chunk/{StepSuccess-PWJdenH2.js → StepSuccess-CErDLjZO.js} +5 -5
- package/chunk/{StepSuccess-VLdhtqqh.js.map → StepSuccess-CErDLjZO.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo--qv2H98e.js → StepTeacherPersonalInfo-BUw1PXZ1.js} +13 -13
- package/chunk/{StepTeacherPersonalInfo--qv2H98e.js.map → StepTeacherPersonalInfo-BUw1PXZ1.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-jp7Fr4YU.js → StepTeacherPersonalInfo-C_pDLBTF.js} +13 -13
- package/chunk/{StepTeacherPersonalInfo-jp7Fr4YU.js.map → StepTeacherPersonalInfo-C_pDLBTF.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +4 -4
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +4 -4
- package/chunk/{TeacherSchoolComponent-CIAOflZz.js → TeacherSchoolComponent-CH5QkYRm.js} +5 -5
- package/chunk/{TeacherSchoolComponent-CIAOflZz.js.map → TeacherSchoolComponent-CH5QkYRm.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-qN6qaWnt.js → TeacherSchoolComponent-DTOJqI0k.js} +5 -5
- package/chunk/{TeacherSchoolComponent-qN6qaWnt.js.map → TeacherSchoolComponent-DTOJqI0k.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BQzBlUms.js +4 -4
- package/chunk/TestingRouteOverrides-Dw6GXQ6-.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-gEk86l4O.js → VerificationApiClient-BsLwbdz4.js} +46 -39
- package/chunk/VerificationApiClient-BsLwbdz4.js.map +1 -0
- package/chunk/{VerificationApiClient-D3CjKrw1.js → VerificationApiClient-DWnRRNnT.js} +46 -39
- package/chunk/VerificationApiClient-DWnRRNnT.js.map +1 -0
- package/chunk/{VerificationApiUtils-CnnJGEVU.js → VerificationApiUtils-B4YmzpPS.js} +6 -6
- package/chunk/{VerificationApiUtils-CnnJGEVU.js.map → VerificationApiUtils-B4YmzpPS.js.map} +1 -1
- package/chunk/{VerificationApiUtils-DvjZs7Ay.js → VerificationApiUtils-DDWkS3br.js} +7 -7
- package/chunk/{VerificationApiUtils-DvjZs7Ay.js.map → VerificationApiUtils-DDWkS3br.js.map} +1 -1
- package/chunk/ar-CZrVPqvf.js +4 -4
- package/chunk/bg-Cj9u62RW.js +4 -4
- package/chunk/bn-IN-AX8JdjQ8.js +4 -4
- package/chunk/countryUtils-B0gQRrDx.js +4 -4
- package/chunk/countryUtils-CLqT0spr.js +4 -4
- package/chunk/cs-5rrzGv7_.js +4 -4
- package/chunk/da-DMDlBT-5.js +4 -4
- package/chunk/de-DG-q-l7o.js +4 -4
- package/chunk/{downshift.esm-DSIvnNDn.js → downshift.esm-3U7ccZMr.js} +5 -5
- package/chunk/{downshift.esm-C3OrCUUX.js.map → downshift.esm-3U7ccZMr.js.map} +1 -1
- package/chunk/{downshift.esm-C3OrCUUX.js → downshift.esm-DECZgbjH.js} +5 -5
- package/chunk/{downshift.esm-DSIvnNDn.js.map → downshift.esm-DECZgbjH.js.map} +1 -1
- package/chunk/el-yctEkMhE.js +4 -4
- package/chunk/empties-DXsucFOV.js +4 -4
- package/chunk/empties-GdeHHk2b.js +4 -4
- package/chunk/en-GB-6LZCsn1D.js +4 -4
- package/chunk/es-BMeF1R04.js +4 -4
- package/chunk/es-ES-CsFb7QAU.js +4 -4
- package/chunk/et-CiZKWMRu.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-D9V3MCMh.js +4 -4
- package/chunk/fi-poKCN0AL.js +4 -4
- package/chunk/fr-BiSjb5hG.js +4 -4
- package/chunk/fr-CA-zBX3D7Nl.js +4 -4
- package/chunk/ga-jC99p6r7.js +4 -4
- package/chunk/hi-IN-C_1AZftT.js +4 -4
- package/chunk/hr-abbR52XG.js +4 -4
- package/chunk/hu-CeZoihsr.js +4 -4
- package/chunk/id-wFLT8G20.js +4 -4
- package/chunk/intl-B461eGlU.js +4 -4
- package/chunk/is-sc_8Dmxx.js +4 -4
- package/chunk/it-Mhw_31wt.js +4 -4
- package/chunk/iw-BfqjzsAq.js +4 -4
- package/chunk/ja-Bdvw5s91.js +4 -4
- package/chunk/jsx-runtime-CeRrwqti.js +4 -4
- package/chunk/jsx-runtime-KEs0wOl5.js +4 -4
- package/chunk/kk-mHV9A9HS.js +4 -4
- package/chunk/ko-C7nyKdTs.js +4 -4
- package/chunk/lo-baNG1foB.js +4 -4
- package/chunk/lt-CNU2L7fK.js +4 -4
- package/chunk/lv-bP-HuAKS.js +4 -4
- package/chunk/militaryStepHelpers-BeN98TAk.js +4 -4
- package/chunk/militaryStepHelpers-CT2x_HCE.js +4 -4
- package/chunk/mocks-3VPL7XDa.js +4 -4
- package/chunk/mocks-CmzyO_3E.js +4 -4
- package/chunk/ms-Bg8aDCAA.js +4 -4
- package/chunk/nl-BE-Ct8zP0W1.js +4 -4
- package/chunk/nl-CbfjSfKQ.js +4 -4
- package/chunk/no-DjDW2Ec_.js +4 -4
- package/chunk/options-PkP3zQGm.js +4 -4
- package/chunk/pl--DnD-6qz.js +4 -4
- package/chunk/programThemeGetters-DSFEiKNU.js +4 -4
- package/chunk/programThemeGetters-LYR56E0U.js +4 -4
- package/chunk/pt-BR-B02CJDXT.js +4 -4
- package/chunk/pt-CcmRJnZb.js +4 -4
- package/chunk/refs-V7YziA0C.js +4 -4
- package/chunk/refs-xcOEsQO3.js +4 -4
- package/chunk/ro-CLdi0jqR.js +4 -4
- package/chunk/ru-Z91NV1Cr.js +4 -4
- package/chunk/sk-B7rRmmv6.js +4 -4
- package/chunk/sl-DhAq6T_a.js +4 -4
- package/chunk/sr-DpP50d7v.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-QG7LEZNd.js +4 -4
- package/chunk/sw--WAxwRTW.js +4 -4
- package/chunk/ta-DRF7u30N.js +4 -4
- package/chunk/th-BoK35Z2N.js +4 -4
- package/chunk/tl-BDTwfyaC.js +4 -4
- package/chunk/tr-BoXGTv5p.js +4 -4
- package/chunk/uk-AXN3c9FX.js +4 -4
- package/chunk/ur-D5Nqe4mS.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-CxApClDJ.js → useCollectFieldsEndpoint-CmhsVIvE.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-CxApClDJ.js.map → useCollectFieldsEndpoint-CmhsVIvE.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DdfF9vnt.js → useCollectFieldsEndpoint-VPw0kC1j.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-DdfF9vnt.js.map → useCollectFieldsEndpoint-VPw0kC1j.js.map} +1 -1
- package/chunk/useMetrics-C13BbDWa.js +4 -4
- package/chunk/useMetrics-ntewhX51.js +4 -4
- package/chunk/validators-BIcHHTv2.js +4 -4
- package/chunk/validators-CWveyjFm.js +4 -4
- package/chunk/vi-BE4aMeLo.js +4 -4
- package/chunk/zh-CUzsIz8M.js +4 -4
- package/chunk/zh-HK-BTCqwQOw.js +4 -4
- package/chunk/zu-ChHTiO3Y.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 +1058 -1057
- package/sheerid.js.map +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-CKEktr7r.js +0 -9
- package/chunk/VerificationApiClient-D3CjKrw1.js.map +0 -1
- package/chunk/VerificationApiClient-gEk86l4O.js.map +0 -1
package/sheerid.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Thu Jul 30 2026
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.262.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785450406075
|
|
5
|
+
* BUILD_DATE: Thu Jul 30 2026 22:26:46 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 68821addc264679ff62b3fd4a999222f4aba0b42
|
|
7
7
|
*/
|
|
8
8
|
import { C as e, Ct as t, E as n, Gt as r, It as i, L as a, Lt as o, Pt as s, St as c, T as l, Ut as u, Vt as d, b as f, bt as p, c as m, ct as h, d as g, g as _, h as v, i as y, it as b, l as x, m as S, mt as C, n as w, p as T, r as E, rt as D, s as O, st as k, t as A, u as j, w as M, wt as N, x as P, y as F } from "./chunk/options-PkP3zQGm.js";
|
|
9
9
|
import { a as ee, c as I, i as te, n as L, s as ne, t as re } from "./chunk/jsx-runtime-CeRrwqti.js";
|
|
10
|
-
import { A as ie, C as ae, D as R, E as oe, L as se, M as ce, N as le, O as ue, S as de, T as fe, _ as pe, a as me, b as he, d as ge, f as _e, g as ve, h as ye, i as be, j as xe, k as Se, l as Ce, m as we, n as Te, o as Ee, p as De, r as Oe, s as
|
|
11
|
-
import { a as
|
|
12
|
-
import { n as
|
|
13
|
-
import {
|
|
14
|
-
import { d as qe, f as Je, l as Ye } from "./chunk/ApiUrls-
|
|
10
|
+
import { A as ie, C as ae, D as R, E as oe, L as se, M as ce, N as le, O as ue, S as de, T as fe, _ as pe, a as me, b as he, d as ge, f as _e, g as ve, h as ye, i as be, j as xe, k as Se, l as Ce, m as we, n as Te, o as Ee, p as De, r as Oe, s as z, t as ke, u as Ae, v as je, w as Me, x as Ne, y as Pe } from "./chunk/FormFooterComponent-Cjj1N06z.js";
|
|
11
|
+
import { a as Fe, i as Ie, r as Le, s as Re, t as ze } from "./chunk/TestingRouteOverrides-BQzBlUms.js";
|
|
12
|
+
import { n as Be } from "./chunk/empties-GdeHHk2b.js";
|
|
13
|
+
import { f as Ve, l as He, o as Ue, s as We, t as Ge, u as Ke } from "./chunk/VerificationApiClient-BsLwbdz4.js";
|
|
14
|
+
import { d as qe, f as Je, l as Ye } from "./chunk/ApiUrls-DdwCkseK.js";
|
|
15
15
|
import { a as Xe, c as Ze, i as Qe, n as $e, r as et, t as tt } from "./chunk/programThemeGetters-DSFEiKNU.js";
|
|
16
16
|
import { a as nt, n as rt, r as it } from "./chunk/validators-CWveyjFm.js";
|
|
17
17
|
import { i as at, n as ot, r as st, s as ct, t as lt } from "./chunk/refs-V7YziA0C.js";
|
|
@@ -19,44 +19,44 @@ import { t as ut } from "./chunk/LogoComponent-CTCMA59a.js";
|
|
|
19
19
|
import { t as dt } from "./chunk/strings-DWLVdUcm.js";
|
|
20
20
|
import { t as ft } from "./chunk/AnnouncingHeader-DGy7wEme.js";
|
|
21
21
|
//#region ../node_modules/react-i18next/dist/es/I18nextProvider.js
|
|
22
|
-
var
|
|
22
|
+
var B = /* @__PURE__ */ r(I());
|
|
23
23
|
function pt({ i18n: e, defaultNS: t, children: n }) {
|
|
24
|
-
let r = (0,
|
|
24
|
+
let r = (0, B.useMemo)(() => ({
|
|
25
25
|
i18n: e,
|
|
26
26
|
defaultNS: t
|
|
27
27
|
}), [e, t]);
|
|
28
|
-
return (0,
|
|
28
|
+
return (0, B.createElement)(xe.Provider, { value: r }, n);
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/components/LoadingSpinner/LoadingSpinnerComponent.tsx
|
|
32
|
-
var mt = /* @__PURE__ */ r(se(), 1), ht = /* @__PURE__ */ r(k(), 1),
|
|
32
|
+
var mt = /* @__PURE__ */ r(se(), 1), ht = /* @__PURE__ */ r(k(), 1), V = re(), gt = () => /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
33
33
|
className: "sid-spinner",
|
|
34
34
|
"data-testid": "sid-spinner",
|
|
35
35
|
children: [
|
|
36
|
-
/* @__PURE__ */ (0,
|
|
37
|
-
/* @__PURE__ */ (0,
|
|
38
|
-
/* @__PURE__ */ (0,
|
|
39
|
-
/* @__PURE__ */ (0,
|
|
36
|
+
/* @__PURE__ */ (0, V.jsx)("div", { className: "sid-spinner__frame" }),
|
|
37
|
+
/* @__PURE__ */ (0, V.jsx)("div", { className: "sid-spinner__frame" }),
|
|
38
|
+
/* @__PURE__ */ (0, V.jsx)("div", { className: "sid-spinner__frame" }),
|
|
39
|
+
/* @__PURE__ */ (0, V.jsx)("div", { className: "sid-spinner__frame" })
|
|
40
40
|
]
|
|
41
|
-
}), _t = ({ step: e }) => /* @__PURE__ */ (0,
|
|
41
|
+
}), _t = ({ step: e }) => /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
42
42
|
className: "sid-loading-screen__message",
|
|
43
|
-
children: [o(e) && /* @__PURE__ */ (0,
|
|
43
|
+
children: [o(e) && /* @__PURE__ */ (0, V.jsx)("div", {
|
|
44
44
|
className: "sid-loading-screen__message-header",
|
|
45
45
|
role: "alert",
|
|
46
|
-
children: /* @__PURE__ */ (0,
|
|
46
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
47
47
|
id: "step.personalInfo.verifyingTitle",
|
|
48
48
|
defaultMessage: "Verifying your status"
|
|
49
49
|
})
|
|
50
|
-
}), /* @__PURE__ */ (0,
|
|
50
|
+
}), /* @__PURE__ */ (0, V.jsx)("div", {
|
|
51
51
|
className: "sid-loading-screen__message-subhead",
|
|
52
|
-
children: /* @__PURE__ */ (0,
|
|
52
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
53
53
|
id: "step.personalInfo.verifyingSubtitle",
|
|
54
54
|
defaultMessage: "This should only take a minute"
|
|
55
55
|
})
|
|
56
56
|
})]
|
|
57
|
-
}), vt = ({ step: e =
|
|
57
|
+
}), vt = ({ step: e = ze() }) => /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
58
58
|
className: "sid-loading-screen",
|
|
59
|
-
children: [/* @__PURE__ */ (0,
|
|
59
|
+
children: [/* @__PURE__ */ (0, V.jsx)(gt, {}), e && /* @__PURE__ */ (0, V.jsx)(_t, { step: e })]
|
|
60
60
|
}), yt = /* @__PURE__ */ u(((e, t) => {
|
|
61
61
|
var n, r = n = {
|
|
62
62
|
_regexEscape: /([\.\*\+\^\$\[\]\\\(\)\|\{\}\,\-\:\?])/g,
|
|
@@ -137,7 +137,7 @@ function xt(e) {
|
|
|
137
137
|
}
|
|
138
138
|
return t.prototype = /* @__PURE__ */ Error(), t.prototype.name = e, t.prototype.constructor = t, t;
|
|
139
139
|
}
|
|
140
|
-
for (var St = xt("LaunchDarklyUnexpectedResponseError"), Ct = xt("LaunchDarklyInvalidEnvironmentIdError"), wt = xt("LaunchDarklyInvalidUserError"), Tt = xt("LaunchDarklyInvalidEventKeyError"), Et = xt("LaunchDarklyInvalidArgumentError"), Dt = xt("LaunchDarklyFlagFetchError"),
|
|
140
|
+
for (var St = xt("LaunchDarklyUnexpectedResponseError"), Ct = xt("LaunchDarklyInvalidEnvironmentIdError"), wt = xt("LaunchDarklyInvalidUserError"), Tt = xt("LaunchDarklyInvalidEventKeyError"), Et = xt("LaunchDarklyInvalidArgumentError"), Dt = xt("LaunchDarklyFlagFetchError"), H = {
|
|
141
141
|
LDUnexpectedResponseError: St,
|
|
142
142
|
LDInvalidEnvironmentIdError: Ct,
|
|
143
143
|
LDInvalidUserError: wt,
|
|
@@ -156,12 +156,12 @@ for (var St = xt("LaunchDarklyUnexpectedResponseError"), Ct = xt("LaunchDarklyIn
|
|
|
156
156
|
var t, n, r = Ft(e), i = r[0], a = r[1], o = new Mt(function(e, t, n) {
|
|
157
157
|
return 3 * (t + n) / 4 - n;
|
|
158
158
|
}(0, i, a)), s = 0, c = a > 0 ? i - 4 : i;
|
|
159
|
-
for (n = 0; n < c; n += 4) t =
|
|
160
|
-
return a === 2 && (t =
|
|
159
|
+
for (n = 0; n < c; n += 4) t = U[e.charCodeAt(n)] << 18 | U[e.charCodeAt(n + 1)] << 12 | U[e.charCodeAt(n + 2)] << 6 | U[e.charCodeAt(n + 3)], o[s++] = t >> 16 & 255, o[s++] = t >> 8 & 255, o[s++] = 255 & t;
|
|
160
|
+
return a === 2 && (t = U[e.charCodeAt(n)] << 2 | U[e.charCodeAt(n + 1)] >> 4, o[s++] = 255 & t), a === 1 && (t = U[e.charCodeAt(n)] << 10 | U[e.charCodeAt(n + 1)] << 4 | U[e.charCodeAt(n + 2)] >> 2, o[s++] = t >> 8 & 255, o[s++] = 255 & t), o;
|
|
161
161
|
}, At = function(e) {
|
|
162
162
|
for (var t, n = e.length, r = n % 3, i = [], a = 16383, o = 0, s = n - r; o < s; o += a) i.push(Lt(e, o, o + a > s ? s : o + a));
|
|
163
163
|
return r === 1 ? (t = e[n - 1], i.push(jt[t >> 2] + jt[t << 4 & 63] + "==")) : r === 2 && (t = (e[n - 2] << 8) + e[n - 1], i.push(jt[t >> 10] + jt[t >> 4 & 63] + jt[t << 2 & 63] + "=")), i.join("");
|
|
164
|
-
}, jt = [],
|
|
164
|
+
}, jt = [], U = [], Mt = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Pt = 0; Pt < 64; ++Pt) jt[Pt] = Nt[Pt], U[Nt.charCodeAt(Pt)] = Pt;
|
|
165
165
|
function Ft(e) {
|
|
166
166
|
var t = e.length;
|
|
167
167
|
if (t % 4 > 0) throw Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -175,7 +175,7 @@ function Lt(e, t, n) {
|
|
|
175
175
|
for (var r, i = [], a = t; a < n; a += 3) r = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (255 & e[a + 2]), i.push(It(r));
|
|
176
176
|
return i.join("");
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
U[45] = 62, U[95] = 63;
|
|
179
179
|
var Rt = {
|
|
180
180
|
byteLength: Ot,
|
|
181
181
|
toByteArray: kt,
|
|
@@ -224,7 +224,7 @@ function Wt(e) {
|
|
|
224
224
|
function Gt(e, t) {
|
|
225
225
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
226
226
|
}
|
|
227
|
-
var
|
|
227
|
+
var W = {
|
|
228
228
|
appendUrlPath: function(e, t) {
|
|
229
229
|
return (e.endsWith("/") ? e.substring(0, e.length - 1) : e) + (t.startsWith("/") ? "" : "/") + t;
|
|
230
230
|
},
|
|
@@ -395,7 +395,7 @@ var tn = {
|
|
|
395
395
|
function an(e) {
|
|
396
396
|
return e && e.message ? e.message : typeof e == "string" || e instanceof String ? e : JSON.stringify(e);
|
|
397
397
|
}
|
|
398
|
-
var
|
|
398
|
+
var G = {
|
|
399
399
|
bootstrapInvalid: function() {
|
|
400
400
|
return "LaunchDarkly bootstrap data is not available because the back end could not read the flags.";
|
|
401
401
|
},
|
|
@@ -457,7 +457,7 @@ var W = {
|
|
|
457
457
|
return "Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript";
|
|
458
458
|
},
|
|
459
459
|
httpErrorMessage: function(e, t, n) {
|
|
460
|
-
return "Received error " + e + (e === 401 ? " (invalid SDK key)" : "") + " for " + t + " - " + (
|
|
460
|
+
return "Received error " + e + (e === 401 ? " (invalid SDK key)" : "") + " for " + t + " - " + (H.isHttpErrorRecoverable(e) ? n : "giving up permanently");
|
|
461
461
|
},
|
|
462
462
|
httpUnavailable: function() {
|
|
463
463
|
return "Cannot make HTTP requests in this environment. Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.";
|
|
@@ -558,34 +558,34 @@ function ln(e) {
|
|
|
558
558
|
function un(e, t, n) {
|
|
559
559
|
if (typeof t == "string" && t.match(cn)) {
|
|
560
560
|
if (!(t.length > 64)) return t;
|
|
561
|
-
n.warn(
|
|
562
|
-
} else n.warn(
|
|
561
|
+
n.warn(G.tagValueTooLong(e));
|
|
562
|
+
} else n.warn(G.invalidTagValue(e));
|
|
563
563
|
}
|
|
564
564
|
var dn = {
|
|
565
565
|
baseOptionDefs: sn,
|
|
566
566
|
validate: function(e, t, n, r) {
|
|
567
|
-
let i =
|
|
567
|
+
let i = W.extend({ logger: { default: r } }, sn, n), a = {};
|
|
568
568
|
function o(e) {
|
|
569
|
-
|
|
570
|
-
t && t.maybeReportError(new
|
|
569
|
+
W.onNextTick(() => {
|
|
570
|
+
t && t.maybeReportError(new H.LDInvalidArgumentError(e));
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
|
-
let s =
|
|
573
|
+
let s = W.extend({}, e || {});
|
|
574
574
|
return function(e) {
|
|
575
575
|
let t = e;
|
|
576
576
|
Object.keys(a).forEach((e) => {
|
|
577
577
|
if (t[e] !== void 0) {
|
|
578
578
|
let n = a[e];
|
|
579
|
-
r && r.warn(
|
|
579
|
+
r && r.warn(G.deprecated(e, n)), n && (t[n] === void 0 && (t[n] = t[e]), delete t[e]);
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
582
|
}(s), s = function(e) {
|
|
583
|
-
let t =
|
|
583
|
+
let t = W.extend({}, e);
|
|
584
584
|
return Object.keys(i).forEach((e) => {
|
|
585
585
|
t[e] !== void 0 && t[e] !== null || (t[e] = i[e] && i[e].default);
|
|
586
586
|
}), t;
|
|
587
587
|
}(s), s = function(e) {
|
|
588
|
-
let t =
|
|
588
|
+
let t = W.extend({}, e), n = (e) => {
|
|
589
589
|
if (e === null) return "any";
|
|
590
590
|
if (e === void 0) return;
|
|
591
591
|
if (Array.isArray(e)) return "array";
|
|
@@ -596,7 +596,7 @@ var dn = {
|
|
|
596
596
|
let s = e[a];
|
|
597
597
|
if (s != null) {
|
|
598
598
|
let c = i[a];
|
|
599
|
-
if (c === void 0) o(
|
|
599
|
+
if (c === void 0) o(G.unknownOption(a));
|
|
600
600
|
else {
|
|
601
601
|
let i = c.type || n(c.default), l = c.validator;
|
|
602
602
|
if (l) {
|
|
@@ -604,7 +604,7 @@ var dn = {
|
|
|
604
604
|
n === void 0 ? delete t[a] : t[a] = n;
|
|
605
605
|
} else if (i !== "any") {
|
|
606
606
|
let e = i.split("|"), r = n(s);
|
|
607
|
-
e.indexOf(r) < 0 ? i === "boolean" ? (t[a] = !!s, o(
|
|
607
|
+
e.indexOf(r) < 0 ? i === "boolean" ? (t[a] = !!s, o(G.wrongOptionTypeBoolean(a, r))) : (o(G.wrongOptionType(a, i, r)), t[a] = c.default) : r === "number" && c.minimum !== void 0 && s < c.minimum && (o(G.optionBelowMinimum(a, s, c.minimum)), t[a] = c.minimum);
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
}
|
|
@@ -615,7 +615,7 @@ var dn = {
|
|
|
615
615
|
let t = {};
|
|
616
616
|
return e && (e.application && e.application.id !== void 0 && e.application.id !== null && (t["application-id"] = [e.application.id]), e.application && e.application.version !== void 0 && e.application.id !== null && (t["application-version"] = [e.application.version])), t;
|
|
617
617
|
}
|
|
618
|
-
}, { getLDUserAgentString: fn } =
|
|
618
|
+
}, { getLDUserAgentString: fn } = W, pn = {
|
|
619
619
|
getLDHeaders: function(e, t) {
|
|
620
620
|
if (t && !t.sendLDHeaders) return {};
|
|
621
621
|
let n = {};
|
|
@@ -627,17 +627,17 @@ var dn = {
|
|
|
627
627
|
return t && t.requestHeaderTransform ? t.requestHeaderTransform({ ...e }) : e;
|
|
628
628
|
}
|
|
629
629
|
}, { randomUuidV4: mn } = tn, { getLDHeaders: hn, transformHeaders: gn } = pn, _n = function(e, t, n) {
|
|
630
|
-
let r =
|
|
630
|
+
let r = W.extend({ "Content-Type": "application/json" }, hn(e, n)), i = {};
|
|
631
631
|
return i.sendEvents = (t, i, a) => {
|
|
632
632
|
if (!e.httpRequest) return Promise.resolve();
|
|
633
633
|
let o = JSON.stringify(t), s = a ? null : mn();
|
|
634
634
|
return function t(c) {
|
|
635
|
-
let l = a ? r :
|
|
635
|
+
let l = a ? r : W.extend({}, r, {
|
|
636
636
|
"X-LaunchDarkly-Event-Schema": "4",
|
|
637
637
|
"X-LaunchDarkly-Payload-ID": s
|
|
638
638
|
});
|
|
639
639
|
return e.httpRequest("POST", i, gn(l, n), o).promise.then((e) => {
|
|
640
|
-
if (e) return e.status >= 400 &&
|
|
640
|
+
if (e) return e.status >= 400 && H.isHttpErrorRecoverable(e.status) && c ? t(!1) : function(e) {
|
|
641
641
|
let t = { status: e.status }, n = e.header("date");
|
|
642
642
|
if (n) {
|
|
643
643
|
let e = Date.parse(n);
|
|
@@ -870,23 +870,23 @@ var jn = {
|
|
|
870
870
|
return n;
|
|
871
871
|
})(e, t) : o(e, t), t;
|
|
872
872
|
}, { getContextKeys: Nn } = Sn, Pn = function(e, t, n, r = null, i = null, a = null) {
|
|
873
|
-
let o = {}, s = a || _n(e, n, t), c =
|
|
873
|
+
let o = {}, s = a || _n(e, n, t), c = W.appendUrlPath(t.eventsUrl, "/events/bulk/" + n), l = Mn(t), u = Tn(l), d = t.samplingInterval, f = t.eventCapacity, p = t.flushInterval, m = t.logger, h, g = [], _ = 0, v = !1, y = !1;
|
|
874
874
|
function b() {
|
|
875
875
|
return d === 0 || Math.floor(Math.random() * d) === 0;
|
|
876
876
|
}
|
|
877
877
|
function x(e) {
|
|
878
|
-
let t =
|
|
878
|
+
let t = W.extend({}, e);
|
|
879
879
|
return e.kind === "identify" || e.kind === "feature" || e.kind === "custom" ? t.context = l.filter(e.context) : (t.contextKeys = Nn(e.context, m), delete t.context), e.kind === "feature" && (delete t.trackEvents, delete t.debugEventsUntilDate), t;
|
|
880
880
|
}
|
|
881
881
|
function S(e) {
|
|
882
|
-
g.length < f ? (g.push(e), y = !1) : (y || (y = !0, m.warn(
|
|
882
|
+
g.length < f ? (g.push(e), y = !1) : (y || (y = !0, m.warn(G.eventCapacityExceeded())), r && r.incrementDroppedEvents());
|
|
883
883
|
}
|
|
884
884
|
return o.enqueue = function(e) {
|
|
885
885
|
if (v) return;
|
|
886
886
|
let t = !1, n = !1;
|
|
887
887
|
var r;
|
|
888
888
|
if (u.summarizeEvent(e), e.kind === "feature" ? b() && (t = !!e.trackEvents, n = !!(r = e).debugEventsUntilDate && r.debugEventsUntilDate > _ && r.debugEventsUntilDate > (/* @__PURE__ */ new Date()).getTime()) : t = b(), t && S(x(e)), n) {
|
|
889
|
-
let t =
|
|
889
|
+
let t = W.extend({}, e, { kind: "debug" });
|
|
890
890
|
t.context = l.filter(t.context), delete t.trackEvents, delete t.debugEventsUntilDate, S(t);
|
|
891
891
|
}
|
|
892
892
|
}, o.flush = async function() {
|
|
@@ -894,9 +894,9 @@ var jn = {
|
|
|
894
894
|
let e = g;
|
|
895
895
|
return u.getSummaries().forEach((t) => {
|
|
896
896
|
Object.keys(t.features).length && e.push(t);
|
|
897
|
-
}), r && r.setEventsInLastBatch(e.length), e.length === 0 ? Promise.resolve() : (g = [], m.debug(
|
|
898
|
-
e && (e.serverTime && (_ = e.serverTime),
|
|
899
|
-
i.maybeReportError(new
|
|
897
|
+
}), r && r.setEventsInLastBatch(e.length), e.length === 0 ? Promise.resolve() : (g = [], m.debug(G.debugPostingEvents(e.length)), s.sendEvents(e, c).then((e) => {
|
|
898
|
+
e && (e.serverTime && (_ = e.serverTime), H.isHttpErrorRecoverable(e.status) || (v = !0), e.status >= 400 && W.onNextTick(() => {
|
|
899
|
+
i.maybeReportError(new H.LDUnexpectedResponseError(G.httpErrorMessage(e.status, "event posting", "some events were dropped")));
|
|
900
900
|
}));
|
|
901
901
|
}));
|
|
902
902
|
}, o.start = function() {
|
|
@@ -955,7 +955,7 @@ var jn = {
|
|
|
955
955
|
let i = {};
|
|
956
956
|
function a() {
|
|
957
957
|
let e = "", i = r.getContext();
|
|
958
|
-
return i && (e = n ||
|
|
958
|
+
return i && (e = n || W.btoa(JSON.stringify(i))), "ld:" + t + ":" + e;
|
|
959
959
|
}
|
|
960
960
|
return i.loadFlags = () => e.get(a()).then((e) => {
|
|
961
961
|
if (e == null) return null;
|
|
@@ -963,19 +963,19 @@ var jn = {
|
|
|
963
963
|
let t = JSON.parse(e);
|
|
964
964
|
if (t) {
|
|
965
965
|
let e = t.$schema;
|
|
966
|
-
e === void 0 || e < 1 ? t =
|
|
966
|
+
e === void 0 || e < 1 ? t = W.transformValuesToVersionedValues(t) : delete t.$schema;
|
|
967
967
|
}
|
|
968
968
|
return t;
|
|
969
969
|
} catch {
|
|
970
970
|
return i.clearFlags().then(() => null);
|
|
971
971
|
}
|
|
972
972
|
}), i.saveFlags = (t) => {
|
|
973
|
-
let n =
|
|
973
|
+
let n = W.extend({}, t, { $schema: 1 });
|
|
974
974
|
return e.set(a(), JSON.stringify(n));
|
|
975
975
|
}, i.clearFlags = () => e.clear(a()), i;
|
|
976
976
|
}, Vn = function(e, t) {
|
|
977
977
|
let n = {}, r = !1, i = (e) => {
|
|
978
|
-
r || (r = !0, t.warn(
|
|
978
|
+
r || (r = !0, t.warn(G.localStorageUnavailable(e)));
|
|
979
979
|
};
|
|
980
980
|
return n.isEnabled = () => !!e, n.get = (t) => new Promise((n) => {
|
|
981
981
|
e ? e.get(t).then(n).catch((e) => {
|
|
@@ -990,7 +990,7 @@ var jn = {
|
|
|
990
990
|
i(e), n(!1);
|
|
991
991
|
}) : n(!1);
|
|
992
992
|
}), n;
|
|
993
|
-
}, { appendUrlPath: Hn, base64URLEncode: Un, objectHasOwnProperty: Wn } =
|
|
993
|
+
}, { appendUrlPath: Hn, base64URLEncode: Un, objectHasOwnProperty: Wn } = W, { getLDHeaders: Gn, transformHeaders: Kn } = pn, { isHttpErrorRecoverable: qn } = H, Jn = function(e, t, n, r) {
|
|
994
994
|
let i = t.streamUrl, a = t.logger, o = {}, s = Hn(i, "/eval/" + n), c = t.useReport, l = t.evaluationReasons, u = t.streamReconnectDelay, d = Gn(e, t), f, p = !1, m = null, h = null, g = null, _ = null, v = null, y = 0;
|
|
995
995
|
function b() {
|
|
996
996
|
let e = (t = function() {
|
|
@@ -1001,9 +1001,9 @@ var jn = {
|
|
|
1001
1001
|
return y += 1, e;
|
|
1002
1002
|
}
|
|
1003
1003
|
function x(e) {
|
|
1004
|
-
if (e.status && typeof e.status == "number" && !qn(e.status)) return w(), a.error(
|
|
1004
|
+
if (e.status && typeof e.status == "number" && !qn(e.status)) return w(), a.error(G.unrecoverableStreamError(e)), void (h &&= (clearTimeout(h), null));
|
|
1005
1005
|
let t = b();
|
|
1006
|
-
p ||= (a.warn(
|
|
1006
|
+
p ||= (a.warn(G.streamError(e, t)), !0), T(!1), w(), S(t);
|
|
1007
1007
|
}
|
|
1008
1008
|
function S(e) {
|
|
1009
1009
|
h || (e ? h = setTimeout(C, e) : C());
|
|
@@ -1016,7 +1016,7 @@ var jn = {
|
|
|
1016
1016
|
readTimeoutMillis: 3e5
|
|
1017
1017
|
};
|
|
1018
1018
|
if (e.eventSourceFactory) {
|
|
1019
|
-
_ != null && (o = "h=" + _), c ? e.eventSourceAllowsReport ? (r = s, u.method = "REPORT", u.headers["Content-Type"] = "application/json", u.body = JSON.stringify(g)) : (r = Hn(i, "/ping/" + n), o = "") : r = s + "/" + Un(JSON.stringify(g)), u.headers = Kn(u.headers, t), l && (o = o + (o ? "&" : "") + "withReasons=true"), r = r + (o ? "?" : "") + o, w(), a.info(
|
|
1019
|
+
_ != null && (o = "h=" + _), c ? e.eventSourceAllowsReport ? (r = s, u.method = "REPORT", u.headers["Content-Type"] = "application/json", u.body = JSON.stringify(g)) : (r = Hn(i, "/ping/" + n), o = "") : r = s + "/" + Un(JSON.stringify(g)), u.headers = Kn(u.headers, t), l && (o = o + (o ? "&" : "") + "withReasons=true"), r = r + (o ? "?" : "") + o, w(), a.info(G.streamConnecting(r)), f = (/* @__PURE__ */ new Date()).getTime(), m = e.eventSourceFactory(r, u);
|
|
1020
1020
|
for (let e in v) Wn(v, e) && m.addEventListener(e, v[e]);
|
|
1021
1021
|
m.onerror = x, m.onopen = () => {
|
|
1022
1022
|
y = 0;
|
|
@@ -1024,7 +1024,7 @@ var jn = {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
1026
|
function w() {
|
|
1027
|
-
m &&= (a.info(
|
|
1027
|
+
m &&= (a.info(G.streamClosing()), m.close(), null);
|
|
1028
1028
|
}
|
|
1029
1029
|
function T(e) {
|
|
1030
1030
|
f && r && r.recordStreamInit(f, !e, (/* @__PURE__ */ new Date()).getTime() - f), f = null;
|
|
@@ -1055,7 +1055,7 @@ var jn = {
|
|
|
1055
1055
|
let r = t.baseUrl, i = t.useReport, a = t.evaluationReasons, o = t.logger, s = {}, c = {};
|
|
1056
1056
|
function l(n, r) {
|
|
1057
1057
|
if (!e.httpRequest) return new Promise((e, t) => {
|
|
1058
|
-
t(new
|
|
1058
|
+
t(new H.LDFlagFetchError(G.httpUnavailable()));
|
|
1059
1059
|
});
|
|
1060
1060
|
let i = r ? "REPORT" : "GET", a = Zn(e, t);
|
|
1061
1061
|
r && (a["Content-Type"] = Qn);
|
|
@@ -1067,20 +1067,20 @@ var jn = {
|
|
|
1067
1067
|
if (e.status === 200) {
|
|
1068
1068
|
if (e.header("content-type") && e.header("content-type").substring(0, 16) === Qn) return JSON.parse(e.body);
|
|
1069
1069
|
{
|
|
1070
|
-
let t =
|
|
1071
|
-
return Promise.reject(new
|
|
1070
|
+
let t = G.invalidContentType(e.header("content-type") || "");
|
|
1071
|
+
return Promise.reject(new H.LDFlagFetchError(t));
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
1074
|
return Promise.reject(function(e) {
|
|
1075
|
-
return e.status === 404 ? new
|
|
1075
|
+
return e.status === 404 ? new H.LDInvalidEnvironmentIdError(G.environmentNotFound()) : new H.LDFlagFetchError(G.errorFetchingFlags(e.statusText || String(e.status)));
|
|
1076
1076
|
}(e));
|
|
1077
|
-
}, (e) => Promise.reject(new
|
|
1077
|
+
}, (e) => Promise.reject(new H.LDFlagFetchError(G.networkError(e))));
|
|
1078
1078
|
return o.addPromise(l, () => {
|
|
1079
1079
|
s.cancel && s.cancel();
|
|
1080
1080
|
}), o.resultPromise;
|
|
1081
1081
|
}
|
|
1082
1082
|
return s.fetchJSON = function(e) {
|
|
1083
|
-
return l(
|
|
1083
|
+
return l(W.appendUrlPath(r, e), null);
|
|
1084
1084
|
}, s.fetchFlagSettings = function(e, t) {
|
|
1085
1085
|
let s, c, u, d = "";
|
|
1086
1086
|
return i ? (c = [
|
|
@@ -1088,20 +1088,20 @@ var jn = {
|
|
|
1088
1088
|
"/sdk/evalx/",
|
|
1089
1089
|
n,
|
|
1090
1090
|
"/context"
|
|
1091
|
-
].join(""), u = JSON.stringify(e)) : (s =
|
|
1091
|
+
].join(""), u = JSON.stringify(e)) : (s = W.base64URLEncode(JSON.stringify(e)), c = [
|
|
1092
1092
|
r,
|
|
1093
1093
|
"/sdk/evalx/",
|
|
1094
1094
|
n,
|
|
1095
1095
|
"/contexts/",
|
|
1096
1096
|
s
|
|
1097
|
-
].join("")), t && (d = "h=" + t), a && (d = d + (d ? "&" : "") + "withReasons=true"), c = c + (d ? "?" : "") + d, o.debug(
|
|
1097
|
+
].join("")), t && (d = "h=" + t), a && (d = d + (d ? "&" : "") + "withReasons=true"), c = c + (d ? "?" : "") + d, o.debug(G.debugPolling(c)), l(c, u);
|
|
1098
1098
|
}, s;
|
|
1099
1099
|
}, er = function(e, t) {
|
|
1100
1100
|
let n = {}, r;
|
|
1101
1101
|
return n.setContext = function(e) {
|
|
1102
|
-
r =
|
|
1102
|
+
r = W.sanitizeContext(e), r && t && t(W.clone(r));
|
|
1103
1103
|
}, n.getContext = function() {
|
|
1104
|
-
return r ?
|
|
1104
|
+
return r ? W.clone(r) : null;
|
|
1105
1105
|
}, e && n.setContext(e), n;
|
|
1106
1106
|
}, { randomUuidV4: tr } = tn, { getContextKinds: nr } = Sn, rr = function(e) {
|
|
1107
1107
|
function t(e) {
|
|
@@ -1118,18 +1118,18 @@ var jn = {
|
|
|
1118
1118
|
return e.set(t(r), n);
|
|
1119
1119
|
}(i, n).then(() => r);
|
|
1120
1120
|
}
|
|
1121
|
-
}) : Promise.reject(new
|
|
1121
|
+
}) : Promise.reject(new H.LDInvalidUserError(G.invalidContext()));
|
|
1122
1122
|
}
|
|
1123
1123
|
this.processContext = (e) => {
|
|
1124
|
-
if (!e) return Promise.reject(new
|
|
1125
|
-
let t =
|
|
1124
|
+
if (!e) return Promise.reject(new H.LDInvalidUserError(G.contextNotSpecified()));
|
|
1125
|
+
let t = W.clone(e);
|
|
1126
1126
|
if (e.kind === "multi") {
|
|
1127
1127
|
let e = nr(t);
|
|
1128
1128
|
return Promise.all(e.map((e) => n(e, t[e]))).then(() => t);
|
|
1129
1129
|
}
|
|
1130
1130
|
return n(e.kind, t);
|
|
1131
1131
|
};
|
|
1132
|
-
}, { randomUuidV4: ir } = tn, { baseOptionDefs: ar } = dn, { appendUrlPath: or } =
|
|
1132
|
+
}, { randomUuidV4: ir } = tn, { baseOptionDefs: ar } = dn, { appendUrlPath: or } = W, sr = {
|
|
1133
1133
|
DiagnosticId: function(e) {
|
|
1134
1134
|
let t = { diagnosticId: ir() };
|
|
1135
1135
|
return e && (t.sdkKeySuffix = e.length > 6 ? e.substring(e.length - 6) : e), t;
|
|
@@ -1176,7 +1176,7 @@ var jn = {
|
|
|
1176
1176
|
};
|
|
1177
1177
|
}
|
|
1178
1178
|
function _(e) {
|
|
1179
|
-
a.logger && a.logger.debug(
|
|
1179
|
+
a.logger && a.logger.debug(G.debugPostingDiagnosticEvent(e)), r.sendEvents(e, l, !0).then(() => {}).catch(() => {});
|
|
1180
1180
|
}
|
|
1181
1181
|
function v() {
|
|
1182
1182
|
_(function() {
|
|
@@ -1256,57 +1256,57 @@ var jn = {
|
|
|
1256
1256
|
try {
|
|
1257
1257
|
e.method(...i);
|
|
1258
1258
|
} catch {
|
|
1259
|
-
n || (n = !0, t.warn(
|
|
1259
|
+
n || (n = !0, t.warn(G.inspectorMethodError(r.type, r.name)));
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
};
|
|
1263
1263
|
return r;
|
|
1264
|
-
}, { onNextTick: lr } =
|
|
1264
|
+
}, { onNextTick: lr } = W, K = {
|
|
1265
1265
|
flagUsed: "flag-used",
|
|
1266
1266
|
flagDetailsChanged: "flag-details-changed",
|
|
1267
1267
|
flagDetailChanged: "flag-detail-changed",
|
|
1268
1268
|
clientIdentityChanged: "client-identity-changed"
|
|
1269
1269
|
};
|
|
1270
|
-
Object.freeze(
|
|
1270
|
+
Object.freeze(K);
|
|
1271
1271
|
var ur = {
|
|
1272
|
-
InspectorTypes:
|
|
1272
|
+
InspectorTypes: K,
|
|
1273
1273
|
InspectorManager: function(e, t) {
|
|
1274
1274
|
let n = {}, r = {
|
|
1275
|
-
[
|
|
1276
|
-
[
|
|
1277
|
-
[
|
|
1278
|
-
[
|
|
1275
|
+
[K.flagUsed]: [],
|
|
1276
|
+
[K.flagDetailsChanged]: [],
|
|
1277
|
+
[K.flagDetailChanged]: [],
|
|
1278
|
+
[K.clientIdentityChanged]: []
|
|
1279
1279
|
}, i = {
|
|
1280
|
-
[
|
|
1281
|
-
[
|
|
1282
|
-
[
|
|
1283
|
-
[
|
|
1280
|
+
[K.flagUsed]: [],
|
|
1281
|
+
[K.flagDetailsChanged]: [],
|
|
1282
|
+
[K.flagDetailChanged]: [],
|
|
1283
|
+
[K.clientIdentityChanged]: []
|
|
1284
1284
|
}, a = e && e.map((e) => cr(e, t));
|
|
1285
1285
|
return a && a.forEach((e) => {
|
|
1286
|
-
Object.prototype.hasOwnProperty.call(r, e.type) && !e.synchronous ? r[e.type].push(e) : Object.prototype.hasOwnProperty.call(i, e.type) && e.synchronous ? i[e.type].push(e) : t.warn(
|
|
1286
|
+
Object.prototype.hasOwnProperty.call(r, e.type) && !e.synchronous ? r[e.type].push(e) : Object.prototype.hasOwnProperty.call(i, e.type) && e.synchronous ? i[e.type].push(e) : t.warn(G.invalidInspector(e.type, e.name));
|
|
1287
1287
|
}), n.hasListeners = (e) => r[e] && r[e].length || i[e] && i[e].length, n.onFlagUsed = (e, t, n) => {
|
|
1288
|
-
let a =
|
|
1288
|
+
let a = K.flagUsed;
|
|
1289
1289
|
i[a].length && i[a].forEach((r) => r.method(e, t, n)), r[a].length && lr(() => {
|
|
1290
1290
|
r[a].forEach((r) => r.method(e, t, n));
|
|
1291
1291
|
});
|
|
1292
1292
|
}, n.onFlags = (e) => {
|
|
1293
|
-
let t =
|
|
1293
|
+
let t = K.flagDetailsChanged;
|
|
1294
1294
|
i[t].length && i[t].forEach((t) => t.method(e)), r[t].length && lr(() => {
|
|
1295
1295
|
r[t].forEach((t) => t.method(e));
|
|
1296
1296
|
});
|
|
1297
1297
|
}, n.onFlagChanged = (e, t) => {
|
|
1298
|
-
let n =
|
|
1298
|
+
let n = K.flagDetailChanged;
|
|
1299
1299
|
i[n].length && i[n].forEach((n) => n.method(e, t)), r[n].length && lr(() => {
|
|
1300
1300
|
r[n].forEach((n) => n.method(e, t));
|
|
1301
1301
|
});
|
|
1302
1302
|
}, n.onIdentityChanged = (e) => {
|
|
1303
|
-
let t =
|
|
1303
|
+
let t = K.clientIdentityChanged;
|
|
1304
1304
|
i[t].length && i[t].forEach((t) => t.method(e)), r[t].length && lr(() => {
|
|
1305
1305
|
r[t].forEach((t) => t.method(e));
|
|
1306
1306
|
});
|
|
1307
1307
|
}, n;
|
|
1308
1308
|
}
|
|
1309
|
-
}, { LDTimeoutError: dr } =
|
|
1309
|
+
}, { LDTimeoutError: dr } = H, fr = function(e, t) {
|
|
1310
1310
|
return new Promise((n, r) => {
|
|
1311
1311
|
setTimeout(() => {
|
|
1312
1312
|
r(new dr(`${t} timed out after ${e} seconds.`));
|
|
@@ -1377,7 +1377,7 @@ var gr = function(e, t) {
|
|
|
1377
1377
|
}, _r = function() {
|
|
1378
1378
|
let e, t = {};
|
|
1379
1379
|
function n(n) {
|
|
1380
|
-
return e &&
|
|
1380
|
+
return e && W.objectHasOwnProperty(e, n) && e[n] ? e[n] : t && W.objectHasOwnProperty(t, n) && t[n] && !t[n].deleted ? t[n] : null;
|
|
1381
1381
|
}
|
|
1382
1382
|
return {
|
|
1383
1383
|
clearAllOverrides: function() {
|
|
@@ -1477,7 +1477,7 @@ var br = {
|
|
|
1477
1477
|
})(e), l.hasListeners(wr.clientIdentityChanged) && l.onIdentityChanged(F.getContext());
|
|
1478
1478
|
}), ee = new rr(_), I = _.isEnabled() ? Bn(_, d, f, F) : null;
|
|
1479
1479
|
function te(e) {
|
|
1480
|
-
d && (P && P.enqueueEvent && P.enqueueEvent(e) || (e.context ? (N = !1, !u || M || r.isDoNotTrack() || (a.debug(
|
|
1480
|
+
d && (P && P.enqueueEvent && P.enqueueEvent(e) || (e.context ? (N = !1, !u || M || r.isDoNotTrack() || (a.debug(G.debugEnqueueingEvent(e.kind)), w.enqueue(e))) : N &&= (a.warn(G.eventWithoutContext()), !1)));
|
|
1481
1481
|
}
|
|
1482
1482
|
function L(e, t) {
|
|
1483
1483
|
l.hasListeners(wr.flagDetailChanged) && l.onFlagChanged(e.key, R(t));
|
|
@@ -1501,7 +1501,7 @@ var br = {
|
|
|
1501
1501
|
s && (o.version = s.flagVersion ? s.flagVersion : s.version, o.trackEvents = s.trackEvents, o.debugEventsUntilDate = s.debugEventsUntilDate), (r || s && s.trackReason) && t && (o.reason = t.reason), te(o);
|
|
1502
1502
|
}
|
|
1503
1503
|
function ie(e) {
|
|
1504
|
-
return Sr(e, !1) ? Promise.resolve(e) : Promise.reject(new
|
|
1504
|
+
return Sr(e, !1) ? Promise.resolve(e) : Promise.reject(new H.LDInvalidUserError(G.invalidContext()));
|
|
1505
1505
|
}
|
|
1506
1506
|
function ae(e, t, n, r, i, a) {
|
|
1507
1507
|
let o, s = E.get(e);
|
|
@@ -1531,51 +1531,51 @@ var br = {
|
|
|
1531
1531
|
try {
|
|
1532
1532
|
return JSON.parse(e);
|
|
1533
1533
|
} catch {
|
|
1534
|
-
o.maybeReportError(new
|
|
1534
|
+
o.maybeReportError(new H.LDInvalidDataError(G.invalidData()));
|
|
1535
1535
|
return;
|
|
1536
1536
|
}
|
|
1537
1537
|
};
|
|
1538
1538
|
C.connect(F.getContext(), f, {
|
|
1539
1539
|
ping: function() {
|
|
1540
|
-
a.debug(
|
|
1540
|
+
a.debug(G.debugStreamPing());
|
|
1541
1541
|
let e = F.getContext();
|
|
1542
1542
|
T.fetchFlagSettings(e, f).then((t) => {
|
|
1543
|
-
|
|
1543
|
+
W.deepEquals(e, F.getContext()) && ce(t || {});
|
|
1544
1544
|
}).catch((e) => {
|
|
1545
|
-
o.maybeReportError(new
|
|
1545
|
+
o.maybeReportError(new H.LDFlagFetchError(G.errorFetchingFlags(e)));
|
|
1546
1546
|
});
|
|
1547
1547
|
},
|
|
1548
1548
|
put: function(t) {
|
|
1549
1549
|
let n = e(t.data);
|
|
1550
|
-
n && (a.debug(
|
|
1550
|
+
n && (a.debug(G.debugStreamPut()), ce(n));
|
|
1551
1551
|
},
|
|
1552
1552
|
patch: function(t) {
|
|
1553
1553
|
let n = e(t.data);
|
|
1554
1554
|
if (!n) return;
|
|
1555
1555
|
let r = E.getFlags(), i = r[n.key];
|
|
1556
1556
|
if (!i || !i.version || !n.version || i.version < n.version) {
|
|
1557
|
-
a.debug(
|
|
1558
|
-
let e = {}, t =
|
|
1557
|
+
a.debug(G.debugStreamPatch(n.key));
|
|
1558
|
+
let e = {}, t = W.extend({}, n);
|
|
1559
1559
|
delete t.key, r[n.key] = t, E.setFlags(r);
|
|
1560
1560
|
let o = R(t);
|
|
1561
1561
|
e[n.key] = i ? {
|
|
1562
1562
|
previous: i.value,
|
|
1563
1563
|
current: o
|
|
1564
1564
|
} : { current: o }, L(n, t), le(e);
|
|
1565
|
-
} else a.debug(
|
|
1565
|
+
} else a.debug(G.debugStreamPatchIgnored(n.key));
|
|
1566
1566
|
},
|
|
1567
1567
|
delete: function(t) {
|
|
1568
1568
|
let n = e(t.data);
|
|
1569
1569
|
if (!n) return;
|
|
1570
1570
|
let r = E.getFlags();
|
|
1571
1571
|
if (!r[n.key] || r[n.key].version < n.version) {
|
|
1572
|
-
a.debug(
|
|
1572
|
+
a.debug(G.debugStreamDelete(n.key));
|
|
1573
1573
|
let e = {};
|
|
1574
1574
|
r[n.key] && !r[n.key].deleted && (e[n.key] = { previous: r[n.key].value }), r[n.key] = {
|
|
1575
1575
|
version: n.version,
|
|
1576
1576
|
deleted: !0
|
|
1577
1577
|
}, E.setFlags(r), L(n, r[n.key]), le(e);
|
|
1578
|
-
} else a.debug(
|
|
1578
|
+
} else a.debug(G.debugStreamDeleteIgnored(n.key));
|
|
1579
1579
|
}
|
|
1580
1580
|
});
|
|
1581
1581
|
}
|
|
@@ -1586,11 +1586,11 @@ var br = {
|
|
|
1586
1586
|
let t = {};
|
|
1587
1587
|
if (!e) return Promise.resolve();
|
|
1588
1588
|
let n = E.getFlags();
|
|
1589
|
-
for (let r in n)
|
|
1589
|
+
for (let r in n) W.objectHasOwnProperty(n, r) && n[r] && (e[r] && !W.deepEquals(e[r].value, n[r].value) ? t[r] = {
|
|
1590
1590
|
previous: n[r].value,
|
|
1591
1591
|
current: R(e[r])
|
|
1592
1592
|
} : e[r] && !e[r].deleted || (t[r] = { previous: n[r].value }));
|
|
1593
|
-
for (let r in e)
|
|
1593
|
+
for (let r in e) W.objectHasOwnProperty(e, r) && e[r] && (!n[r] || n[r].deleted) && (t[r] = { current: R(e[r]) });
|
|
1594
1594
|
return E.setFlags({ ...e }), ne(), le(t).catch(() => {});
|
|
1595
1595
|
}
|
|
1596
1596
|
function le(e) {
|
|
@@ -1616,14 +1616,14 @@ var br = {
|
|
|
1616
1616
|
function de(e) {
|
|
1617
1617
|
return e === Ar || e.substr(0, 7) === "change:";
|
|
1618
1618
|
}
|
|
1619
|
-
if (typeof c.bootstrap == "string" && c.bootstrap.toUpperCase() === "LOCALSTORAGE" && (I ? D = !0 : a.warn(
|
|
1619
|
+
if (typeof c.bootstrap == "string" && c.bootstrap.toUpperCase() === "LOCALSTORAGE" && (I ? D = !0 : a.warn(G.localStorageUnavailable())), typeof c.bootstrap == "object" && E.setFlags(function(e) {
|
|
1620
1620
|
let t = Object.keys(e), n = "$flagsState", r = "$valid", i = e[n];
|
|
1621
|
-
!i && t.length && a.warn(
|
|
1621
|
+
!i && t.length && a.warn(G.bootstrapOldFormat()), !1 === e[r] && a.warn(G.bootstrapInvalid());
|
|
1622
1622
|
let o = {};
|
|
1623
1623
|
return t.forEach((t) => {
|
|
1624
1624
|
if (t !== n && t !== r) {
|
|
1625
1625
|
let n = { value: e[t] };
|
|
1626
|
-
i && i[t] ? n =
|
|
1626
|
+
i && i[t] ? n = W.extend(n, i[t]) : n.version = 0, o[t] = n;
|
|
1627
1627
|
}
|
|
1628
1628
|
}), o;
|
|
1629
1629
|
}(c.bootstrap)), P) {
|
|
@@ -1632,11 +1632,11 @@ var br = {
|
|
|
1632
1632
|
e.context && F.setContext(e.context), e.flags && ce(e.flags);
|
|
1633
1633
|
});
|
|
1634
1634
|
} else (function() {
|
|
1635
|
-
if (!e) return Promise.reject(new
|
|
1635
|
+
if (!e) return Promise.reject(new H.LDInvalidEnvironmentIdError(G.environmentNotSpecified()));
|
|
1636
1636
|
let n;
|
|
1637
|
-
return ee.processContext(t).then(ie).then((e) => (n =
|
|
1638
|
-
me(new
|
|
1639
|
-
})) : (E.setFlags(e),
|
|
1637
|
+
return ee.processContext(t).then(ie).then((e) => (n = W.once(g.identify(e, void 0)), e)).then((e) => (n?.({ status: "completed" }), F.setContext(e), typeof c.bootstrap == "object" ? pe() : D ? I.loadFlags().then((e) => e == null ? (E.setFlags({}), T.fetchFlagSettings(F.getContext(), f).then((e) => ce(e || {})).then(pe).catch((e) => {
|
|
1638
|
+
me(new H.LDFlagFetchError(G.errorFetchingFlags(e)));
|
|
1639
|
+
})) : (E.setFlags(e), W.onNextTick(pe), T.fetchFlagSettings(F.getContext(), f).then((e) => ce(e)).catch((e) => o.maybeReportError(e)))) : T.fetchFlagSettings(F.getContext(), f).then((e) => {
|
|
1640
1640
|
E.setFlags(e || {}), ne(), pe();
|
|
1641
1641
|
}).catch((e) => {
|
|
1642
1642
|
E.setFlags({}), me(e);
|
|
@@ -1645,10 +1645,10 @@ var br = {
|
|
|
1645
1645
|
});
|
|
1646
1646
|
})().catch(me);
|
|
1647
1647
|
function fe(e) {
|
|
1648
|
-
d = e.environment, F.setContext(e.context), E.setFlags({ ...e.flags }),
|
|
1648
|
+
d = e.environment, F.setContext(e.context), E.setFlags({ ...e.flags }), W.onNextTick(pe);
|
|
1649
1649
|
}
|
|
1650
1650
|
function pe() {
|
|
1651
|
-
a.info(
|
|
1651
|
+
a.info(G.clientInitialized()), j = !0, ue(), s.signalSuccess();
|
|
1652
1652
|
}
|
|
1653
1653
|
function me(e) {
|
|
1654
1654
|
s.signalFailure(e);
|
|
@@ -1660,7 +1660,7 @@ var br = {
|
|
|
1660
1660
|
e > 5 && a.warn("The waitForInitialization function was called with a timeout greater than 5 seconds. We recommend a timeout of 5 seconds or less.");
|
|
1661
1661
|
let t = s.getInitializationPromise(), n = fr(e, "waitForInitialization");
|
|
1662
1662
|
return Promise.race([n, t]).catch((e) => {
|
|
1663
|
-
throw e instanceof
|
|
1663
|
+
throw e instanceof H.LDTimeoutError && a.error(`waitForInitialization error: ${e}`), e;
|
|
1664
1664
|
});
|
|
1665
1665
|
}(e);
|
|
1666
1666
|
a.warn("The waitForInitialization method was provided with a non-numeric timeout.");
|
|
@@ -1669,11 +1669,11 @@ var br = {
|
|
|
1669
1669
|
},
|
|
1670
1670
|
waitUntilReady: () => s.getReadyPromise(),
|
|
1671
1671
|
identify: function(e, t, n) {
|
|
1672
|
-
if (M) return
|
|
1673
|
-
if (P) return a.warn(
|
|
1672
|
+
if (M) return W.wrapPromiseCallback(Promise.resolve({}), n);
|
|
1673
|
+
if (P) return a.warn(G.identifyDisabled()), W.wrapPromiseCallback(Promise.resolve(W.transformVersionedValuesToValues(E.getFlagsWithOverrides())), n);
|
|
1674
1674
|
let r, i = D && I ? I.clearFlags() : Promise.resolve();
|
|
1675
|
-
return
|
|
1676
|
-
let r =
|
|
1675
|
+
return W.wrapPromiseCallback(i.then(() => ee.processContext(e)).then(ie).then((e) => (r = W.once(g.identify(e, void 0)), e)).then((e) => T.fetchFlagSettings(e, t).then((n) => {
|
|
1676
|
+
let r = W.transformVersionedValuesToValues(n);
|
|
1677
1677
|
return F.setContext(e), f = t, n ? ce(n).then(() => r) : r;
|
|
1678
1678
|
})).then((e) => (r?.({ status: "completed" }), O && oe(), e)).catch((e) => (r?.({ status: "error" }), o.maybeReportError(e), Promise.reject(e))), n);
|
|
1679
1679
|
},
|
|
@@ -1688,8 +1688,8 @@ var br = {
|
|
|
1688
1688
|
return g.withEvaluation(e, F.getContext(), t, () => ae(e, t, !0, !0, !1, !0));
|
|
1689
1689
|
},
|
|
1690
1690
|
track: function(e, t, n) {
|
|
1691
|
-
if (typeof e != "string") return void o.maybeReportError(new
|
|
1692
|
-
n !== void 0 && typeof n != "number" && a.warn(
|
|
1691
|
+
if (typeof e != "string") return void o.maybeReportError(new H.LDInvalidEventKeyError(G.unknownCustomEventKey(e)));
|
|
1692
|
+
n !== void 0 && typeof n != "number" && a.warn(G.invalidMetricValue(typeof n)), r.customEventFilter && !r.customEventFilter(e) && a.warn(G.unknownCustomEventKey(e));
|
|
1693
1693
|
let i = F.getContext(), s = {
|
|
1694
1694
|
kind: "custom",
|
|
1695
1695
|
key: e,
|
|
@@ -1720,7 +1720,7 @@ var br = {
|
|
|
1720
1720
|
t !== A && (A = t, ue());
|
|
1721
1721
|
},
|
|
1722
1722
|
flush: function(e) {
|
|
1723
|
-
return
|
|
1723
|
+
return W.wrapPromiseCallback(u ? w.flush() : Promise.resolve(), e);
|
|
1724
1724
|
},
|
|
1725
1725
|
allFlags: function() {
|
|
1726
1726
|
let e = {}, t = E.getFlagsWithOverrides();
|
|
@@ -1729,13 +1729,13 @@ var br = {
|
|
|
1729
1729
|
return e;
|
|
1730
1730
|
},
|
|
1731
1731
|
close: function(e) {
|
|
1732
|
-
if (M) return
|
|
1732
|
+
if (M) return W.wrapPromiseCallback(Promise.resolve(), e);
|
|
1733
1733
|
let t = () => {
|
|
1734
1734
|
M = !0, E.setFlags({});
|
|
1735
1735
|
}, n = Promise.resolve().then(() => {
|
|
1736
1736
|
if (se(), S && S.stop(), u) return w.stop(), w.flush();
|
|
1737
1737
|
}).then(t).catch(t);
|
|
1738
|
-
return
|
|
1738
|
+
return W.wrapPromiseCallback(n, e);
|
|
1739
1739
|
},
|
|
1740
1740
|
addHook: function(e) {
|
|
1741
1741
|
g.addHook(e);
|
|
@@ -1801,9 +1801,9 @@ var br = {
|
|
|
1801
1801
|
};
|
|
1802
1802
|
},
|
|
1803
1803
|
commonBasicLogger: xr,
|
|
1804
|
-
errors:
|
|
1805
|
-
messages:
|
|
1806
|
-
utils:
|
|
1804
|
+
errors: H,
|
|
1805
|
+
messages: G,
|
|
1806
|
+
utils: W,
|
|
1807
1807
|
getContextKeys: Cr
|
|
1808
1808
|
}, Nr = Mr.initialize, Pr = Mr.errors;
|
|
1809
1809
|
Mr.messages;
|
|
@@ -2315,54 +2315,54 @@ var qr = /* @__PURE__ */ r((/* @__PURE__ */ u(((e, t) => {
|
|
|
2315
2315
|
for (var a = Array(i); ++r < i;) a[r] = e[r + t];
|
|
2316
2316
|
return a;
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2318
|
+
function z(e) {
|
|
2319
2319
|
if (typeof e == "string") return e;
|
|
2320
|
-
if (
|
|
2320
|
+
if (Ne(e)) return De ? De.call(e) : "";
|
|
2321
2321
|
var t = e + "";
|
|
2322
2322
|
return t == "0" && 1 / e == -n ? "-0" : t;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function ke(e, t, n) {
|
|
2325
2325
|
var r = e.length;
|
|
2326
2326
|
return n = n === void 0 ? r : n, !t && n >= r ? e : Oe(e, t, n);
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function Ae(e) {
|
|
2329
2329
|
return function(t) {
|
|
2330
|
-
t =
|
|
2331
|
-
var n = ye(t) ? xe(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ?
|
|
2330
|
+
t = Pe(t);
|
|
2331
|
+
var n = ye(t) ? xe(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ? ke(n, 1).join("") : t.slice(1);
|
|
2332
2332
|
return r[e]() + i;
|
|
2333
2333
|
};
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function je(e) {
|
|
2336
2336
|
return function(t) {
|
|
2337
|
-
return me(
|
|
2337
|
+
return me(ze(Le(t).replace(ae, "")), e, "");
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2340
|
+
function Me(e) {
|
|
2341
2341
|
return !!e && typeof e == "object";
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2344
|
-
return typeof e == "symbol" ||
|
|
2343
|
+
function Ne(e) {
|
|
2344
|
+
return typeof e == "symbol" || Me(e) && we.call(e) == r;
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2347
|
-
return e == null ? "" :
|
|
2346
|
+
function Pe(e) {
|
|
2347
|
+
return e == null ? "" : z(e);
|
|
2348
2348
|
}
|
|
2349
|
-
var
|
|
2350
|
-
return t = t.toLowerCase(), e + (n ?
|
|
2349
|
+
var Fe = je(function(e, t, n) {
|
|
2350
|
+
return t = t.toLowerCase(), e + (n ? Ie(t) : t);
|
|
2351
2351
|
});
|
|
2352
|
-
function
|
|
2353
|
-
return
|
|
2352
|
+
function Ie(e) {
|
|
2353
|
+
return Re(Pe(e).toLowerCase());
|
|
2354
2354
|
}
|
|
2355
|
-
function
|
|
2356
|
-
return e =
|
|
2355
|
+
function Le(e) {
|
|
2356
|
+
return e = Pe(e), e && e.replace(a, ve).replace(R, "");
|
|
2357
2357
|
}
|
|
2358
|
-
var
|
|
2359
|
-
function
|
|
2360
|
-
return e =
|
|
2358
|
+
var Re = Ae("toUpperCase");
|
|
2359
|
+
function ze(e, t, n) {
|
|
2360
|
+
return e = Pe(e), t = n ? void 0 : t, t === void 0 ? be(e) ? Ce(e) : ge(e) : e.match(t) || [];
|
|
2361
2361
|
}
|
|
2362
|
-
t.exports =
|
|
2362
|
+
t.exports = Fe;
|
|
2363
2363
|
})))());
|
|
2364
2364
|
ne();
|
|
2365
|
-
var Jr = (0,
|
|
2365
|
+
var Jr = (0, B.createContext)({
|
|
2366
2366
|
flags: {},
|
|
2367
2367
|
flagKeyMap: {},
|
|
2368
2368
|
ldClient: void 0
|
|
@@ -2421,7 +2421,7 @@ var ai = {
|
|
|
2421
2421
|
configurable: !0,
|
|
2422
2422
|
writable: !0,
|
|
2423
2423
|
value: n
|
|
2424
|
-
}) : e[t] = n,
|
|
2424
|
+
}) : e[t] = n, q = (e, t) => {
|
|
2425
2425
|
for (var n in t ||= {}) ui.call(t, n) && fi(e, n, t[n]);
|
|
2426
2426
|
if (li) for (var n of li(t)) di.call(t, n) && fi(e, n, t[n]);
|
|
2427
2427
|
return e;
|
|
@@ -2440,22 +2440,22 @@ var ai = {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
}, s = (e) => e.done ? r(e.value) : Promise.resolve(e.value).then(a, o);
|
|
2442
2442
|
s((n = n.apply(e, t)).next());
|
|
2443
|
-
}), hi = class extends
|
|
2443
|
+
}), hi = class extends B.Component {
|
|
2444
2444
|
constructor(e) {
|
|
2445
|
-
super(e), this.getReactOptions = () =>
|
|
2445
|
+
super(e), this.getReactOptions = () => q(q({}, Zr), this.props.reactOptions), this.subscribeToChanges = (e) => {
|
|
2446
2446
|
let { flags: t } = this.props;
|
|
2447
2447
|
e.on("change", (n) => {
|
|
2448
2448
|
let r = this.getReactOptions(), i = ei(n, t);
|
|
2449
2449
|
Object.keys(i).length > 0 && this.setState((n) => {
|
|
2450
|
-
let a =
|
|
2451
|
-
return
|
|
2450
|
+
let a = q(q({}, n.unproxiedFlags), i);
|
|
2451
|
+
return q(pi(q({}, n), { unproxiedFlags: a }), ni(e, a, r, t));
|
|
2452
2452
|
});
|
|
2453
2453
|
});
|
|
2454
2454
|
}, this.onFailed = (e, t) => {
|
|
2455
|
-
this.setState((e) => pi(
|
|
2455
|
+
this.setState((e) => pi(q({}, e), { error: t }));
|
|
2456
2456
|
}, this.onReady = (e, t, n) => {
|
|
2457
2457
|
let r = ti(e, n);
|
|
2458
|
-
this.setState((i) =>
|
|
2458
|
+
this.setState((i) => q(pi(q({}, i), { unproxiedFlags: r }), ni(e, r, t, n)));
|
|
2459
2459
|
}, this.prepareLDClient = () => mi(this, null, function* () {
|
|
2460
2460
|
let { clientSideID: e, flags: t, options: n } = this.props, r = yield this.props.ldClient, i = this.getReactOptions(), a, o = this.state.unproxiedFlags;
|
|
2461
2461
|
if (r) o = ti(r, t);
|
|
@@ -2463,7 +2463,7 @@ var ai = {
|
|
|
2463
2463
|
r = Kr(e, Qr(this.props) ?? {
|
|
2464
2464
|
anonymous: !0,
|
|
2465
2465
|
kind: "user"
|
|
2466
|
-
},
|
|
2466
|
+
}, q(q({}, ai), n));
|
|
2467
2467
|
try {
|
|
2468
2468
|
yield r.waitForInitialization(this.props.timeout), o = ti(r, t);
|
|
2469
2469
|
} catch (e) {
|
|
@@ -2472,7 +2472,7 @@ var ai = {
|
|
|
2472
2472
|
}));
|
|
2473
2473
|
}
|
|
2474
2474
|
}
|
|
2475
|
-
this.setState((e) => pi(
|
|
2475
|
+
this.setState((e) => pi(q(pi(q({}, e), { unproxiedFlags: o }), ni(r, o, i, t)), {
|
|
2476
2476
|
ldClient: r,
|
|
2477
2477
|
error: a
|
|
2478
2478
|
})), this.subscribeToChanges(r);
|
|
@@ -2508,7 +2508,7 @@ var ai = {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
render() {
|
|
2510
2510
|
let { flags: e, flagKeyMap: t, ldClient: n, error: r } = this.state, { reactContext: i } = this.getReactOptions();
|
|
2511
|
-
return
|
|
2511
|
+
return B.createElement(i.Provider, { value: {
|
|
2512
2512
|
flags: e,
|
|
2513
2513
|
flagKeyMap: t,
|
|
2514
2514
|
ldClient: n,
|
|
@@ -2516,12 +2516,12 @@ var ai = {
|
|
|
2516
2516
|
} }, this.props.children);
|
|
2517
2517
|
}
|
|
2518
2518
|
}, gi = (e) => {
|
|
2519
|
-
let { flags: t } = (0,
|
|
2519
|
+
let { flags: t } = (0, B.useContext)(e ?? Zr.reactContext);
|
|
2520
2520
|
return t;
|
|
2521
2521
|
}, _i = (e) => {
|
|
2522
|
-
let { ldClient: t } = (0,
|
|
2522
|
+
let { ldClient: t } = (0, B.useContext)(e ?? Zr.reactContext);
|
|
2523
2523
|
return t;
|
|
2524
|
-
}, vi = /* @__PURE__ */ r(
|
|
2524
|
+
}, vi = /* @__PURE__ */ r(Ve(), 1), J = {
|
|
2525
2525
|
landingBackgroundColor: "#fff",
|
|
2526
2526
|
landingPrimaryFontColor: "#000",
|
|
2527
2527
|
landingBackgroundImage: "none",
|
|
@@ -2535,7 +2535,7 @@ var ai = {
|
|
|
2535
2535
|
formFont: "var(--sheerid-font-family-sans)",
|
|
2536
2536
|
cssVariables: null,
|
|
2537
2537
|
customStyles: null
|
|
2538
|
-
}, yi =
|
|
2538
|
+
}, yi = B.createContext(J), Y = {
|
|
2539
2539
|
landingBackgroundColor: "--sheerid-landing-background-color",
|
|
2540
2540
|
landingPrimaryFontColor: "--sheerid-landing-primary-font-color",
|
|
2541
2541
|
landingBackgroundImage: "--sheerid-landing-background-image-url",
|
|
@@ -2661,24 +2661,24 @@ var ai = {
|
|
|
2661
2661
|
percentage: 3
|
|
2662
2662
|
}
|
|
2663
2663
|
}, xi = ({ themeChoices: e, customCssFromOptions: t, children: n }) => {
|
|
2664
|
-
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 ||
|
|
2665
|
-
[
|
|
2666
|
-
[
|
|
2667
|
-
[
|
|
2668
|
-
[
|
|
2669
|
-
[
|
|
2670
|
-
[
|
|
2671
|
-
[
|
|
2672
|
-
[
|
|
2673
|
-
[
|
|
2674
|
-
[
|
|
2675
|
-
[
|
|
2664
|
+
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 || J.landingBackgroundColor, c = o?.primaryFontColor || J.landingPrimaryFontColor, l = o?.backgroundImageUrl || J.landingBackgroundImage, u = e?.backgroundColor || J.formBackgroundColor, d = e?.primaryFontColor || J.formPrimaryFontColor, f = e?.buttonColor || J.formButtonColor, p = e?.buttonFontColor || J.formButtonFontColor, m = e?.linkColor || J.formLinkColor, h = e?.h1FontColor || J.formH1FontColor, g = e?.helperFontColor || J.formHelperFontColor, _ = e?.font || J.formFont, v = {
|
|
2665
|
+
[Y.landingBackgroundColor]: s,
|
|
2666
|
+
[Y.landingPrimaryFontColor]: c,
|
|
2667
|
+
[Y.landingBackgroundImage]: l === J.landingBackgroundImage ? J.landingBackgroundImage : `url(${l})`,
|
|
2668
|
+
[Y.formBackgroundColor]: u,
|
|
2669
|
+
[Y.formPrimaryFontColor]: d,
|
|
2670
|
+
[Y.formButtonColor]: f,
|
|
2671
|
+
[Y.formButtonFontColor]: p,
|
|
2672
|
+
[Y.formLinkColor]: m,
|
|
2673
|
+
[Y.formH1FontColor]: h,
|
|
2674
|
+
[Y.formHelperFontColor]: g,
|
|
2675
|
+
[Y.formFont]: _ === J.formFont ? J.formFont : `${_}, var(--sheerid-font-family-sans)`,
|
|
2676
2676
|
...Object.entries(bi).reduce((e, [t, n]) => {
|
|
2677
2677
|
let r = n.from.startsWith("--") ? `var(${n.from})` : n.from, i = n.to.startsWith("--") ? `var(${n.to})` : n.to;
|
|
2678
2678
|
return e[t] = `color-mix(in oklab, ${r} ${100 - n.percentage}%, ${i} ${n.percentage}%)`, e;
|
|
2679
2679
|
}, {})
|
|
2680
|
-
}, y =
|
|
2681
|
-
return /* @__PURE__ */ (0,
|
|
2680
|
+
}, y = B.useRef(null), b = Je() === qe.cdnInlineIframe, x = Je() === qe.cdnModalIframe;
|
|
2681
|
+
return /* @__PURE__ */ (0, V.jsx)(yi.Provider, {
|
|
2682
2682
|
value: {
|
|
2683
2683
|
landingBackgroundColor: s,
|
|
2684
2684
|
landingPrimaryFontColor: c,
|
|
@@ -2694,12 +2694,12 @@ var ai = {
|
|
|
2694
2694
|
cssVariables: v,
|
|
2695
2695
|
customStyles: a
|
|
2696
2696
|
},
|
|
2697
|
-
children: /* @__PURE__ */ (0,
|
|
2697
|
+
children: /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
2698
2698
|
style: v,
|
|
2699
2699
|
ref: y,
|
|
2700
2700
|
"data-in-iframe": b,
|
|
2701
2701
|
"data-in-modal": x,
|
|
2702
|
-
children: [a && /* @__PURE__ */ (0,
|
|
2702
|
+
children: [a && /* @__PURE__ */ (0, V.jsx)("style", { children: a }), n]
|
|
2703
2703
|
})
|
|
2704
2704
|
});
|
|
2705
2705
|
}, Si = {}, Ci = (e, t) => {
|
|
@@ -2708,82 +2708,82 @@ var ai = {
|
|
|
2708
2708
|
Si = {};
|
|
2709
2709
|
}, Ei = ({ verificationService: t, linkText: n }) => {
|
|
2710
2710
|
let { segment: r } = t.verificationResponse, { programId: i, programTheme: a } = t;
|
|
2711
|
-
return r ? /* @__PURE__ */ (0,
|
|
2711
|
+
return r ? /* @__PURE__ */ (0, V.jsx)(_e, {
|
|
2712
2712
|
className: "sid-faq sid-link",
|
|
2713
2713
|
href: Xe(a, r, i, e(t.viewModel), t.verificationResponse),
|
|
2714
|
-
children: n || /* @__PURE__ */ (0,
|
|
2714
|
+
children: n || /* @__PURE__ */ (0, V.jsx)(L, {
|
|
2715
2715
|
id: "getHelp",
|
|
2716
2716
|
defaultMessage: "Get help"
|
|
2717
2717
|
})
|
|
2718
2718
|
}) : null;
|
|
2719
|
-
}, Di = /* @__PURE__ */ (0,
|
|
2719
|
+
}, Di = /* @__PURE__ */ (0, V.jsx)(L, {
|
|
2720
2720
|
id: "poweredBy",
|
|
2721
2721
|
defaultMessage: "Verification services powered by SheerID."
|
|
2722
2722
|
}), Oi = ({ verificationService: e, isCentered: t, variant: n = "default" }) => {
|
|
2723
2723
|
switch (n) {
|
|
2724
|
-
case "poweredby": return /* @__PURE__ */ (0,
|
|
2724
|
+
case "poweredby": return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
2725
2725
|
className: "sid-footer__powered-by-container-experiment",
|
|
2726
|
-
children: [/* @__PURE__ */ (0,
|
|
2726
|
+
children: [/* @__PURE__ */ (0, V.jsx)("div", {
|
|
2727
2727
|
className: "sid-footer__powered-by_powerby-experiment",
|
|
2728
2728
|
children: Di
|
|
2729
|
-
}), /* @__PURE__ */ (0,
|
|
2729
|
+
}), /* @__PURE__ */ (0, V.jsx)("div", {
|
|
2730
2730
|
className: "sid-footer__powered-by_powerby-experiment",
|
|
2731
|
-
children: /* @__PURE__ */ (0,
|
|
2731
|
+
children: /* @__PURE__ */ (0, V.jsx)(Ei, { verificationService: e })
|
|
2732
2732
|
})]
|
|
2733
2733
|
});
|
|
2734
|
-
case "verificationby": return /* @__PURE__ */ (0,
|
|
2734
|
+
case "verificationby": return /* @__PURE__ */ (0, V.jsx)("div", {
|
|
2735
2735
|
className: "sid-footer__powered-by-container--stacked sid-l-horz-center sid-footer__powered-by-experiment",
|
|
2736
|
-
children: /* @__PURE__ */ (0,
|
|
2736
|
+
children: /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
2737
2737
|
className: "sid-footer__powered-by-verificationby-experiment",
|
|
2738
|
-
children: [/* @__PURE__ */ (0,
|
|
2738
|
+
children: [/* @__PURE__ */ (0, V.jsx)("div", {
|
|
2739
2739
|
className: "sid-footer__powered-by-icon-experiment",
|
|
2740
|
-
children: /* @__PURE__ */ (0,
|
|
2740
|
+
children: /* @__PURE__ */ (0, V.jsx)("img", {
|
|
2741
2741
|
alt: "",
|
|
2742
2742
|
src: "https://com-sheerid-resources.s3.us-east-1.amazonaws.com/common/images/2018/icons/sheerid_logo.svg"
|
|
2743
2743
|
})
|
|
2744
2744
|
}), Di]
|
|
2745
2745
|
})
|
|
2746
2746
|
});
|
|
2747
|
-
default: return /* @__PURE__ */ (0,
|
|
2747
|
+
default: return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
2748
2748
|
className: t ? "sid-footer__powered-by-container--stacked sid-l-horz-center" : "sid-footer__powered-by-container",
|
|
2749
|
-
children: [/* @__PURE__ */ (0,
|
|
2749
|
+
children: [/* @__PURE__ */ (0, V.jsx)("div", {
|
|
2750
2750
|
className: t ? "sid-footer__powered-by--stacked sid-l-horz-center" : "sid-footer__powered-by",
|
|
2751
2751
|
children: Di
|
|
2752
|
-
}), /* @__PURE__ */ (0,
|
|
2752
|
+
}), /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
2753
2753
|
className: t ? "sid-l-space-top-sm" : "",
|
|
2754
|
-
children: ["\xA0", /* @__PURE__ */ (0,
|
|
2754
|
+
children: ["\xA0", /* @__PURE__ */ (0, V.jsx)(Ei, { verificationService: e })]
|
|
2755
2755
|
})]
|
|
2756
2756
|
});
|
|
2757
2757
|
}
|
|
2758
2758
|
}, ki = (e, t) => {
|
|
2759
|
-
let n =
|
|
2759
|
+
let n = B.useRef(null);
|
|
2760
2760
|
function r() {
|
|
2761
2761
|
clearInterval(n.current);
|
|
2762
2762
|
}
|
|
2763
|
-
return
|
|
2763
|
+
return B.useEffect(() => (n.current = setInterval(e, t), () => r()), [e, t]), r;
|
|
2764
2764
|
}, Ai = ({ stepName: e, messages: t, logo: n, cancelSingleSignOn: r, cancelButtonType: i = Ni.PRIMARY }) => {
|
|
2765
2765
|
let a = dt(e);
|
|
2766
|
-
return /* @__PURE__ */ (0,
|
|
2766
|
+
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
2767
2767
|
className: "sid-header sid-l-horz-center",
|
|
2768
2768
|
children: [
|
|
2769
|
-
/* @__PURE__ */ (0,
|
|
2769
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
2770
2770
|
className: "sid-pending-logo-container sid-l-horz-center",
|
|
2771
2771
|
children: n
|
|
2772
2772
|
}),
|
|
2773
|
-
/* @__PURE__ */ (0,
|
|
2773
|
+
/* @__PURE__ */ (0, V.jsx)(ft, {
|
|
2774
2774
|
align: "center",
|
|
2775
2775
|
children: t.title
|
|
2776
2776
|
}),
|
|
2777
|
-
/* @__PURE__ */ (0,
|
|
2777
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
2778
2778
|
className: "sid-header__subtitle-one",
|
|
2779
2779
|
children: t.subtitle
|
|
2780
2780
|
}),
|
|
2781
|
-
t?.subtitle2 && /* @__PURE__ */ (0,
|
|
2782
|
-
/* @__PURE__ */ (0,
|
|
2781
|
+
t?.subtitle2 && /* @__PURE__ */ (0, V.jsx)("div", { className: "sid-l-space-top-xl" }),
|
|
2782
|
+
/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
2783
2783
|
className: "sid-header__subtitle-two sid-h-small-text sid-l-space-top-md",
|
|
2784
|
-
children: [t?.subtitle2 && t.subtitle2, /* @__PURE__ */ (0,
|
|
2784
|
+
children: [t?.subtitle2 && t.subtitle2, /* @__PURE__ */ (0, V.jsx)("div", {
|
|
2785
2785
|
className: `sid-form-region sid-${a}-pending-submit sid-submit-wrapper sid-l-space-top-md`,
|
|
2786
|
-
children: /* @__PURE__ */ (0,
|
|
2786
|
+
children: /* @__PURE__ */ (0, V.jsx)("button", {
|
|
2787
2787
|
onClick: r,
|
|
2788
2788
|
type: "submit",
|
|
2789
2789
|
className: `sid-btn sid-${a}-pending-submit-btn ${i === Ni.SECONDARY ? "sid-btn-light" : "sid-btn--dark"} sid-l-full-width`,
|
|
@@ -2792,40 +2792,40 @@ var ai = {
|
|
|
2792
2792
|
})
|
|
2793
2793
|
})]
|
|
2794
2794
|
}),
|
|
2795
|
-
t?.subtitle2 ? /* @__PURE__ */ (0,
|
|
2795
|
+
t?.subtitle2 ? /* @__PURE__ */ (0, V.jsx)("div", { className: "sid-l-space-top-xl" }) : /* @__PURE__ */ (0, V.jsx)("div", { className: "sid-l-space-top-lg" })
|
|
2796
2796
|
]
|
|
2797
2797
|
});
|
|
2798
|
-
}, ji = ({ stepName: e, messages: t, logo: n, cancelSingleSignOn: r, cancelButtonType: i = Ni.PRIMARY }) => /* @__PURE__ */ (0,
|
|
2798
|
+
}, ji = ({ stepName: e, messages: t, logo: n, cancelSingleSignOn: r, cancelButtonType: i = Ni.PRIMARY }) => /* @__PURE__ */ (0, V.jsx)(Ai, {
|
|
2799
2799
|
messages: t,
|
|
2800
2800
|
stepName: e,
|
|
2801
2801
|
logo: n,
|
|
2802
2802
|
cancelSingleSignOn: r,
|
|
2803
2803
|
cancelButtonType: i
|
|
2804
|
-
}), Mi = ({ messages: e, verificationService: t, updateViewModelAndOpenLoginTab: n, dashedStepName: r }) => /* @__PURE__ */ (0,
|
|
2804
|
+
}), Mi = ({ messages: e, verificationService: t, updateViewModelAndOpenLoginTab: n, dashedStepName: r }) => /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
2805
2805
|
className: "sid-header sid-l-horz-center",
|
|
2806
2806
|
children: [
|
|
2807
|
-
/* @__PURE__ */ (0,
|
|
2807
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
2808
2808
|
className: `sid-${r}-logo-container sid-l-horz-center`,
|
|
2809
|
-
children: /* @__PURE__ */ (0,
|
|
2809
|
+
children: /* @__PURE__ */ (0, V.jsx)(ut, {
|
|
2810
2810
|
verificationService: t,
|
|
2811
|
-
fallbackLogo: /* @__PURE__ */ (0,
|
|
2811
|
+
fallbackLogo: /* @__PURE__ */ (0, V.jsx)("img", {
|
|
2812
2812
|
className: `sid-${r}-logo-default sid-l-lead-image`,
|
|
2813
2813
|
alt: "",
|
|
2814
2814
|
src: "https://assets-resources.sheerid.com/common/images/2018/icons/sso-step.svg"
|
|
2815
2815
|
})
|
|
2816
2816
|
})
|
|
2817
2817
|
}),
|
|
2818
|
-
/* @__PURE__ */ (0,
|
|
2818
|
+
/* @__PURE__ */ (0, V.jsx)(ft, {
|
|
2819
2819
|
align: "center",
|
|
2820
2820
|
children: e.title
|
|
2821
2821
|
}),
|
|
2822
|
-
/* @__PURE__ */ (0,
|
|
2822
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
2823
2823
|
className: "sid-header__subtitle-one",
|
|
2824
2824
|
children: e.subtitle
|
|
2825
2825
|
}),
|
|
2826
|
-
/* @__PURE__ */ (0,
|
|
2826
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
2827
2827
|
className: `sid-form-region sid-${r}-submit sid-submit-wrapper sid-l-space-top-md`,
|
|
2828
|
-
children: /* @__PURE__ */ (0,
|
|
2828
|
+
children: /* @__PURE__ */ (0, V.jsx)("button", {
|
|
2829
2829
|
id: `sid-submit-btn-${r}`,
|
|
2830
2830
|
onClick: () => n("isSingleSignOnActive", !0),
|
|
2831
2831
|
type: "submit",
|
|
@@ -2833,85 +2833,86 @@ var ai = {
|
|
|
2833
2833
|
children: e.login
|
|
2834
2834
|
})
|
|
2835
2835
|
}),
|
|
2836
|
-
/* @__PURE__ */ (0,
|
|
2836
|
+
/* @__PURE__ */ (0, V.jsx)("div", { className: "sid-l-space-top-lg" })
|
|
2837
2837
|
]
|
|
2838
2838
|
}), Ni = /* @__PURE__ */ function(e) {
|
|
2839
2839
|
return e.PRIMARY = "primary", e.SECONDARY = "secondary", e;
|
|
2840
2840
|
}({}), Pi = ({ verificationService: e, stepName: t, messages: n, cancelButtonType: r = "primary" }) => {
|
|
2841
|
-
let { programId:
|
|
2841
|
+
let { programId: a } = e, o = e.viewModel, s = e.previousViewModel || void 0, c = e.verificationResponse, l = e.previousVerificationResponse || void 0, { verificationId: u, locale: f } = e.verificationResponse, p = Fe(), h = dt(t), _, v = /* @__PURE__ */ (0, V.jsx)(ut, {
|
|
2842
2842
|
verificationService: e,
|
|
2843
|
-
fallbackLogo: /* @__PURE__ */ (0,
|
|
2844
|
-
className: `sid-${
|
|
2843
|
+
fallbackLogo: /* @__PURE__ */ (0, V.jsx)("img", {
|
|
2844
|
+
className: `sid-${h}-logo-default sid-l-lead-image`,
|
|
2845
2845
|
alt: "",
|
|
2846
2846
|
src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg"
|
|
2847
2847
|
})
|
|
2848
|
-
}),
|
|
2849
|
-
e.fetchExistingVerificationRequest(
|
|
2850
|
-
}, 1e3),
|
|
2851
|
-
let r = m(
|
|
2848
|
+
}), y = () => setTimeout(() => {
|
|
2849
|
+
e.fetchExistingVerificationRequest(a, u, l, s);
|
|
2850
|
+
}, 1e3), b = (t, n) => {
|
|
2851
|
+
let r = m(o, (e) => {
|
|
2852
2852
|
e[t] = n;
|
|
2853
2853
|
});
|
|
2854
2854
|
e.updateViewModel(r);
|
|
2855
|
-
},
|
|
2855
|
+
}, x = () => {
|
|
2856
2856
|
S(g.SSO_CANCEL_CLICKED, {
|
|
2857
|
-
programId:
|
|
2858
|
-
locale:
|
|
2859
|
-
verificationId:
|
|
2857
|
+
programId: a,
|
|
2858
|
+
locale: f,
|
|
2859
|
+
verificationId: u
|
|
2860
2860
|
}), lt();
|
|
2861
|
-
let n = m(
|
|
2862
|
-
d.info("SingleSignOnComponent submitting cancel request"), clearTimeout(
|
|
2863
|
-
},
|
|
2861
|
+
let n = m(o, () => {});
|
|
2862
|
+
d.info("SingleSignOnComponent submitting cancel request"), clearTimeout(_), e.submitStep(t, n, e.verificationResponse);
|
|
2863
|
+
}, C = (e, t) => {
|
|
2864
2864
|
S(g.SSO_SIGN_IN_CLICKED, {
|
|
2865
|
-
programId:
|
|
2866
|
-
locale:
|
|
2867
|
-
verificationId:
|
|
2868
|
-
}),
|
|
2869
|
-
},
|
|
2870
|
-
|
|
2865
|
+
programId: a,
|
|
2866
|
+
locale: f,
|
|
2867
|
+
verificationId: u
|
|
2868
|
+
}), b(e, t), w();
|
|
2869
|
+
}, w = () => {
|
|
2870
|
+
let e = t === i.sso ? Ue(c.loginUrl) : c.loginUrl;
|
|
2871
|
+
ct(window.open(e, "_blank")), at().focus();
|
|
2871
2872
|
};
|
|
2872
|
-
return
|
|
2873
|
-
id: `sid-step-${
|
|
2874
|
-
className: `sid-${
|
|
2875
|
-
"data-testid": `sid-step-${
|
|
2876
|
-
children: [/* @__PURE__ */ (0,
|
|
2873
|
+
return o.isSingleSignOnActive && !p && (_ = y()), !o.countryChoice && s && s.countryChoice && b("countryChoice", s.countryChoice), /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
2874
|
+
id: `sid-step-${h}`,
|
|
2875
|
+
className: `sid-${h}-container sid-l-container`,
|
|
2876
|
+
"data-testid": `sid-step-${h}`,
|
|
2877
|
+
children: [/* @__PURE__ */ (0, V.jsx)("div", {
|
|
2877
2878
|
role: "main",
|
|
2878
|
-
children:
|
|
2879
|
+
children: o.isSingleSignOnActive ? /* @__PURE__ */ (0, V.jsx)(ji, {
|
|
2879
2880
|
stepName: t,
|
|
2880
2881
|
messages: n,
|
|
2881
|
-
logo:
|
|
2882
|
-
cancelSingleSignOn:
|
|
2882
|
+
logo: v,
|
|
2883
|
+
cancelSingleSignOn: x,
|
|
2883
2884
|
cancelButtonType: r
|
|
2884
|
-
}) : /* @__PURE__ */ (0,
|
|
2885
|
+
}) : /* @__PURE__ */ (0, V.jsx)(Mi, {
|
|
2885
2886
|
verificationService: e,
|
|
2886
2887
|
messages: n,
|
|
2887
|
-
updateViewModelAndOpenLoginTab:
|
|
2888
|
-
dashedStepName:
|
|
2888
|
+
updateViewModelAndOpenLoginTab: C,
|
|
2889
|
+
dashedStepName: h
|
|
2889
2890
|
})
|
|
2890
|
-
}), /* @__PURE__ */ (0,
|
|
2891
|
+
}), /* @__PURE__ */ (0, V.jsx)(ke, { verificationService: e })]
|
|
2891
2892
|
});
|
|
2892
2893
|
}, Fi = {
|
|
2893
|
-
title: /* @__PURE__ */ (0,
|
|
2894
|
+
title: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
2894
2895
|
id: "step.sso.title",
|
|
2895
2896
|
defaultMessage: "Verify using your school credentials",
|
|
2896
2897
|
tagName: "h1"
|
|
2897
2898
|
}),
|
|
2898
|
-
subtitle: /* @__PURE__ */ (0,
|
|
2899
|
+
subtitle: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
2899
2900
|
id: "step.sso.subtitle",
|
|
2900
2901
|
defaultMessage: "Please sign in to your school's web portal. It will open in a new tab."
|
|
2901
2902
|
}),
|
|
2902
|
-
login: /* @__PURE__ */ (0,
|
|
2903
|
+
login: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
2903
2904
|
id: "step.sso.login",
|
|
2904
2905
|
defaultMessage: "Sign in to my school"
|
|
2905
2906
|
}),
|
|
2906
|
-
cancel: /* @__PURE__ */ (0,
|
|
2907
|
+
cancel: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
2907
2908
|
id: "step.sso.cancel",
|
|
2908
2909
|
defaultMessage: "Upload Proof of Enrollment"
|
|
2909
2910
|
}),
|
|
2910
|
-
subtitle2: /* @__PURE__ */ (0,
|
|
2911
|
+
subtitle2: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
2911
2912
|
id: "step.sso.subtitle2",
|
|
2912
2913
|
defaultMessage: "Can't sign in to your school?"
|
|
2913
2914
|
})
|
|
2914
|
-
}, Ii = ({ verificationService: e }) => /* @__PURE__ */ (0,
|
|
2915
|
+
}, Ii = ({ verificationService: e }) => /* @__PURE__ */ (0, V.jsx)(Pi, {
|
|
2915
2916
|
verificationService: e,
|
|
2916
2917
|
stepName: i.sso,
|
|
2917
2918
|
messages: Fi
|
|
@@ -2944,7 +2945,7 @@ var zi = (e, t) => {
|
|
|
2944
2945
|
city: e.city,
|
|
2945
2946
|
state: e.state,
|
|
2946
2947
|
source: e.source
|
|
2947
|
-
} :
|
|
2948
|
+
} : Be.organization, n.organization && n.organization.source !== void 0 && (t.organization.source = n.organization.source);
|
|
2948
2949
|
});
|
|
2949
2950
|
t.updateViewModel(r);
|
|
2950
2951
|
}, Bi = (e) => {
|
|
@@ -3080,120 +3081,120 @@ var zi = (e, t) => {
|
|
|
3080
3081
|
return (i.includes("preview") || i.includes("localhost")) && (r = "https://support-preview.sheerid.net"), `${r}/${e}/${t}/${n}/remember-me/`;
|
|
3081
3082
|
}, pa = (e, t = w()) => t.formFieldConfig.find((t) => t.fieldId === e), ma = ({ intl: e, logo: t, verificationService: n }) => {
|
|
3082
3083
|
let r = n.verificationResponse, i = ra({ ...r }, n.programTheme, e);
|
|
3083
|
-
return /* @__PURE__ */ (0,
|
|
3084
|
+
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
3084
3085
|
className: "sid-header sid-l-horz-center",
|
|
3085
3086
|
"data-testid": "sid-review-pending",
|
|
3086
3087
|
children: [
|
|
3087
|
-
/* @__PURE__ */ (0,
|
|
3088
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3088
3089
|
className: "sid-l-horz-center",
|
|
3089
3090
|
children: t
|
|
3090
3091
|
}),
|
|
3091
|
-
/* @__PURE__ */ (0,
|
|
3092
|
+
/* @__PURE__ */ (0, V.jsx)(ft, {
|
|
3092
3093
|
align: "center",
|
|
3093
|
-
children: /* @__PURE__ */ (0,
|
|
3094
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3094
3095
|
id: "step.pending.titleReview",
|
|
3095
3096
|
defaultMessage: "Reviewing",
|
|
3096
3097
|
tagName: "h1"
|
|
3097
3098
|
})
|
|
3098
3099
|
}),
|
|
3099
|
-
/* @__PURE__ */ (0,
|
|
3100
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3100
3101
|
className: "sid-header__subtitle-one",
|
|
3101
|
-
children: /* @__PURE__ */ (0,
|
|
3102
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3102
3103
|
id: "step.pending.turnaroundTime",
|
|
3103
3104
|
defaultMessage: "Turnaround time is typically {estReviewTime}, and in rare times of high volume may take up to {maxReviewTime}.",
|
|
3104
3105
|
values: i
|
|
3105
3106
|
})
|
|
3106
3107
|
}),
|
|
3107
|
-
/* @__PURE__ */ (0,
|
|
3108
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3108
3109
|
className: "sid-header__subtitle-two sid-l-space-top-md",
|
|
3109
|
-
children: /* @__PURE__ */ (0,
|
|
3110
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3110
3111
|
id: "step.pending.subtitle2",
|
|
3111
3112
|
defaultMessage: "Wait here or let us notify you of the outcome."
|
|
3112
3113
|
})
|
|
3113
3114
|
}),
|
|
3114
|
-
/* @__PURE__ */ (0,
|
|
3115
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3115
3116
|
className: "sid-header__subtitle-three sid-l-space-top-md",
|
|
3116
|
-
children: /* @__PURE__ */ (0,
|
|
3117
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3117
3118
|
id: "step.pending.subtitle3",
|
|
3118
3119
|
defaultMessage: "You will be contacted via email."
|
|
3119
3120
|
})
|
|
3120
3121
|
}),
|
|
3121
|
-
/* @__PURE__ */ (0,
|
|
3122
|
+
/* @__PURE__ */ (0, V.jsx)("div", { className: "sid-l-space-top-xl" })
|
|
3122
3123
|
]
|
|
3123
3124
|
});
|
|
3124
|
-
}, ha = ({ logo: e }) => /* @__PURE__ */ (0,
|
|
3125
|
+
}, ha = ({ logo: e }) => /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
3125
3126
|
className: "sid-header sid-l-horz-center",
|
|
3126
3127
|
"data-testid": "sid-review-pending",
|
|
3127
3128
|
children: [
|
|
3128
|
-
/* @__PURE__ */ (0,
|
|
3129
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3129
3130
|
className: "sid-l-horz-center",
|
|
3130
3131
|
children: e
|
|
3131
3132
|
}),
|
|
3132
|
-
/* @__PURE__ */ (0,
|
|
3133
|
+
/* @__PURE__ */ (0, V.jsx)(ft, {
|
|
3133
3134
|
align: "center",
|
|
3134
|
-
children: /* @__PURE__ */ (0,
|
|
3135
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3135
3136
|
id: "step.pending.idCheckLoop.title",
|
|
3136
3137
|
defaultMessage: "We're reviewing your documents",
|
|
3137
3138
|
tagName: "h1"
|
|
3138
3139
|
})
|
|
3139
3140
|
}),
|
|
3140
|
-
/* @__PURE__ */ (0,
|
|
3141
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3141
3142
|
className: "sid-header__subtitle-one",
|
|
3142
|
-
children: /* @__PURE__ */ (0,
|
|
3143
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3143
3144
|
id: "step.pending.idCheckLoop.subtitle",
|
|
3144
3145
|
defaultMessage: "Hold tight, turnaround time is typically a few minutes or less."
|
|
3145
3146
|
})
|
|
3146
3147
|
}),
|
|
3147
|
-
/* @__PURE__ */ (0,
|
|
3148
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3148
3149
|
className: "sid-header__subtitle-two sid-l-space-top-md sid-h-bold-text",
|
|
3149
|
-
children: /* @__PURE__ */ (0,
|
|
3150
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3150
3151
|
id: "step.pending.idCheckLoop.subtitle2",
|
|
3151
3152
|
defaultMessage: "We'll send you an email when we're finished reviewing."
|
|
3152
3153
|
})
|
|
3153
3154
|
}),
|
|
3154
|
-
/* @__PURE__ */ (0,
|
|
3155
|
+
/* @__PURE__ */ (0, V.jsx)("div", { className: "sid-l-space-top-xl" })
|
|
3155
3156
|
]
|
|
3156
3157
|
}), ga = { [s.SIGNZY]: {
|
|
3157
|
-
title: /* @__PURE__ */ (0,
|
|
3158
|
+
title: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3158
3159
|
id: "step.thirdPartyLoop.signzy.title",
|
|
3159
3160
|
tagName: "h1",
|
|
3160
3161
|
defaultMessage: "Verify using DigiLocker"
|
|
3161
3162
|
}),
|
|
3162
|
-
subtitle: /* @__PURE__ */ (0,
|
|
3163
|
+
subtitle: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3163
3164
|
id: "step.thirdPartyLoop.signzy.subtitle",
|
|
3164
3165
|
defaultMessage: "Verify using your DigiLocker login information"
|
|
3165
3166
|
}),
|
|
3166
|
-
login: /* @__PURE__ */ (0,
|
|
3167
|
+
login: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3167
3168
|
id: "step.thirdPartyLoop.signzy.login",
|
|
3168
3169
|
defaultMessage: "Sign in to DigiLocker"
|
|
3169
3170
|
}),
|
|
3170
|
-
cancel: /* @__PURE__ */ (0,
|
|
3171
|
+
cancel: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3171
3172
|
id: "step.thirdPartyLoop.signzy.cancel",
|
|
3172
3173
|
defaultMessage: "Upload Proof of Identity"
|
|
3173
3174
|
})
|
|
3174
|
-
} }, _a = ({ logo: e }) => /* @__PURE__ */ (0,
|
|
3175
|
+
} }, _a = ({ logo: e }) => /* @__PURE__ */ (0, V.jsx)("div", {
|
|
3175
3176
|
id: "sid-step-third-party-loop",
|
|
3176
3177
|
className: "sid-step-third-party-loop-container sid-l-container",
|
|
3177
3178
|
"data-testid": "sid-step-third-party-loop-error",
|
|
3178
|
-
children: /* @__PURE__ */ (0,
|
|
3179
|
+
children: /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
3179
3180
|
className: "sid-header sid-l-horz-center",
|
|
3180
3181
|
children: [
|
|
3181
|
-
/* @__PURE__ */ (0,
|
|
3182
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3182
3183
|
className: "sid-error-logo-container sid-l-horz-center",
|
|
3183
3184
|
children: e
|
|
3184
3185
|
}),
|
|
3185
|
-
/* @__PURE__ */ (0,
|
|
3186
|
+
/* @__PURE__ */ (0, V.jsx)(ft, {
|
|
3186
3187
|
align: "center",
|
|
3187
|
-
children: /* @__PURE__ */ (0,
|
|
3188
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3188
3189
|
id: "error",
|
|
3189
3190
|
tagName: "h1"
|
|
3190
3191
|
})
|
|
3191
3192
|
}),
|
|
3192
|
-
/* @__PURE__ */ (0,
|
|
3193
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3193
3194
|
className: "sid-header__subtitle sid-l-horz-center sid-l-space-top-md",
|
|
3194
|
-
children: /* @__PURE__ */ (0,
|
|
3195
|
+
children: /* @__PURE__ */ (0, V.jsx)("div", {
|
|
3195
3196
|
className: "sid-error-msg sid-l-horz-center",
|
|
3196
|
-
children: /* @__PURE__ */ (0,
|
|
3197
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, {
|
|
3197
3198
|
id: "step.thirdPartyLoop.error",
|
|
3198
3199
|
defaultMessage: "Provider not supported"
|
|
3199
3200
|
})
|
|
@@ -3203,31 +3204,31 @@ var zi = (e, t) => {
|
|
|
3203
3204
|
})
|
|
3204
3205
|
}), va = ({ verificationService: e }) => {
|
|
3205
3206
|
let t = ga[e.verificationResponse.thirdPartyLoopProvider] || void 0;
|
|
3206
|
-
return t ? /* @__PURE__ */ (0,
|
|
3207
|
+
return t ? /* @__PURE__ */ (0, V.jsx)(Pi, {
|
|
3207
3208
|
verificationService: e,
|
|
3208
3209
|
stepName: i.thirdPartyLoop,
|
|
3209
3210
|
messages: t,
|
|
3210
3211
|
cancelButtonType: Ni.SECONDARY
|
|
3211
|
-
}) : /* @__PURE__ */ (0,
|
|
3212
|
+
}) : /* @__PURE__ */ (0, V.jsx)(_a, { logo: /* @__PURE__ */ (0, V.jsx)(ut, {
|
|
3212
3213
|
verificationService: e,
|
|
3213
|
-
fallbackLogo: /* @__PURE__ */ (0,
|
|
3214
|
+
fallbackLogo: /* @__PURE__ */ (0, V.jsx)("img", {
|
|
3214
3215
|
className: "sid-error-logo sid-l-lead-image",
|
|
3215
3216
|
alt: "",
|
|
3216
3217
|
src: "https://assets-resources.sheerid.com/common/images/2018/icons/circle-exclamation.svg"
|
|
3217
3218
|
})
|
|
3218
3219
|
}) });
|
|
3219
3220
|
}, ya = ({ logo: e, verificationLastResponse: t, cancelThirdPartyLoop: n, isMockingPreviousStepThirdPartyLoop: r }) => {
|
|
3220
|
-
let a = ga[r ?
|
|
3221
|
-
return a ? /* @__PURE__ */ (0,
|
|
3221
|
+
let a = ga[r ? Ie("thirdPartyLoopProvider") : t?.thirdPartyLoopProvider] || void 0;
|
|
3222
|
+
return a ? /* @__PURE__ */ (0, V.jsx)(ji, {
|
|
3222
3223
|
stepName: i.thirdPartyLoop,
|
|
3223
3224
|
messages: a,
|
|
3224
3225
|
logo: e,
|
|
3225
3226
|
cancelSingleSignOn: n,
|
|
3226
3227
|
cancelButtonType: Ni.SECONDARY
|
|
3227
|
-
}) : /* @__PURE__ */ (0,
|
|
3228
|
+
}) : /* @__PURE__ */ (0, V.jsx)(_a, { logo: e });
|
|
3228
3229
|
}, ba = 5e3, xa = 2e4, Sa = 2e4, Ca = 2e3, wa = ee(({ verificationService: e, intl: t }) => {
|
|
3229
|
-
let { programId: n } = e, { viewModel: r } = e, a = e.previousViewModel || void 0, o = e.verificationResponse.lastResponse || e.previousVerificationResponse || void 0, { verificationId: s } = e.verificationResponse, c =
|
|
3230
|
-
|
|
3230
|
+
let { programId: n } = e, { viewModel: r } = e, a = e.previousViewModel || void 0, o = e.verificationResponse.lastResponse || e.previousVerificationResponse || void 0, { verificationId: s } = e.verificationResponse, c = Fe(), l = Le() && Le() === i.sso, u = Le() && Le() === i.thirdPartyLoop, f = Le() && Le() === i.idCheckLoop, p = () => o?.currentStep === i.sso, h = () => o?.currentStep === i.thirdPartyLoop, g = () => o?.currentStep === i.idCheckLoop, _ = p() || h() || l || u, v = g() || f, y = !_ && !v, [b, x] = B.useState(() => _ ? Ca : v ? Sa : ba);
|
|
3231
|
+
B.useEffect(() => {
|
|
3231
3232
|
if (!y) return;
|
|
3232
3233
|
let e = setTimeout(() => x(Sa), xa);
|
|
3233
3234
|
return () => clearTimeout(e);
|
|
@@ -3237,48 +3238,48 @@ var zi = (e, t) => {
|
|
|
3237
3238
|
}, b), C = (t) => {
|
|
3238
3239
|
let n = m(r, () => {});
|
|
3239
3240
|
d.info("StepSingleSignOnComponent submitting cancel request, step:", t), S(), lt(), e.submitStep(t, n, o);
|
|
3240
|
-
}, w = /* @__PURE__ */ (0,
|
|
3241
|
+
}, w = /* @__PURE__ */ (0, V.jsx)(ut, {
|
|
3241
3242
|
verificationService: e,
|
|
3242
|
-
fallbackLogo: /* @__PURE__ */ (0,
|
|
3243
|
+
fallbackLogo: /* @__PURE__ */ (0, V.jsx)("img", {
|
|
3243
3244
|
className: "sid-l-lead-image",
|
|
3244
3245
|
alt: "",
|
|
3245
3246
|
src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg"
|
|
3246
3247
|
})
|
|
3247
3248
|
});
|
|
3248
|
-
return /* @__PURE__ */ (0,
|
|
3249
|
+
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
3249
3250
|
id: "sid-step-pending",
|
|
3250
3251
|
className: "sid-l-container",
|
|
3251
|
-
children: [/* @__PURE__ */ (0,
|
|
3252
|
+
children: [/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3252
3253
|
role: "main",
|
|
3253
3254
|
children: (() => {
|
|
3254
3255
|
let n = p() || l, r = h() || u, a = g() || f;
|
|
3255
|
-
return n ? /* @__PURE__ */ (0,
|
|
3256
|
+
return n ? /* @__PURE__ */ (0, V.jsx)(ji, {
|
|
3256
3257
|
stepName: i.sso,
|
|
3257
3258
|
messages: Fi,
|
|
3258
3259
|
logo: w,
|
|
3259
3260
|
cancelSingleSignOn: () => C(i.sso)
|
|
3260
|
-
}) : r ? /* @__PURE__ */ (0,
|
|
3261
|
+
}) : r ? /* @__PURE__ */ (0, V.jsx)(ya, {
|
|
3261
3262
|
logo: w,
|
|
3262
3263
|
cancelThirdPartyLoop: () => C(i.thirdPartyLoop),
|
|
3263
3264
|
verificationLastResponse: o,
|
|
3264
3265
|
isMockingPreviousStepThirdPartyLoop: u
|
|
3265
|
-
}) : a ? /* @__PURE__ */ (0,
|
|
3266
|
+
}) : a ? /* @__PURE__ */ (0, V.jsx)(ha, { logo: w }) : /* @__PURE__ */ (0, V.jsx)(ma, {
|
|
3266
3267
|
verificationService: e,
|
|
3267
3268
|
logo: w,
|
|
3268
3269
|
intl: t,
|
|
3269
3270
|
maxReviewTime: Ze(e.programTheme)
|
|
3270
3271
|
});
|
|
3271
3272
|
})()
|
|
3272
|
-
}), v ? /* @__PURE__ */ (0,
|
|
3273
|
+
}), v ? /* @__PURE__ */ (0, V.jsx)(Oi, {
|
|
3273
3274
|
verificationService: e,
|
|
3274
3275
|
isCentered: !0
|
|
3275
|
-
}) : /* @__PURE__ */ (0,
|
|
3276
|
+
}) : /* @__PURE__ */ (0, V.jsxs)(ke, {
|
|
3276
3277
|
verificationService: e,
|
|
3277
|
-
children: [/* @__PURE__ */ (0,
|
|
3278
|
+
children: [/* @__PURE__ */ (0, V.jsx)("div", {}), " "]
|
|
3278
3279
|
})]
|
|
3279
3280
|
});
|
|
3280
3281
|
}), Ta = () => {
|
|
3281
|
-
let e = ge(), t = h(() => e.verificationResponse.segment), n =
|
|
3282
|
+
let e = ge(), t = h(() => e.verificationResponse.segment), n = B.useCallback(() => {
|
|
3282
3283
|
if (window.self !== window.top) {
|
|
3283
3284
|
let e = new URL(window.location.href);
|
|
3284
3285
|
e.searchParams.delete("verificationId"), window.location.replace(e);
|
|
@@ -3289,12 +3290,12 @@ var zi = (e, t) => {
|
|
|
3289
3290
|
e.resetState(), await e.fetchNewVerificationRequest(n, t, void 0, void 0, !0);
|
|
3290
3291
|
})();
|
|
3291
3292
|
}, [e.programId, t]);
|
|
3292
|
-
return /* @__PURE__ */ (0,
|
|
3293
|
+
return /* @__PURE__ */ (0, V.jsx)("button", {
|
|
3293
3294
|
type: "button",
|
|
3294
3295
|
className: "sid-btn sid-btn-light sid-btn__try-again",
|
|
3295
3296
|
onClick: n,
|
|
3296
3297
|
onKeyPress: n,
|
|
3297
|
-
children: /* @__PURE__ */ (0,
|
|
3298
|
+
children: /* @__PURE__ */ (0, V.jsx)(z, { id: "tryAgain" })
|
|
3298
3299
|
});
|
|
3299
3300
|
}, Ea = {
|
|
3300
3301
|
NONE: "none",
|
|
@@ -3302,22 +3303,22 @@ var zi = (e, t) => {
|
|
|
3302
3303
|
POSTMESSAGE: "postMessage",
|
|
3303
3304
|
REDIRECT: "redirect"
|
|
3304
3305
|
}, Da = () => {
|
|
3305
|
-
let e =
|
|
3306
|
+
let e = Ae(), t = () => Ke({
|
|
3306
3307
|
action: "tryAgain",
|
|
3307
3308
|
verificationResponse: e
|
|
3308
3309
|
});
|
|
3309
|
-
return /* @__PURE__ */ (0,
|
|
3310
|
+
return /* @__PURE__ */ (0, V.jsx)("button", {
|
|
3310
3311
|
type: "button",
|
|
3311
3312
|
className: "sid-btn sid-btn-light sid-btn__try-again",
|
|
3312
3313
|
onClick: t,
|
|
3313
3314
|
onKeyPress: t,
|
|
3314
|
-
children: /* @__PURE__ */ (0,
|
|
3315
|
+
children: /* @__PURE__ */ (0, V.jsx)(z, { id: "tryAgain" })
|
|
3315
3316
|
});
|
|
3316
|
-
}, Oa = ({ redirectUrl: e, target: t = "_blank" }) => /* @__PURE__ */ (0,
|
|
3317
|
+
}, Oa = ({ redirectUrl: e, target: t = "_blank" }) => /* @__PURE__ */ (0, V.jsx)(_e, {
|
|
3317
3318
|
target: t,
|
|
3318
3319
|
href: e.toString(),
|
|
3319
3320
|
className: "sid-btn sid-btn--dark",
|
|
3320
|
-
children: /* @__PURE__ */ (0,
|
|
3321
|
+
children: /* @__PURE__ */ (0, V.jsx)(z, { id: "seeOtherOffers" })
|
|
3321
3322
|
}), ka = (e) => {
|
|
3322
3323
|
if (!(typeof e == "object" && "type" in e && Object.values(Ea).includes(e.type))) throw RangeError("Invalid tryAgainAction option type - using default TryAgainButton.");
|
|
3323
3324
|
}, Aa = () => {
|
|
@@ -3325,82 +3326,82 @@ var zi = (e, t) => {
|
|
|
3325
3326
|
try {
|
|
3326
3327
|
switch (ka(e), e.type) {
|
|
3327
3328
|
case Ea.NONE: return null;
|
|
3328
|
-
case Ea.POSTMESSAGE: return window.self === window.top ? (d.error(`Invalid tryAgainAction option type "${e.type}" - page must be embedded in an iframe.`), null) : /* @__PURE__ */ (0,
|
|
3329
|
-
case Ea.REDIRECT: return /* @__PURE__ */ (0,
|
|
3329
|
+
case Ea.POSTMESSAGE: return window.self === window.top ? (d.error(`Invalid tryAgainAction option type "${e.type}" - page must be embedded in an iframe.`), null) : /* @__PURE__ */ (0, V.jsx)(Da, {});
|
|
3330
|
+
case Ea.REDIRECT: return /* @__PURE__ */ (0, V.jsx)(Oa, {
|
|
3330
3331
|
redirectUrl: e.url,
|
|
3331
3332
|
target: e.target
|
|
3332
3333
|
});
|
|
3333
|
-
case Ea.RESET: return /* @__PURE__ */ (0,
|
|
3334
|
+
case Ea.RESET: return /* @__PURE__ */ (0, V.jsx)(Ta, {});
|
|
3334
3335
|
default: throw RangeError("Invalid tryAgainAction option type - using default TryAgainButton.");
|
|
3335
3336
|
}
|
|
3336
3337
|
} catch (e) {
|
|
3337
|
-
return d.error(e.message), /* @__PURE__ */ (0,
|
|
3338
|
+
return d.error(e.message), /* @__PURE__ */ (0, V.jsx)(Ta, {});
|
|
3338
3339
|
}
|
|
3339
3340
|
}, ja = ({ verificationService: e, errorIds: t }) => {
|
|
3340
3341
|
let n = t[0];
|
|
3341
|
-
return /* @__PURE__ */ (0,
|
|
3342
|
+
return /* @__PURE__ */ (0, V.jsx)(ft, {
|
|
3342
3343
|
align: "center",
|
|
3343
|
-
children: /* @__PURE__ */ (0,
|
|
3344
|
+
children: /* @__PURE__ */ (0, V.jsx)("h1", { children: /* @__PURE__ */ (0, V.jsx)(z, { id: e?.messages[`step.error.errorId.${n}.title`] ? `step.error.errorId.${n}.title` : "step.error.title" }) })
|
|
3344
3345
|
});
|
|
3345
3346
|
}, Ma = ({ errorIds: e, errorDetailId: t }) => {
|
|
3346
3347
|
let n = /* @__PURE__ */ new Map();
|
|
3347
|
-
return t ? n.set(t, `errorDetailId.${t}`) : e?.forEach((e) => n.set(e, `errorId.${e}`)), n.size > 0 ? /* @__PURE__ */ (0,
|
|
3348
|
+
return t ? n.set(t, `errorDetailId.${t}`) : e?.forEach((e) => n.set(e, `errorId.${e}`)), n.size > 0 ? /* @__PURE__ */ (0, V.jsx)("p", { children: Array.from(n).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(z, { id: t }, t)) }) : null;
|
|
3348
3349
|
}, Na = ({ verificationService: e, errorIds: t, redirectUrl: n }) => {
|
|
3349
3350
|
if (t.includes("unauthorizedAccountStatus")) {
|
|
3350
3351
|
let t = h(() => e.programTheme.config.brandInfo.faqUrl);
|
|
3351
|
-
return t ? /* @__PURE__ */ (0,
|
|
3352
|
+
return t ? /* @__PURE__ */ (0, V.jsx)(_e, {
|
|
3352
3353
|
href: t,
|
|
3353
3354
|
onClick: () => v(i.error, t),
|
|
3354
3355
|
className: "sid-btn sid-faq-btn sid-btn-light",
|
|
3355
|
-
children: /* @__PURE__ */ (0,
|
|
3356
|
+
children: /* @__PURE__ */ (0, V.jsx)(z, { id: "step.error.errorId.unauthorizedAccountStatus.buttonText" })
|
|
3356
3357
|
}) : null;
|
|
3357
3358
|
}
|
|
3358
3359
|
if (t.includes("verificationLimitExceeded")) return null;
|
|
3359
|
-
if (t.includes("missingRequiredMetadata") || t.includes("missingRequiredExternalId")) return A("tryAgainAction").type === "reset" ? null : /* @__PURE__ */ (0,
|
|
3360
|
+
if (t.includes("missingRequiredMetadata") || t.includes("missingRequiredExternalId")) return A("tryAgainAction").type === "reset" ? null : /* @__PURE__ */ (0, V.jsx)(Aa, {});
|
|
3360
3361
|
let r = t[0];
|
|
3361
|
-
return e.messages?.[`step.error.errorId.${r}.buttonText`] && n ? /* @__PURE__ */ (0,
|
|
3362
|
+
return e.messages?.[`step.error.errorId.${r}.buttonText`] && n ? /* @__PURE__ */ (0, V.jsx)(_e, {
|
|
3362
3363
|
href: n,
|
|
3363
3364
|
onClick: () => v(i.error, n),
|
|
3364
3365
|
className: "sid-btn sid-error-btn sid-btn-light",
|
|
3365
|
-
children: /* @__PURE__ */ (0,
|
|
3366
|
-
}) : /* @__PURE__ */ (0,
|
|
3366
|
+
children: /* @__PURE__ */ (0, V.jsx)(z, { id: `step.error.errorId.${r}.buttonText` })
|
|
3367
|
+
}) : /* @__PURE__ */ (0, V.jsx)(Aa, {});
|
|
3367
3368
|
}, Pa = ({ verificationService: e, errorId: t }) => {
|
|
3368
3369
|
let { errorIds: n, redirectUrl: r, errorDetailId: i } = e.verificationResponse, a = /* @__PURE__ */ new Set();
|
|
3369
3370
|
t && a.add(t), Array.isArray(n) && n.forEach((e) => a.add(e));
|
|
3370
3371
|
let o = Array.from(a);
|
|
3371
|
-
return /* @__PURE__ */ (0,
|
|
3372
|
+
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
3372
3373
|
id: "sid-step-error",
|
|
3373
3374
|
className: "sid-error-container sid-l-container",
|
|
3374
|
-
children: [/* @__PURE__ */ (0,
|
|
3375
|
+
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
3375
3376
|
className: "sid-header sid-l-horz-center",
|
|
3376
3377
|
role: "banner",
|
|
3377
3378
|
children: [
|
|
3378
|
-
/* @__PURE__ */ (0,
|
|
3379
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3379
3380
|
className: "sid-error-logo-container sid-l-horz-center",
|
|
3380
|
-
children: /* @__PURE__ */ (0,
|
|
3381
|
+
children: /* @__PURE__ */ (0, V.jsx)(ut, {
|
|
3381
3382
|
verificationService: e,
|
|
3382
|
-
fallbackLogo: /* @__PURE__ */ (0,
|
|
3383
|
+
fallbackLogo: /* @__PURE__ */ (0, V.jsx)("img", {
|
|
3383
3384
|
className: "sid-error-logo sid-l-lead-image",
|
|
3384
3385
|
alt: "",
|
|
3385
3386
|
src: "https://assets-resources.sheerid.com/common/images/2018/icons/circle-exclamation.svg"
|
|
3386
3387
|
})
|
|
3387
3388
|
})
|
|
3388
3389
|
}),
|
|
3389
|
-
/* @__PURE__ */ (0,
|
|
3390
|
+
/* @__PURE__ */ (0, V.jsx)(ja, {
|
|
3390
3391
|
verificationService: e,
|
|
3391
3392
|
errorIds: o
|
|
3392
3393
|
}),
|
|
3393
|
-
/* @__PURE__ */ (0,
|
|
3394
|
+
/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
3394
3395
|
className: "sid-header__subtitle sid-l-horz-center sid-l-space-top-md",
|
|
3395
|
-
children: [/* @__PURE__ */ (0,
|
|
3396
|
+
children: [/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3396
3397
|
className: "sid-error-msg sid-l-horz-center",
|
|
3397
|
-
children: /* @__PURE__ */ (0,
|
|
3398
|
+
children: /* @__PURE__ */ (0, V.jsx)(Ma, {
|
|
3398
3399
|
errorIds: o,
|
|
3399
3400
|
errorDetailId: i
|
|
3400
3401
|
})
|
|
3401
|
-
}), /* @__PURE__ */ (0,
|
|
3402
|
+
}), /* @__PURE__ */ (0, V.jsx)("div", {
|
|
3402
3403
|
className: "sid-l-space-top-lg sid-error-button-container sid-l-horz-center",
|
|
3403
|
-
children: /* @__PURE__ */ (0,
|
|
3404
|
+
children: /* @__PURE__ */ (0, V.jsx)(Na, {
|
|
3404
3405
|
verificationService: e,
|
|
3405
3406
|
errorIds: o,
|
|
3406
3407
|
redirectUrl: r
|
|
@@ -3408,9 +3409,9 @@ var zi = (e, t) => {
|
|
|
3408
3409
|
})]
|
|
3409
3410
|
})
|
|
3410
3411
|
]
|
|
3411
|
-
}), /* @__PURE__ */ (0,
|
|
3412
|
+
}), /* @__PURE__ */ (0, V.jsx)("div", {
|
|
3412
3413
|
className: "sid-footer sid-powered-by-container sid-l-horz-center sid-l-space-top-xl sid-h-small-text",
|
|
3413
|
-
children: /* @__PURE__ */ (0,
|
|
3414
|
+
children: /* @__PURE__ */ (0, V.jsx)(Oi, {
|
|
3414
3415
|
verificationService: e,
|
|
3415
3416
|
isCentered: !0
|
|
3416
3417
|
})
|
|
@@ -3419,45 +3420,45 @@ var zi = (e, t) => {
|
|
|
3419
3420
|
}, Fa = {
|
|
3420
3421
|
StepPendingComponent: wa,
|
|
3421
3422
|
StepErrorComponent: Pa,
|
|
3422
|
-
StepStudentPersonalInfoComponent:
|
|
3423
|
-
StepOverrideComponent:
|
|
3424
|
-
StepAgePersonalInfoComponent:
|
|
3425
|
-
StepSeniorPersonalInfoComponent:
|
|
3426
|
-
StepActiveMilitaryPersonalInfoComponent:
|
|
3427
|
-
StepCollectMilitaryStatusComponent:
|
|
3428
|
-
StepInactiveMilitaryPersonalInfoComponent:
|
|
3429
|
-
StepDriverLicensePersonalInfoComponent:
|
|
3430
|
-
StepEmploymentPersonalInfoComponent:
|
|
3431
|
-
StepFirstResponderPersonalInfoComponent:
|
|
3432
|
-
StepGeneralIdentityPersonalInfoComponent:
|
|
3433
|
-
StepHybridIdentityPersonalInfoComponent:
|
|
3434
|
-
StepIDCheckLoopComponent:
|
|
3435
|
-
StepLicensedProfessionalPersonalInfoComponent:
|
|
3436
|
-
StepLowIncomePersonalInfoComponent:
|
|
3437
|
-
StepMedicalProfessionalPersonalInfoComponent:
|
|
3438
|
-
StepMemberPersonalInfoComponent:
|
|
3439
|
-
StepConsolationComponent:
|
|
3440
|
-
StepDocUploadComponent:
|
|
3441
|
-
StepEmailLoopComponent:
|
|
3442
|
-
StepPendingEmailLoopComponent:
|
|
3443
|
-
StepMoverPersonalInfoComponent:
|
|
3444
|
-
StepSMSLoopComponent:
|
|
3445
|
-
StepSocialSecurity:
|
|
3446
|
-
StepSSOComponent:
|
|
3447
|
-
StepSuccessComponent:
|
|
3448
|
-
StepTeacherPersonalInfoComponent:
|
|
3449
|
-
StepCompleteAuthentication:
|
|
3450
|
-
StepCollectIdentifierComponent:
|
|
3451
|
-
StepCollectPersonalInfo:
|
|
3452
|
-
StepThirdPartyLoopComponent:
|
|
3453
|
-
},
|
|
3423
|
+
StepStudentPersonalInfoComponent: B.lazy(() => import("./chunk/StepStudentPersonalInfo-C6vglquS.js")),
|
|
3424
|
+
StepOverrideComponent: B.lazy(() => import("./chunk/StepOverrideComponent-Brq5KLjj.js")),
|
|
3425
|
+
StepAgePersonalInfoComponent: B.lazy(() => import("./chunk/StepAgePersonalInfo-yyCGLpxY.js")),
|
|
3426
|
+
StepSeniorPersonalInfoComponent: B.lazy(() => import("./chunk/StepAgePersonalInfo-yyCGLpxY.js")),
|
|
3427
|
+
StepActiveMilitaryPersonalInfoComponent: B.lazy(() => import("./chunk/StepActiveMilitaryPersonalInfoComponent-KkWaNIkx.js")),
|
|
3428
|
+
StepCollectMilitaryStatusComponent: B.lazy(() => import("./chunk/StepCollectMilitaryStatusComponent-BtbLeQMg.js")),
|
|
3429
|
+
StepInactiveMilitaryPersonalInfoComponent: B.lazy(() => import("./chunk/StepInactiveMilitaryPersonalInfoComponent-CUyp2gOH.js")),
|
|
3430
|
+
StepDriverLicensePersonalInfoComponent: B.lazy(() => import("./chunk/StepDriverLicensePersonalInfoComponent-BJwEr-7A.js")),
|
|
3431
|
+
StepEmploymentPersonalInfoComponent: B.lazy(() => import("./chunk/StepEmploymentPersonalInfo-urokkAjm.js")),
|
|
3432
|
+
StepFirstResponderPersonalInfoComponent: B.lazy(() => import("./chunk/StepFirstResponderPersonalInfo-BvK0QXPZ.js")),
|
|
3433
|
+
StepGeneralIdentityPersonalInfoComponent: B.lazy(() => import("./chunk/StepGeneralIdentityPersonalInfoComponent-CDNQr2j2.js")),
|
|
3434
|
+
StepHybridIdentityPersonalInfoComponent: B.lazy(() => import("./chunk/StepHybridIdentityPersonalInfoComponent-deShTQld.js")),
|
|
3435
|
+
StepIDCheckLoopComponent: B.lazy(() => import("./chunk/StepIDCheckLoop-qQM2ppOK.js")),
|
|
3436
|
+
StepLicensedProfessionalPersonalInfoComponent: B.lazy(() => import("./chunk/StepLicensedProfessionalPersonalInfo-Ckl7LuJd.js")),
|
|
3437
|
+
StepLowIncomePersonalInfoComponent: B.lazy(() => import("./chunk/StepLowIncomePersonalInfo-Bn1TGxr5.js")),
|
|
3438
|
+
StepMedicalProfessionalPersonalInfoComponent: B.lazy(() => import("./chunk/StepMedicalProfessionalPersonalInfo-Bny4aBGH.js")),
|
|
3439
|
+
StepMemberPersonalInfoComponent: B.lazy(() => import("./chunk/StepMemberPersonalInfo-wwAzUKPQ.js")),
|
|
3440
|
+
StepConsolationComponent: B.lazy(() => import("./chunk/StepConsolation-Bsk_fLwi.js")),
|
|
3441
|
+
StepDocUploadComponent: B.lazy(() => import("./chunk/StepDocUpload-DSpodLC9.js")),
|
|
3442
|
+
StepEmailLoopComponent: B.lazy(() => import("./chunk/StepEmailLoop-CRbDel8p.js")),
|
|
3443
|
+
StepPendingEmailLoopComponent: B.lazy(() => import("./chunk/EmailLoopPending-WlbBU74F.js").then((e) => e.n)),
|
|
3444
|
+
StepMoverPersonalInfoComponent: B.lazy(() => import("./chunk/StepMoverPersonalInfo-CUbmmXDG.js")),
|
|
3445
|
+
StepSMSLoopComponent: B.lazy(() => import("./chunk/StepSMSLoop-BETiez1v.js")),
|
|
3446
|
+
StepSocialSecurity: B.lazy(() => import("./chunk/StepSocialSecurityNumber-Bpo4fPf6.js")),
|
|
3447
|
+
StepSSOComponent: B.lazy(() => import("./chunk/StepSSO-BRFhNvkp.js")),
|
|
3448
|
+
StepSuccessComponent: B.lazy(() => import("./chunk/StepSuccess-CErDLjZO.js")),
|
|
3449
|
+
StepTeacherPersonalInfoComponent: B.lazy(() => import("./chunk/StepTeacherPersonalInfo-C_pDLBTF.js")),
|
|
3450
|
+
StepCompleteAuthentication: B.lazy(() => import("./chunk/StepCompleteAuthentication-B5kvuKWH.js")),
|
|
3451
|
+
StepCollectIdentifierComponent: B.lazy(() => import("./chunk/StepCollectIdentifier-BfsiGjxy.js")),
|
|
3452
|
+
StepCollectPersonalInfo: B.lazy(() => import("./chunk/StepCollectPersonalInfo-D6eSY_w8.js")),
|
|
3453
|
+
StepThirdPartyLoopComponent: B.lazy(() => import("./chunk/StepThirdPartyLoop-ZHByQpHa.js"))
|
|
3454
|
+
}, X = (e) => (d.info("getComponent", e), wi(e) || Fa[e]), Ia = () => /* @__PURE__ */ (0, V.jsx)(vt, {}), La = ({ stepToLoad: e, verificationService: t }) => {
|
|
3454
3455
|
d.info(`LoadStepComponent: rendering step: ${e}`);
|
|
3455
3456
|
let n;
|
|
3456
|
-
switch ((0,
|
|
3457
|
+
switch ((0, B.useEffect)(() => {
|
|
3457
3458
|
try {
|
|
3458
3459
|
performance.mark(j.INITIAL_STEP_LOAD);
|
|
3459
3460
|
} catch {}
|
|
3460
|
-
}, []),
|
|
3461
|
+
}, []), B.useEffect(() => {
|
|
3461
3462
|
if (!["pending", "error"].includes(e)) try {
|
|
3462
3463
|
performance.mark(g.STEP_SEEN), _({
|
|
3463
3464
|
eventName: g.STEP_SEEN,
|
|
@@ -3468,151 +3469,151 @@ var zi = (e, t) => {
|
|
|
3468
3469
|
}
|
|
3469
3470
|
}, [e]), e) {
|
|
3470
3471
|
case "collectPersonalInfo":
|
|
3471
|
-
n =
|
|
3472
|
+
n = X("StepCollectPersonalInfo");
|
|
3472
3473
|
break;
|
|
3473
3474
|
case "collectStudentPersonalInfo":
|
|
3474
|
-
n =
|
|
3475
|
+
n = X("StepStudentPersonalInfoComponent");
|
|
3475
3476
|
break;
|
|
3476
3477
|
case "collectSeniorPersonalInfo":
|
|
3477
|
-
n =
|
|
3478
|
+
n = X("StepSeniorPersonalInfoComponent");
|
|
3478
3479
|
break;
|
|
3479
3480
|
case "collectAgePersonalInfo":
|
|
3480
|
-
n =
|
|
3481
|
+
n = X("StepAgePersonalInfoComponent");
|
|
3481
3482
|
break;
|
|
3482
3483
|
case "collectTeacherPersonalInfo":
|
|
3483
|
-
n =
|
|
3484
|
+
n = X("StepTeacherPersonalInfoComponent");
|
|
3484
3485
|
break;
|
|
3485
3486
|
case "collectMemberPersonalInfo":
|
|
3486
|
-
n =
|
|
3487
|
+
n = X("StepMemberPersonalInfoComponent");
|
|
3487
3488
|
break;
|
|
3488
3489
|
case "collectMilitaryStatus":
|
|
3489
|
-
n =
|
|
3490
|
+
n = X("StepCollectMilitaryStatusComponent");
|
|
3490
3491
|
break;
|
|
3491
3492
|
case "collectActiveMilitaryPersonalInfo":
|
|
3492
|
-
n =
|
|
3493
|
+
n = X("StepActiveMilitaryPersonalInfoComponent");
|
|
3493
3494
|
break;
|
|
3494
3495
|
case "collectInactiveMilitaryPersonalInfo":
|
|
3495
|
-
n =
|
|
3496
|
+
n = X("StepInactiveMilitaryPersonalInfoComponent");
|
|
3496
3497
|
break;
|
|
3497
3498
|
case "collectFirstResponderPersonalInfo":
|
|
3498
|
-
n =
|
|
3499
|
+
n = X("StepFirstResponderPersonalInfoComponent");
|
|
3499
3500
|
break;
|
|
3500
3501
|
case "collectMedicalProfessionalPersonalInfo":
|
|
3501
|
-
n =
|
|
3502
|
+
n = X("StepMedicalProfessionalPersonalInfoComponent");
|
|
3502
3503
|
break;
|
|
3503
3504
|
case "collectEmployeePersonalInfo":
|
|
3504
|
-
n =
|
|
3505
|
+
n = X("StepEmploymentPersonalInfoComponent");
|
|
3505
3506
|
break;
|
|
3506
3507
|
case "collectDriverLicensePersonalInfo":
|
|
3507
|
-
n =
|
|
3508
|
+
n = X("StepDriverLicensePersonalInfoComponent");
|
|
3508
3509
|
break;
|
|
3509
3510
|
case "collectGeneralIdentityPersonalInfo":
|
|
3510
|
-
n =
|
|
3511
|
+
n = X("StepGeneralIdentityPersonalInfoComponent");
|
|
3511
3512
|
break;
|
|
3512
3513
|
case "collectHybridIdentityPersonalInfo":
|
|
3513
|
-
n =
|
|
3514
|
+
n = X("StepHybridIdentityPersonalInfoComponent");
|
|
3514
3515
|
break;
|
|
3515
3516
|
case "collectLicensedProfessionalPersonalInfo":
|
|
3516
|
-
n =
|
|
3517
|
+
n = X("StepLicensedProfessionalPersonalInfoComponent");
|
|
3517
3518
|
break;
|
|
3518
3519
|
case "collectMoverPersonalInfo":
|
|
3519
|
-
n =
|
|
3520
|
+
n = X("StepMoverPersonalInfoComponent");
|
|
3520
3521
|
break;
|
|
3521
3522
|
case "collectLowIncomePersonalInfo":
|
|
3522
|
-
n =
|
|
3523
|
+
n = X("StepLowIncomePersonalInfoComponent");
|
|
3523
3524
|
break;
|
|
3524
3525
|
case "collectSocialSecurityNumber":
|
|
3525
|
-
n =
|
|
3526
|
+
n = X("StepSocialSecurity");
|
|
3526
3527
|
break;
|
|
3527
3528
|
case "success":
|
|
3528
|
-
n =
|
|
3529
|
+
n = X("StepSuccessComponent");
|
|
3529
3530
|
break;
|
|
3530
3531
|
case "consolation":
|
|
3531
|
-
n =
|
|
3532
|
+
n = X("StepConsolationComponent");
|
|
3532
3533
|
break;
|
|
3533
3534
|
case "override":
|
|
3534
|
-
n =
|
|
3535
|
+
n = X("StepOverrideComponent");
|
|
3535
3536
|
break;
|
|
3536
3537
|
case "docUpload":
|
|
3537
|
-
n =
|
|
3538
|
+
n = X("StepDocUploadComponent");
|
|
3538
3539
|
break;
|
|
3539
3540
|
case "pending":
|
|
3540
|
-
n =
|
|
3541
|
+
n = X("StepPendingComponent");
|
|
3541
3542
|
break;
|
|
3542
3543
|
case "sso":
|
|
3543
|
-
n =
|
|
3544
|
+
n = X("StepSSOComponent");
|
|
3544
3545
|
break;
|
|
3545
3546
|
case "thirdPartyLoop":
|
|
3546
|
-
n =
|
|
3547
|
+
n = X("StepThirdPartyLoopComponent");
|
|
3547
3548
|
break;
|
|
3548
3549
|
case "smsLoop":
|
|
3549
|
-
n =
|
|
3550
|
+
n = X("StepSMSLoopComponent");
|
|
3550
3551
|
break;
|
|
3551
3552
|
case "emailLoop":
|
|
3552
|
-
n =
|
|
3553
|
+
n = X("StepEmailLoopComponent");
|
|
3553
3554
|
break;
|
|
3554
3555
|
case "idCheckLoop":
|
|
3555
|
-
n =
|
|
3556
|
+
n = X("StepIDCheckLoopComponent");
|
|
3556
3557
|
break;
|
|
3557
3558
|
case "collectIdentifier":
|
|
3558
|
-
n =
|
|
3559
|
+
n = X("StepCollectIdentifierComponent");
|
|
3559
3560
|
break;
|
|
3560
3561
|
case "completeAuthentication":
|
|
3561
|
-
n =
|
|
3562
|
+
n = X("StepCompleteAuthentication");
|
|
3562
3563
|
break;
|
|
3563
|
-
case "missingRequiredMetadata": return n =
|
|
3564
|
+
case "missingRequiredMetadata": return n = X("StepErrorComponent"), /* @__PURE__ */ (0, V.jsx)(n, {
|
|
3564
3565
|
verificationService: t,
|
|
3565
3566
|
errorId: "missingRequiredMetadata"
|
|
3566
3567
|
});
|
|
3567
|
-
case "missingRequiredExternalId": return n =
|
|
3568
|
+
case "missingRequiredExternalId": return n = X("StepErrorComponent"), /* @__PURE__ */ (0, V.jsx)(n, {
|
|
3568
3569
|
verificationService: t,
|
|
3569
3570
|
errorId: "missingRequiredExternalId"
|
|
3570
3571
|
});
|
|
3571
3572
|
case "error":
|
|
3572
|
-
n =
|
|
3573
|
+
n = X("StepErrorComponent");
|
|
3573
3574
|
break;
|
|
3574
3575
|
case "cancelDocUpload":
|
|
3575
3576
|
case "cancelEmailLoop":
|
|
3576
3577
|
case "cancelSocialSecurityNumber":
|
|
3577
3578
|
case "docReviewLimitExceeded":
|
|
3578
|
-
case "emailLoopCollectOrganizationEmail": return d.error("Attempted to load unexpected step", e), /* @__PURE__ */ (0,
|
|
3579
|
+
case "emailLoopCollectOrganizationEmail": return d.error("Attempted to load unexpected step", e), /* @__PURE__ */ (0, V.jsx)(Pa, {
|
|
3579
3580
|
verificationService: t,
|
|
3580
3581
|
errorId: "invalidStep"
|
|
3581
3582
|
});
|
|
3582
|
-
default: return d.error("Unable to load step", e), /* @__PURE__ */ (0,
|
|
3583
|
+
default: return d.error("Unable to load step", e), /* @__PURE__ */ (0, V.jsx)(Pa, {
|
|
3583
3584
|
verificationService: t,
|
|
3584
3585
|
errorId: "invalidStep"
|
|
3585
3586
|
});
|
|
3586
3587
|
}
|
|
3587
|
-
return /* @__PURE__ */ (0,
|
|
3588
|
+
return /* @__PURE__ */ (0, V.jsx)(B.Suspense, {
|
|
3588
3589
|
fallback: Ia(),
|
|
3589
|
-
children: /* @__PURE__ */ (0,
|
|
3590
|
+
children: /* @__PURE__ */ (0, V.jsx)(n, { verificationService: t })
|
|
3590
3591
|
});
|
|
3591
|
-
}, Ra = ({ dangerouslySetInnerHTML: e, ...t }) => e ? /* @__PURE__ */ (0,
|
|
3592
|
+
}, Ra = ({ dangerouslySetInnerHTML: e, ...t }) => e ? /* @__PURE__ */ (0, V.jsx)("span", {
|
|
3592
3593
|
dangerouslySetInnerHTML: e,
|
|
3593
3594
|
...t
|
|
3594
|
-
}) : /* @__PURE__ */ (0,
|
|
3595
|
+
}) : /* @__PURE__ */ (0, V.jsx)(B.Fragment, { ...t }), za = ({ verificationService: e }) => e.programTheme?.isTestMode ? /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
3595
3596
|
className: "sid-test-mode-flag sid-l-container sid-l-horz-center",
|
|
3596
3597
|
role: "note",
|
|
3597
|
-
children: ["Test Mode", /* @__PURE__ */ (0,
|
|
3598
|
+
children: ["Test Mode", /* @__PURE__ */ (0, V.jsx)(_e, {
|
|
3598
3599
|
className: "sid-test-mode-flag__link",
|
|
3599
3600
|
href: "https://developer.sheerid.com/getting-started#test-program",
|
|
3600
3601
|
"aria-label": "learn more about a sheerid test mode program",
|
|
3601
3602
|
children: "(learn more)"
|
|
3602
3603
|
})]
|
|
3603
|
-
}) : null, Ba = ({ verificationService: e, title: t, children: n, fallbackLogo: r, classNameIdentifier: i = void 0 }) => /* @__PURE__ */ (0,
|
|
3604
|
+
}) : null, Ba = ({ verificationService: e, title: t, children: n, fallbackLogo: r, classNameIdentifier: i = void 0 }) => /* @__PURE__ */ (0, V.jsxs)("header", {
|
|
3604
3605
|
className: "sid-header",
|
|
3605
3606
|
children: [
|
|
3606
|
-
/* @__PURE__ */ (0,
|
|
3607
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3607
3608
|
className: `sid-logo-container sid-l-horz-center ${i ? `sid-${i}-logo-container` : ""}`,
|
|
3608
|
-
children: /* @__PURE__ */ (0,
|
|
3609
|
+
children: /* @__PURE__ */ (0, V.jsx)(ut, {
|
|
3609
3610
|
verificationService: e,
|
|
3610
3611
|
fallbackLogo: r
|
|
3611
3612
|
})
|
|
3612
3613
|
}),
|
|
3613
|
-
/* @__PURE__ */ (0,
|
|
3614
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
3614
3615
|
className: `sid-header__title sid-l-horz-center ${i ? `sid-${i}-header` : ""}`,
|
|
3615
|
-
children: /* @__PURE__ */ (0,
|
|
3616
|
+
children: /* @__PURE__ */ (0, V.jsx)("h1", { children: t })
|
|
3616
3617
|
}),
|
|
3617
3618
|
n
|
|
3618
3619
|
]
|
|
@@ -3644,25 +3645,25 @@ function Ua(...e) {
|
|
|
3644
3645
|
};
|
|
3645
3646
|
}
|
|
3646
3647
|
function Wa(...e) {
|
|
3647
|
-
return
|
|
3648
|
+
return B.useCallback(Ua(...e), e);
|
|
3648
3649
|
}
|
|
3649
3650
|
//#endregion
|
|
3650
3651
|
//#region ../node_modules/@radix-ui/react-context/dist/index.mjs
|
|
3651
3652
|
function Ga(e, t = []) {
|
|
3652
3653
|
let n = [];
|
|
3653
3654
|
function r(t, r) {
|
|
3654
|
-
let i =
|
|
3655
|
+
let i = B.createContext(r), a = n.length;
|
|
3655
3656
|
n = [...n, r];
|
|
3656
3657
|
let o = (t) => {
|
|
3657
|
-
let { scope: n, children: r, ...o } = t, s = n?.[e]?.[a] || i, c =
|
|
3658
|
-
return /* @__PURE__ */ (0,
|
|
3658
|
+
let { scope: n, children: r, ...o } = t, s = n?.[e]?.[a] || i, c = B.useMemo(() => o, Object.values(o));
|
|
3659
|
+
return /* @__PURE__ */ (0, V.jsx)(s.Provider, {
|
|
3659
3660
|
value: c,
|
|
3660
3661
|
children: r
|
|
3661
3662
|
});
|
|
3662
3663
|
};
|
|
3663
3664
|
o.displayName = t + "Provider";
|
|
3664
3665
|
function s(n, o) {
|
|
3665
|
-
let s = o?.[e]?.[a] || i, c =
|
|
3666
|
+
let s = o?.[e]?.[a] || i, c = B.useContext(s);
|
|
3666
3667
|
if (c) return c;
|
|
3667
3668
|
if (r !== void 0) return r;
|
|
3668
3669
|
throw Error(`\`${n}\` must be used within \`${t}\``);
|
|
@@ -3670,10 +3671,10 @@ function Ga(e, t = []) {
|
|
|
3670
3671
|
return [o, s];
|
|
3671
3672
|
}
|
|
3672
3673
|
let i = () => {
|
|
3673
|
-
let t = n.map((e) =>
|
|
3674
|
+
let t = n.map((e) => B.createContext(e));
|
|
3674
3675
|
return function(n) {
|
|
3675
3676
|
let r = n?.[e] || t;
|
|
3676
|
-
return
|
|
3677
|
+
return B.useMemo(() => ({ [`__scope${e}`]: {
|
|
3677
3678
|
...n,
|
|
3678
3679
|
[e]: r
|
|
3679
3680
|
} }), [n, r]);
|
|
@@ -3697,7 +3698,7 @@ function Ka(...e) {
|
|
|
3697
3698
|
...i
|
|
3698
3699
|
};
|
|
3699
3700
|
}, {});
|
|
3700
|
-
return
|
|
3701
|
+
return B.useMemo(() => ({ [`__scope${t.scopeName}`]: r }), [r]);
|
|
3701
3702
|
};
|
|
3702
3703
|
};
|
|
3703
3704
|
return n.scopeName = t.scopeName, n;
|
|
@@ -3706,17 +3707,17 @@ function Ka(...e) {
|
|
|
3706
3707
|
//#region ../node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
3707
3708
|
// @__NO_SIDE_EFFECTS__
|
|
3708
3709
|
function qa(e) {
|
|
3709
|
-
let t = /* @__PURE__ */ Ja(e), n =
|
|
3710
|
-
let { children: r, ...i } = e, a =
|
|
3710
|
+
let t = /* @__PURE__ */ Ja(e), n = B.forwardRef((e, n) => {
|
|
3711
|
+
let { children: r, ...i } = e, a = B.Children.toArray(r), o = a.find(Xa);
|
|
3711
3712
|
if (o) {
|
|
3712
|
-
let e = o.props.children, r = a.map((t) => t === o ?
|
|
3713
|
-
return /* @__PURE__ */ (0,
|
|
3713
|
+
let e = o.props.children, r = a.map((t) => t === o ? B.Children.count(e) > 1 ? B.Children.only(null) : B.isValidElement(e) ? e.props.children : null : t);
|
|
3714
|
+
return /* @__PURE__ */ (0, V.jsx)(t, {
|
|
3714
3715
|
...i,
|
|
3715
3716
|
ref: n,
|
|
3716
|
-
children:
|
|
3717
|
+
children: B.isValidElement(e) ? B.cloneElement(e, void 0, r) : null
|
|
3717
3718
|
});
|
|
3718
3719
|
}
|
|
3719
|
-
return /* @__PURE__ */ (0,
|
|
3720
|
+
return /* @__PURE__ */ (0, V.jsx)(t, {
|
|
3720
3721
|
...i,
|
|
3721
3722
|
ref: n,
|
|
3722
3723
|
children: r
|
|
@@ -3726,19 +3727,19 @@ function qa(e) {
|
|
|
3726
3727
|
}
|
|
3727
3728
|
// @__NO_SIDE_EFFECTS__
|
|
3728
3729
|
function Ja(e) {
|
|
3729
|
-
let t =
|
|
3730
|
+
let t = B.forwardRef((e, t) => {
|
|
3730
3731
|
let { children: n, ...r } = e;
|
|
3731
|
-
if (
|
|
3732
|
+
if (B.isValidElement(n)) {
|
|
3732
3733
|
let e = Qa(n), i = Za(r, n.props);
|
|
3733
|
-
return n.type !==
|
|
3734
|
+
return n.type !== B.Fragment && (i.ref = t ? Ua(t, e) : e), B.cloneElement(n, i);
|
|
3734
3735
|
}
|
|
3735
|
-
return
|
|
3736
|
+
return B.Children.count(n) > 1 ? B.Children.only(null) : null;
|
|
3736
3737
|
});
|
|
3737
3738
|
return t.displayName = `${e}.SlotClone`, t;
|
|
3738
3739
|
}
|
|
3739
3740
|
var Ya = Symbol("radix.slottable");
|
|
3740
3741
|
function Xa(e) {
|
|
3741
|
-
return
|
|
3742
|
+
return B.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ya;
|
|
3742
3743
|
}
|
|
3743
3744
|
function Za(e, t) {
|
|
3744
3745
|
let n = { ...t };
|
|
@@ -3782,9 +3783,9 @@ var $a = [
|
|
|
3782
3783
|
"svg",
|
|
3783
3784
|
"ul"
|
|
3784
3785
|
].reduce((e, t) => {
|
|
3785
|
-
let n = /* @__PURE__ */ qa(`Primitive.${t}`), r =
|
|
3786
|
+
let n = /* @__PURE__ */ qa(`Primitive.${t}`), r = B.forwardRef((e, r) => {
|
|
3786
3787
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
3787
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ (0,
|
|
3788
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ (0, V.jsx)(o, {
|
|
3788
3789
|
...a,
|
|
3789
3790
|
ref: r
|
|
3790
3791
|
});
|
|
@@ -3800,16 +3801,16 @@ function eo(e, t) {
|
|
|
3800
3801
|
//#endregion
|
|
3801
3802
|
//#region ../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
3802
3803
|
function to(e) {
|
|
3803
|
-
let t =
|
|
3804
|
-
return
|
|
3804
|
+
let t = B.useRef(e);
|
|
3805
|
+
return B.useEffect(() => {
|
|
3805
3806
|
t.current = e;
|
|
3806
|
-
}),
|
|
3807
|
+
}), B.useMemo(() => (...e) => t.current?.(...e), []);
|
|
3807
3808
|
}
|
|
3808
3809
|
//#endregion
|
|
3809
3810
|
//#region ../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
3810
3811
|
function no(e, t = globalThis?.document) {
|
|
3811
3812
|
let n = to(e);
|
|
3812
|
-
|
|
3813
|
+
B.useEffect(() => {
|
|
3813
3814
|
let e = (e) => {
|
|
3814
3815
|
e.key === "Escape" && n(e);
|
|
3815
3816
|
};
|
|
@@ -3818,12 +3819,12 @@ function no(e, t = globalThis?.document) {
|
|
|
3818
3819
|
}
|
|
3819
3820
|
//#endregion
|
|
3820
3821
|
//#region ../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
3821
|
-
var ro = "DismissableLayer", io = "dismissableLayer.update", ao = "dismissableLayer.pointerDownOutside", oo = "dismissableLayer.focusOutside", so, co =
|
|
3822
|
+
var ro = "DismissableLayer", io = "dismissableLayer.update", ao = "dismissableLayer.pointerDownOutside", oo = "dismissableLayer.focusOutside", so, co = B.createContext({
|
|
3822
3823
|
layers: /* @__PURE__ */ new Set(),
|
|
3823
3824
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3824
3825
|
branches: /* @__PURE__ */ new Set()
|
|
3825
|
-
}), lo =
|
|
3826
|
-
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l =
|
|
3826
|
+
}), lo = B.forwardRef((e, t) => {
|
|
3827
|
+
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l = B.useContext(co), [u, d] = B.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, p] = B.useState({}), m = Wa(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 = po((e) => {
|
|
3827
3828
|
let t = e.target, n = [...l.branches].some((e) => e.contains(t));
|
|
3828
3829
|
!b || n || (i?.(e), o?.(e), e.defaultPrevented || s?.());
|
|
3829
3830
|
}, f), S = mo((e) => {
|
|
@@ -3832,7 +3833,7 @@ var ro = "DismissableLayer", io = "dismissableLayer.update", ao = "dismissableLa
|
|
|
3832
3833
|
}, f);
|
|
3833
3834
|
return no((e) => {
|
|
3834
3835
|
v === l.layers.size - 1 && (r?.(e), !e.defaultPrevented && s && (e.preventDefault(), s()));
|
|
3835
|
-
}, f),
|
|
3836
|
+
}, f), B.useEffect(() => {
|
|
3836
3837
|
if (u) return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (so = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), ho(), () => {
|
|
3837
3838
|
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = so);
|
|
3838
3839
|
};
|
|
@@ -3841,12 +3842,12 @@ var ro = "DismissableLayer", io = "dismissableLayer.update", ao = "dismissableLa
|
|
|
3841
3842
|
f,
|
|
3842
3843
|
n,
|
|
3843
3844
|
l
|
|
3844
|
-
]),
|
|
3845
|
+
]), B.useEffect(() => () => {
|
|
3845
3846
|
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), ho());
|
|
3846
|
-
}, [u, l]),
|
|
3847
|
+
}, [u, l]), B.useEffect(() => {
|
|
3847
3848
|
let e = () => p({});
|
|
3848
3849
|
return document.addEventListener(io, e), () => document.removeEventListener(io, e);
|
|
3849
|
-
}, []), /* @__PURE__ */ (0,
|
|
3850
|
+
}, []), /* @__PURE__ */ (0, V.jsx)($a.div, {
|
|
3850
3851
|
...c,
|
|
3851
3852
|
ref: m,
|
|
3852
3853
|
style: {
|
|
@@ -3859,22 +3860,22 @@ var ro = "DismissableLayer", io = "dismissableLayer.update", ao = "dismissableLa
|
|
|
3859
3860
|
});
|
|
3860
3861
|
});
|
|
3861
3862
|
lo.displayName = ro;
|
|
3862
|
-
var uo = "DismissableLayerBranch", fo =
|
|
3863
|
-
let n =
|
|
3864
|
-
return
|
|
3863
|
+
var uo = "DismissableLayerBranch", fo = B.forwardRef((e, t) => {
|
|
3864
|
+
let n = B.useContext(co), r = B.useRef(null), i = Wa(t, r);
|
|
3865
|
+
return B.useEffect(() => {
|
|
3865
3866
|
let e = r.current;
|
|
3866
3867
|
if (e) return n.branches.add(e), () => {
|
|
3867
3868
|
n.branches.delete(e);
|
|
3868
3869
|
};
|
|
3869
|
-
}, [n.branches]), /* @__PURE__ */ (0,
|
|
3870
|
+
}, [n.branches]), /* @__PURE__ */ (0, V.jsx)($a.div, {
|
|
3870
3871
|
...e,
|
|
3871
3872
|
ref: i
|
|
3872
3873
|
});
|
|
3873
3874
|
});
|
|
3874
3875
|
fo.displayName = uo;
|
|
3875
3876
|
function po(e, t = globalThis?.document) {
|
|
3876
|
-
let n = to(e), r =
|
|
3877
|
-
return
|
|
3877
|
+
let n = to(e), r = B.useRef(!1), i = B.useRef(() => {});
|
|
3878
|
+
return B.useEffect(() => {
|
|
3878
3879
|
let e = (e) => {
|
|
3879
3880
|
if (e.target && !r.current) {
|
|
3880
3881
|
let r = function() {
|
|
@@ -3892,8 +3893,8 @@ function po(e, t = globalThis?.document) {
|
|
|
3892
3893
|
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
3893
3894
|
}
|
|
3894
3895
|
function mo(e, t = globalThis?.document) {
|
|
3895
|
-
let n = to(e), r =
|
|
3896
|
-
return
|
|
3896
|
+
let n = to(e), r = B.useRef(!1);
|
|
3897
|
+
return B.useEffect(() => {
|
|
3897
3898
|
let e = (e) => {
|
|
3898
3899
|
e.target && !r.current && go(oo, n, { originalEvent: e }, { discrete: !1 });
|
|
3899
3900
|
};
|
|
@@ -3919,7 +3920,7 @@ function go(e, t, n, { discrete: r }) {
|
|
|
3919
3920
|
//#region ../node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
3920
3921
|
var _o = 0;
|
|
3921
3922
|
function vo() {
|
|
3922
|
-
|
|
3923
|
+
B.useEffect(() => {
|
|
3923
3924
|
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
3924
3925
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? yo()), document.body.insertAdjacentElement("beforeend", e[1] ?? yo()), _o++, () => {
|
|
3925
3926
|
_o === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), _o--;
|
|
@@ -3935,8 +3936,8 @@ function yo() {
|
|
|
3935
3936
|
var bo = "focusScope.autoFocusOnMount", xo = "focusScope.autoFocusOnUnmount", So = {
|
|
3936
3937
|
bubbles: !1,
|
|
3937
3938
|
cancelable: !0
|
|
3938
|
-
}, Co = "FocusScope", wo =
|
|
3939
|
-
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...o } = e, [s, c] =
|
|
3939
|
+
}, Co = "FocusScope", wo = B.forwardRef((e, t) => {
|
|
3940
|
+
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...o } = e, [s, c] = B.useState(null), l = to(i), u = to(a), d = B.useRef(null), f = Wa(t, (e) => c(e)), p = B.useRef({
|
|
3940
3941
|
paused: !1,
|
|
3941
3942
|
pause() {
|
|
3942
3943
|
this.paused = !0;
|
|
@@ -3945,7 +3946,7 @@ var bo = "focusScope.autoFocusOnMount", xo = "focusScope.autoFocusOnUnmount", So
|
|
|
3945
3946
|
this.paused = !1;
|
|
3946
3947
|
}
|
|
3947
3948
|
}).current;
|
|
3948
|
-
|
|
3949
|
+
B.useEffect(() => {
|
|
3949
3950
|
if (r) {
|
|
3950
3951
|
let e = function(e) {
|
|
3951
3952
|
if (p.paused || !s) return;
|
|
@@ -3971,7 +3972,7 @@ var bo = "focusScope.autoFocusOnMount", xo = "focusScope.autoFocusOnUnmount", So
|
|
|
3971
3972
|
r,
|
|
3972
3973
|
s,
|
|
3973
3974
|
p.paused
|
|
3974
|
-
]),
|
|
3975
|
+
]), B.useEffect(() => {
|
|
3975
3976
|
if (s) {
|
|
3976
3977
|
Mo.add(p);
|
|
3977
3978
|
let e = document.activeElement;
|
|
@@ -3992,7 +3993,7 @@ var bo = "focusScope.autoFocusOnMount", xo = "focusScope.autoFocusOnUnmount", So
|
|
|
3992
3993
|
u,
|
|
3993
3994
|
p
|
|
3994
3995
|
]);
|
|
3995
|
-
let m =
|
|
3996
|
+
let m = B.useCallback((e) => {
|
|
3996
3997
|
if (!n && !r || p.paused) return;
|
|
3997
3998
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, i = document.activeElement;
|
|
3998
3999
|
if (t && i) {
|
|
@@ -4004,7 +4005,7 @@ var bo = "focusScope.autoFocusOnMount", xo = "focusScope.autoFocusOnUnmount", So
|
|
|
4004
4005
|
r,
|
|
4005
4006
|
p.paused
|
|
4006
4007
|
]);
|
|
4007
|
-
return /* @__PURE__ */ (0,
|
|
4008
|
+
return /* @__PURE__ */ (0, V.jsx)($a.div, {
|
|
4008
4009
|
tabIndex: -1,
|
|
4009
4010
|
...o,
|
|
4010
4011
|
ref: f,
|
|
@@ -4071,9 +4072,9 @@ function Fo(e) {
|
|
|
4071
4072
|
}
|
|
4072
4073
|
//#endregion
|
|
4073
4074
|
//#region ../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
4074
|
-
var Io = globalThis?.document ?
|
|
4075
|
+
var Io = globalThis?.document ? B.useLayoutEffect : () => {}, Lo = B.useId || (() => void 0), Ro = 0;
|
|
4075
4076
|
function zo(e) {
|
|
4076
|
-
let [t, n] =
|
|
4077
|
+
let [t, n] = B.useState(Lo());
|
|
4077
4078
|
return Io(() => {
|
|
4078
4079
|
e || n((e) => e ?? String(Ro++));
|
|
4079
4080
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
@@ -4085,7 +4086,7 @@ var Bo = [
|
|
|
4085
4086
|
"right",
|
|
4086
4087
|
"bottom",
|
|
4087
4088
|
"left"
|
|
4088
|
-
], Vo = Math.min,
|
|
4089
|
+
], Vo = Math.min, Z = Math.max, Ho = Math.round, Uo = Math.floor, Wo = (e) => ({
|
|
4089
4090
|
x: e,
|
|
4090
4091
|
y: e
|
|
4091
4092
|
}), Go = {
|
|
@@ -4095,7 +4096,7 @@ var Bo = [
|
|
|
4095
4096
|
top: "bottom"
|
|
4096
4097
|
};
|
|
4097
4098
|
function Ko(e, t, n) {
|
|
4098
|
-
return
|
|
4099
|
+
return Z(e, Vo(t, n));
|
|
4099
4100
|
}
|
|
4100
4101
|
function qo(e, t) {
|
|
4101
4102
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -4527,8 +4528,8 @@ var ws = function(e) {
|
|
|
4527
4528
|
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");
|
|
4528
4529
|
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = Vo(h - u[g], v), x = Vo(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
4529
4530
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
4530
|
-
let e =
|
|
4531
|
-
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t :
|
|
4531
|
+
let e = Z(u.left, 0), t = Z(u.right, 0), n = Z(u.top, 0), r = Z(u.bottom, 0);
|
|
4532
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : Z(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : Z(u.top, u.bottom));
|
|
4532
4533
|
}
|
|
4533
4534
|
await c({
|
|
4534
4535
|
...t,
|
|
@@ -4548,7 +4549,7 @@ function Os() {
|
|
|
4548
4549
|
function ks(e) {
|
|
4549
4550
|
return js(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
4550
4551
|
}
|
|
4551
|
-
function
|
|
4552
|
+
function Q(e) {
|
|
4552
4553
|
var t;
|
|
4553
4554
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
4554
4555
|
}
|
|
@@ -4556,19 +4557,19 @@ function As(e) {
|
|
|
4556
4557
|
return ((js(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
4557
4558
|
}
|
|
4558
4559
|
function js(e) {
|
|
4559
|
-
return Os() ? e instanceof Node || e instanceof
|
|
4560
|
+
return Os() ? e instanceof Node || e instanceof Q(e).Node : !1;
|
|
4560
4561
|
}
|
|
4561
|
-
function
|
|
4562
|
-
return Os() ? e instanceof Element || e instanceof
|
|
4562
|
+
function $(e) {
|
|
4563
|
+
return Os() ? e instanceof Element || e instanceof Q(e).Element : !1;
|
|
4563
4564
|
}
|
|
4564
4565
|
function Ms(e) {
|
|
4565
|
-
return Os() ? e instanceof HTMLElement || e instanceof
|
|
4566
|
+
return Os() ? e instanceof HTMLElement || e instanceof Q(e).HTMLElement : !1;
|
|
4566
4567
|
}
|
|
4567
4568
|
function Ns(e) {
|
|
4568
|
-
return !Os() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
4569
|
+
return !Os() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Q(e).ShadowRoot;
|
|
4569
4570
|
}
|
|
4570
4571
|
function Ps(e) {
|
|
4571
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } =
|
|
4572
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = Gs(e);
|
|
4572
4573
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
4573
4574
|
}
|
|
4574
4575
|
function Fs(e) {
|
|
@@ -4586,15 +4587,15 @@ function Is(e) {
|
|
|
4586
4587
|
}
|
|
4587
4588
|
var Ls = /transform|translate|scale|rotate|perspective|filter/, Rs = /paint|layout|strict|content/, zs = (e) => !!e && e !== "none", Bs;
|
|
4588
4589
|
function Vs(e) {
|
|
4589
|
-
let t =
|
|
4590
|
+
let t = $(e) ? Gs(e) : e;
|
|
4590
4591
|
return zs(t.transform) || zs(t.translate) || zs(t.scale) || zs(t.rotate) || zs(t.perspective) || !Us() && (zs(t.backdropFilter) || zs(t.filter)) || Ls.test(t.willChange || "") || Rs.test(t.contain || "");
|
|
4591
4592
|
}
|
|
4592
4593
|
function Hs(e) {
|
|
4593
|
-
let t =
|
|
4594
|
+
let t = qs(e);
|
|
4594
4595
|
for (; Ms(t) && !Ws(t);) {
|
|
4595
4596
|
if (Vs(t)) return t;
|
|
4596
4597
|
if (Is(t)) return null;
|
|
4597
|
-
t =
|
|
4598
|
+
t = qs(t);
|
|
4598
4599
|
}
|
|
4599
4600
|
return null;
|
|
4600
4601
|
}
|
|
@@ -4604,11 +4605,11 @@ function Us() {
|
|
|
4604
4605
|
function Ws(e) {
|
|
4605
4606
|
return /^(html|body|#document)$/.test(ks(e));
|
|
4606
4607
|
}
|
|
4607
|
-
function $(e) {
|
|
4608
|
-
return Z(e).getComputedStyle(e);
|
|
4609
|
-
}
|
|
4610
4608
|
function Gs(e) {
|
|
4611
|
-
return Q(e)
|
|
4609
|
+
return Q(e).getComputedStyle(e);
|
|
4610
|
+
}
|
|
4611
|
+
function Ks(e) {
|
|
4612
|
+
return $(e) ? {
|
|
4612
4613
|
scrollLeft: e.scrollLeft,
|
|
4613
4614
|
scrollTop: e.scrollTop
|
|
4614
4615
|
} : {
|
|
@@ -4616,69 +4617,69 @@ function Gs(e) {
|
|
|
4616
4617
|
scrollTop: e.scrollY
|
|
4617
4618
|
};
|
|
4618
4619
|
}
|
|
4619
|
-
function
|
|
4620
|
+
function qs(e) {
|
|
4620
4621
|
if (ks(e) === "html") return e;
|
|
4621
4622
|
let t = e.assignedSlot || e.parentNode || Ns(e) && e.host || As(e);
|
|
4622
4623
|
return Ns(t) ? t.host : t;
|
|
4623
4624
|
}
|
|
4624
|
-
function
|
|
4625
|
-
let t =
|
|
4626
|
-
return Ws(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ms(t) && Ps(t) ? t :
|
|
4625
|
+
function Js(e) {
|
|
4626
|
+
let t = qs(e);
|
|
4627
|
+
return Ws(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ms(t) && Ps(t) ? t : Js(t);
|
|
4627
4628
|
}
|
|
4628
|
-
function
|
|
4629
|
+
function Ys(e, t, n) {
|
|
4629
4630
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
4630
|
-
let r =
|
|
4631
|
+
let r = Js(e), i = r === e.ownerDocument?.body, a = Q(r);
|
|
4631
4632
|
if (i) {
|
|
4632
|
-
let e =
|
|
4633
|
-
return t.concat(a, a.visualViewport || [], Ps(r) ? r : [], e && n ?
|
|
4634
|
-
} else return t.concat(r,
|
|
4633
|
+
let e = Xs(a);
|
|
4634
|
+
return t.concat(a, a.visualViewport || [], Ps(r) ? r : [], e && n ? Ys(e) : []);
|
|
4635
|
+
} else return t.concat(r, Ys(r, [], n));
|
|
4635
4636
|
}
|
|
4636
|
-
function
|
|
4637
|
+
function Xs(e) {
|
|
4637
4638
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
4638
4639
|
}
|
|
4639
4640
|
//#endregion
|
|
4640
4641
|
//#region ../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
4641
|
-
function
|
|
4642
|
-
let t =
|
|
4642
|
+
function Zs(e) {
|
|
4643
|
+
let t = Gs(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Ms(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Ho(n) !== a || Ho(r) !== o;
|
|
4643
4644
|
return s && (n = a, r = o), {
|
|
4644
4645
|
width: n,
|
|
4645
4646
|
height: r,
|
|
4646
4647
|
$: s
|
|
4647
4648
|
};
|
|
4648
4649
|
}
|
|
4649
|
-
function Zs(e) {
|
|
4650
|
-
return Q(e) ? e : e.contextElement;
|
|
4651
|
-
}
|
|
4652
4650
|
function Qs(e) {
|
|
4653
|
-
|
|
4651
|
+
return $(e) ? e : e.contextElement;
|
|
4652
|
+
}
|
|
4653
|
+
function $s(e) {
|
|
4654
|
+
let t = Qs(e);
|
|
4654
4655
|
if (!Ms(t)) return Wo(1);
|
|
4655
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
4656
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Zs(t), o = (a ? Ho(n.width) : n.width) / r, s = (a ? Ho(n.height) : n.height) / i;
|
|
4656
4657
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
4657
4658
|
x: o,
|
|
4658
4659
|
y: s
|
|
4659
4660
|
};
|
|
4660
4661
|
}
|
|
4661
|
-
var
|
|
4662
|
-
function
|
|
4663
|
-
let t =
|
|
4664
|
-
return !Us() || !t.visualViewport ?
|
|
4662
|
+
var ec = /*#__PURE__*/ Wo(0);
|
|
4663
|
+
function tc(e) {
|
|
4664
|
+
let t = Q(e);
|
|
4665
|
+
return !Us() || !t.visualViewport ? ec : {
|
|
4665
4666
|
x: t.visualViewport.offsetLeft,
|
|
4666
4667
|
y: t.visualViewport.offsetTop
|
|
4667
4668
|
};
|
|
4668
4669
|
}
|
|
4669
|
-
function
|
|
4670
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
4670
|
+
function nc(e, t, n) {
|
|
4671
|
+
return t === void 0 && (t = !1), !n || t && n !== Q(e) ? !1 : t;
|
|
4671
4672
|
}
|
|
4672
|
-
function
|
|
4673
|
+
function rc(e, t, n, r) {
|
|
4673
4674
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4674
|
-
let i = e.getBoundingClientRect(), a =
|
|
4675
|
-
t && (r ?
|
|
4676
|
-
let s =
|
|
4675
|
+
let i = e.getBoundingClientRect(), a = Qs(e), o = Wo(1);
|
|
4676
|
+
t && (r ? $(r) && (o = $s(r)) : o = $s(e));
|
|
4677
|
+
let s = nc(a, n, r) ? tc(a) : Wo(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;
|
|
4677
4678
|
if (a) {
|
|
4678
|
-
let e =
|
|
4679
|
+
let e = Q(a), t = r && $(r) ? Q(r) : r, n = e, i = Xs(n);
|
|
4679
4680
|
for (; i && r && t !== n;) {
|
|
4680
|
-
let e =
|
|
4681
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
4681
|
+
let e = $s(i), t = i.getBoundingClientRect(), r = Gs(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
4682
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Q(i), i = Xs(n);
|
|
4682
4683
|
}
|
|
4683
4684
|
}
|
|
4684
4685
|
return fs({
|
|
@@ -4688,29 +4689,29 @@ function nc(e, t, n, r) {
|
|
|
4688
4689
|
y: l
|
|
4689
4690
|
});
|
|
4690
4691
|
}
|
|
4691
|
-
function rc(e, t) {
|
|
4692
|
-
let n = Gs(e).scrollLeft;
|
|
4693
|
-
return t ? t.left + n : nc(As(e)).left + n;
|
|
4694
|
-
}
|
|
4695
4692
|
function ic(e, t) {
|
|
4693
|
+
let n = Ks(e).scrollLeft;
|
|
4694
|
+
return t ? t.left + n : rc(As(e)).left + n;
|
|
4695
|
+
}
|
|
4696
|
+
function ac(e, t) {
|
|
4696
4697
|
let n = e.getBoundingClientRect();
|
|
4697
4698
|
return {
|
|
4698
|
-
x: n.left + t.scrollLeft -
|
|
4699
|
+
x: n.left + t.scrollLeft - ic(e, n),
|
|
4699
4700
|
y: n.top + t.scrollTop
|
|
4700
4701
|
};
|
|
4701
4702
|
}
|
|
4702
|
-
function
|
|
4703
|
+
function oc(e) {
|
|
4703
4704
|
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = As(r), s = t ? Is(t.floating) : !1;
|
|
4704
4705
|
if (r === o || s && a) return n;
|
|
4705
4706
|
let c = {
|
|
4706
4707
|
scrollLeft: 0,
|
|
4707
4708
|
scrollTop: 0
|
|
4708
4709
|
}, l = Wo(1), u = Wo(0), d = Ms(r);
|
|
4709
|
-
if ((d || !d && !a) && ((ks(r) !== "body" || Ps(o)) && (c =
|
|
4710
|
-
let e =
|
|
4711
|
-
l =
|
|
4710
|
+
if ((d || !d && !a) && ((ks(r) !== "body" || Ps(o)) && (c = Ks(r)), d)) {
|
|
4711
|
+
let e = rc(r);
|
|
4712
|
+
l = $s(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
4712
4713
|
}
|
|
4713
|
-
let f = o && !d && !a ?
|
|
4714
|
+
let f = o && !d && !a ? ac(o, c) : Wo(0);
|
|
4714
4715
|
return {
|
|
4715
4716
|
width: n.width * l.x,
|
|
4716
4717
|
height: n.height * l.y,
|
|
@@ -4718,31 +4719,31 @@ function ac(e) {
|
|
|
4718
4719
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
4719
4720
|
};
|
|
4720
4721
|
}
|
|
4721
|
-
function
|
|
4722
|
+
function sc(e) {
|
|
4722
4723
|
return Array.from(e.getClientRects());
|
|
4723
4724
|
}
|
|
4724
|
-
function
|
|
4725
|
-
let t = As(e), n =
|
|
4726
|
-
return
|
|
4725
|
+
function cc(e) {
|
|
4726
|
+
let t = As(e), n = Ks(e), r = e.ownerDocument.body, i = Z(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Z(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ic(e), s = -n.scrollTop;
|
|
4727
|
+
return Gs(r).direction === "rtl" && (o += Z(t.clientWidth, r.clientWidth) - i), {
|
|
4727
4728
|
width: i,
|
|
4728
4729
|
height: a,
|
|
4729
4730
|
x: o,
|
|
4730
4731
|
y: s
|
|
4731
4732
|
};
|
|
4732
4733
|
}
|
|
4733
|
-
var
|
|
4734
|
-
function
|
|
4735
|
-
let n =
|
|
4734
|
+
var lc = 25;
|
|
4735
|
+
function uc(e, t) {
|
|
4736
|
+
let n = Q(e), r = As(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
4736
4737
|
if (i) {
|
|
4737
4738
|
a = i.width, o = i.height;
|
|
4738
4739
|
let e = Us();
|
|
4739
4740
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
4740
4741
|
}
|
|
4741
|
-
let l =
|
|
4742
|
+
let l = ic(r);
|
|
4742
4743
|
if (l <= 0) {
|
|
4743
4744
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
4744
|
-
o <=
|
|
4745
|
-
} else l <=
|
|
4745
|
+
o <= lc && (a -= o);
|
|
4746
|
+
} else l <= lc && (a += l);
|
|
4746
4747
|
return {
|
|
4747
4748
|
width: a,
|
|
4748
4749
|
height: o,
|
|
@@ -4750,8 +4751,8 @@ function lc(e, t) {
|
|
|
4750
4751
|
y: c
|
|
4751
4752
|
};
|
|
4752
4753
|
}
|
|
4753
|
-
function
|
|
4754
|
-
let n =
|
|
4754
|
+
function dc(e, t) {
|
|
4755
|
+
let n = rc(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Ms(e) ? $s(e) : Wo(1);
|
|
4755
4756
|
return {
|
|
4756
4757
|
width: e.clientWidth * a.x,
|
|
4757
4758
|
height: e.clientHeight * a.y,
|
|
@@ -4759,13 +4760,13 @@ function uc(e, t) {
|
|
|
4759
4760
|
y: r * a.y
|
|
4760
4761
|
};
|
|
4761
4762
|
}
|
|
4762
|
-
function
|
|
4763
|
+
function fc(e, t, n) {
|
|
4763
4764
|
let r;
|
|
4764
|
-
if (t === "viewport") r =
|
|
4765
|
-
else if (t === "document") r =
|
|
4766
|
-
else if (
|
|
4765
|
+
if (t === "viewport") r = uc(e, n);
|
|
4766
|
+
else if (t === "document") r = cc(As(e));
|
|
4767
|
+
else if ($(t)) r = dc(t, n);
|
|
4767
4768
|
else {
|
|
4768
|
-
let n =
|
|
4769
|
+
let n = tc(e);
|
|
4769
4770
|
r = {
|
|
4770
4771
|
x: t.x - n.x,
|
|
4771
4772
|
y: t.y - n.y,
|
|
@@ -4775,25 +4776,25 @@ function dc(e, t, n) {
|
|
|
4775
4776
|
}
|
|
4776
4777
|
return fs(r);
|
|
4777
4778
|
}
|
|
4778
|
-
function fc(e, t) {
|
|
4779
|
-
let n = Ks(e);
|
|
4780
|
-
return n === t || !Q(n) || Ws(n) ? !1 : $(n).position === "fixed" || fc(n, t);
|
|
4781
|
-
}
|
|
4782
4779
|
function pc(e, t) {
|
|
4780
|
+
let n = qs(e);
|
|
4781
|
+
return n === t || !$(n) || Ws(n) ? !1 : Gs(n).position === "fixed" || pc(n, t);
|
|
4782
|
+
}
|
|
4783
|
+
function mc(e, t) {
|
|
4783
4784
|
let n = t.get(e);
|
|
4784
4785
|
if (n) return n;
|
|
4785
|
-
let r =
|
|
4786
|
-
for (;
|
|
4787
|
-
let t =
|
|
4788
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Ps(o) && !n &&
|
|
4786
|
+
let r = Ys(e, [], !1).filter((e) => $(e) && ks(e) !== "body"), i = null, a = Gs(e).position === "fixed", o = a ? qs(e) : e;
|
|
4787
|
+
for (; $(o) && !Ws(o);) {
|
|
4788
|
+
let t = Gs(o), n = Vs(o);
|
|
4789
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Ps(o) && !n && pc(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = qs(o);
|
|
4789
4790
|
}
|
|
4790
4791
|
return t.set(e, r), r;
|
|
4791
4792
|
}
|
|
4792
|
-
function
|
|
4793
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Is(t) ? [] :
|
|
4793
|
+
function hc(e) {
|
|
4794
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Is(t) ? [] : mc(t, this._c) : [].concat(n), r], o = fc(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
4794
4795
|
for (let e = 1; e < a.length; e++) {
|
|
4795
|
-
let n =
|
|
4796
|
-
s =
|
|
4796
|
+
let n = fc(t, a[e], i);
|
|
4797
|
+
s = Z(n.top, s), c = Vo(n.right, c), l = Vo(n.bottom, l), u = Z(n.left, u);
|
|
4797
4798
|
}
|
|
4798
4799
|
return {
|
|
4799
4800
|
width: c - u,
|
|
@@ -4802,27 +4803,27 @@ function mc(e) {
|
|
|
4802
4803
|
y: s
|
|
4803
4804
|
};
|
|
4804
4805
|
}
|
|
4805
|
-
function
|
|
4806
|
-
let { width: t, height: n } =
|
|
4806
|
+
function gc(e) {
|
|
4807
|
+
let { width: t, height: n } = Zs(e);
|
|
4807
4808
|
return {
|
|
4808
4809
|
width: t,
|
|
4809
4810
|
height: n
|
|
4810
4811
|
};
|
|
4811
4812
|
}
|
|
4812
|
-
function
|
|
4813
|
-
let r = Ms(t), i = As(t), a = n === "fixed", o =
|
|
4813
|
+
function _c(e, t, n) {
|
|
4814
|
+
let r = Ms(t), i = As(t), a = n === "fixed", o = rc(e, !0, a, t), s = {
|
|
4814
4815
|
scrollLeft: 0,
|
|
4815
4816
|
scrollTop: 0
|
|
4816
4817
|
}, c = Wo(0);
|
|
4817
4818
|
function l() {
|
|
4818
|
-
c.x =
|
|
4819
|
+
c.x = ic(i);
|
|
4819
4820
|
}
|
|
4820
|
-
if (r || !r && !a) if ((ks(t) !== "body" || Ps(i)) && (s =
|
|
4821
|
-
let e =
|
|
4821
|
+
if (r || !r && !a) if ((ks(t) !== "body" || Ps(i)) && (s = Ks(t)), r) {
|
|
4822
|
+
let e = rc(t, !0, a, t);
|
|
4822
4823
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
4823
4824
|
} else i && l();
|
|
4824
4825
|
a && !r && i && l();
|
|
4825
|
-
let u = i && !r && !a ?
|
|
4826
|
+
let u = i && !r && !a ? ac(i, s) : Wo(0);
|
|
4826
4827
|
return {
|
|
4827
4828
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
4828
4829
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -4830,34 +4831,34 @@ function gc(e, t, n) {
|
|
|
4830
4831
|
height: o.height
|
|
4831
4832
|
};
|
|
4832
4833
|
}
|
|
4833
|
-
function
|
|
4834
|
-
return
|
|
4834
|
+
function vc(e) {
|
|
4835
|
+
return Gs(e).position === "static";
|
|
4835
4836
|
}
|
|
4836
|
-
function
|
|
4837
|
-
if (!Ms(e) ||
|
|
4837
|
+
function yc(e, t) {
|
|
4838
|
+
if (!Ms(e) || Gs(e).position === "fixed") return null;
|
|
4838
4839
|
if (t) return t(e);
|
|
4839
4840
|
let n = e.offsetParent;
|
|
4840
4841
|
return As(e) === n && (n = n.ownerDocument.body), n;
|
|
4841
4842
|
}
|
|
4842
|
-
function
|
|
4843
|
-
let n =
|
|
4843
|
+
function bc(e, t) {
|
|
4844
|
+
let n = Q(e);
|
|
4844
4845
|
if (Is(e)) return n;
|
|
4845
4846
|
if (!Ms(e)) {
|
|
4846
|
-
let t =
|
|
4847
|
+
let t = qs(e);
|
|
4847
4848
|
for (; t && !Ws(t);) {
|
|
4848
|
-
if (
|
|
4849
|
-
t =
|
|
4849
|
+
if ($(t) && !vc(t)) return t;
|
|
4850
|
+
t = qs(t);
|
|
4850
4851
|
}
|
|
4851
4852
|
return n;
|
|
4852
4853
|
}
|
|
4853
|
-
let r =
|
|
4854
|
-
for (; r && Fs(r) &&
|
|
4855
|
-
return r && Ws(r) &&
|
|
4854
|
+
let r = yc(e, t);
|
|
4855
|
+
for (; r && Fs(r) && vc(r);) r = yc(r, t);
|
|
4856
|
+
return r && Ws(r) && vc(r) && !Vs(r) ? n : r || Hs(e) || n;
|
|
4856
4857
|
}
|
|
4857
|
-
var
|
|
4858
|
-
let t = this.getOffsetParent ||
|
|
4858
|
+
var xc = async function(e) {
|
|
4859
|
+
let t = this.getOffsetParent || bc, n = this.getDimensions, r = await n(e.floating);
|
|
4859
4860
|
return {
|
|
4860
|
-
reference:
|
|
4861
|
+
reference: _c(e.reference, await t(e.floating), e.strategy),
|
|
4861
4862
|
floating: {
|
|
4862
4863
|
x: 0,
|
|
4863
4864
|
y: 0,
|
|
@@ -4866,25 +4867,25 @@ var bc = async function(e) {
|
|
|
4866
4867
|
}
|
|
4867
4868
|
};
|
|
4868
4869
|
};
|
|
4869
|
-
function
|
|
4870
|
-
return
|
|
4870
|
+
function Sc(e) {
|
|
4871
|
+
return Gs(e).direction === "rtl";
|
|
4871
4872
|
}
|
|
4872
|
-
var
|
|
4873
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
4873
|
+
var Cc = {
|
|
4874
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: oc,
|
|
4874
4875
|
getDocumentElement: As,
|
|
4875
|
-
getClippingRect:
|
|
4876
|
-
getOffsetParent:
|
|
4877
|
-
getElementRects:
|
|
4878
|
-
getClientRects:
|
|
4879
|
-
getDimensions:
|
|
4880
|
-
getScale:
|
|
4881
|
-
isElement:
|
|
4882
|
-
isRTL:
|
|
4876
|
+
getClippingRect: hc,
|
|
4877
|
+
getOffsetParent: bc,
|
|
4878
|
+
getElementRects: xc,
|
|
4879
|
+
getClientRects: sc,
|
|
4880
|
+
getDimensions: gc,
|
|
4881
|
+
getScale: $s,
|
|
4882
|
+
isElement: $,
|
|
4883
|
+
isRTL: Sc
|
|
4883
4884
|
};
|
|
4884
|
-
function
|
|
4885
|
+
function wc(e, t) {
|
|
4885
4886
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
4886
4887
|
}
|
|
4887
|
-
function
|
|
4888
|
+
function Tc(e, t) {
|
|
4888
4889
|
let n = null, r, i = As(e);
|
|
4889
4890
|
function a() {
|
|
4890
4891
|
var e;
|
|
@@ -4896,7 +4897,7 @@ function wc(e, t) {
|
|
|
4896
4897
|
if (s || t(), !f || !p) return;
|
|
4897
4898
|
let m = Uo(d), h = Uo(i.clientWidth - (u + f)), g = Uo(i.clientHeight - (d + p)), _ = Uo(u), v = {
|
|
4898
4899
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
4899
|
-
threshold:
|
|
4900
|
+
threshold: Z(0, Vo(1, c)) || 1
|
|
4900
4901
|
}, y = !0;
|
|
4901
4902
|
function b(t) {
|
|
4902
4903
|
let n = t[0].intersectionRatio;
|
|
@@ -4906,7 +4907,7 @@ function wc(e, t) {
|
|
|
4906
4907
|
o(!1, 1e-7);
|
|
4907
4908
|
}, 1e3);
|
|
4908
4909
|
}
|
|
4909
|
-
n === 1 && !
|
|
4910
|
+
n === 1 && !wc(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
4910
4911
|
}
|
|
4911
4912
|
try {
|
|
4912
4913
|
n = new IntersectionObserver(b, {
|
|
@@ -4920,13 +4921,13 @@ function wc(e, t) {
|
|
|
4920
4921
|
}
|
|
4921
4922
|
return o(!0), a;
|
|
4922
4923
|
}
|
|
4923
|
-
function
|
|
4924
|
+
function Ec(e, t, n, r) {
|
|
4924
4925
|
r === void 0 && (r = {});
|
|
4925
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
4926
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Qs(e), u = i || a ? [...l ? Ys(l) : [], ...t ? Ys(t) : []] : [];
|
|
4926
4927
|
u.forEach((e) => {
|
|
4927
4928
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
4928
4929
|
});
|
|
4929
|
-
let d = l && s ?
|
|
4930
|
+
let d = l && s ? Tc(l, n) : null, f = -1, p = null;
|
|
4930
4931
|
o && (p = new ResizeObserver((e) => {
|
|
4931
4932
|
let [r] = e;
|
|
4932
4933
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -4934,11 +4935,11 @@ function Tc(e, t, n, r) {
|
|
|
4934
4935
|
(e = p) == null || e.observe(t);
|
|
4935
4936
|
})), n();
|
|
4936
4937
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
4937
|
-
let m, h = c ?
|
|
4938
|
+
let m, h = c ? rc(e) : null;
|
|
4938
4939
|
c && g();
|
|
4939
4940
|
function g() {
|
|
4940
|
-
let t =
|
|
4941
|
-
h && !
|
|
4941
|
+
let t = rc(e);
|
|
4942
|
+
h && !wc(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
4942
4943
|
}
|
|
4943
4944
|
return n(), () => {
|
|
4944
4945
|
var e;
|
|
@@ -4947,9 +4948,9 @@ function Tc(e, t, n, r) {
|
|
|
4947
4948
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
4948
4949
|
};
|
|
4949
4950
|
}
|
|
4950
|
-
var
|
|
4951
|
+
var Dc = ws, Oc = Ts, kc = vs, Ac = Ds, jc = xs, Mc = _s, Nc = Es, Pc = (e, t, n) => {
|
|
4951
4952
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
4952
|
-
platform:
|
|
4953
|
+
platform: Cc,
|
|
4953
4954
|
...n
|
|
4954
4955
|
}, a = {
|
|
4955
4956
|
...i.platform,
|
|
@@ -4959,8 +4960,8 @@ var Ec = ws, Dc = Ts, Oc = vs, kc = Ds, Ac = xs, jc = _s, Mc = Es, Nc = (e, t, n
|
|
|
4959
4960
|
...i,
|
|
4960
4961
|
platform: a
|
|
4961
4962
|
});
|
|
4962
|
-
},
|
|
4963
|
-
function
|
|
4963
|
+
}, Fc = typeof document < "u" ? B.useLayoutEffect : function() {};
|
|
4964
|
+
function Ic(e, t) {
|
|
4964
4965
|
if (e === t) return !0;
|
|
4965
4966
|
if (typeof e != typeof t) return !1;
|
|
4966
4967
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -4968,60 +4969,60 @@ function Fc(e, t) {
|
|
|
4968
4969
|
if (e && t && typeof e == "object") {
|
|
4969
4970
|
if (Array.isArray(e)) {
|
|
4970
4971
|
if (n = e.length, n !== t.length) return !1;
|
|
4971
|
-
for (r = n; r-- !== 0;) if (!
|
|
4972
|
+
for (r = n; r-- !== 0;) if (!Ic(e[r], t[r])) return !1;
|
|
4972
4973
|
return !0;
|
|
4973
4974
|
}
|
|
4974
4975
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
4975
4976
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
4976
4977
|
for (r = n; r-- !== 0;) {
|
|
4977
4978
|
let n = i[r];
|
|
4978
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
4979
|
+
if (!(n === "_owner" && e.$$typeof) && !Ic(e[n], t[n])) return !1;
|
|
4979
4980
|
}
|
|
4980
4981
|
return !0;
|
|
4981
4982
|
}
|
|
4982
4983
|
return e !== e && t !== t;
|
|
4983
4984
|
}
|
|
4984
|
-
function
|
|
4985
|
+
function Lc(e) {
|
|
4985
4986
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
4986
4987
|
}
|
|
4987
|
-
function
|
|
4988
|
-
let n =
|
|
4988
|
+
function Rc(e, t) {
|
|
4989
|
+
let n = Lc(e);
|
|
4989
4990
|
return Math.round(t * n) / n;
|
|
4990
4991
|
}
|
|
4991
|
-
function
|
|
4992
|
-
let t =
|
|
4993
|
-
return
|
|
4992
|
+
function zc(e) {
|
|
4993
|
+
let t = B.useRef(e);
|
|
4994
|
+
return Fc(() => {
|
|
4994
4995
|
t.current = e;
|
|
4995
4996
|
}), t;
|
|
4996
4997
|
}
|
|
4997
|
-
function
|
|
4998
|
+
function Bc(e) {
|
|
4998
4999
|
e === void 0 && (e = {});
|
|
4999
|
-
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] =
|
|
5000
|
+
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] = B.useState({
|
|
5000
5001
|
x: 0,
|
|
5001
5002
|
y: 0,
|
|
5002
5003
|
strategy: n,
|
|
5003
5004
|
placement: t,
|
|
5004
5005
|
middlewareData: {},
|
|
5005
5006
|
isPositioned: !1
|
|
5006
|
-
}), [f, p] =
|
|
5007
|
-
|
|
5008
|
-
let [m, h] =
|
|
5007
|
+
}), [f, p] = B.useState(r);
|
|
5008
|
+
Ic(f, r) || p(r);
|
|
5009
|
+
let [m, h] = B.useState(null), [g, _] = B.useState(null), v = B.useCallback((e) => {
|
|
5009
5010
|
e !== S.current && (S.current = e, h(e));
|
|
5010
|
-
}, []), y =
|
|
5011
|
+
}, []), y = B.useCallback((e) => {
|
|
5011
5012
|
e !== C.current && (C.current = e, _(e));
|
|
5012
|
-
}, []), b = a || m, x = o || g, S =
|
|
5013
|
+
}, []), b = a || m, x = o || g, S = B.useRef(null), C = B.useRef(null), w = B.useRef(u), T = c != null, E = zc(c), D = zc(i), O = zc(l), k = B.useCallback(() => {
|
|
5013
5014
|
if (!S.current || !C.current) return;
|
|
5014
5015
|
let e = {
|
|
5015
5016
|
placement: t,
|
|
5016
5017
|
strategy: n,
|
|
5017
5018
|
middleware: f
|
|
5018
5019
|
};
|
|
5019
|
-
D.current && (e.platform = D.current),
|
|
5020
|
+
D.current && (e.platform = D.current), Pc(S.current, C.current, e).then((e) => {
|
|
5020
5021
|
let t = {
|
|
5021
5022
|
...e,
|
|
5022
5023
|
isPositioned: O.current !== !1
|
|
5023
5024
|
};
|
|
5024
|
-
A.current && !
|
|
5025
|
+
A.current && !Ic(w.current, t) && (w.current = t, mt.flushSync(() => {
|
|
5025
5026
|
d(t);
|
|
5026
5027
|
}));
|
|
5027
5028
|
});
|
|
@@ -5032,16 +5033,16 @@ function zc(e) {
|
|
|
5032
5033
|
D,
|
|
5033
5034
|
O
|
|
5034
5035
|
]);
|
|
5035
|
-
|
|
5036
|
+
Fc(() => {
|
|
5036
5037
|
l === !1 && w.current.isPositioned && (w.current.isPositioned = !1, d((e) => ({
|
|
5037
5038
|
...e,
|
|
5038
5039
|
isPositioned: !1
|
|
5039
5040
|
})));
|
|
5040
5041
|
}, [l]);
|
|
5041
|
-
let A =
|
|
5042
|
-
|
|
5042
|
+
let A = B.useRef(!1);
|
|
5043
|
+
Fc(() => (A.current = !0, () => {
|
|
5043
5044
|
A.current = !1;
|
|
5044
|
-
}), []),
|
|
5045
|
+
}), []), Fc(() => {
|
|
5045
5046
|
if (b && (S.current = b), x && (C.current = x), b && x) {
|
|
5046
5047
|
if (E.current) return E.current(b, x, k);
|
|
5047
5048
|
k();
|
|
@@ -5053,26 +5054,26 @@ function zc(e) {
|
|
|
5053
5054
|
E,
|
|
5054
5055
|
T
|
|
5055
5056
|
]);
|
|
5056
|
-
let j =
|
|
5057
|
+
let j = B.useMemo(() => ({
|
|
5057
5058
|
reference: S,
|
|
5058
5059
|
floating: C,
|
|
5059
5060
|
setReference: v,
|
|
5060
5061
|
setFloating: y
|
|
5061
|
-
}), [v, y]), M =
|
|
5062
|
+
}), [v, y]), M = B.useMemo(() => ({
|
|
5062
5063
|
reference: b,
|
|
5063
5064
|
floating: x
|
|
5064
|
-
}), [b, x]), N =
|
|
5065
|
+
}), [b, x]), N = B.useMemo(() => {
|
|
5065
5066
|
let e = {
|
|
5066
5067
|
position: n,
|
|
5067
5068
|
left: 0,
|
|
5068
5069
|
top: 0
|
|
5069
5070
|
};
|
|
5070
5071
|
if (!M.floating) return e;
|
|
5071
|
-
let t =
|
|
5072
|
+
let t = Rc(M.floating, u.x), r = Rc(M.floating, u.y);
|
|
5072
5073
|
return s ? {
|
|
5073
5074
|
...e,
|
|
5074
5075
|
transform: "translate(" + t + "px, " + r + "px)",
|
|
5075
|
-
...
|
|
5076
|
+
...Lc(M.floating) >= 1.5 && { willChange: "transform" }
|
|
5076
5077
|
} : {
|
|
5077
5078
|
position: n,
|
|
5078
5079
|
left: t,
|
|
@@ -5085,7 +5086,7 @@ function zc(e) {
|
|
|
5085
5086
|
u.x,
|
|
5086
5087
|
u.y
|
|
5087
5088
|
]);
|
|
5088
|
-
return
|
|
5089
|
+
return B.useMemo(() => ({
|
|
5089
5090
|
...u,
|
|
5090
5091
|
update: k,
|
|
5091
5092
|
refs: j,
|
|
@@ -5099,7 +5100,7 @@ function zc(e) {
|
|
|
5099
5100
|
N
|
|
5100
5101
|
]);
|
|
5101
5102
|
}
|
|
5102
|
-
var
|
|
5103
|
+
var Vc = (e) => {
|
|
5103
5104
|
function t(e) {
|
|
5104
5105
|
return {}.hasOwnProperty.call(e, "current");
|
|
5105
5106
|
}
|
|
@@ -5108,22 +5109,15 @@ var Bc = (e) => {
|
|
|
5108
5109
|
options: e,
|
|
5109
5110
|
fn(n) {
|
|
5110
5111
|
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
5111
|
-
return r && t(r) ? r.current == null ? {} :
|
|
5112
|
+
return r && t(r) ? r.current == null ? {} : Mc({
|
|
5112
5113
|
element: r.current,
|
|
5113
5114
|
padding: i
|
|
5114
|
-
}).fn(n) : r ?
|
|
5115
|
+
}).fn(n) : r ? Mc({
|
|
5115
5116
|
element: r,
|
|
5116
5117
|
padding: i
|
|
5117
5118
|
}).fn(n) : {};
|
|
5118
5119
|
}
|
|
5119
5120
|
};
|
|
5120
|
-
}, Vc = (e, t) => {
|
|
5121
|
-
let n = Ec(e);
|
|
5122
|
-
return {
|
|
5123
|
-
name: n.name,
|
|
5124
|
-
fn: n.fn,
|
|
5125
|
-
options: [e, t]
|
|
5126
|
-
};
|
|
5127
5121
|
}, Hc = (e, t) => {
|
|
5128
5122
|
let n = Dc(e);
|
|
5129
5123
|
return {
|
|
@@ -5131,17 +5125,17 @@ var Bc = (e) => {
|
|
|
5131
5125
|
fn: n.fn,
|
|
5132
5126
|
options: [e, t]
|
|
5133
5127
|
};
|
|
5134
|
-
}, Uc = (e, t) =>
|
|
5135
|
-
fn: Mc(e).fn,
|
|
5136
|
-
options: [e, t]
|
|
5137
|
-
}), Wc = (e, t) => {
|
|
5128
|
+
}, Uc = (e, t) => {
|
|
5138
5129
|
let n = Oc(e);
|
|
5139
5130
|
return {
|
|
5140
5131
|
name: n.name,
|
|
5141
5132
|
fn: n.fn,
|
|
5142
5133
|
options: [e, t]
|
|
5143
5134
|
};
|
|
5144
|
-
},
|
|
5135
|
+
}, Wc = (e, t) => ({
|
|
5136
|
+
fn: Nc(e).fn,
|
|
5137
|
+
options: [e, t]
|
|
5138
|
+
}), Gc = (e, t) => {
|
|
5145
5139
|
let n = kc(e);
|
|
5146
5140
|
return {
|
|
5147
5141
|
name: n.name,
|
|
@@ -5156,30 +5150,37 @@ var Bc = (e) => {
|
|
|
5156
5150
|
options: [e, t]
|
|
5157
5151
|
};
|
|
5158
5152
|
}, qc = (e, t) => {
|
|
5159
|
-
let n =
|
|
5153
|
+
let n = jc(e);
|
|
5160
5154
|
return {
|
|
5161
5155
|
name: n.name,
|
|
5162
5156
|
fn: n.fn,
|
|
5163
5157
|
options: [e, t]
|
|
5164
5158
|
};
|
|
5165
|
-
}, Jc =
|
|
5159
|
+
}, Jc = (e, t) => {
|
|
5160
|
+
let n = Vc(e);
|
|
5161
|
+
return {
|
|
5162
|
+
name: n.name,
|
|
5163
|
+
fn: n.fn,
|
|
5164
|
+
options: [e, t]
|
|
5165
|
+
};
|
|
5166
|
+
}, Yc = "Arrow", Xc = B.forwardRef((e, t) => {
|
|
5166
5167
|
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
5167
|
-
return /* @__PURE__ */ (0,
|
|
5168
|
+
return /* @__PURE__ */ (0, V.jsx)($a.svg, {
|
|
5168
5169
|
...a,
|
|
5169
5170
|
ref: t,
|
|
5170
5171
|
width: r,
|
|
5171
5172
|
height: i,
|
|
5172
5173
|
viewBox: "0 0 30 10",
|
|
5173
5174
|
preserveAspectRatio: "none",
|
|
5174
|
-
children: e.asChild ? n : /* @__PURE__ */ (0,
|
|
5175
|
+
children: e.asChild ? n : /* @__PURE__ */ (0, V.jsx)("polygon", { points: "0,0 30,0 15,10" })
|
|
5175
5176
|
});
|
|
5176
5177
|
});
|
|
5177
|
-
|
|
5178
|
-
var
|
|
5178
|
+
Xc.displayName = Yc;
|
|
5179
|
+
var Zc = Xc;
|
|
5179
5180
|
//#endregion
|
|
5180
5181
|
//#region ../node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
5181
|
-
function
|
|
5182
|
-
let [t, n] =
|
|
5182
|
+
function Qc(e) {
|
|
5183
|
+
let [t, n] = B.useState(void 0);
|
|
5183
5184
|
return Io(() => {
|
|
5184
5185
|
if (e) {
|
|
5185
5186
|
n({
|
|
@@ -5204,29 +5205,29 @@ function Zc(e) {
|
|
|
5204
5205
|
}
|
|
5205
5206
|
//#endregion
|
|
5206
5207
|
//#region ../node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
5207
|
-
var
|
|
5208
|
-
let { __scopePopper: t, children: n } = e, [r, i] =
|
|
5209
|
-
return /* @__PURE__ */ (0,
|
|
5208
|
+
var $c = "Popper", [el, tl] = Ga($c), [nl, rl] = el($c), il = (e) => {
|
|
5209
|
+
let { __scopePopper: t, children: n } = e, [r, i] = B.useState(null);
|
|
5210
|
+
return /* @__PURE__ */ (0, V.jsx)(nl, {
|
|
5210
5211
|
scope: t,
|
|
5211
5212
|
anchor: r,
|
|
5212
5213
|
onAnchorChange: i,
|
|
5213
5214
|
children: n
|
|
5214
5215
|
});
|
|
5215
5216
|
};
|
|
5216
|
-
|
|
5217
|
-
var
|
|
5218
|
-
let { __scopePopper: n, virtualRef: r, ...i } = e, a =
|
|
5219
|
-
return
|
|
5217
|
+
il.displayName = $c;
|
|
5218
|
+
var al = "PopperAnchor", ol = B.forwardRef((e, t) => {
|
|
5219
|
+
let { __scopePopper: n, virtualRef: r, ...i } = e, a = rl(al, n), o = B.useRef(null), s = Wa(t, o), c = B.useRef(null);
|
|
5220
|
+
return B.useEffect(() => {
|
|
5220
5221
|
let e = c.current;
|
|
5221
5222
|
c.current = r?.current || o.current, e !== c.current && a.onAnchorChange(c.current);
|
|
5222
|
-
}), r ? null : /* @__PURE__ */ (0,
|
|
5223
|
+
}), r ? null : /* @__PURE__ */ (0, V.jsx)($a.div, {
|
|
5223
5224
|
...i,
|
|
5224
5225
|
ref: s
|
|
5225
5226
|
});
|
|
5226
5227
|
});
|
|
5227
|
-
|
|
5228
|
-
var
|
|
5229
|
-
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 =
|
|
5228
|
+
ol.displayName = al;
|
|
5229
|
+
var sl = "PopperContent", [cl, ll] = el(sl), ul = B.forwardRef((e, t) => {
|
|
5230
|
+
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 = rl(sl, n), [_, v] = B.useState(null), y = Wa(t, (e) => v(e)), [b, x] = B.useState(null), S = Qc(b), C = S?.width ?? 0, w = S?.height ?? 0, T = r + (a === "center" ? "" : "-" + a), E = typeof u == "number" ? u : {
|
|
5230
5231
|
top: 0,
|
|
5231
5232
|
right: 0,
|
|
5232
5233
|
bottom: 0,
|
|
@@ -5234,53 +5235,53 @@ var ol = "PopperContent", [sl, cl] = $c(ol), ll = z.forwardRef((e, t) => {
|
|
|
5234
5235
|
...u
|
|
5235
5236
|
}, D = Array.isArray(l) ? l : [l], O = D.length > 0, k = {
|
|
5236
5237
|
padding: E,
|
|
5237
|
-
boundary: D.filter(
|
|
5238
|
+
boundary: D.filter(ml),
|
|
5238
5239
|
altBoundary: O
|
|
5239
|
-
}, { refs: A, floatingStyles: j, placement: M, isPositioned: N, middlewareData: P } =
|
|
5240
|
+
}, { refs: A, floatingStyles: j, placement: M, isPositioned: N, middlewareData: P } = Bc({
|
|
5240
5241
|
strategy: "fixed",
|
|
5241
5242
|
placement: T,
|
|
5242
|
-
whileElementsMounted: (...e) =>
|
|
5243
|
+
whileElementsMounted: (...e) => Ec(...e, { animationFrame: p === "always" }),
|
|
5243
5244
|
elements: { reference: g.anchor },
|
|
5244
5245
|
middleware: [
|
|
5245
|
-
|
|
5246
|
+
Hc({
|
|
5246
5247
|
mainAxis: i + w,
|
|
5247
5248
|
alignmentAxis: o
|
|
5248
5249
|
}),
|
|
5249
|
-
c &&
|
|
5250
|
+
c && Uc({
|
|
5250
5251
|
mainAxis: !0,
|
|
5251
5252
|
crossAxis: !1,
|
|
5252
|
-
limiter: d === "partial" ?
|
|
5253
|
+
limiter: d === "partial" ? Wc() : void 0,
|
|
5253
5254
|
...k
|
|
5254
5255
|
}),
|
|
5255
|
-
c &&
|
|
5256
|
-
|
|
5256
|
+
c && Gc({ ...k }),
|
|
5257
|
+
Kc({
|
|
5257
5258
|
...k,
|
|
5258
5259
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
5259
5260
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
5260
5261
|
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`);
|
|
5261
5262
|
}
|
|
5262
5263
|
}),
|
|
5263
|
-
b &&
|
|
5264
|
+
b && Jc({
|
|
5264
5265
|
element: b,
|
|
5265
5266
|
padding: s
|
|
5266
5267
|
}),
|
|
5267
|
-
|
|
5268
|
+
hl({
|
|
5268
5269
|
arrowWidth: C,
|
|
5269
5270
|
arrowHeight: w
|
|
5270
5271
|
}),
|
|
5271
|
-
f &&
|
|
5272
|
+
f && qc({
|
|
5272
5273
|
strategy: "referenceHidden",
|
|
5273
5274
|
...k
|
|
5274
5275
|
})
|
|
5275
5276
|
]
|
|
5276
|
-
}), [F, ee] =
|
|
5277
|
+
}), [F, ee] = gl(M), I = to(m);
|
|
5277
5278
|
Io(() => {
|
|
5278
5279
|
N && I?.();
|
|
5279
5280
|
}, [N, I]);
|
|
5280
|
-
let te = P.arrow?.x, L = P.arrow?.y, ne = P.arrow?.centerOffset !== 0, [re, ie] =
|
|
5281
|
+
let te = P.arrow?.x, L = P.arrow?.y, ne = P.arrow?.centerOffset !== 0, [re, ie] = B.useState();
|
|
5281
5282
|
return Io(() => {
|
|
5282
5283
|
_ && ie(window.getComputedStyle(_).zIndex);
|
|
5283
|
-
}, [_]), /* @__PURE__ */ (0,
|
|
5284
|
+
}, [_]), /* @__PURE__ */ (0, V.jsx)("div", {
|
|
5284
5285
|
ref: A.setFloating,
|
|
5285
5286
|
"data-radix-popper-content-wrapper": "",
|
|
5286
5287
|
style: {
|
|
@@ -5295,14 +5296,14 @@ var ol = "PopperContent", [sl, cl] = $c(ol), ll = z.forwardRef((e, t) => {
|
|
|
5295
5296
|
}
|
|
5296
5297
|
},
|
|
5297
5298
|
dir: e.dir,
|
|
5298
|
-
children: /* @__PURE__ */ (0,
|
|
5299
|
+
children: /* @__PURE__ */ (0, V.jsx)(cl, {
|
|
5299
5300
|
scope: n,
|
|
5300
5301
|
placedSide: F,
|
|
5301
5302
|
onArrowChange: x,
|
|
5302
5303
|
arrowX: te,
|
|
5303
5304
|
arrowY: L,
|
|
5304
5305
|
shouldHideArrow: ne,
|
|
5305
|
-
children: /* @__PURE__ */ (0,
|
|
5306
|
+
children: /* @__PURE__ */ (0, V.jsx)($a.div, {
|
|
5306
5307
|
"data-side": F,
|
|
5307
5308
|
"data-align": ee,
|
|
5308
5309
|
...h,
|
|
@@ -5315,15 +5316,15 @@ var ol = "PopperContent", [sl, cl] = $c(ol), ll = z.forwardRef((e, t) => {
|
|
|
5315
5316
|
})
|
|
5316
5317
|
});
|
|
5317
5318
|
});
|
|
5318
|
-
|
|
5319
|
-
var
|
|
5319
|
+
ul.displayName = sl;
|
|
5320
|
+
var dl = "PopperArrow", fl = {
|
|
5320
5321
|
top: "bottom",
|
|
5321
5322
|
right: "left",
|
|
5322
5323
|
bottom: "top",
|
|
5323
5324
|
left: "right"
|
|
5324
|
-
},
|
|
5325
|
-
let { __scopePopper: n, ...r } = e, i =
|
|
5326
|
-
return /* @__PURE__ */ (0,
|
|
5325
|
+
}, pl = B.forwardRef(function(e, t) {
|
|
5326
|
+
let { __scopePopper: n, ...r } = e, i = ll(dl, n), a = fl[i.placedSide];
|
|
5327
|
+
return /* @__PURE__ */ (0, V.jsx)("span", {
|
|
5327
5328
|
ref: i.onArrowChange,
|
|
5328
5329
|
style: {
|
|
5329
5330
|
position: "absolute",
|
|
@@ -5344,7 +5345,7 @@ var ul = "PopperArrow", dl = {
|
|
|
5344
5345
|
}[i.placedSide],
|
|
5345
5346
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
5346
5347
|
},
|
|
5347
|
-
children: /* @__PURE__ */ (0,
|
|
5348
|
+
children: /* @__PURE__ */ (0, V.jsx)(Zc, {
|
|
5348
5349
|
...r,
|
|
5349
5350
|
ref: t,
|
|
5350
5351
|
style: {
|
|
@@ -5354,15 +5355,15 @@ var ul = "PopperArrow", dl = {
|
|
|
5354
5355
|
})
|
|
5355
5356
|
});
|
|
5356
5357
|
});
|
|
5357
|
-
|
|
5358
|
-
function
|
|
5358
|
+
pl.displayName = dl;
|
|
5359
|
+
function ml(e) {
|
|
5359
5360
|
return e !== null;
|
|
5360
5361
|
}
|
|
5361
|
-
var
|
|
5362
|
+
var hl = (e) => ({
|
|
5362
5363
|
name: "transformOrigin",
|
|
5363
5364
|
options: e,
|
|
5364
5365
|
fn(t) {
|
|
5365
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
5366
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = gl(n), u = {
|
|
5366
5367
|
start: "0%",
|
|
5367
5368
|
center: "50%",
|
|
5368
5369
|
end: "100%"
|
|
@@ -5373,32 +5374,32 @@ var ml = (e) => ({
|
|
|
5373
5374
|
} };
|
|
5374
5375
|
}
|
|
5375
5376
|
});
|
|
5376
|
-
function
|
|
5377
|
+
function gl(e) {
|
|
5377
5378
|
let [t, n = "center"] = e.split("-");
|
|
5378
5379
|
return [t, n];
|
|
5379
5380
|
}
|
|
5380
|
-
var
|
|
5381
|
-
let { container: n, ...r } = e, [i, a] =
|
|
5381
|
+
var _l = il, vl = ol, yl = ul, bl = pl, xl = "Portal", Sl = B.forwardRef((e, t) => {
|
|
5382
|
+
let { container: n, ...r } = e, [i, a] = B.useState(!1);
|
|
5382
5383
|
Io(() => a(!0), []);
|
|
5383
5384
|
let o = n || i && globalThis?.document?.body;
|
|
5384
|
-
return o ? mt.createPortal(/* @__PURE__ */ (0,
|
|
5385
|
+
return o ? mt.createPortal(/* @__PURE__ */ (0, V.jsx)($a.div, {
|
|
5385
5386
|
...r,
|
|
5386
5387
|
ref: t
|
|
5387
5388
|
}), o) : null;
|
|
5388
5389
|
});
|
|
5389
|
-
|
|
5390
|
+
Sl.displayName = xl;
|
|
5390
5391
|
//#endregion
|
|
5391
5392
|
//#region ../node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
5392
|
-
function
|
|
5393
|
-
return
|
|
5393
|
+
function Cl(e, t) {
|
|
5394
|
+
return B.useReducer((e, n) => t[e][n] ?? e, e);
|
|
5394
5395
|
}
|
|
5395
|
-
var
|
|
5396
|
-
let { present: t, children: n } = e, r =
|
|
5397
|
-
return typeof n == "function" || r.isPresent ?
|
|
5396
|
+
var wl = (e) => {
|
|
5397
|
+
let { present: t, children: n } = e, r = Tl(t), i = typeof n == "function" ? n({ present: r.isPresent }) : B.Children.only(n), a = Wa(r.ref, Dl(i));
|
|
5398
|
+
return typeof n == "function" || r.isPresent ? B.cloneElement(i, { ref: a }) : null;
|
|
5398
5399
|
};
|
|
5399
|
-
|
|
5400
|
-
function
|
|
5401
|
-
let [t, n] =
|
|
5400
|
+
wl.displayName = "Presence";
|
|
5401
|
+
function Tl(e) {
|
|
5402
|
+
let [t, n] = B.useState(), r = B.useRef(null), i = B.useRef(e), a = B.useRef("none"), [o, s] = Cl(e ? "mounted" : "unmounted", {
|
|
5402
5403
|
mounted: {
|
|
5403
5404
|
UNMOUNT: "unmounted",
|
|
5404
5405
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -5409,19 +5410,19 @@ function wl(e) {
|
|
|
5409
5410
|
},
|
|
5410
5411
|
unmounted: { MOUNT: "mounted" }
|
|
5411
5412
|
});
|
|
5412
|
-
return
|
|
5413
|
-
let e =
|
|
5413
|
+
return B.useEffect(() => {
|
|
5414
|
+
let e = El(r.current);
|
|
5414
5415
|
a.current = o === "mounted" ? e : "none";
|
|
5415
5416
|
}, [o]), Io(() => {
|
|
5416
5417
|
let t = r.current, n = i.current;
|
|
5417
5418
|
if (n !== e) {
|
|
5418
|
-
let r = a.current, o =
|
|
5419
|
+
let r = a.current, o = El(t);
|
|
5419
5420
|
e ? s("MOUNT") : o === "none" || t?.display === "none" ? s("UNMOUNT") : s(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
5420
5421
|
}
|
|
5421
5422
|
}, [e, s]), Io(() => {
|
|
5422
5423
|
if (t) {
|
|
5423
5424
|
let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
|
|
5424
|
-
let o =
|
|
5425
|
+
let o = El(r.current).includes(CSS.escape(a.animationName));
|
|
5425
5426
|
if (a.target === t && o && (s("ANIMATION_END"), !i.current)) {
|
|
5426
5427
|
let r = t.style.animationFillMode;
|
|
5427
5428
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
@@ -5429,7 +5430,7 @@ function wl(e) {
|
|
|
5429
5430
|
});
|
|
5430
5431
|
}
|
|
5431
5432
|
}, c = (e) => {
|
|
5432
|
-
e.target === t && (a.current =
|
|
5433
|
+
e.target === t && (a.current = El(r.current));
|
|
5433
5434
|
};
|
|
5434
5435
|
return t.addEventListener("animationstart", c), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
|
|
5435
5436
|
n.clearTimeout(e), t.removeEventListener("animationstart", c), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
|
|
@@ -5437,36 +5438,36 @@ function wl(e) {
|
|
|
5437
5438
|
} else s("ANIMATION_END");
|
|
5438
5439
|
}, [t, s]), {
|
|
5439
5440
|
isPresent: ["mounted", "unmountSuspended"].includes(o),
|
|
5440
|
-
ref:
|
|
5441
|
+
ref: B.useCallback((e) => {
|
|
5441
5442
|
r.current = e ? getComputedStyle(e) : null, n(e);
|
|
5442
5443
|
}, [])
|
|
5443
5444
|
};
|
|
5444
5445
|
}
|
|
5445
|
-
function
|
|
5446
|
+
function El(e) {
|
|
5446
5447
|
return e?.animationName || "none";
|
|
5447
5448
|
}
|
|
5448
|
-
function
|
|
5449
|
+
function Dl(e) {
|
|
5449
5450
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
5450
5451
|
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);
|
|
5451
5452
|
}
|
|
5452
5453
|
//#endregion
|
|
5453
5454
|
//#region ../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
5454
|
-
var
|
|
5455
|
-
function
|
|
5456
|
-
let [i, a, o] =
|
|
5455
|
+
var Ol = B.useInsertionEffect || Io;
|
|
5456
|
+
function kl({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
5457
|
+
let [i, a, o] = Al({
|
|
5457
5458
|
defaultProp: t,
|
|
5458
5459
|
onChange: n
|
|
5459
5460
|
}), s = e !== void 0, c = s ? e : i;
|
|
5460
5461
|
{
|
|
5461
|
-
let t =
|
|
5462
|
-
|
|
5462
|
+
let t = B.useRef(e !== void 0);
|
|
5463
|
+
B.useEffect(() => {
|
|
5463
5464
|
let e = t.current;
|
|
5464
5465
|
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;
|
|
5465
5466
|
}, [s, r]);
|
|
5466
5467
|
}
|
|
5467
|
-
return [c,
|
|
5468
|
+
return [c, B.useCallback((t) => {
|
|
5468
5469
|
if (s) {
|
|
5469
|
-
let n =
|
|
5470
|
+
let n = jl(t) ? t(e) : t;
|
|
5470
5471
|
n !== e && o.current?.(n);
|
|
5471
5472
|
} else a(t);
|
|
5472
5473
|
}, [
|
|
@@ -5476,11 +5477,11 @@ function Ol({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
|
5476
5477
|
o
|
|
5477
5478
|
])];
|
|
5478
5479
|
}
|
|
5479
|
-
function
|
|
5480
|
-
let [n, r] =
|
|
5481
|
-
return
|
|
5480
|
+
function Al({ defaultProp: e, onChange: t }) {
|
|
5481
|
+
let [n, r] = B.useState(e), i = B.useRef(n), a = B.useRef(t);
|
|
5482
|
+
return Ol(() => {
|
|
5482
5483
|
a.current = t;
|
|
5483
|
-
}, [t]),
|
|
5484
|
+
}, [t]), B.useEffect(() => {
|
|
5484
5485
|
i.current !== n && (a.current?.(n), i.current = n);
|
|
5485
5486
|
}, [n, i]), [
|
|
5486
5487
|
n,
|
|
@@ -5488,27 +5489,27 @@ function kl({ defaultProp: e, onChange: t }) {
|
|
|
5488
5489
|
a
|
|
5489
5490
|
];
|
|
5490
5491
|
}
|
|
5491
|
-
function
|
|
5492
|
+
function jl(e) {
|
|
5492
5493
|
return typeof e == "function";
|
|
5493
5494
|
}
|
|
5494
5495
|
//#endregion
|
|
5495
5496
|
//#region ../node_modules/aria-hidden/dist/es2015/index.js
|
|
5496
|
-
var
|
|
5497
|
+
var Ml = function(e) {
|
|
5497
5498
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
5498
|
-
},
|
|
5499
|
-
return e && (e.host ||
|
|
5500
|
-
},
|
|
5499
|
+
}, Nl = /* @__PURE__ */ new WeakMap(), Pl = /* @__PURE__ */ new WeakMap(), Fl = {}, Il = 0, Ll = function(e) {
|
|
5500
|
+
return e && (e.host || Ll(e.parentNode));
|
|
5501
|
+
}, Rl = function(e, t) {
|
|
5501
5502
|
return t.map(function(t) {
|
|
5502
5503
|
if (e.contains(t)) return t;
|
|
5503
|
-
var n =
|
|
5504
|
+
var n = Ll(t);
|
|
5504
5505
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
5505
5506
|
}).filter(function(e) {
|
|
5506
5507
|
return !!e;
|
|
5507
5508
|
});
|
|
5508
|
-
},
|
|
5509
|
-
var i =
|
|
5510
|
-
|
|
5511
|
-
var a =
|
|
5509
|
+
}, zl = function(e, t, n, r) {
|
|
5510
|
+
var i = Rl(t, Array.isArray(e) ? e : [e]);
|
|
5511
|
+
Fl[n] || (Fl[n] = /* @__PURE__ */ new WeakMap());
|
|
5512
|
+
var a = Fl[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
5512
5513
|
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
5513
5514
|
};
|
|
5514
5515
|
i.forEach(l);
|
|
@@ -5516,38 +5517,38 @@ var jl = function(e) {
|
|
|
5516
5517
|
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
5517
5518
|
if (s.has(e)) u(e);
|
|
5518
5519
|
else try {
|
|
5519
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
5520
|
-
|
|
5520
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Nl.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
5521
|
+
Nl.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Pl.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
5521
5522
|
} catch (t) {
|
|
5522
5523
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
5523
5524
|
}
|
|
5524
5525
|
});
|
|
5525
5526
|
};
|
|
5526
|
-
return u(t), s.clear(),
|
|
5527
|
+
return u(t), s.clear(), Il++, function() {
|
|
5527
5528
|
o.forEach(function(e) {
|
|
5528
|
-
var t =
|
|
5529
|
-
|
|
5530
|
-
}),
|
|
5529
|
+
var t = Nl.get(e) - 1, i = a.get(e) - 1;
|
|
5530
|
+
Nl.set(e, t), a.set(e, i), t || (Pl.has(e) || e.removeAttribute(r), Pl.delete(e)), i || e.removeAttribute(n);
|
|
5531
|
+
}), Il--, Il || (Nl = /* @__PURE__ */ new WeakMap(), Nl = /* @__PURE__ */ new WeakMap(), Pl = /* @__PURE__ */ new WeakMap(), Fl = {});
|
|
5531
5532
|
};
|
|
5532
|
-
},
|
|
5533
|
+
}, Bl = function(e, t, n) {
|
|
5533
5534
|
n === void 0 && (n = "data-aria-hidden");
|
|
5534
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
5535
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
5535
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Ml(e);
|
|
5536
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), zl(r, i, n, "aria-hidden")) : function() {
|
|
5536
5537
|
return null;
|
|
5537
5538
|
};
|
|
5538
|
-
},
|
|
5539
|
-
return
|
|
5539
|
+
}, Vl = function() {
|
|
5540
|
+
return Vl = Object.assign || function(e) {
|
|
5540
5541
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
5541
5542
|
return e;
|
|
5542
|
-
},
|
|
5543
|
+
}, Vl.apply(this, arguments);
|
|
5543
5544
|
};
|
|
5544
|
-
function
|
|
5545
|
+
function Hl(e, t) {
|
|
5545
5546
|
var n = {};
|
|
5546
5547
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
5547
5548
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
5548
5549
|
return n;
|
|
5549
5550
|
}
|
|
5550
|
-
function
|
|
5551
|
+
function Ul(e, t, n, r) {
|
|
5551
5552
|
function i(e) {
|
|
5552
5553
|
return e instanceof n ? e : new n(function(t) {
|
|
5553
5554
|
t(e);
|
|
@@ -5574,7 +5575,7 @@ function Hl(e, t, n, r) {
|
|
|
5574
5575
|
c((r = r.apply(e, t || [])).next());
|
|
5575
5576
|
});
|
|
5576
5577
|
}
|
|
5577
|
-
function
|
|
5578
|
+
function Wl(e, t) {
|
|
5578
5579
|
var n = {
|
|
5579
5580
|
label: 0,
|
|
5580
5581
|
sent: function() {
|
|
@@ -5644,7 +5645,7 @@ function Ul(e, t) {
|
|
|
5644
5645
|
};
|
|
5645
5646
|
}
|
|
5646
5647
|
}
|
|
5647
|
-
function
|
|
5648
|
+
function Gl(e, t) {
|
|
5648
5649
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
5649
5650
|
if (!n) return e;
|
|
5650
5651
|
var r = n.call(e), i, a = [], o;
|
|
@@ -5661,26 +5662,26 @@ function Wl(e, t) {
|
|
|
5661
5662
|
}
|
|
5662
5663
|
return a;
|
|
5663
5664
|
}
|
|
5664
|
-
function
|
|
5665
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(
|
|
5665
|
+
function Kl() {
|
|
5666
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Gl(arguments[t]));
|
|
5666
5667
|
return e;
|
|
5667
5668
|
}
|
|
5668
|
-
function
|
|
5669
|
+
function ql(e, t, n) {
|
|
5669
5670
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
5670
5671
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
5671
5672
|
}
|
|
5672
5673
|
//#endregion
|
|
5673
5674
|
//#region ../node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
5674
|
-
var
|
|
5675
|
+
var Jl = "right-scroll-bar-position", Yl = "width-before-scroll-bar", Xl = "with-scroll-bars-hidden", Zl = "--removed-body-scroll-bar-size";
|
|
5675
5676
|
//#endregion
|
|
5676
5677
|
//#region ../node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
5677
|
-
function
|
|
5678
|
+
function Ql(e, t) {
|
|
5678
5679
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
5679
5680
|
}
|
|
5680
5681
|
//#endregion
|
|
5681
5682
|
//#region ../node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
5682
|
-
function
|
|
5683
|
-
var n = (0,
|
|
5683
|
+
function $l(e, t) {
|
|
5684
|
+
var n = (0, B.useState)(function() {
|
|
5684
5685
|
return {
|
|
5685
5686
|
value: e,
|
|
5686
5687
|
callback: t,
|
|
@@ -5699,33 +5700,33 @@ function Ql(e, t) {
|
|
|
5699
5700
|
}
|
|
5700
5701
|
//#endregion
|
|
5701
5702
|
//#region ../node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
5702
|
-
var
|
|
5703
|
-
function
|
|
5704
|
-
var n =
|
|
5703
|
+
var eu = typeof window < "u" ? B.useLayoutEffect : B.useEffect, tu = /* @__PURE__ */ new WeakMap();
|
|
5704
|
+
function nu(e, t) {
|
|
5705
|
+
var n = $l(t || null, function(t) {
|
|
5705
5706
|
return e.forEach(function(e) {
|
|
5706
|
-
return
|
|
5707
|
+
return Ql(e, t);
|
|
5707
5708
|
});
|
|
5708
5709
|
});
|
|
5709
|
-
return
|
|
5710
|
-
var t =
|
|
5710
|
+
return eu(function() {
|
|
5711
|
+
var t = tu.get(n);
|
|
5711
5712
|
if (t) {
|
|
5712
5713
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
5713
5714
|
r.forEach(function(e) {
|
|
5714
|
-
i.has(e) ||
|
|
5715
|
+
i.has(e) || Ql(e, null);
|
|
5715
5716
|
}), i.forEach(function(e) {
|
|
5716
|
-
r.has(e) ||
|
|
5717
|
+
r.has(e) || Ql(e, a);
|
|
5717
5718
|
});
|
|
5718
5719
|
}
|
|
5719
|
-
|
|
5720
|
+
tu.set(n, e);
|
|
5720
5721
|
}, [e]), n;
|
|
5721
5722
|
}
|
|
5722
5723
|
//#endregion
|
|
5723
5724
|
//#region ../node_modules/use-sidecar/dist/es2015/medium.js
|
|
5724
|
-
function
|
|
5725
|
+
function ru(e) {
|
|
5725
5726
|
return e;
|
|
5726
5727
|
}
|
|
5727
|
-
function
|
|
5728
|
-
t === void 0 && (t =
|
|
5728
|
+
function iu(e, t) {
|
|
5729
|
+
t === void 0 && (t = ru);
|
|
5729
5730
|
var n = [], r = !1;
|
|
5730
5731
|
return {
|
|
5731
5732
|
read: function() {
|
|
@@ -5778,35 +5779,35 @@ function ru(e, t) {
|
|
|
5778
5779
|
}
|
|
5779
5780
|
};
|
|
5780
5781
|
}
|
|
5781
|
-
function
|
|
5782
|
+
function au(e) {
|
|
5782
5783
|
e === void 0 && (e = {});
|
|
5783
|
-
var t =
|
|
5784
|
-
return t.options =
|
|
5784
|
+
var t = iu(null);
|
|
5785
|
+
return t.options = Vl({
|
|
5785
5786
|
async: !0,
|
|
5786
5787
|
ssr: !1
|
|
5787
5788
|
}, e), t;
|
|
5788
5789
|
}
|
|
5789
5790
|
//#endregion
|
|
5790
5791
|
//#region ../node_modules/use-sidecar/dist/es2015/exports.js
|
|
5791
|
-
var
|
|
5792
|
-
var t = e.sideCar, n =
|
|
5792
|
+
var ou = function(e) {
|
|
5793
|
+
var t = e.sideCar, n = Hl(e, ["sideCar"]);
|
|
5793
5794
|
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
5794
5795
|
var r = t.read();
|
|
5795
5796
|
if (!r) throw Error("Sidecar medium not found");
|
|
5796
|
-
return
|
|
5797
|
+
return B.createElement(r, Vl({}, n));
|
|
5797
5798
|
};
|
|
5798
|
-
|
|
5799
|
-
function
|
|
5800
|
-
return e.useMedium(t),
|
|
5799
|
+
ou.isSideCarExport = !0;
|
|
5800
|
+
function su(e, t) {
|
|
5801
|
+
return e.useMedium(t), ou;
|
|
5801
5802
|
}
|
|
5802
5803
|
//#endregion
|
|
5803
5804
|
//#region ../node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
5804
|
-
var
|
|
5805
|
-
var n =
|
|
5806
|
-
onScrollCapture:
|
|
5807
|
-
onWheelCapture:
|
|
5808
|
-
onTouchMoveCapture:
|
|
5809
|
-
}), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, y = e.gapMode, b =
|
|
5805
|
+
var cu = au(), lu = function() {}, uu = B.forwardRef(function(e, t) {
|
|
5806
|
+
var n = B.useRef(null), r = B.useState({
|
|
5807
|
+
onScrollCapture: lu,
|
|
5808
|
+
onWheelCapture: lu,
|
|
5809
|
+
onTouchMoveCapture: lu
|
|
5810
|
+
}), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, y = e.gapMode, b = Hl(e, [
|
|
5810
5811
|
"forwardProps",
|
|
5811
5812
|
"children",
|
|
5812
5813
|
"className",
|
|
@@ -5820,9 +5821,9 @@ var su = iu(), cu = function() {}, lu = z.forwardRef(function(e, t) {
|
|
|
5820
5821
|
"allowPinchZoom",
|
|
5821
5822
|
"as",
|
|
5822
5823
|
"gapMode"
|
|
5823
|
-
]), x = f, S =
|
|
5824
|
-
return
|
|
5825
|
-
sideCar:
|
|
5824
|
+
]), x = f, S = nu([n, t]), C = Vl(Vl({}, b), i);
|
|
5825
|
+
return B.createElement(B.Fragment, null, u && B.createElement(x, {
|
|
5826
|
+
sideCar: cu,
|
|
5826
5827
|
removeScrollBar: l,
|
|
5827
5828
|
shards: d,
|
|
5828
5829
|
noRelative: p,
|
|
@@ -5832,96 +5833,96 @@ var su = iu(), cu = function() {}, lu = z.forwardRef(function(e, t) {
|
|
|
5832
5833
|
allowPinchZoom: !!g,
|
|
5833
5834
|
lockRef: n,
|
|
5834
5835
|
gapMode: y
|
|
5835
|
-
}), o ?
|
|
5836
|
+
}), o ? B.cloneElement(B.Children.only(s), Vl(Vl({}, C), { ref: S })) : B.createElement(v, Vl({}, C, {
|
|
5836
5837
|
className: c,
|
|
5837
5838
|
ref: S
|
|
5838
5839
|
}), s));
|
|
5839
5840
|
});
|
|
5840
|
-
|
|
5841
|
+
uu.defaultProps = {
|
|
5841
5842
|
enabled: !0,
|
|
5842
5843
|
removeScrollBar: !0,
|
|
5843
5844
|
inert: !1
|
|
5844
|
-
},
|
|
5845
|
-
fullWidth:
|
|
5846
|
-
zeroRight:
|
|
5845
|
+
}, uu.classNames = {
|
|
5846
|
+
fullWidth: Yl,
|
|
5847
|
+
zeroRight: Jl
|
|
5847
5848
|
};
|
|
5848
5849
|
//#endregion
|
|
5849
5850
|
//#region ../node_modules/get-nonce/dist/es2015/index.js
|
|
5850
|
-
var
|
|
5851
|
-
if (
|
|
5851
|
+
var du, fu = function() {
|
|
5852
|
+
if (du) return du;
|
|
5852
5853
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
5853
5854
|
};
|
|
5854
5855
|
//#endregion
|
|
5855
5856
|
//#region ../node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
5856
|
-
function
|
|
5857
|
+
function pu() {
|
|
5857
5858
|
if (!document) return null;
|
|
5858
5859
|
var e = document.createElement("style");
|
|
5859
5860
|
e.type = "text/css";
|
|
5860
|
-
var t =
|
|
5861
|
+
var t = fu();
|
|
5861
5862
|
return t && e.setAttribute("nonce", t), e;
|
|
5862
5863
|
}
|
|
5863
|
-
function
|
|
5864
|
+
function mu(e, t) {
|
|
5864
5865
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
5865
5866
|
}
|
|
5866
|
-
function
|
|
5867
|
+
function hu(e) {
|
|
5867
5868
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
5868
5869
|
}
|
|
5869
|
-
var
|
|
5870
|
+
var gu = function() {
|
|
5870
5871
|
var e = 0, t = null;
|
|
5871
5872
|
return {
|
|
5872
5873
|
add: function(n) {
|
|
5873
|
-
e == 0 && (t =
|
|
5874
|
+
e == 0 && (t = pu()) && (mu(t, n), hu(t)), e++;
|
|
5874
5875
|
},
|
|
5875
5876
|
remove: function() {
|
|
5876
5877
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
5877
5878
|
}
|
|
5878
5879
|
};
|
|
5879
|
-
},
|
|
5880
|
-
var e =
|
|
5880
|
+
}, _u = function() {
|
|
5881
|
+
var e = gu();
|
|
5881
5882
|
return function(t, n) {
|
|
5882
|
-
|
|
5883
|
+
B.useEffect(function() {
|
|
5883
5884
|
return e.add(t), function() {
|
|
5884
5885
|
e.remove();
|
|
5885
5886
|
};
|
|
5886
5887
|
}, [t && n]);
|
|
5887
5888
|
};
|
|
5888
|
-
},
|
|
5889
|
-
var e =
|
|
5889
|
+
}, vu = function() {
|
|
5890
|
+
var e = _u();
|
|
5890
5891
|
return function(t) {
|
|
5891
5892
|
var n = t.styles, r = t.dynamic;
|
|
5892
5893
|
return e(n, r), null;
|
|
5893
5894
|
};
|
|
5894
|
-
},
|
|
5895
|
+
}, yu = {
|
|
5895
5896
|
left: 0,
|
|
5896
5897
|
top: 0,
|
|
5897
5898
|
right: 0,
|
|
5898
5899
|
gap: 0
|
|
5899
|
-
}, yu = function(e) {
|
|
5900
|
-
return parseInt(e || "", 10) || 0;
|
|
5901
5900
|
}, bu = function(e) {
|
|
5901
|
+
return parseInt(e || "", 10) || 0;
|
|
5902
|
+
}, xu = function(e) {
|
|
5902
5903
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
5903
5904
|
return [
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5905
|
+
bu(n),
|
|
5906
|
+
bu(r),
|
|
5907
|
+
bu(i)
|
|
5907
5908
|
];
|
|
5908
|
-
},
|
|
5909
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
5910
|
-
var t =
|
|
5909
|
+
}, Su = function(e) {
|
|
5910
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return yu;
|
|
5911
|
+
var t = xu(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
5911
5912
|
return {
|
|
5912
5913
|
left: t[0],
|
|
5913
5914
|
top: t[1],
|
|
5914
5915
|
right: t[2],
|
|
5915
5916
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
5916
5917
|
};
|
|
5917
|
-
},
|
|
5918
|
+
}, Cu = vu(), wu = "data-scroll-locked", Tu = function(e, t, n, r) {
|
|
5918
5919
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
5919
5920
|
return n === void 0 && (n = "margin"), `
|
|
5920
|
-
.${
|
|
5921
|
+
.${Xl} {
|
|
5921
5922
|
overflow: hidden ${r};
|
|
5922
5923
|
padding-right: ${s}px ${r};
|
|
5923
5924
|
}
|
|
5924
|
-
body[${
|
|
5925
|
+
body[${wu}] {
|
|
5925
5926
|
overflow: hidden ${r};
|
|
5926
5927
|
overscroll-behavior: contain;
|
|
5927
5928
|
${[
|
|
@@ -5938,122 +5939,122 @@ var hu = function() {
|
|
|
5938
5939
|
].filter(Boolean).join("")}
|
|
5939
5940
|
}
|
|
5940
5941
|
|
|
5941
|
-
.${
|
|
5942
|
+
.${Jl} {
|
|
5942
5943
|
right: ${s}px ${r};
|
|
5943
5944
|
}
|
|
5944
5945
|
|
|
5945
|
-
.${
|
|
5946
|
+
.${Yl} {
|
|
5946
5947
|
margin-right: ${s}px ${r};
|
|
5947
5948
|
}
|
|
5948
5949
|
|
|
5949
|
-
.${
|
|
5950
|
+
.${Jl} .${Jl} {
|
|
5950
5951
|
right: 0 ${r};
|
|
5951
5952
|
}
|
|
5952
5953
|
|
|
5953
|
-
.${
|
|
5954
|
+
.${Yl} .${Yl} {
|
|
5954
5955
|
margin-right: 0 ${r};
|
|
5955
5956
|
}
|
|
5956
5957
|
|
|
5957
|
-
body[${
|
|
5958
|
-
${
|
|
5958
|
+
body[${wu}] {
|
|
5959
|
+
${Zl}: ${s}px;
|
|
5959
5960
|
}
|
|
5960
5961
|
`;
|
|
5961
|
-
},
|
|
5962
|
+
}, Eu = function() {
|
|
5962
5963
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
5963
5964
|
return isFinite(e) ? e : 0;
|
|
5964
|
-
},
|
|
5965
|
-
|
|
5966
|
-
return document.body.setAttribute(
|
|
5967
|
-
var e =
|
|
5968
|
-
e <= 0 ? document.body.removeAttribute(
|
|
5965
|
+
}, Du = function() {
|
|
5966
|
+
B.useEffect(function() {
|
|
5967
|
+
return document.body.setAttribute(wu, (Eu() + 1).toString()), function() {
|
|
5968
|
+
var e = Eu() - 1;
|
|
5969
|
+
e <= 0 ? document.body.removeAttribute(wu) : document.body.setAttribute(wu, e.toString());
|
|
5969
5970
|
};
|
|
5970
5971
|
}, []);
|
|
5971
|
-
},
|
|
5972
|
+
}, Ou = function(e) {
|
|
5972
5973
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
5973
|
-
|
|
5974
|
-
var a =
|
|
5975
|
-
return
|
|
5974
|
+
Du();
|
|
5975
|
+
var a = B.useMemo(function() {
|
|
5976
|
+
return Su(i);
|
|
5976
5977
|
}, [i]);
|
|
5977
|
-
return
|
|
5978
|
-
},
|
|
5978
|
+
return B.createElement(Cu, { styles: Tu(a, !t, i, n ? "" : "!important") });
|
|
5979
|
+
}, ku = !1;
|
|
5979
5980
|
if (typeof window < "u") try {
|
|
5980
|
-
var
|
|
5981
|
-
return
|
|
5981
|
+
var Au = Object.defineProperty({}, "passive", { get: function() {
|
|
5982
|
+
return ku = !0, !0;
|
|
5982
5983
|
} });
|
|
5983
|
-
window.addEventListener("test",
|
|
5984
|
+
window.addEventListener("test", Au, Au), window.removeEventListener("test", Au, Au);
|
|
5984
5985
|
} catch {
|
|
5985
|
-
|
|
5986
|
+
ku = !1;
|
|
5986
5987
|
}
|
|
5987
|
-
var
|
|
5988
|
+
var ju = ku ? { passive: !1 } : !1, Mu = function(e) {
|
|
5988
5989
|
return e.tagName === "TEXTAREA";
|
|
5989
|
-
},
|
|
5990
|
+
}, Nu = function(e, t) {
|
|
5990
5991
|
if (!(e instanceof Element)) return !1;
|
|
5991
5992
|
var n = window.getComputedStyle(e);
|
|
5992
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
5993
|
-
}, Nu = function(e) {
|
|
5994
|
-
return Mu(e, "overflowY");
|
|
5993
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !Mu(e) && n[t] === "visible");
|
|
5995
5994
|
}, Pu = function(e) {
|
|
5996
|
-
return
|
|
5997
|
-
}, Fu = function(e
|
|
5995
|
+
return Nu(e, "overflowY");
|
|
5996
|
+
}, Fu = function(e) {
|
|
5997
|
+
return Nu(e, "overflowX");
|
|
5998
|
+
}, Iu = function(e, t) {
|
|
5998
5999
|
var n = t.ownerDocument, r = t;
|
|
5999
6000
|
do {
|
|
6000
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
6001
|
-
var i =
|
|
6001
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), zu(e, r)) {
|
|
6002
|
+
var i = Bu(e, r);
|
|
6002
6003
|
if (i[1] > i[2]) return !0;
|
|
6003
6004
|
}
|
|
6004
6005
|
r = r.parentNode;
|
|
6005
6006
|
} while (r && r !== n.body);
|
|
6006
6007
|
return !1;
|
|
6007
|
-
},
|
|
6008
|
+
}, Lu = function(e) {
|
|
6008
6009
|
return [
|
|
6009
6010
|
e.scrollTop,
|
|
6010
6011
|
e.scrollHeight,
|
|
6011
6012
|
e.clientHeight
|
|
6012
6013
|
];
|
|
6013
|
-
},
|
|
6014
|
+
}, Ru = function(e) {
|
|
6014
6015
|
return [
|
|
6015
6016
|
e.scrollLeft,
|
|
6016
6017
|
e.scrollWidth,
|
|
6017
6018
|
e.clientWidth
|
|
6018
6019
|
];
|
|
6019
|
-
}, Ru = function(e, t) {
|
|
6020
|
-
return e === "v" ? Nu(t) : Pu(t);
|
|
6021
6020
|
}, zu = function(e, t) {
|
|
6022
|
-
return e === "v" ?
|
|
6021
|
+
return e === "v" ? Pu(t) : Fu(t);
|
|
6023
6022
|
}, Bu = function(e, t) {
|
|
6023
|
+
return e === "v" ? Lu(t) : Ru(t);
|
|
6024
|
+
}, Vu = function(e, t) {
|
|
6024
6025
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
6025
|
-
},
|
|
6026
|
-
var a =
|
|
6026
|
+
}, Hu = function(e, t, n, r, i) {
|
|
6027
|
+
var a = Vu(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
6027
6028
|
do {
|
|
6028
6029
|
if (!s) break;
|
|
6029
|
-
var p =
|
|
6030
|
-
(m || h) &&
|
|
6030
|
+
var p = Bu(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
6031
|
+
(m || h) && zu(e, s) && (d += h, f += m);
|
|
6031
6032
|
var g = s.parentNode;
|
|
6032
6033
|
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
6033
6034
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
6034
6035
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
6035
|
-
}, Hu = function(e) {
|
|
6036
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
6037
6036
|
}, Uu = function(e) {
|
|
6038
|
-
return [e.
|
|
6037
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
6039
6038
|
}, Wu = function(e) {
|
|
6039
|
+
return [e.deltaX, e.deltaY];
|
|
6040
|
+
}, Gu = function(e) {
|
|
6040
6041
|
return e && "current" in e ? e.current : e;
|
|
6041
|
-
},
|
|
6042
|
+
}, Ku = function(e, t) {
|
|
6042
6043
|
return e[0] === t[0] && e[1] === t[1];
|
|
6043
|
-
},
|
|
6044
|
+
}, qu = function(e) {
|
|
6044
6045
|
return `
|
|
6045
6046
|
.block-interactivity-${e} {pointer-events: none;}
|
|
6046
6047
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
6047
6048
|
`;
|
|
6048
|
-
},
|
|
6049
|
-
function
|
|
6050
|
-
var t =
|
|
6051
|
-
|
|
6049
|
+
}, Ju = 0, Yu = [];
|
|
6050
|
+
function Xu(e) {
|
|
6051
|
+
var t = B.useRef([]), n = B.useRef([0, 0]), r = B.useRef(), i = B.useState(Ju++)[0], a = B.useState(vu)[0], o = B.useRef(e);
|
|
6052
|
+
B.useEffect(function() {
|
|
6052
6053
|
o.current = e;
|
|
6053
|
-
}, [e]),
|
|
6054
|
+
}, [e]), B.useEffect(function() {
|
|
6054
6055
|
if (e.inert) {
|
|
6055
6056
|
document.body.classList.add(`block-interactivity-${i}`);
|
|
6056
|
-
var t =
|
|
6057
|
+
var t = ql([e.lockRef.current], (e.shards || []).map(Gu), !0).filter(Boolean);
|
|
6057
6058
|
return t.forEach(function(e) {
|
|
6058
6059
|
return e.classList.add(`allow-interactivity-${i}`);
|
|
6059
6060
|
}), function() {
|
|
@@ -6067,147 +6068,147 @@ function Yu(e) {
|
|
|
6067
6068
|
e.lockRef.current,
|
|
6068
6069
|
e.shards
|
|
6069
6070
|
]);
|
|
6070
|
-
var s =
|
|
6071
|
+
var s = B.useCallback(function(e, t) {
|
|
6071
6072
|
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
|
|
6072
|
-
var i =
|
|
6073
|
+
var i = Uu(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";
|
|
6073
6074
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
6074
6075
|
var f = window.getSelection(), p = f && f.anchorNode;
|
|
6075
6076
|
if (p && (p === u || p.contains(u))) return !1;
|
|
6076
|
-
var m =
|
|
6077
|
+
var m = Iu(d, u);
|
|
6077
6078
|
if (!m) return !0;
|
|
6078
|
-
if (m ? l = d : (l = d === "v" ? "h" : "v", m =
|
|
6079
|
+
if (m ? l = d : (l = d === "v" ? "h" : "v", m = Iu(d, u)), !m) return !1;
|
|
6079
6080
|
if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
|
|
6080
6081
|
var h = r.current || l;
|
|
6081
|
-
return
|
|
6082
|
-
}, []), c =
|
|
6082
|
+
return Hu(h, t, e, h === "h" ? s : c, !0);
|
|
6083
|
+
}, []), c = B.useCallback(function(e) {
|
|
6083
6084
|
var n = e;
|
|
6084
|
-
if (!(!
|
|
6085
|
-
var r = "deltaY" in n ?
|
|
6086
|
-
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) &&
|
|
6085
|
+
if (!(!Yu.length || Yu[Yu.length - 1] !== a)) {
|
|
6086
|
+
var r = "deltaY" in n ? Wu(n) : Uu(n), i = t.current.filter(function(e) {
|
|
6087
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && Ku(e.delta, r);
|
|
6087
6088
|
})[0];
|
|
6088
6089
|
if (i && i.should) {
|
|
6089
6090
|
n.cancelable && n.preventDefault();
|
|
6090
6091
|
return;
|
|
6091
6092
|
}
|
|
6092
6093
|
if (!i) {
|
|
6093
|
-
var c = (o.current.shards || []).map(
|
|
6094
|
+
var c = (o.current.shards || []).map(Gu).filter(Boolean).filter(function(e) {
|
|
6094
6095
|
return e.contains(n.target);
|
|
6095
6096
|
});
|
|
6096
6097
|
(c.length > 0 ? s(n, c[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
6097
6098
|
}
|
|
6098
6099
|
}
|
|
6099
|
-
}, []), l =
|
|
6100
|
+
}, []), l = B.useCallback(function(e, n, r, i) {
|
|
6100
6101
|
var a = {
|
|
6101
6102
|
name: e,
|
|
6102
6103
|
delta: n,
|
|
6103
6104
|
target: r,
|
|
6104
6105
|
should: i,
|
|
6105
|
-
shadowParent:
|
|
6106
|
+
shadowParent: Zu(r)
|
|
6106
6107
|
};
|
|
6107
6108
|
t.current.push(a), setTimeout(function() {
|
|
6108
6109
|
t.current = t.current.filter(function(e) {
|
|
6109
6110
|
return e !== a;
|
|
6110
6111
|
});
|
|
6111
6112
|
}, 1);
|
|
6112
|
-
}, []), u =
|
|
6113
|
-
n.current =
|
|
6114
|
-
}, []), d =
|
|
6113
|
+
}, []), u = B.useCallback(function(e) {
|
|
6114
|
+
n.current = Uu(e), r.current = void 0;
|
|
6115
|
+
}, []), d = B.useCallback(function(t) {
|
|
6116
|
+
l(t.type, Wu(t), t.target, s(t, e.lockRef.current));
|
|
6117
|
+
}, []), f = B.useCallback(function(t) {
|
|
6115
6118
|
l(t.type, Uu(t), t.target, s(t, e.lockRef.current));
|
|
6116
|
-
}, []), f = z.useCallback(function(t) {
|
|
6117
|
-
l(t.type, Hu(t), t.target, s(t, e.lockRef.current));
|
|
6118
6119
|
}, []);
|
|
6119
|
-
|
|
6120
|
-
return
|
|
6120
|
+
B.useEffect(function() {
|
|
6121
|
+
return Yu.push(a), e.setCallbacks({
|
|
6121
6122
|
onScrollCapture: d,
|
|
6122
6123
|
onWheelCapture: d,
|
|
6123
6124
|
onTouchMoveCapture: f
|
|
6124
|
-
}), document.addEventListener("wheel", c,
|
|
6125
|
-
|
|
6125
|
+
}), document.addEventListener("wheel", c, ju), document.addEventListener("touchmove", c, ju), document.addEventListener("touchstart", u, ju), function() {
|
|
6126
|
+
Yu = Yu.filter(function(e) {
|
|
6126
6127
|
return e !== a;
|
|
6127
|
-
}), document.removeEventListener("wheel", c,
|
|
6128
|
+
}), document.removeEventListener("wheel", c, ju), document.removeEventListener("touchmove", c, ju), document.removeEventListener("touchstart", u, ju);
|
|
6128
6129
|
};
|
|
6129
6130
|
}, []);
|
|
6130
6131
|
var p = e.removeScrollBar, m = e.inert;
|
|
6131
|
-
return
|
|
6132
|
+
return B.createElement(B.Fragment, null, m ? B.createElement(a, { styles: qu(i) }) : null, p ? B.createElement(Ou, {
|
|
6132
6133
|
noRelative: e.noRelative,
|
|
6133
6134
|
gapMode: e.gapMode
|
|
6134
6135
|
}) : null);
|
|
6135
6136
|
}
|
|
6136
|
-
function
|
|
6137
|
+
function Zu(e) {
|
|
6137
6138
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
6138
6139
|
return t;
|
|
6139
6140
|
}
|
|
6140
6141
|
//#endregion
|
|
6141
6142
|
//#region ../node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
6142
|
-
var
|
|
6143
|
-
return
|
|
6143
|
+
var Qu = su(cu, Xu), $u = B.forwardRef(function(e, t) {
|
|
6144
|
+
return B.createElement(uu, Vl({}, e, {
|
|
6144
6145
|
ref: t,
|
|
6145
|
-
sideCar:
|
|
6146
|
+
sideCar: Qu
|
|
6146
6147
|
}));
|
|
6147
6148
|
});
|
|
6148
|
-
|
|
6149
|
+
$u.classNames = uu.classNames;
|
|
6149
6150
|
//#endregion
|
|
6150
6151
|
//#region ../node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
6151
|
-
var
|
|
6152
|
-
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s =
|
|
6152
|
+
var ed = "Popover", [td, nd] = Ga(ed, [tl]), rd = tl(), [id, ad] = td(ed), od = (e) => {
|
|
6153
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = rd(t), c = B.useRef(null), [l, u] = B.useState(!1), [d, f] = kl({
|
|
6153
6154
|
prop: r,
|
|
6154
6155
|
defaultProp: i ?? !1,
|
|
6155
6156
|
onChange: a,
|
|
6156
|
-
caller:
|
|
6157
|
+
caller: ed
|
|
6157
6158
|
});
|
|
6158
|
-
return /* @__PURE__ */ (0,
|
|
6159
|
+
return /* @__PURE__ */ (0, V.jsx)(_l, {
|
|
6159
6160
|
...s,
|
|
6160
|
-
children: /* @__PURE__ */ (0,
|
|
6161
|
+
children: /* @__PURE__ */ (0, V.jsx)(id, {
|
|
6161
6162
|
scope: t,
|
|
6162
6163
|
contentId: zo(),
|
|
6163
6164
|
triggerRef: c,
|
|
6164
6165
|
open: d,
|
|
6165
6166
|
onOpenChange: f,
|
|
6166
|
-
onOpenToggle:
|
|
6167
|
+
onOpenToggle: B.useCallback(() => f((e) => !e), [f]),
|
|
6167
6168
|
hasCustomAnchor: l,
|
|
6168
|
-
onCustomAnchorAdd:
|
|
6169
|
-
onCustomAnchorRemove:
|
|
6169
|
+
onCustomAnchorAdd: B.useCallback(() => u(!0), []),
|
|
6170
|
+
onCustomAnchorRemove: B.useCallback(() => u(!1), []),
|
|
6170
6171
|
modal: o,
|
|
6171
6172
|
children: n
|
|
6172
6173
|
})
|
|
6173
6174
|
});
|
|
6174
6175
|
};
|
|
6175
|
-
|
|
6176
|
-
var
|
|
6177
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
6178
|
-
return
|
|
6176
|
+
od.displayName = ed;
|
|
6177
|
+
var sd = "PopoverAnchor", cd = B.forwardRef((e, t) => {
|
|
6178
|
+
let { __scopePopover: n, ...r } = e, i = ad(sd, n), a = rd(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
6179
|
+
return B.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ (0, V.jsx)(vl, {
|
|
6179
6180
|
...a,
|
|
6180
6181
|
...r,
|
|
6181
6182
|
ref: t
|
|
6182
6183
|
});
|
|
6183
6184
|
});
|
|
6184
|
-
|
|
6185
|
-
var
|
|
6186
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
6185
|
+
cd.displayName = sd;
|
|
6186
|
+
var ld = "PopoverTrigger", ud = B.forwardRef((e, t) => {
|
|
6187
|
+
let { __scopePopover: n, ...r } = e, i = ad(ld, n), a = rd(n), o = Wa(t, i.triggerRef), s = /* @__PURE__ */ (0, V.jsx)($a.button, {
|
|
6187
6188
|
type: "button",
|
|
6188
6189
|
"aria-haspopup": "dialog",
|
|
6189
6190
|
"aria-expanded": i.open,
|
|
6190
6191
|
"aria-controls": i.contentId,
|
|
6191
|
-
"data-state":
|
|
6192
|
+
"data-state": Td(i.open),
|
|
6192
6193
|
...r,
|
|
6193
6194
|
ref: o,
|
|
6194
6195
|
onClick: Va(e.onClick, i.onOpenToggle)
|
|
6195
6196
|
});
|
|
6196
|
-
return i.hasCustomAnchor ? s : /* @__PURE__ */ (0,
|
|
6197
|
+
return i.hasCustomAnchor ? s : /* @__PURE__ */ (0, V.jsx)(vl, {
|
|
6197
6198
|
asChild: !0,
|
|
6198
6199
|
...a,
|
|
6199
6200
|
children: s
|
|
6200
6201
|
});
|
|
6201
6202
|
});
|
|
6202
|
-
|
|
6203
|
-
var
|
|
6204
|
-
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a =
|
|
6205
|
-
return /* @__PURE__ */ (0,
|
|
6203
|
+
ud.displayName = ld;
|
|
6204
|
+
var dd = "PopoverPortal", [fd, pd] = td(dd, { forceMount: void 0 }), md = (e) => {
|
|
6205
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = ad(dd, t);
|
|
6206
|
+
return /* @__PURE__ */ (0, V.jsx)(fd, {
|
|
6206
6207
|
scope: t,
|
|
6207
6208
|
forceMount: n,
|
|
6208
|
-
children: /* @__PURE__ */ (0,
|
|
6209
|
+
children: /* @__PURE__ */ (0, V.jsx)(wl, {
|
|
6209
6210
|
present: n || a.open,
|
|
6210
|
-
children: /* @__PURE__ */ (0,
|
|
6211
|
+
children: /* @__PURE__ */ (0, V.jsx)(Sl, {
|
|
6211
6212
|
asChild: !0,
|
|
6212
6213
|
container: i,
|
|
6213
6214
|
children: r
|
|
@@ -6215,30 +6216,30 @@ var ud = "PopoverPortal", [dd, fd] = ed(ud, { forceMount: void 0 }), pd = (e) =>
|
|
|
6215
6216
|
})
|
|
6216
6217
|
});
|
|
6217
6218
|
};
|
|
6218
|
-
|
|
6219
|
-
var
|
|
6220
|
-
let n =
|
|
6221
|
-
return /* @__PURE__ */ (0,
|
|
6219
|
+
md.displayName = dd;
|
|
6220
|
+
var hd = "PopoverContent", gd = B.forwardRef((e, t) => {
|
|
6221
|
+
let n = pd(hd, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = ad(hd, e.__scopePopover);
|
|
6222
|
+
return /* @__PURE__ */ (0, V.jsx)(wl, {
|
|
6222
6223
|
present: r || a.open,
|
|
6223
|
-
children: a.modal ? /* @__PURE__ */ (0,
|
|
6224
|
+
children: a.modal ? /* @__PURE__ */ (0, V.jsx)(vd, {
|
|
6224
6225
|
...i,
|
|
6225
6226
|
ref: t
|
|
6226
|
-
}) : /* @__PURE__ */ (0,
|
|
6227
|
+
}) : /* @__PURE__ */ (0, V.jsx)(yd, {
|
|
6227
6228
|
...i,
|
|
6228
6229
|
ref: t
|
|
6229
6230
|
})
|
|
6230
6231
|
});
|
|
6231
6232
|
});
|
|
6232
|
-
|
|
6233
|
-
var
|
|
6234
|
-
let n =
|
|
6235
|
-
return
|
|
6233
|
+
gd.displayName = hd;
|
|
6234
|
+
var _d = /* @__PURE__ */ qa("PopoverContent.RemoveScroll"), vd = B.forwardRef((e, t) => {
|
|
6235
|
+
let n = ad(hd, e.__scopePopover), r = B.useRef(null), i = Wa(t, r), a = B.useRef(!1);
|
|
6236
|
+
return B.useEffect(() => {
|
|
6236
6237
|
let e = r.current;
|
|
6237
|
-
if (e) return
|
|
6238
|
-
}, []), /* @__PURE__ */ (0,
|
|
6239
|
-
as:
|
|
6238
|
+
if (e) return Bl(e);
|
|
6239
|
+
}, []), /* @__PURE__ */ (0, V.jsx)($u, {
|
|
6240
|
+
as: _d,
|
|
6240
6241
|
allowPinchZoom: !0,
|
|
6241
|
-
children: /* @__PURE__ */ (0,
|
|
6242
|
+
children: /* @__PURE__ */ (0, V.jsx)(bd, {
|
|
6242
6243
|
...e,
|
|
6243
6244
|
ref: i,
|
|
6244
6245
|
trapFocus: n.open,
|
|
@@ -6253,9 +6254,9 @@ var gd = /* @__PURE__ */ qa("PopoverContent.RemoveScroll"), _d = z.forwardRef((e
|
|
|
6253
6254
|
onFocusOutside: Va(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
6254
6255
|
})
|
|
6255
6256
|
});
|
|
6256
|
-
}),
|
|
6257
|
-
let n =
|
|
6258
|
-
return /* @__PURE__ */ (0,
|
|
6257
|
+
}), yd = B.forwardRef((e, t) => {
|
|
6258
|
+
let n = ad(hd, e.__scopePopover), r = B.useRef(!1), i = B.useRef(!1);
|
|
6259
|
+
return /* @__PURE__ */ (0, V.jsx)(bd, {
|
|
6259
6260
|
...e,
|
|
6260
6261
|
ref: t,
|
|
6261
6262
|
trapFocus: !1,
|
|
@@ -6269,15 +6270,15 @@ var gd = /* @__PURE__ */ qa("PopoverContent.RemoveScroll"), _d = z.forwardRef((e
|
|
|
6269
6270
|
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
6270
6271
|
}
|
|
6271
6272
|
});
|
|
6272
|
-
}),
|
|
6273
|
-
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...d } = e, f =
|
|
6274
|
-
return vo(), /* @__PURE__ */ (0,
|
|
6273
|
+
}), bd = B.forwardRef((e, t) => {
|
|
6274
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...d } = e, f = ad(hd, n), p = rd(n);
|
|
6275
|
+
return vo(), /* @__PURE__ */ (0, V.jsx)(wo, {
|
|
6275
6276
|
asChild: !0,
|
|
6276
6277
|
loop: !0,
|
|
6277
6278
|
trapped: r,
|
|
6278
6279
|
onMountAutoFocus: i,
|
|
6279
6280
|
onUnmountAutoFocus: a,
|
|
6280
|
-
children: /* @__PURE__ */ (0,
|
|
6281
|
+
children: /* @__PURE__ */ (0, V.jsx)(lo, {
|
|
6281
6282
|
asChild: !0,
|
|
6282
6283
|
disableOutsidePointerEvents: o,
|
|
6283
6284
|
onInteractOutside: u,
|
|
@@ -6285,8 +6286,8 @@ var gd = /* @__PURE__ */ qa("PopoverContent.RemoveScroll"), _d = z.forwardRef((e
|
|
|
6285
6286
|
onPointerDownOutside: c,
|
|
6286
6287
|
onFocusOutside: l,
|
|
6287
6288
|
onDismiss: () => f.onOpenChange(!1),
|
|
6288
|
-
children: /* @__PURE__ */ (0,
|
|
6289
|
-
"data-state":
|
|
6289
|
+
children: /* @__PURE__ */ (0, V.jsx)(yl, {
|
|
6290
|
+
"data-state": Td(f.open),
|
|
6290
6291
|
role: "dialog",
|
|
6291
6292
|
id: f.contentId,
|
|
6292
6293
|
...p,
|
|
@@ -6303,127 +6304,127 @@ var gd = /* @__PURE__ */ qa("PopoverContent.RemoveScroll"), _d = z.forwardRef((e
|
|
|
6303
6304
|
})
|
|
6304
6305
|
})
|
|
6305
6306
|
});
|
|
6306
|
-
}),
|
|
6307
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
6308
|
-
return /* @__PURE__ */ (0,
|
|
6307
|
+
}), xd = "PopoverClose", Sd = B.forwardRef((e, t) => {
|
|
6308
|
+
let { __scopePopover: n, ...r } = e, i = ad(xd, n);
|
|
6309
|
+
return /* @__PURE__ */ (0, V.jsx)($a.button, {
|
|
6309
6310
|
type: "button",
|
|
6310
6311
|
...r,
|
|
6311
6312
|
ref: t,
|
|
6312
6313
|
onClick: Va(e.onClick, () => i.onOpenChange(!1))
|
|
6313
6314
|
});
|
|
6314
6315
|
});
|
|
6315
|
-
|
|
6316
|
-
var
|
|
6317
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
6318
|
-
return /* @__PURE__ */ (0,
|
|
6316
|
+
Sd.displayName = xd;
|
|
6317
|
+
var Cd = "PopoverArrow", wd = B.forwardRef((e, t) => {
|
|
6318
|
+
let { __scopePopover: n, ...r } = e, i = rd(n);
|
|
6319
|
+
return /* @__PURE__ */ (0, V.jsx)(bl, {
|
|
6319
6320
|
...i,
|
|
6320
6321
|
...r,
|
|
6321
6322
|
ref: t
|
|
6322
6323
|
});
|
|
6323
6324
|
});
|
|
6324
|
-
|
|
6325
|
-
function
|
|
6325
|
+
wd.displayName = Cd;
|
|
6326
|
+
function Td(e) {
|
|
6326
6327
|
return e ? "open" : "closed";
|
|
6327
6328
|
}
|
|
6328
|
-
var
|
|
6329
|
+
var Ed = od, Dd = ud, Od = gd, kd = wd, Ad = ({ message: e, trigger: t, initialVisibility: n = !1 }) => /* @__PURE__ */ (0, V.jsxs)(Ed, {
|
|
6329
6330
|
defaultOpen: n,
|
|
6330
|
-
children: [/* @__PURE__ */ (0,
|
|
6331
|
+
children: [/* @__PURE__ */ (0, V.jsx)("div", {
|
|
6331
6332
|
className: "flex justify-center",
|
|
6332
|
-
children: /* @__PURE__ */ (0,
|
|
6333
|
+
children: /* @__PURE__ */ (0, V.jsx)(Dd, {
|
|
6333
6334
|
asChild: !0,
|
|
6334
6335
|
children: t
|
|
6335
6336
|
})
|
|
6336
|
-
}), /* @__PURE__ */ (0,
|
|
6337
|
+
}), /* @__PURE__ */ (0, V.jsxs)(Od, {
|
|
6337
6338
|
className: "sid-popover__container",
|
|
6338
6339
|
sideOffset: 10,
|
|
6339
6340
|
side: "bottom",
|
|
6340
|
-
children: [e, /* @__PURE__ */ (0,
|
|
6341
|
+
children: [e, /* @__PURE__ */ (0, V.jsx)(kd, { className: "sid-popover__caret" })]
|
|
6341
6342
|
})]
|
|
6342
|
-
}),
|
|
6343
|
+
}), jd = ({ verificationService: e, initialVisibility: t = !1 }) => {
|
|
6343
6344
|
let n = Ce();
|
|
6344
|
-
return /* @__PURE__ */ (0,
|
|
6345
|
+
return /* @__PURE__ */ (0, V.jsx)(Ad, {
|
|
6345
6346
|
initialVisibility: t,
|
|
6346
|
-
trigger: /* @__PURE__ */ (0,
|
|
6347
|
+
trigger: /* @__PURE__ */ (0, V.jsx)("button", {
|
|
6347
6348
|
type: "button",
|
|
6348
6349
|
className: "sid-h-btn-link-like sid-link sid-how-does-verifying-work-hoverable",
|
|
6349
|
-
children: /* @__PURE__ */ (0,
|
|
6350
|
+
children: /* @__PURE__ */ (0, V.jsx)(z, { id: "howDoesVerifyingWork" })
|
|
6350
6351
|
}),
|
|
6351
|
-
message: /* @__PURE__ */ (0,
|
|
6352
|
-
/* @__PURE__ */ (0,
|
|
6352
|
+
message: /* @__PURE__ */ (0, V.jsxs)("div", { children: [
|
|
6353
|
+
/* @__PURE__ */ (0, V.jsx)(z, {
|
|
6353
6354
|
id: "step.personalInfo.howDoesVerifyingWorkDetails",
|
|
6354
6355
|
context: n
|
|
6355
6356
|
}),
|
|
6356
6357
|
"\xA0",
|
|
6357
|
-
/* @__PURE__ */ (0,
|
|
6358
|
+
/* @__PURE__ */ (0, V.jsx)(Ei, { verificationService: e })
|
|
6358
6359
|
] })
|
|
6359
6360
|
});
|
|
6360
|
-
},
|
|
6361
|
+
}, Md = ({ verificationService: e }) => {
|
|
6361
6362
|
let t = h(() => e.programTheme.remainingRewardCodes, null);
|
|
6362
|
-
return typeof t == "number" && t > 0 ? /* @__PURE__ */ (0,
|
|
6363
|
+
return typeof t == "number" && t > 0 ? /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
6363
6364
|
className: "sid-rewards-remaining",
|
|
6364
6365
|
role: "note",
|
|
6365
6366
|
children: [
|
|
6366
|
-
/* @__PURE__ */ (0,
|
|
6367
|
-
/* @__PURE__ */ (0,
|
|
6367
|
+
/* @__PURE__ */ (0, V.jsx)("div", { className: "sid-l-space-top-md" }),
|
|
6368
|
+
/* @__PURE__ */ (0, V.jsx)(L, {
|
|
6368
6369
|
id: "lowRewardPool",
|
|
6369
6370
|
defaultMessage: e.messages.lowRewardPool,
|
|
6370
6371
|
values: { offersRemaining: t }
|
|
6371
6372
|
}),
|
|
6372
|
-
/* @__PURE__ */ (0,
|
|
6373
|
+
/* @__PURE__ */ (0, V.jsx)("div", { className: "sid-l-space-top-sm" })
|
|
6373
6374
|
]
|
|
6374
6375
|
}) : null;
|
|
6375
|
-
},
|
|
6376
|
-
let { verificationResponse: n } = e, r =
|
|
6377
|
-
return /* @__PURE__ */ (0,
|
|
6376
|
+
}, Nd = (e) => e !== void 0, Pd = ({ verificationService: e, classNameIdentifier: t = void 0 }) => {
|
|
6377
|
+
let { verificationResponse: n } = e, r = Nd(n) ? Ne(n) : !1, i = r ? "step.personalInfo.tryAgain.title" : "step.personalInfo.title", a = r ? "step.personalInfo.tryAgain.subtitle" : "step.personalInfo.subtitle";
|
|
6378
|
+
return /* @__PURE__ */ (0, V.jsx)("div", {
|
|
6378
6379
|
className: "sid-personal-info-header",
|
|
6379
|
-
children: /* @__PURE__ */ (0,
|
|
6380
|
+
children: /* @__PURE__ */ (0, V.jsxs)(Ba, {
|
|
6380
6381
|
verificationService: e,
|
|
6381
|
-
title: /* @__PURE__ */ (0,
|
|
6382
|
+
title: /* @__PURE__ */ (0, V.jsx)(z, {
|
|
6382
6383
|
id: i,
|
|
6383
6384
|
context: n.segment
|
|
6384
6385
|
}),
|
|
6385
6386
|
classNameIdentifier: t,
|
|
6386
6387
|
children: [
|
|
6387
|
-
/* @__PURE__ */ (0,
|
|
6388
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
6388
6389
|
className: `sid-header__subtitle sid-l-horz-center ${r ? "sid-header__subtitle--error" : ""}`,
|
|
6389
|
-
children: /* @__PURE__ */ (0,
|
|
6390
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, { id: a })
|
|
6390
6391
|
}),
|
|
6391
|
-
/* @__PURE__ */ (0,
|
|
6392
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
6392
6393
|
className: "sid-header__how-verifying-works sid-l-horz-center",
|
|
6393
|
-
children: !r && /* @__PURE__ */ (0,
|
|
6394
|
+
children: !r && /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(jd, { verificationService: e }), /* @__PURE__ */ (0, V.jsx)(Md, { verificationService: e })] })
|
|
6394
6395
|
}),
|
|
6395
|
-
/* @__PURE__ */ (0,
|
|
6396
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
6396
6397
|
className: "sid-h-medium-text sid-l-space-btm-sm sid-l-space-top-sm",
|
|
6397
|
-
children: /* @__PURE__ */ (0,
|
|
6398
|
+
children: /* @__PURE__ */ (0, V.jsx)(L, { id: "requiredFields" })
|
|
6398
6399
|
})
|
|
6399
6400
|
]
|
|
6400
6401
|
})
|
|
6401
6402
|
});
|
|
6402
|
-
},
|
|
6403
|
-
let { isEmbedded: i } =
|
|
6404
|
-
return !r || i ? /* @__PURE__ */ (0,
|
|
6403
|
+
}, Fd = () => ({ isEmbedded: !!D("verificationIframeUid") }), Id = ({ layout: e, children: t, verificationService: n, renderAsLandingPage: r }) => {
|
|
6404
|
+
let { isEmbedded: i } = Fd();
|
|
6405
|
+
return !r || i ? /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: t }) : /* @__PURE__ */ (0, V.jsx)("div", {
|
|
6405
6406
|
className: `sid-layout sid-layout--${e}`,
|
|
6406
|
-
children: /* @__PURE__ */ (0,
|
|
6407
|
+
children: /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
6407
6408
|
className: "sid-layout__container",
|
|
6408
|
-
children: [e === "fullRight" && /* @__PURE__ */ (0,
|
|
6409
|
+
children: [e === "fullRight" && /* @__PURE__ */ (0, V.jsx)("div", {
|
|
6409
6410
|
className: "sid-layout__content",
|
|
6410
|
-
children: /* @__PURE__ */ (0,
|
|
6411
|
+
children: /* @__PURE__ */ (0, V.jsx)(Pd, {
|
|
6411
6412
|
verificationService: n,
|
|
6412
6413
|
classNameIdentifier: "landing"
|
|
6413
6414
|
})
|
|
6414
|
-
}), /* @__PURE__ */ (0,
|
|
6415
|
+
}), /* @__PURE__ */ (0, V.jsx)("div", {
|
|
6415
6416
|
className: "sid-layout__form-container",
|
|
6416
|
-
children: /* @__PURE__ */ (0,
|
|
6417
|
+
children: /* @__PURE__ */ (0, V.jsx)("div", {
|
|
6417
6418
|
className: "sid-layout__form",
|
|
6418
6419
|
children: t
|
|
6419
6420
|
})
|
|
6420
6421
|
})]
|
|
6421
6422
|
})
|
|
6422
6423
|
});
|
|
6423
|
-
},
|
|
6424
|
+
}, Ld = ({ children: e }) => /* @__PURE__ */ (0, V.jsx)("div", {
|
|
6424
6425
|
className: "sid sid-form-wrapper",
|
|
6425
6426
|
children: e
|
|
6426
|
-
}),
|
|
6427
|
+
}), Rd = {
|
|
6427
6428
|
"doc-upload-redesign-use-legacy-message-keys": !1,
|
|
6428
6429
|
"doc-upload-may24": "default",
|
|
6429
6430
|
"include-cvec-field-france-student": "default",
|
|
@@ -6431,7 +6432,7 @@ var Td = ad, Ed = ld, Dd = hd, Od = Cd, kd = ({ message: e, trigger: t, initialV
|
|
|
6431
6432
|
"org-search-overlay": "default",
|
|
6432
6433
|
"org-selected-display": "default",
|
|
6433
6434
|
"hc-open-org-warning": "control"
|
|
6434
|
-
},
|
|
6435
|
+
}, zd = "_flagOverride", Bd = (e = Rd, t = window.location.href) => new URL(t).searchParams.getAll(zd).reduce((t, n) => {
|
|
6435
6436
|
let [r, i] = n.split(":");
|
|
6436
6437
|
if (!r || !i || !Object.keys(e).includes(r)) return t;
|
|
6437
6438
|
let a = i === "true" || i === "false" ? JSON.parse(i) : i;
|
|
@@ -6439,21 +6440,21 @@ var Td = ad, Ed = ld, Dd = hd, Od = Cd, kd = ({ message: e, trigger: t, initialV
|
|
|
6439
6440
|
...t,
|
|
6440
6441
|
[r]: a
|
|
6441
6442
|
};
|
|
6442
|
-
}, {}),
|
|
6443
|
-
let e = gi(), t =
|
|
6443
|
+
}, {}), Vd = () => {
|
|
6444
|
+
let e = gi(), t = Bd();
|
|
6444
6445
|
return {
|
|
6445
6446
|
...e,
|
|
6446
6447
|
...t
|
|
6447
6448
|
};
|
|
6448
6449
|
};
|
|
6449
|
-
function
|
|
6450
|
-
return
|
|
6450
|
+
function Hd(e) {
|
|
6451
|
+
return Vd()[e];
|
|
6451
6452
|
}
|
|
6452
6453
|
//#endregion
|
|
6453
6454
|
//#region src/components/NewVerificationInnerComponent.tsx
|
|
6454
|
-
var
|
|
6455
|
-
let o = _i(), s = w(), c = i.programTheme.themeChoices?.landingPage.layout || "center", { renderAs: u } = s, p =
|
|
6456
|
-
return
|
|
6455
|
+
var Ud = ({ locale: e, messages: t, programTheme: r, verificationService: i, programId: a }) => {
|
|
6456
|
+
let o = _i(), s = w(), c = i.programTheme.themeChoices?.landingPage.layout || "center", { renderAs: u } = s, p = Vd();
|
|
6457
|
+
return B.useEffect(() => {
|
|
6457
6458
|
try {
|
|
6458
6459
|
if (p && i && i.viewModel) {
|
|
6459
6460
|
let e = (0, vi.default)(p);
|
|
@@ -6468,7 +6469,7 @@ var Hd = ({ locale: e, messages: t, programTheme: r, verificationService: i, pro
|
|
|
6468
6469
|
} catch (e) {
|
|
6469
6470
|
d.error(e);
|
|
6470
6471
|
}
|
|
6471
|
-
}, []),
|
|
6472
|
+
}, []), B.useEffect(() => {
|
|
6472
6473
|
if (i.verificationResponse.verificationId && s._launchDarklyUserTargeting && o) {
|
|
6473
6474
|
let e = {
|
|
6474
6475
|
kind: "multi",
|
|
@@ -6482,31 +6483,31 @@ var Hd = ({ locale: e, messages: t, programTheme: r, verificationService: i, pro
|
|
|
6482
6483
|
};
|
|
6483
6484
|
r.accountId && (e.account = { key: r.accountId }), o.identify(e);
|
|
6484
6485
|
}
|
|
6485
|
-
}, [i.verificationResponse.verificationId, o]),
|
|
6486
|
+
}, [i.verificationResponse.verificationId, o]), B.useEffect(() => {
|
|
6486
6487
|
try {
|
|
6487
6488
|
w()._launchDarklyFlagCb(p);
|
|
6488
6489
|
} catch {}
|
|
6489
|
-
}, [p]), /* @__PURE__ */ (0,
|
|
6490
|
+
}, [p]), /* @__PURE__ */ (0, V.jsx)(te, {
|
|
6490
6491
|
locale: "en",
|
|
6491
6492
|
messages: {
|
|
6492
6493
|
...t,
|
|
6493
6494
|
...(0, ht.default)(l(e))
|
|
6494
6495
|
},
|
|
6495
6496
|
textComponent: Ra,
|
|
6496
|
-
children: /* @__PURE__ */ (0,
|
|
6497
|
+
children: /* @__PURE__ */ (0, V.jsx)(xi, {
|
|
6497
6498
|
themeChoices: r.themeChoices,
|
|
6498
6499
|
customCssFromOptions: w().customCss,
|
|
6499
|
-
children: /* @__PURE__ */ (0,
|
|
6500
|
+
children: /* @__PURE__ */ (0, V.jsx)("div", {
|
|
6500
6501
|
className: `${bt.default.isRtlLang(n(e)) ? "sid-rtl" : "sid-ltr"} sid-locale-${e}`,
|
|
6501
|
-
children: /* @__PURE__ */ (0,
|
|
6502
|
+
children: /* @__PURE__ */ (0, V.jsx)(Ld, { children: /* @__PURE__ */ (0, V.jsx)(Id, {
|
|
6502
6503
|
layout: c,
|
|
6503
6504
|
verificationService: i,
|
|
6504
6505
|
renderAsLandingPage: u === "landingPage",
|
|
6505
|
-
children: /* @__PURE__ */ (0,
|
|
6506
|
-
fallback: /* @__PURE__ */ (0,
|
|
6507
|
-
children: /* @__PURE__ */ (0,
|
|
6506
|
+
children: /* @__PURE__ */ (0, V.jsx)(B.Suspense, {
|
|
6507
|
+
fallback: /* @__PURE__ */ (0, V.jsx)(vt, { step: i.loadingStep }),
|
|
6508
|
+
children: /* @__PURE__ */ (0, V.jsx)(pt, {
|
|
6508
6509
|
i18n: f,
|
|
6509
|
-
children: i.isLoading ? /* @__PURE__ */ (0,
|
|
6510
|
+
children: i.isLoading ? /* @__PURE__ */ (0, V.jsx)(vt, { step: i.loadingStep }) : /* @__PURE__ */ (0, V.jsxs)("div", { children: [!w().hideTestModeFlag && /* @__PURE__ */ (0, V.jsx)(za, { verificationService: i }), /* @__PURE__ */ (0, V.jsx)(La, {
|
|
6510
6511
|
stepToLoad: i.overrideStep || i.verificationResponse.currentStep,
|
|
6511
6512
|
verificationService: i
|
|
6512
6513
|
})] })
|
|
@@ -6516,7 +6517,7 @@ var Hd = ({ locale: e, messages: t, programTheme: r, verificationService: i, pro
|
|
|
6516
6517
|
})
|
|
6517
6518
|
})
|
|
6518
6519
|
}, e);
|
|
6519
|
-
},
|
|
6520
|
+
}, Wd = () => {
|
|
6520
6521
|
let e = null;
|
|
6521
6522
|
document.addEventListener("keydown", (t) => {
|
|
6522
6523
|
if (t.key !== "Tab") return;
|
|
@@ -6531,17 +6532,17 @@ var Hd = ({ locale: e, messages: t, programTheme: r, verificationService: i, pro
|
|
|
6531
6532
|
type: "focus",
|
|
6532
6533
|
focusOn: "firstElement"
|
|
6533
6534
|
});
|
|
6534
|
-
},
|
|
6535
|
+
}, Gd = () => {
|
|
6535
6536
|
window.addEventListener("message", (e) => {
|
|
6536
|
-
e.data.isInLightBox === "true" &&
|
|
6537
|
+
e.data.isInLightBox === "true" && Wd();
|
|
6537
6538
|
});
|
|
6538
|
-
},
|
|
6539
|
+
}, Kd = class extends B.Component {
|
|
6539
6540
|
verificationService;
|
|
6540
6541
|
constructor(e) {
|
|
6541
6542
|
super(e), d.info("NewVerificationComponent: constructing"), this.props.trackingId && this.props.trackingId.length ? d.info(`Attaching a trackingId to this verification request ${this.props.trackingId}`) : d.info("No trackingId to associate with the verification request");
|
|
6542
6543
|
}
|
|
6543
6544
|
componentDidMount() {
|
|
6544
|
-
if (O(),
|
|
6545
|
+
if (O(), Gd(), He((e) => {
|
|
6545
6546
|
switch (e.data.action) {
|
|
6546
6547
|
case "setViewModel":
|
|
6547
6548
|
Oe(e.data.viewModel, {
|
|
@@ -6555,7 +6556,7 @@ var Hd = ({ locale: e, messages: t, programTheme: r, verificationService: i, pro
|
|
|
6555
6556
|
break;
|
|
6556
6557
|
default:
|
|
6557
6558
|
}
|
|
6558
|
-
}),
|
|
6559
|
+
}), Re()) d.info("Mocking loading screen. Not fetching new verification request.");
|
|
6559
6560
|
else {
|
|
6560
6561
|
d.info("NewVerificationComponent: fetchNewVerificationRequest");
|
|
6561
6562
|
let e = h(() => this.props.verificationService.verificationResponse.segment);
|
|
@@ -6569,14 +6570,14 @@ var Hd = ({ locale: e, messages: t, programTheme: r, verificationService: i, pro
|
|
|
6569
6570
|
...r,
|
|
6570
6571
|
...(0, ht.default)(l(n))
|
|
6571
6572
|
};
|
|
6572
|
-
if (this.props.verificationService.isLoading && !this.props.verificationService.loadingStep) return d.info("NewVerificationComponent: VerificationService is loading"), /* @__PURE__ */ (0,
|
|
6573
|
+
if (this.props.verificationService.isLoading && !this.props.verificationService.loadingStep) return d.info("NewVerificationComponent: VerificationService is loading"), /* @__PURE__ */ (0, V.jsx)(te, {
|
|
6573
6574
|
locale: "en",
|
|
6574
6575
|
messages: i,
|
|
6575
6576
|
textComponent: Ra,
|
|
6576
|
-
children: /* @__PURE__ */ (0,
|
|
6577
|
+
children: /* @__PURE__ */ (0, V.jsx)(vt, {})
|
|
6577
6578
|
}, n);
|
|
6578
6579
|
let { programTheme: a } = this.props.verificationService, { verificationResponse: o } = this.props.verificationService;
|
|
6579
|
-
return d.info("NewVerificationComponent: verificationResponse, viewModel", o, t), d.info(`NewVerificationComponent: locale: ${n}, currentStep: ${o.currentStep}, messages: `, r), /* @__PURE__ */ (0,
|
|
6580
|
+
return d.info("NewVerificationComponent: verificationResponse, viewModel", o, t), d.info(`NewVerificationComponent: locale: ${n}, currentStep: ${o.currentStep}, messages: `, r), /* @__PURE__ */ (0, V.jsx)(Ud, {
|
|
6580
6581
|
locale: n,
|
|
6581
6582
|
messages: r,
|
|
6582
6583
|
programTheme: a,
|
|
@@ -6584,13 +6585,13 @@ var Hd = ({ locale: e, messages: t, programTheme: r, verificationService: i, pro
|
|
|
6584
6585
|
programId: this.props.programId
|
|
6585
6586
|
});
|
|
6586
6587
|
}
|
|
6587
|
-
},
|
|
6588
|
+
}, qd = le((e, t) => ({ ...e }), (e, t) => ({
|
|
6588
6589
|
dispatch: e,
|
|
6589
6590
|
fetchNewVerificationRequest: we(e),
|
|
6590
6591
|
fetchExistingVerificationRequest: De(e),
|
|
6591
6592
|
updateViewModel: he(e),
|
|
6592
|
-
updateLocale:
|
|
6593
|
-
updateProgramTheme:
|
|
6593
|
+
updateLocale: je(e, t.programId),
|
|
6594
|
+
updateProgramTheme: Pe(e),
|
|
6594
6595
|
updateFieldValidationErrors: pe(e),
|
|
6595
6596
|
resetState: ye(e)
|
|
6596
6597
|
}), (e, t, n) => {
|
|
@@ -6604,43 +6605,43 @@ var Hd = ({ locale: e, messages: t, programTheme: r, verificationService: i, pro
|
|
|
6604
6605
|
messages: e.messages,
|
|
6605
6606
|
...n
|
|
6606
6607
|
};
|
|
6607
|
-
})(
|
|
6608
|
+
})(Kd), Jd = (e) => ({
|
|
6608
6609
|
kind: "program",
|
|
6609
6610
|
key: e
|
|
6610
|
-
}),
|
|
6611
|
+
}), Yd = ({ programId: e, children: t }) => /* @__PURE__ */ (0, V.jsx)(hi, {
|
|
6611
6612
|
clientSideID: "6530161f9ff41712a2eef741",
|
|
6612
|
-
context:
|
|
6613
|
-
flags:
|
|
6613
|
+
context: Jd(e),
|
|
6614
|
+
flags: Rd,
|
|
6614
6615
|
reactOptions: { useCamelCaseFlagKeys: !1 },
|
|
6615
6616
|
options: { streaming: !1 },
|
|
6616
6617
|
children: t
|
|
6617
|
-
}),
|
|
6618
|
+
}), Xd = be();
|
|
6618
6619
|
F(x.jslibVersionActual, h(() => Ye(), "?")), F(x.clientVersion, h(() => Ye(), "?"));
|
|
6619
|
-
var
|
|
6620
|
+
var Zd = B.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
6620
6621
|
try {
|
|
6621
6622
|
R();
|
|
6622
6623
|
} catch (e) {
|
|
6623
6624
|
d.warn("Failed to add predefined hooks", e);
|
|
6624
6625
|
}
|
|
6625
|
-
return (0,
|
|
6626
|
+
return (0, B.useEffect)(() => {
|
|
6626
6627
|
T();
|
|
6627
|
-
}),
|
|
6628
|
+
}), Xd.dispatch({
|
|
6628
6629
|
programId: e,
|
|
6629
6630
|
type: "PROGRAM_ID"
|
|
6630
6631
|
}), n && (n.current = {
|
|
6631
|
-
refresh:
|
|
6632
|
-
reset:
|
|
6633
|
-
}), /* @__PURE__ */ (0,
|
|
6634
|
-
store:
|
|
6635
|
-
children: /* @__PURE__ */ (0,
|
|
6632
|
+
refresh: B.useCallback(() => Xd.dispatch({ type: "FORCE_UPDATE" }), []),
|
|
6633
|
+
reset: B.useCallback(() => Xd.dispatch({ type: "RESET_STATE" }), [])
|
|
6634
|
+
}), /* @__PURE__ */ (0, V.jsx)(ce, {
|
|
6635
|
+
store: Xd,
|
|
6636
|
+
children: /* @__PURE__ */ (0, V.jsx)(Yd, {
|
|
6636
6637
|
programId: e,
|
|
6637
|
-
children: /* @__PURE__ */ (0,
|
|
6638
|
+
children: /* @__PURE__ */ (0, V.jsx)(qd, {
|
|
6638
6639
|
programId: e,
|
|
6639
6640
|
trackingId: t
|
|
6640
6641
|
})
|
|
6641
6642
|
})
|
|
6642
6643
|
});
|
|
6643
|
-
}),
|
|
6644
|
+
}), Qd = class e {
|
|
6644
6645
|
element;
|
|
6645
6646
|
programId;
|
|
6646
6647
|
trackingId;
|
|
@@ -6648,7 +6649,7 @@ var Xd = z.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
|
6648
6649
|
ref;
|
|
6649
6650
|
constructor(t, n, r) {
|
|
6650
6651
|
if (!(this instanceof e)) throw Error("Method \"render\" not found. Did you use the \"new\" keyword when instantiating VerificationForm?");
|
|
6651
|
-
d.info(`Constructing VerificationFormEs5 ${n}`), C(t), this.element = t, this.programId = n, this.trackingId = r, this.ref =
|
|
6652
|
+
d.info(`Constructing VerificationFormEs5 ${n}`), C(t), this.element = t, this.programId = n, this.trackingId = r, this.ref = B.createRef(), this.render();
|
|
6652
6653
|
}
|
|
6653
6654
|
refresh() {
|
|
6654
6655
|
this.ref.current.refresh();
|
|
@@ -6657,7 +6658,7 @@ var Xd = z.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
|
6657
6658
|
this.ref.current.reset();
|
|
6658
6659
|
}
|
|
6659
6660
|
render() {
|
|
6660
|
-
mt.render(/* @__PURE__ */ (0,
|
|
6661
|
+
mt.render(/* @__PURE__ */ (0, V.jsx)(Zd, {
|
|
6661
6662
|
programId: this.programId,
|
|
6662
6663
|
trackingId: this.trackingId,
|
|
6663
6664
|
ref: this.ref
|
|
@@ -6666,22 +6667,22 @@ var Xd = z.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
|
6666
6667
|
unmount() {
|
|
6667
6668
|
mt.unmountComponentAtNode(this.element);
|
|
6668
6669
|
}
|
|
6669
|
-
},
|
|
6670
|
+
}, $d = async () => {
|
|
6670
6671
|
if (!document.getElementById("ipqs")) return new Promise((e) => {
|
|
6671
6672
|
let t = document.createElement("script");
|
|
6672
6673
|
t.src = "https://fd.sheerid.com/api/*/BJOvvIiNpZnA9XHXIHVc0S4FO87k4eub6NLOfmShTU7nRqamLKTzQixwD7XETz7bvtNHmicHNx9hEtOJ9NPo3kUJBl7o1jpwcbcXeOMDJjvulAWSrRnO7WYq9gxL6xNT0xnfou5UlshUGWQ2g68qBuWajMWbxZ25JELntxaP0neiVUbephG5E79ES89qBo4uIGBDvykdJb75hpo0URvJ0Fm1j6fuEqHQBq64Mi390KC9XoQwiFxyboxQ5lSooY4p/learn.js", t.async = !0, t.id = "ipqs", document.body.appendChild(t), t.onload = () => {
|
|
6673
6674
|
e();
|
|
6674
6675
|
};
|
|
6675
6676
|
});
|
|
6676
|
-
},
|
|
6677
|
+
}, ef = async (e, t) => {
|
|
6677
6678
|
if (h(() => e.ipqsDeviceFingerprintEnabled, !1)) try {
|
|
6678
|
-
await
|
|
6679
|
+
await $d(), window.IPQ = { Callback: () => {
|
|
6679
6680
|
window.Startup.Store("transactionID", t), window.Startup.Init();
|
|
6680
6681
|
} };
|
|
6681
6682
|
} catch (e) {
|
|
6682
6683
|
d.error(e, "Failed to collect IPQS device data");
|
|
6683
6684
|
}
|
|
6684
|
-
},
|
|
6685
|
+
}, tf = async (e, t) => {
|
|
6685
6686
|
if (!h(() => e.threatMetrixEnabled, !1)) return;
|
|
6686
6687
|
let n = e.threatMetrixOrgId || "cnl2my47";
|
|
6687
6688
|
try {
|
|
@@ -6693,41 +6694,41 @@ var Xd = z.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
|
6693
6694
|
} catch (e) {
|
|
6694
6695
|
d.error(e, "Failed to collect ThreatMetrix device data");
|
|
6695
6696
|
}
|
|
6696
|
-
},
|
|
6697
|
-
let n =
|
|
6697
|
+
}, nf = /* @__PURE__ */ new Map(), rf = (e, t) => {
|
|
6698
|
+
let n = nf.get(t);
|
|
6698
6699
|
if (n) return n;
|
|
6699
6700
|
let r = (async () => {
|
|
6700
6701
|
let [, , n] = await Promise.all([
|
|
6702
|
+
tf(e, t),
|
|
6701
6703
|
ef(e, t),
|
|
6702
|
-
$d(e, t),
|
|
6703
6704
|
fe(e, t)
|
|
6704
6705
|
]);
|
|
6705
6706
|
return n ? { fpSessionId: n } : {};
|
|
6706
6707
|
})();
|
|
6707
|
-
return
|
|
6708
|
-
},
|
|
6708
|
+
return nf.set(t, r), r;
|
|
6709
|
+
}, af = {
|
|
6709
6710
|
getMessages: M,
|
|
6710
6711
|
setViewModel: Oe,
|
|
6711
6712
|
resetViewModel: Te,
|
|
6712
6713
|
setOptions: y,
|
|
6713
6714
|
resetOptions: E,
|
|
6714
6715
|
refreshStore: me,
|
|
6715
|
-
setMetadata:
|
|
6716
|
+
setMetadata: Me,
|
|
6716
6717
|
getMetadata: de,
|
|
6717
6718
|
resetMetadata: ae,
|
|
6718
|
-
conversion:
|
|
6719
|
+
conversion: We,
|
|
6719
6720
|
overrideComponent: Ci,
|
|
6720
6721
|
resetOverriddenComponents: Ti,
|
|
6721
6722
|
postVerificationSizeUpdates: ie,
|
|
6722
6723
|
addHook: oe,
|
|
6723
6724
|
hooks: ue,
|
|
6724
|
-
VerificationForm:
|
|
6725
|
-
collectDeviceProfile: async (e, t) =>
|
|
6725
|
+
VerificationForm: Qd,
|
|
6726
|
+
collectDeviceProfile: async (e, t) => rf(await Ge.fetchProgramTheme(t), e),
|
|
6726
6727
|
resetStore: Ee,
|
|
6727
6728
|
setProgramTheme: (e, t = { partial: !0 }) => {
|
|
6728
6729
|
let n = be(), r = n.getState(), i = () => {
|
|
6729
6730
|
let r = P(e);
|
|
6730
|
-
d.info("Setting programTheme", r),
|
|
6731
|
+
d.info("Setting programTheme", r), Pe(n.dispatch)(r, t.partial);
|
|
6731
6732
|
};
|
|
6732
6733
|
r.isLoading ? oe({
|
|
6733
6734
|
name: "ON_VERIFICATION_READY",
|
|
@@ -6738,4 +6739,4 @@ var Xd = z.forwardRef(({ programId: e, trackingId: t = void 0 }, n) => {
|
|
|
6738
6739
|
}
|
|
6739
6740
|
};
|
|
6740
6741
|
//#endregion
|
|
6741
|
-
export { Vi as $, va as A, ra as B, $a as C, Ua as D, Ga as E, Ki as F, Wi as G, fa as H, Zi as I, Bi as J, ta as K, sa as L, qi as M, la as N, Wa as O, Gi as P, na as Q, Ji as R, to as S, qa as T, aa as U, pa as V, oa as W, ca as X, da as Y, Ui as Z,
|
|
6742
|
+
export { Vi as $, va as A, ra as B, $a as C, Ua as D, Ga as E, Ki as F, Wi as G, fa as H, Zi as I, Bi as J, ta as K, sa as L, qi as M, la as N, Wa as O, Gi as P, na as Q, Ji as R, to as S, qa as T, aa as U, pa as V, oa as W, ca as X, da as Y, Ui as Z, tl as _, $u as a, Ei as at, vo as b, Kl as c, vt as ct, wl as d, af as default, Hi as et, Sl as f, _l as g, yl as h, Md as i, ki as it, ia as j, Va as k, Bl as l, gt as lt, bl as m, Hd as n, Ri as nt, Ul as o, yi as ot, vl as p, Yi as q, Pd as r, Ii as rt, Wl as s, _i as st, rf as t, zi as tt, kl as u, zo as v, eo as w, lo as x, wo as y, ua as z };
|