@myxtra/authentication-green 2.28.0 → 2.32.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/dist/App-rvyL3W1B.js +3940 -0
- package/dist/{Categoriesbaby-6gF3DXBf.js → Categoriesbaby-BK8PHi3L.js} +1 -1
- package/dist/{Categoriesbakery-B4iUY80P.js → Categoriesbakery-CcoBArzo.js} +1 -1
- package/dist/{Categoriesbbq-C60hz1B6.js → Categoriesbbq-8wHV3-M_.js} +1 -1
- package/dist/{Categoriesbreakfast-McuEC33n.js → Categoriesbreakfast-CrZEYv17.js} +1 -1
- package/dist/{Categoriesbrik-Bs5kZnTr.js → Categoriesbrik-nCENW9gv.js} +1 -1
- package/dist/{Categoriescandy-CvIEyKk2.js → Categoriescandy-CosPmSGe.js} +1 -1
- package/dist/{Categoriescar-BFSyhAg7.js → Categoriescar-7KP-M791.js} +1 -1
- package/dist/{Categoriescarandbike-BC-qjZEw.js → Categoriescarandbike-B9bHFhLK.js} +1 -1
- package/dist/{Categorieschild-DfnPlnAk.js → Categorieschild-CX99OAgT.js} +1 -1
- package/dist/{Categoriescigarette-DiN_VowE.js → Categoriescigarette-c4qRyeQ5.js} +1 -1
- package/dist/{Categoriescleaning-BcWHn0gT.js → Categoriescleaning-ChBTEOpL.js} +1 -1
- package/dist/{Categoriesclothing-DvtWnnns.js → Categoriesclothing-Cn0h0i2i.js} +1 -1
- package/dist/{Categoriesconserve-BuAfz_u6.js → Categoriesconserve-DOg50u7R.js} +1 -1
- package/dist/{Categoriesdairy-BsyIRs7f.js → Categoriesdairy-BN5pGn7H.js} +1 -1
- package/dist/{Categoriesdeskandtravel-3Ma6spBz.js → Categoriesdeskandtravel-Cp5BxS9n.js} +1 -1
- package/dist/{Categoriesdiet-BHIZ3Kgb.js → Categoriesdiet-XttyqzzG.js} +1 -1
- package/dist/{Categoriesdryfood-DrHq_KYI.js → Categoriesdryfood-ClcYgc7y.js} +1 -1
- package/dist/{Categorieseaster-BXUGhAFc.js → Categorieseaster-BecGCzVP.js} +1 -1
- package/dist/{Categoriesenergy-DS3E97j_.js → Categoriesenergy-Pja0bVRb.js} +1 -1
- package/dist/{Categoriesfish-CZD6yTGJ.js → Categoriesfish-BT4SOzz9.js} +1 -1
- package/dist/{Categoriesfood-D4AviGEb.js → Categoriesfood-DIkUZi64.js} +1 -1
- package/dist/{Categoriesfreezer-CrUYLzCA.js → Categoriesfreezer-Dcr4tycU.js} +1 -1
- package/dist/{Categoriesfuel-jdRBMmOs.js → Categoriesfuel-U0e04GV_.js} +1 -1
- package/dist/{Categoriesgranen-DqTKp-nv.js → Categoriesgranen-DE3ZoO-L.js} +1 -1
- package/dist/{Categoriesgrid-CToiisrK.js → Categoriesgrid-u09YGNf9.js} +1 -1
- package/dist/{Categorieshome-ChaNOSrd.js → Categorieshome-DcPxnZUL.js} +1 -1
- package/dist/{Categorieshygiene-Dvcw7s9e.js → Categorieshygiene-DsVq3vSG.js} +1 -1
- package/dist/{Categoriesmealbox-0yTXZqld.js → Categoriesmealbox-BiGiIMkT.js} +1 -1
- package/dist/{Categoriesmeat-D_L_1sCl.js → Categoriesmeat-D8F1Q7-6.js} +1 -1
- package/dist/{Categoriesmultimedia-B2RWUc8C.js → Categoriesmultimedia-BicArKmT.js} +1 -1
- package/dist/{Categoriesnonfood-Dzi8QtTn.js → Categoriesnonfood-BnBFaXGS.js} +1 -1
- package/dist/{Categoriesonlinepromo-BFfQFe2A.js → Categoriesonlinepromo-ByrVS4B6.js} +1 -1
- package/dist/{Categoriesparty-CJw_7b1v.js → Categoriesparty-BWzrbGN_.js} +1 -1
- package/dist/{Categoriespets-CqJrKBkE.js → Categoriespets-myRyzdWM.js} +1 -1
- package/dist/{Categoriesplaceholder-BJCkzQ5s.js → Categoriesplaceholder-BnEE1Stl.js} +1 -1
- package/dist/{Categoriespuzzle-BNAWvQ5P.js → Categoriespuzzle-DuCh6ovB.js} +1 -1
- package/dist/{Categoriessnacks-CrQiHnlu.js → Categoriessnacks-CfRIIcqL.js} +1 -1
- package/dist/{Categoriessoda-DcgNgr-J.js → Categoriessoda-DDzhdgY-.js} +1 -1
- package/dist/{Categoriessportfood-DlMcu1ku.js → Categoriessportfood-SiwSHDB7.js} +1 -1
- package/dist/{Categoriestins-ecq6AClO.js → Categoriestins-CKYv87hu.js} +1 -1
- package/dist/{Categoriestoyandhobby-DeZHNqpy.js → Categoriestoyandhobby-7i6Qk4rl.js} +1 -1
- package/dist/{Categoriestoys-ZzMr5vFM.js → Categoriestoys-VvydRq4P.js} +1 -1
- package/dist/{Categoriesvegetables-8mMcDRwN.js → Categoriesvegetables-DZmqkqzf.js} +1 -1
- package/dist/{Categorieswine-BE83LNgR.js → Categorieswine-DtVxSYvH.js} +1 -1
- package/dist/{Fueladblue-DgF7eSdv.js → Fueladblue-CSYlsyDy.js} +1 -1
- package/dist/{Fuelb7-ssb0PBMa.js → Fuelb7-DFmtWruD.js} +1 -1
- package/dist/{Fuelcng-Az_ywsP8.js → Fuelcng-bMmrTp02.js} +1 -1
- package/dist/{Fuele10-D8XKR8z4.js → Fuele10-CloHils2.js} +1 -1
- package/dist/{Fuele5-QGU89IeO.js → Fuele5-BVkTEGrj.js} +1 -1
- package/dist/{Fuelfreetireinflation-DzwK-yJ9.js → Fuelfreetireinflation-SRIoMXZi.js} +1 -1
- package/dist/{Fuelh2-DCPx9cPO.js → Fuelh2-D8ZQFbEM.js} +1 -1
- package/dist/{Functional18plus-Dvom6nYd.js → Functional18plus-QP8_Jdn4.js} +1 -1
- package/dist/{Functionalaccount-DLCejSD5.js → Functionalaccount-DrN0jVA7.js} +1 -1
- package/dist/{Functionaladdtolist-C6_sJNlg.js → Functionaladdtolist-oXBWyYGw.js} +1 -1
- package/dist/{Functionaladduser-CvfxOGqu.js → Functionaladduser-DyfUvgr7.js} +1 -1
- package/dist/{Functionalalphabeta-BVJAMnLO.js → Functionalalphabeta-eRsdPQrG.js} +1 -1
- package/dist/{Functionalback-COMzeVd_.js → Functionalback-Bp5nkAml.js} +1 -1
- package/dist/{Functionalbarcode-BjA_xusN.js → Functionalbarcode-CnW2Znah.js} +1 -1
- package/dist/{Functionalblock-C0dpftUf.js → Functionalblock-DWP4Vov2.js} +1 -1
- package/dist/{Functionalbox-CYM-NUPV.js → Functionalbox-BJwpdmhb.js} +1 -1
- package/dist/{Functionalcalendar-1Yek0iwu.js → Functionalcalendar-2td1a8iX.js} +1 -1
- package/dist/{Functionalcamera-D6xwt5Su.js → Functionalcamera-D9dZic6y.js} +1 -1
- package/dist/{Functionalcartcheckout-3hdAu2bG.js → Functionalcartcheckout-CNI63YGa.js} +1 -1
- package/dist/{Functionalcartedit-C-oIAz-E.js → Functionalcartedit-CLCPUmNR.js} +1 -1
- package/dist/{Functionalcheck-CLaFutOl.js → Functionalcheck-BxgiHlti.js} +1 -1
- package/dist/{Functionalchecklist-BH7UVdkF.js → Functionalchecklist-D-LnY_Ee.js} +1 -1
- package/dist/{Functionalchevrondown-Dfv-W7AD.js → Functionalchevrondown-D9sw9bOC.js} +1 -1
- package/dist/{Functionalchevronright-BZN3r3ja.js → Functionalchevronright-COUKphaj.js} +1 -1
- package/dist/{Functionalchevronup-nTJQr1M_.js → Functionalchevronup-CcNvpdw8.js} +1 -1
- package/dist/{Functionalclock-DbHYKN7u.js → Functionalclock-CQJMiOUj.js} +1 -1
- package/dist/{Functionalclose-Czu5y0kT.js → Functionalclose-CSc29pK8.js} +1 -1
- package/dist/{Functionalcommunications-BujOX55Z.js → Functionalcommunications-BvA6HmxT.js} +1 -1
- package/dist/{Functionalconnecteddevice-CEDF8kk_.js → Functionalconnecteddevice-DwZVzD4k.js} +1 -1
- package/dist/{Functionalconnectioncable-O0b0AzV4.js → Functionalconnectioncable-aTtVqI_G.js} +1 -1
- package/dist/{Functionalcookies-B2EQmcrt.js → Functionalcookies-CBVHL9o4.js} +1 -1
- package/dist/{Functionalcopy-BsYv5M7H.js → Functionalcopy-Cia7a0iN.js} +1 -1
- package/dist/{Functionalcustomerservice-RFWDZ7Ej.js → Functionalcustomerservice-BUF7OZYY.js} +1 -1
- package/dist/{Functionaldeliveryaddresses-BiZKm5Oc.js → Functionaldeliveryaddresses-Dq8bDZ0l.js} +1 -1
- package/dist/{Functionaldiscount-B0UiDwC2.js → Functionaldiscount-C4D1kfU5.js} +1 -1
- package/dist/{Functionaldiscountcode-BOxSaP9t.js → Functionaldiscountcode-BWwyTnvX.js} +1 -1
- package/dist/{Functionaldownload-DhkbhqEd.js → Functionaldownload-DZhkz83I.js} +1 -1
- package/dist/{Functionaldrycleaning-DIn5LZSp.js → Functionaldrycleaning-9e8OvgJc.js} +1 -1
- package/dist/{Functionalecoearth-DiHUFvUX.js → Functionalecoearth-BGJbj9YJ.js} +1 -1
- package/dist/{Functionaledit-Dqmrlxwr.js → Functionaledit-Bny8JHS3.js} +1 -1
- package/dist/{Functionalellipsis-edOp38LE.js → Functionalellipsis-DSdUTFge.js} +1 -1
- package/dist/{Functionalerrorcircle-Duns6fLN.js → Functionalerrorcircle-Cn9D7y2M.js} +1 -1
- package/dist/{Functionalerrorcirclefilled-DY9HqOtf.js → Functionalerrorcirclefilled-DT2g6pS4.js} +1 -1
- package/dist/{Functionaleuro-DpKvF4Va.js → Functionaleuro-BfFjpwIF.js} +1 -1
- package/dist/{Functionalexit-BJ5rcdWd.js → Functionalexit-BMYWgMPM.js} +1 -1
- package/dist/{Functionalexport-CAuNRHg4.js → Functionalexport-cDsDdHi5.js} +1 -1
- package/dist/{Functionalexternallink-Br_t3uLC.js → Functionalexternallink-dS7Ownhh.js} +1 -1
- package/dist/{Functionaleyehidden-zfHSwL3r.js → Functionaleyehidden-Bbjl6We7.js} +1 -1
- package/dist/{Functionaleyeshow-eos8CLvD.js → Functionaleyeshow-DeDQo-aK.js} +1 -1
- package/dist/{Functionalfilter-DxpZVrcp.js → Functionalfilter-oikNz5BS.js} +1 -1
- package/dist/{Functionalfirstadded-BbvyfBZP.js → Functionalfirstadded-BnHAUwEu.js} +1 -1
- package/dist/{Functionalgift-DV2dqp9h.js → Functionalgift-A-S_eFoY.js} +1 -1
- package/dist/{Functionalhistory-B5uZ6bZd.js → Functionalhistory-DSPZf2ii.js} +1 -1
- package/dist/{Functionalidea-B9cYbekX.js → Functionalidea-D6ZHRfi1.js} +1 -1
- package/dist/{Functionalinappnotifications-BEN5GrO0.js → Functionalinappnotifications-DOWSLSnw.js} +1 -1
- package/dist/{Functionalkiosk-m4D0a7Kq.js → Functionalkiosk-DW0IfYHw.js} +1 -1
- package/dist/{Functionallastadded-CgxjxrvF.js → Functionallastadded-u4XSW3hD.js} +1 -1
- package/dist/{Functionallifestyle-6yUl3Tnf.js → Functionallifestyle-B8ikBccg.js} +1 -1
- package/dist/{Functionallist-CGb3i4CE.js → Functionallist-CtIVDDKI.js} +1 -1
- package/dist/{Functionalloading-CLCA1Ty6.js → Functionalloading-CTp0Jd_T.js} +1 -1
- package/dist/{Functionallocate-Bmq6Zl7E.js → Functionallocate-BfzlDwwL.js} +1 -1
- package/dist/{Functionallocation-BTCWubMD.js → Functionallocation-BbGDMU8P.js} +1 -1
- package/dist/{Functionallocationhome-BExIISsd.js → Functionallocationhome-CWk-KaRh.js} +1 -1
- package/dist/{Functionallocationpickup-1yLy_tNQ.js → Functionallocationpickup-Du_--iBZ.js} +1 -1
- package/dist/{Functionallogin-BJIwdZrh.js → Functionallogin-iJT5VO2y.js} +1 -1
- package/dist/{Functionallogout-CMzB_AvT.js → Functionallogout-C8Mq01k0.js} +1 -1
- package/dist/{Functionalmail-UIG4onuq.js → Functionalmail-GurUjkNh.js} +1 -1
- package/dist/{Functionalmaplocation-Dcaiv5uy.js → Functionalmaplocation-ShsgfKPf.js} +1 -1
- package/dist/{Functionalmenu-BGjUX1J1.js → Functionalmenu-B1ta7mdn.js} +1 -1
- package/dist/{Functionalmessage-DCPC1-Cl.js → Functionalmessage-CuItmwfZ.js} +1 -1
- package/dist/{Functionalmessagefield-Bxj-GEk3.js → Functionalmessagefield-CwpyVdYL.js} +1 -1
- package/dist/{Functionalminus-CQ4YuBKD.js → Functionalminus-BLRZ3PXJ.js} +1 -1
- package/dist/{Functionalmobilepay-9wGb23yW.js → Functionalmobilepay-DbPvnMEH.js} +1 -1
- package/dist/{Functionalmultifactorauthenticator-C5SDLhfX.js → Functionalmultifactorauthenticator-D1jkwsgX.js} +1 -1
- package/dist/{Functionalnews-DZull_Hm.js → Functionalnews-C4u0KQJ-.js} +1 -1
- package/dist/{Functionalnext-bZeZA0uQ.js → Functionalnext-Cp_x1ZV6.js} +1 -1
- package/dist/{Functionalnoconnection-BGIfdWes.js → Functionalnoconnection-pPU7or3J.js} +1 -1
- package/dist/{Functionalnumber-CL2VFFdH.js → Functionalnumber-BQByMDKU.js} +1 -1
- package/dist/{Functionalother-CSvu-HRC.js → Functionalother-ClXgsR1I.js} +1 -1
- package/dist/{Functionalpack-BjDhhBqo.js → Functionalpack-Dm5IfprQ.js} +1 -1
- package/dist/{Functionalpassword-DRLSXw1c.js → Functionalpassword-YD7RSIAC.js} +1 -1
- package/dist/{Functionalpercentage-BQB5lrGQ.js → Functionalpercentage-DuTWZRtX.js} +1 -1
- package/dist/{Functionalphone-BvGYeO1i.js → Functionalphone-Bagtkohc.js} +1 -1
- package/dist/{Functionalpiece-Ciy3LwP5.js → Functionalpiece-C6ulS7oE.js} +1 -1
- package/dist/{Functionalpinoutlines-Dx_8CxcE.js → Functionalpinoutlines-C4-kRRRI.js} +1 -1
- package/dist/{Functionalplus-B0HvjzCe.js → Functionalplus-BfVdR4AS.js} +1 -1
- package/dist/{Functionalpluscircle-BdWTDoq2.js → Functionalpluscircle-485Is4Xu.js} +1 -1
- package/dist/{Functionalpresent-DYg0lQyl.js → Functionalpresent-Dn6juF59.js} +1 -1
- package/dist/{Functionalprivacy-Cdd8t2K8.js → Functionalprivacy-BG0LWqks.js} +1 -1
- package/dist/{Functionalpushnotifications-BKrcqzLo.js → Functionalpushnotifications-Dblb1X-g.js} +1 -1
- package/dist/{Functionalquestioncircle-rNemzaR5.js → Functionalquestioncircle-DP7eKeSb.js} +1 -1
- package/dist/{Functionalquestioncirclefilled-yHK8TsUi.js → Functionalquestioncirclefilled-4lNkj_mX.js} +1 -1
- package/dist/{Functionalreadtime-wsF46-i_.js → Functionalreadtime-C_bKGAYY.js} +1 -1
- package/dist/{Functionalregister-BBLcOqyZ.js → Functionalregister-C3HnHqxI.js} +1 -1
- package/dist/{Functionalreset-Bts1-_62.js → Functionalreset-B6Y7gABE.js} +1 -1
- package/dist/{Functionalsave-DGCejc8P.js → Functionalsave-BPm0j_jU.js} +1 -1
- package/dist/{Functionalsearch-CuSu11ka.js → Functionalsearch-DKHtmiN6.js} +1 -1
- package/dist/{Functionalsettings-zrAXduAm.js → Functionalsettings-CivQo5nO.js} +1 -1
- package/dist/{Functionalshare-DG0vBDyj.js → Functionalshare-DwMvgZSh.js} +1 -1
- package/dist/{Functionalshared-C8cH9dC3.js → Functionalshared-DzP2vBRb.js} +1 -1
- package/dist/{Functionalshoppingcart-DufNpCYd.js → Functionalshoppingcart-Ls0DYjqT.js} +1 -1
- package/dist/{Functionalshops-CZJtxMdY.js → Functionalshops-BvMRmBWC.js} +1 -1
- package/dist/{Functionalsms-BSdbXJK1.js → Functionalsms-DoeTMScD.js} +1 -1
- package/dist/{Functionalsorting-D19SFJJl.js → Functionalsorting-D8V81-yd.js} +1 -1
- package/dist/{Functionalspinner-Da77gyjA.js → Functionalspinner-DkwbA_aW.js} +1 -1
- package/dist/{Functionalstorelayout-BQ8PvUFs.js → Functionalstorelayout-CrrvFLpE.js} +1 -1
- package/dist/{Functionalsuccesscircle-CxAqWTjs.js → Functionalsuccesscircle-BZSKq-XE.js} +1 -1
- package/dist/{Functionalsuccesscirclefilled-DWsc_fVH.js → Functionalsuccesscirclefilled-BNosIoGs.js} +1 -1
- package/dist/{Functionalswap-BlmqNeM4.js → Functionalswap-BU4e2oLg.js} +1 -1
- package/dist/{Functionalswitch-CoAr-Auv.js → Functionalswitch-DQq0PT3U.js} +1 -1
- package/dist/{Functionalthumbsup-CKHNazgH.js → Functionalthumbsup-B2AWy6SW.js} +1 -1
- package/dist/{Functionaltimer-89ilQQ9r.js → Functionaltimer-H7m2s0Jo.js} +1 -1
- package/dist/{Functionaltrash-BTNnQrPB.js → Functionaltrash-CNfJEQWk.js} +1 -1
- package/dist/{Functionaltruck-Bg3jasc7.js → Functionaltruck-0Hxl-XHL.js} +1 -1
- package/dist/{Functionaluserinfo-Bj7l8gNz.js → Functionaluserinfo-D8YRwj0z.js} +1 -1
- package/dist/{Functionalviewfile-CUbdG9e0.js → Functionalviewfile-D2hknqMU.js} +1 -1
- package/dist/{Functionalwarningcircle-Bgvilbe7.js → Functionalwarningcircle-BlJ59knk.js} +1 -1
- package/dist/{Functionalwarningcirclefilled-Z1H0b9yz.js → Functionalwarningcirclefilled-Dfic7jAb.js} +1 -1
- package/dist/{Functionalwebsite-CYIibHir.js → Functionalwebsite-BniTsGiW.js} +1 -1
- package/dist/{Functionalweight-C1gXKnfC.js → Functionalweight-C1uPyrhO.js} +1 -1
- package/dist/{Toolsassortment-BtLzzkAU.js → Toolsassortment-36SW5iI-.js} +1 -1
- package/dist/{Toolscoupons-C8i6vSE4.js → Toolscoupons-H4trLwkE.js} +1 -1
- package/dist/{Toolsfavoriteactive-cMr_AE15.js → Toolsfavoriteactive-De8P--yf.js} +1 -1
- package/dist/{Toolsfavoriteinactive-CqySbCkL.js → Toolsfavoriteinactive-CK9Zd2Xl.js} +1 -1
- package/dist/{Toolsfuel-CqliNTWm.js → Toolsfuel-BUqE3NEG.js} +1 -1
- package/dist/{Toolspay-ZXhAd7K_.js → Toolspay-KtdPpmqd.js} +1 -1
- package/dist/{Toolspromo-DEvIy8bU.js → Toolspromo-CNo9f1KB.js} +1 -1
- package/dist/{Toolsreceipt-CrW8gXK1.js → Toolsreceipt-BGv1Cv7c.js} +1 -1
- package/dist/{Toolsrecipes2-DSdaXaKA.js → Toolsrecipes2-Bs9s6R6A.js} +1 -1
- package/dist/{Toolsscan2-DD9hHYFt.js → Toolsscan2-Cr5CdaM9.js} +1 -1
- package/dist/{Toolsshowxtranew-_Kw-qduq.js → Toolsshowxtranew-C4GLOL69.js} +1 -1
- package/dist/{Toolsshowxtraold-Bpe1vUEO.js → Toolsshowxtraold-BqrAPE1m.js} +1 -1
- package/dist/{Toolsstats-Dtv_ZM-M.js → Toolsstats-CFpH0rs8.js} +1 -1
- package/dist/{Toolsstorelocator-XZLY-WUr.js → Toolsstorelocator-BrDv2xeS.js} +1 -1
- package/dist/{Toolswarranty-NuK8UHnp.js → Toolswarranty-CZecEOkM.js} +1 -1
- package/dist/{index-AmCvpMSK.js → index-D1LKuEfM.js} +2421 -2392
- package/dist/xtra-authentication.js +1 -1
- package/package.json +24 -24
- package/dist/App-DJ9El6sy.js +0 -3885
|
@@ -0,0 +1,3940 @@
|
|
|
1
|
+
var Te = (t) => {
|
|
2
|
+
throw TypeError(t);
|
|
3
|
+
};
|
|
4
|
+
var de = (t, e, s) => e.has(t) || Te("Cannot " + s);
|
|
5
|
+
var o = (t, e, s) => (de(t, e, "read from private field"), s ? s.call(t) : e.get(t)), y = (t, e, s) => e.has(t) ? Te("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), f = (t, e, s, r) => (de(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), b = (t, e, s) => (de(t, e, "access private method"), s);
|
|
6
|
+
var re = (t, e, s, r) => ({
|
|
7
|
+
set _(a) {
|
|
8
|
+
f(t, e, a, s);
|
|
9
|
+
},
|
|
10
|
+
get _() {
|
|
11
|
+
return o(t, e, r);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
import { r as n, j as i, u as Ys, a as Js, b as gt, g as Ae, P as De, c as us, d as Is, e as Bs, E as tr, C as er } from "./index-D1LKuEfM.js";
|
|
15
|
+
var Vt = class {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
18
|
+
}
|
|
19
|
+
subscribe(t) {
|
|
20
|
+
return this.listeners.add(t), this.onSubscribe(), () => {
|
|
21
|
+
this.listeners.delete(t), this.onUnsubscribe();
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
hasListeners() {
|
|
25
|
+
return this.listeners.size > 0;
|
|
26
|
+
}
|
|
27
|
+
onSubscribe() {
|
|
28
|
+
}
|
|
29
|
+
onUnsubscribe() {
|
|
30
|
+
}
|
|
31
|
+
}, kt = typeof window > "u" || "Deno" in globalThis;
|
|
32
|
+
function K() {
|
|
33
|
+
}
|
|
34
|
+
function sr(t, e) {
|
|
35
|
+
return typeof t == "function" ? t(e) : t;
|
|
36
|
+
}
|
|
37
|
+
function pe(t) {
|
|
38
|
+
return typeof t == "number" && t >= 0 && t !== 1 / 0;
|
|
39
|
+
}
|
|
40
|
+
function hs(t, e) {
|
|
41
|
+
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
42
|
+
}
|
|
43
|
+
function yt(t, e) {
|
|
44
|
+
return typeof t == "function" ? t(e) : t;
|
|
45
|
+
}
|
|
46
|
+
function J(t, e) {
|
|
47
|
+
return typeof t == "function" ? t(e) : t;
|
|
48
|
+
}
|
|
49
|
+
function Ue(t, e) {
|
|
50
|
+
const {
|
|
51
|
+
type: s = "all",
|
|
52
|
+
exact: r,
|
|
53
|
+
fetchStatus: a,
|
|
54
|
+
predicate: c,
|
|
55
|
+
queryKey: l,
|
|
56
|
+
stale: u
|
|
57
|
+
} = t;
|
|
58
|
+
if (l) {
|
|
59
|
+
if (r) {
|
|
60
|
+
if (e.queryHash !== Ee(l, e.options))
|
|
61
|
+
return !1;
|
|
62
|
+
} else if (!Xt(e.queryKey, l))
|
|
63
|
+
return !1;
|
|
64
|
+
}
|
|
65
|
+
if (s !== "all") {
|
|
66
|
+
const h = e.isActive();
|
|
67
|
+
if (s === "active" && !h || s === "inactive" && h)
|
|
68
|
+
return !1;
|
|
69
|
+
}
|
|
70
|
+
return !(typeof u == "boolean" && e.isStale() !== u || a && a !== e.state.fetchStatus || c && !c(e));
|
|
71
|
+
}
|
|
72
|
+
function Qe(t, e) {
|
|
73
|
+
const { exact: s, status: r, predicate: a, mutationKey: c } = t;
|
|
74
|
+
if (c) {
|
|
75
|
+
if (!e.options.mutationKey)
|
|
76
|
+
return !1;
|
|
77
|
+
if (s) {
|
|
78
|
+
if (Pt(e.options.mutationKey) !== Pt(c))
|
|
79
|
+
return !1;
|
|
80
|
+
} else if (!Xt(e.options.mutationKey, c))
|
|
81
|
+
return !1;
|
|
82
|
+
}
|
|
83
|
+
return !(r && e.state.status !== r || a && !a(e));
|
|
84
|
+
}
|
|
85
|
+
function Ee(t, e) {
|
|
86
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || Pt)(t);
|
|
87
|
+
}
|
|
88
|
+
function Pt(t) {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
t,
|
|
91
|
+
(e, s) => me(s) ? Object.keys(s).sort().reduce((r, a) => (r[a] = s[a], r), {}) : s
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
function Xt(t, e) {
|
|
95
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((s) => Xt(t[s], e[s])) : !1;
|
|
96
|
+
}
|
|
97
|
+
function ds(t, e) {
|
|
98
|
+
if (t === e)
|
|
99
|
+
return t;
|
|
100
|
+
const s = He(t) && He(e);
|
|
101
|
+
if (s || me(t) && me(e)) {
|
|
102
|
+
const r = s ? t : Object.keys(t), a = r.length, c = s ? e : Object.keys(e), l = c.length, u = s ? [] : {};
|
|
103
|
+
let h = 0;
|
|
104
|
+
for (let p = 0; p < l; p++) {
|
|
105
|
+
const m = s ? p : c[p];
|
|
106
|
+
(!s && r.includes(m) || s) && t[m] === void 0 && e[m] === void 0 ? (u[m] = void 0, h++) : (u[m] = ds(t[m], e[m]), u[m] === t[m] && t[m] !== void 0 && h++);
|
|
107
|
+
}
|
|
108
|
+
return a === l && h === a ? t : u;
|
|
109
|
+
}
|
|
110
|
+
return e;
|
|
111
|
+
}
|
|
112
|
+
function oe(t, e) {
|
|
113
|
+
if (!e || Object.keys(t).length !== Object.keys(e).length)
|
|
114
|
+
return !1;
|
|
115
|
+
for (const s in t)
|
|
116
|
+
if (t[s] !== e[s])
|
|
117
|
+
return !1;
|
|
118
|
+
return !0;
|
|
119
|
+
}
|
|
120
|
+
function He(t) {
|
|
121
|
+
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
122
|
+
}
|
|
123
|
+
function me(t) {
|
|
124
|
+
if (!Ke(t))
|
|
125
|
+
return !1;
|
|
126
|
+
const e = t.constructor;
|
|
127
|
+
if (e === void 0)
|
|
128
|
+
return !0;
|
|
129
|
+
const s = e.prototype;
|
|
130
|
+
return !(!Ke(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
|
|
131
|
+
}
|
|
132
|
+
function Ke(t) {
|
|
133
|
+
return Object.prototype.toString.call(t) === "[object Object]";
|
|
134
|
+
}
|
|
135
|
+
function rr(t) {
|
|
136
|
+
return new Promise((e) => {
|
|
137
|
+
setTimeout(e, t);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function ye(t, e, s) {
|
|
141
|
+
return typeof s.structuralSharing == "function" ? s.structuralSharing(t, e) : s.structuralSharing !== !1 ? ds(t, e) : e;
|
|
142
|
+
}
|
|
143
|
+
function ir(t, e, s = 0) {
|
|
144
|
+
const r = [...t, e];
|
|
145
|
+
return s && r.length > s ? r.slice(1) : r;
|
|
146
|
+
}
|
|
147
|
+
function nr(t, e, s = 0) {
|
|
148
|
+
const r = [e, ...t];
|
|
149
|
+
return s && r.length > s ? r.slice(0, -1) : r;
|
|
150
|
+
}
|
|
151
|
+
var Me = Symbol();
|
|
152
|
+
function fs(t, e) {
|
|
153
|
+
return !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === Me ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
154
|
+
}
|
|
155
|
+
function ps(t, e) {
|
|
156
|
+
return typeof t == "function" ? t(...e) : !!t;
|
|
157
|
+
}
|
|
158
|
+
var vt, at, Ot, ts, ar = (ts = class extends Vt {
|
|
159
|
+
constructor() {
|
|
160
|
+
super();
|
|
161
|
+
y(this, vt);
|
|
162
|
+
y(this, at);
|
|
163
|
+
y(this, Ot);
|
|
164
|
+
f(this, Ot, (e) => {
|
|
165
|
+
if (!kt && window.addEventListener) {
|
|
166
|
+
const s = () => e();
|
|
167
|
+
return window.addEventListener("visibilitychange", s, !1), () => {
|
|
168
|
+
window.removeEventListener("visibilitychange", s);
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
onSubscribe() {
|
|
174
|
+
o(this, at) || this.setEventListener(o(this, Ot));
|
|
175
|
+
}
|
|
176
|
+
onUnsubscribe() {
|
|
177
|
+
var e;
|
|
178
|
+
this.hasListeners() || ((e = o(this, at)) == null || e.call(this), f(this, at, void 0));
|
|
179
|
+
}
|
|
180
|
+
setEventListener(e) {
|
|
181
|
+
var s;
|
|
182
|
+
f(this, Ot, e), (s = o(this, at)) == null || s.call(this), f(this, at, e((r) => {
|
|
183
|
+
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
184
|
+
}));
|
|
185
|
+
}
|
|
186
|
+
setFocused(e) {
|
|
187
|
+
o(this, vt) !== e && (f(this, vt, e), this.onFocus());
|
|
188
|
+
}
|
|
189
|
+
onFocus() {
|
|
190
|
+
const e = this.isFocused();
|
|
191
|
+
this.listeners.forEach((s) => {
|
|
192
|
+
s(e);
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
isFocused() {
|
|
196
|
+
var e;
|
|
197
|
+
return typeof o(this, vt) == "boolean" ? o(this, vt) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
198
|
+
}
|
|
199
|
+
}, vt = new WeakMap(), at = new WeakMap(), Ot = new WeakMap(), ts), Le = new ar(), Rt, ot, zt, es, or = (es = class extends Vt {
|
|
200
|
+
constructor() {
|
|
201
|
+
super();
|
|
202
|
+
y(this, Rt, !0);
|
|
203
|
+
y(this, ot);
|
|
204
|
+
y(this, zt);
|
|
205
|
+
f(this, zt, (e) => {
|
|
206
|
+
if (!kt && window.addEventListener) {
|
|
207
|
+
const s = () => e(!0), r = () => e(!1);
|
|
208
|
+
return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
|
|
209
|
+
window.removeEventListener("online", s), window.removeEventListener("offline", r);
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
onSubscribe() {
|
|
215
|
+
o(this, ot) || this.setEventListener(o(this, zt));
|
|
216
|
+
}
|
|
217
|
+
onUnsubscribe() {
|
|
218
|
+
var e;
|
|
219
|
+
this.hasListeners() || ((e = o(this, ot)) == null || e.call(this), f(this, ot, void 0));
|
|
220
|
+
}
|
|
221
|
+
setEventListener(e) {
|
|
222
|
+
var s;
|
|
223
|
+
f(this, zt, e), (s = o(this, ot)) == null || s.call(this), f(this, ot, e(this.setOnline.bind(this)));
|
|
224
|
+
}
|
|
225
|
+
setOnline(e) {
|
|
226
|
+
o(this, Rt) !== e && (f(this, Rt, e), this.listeners.forEach((r) => {
|
|
227
|
+
r(e);
|
|
228
|
+
}));
|
|
229
|
+
}
|
|
230
|
+
isOnline() {
|
|
231
|
+
return o(this, Rt);
|
|
232
|
+
}
|
|
233
|
+
}, Rt = new WeakMap(), ot = new WeakMap(), zt = new WeakMap(), es), le = new or();
|
|
234
|
+
function ge() {
|
|
235
|
+
let t, e;
|
|
236
|
+
const s = new Promise((a, c) => {
|
|
237
|
+
t = a, e = c;
|
|
238
|
+
});
|
|
239
|
+
s.status = "pending", s.catch(() => {
|
|
240
|
+
});
|
|
241
|
+
function r(a) {
|
|
242
|
+
Object.assign(s, a), delete s.resolve, delete s.reject;
|
|
243
|
+
}
|
|
244
|
+
return s.resolve = (a) => {
|
|
245
|
+
r({
|
|
246
|
+
status: "fulfilled",
|
|
247
|
+
value: a
|
|
248
|
+
}), t(a);
|
|
249
|
+
}, s.reject = (a) => {
|
|
250
|
+
r({
|
|
251
|
+
status: "rejected",
|
|
252
|
+
reason: a
|
|
253
|
+
}), e(a);
|
|
254
|
+
}, s;
|
|
255
|
+
}
|
|
256
|
+
function lr(t) {
|
|
257
|
+
return Math.min(1e3 * 2 ** t, 3e4);
|
|
258
|
+
}
|
|
259
|
+
function ms(t) {
|
|
260
|
+
return (t ?? "online") === "online" ? le.isOnline() : !0;
|
|
261
|
+
}
|
|
262
|
+
var ys = class extends Error {
|
|
263
|
+
constructor(t) {
|
|
264
|
+
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
function fe(t) {
|
|
268
|
+
return t instanceof ys;
|
|
269
|
+
}
|
|
270
|
+
function gs(t) {
|
|
271
|
+
let e = !1, s = 0, r = !1, a;
|
|
272
|
+
const c = ge(), l = (v) => {
|
|
273
|
+
var C;
|
|
274
|
+
r || (x(new ys(v)), (C = t.abort) == null || C.call(t));
|
|
275
|
+
}, u = () => {
|
|
276
|
+
e = !0;
|
|
277
|
+
}, h = () => {
|
|
278
|
+
e = !1;
|
|
279
|
+
}, p = () => Le.isFocused() && (t.networkMode === "always" || le.isOnline()) && t.canRun(), m = () => ms(t.networkMode) && t.canRun(), d = (v) => {
|
|
280
|
+
var C;
|
|
281
|
+
r || (r = !0, (C = t.onSuccess) == null || C.call(t, v), a == null || a(), c.resolve(v));
|
|
282
|
+
}, x = (v) => {
|
|
283
|
+
var C;
|
|
284
|
+
r || (r = !0, (C = t.onError) == null || C.call(t, v), a == null || a(), c.reject(v));
|
|
285
|
+
}, g = () => new Promise((v) => {
|
|
286
|
+
var C;
|
|
287
|
+
a = (S) => {
|
|
288
|
+
(r || p()) && v(S);
|
|
289
|
+
}, (C = t.onPause) == null || C.call(t);
|
|
290
|
+
}).then(() => {
|
|
291
|
+
var v;
|
|
292
|
+
a = void 0, r || (v = t.onContinue) == null || v.call(t);
|
|
293
|
+
}), k = () => {
|
|
294
|
+
if (r)
|
|
295
|
+
return;
|
|
296
|
+
let v;
|
|
297
|
+
const C = s === 0 ? t.initialPromise : void 0;
|
|
298
|
+
try {
|
|
299
|
+
v = C ?? t.fn();
|
|
300
|
+
} catch (S) {
|
|
301
|
+
v = Promise.reject(S);
|
|
302
|
+
}
|
|
303
|
+
Promise.resolve(v).then(d).catch((S) => {
|
|
304
|
+
var V;
|
|
305
|
+
if (r)
|
|
306
|
+
return;
|
|
307
|
+
const E = t.retry ?? (kt ? 0 : 3), P = t.retryDelay ?? lr, L = typeof P == "function" ? P(s, S) : P, F = E === !0 || typeof E == "number" && s < E || typeof E == "function" && E(s, S);
|
|
308
|
+
if (e || !F) {
|
|
309
|
+
x(S);
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
s++, (V = t.onFail) == null || V.call(t, s, S), rr(L).then(() => p() ? void 0 : g()).then(() => {
|
|
313
|
+
e ? x(S) : k();
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
return {
|
|
318
|
+
promise: c,
|
|
319
|
+
cancel: l,
|
|
320
|
+
continue: () => (a == null || a(), c),
|
|
321
|
+
cancelRetry: u,
|
|
322
|
+
continueRetry: h,
|
|
323
|
+
canStart: m,
|
|
324
|
+
start: () => (m() ? k() : g().then(k), c)
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
var cr = (t) => setTimeout(t, 0);
|
|
328
|
+
function ur() {
|
|
329
|
+
let t = [], e = 0, s = (u) => {
|
|
330
|
+
u();
|
|
331
|
+
}, r = (u) => {
|
|
332
|
+
u();
|
|
333
|
+
}, a = cr;
|
|
334
|
+
const c = (u) => {
|
|
335
|
+
e ? t.push(u) : a(() => {
|
|
336
|
+
s(u);
|
|
337
|
+
});
|
|
338
|
+
}, l = () => {
|
|
339
|
+
const u = t;
|
|
340
|
+
t = [], u.length && a(() => {
|
|
341
|
+
r(() => {
|
|
342
|
+
u.forEach((h) => {
|
|
343
|
+
s(h);
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
});
|
|
347
|
+
};
|
|
348
|
+
return {
|
|
349
|
+
batch: (u) => {
|
|
350
|
+
let h;
|
|
351
|
+
e++;
|
|
352
|
+
try {
|
|
353
|
+
h = u();
|
|
354
|
+
} finally {
|
|
355
|
+
e--, e || l();
|
|
356
|
+
}
|
|
357
|
+
return h;
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
* All calls to the wrapped function will be batched.
|
|
361
|
+
*/
|
|
362
|
+
batchCalls: (u) => (...h) => {
|
|
363
|
+
c(() => {
|
|
364
|
+
u(...h);
|
|
365
|
+
});
|
|
366
|
+
},
|
|
367
|
+
schedule: c,
|
|
368
|
+
/**
|
|
369
|
+
* Use this method to set a custom notify function.
|
|
370
|
+
* This can be used to for example wrap notifications with `React.act` while running tests.
|
|
371
|
+
*/
|
|
372
|
+
setNotifyFunction: (u) => {
|
|
373
|
+
s = u;
|
|
374
|
+
},
|
|
375
|
+
/**
|
|
376
|
+
* Use this method to set a custom function to batch notifications together into a single tick.
|
|
377
|
+
* By default React Query will use the batch function provided by ReactDOM or React Native.
|
|
378
|
+
*/
|
|
379
|
+
setBatchNotifyFunction: (u) => {
|
|
380
|
+
r = u;
|
|
381
|
+
},
|
|
382
|
+
setScheduler: (u) => {
|
|
383
|
+
a = u;
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
var z = ur(), Ct, ss, vs = (ss = class {
|
|
388
|
+
constructor() {
|
|
389
|
+
y(this, Ct);
|
|
390
|
+
}
|
|
391
|
+
destroy() {
|
|
392
|
+
this.clearGcTimeout();
|
|
393
|
+
}
|
|
394
|
+
scheduleGc() {
|
|
395
|
+
this.clearGcTimeout(), pe(this.gcTime) && f(this, Ct, setTimeout(() => {
|
|
396
|
+
this.optionalRemove();
|
|
397
|
+
}, this.gcTime));
|
|
398
|
+
}
|
|
399
|
+
updateGcTime(t) {
|
|
400
|
+
this.gcTime = Math.max(
|
|
401
|
+
this.gcTime || 0,
|
|
402
|
+
t ?? (kt ? 1 / 0 : 5 * 60 * 1e3)
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
clearGcTimeout() {
|
|
406
|
+
o(this, Ct) && (clearTimeout(o(this, Ct)), f(this, Ct, void 0));
|
|
407
|
+
}
|
|
408
|
+
}, Ct = new WeakMap(), ss), Ft, Tt, Z, xt, U, Yt, bt, X, et, rs, hr = (rs = class extends vs {
|
|
409
|
+
constructor(e) {
|
|
410
|
+
super();
|
|
411
|
+
y(this, X);
|
|
412
|
+
y(this, Ft);
|
|
413
|
+
y(this, Tt);
|
|
414
|
+
y(this, Z);
|
|
415
|
+
y(this, xt);
|
|
416
|
+
y(this, U);
|
|
417
|
+
y(this, Yt);
|
|
418
|
+
y(this, bt);
|
|
419
|
+
f(this, bt, !1), f(this, Yt, e.defaultOptions), this.setOptions(e.options), this.observers = [], f(this, xt, e.client), f(this, Z, o(this, xt).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, f(this, Ft, dr(this.options)), this.state = e.state ?? o(this, Ft), this.scheduleGc();
|
|
420
|
+
}
|
|
421
|
+
get meta() {
|
|
422
|
+
return this.options.meta;
|
|
423
|
+
}
|
|
424
|
+
get promise() {
|
|
425
|
+
var e;
|
|
426
|
+
return (e = o(this, U)) == null ? void 0 : e.promise;
|
|
427
|
+
}
|
|
428
|
+
setOptions(e) {
|
|
429
|
+
this.options = { ...o(this, Yt), ...e }, this.updateGcTime(this.options.gcTime);
|
|
430
|
+
}
|
|
431
|
+
optionalRemove() {
|
|
432
|
+
!this.observers.length && this.state.fetchStatus === "idle" && o(this, Z).remove(this);
|
|
433
|
+
}
|
|
434
|
+
setData(e, s) {
|
|
435
|
+
const r = ye(this.state.data, e, this.options);
|
|
436
|
+
return b(this, X, et).call(this, {
|
|
437
|
+
data: r,
|
|
438
|
+
type: "success",
|
|
439
|
+
dataUpdatedAt: s == null ? void 0 : s.updatedAt,
|
|
440
|
+
manual: s == null ? void 0 : s.manual
|
|
441
|
+
}), r;
|
|
442
|
+
}
|
|
443
|
+
setState(e, s) {
|
|
444
|
+
b(this, X, et).call(this, { type: "setState", state: e, setStateOptions: s });
|
|
445
|
+
}
|
|
446
|
+
cancel(e) {
|
|
447
|
+
var r, a;
|
|
448
|
+
const s = (r = o(this, U)) == null ? void 0 : r.promise;
|
|
449
|
+
return (a = o(this, U)) == null || a.cancel(e), s ? s.then(K).catch(K) : Promise.resolve();
|
|
450
|
+
}
|
|
451
|
+
destroy() {
|
|
452
|
+
super.destroy(), this.cancel({ silent: !0 });
|
|
453
|
+
}
|
|
454
|
+
reset() {
|
|
455
|
+
this.destroy(), this.setState(o(this, Ft));
|
|
456
|
+
}
|
|
457
|
+
isActive() {
|
|
458
|
+
return this.observers.some(
|
|
459
|
+
(e) => J(e.options.enabled, this) !== !1
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
isDisabled() {
|
|
463
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Me || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
|
|
464
|
+
}
|
|
465
|
+
isStatic() {
|
|
466
|
+
return this.getObserversCount() > 0 ? this.observers.some(
|
|
467
|
+
(e) => yt(e.options.staleTime, this) === "static"
|
|
468
|
+
) : !1;
|
|
469
|
+
}
|
|
470
|
+
isStale() {
|
|
471
|
+
return this.getObserversCount() > 0 ? this.observers.some(
|
|
472
|
+
(e) => e.getCurrentResult().isStale
|
|
473
|
+
) : this.state.data === void 0 || this.state.isInvalidated;
|
|
474
|
+
}
|
|
475
|
+
isStaleByTime(e = 0) {
|
|
476
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !hs(this.state.dataUpdatedAt, e);
|
|
477
|
+
}
|
|
478
|
+
onFocus() {
|
|
479
|
+
var s;
|
|
480
|
+
const e = this.observers.find((r) => r.shouldFetchOnWindowFocus());
|
|
481
|
+
e == null || e.refetch({ cancelRefetch: !1 }), (s = o(this, U)) == null || s.continue();
|
|
482
|
+
}
|
|
483
|
+
onOnline() {
|
|
484
|
+
var s;
|
|
485
|
+
const e = this.observers.find((r) => r.shouldFetchOnReconnect());
|
|
486
|
+
e == null || e.refetch({ cancelRefetch: !1 }), (s = o(this, U)) == null || s.continue();
|
|
487
|
+
}
|
|
488
|
+
addObserver(e) {
|
|
489
|
+
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), o(this, Z).notify({ type: "observerAdded", query: this, observer: e }));
|
|
490
|
+
}
|
|
491
|
+
removeObserver(e) {
|
|
492
|
+
this.observers.includes(e) && (this.observers = this.observers.filter((s) => s !== e), this.observers.length || (o(this, U) && (o(this, bt) ? o(this, U).cancel({ revert: !0 }) : o(this, U).cancelRetry()), this.scheduleGc()), o(this, Z).notify({ type: "observerRemoved", query: this, observer: e }));
|
|
493
|
+
}
|
|
494
|
+
getObserversCount() {
|
|
495
|
+
return this.observers.length;
|
|
496
|
+
}
|
|
497
|
+
invalidate() {
|
|
498
|
+
this.state.isInvalidated || b(this, X, et).call(this, { type: "invalidate" });
|
|
499
|
+
}
|
|
500
|
+
fetch(e, s) {
|
|
501
|
+
var h, p, m;
|
|
502
|
+
if (this.state.fetchStatus !== "idle") {
|
|
503
|
+
if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
|
|
504
|
+
this.cancel({ silent: !0 });
|
|
505
|
+
else if (o(this, U))
|
|
506
|
+
return o(this, U).continueRetry(), o(this, U).promise;
|
|
507
|
+
}
|
|
508
|
+
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
509
|
+
const d = this.observers.find((x) => x.options.queryFn);
|
|
510
|
+
d && this.setOptions(d.options);
|
|
511
|
+
}
|
|
512
|
+
const r = new AbortController(), a = (d) => {
|
|
513
|
+
Object.defineProperty(d, "signal", {
|
|
514
|
+
enumerable: !0,
|
|
515
|
+
get: () => (f(this, bt, !0), r.signal)
|
|
516
|
+
});
|
|
517
|
+
}, c = () => {
|
|
518
|
+
const d = fs(this.options, s), x = {
|
|
519
|
+
client: o(this, xt),
|
|
520
|
+
queryKey: this.queryKey,
|
|
521
|
+
meta: this.meta
|
|
522
|
+
};
|
|
523
|
+
return a(x), f(this, bt, !1), this.options.persister ? this.options.persister(
|
|
524
|
+
d,
|
|
525
|
+
x,
|
|
526
|
+
this
|
|
527
|
+
) : d(x);
|
|
528
|
+
}, l = {
|
|
529
|
+
fetchOptions: s,
|
|
530
|
+
options: this.options,
|
|
531
|
+
queryKey: this.queryKey,
|
|
532
|
+
client: o(this, xt),
|
|
533
|
+
state: this.state,
|
|
534
|
+
fetchFn: c
|
|
535
|
+
};
|
|
536
|
+
a(l), (h = this.options.behavior) == null || h.onFetch(
|
|
537
|
+
l,
|
|
538
|
+
this
|
|
539
|
+
), f(this, Tt, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((p = l.fetchOptions) == null ? void 0 : p.meta)) && b(this, X, et).call(this, { type: "fetch", meta: (m = l.fetchOptions) == null ? void 0 : m.meta });
|
|
540
|
+
const u = (d) => {
|
|
541
|
+
var x, g, k, v;
|
|
542
|
+
fe(d) && d.silent || b(this, X, et).call(this, {
|
|
543
|
+
type: "error",
|
|
544
|
+
error: d
|
|
545
|
+
}), fe(d) || ((g = (x = o(this, Z).config).onError) == null || g.call(
|
|
546
|
+
x,
|
|
547
|
+
d,
|
|
548
|
+
this
|
|
549
|
+
), (v = (k = o(this, Z).config).onSettled) == null || v.call(
|
|
550
|
+
k,
|
|
551
|
+
this.state.data,
|
|
552
|
+
d,
|
|
553
|
+
this
|
|
554
|
+
)), this.scheduleGc();
|
|
555
|
+
};
|
|
556
|
+
return f(this, U, gs({
|
|
557
|
+
initialPromise: s == null ? void 0 : s.initialPromise,
|
|
558
|
+
fn: l.fetchFn,
|
|
559
|
+
abort: r.abort.bind(r),
|
|
560
|
+
onSuccess: (d) => {
|
|
561
|
+
var x, g, k, v;
|
|
562
|
+
if (d === void 0) {
|
|
563
|
+
u(new Error(`${this.queryHash} data is undefined`));
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
566
|
+
try {
|
|
567
|
+
this.setData(d);
|
|
568
|
+
} catch (C) {
|
|
569
|
+
u(C);
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
(g = (x = o(this, Z).config).onSuccess) == null || g.call(x, d, this), (v = (k = o(this, Z).config).onSettled) == null || v.call(
|
|
573
|
+
k,
|
|
574
|
+
d,
|
|
575
|
+
this.state.error,
|
|
576
|
+
this
|
|
577
|
+
), this.scheduleGc();
|
|
578
|
+
},
|
|
579
|
+
onError: u,
|
|
580
|
+
onFail: (d, x) => {
|
|
581
|
+
b(this, X, et).call(this, { type: "failed", failureCount: d, error: x });
|
|
582
|
+
},
|
|
583
|
+
onPause: () => {
|
|
584
|
+
b(this, X, et).call(this, { type: "pause" });
|
|
585
|
+
},
|
|
586
|
+
onContinue: () => {
|
|
587
|
+
b(this, X, et).call(this, { type: "continue" });
|
|
588
|
+
},
|
|
589
|
+
retry: l.options.retry,
|
|
590
|
+
retryDelay: l.options.retryDelay,
|
|
591
|
+
networkMode: l.options.networkMode,
|
|
592
|
+
canRun: () => !0
|
|
593
|
+
})), o(this, U).start();
|
|
594
|
+
}
|
|
595
|
+
}, Ft = new WeakMap(), Tt = new WeakMap(), Z = new WeakMap(), xt = new WeakMap(), U = new WeakMap(), Yt = new WeakMap(), bt = new WeakMap(), X = new WeakSet(), et = function(e) {
|
|
596
|
+
const s = (r) => {
|
|
597
|
+
switch (e.type) {
|
|
598
|
+
case "failed":
|
|
599
|
+
return {
|
|
600
|
+
...r,
|
|
601
|
+
fetchFailureCount: e.failureCount,
|
|
602
|
+
fetchFailureReason: e.error
|
|
603
|
+
};
|
|
604
|
+
case "pause":
|
|
605
|
+
return {
|
|
606
|
+
...r,
|
|
607
|
+
fetchStatus: "paused"
|
|
608
|
+
};
|
|
609
|
+
case "continue":
|
|
610
|
+
return {
|
|
611
|
+
...r,
|
|
612
|
+
fetchStatus: "fetching"
|
|
613
|
+
};
|
|
614
|
+
case "fetch":
|
|
615
|
+
return {
|
|
616
|
+
...r,
|
|
617
|
+
...Cs(r.data, this.options),
|
|
618
|
+
fetchMeta: e.meta ?? null
|
|
619
|
+
};
|
|
620
|
+
case "success":
|
|
621
|
+
return {
|
|
622
|
+
...r,
|
|
623
|
+
data: e.data,
|
|
624
|
+
dataUpdateCount: r.dataUpdateCount + 1,
|
|
625
|
+
dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
|
|
626
|
+
error: null,
|
|
627
|
+
isInvalidated: !1,
|
|
628
|
+
status: "success",
|
|
629
|
+
...!e.manual && {
|
|
630
|
+
fetchStatus: "idle",
|
|
631
|
+
fetchFailureCount: 0,
|
|
632
|
+
fetchFailureReason: null
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
case "error":
|
|
636
|
+
const a = e.error;
|
|
637
|
+
return fe(a) && a.revert && o(this, Tt) ? { ...o(this, Tt), fetchStatus: "idle" } : {
|
|
638
|
+
...r,
|
|
639
|
+
error: a,
|
|
640
|
+
errorUpdateCount: r.errorUpdateCount + 1,
|
|
641
|
+
errorUpdatedAt: Date.now(),
|
|
642
|
+
fetchFailureCount: r.fetchFailureCount + 1,
|
|
643
|
+
fetchFailureReason: a,
|
|
644
|
+
fetchStatus: "idle",
|
|
645
|
+
status: "error"
|
|
646
|
+
};
|
|
647
|
+
case "invalidate":
|
|
648
|
+
return {
|
|
649
|
+
...r,
|
|
650
|
+
isInvalidated: !0
|
|
651
|
+
};
|
|
652
|
+
case "setState":
|
|
653
|
+
return {
|
|
654
|
+
...r,
|
|
655
|
+
...e.state
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
this.state = s(this.state), z.batch(() => {
|
|
660
|
+
this.observers.forEach((r) => {
|
|
661
|
+
r.onQueryUpdate();
|
|
662
|
+
}), o(this, Z).notify({ query: this, type: "updated", action: e });
|
|
663
|
+
});
|
|
664
|
+
}, rs);
|
|
665
|
+
function Cs(t, e) {
|
|
666
|
+
return {
|
|
667
|
+
fetchFailureCount: 0,
|
|
668
|
+
fetchFailureReason: null,
|
|
669
|
+
fetchStatus: ms(e.networkMode) ? "fetching" : "paused",
|
|
670
|
+
...t === void 0 && {
|
|
671
|
+
error: null,
|
|
672
|
+
status: "pending"
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
function dr(t) {
|
|
677
|
+
const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, r = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
|
|
678
|
+
return {
|
|
679
|
+
data: e,
|
|
680
|
+
dataUpdateCount: 0,
|
|
681
|
+
dataUpdatedAt: s ? r ?? Date.now() : 0,
|
|
682
|
+
error: null,
|
|
683
|
+
errorUpdateCount: 0,
|
|
684
|
+
errorUpdatedAt: 0,
|
|
685
|
+
fetchFailureCount: 0,
|
|
686
|
+
fetchFailureReason: null,
|
|
687
|
+
fetchMeta: null,
|
|
688
|
+
isInvalidated: !1,
|
|
689
|
+
status: s ? "success" : "pending",
|
|
690
|
+
fetchStatus: "idle"
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
var I, is, fr = (is = class extends Vt {
|
|
694
|
+
constructor(e = {}) {
|
|
695
|
+
super();
|
|
696
|
+
y(this, I);
|
|
697
|
+
this.config = e, f(this, I, /* @__PURE__ */ new Map());
|
|
698
|
+
}
|
|
699
|
+
build(e, s, r) {
|
|
700
|
+
const a = s.queryKey, c = s.queryHash ?? Ee(a, s);
|
|
701
|
+
let l = this.get(c);
|
|
702
|
+
return l || (l = new hr({
|
|
703
|
+
client: e,
|
|
704
|
+
queryKey: a,
|
|
705
|
+
queryHash: c,
|
|
706
|
+
options: e.defaultQueryOptions(s),
|
|
707
|
+
state: r,
|
|
708
|
+
defaultOptions: e.getQueryDefaults(a)
|
|
709
|
+
}), this.add(l)), l;
|
|
710
|
+
}
|
|
711
|
+
add(e) {
|
|
712
|
+
o(this, I).has(e.queryHash) || (o(this, I).set(e.queryHash, e), this.notify({
|
|
713
|
+
type: "added",
|
|
714
|
+
query: e
|
|
715
|
+
}));
|
|
716
|
+
}
|
|
717
|
+
remove(e) {
|
|
718
|
+
const s = o(this, I).get(e.queryHash);
|
|
719
|
+
s && (e.destroy(), s === e && o(this, I).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
720
|
+
}
|
|
721
|
+
clear() {
|
|
722
|
+
z.batch(() => {
|
|
723
|
+
this.getAll().forEach((e) => {
|
|
724
|
+
this.remove(e);
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
get(e) {
|
|
729
|
+
return o(this, I).get(e);
|
|
730
|
+
}
|
|
731
|
+
getAll() {
|
|
732
|
+
return [...o(this, I).values()];
|
|
733
|
+
}
|
|
734
|
+
find(e) {
|
|
735
|
+
const s = { exact: !0, ...e };
|
|
736
|
+
return this.getAll().find(
|
|
737
|
+
(r) => Ue(s, r)
|
|
738
|
+
);
|
|
739
|
+
}
|
|
740
|
+
findAll(e = {}) {
|
|
741
|
+
const s = this.getAll();
|
|
742
|
+
return Object.keys(e).length > 0 ? s.filter((r) => Ue(e, r)) : s;
|
|
743
|
+
}
|
|
744
|
+
notify(e) {
|
|
745
|
+
z.batch(() => {
|
|
746
|
+
this.listeners.forEach((s) => {
|
|
747
|
+
s(e);
|
|
748
|
+
});
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
onFocus() {
|
|
752
|
+
z.batch(() => {
|
|
753
|
+
this.getAll().forEach((e) => {
|
|
754
|
+
e.onFocus();
|
|
755
|
+
});
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
onOnline() {
|
|
759
|
+
z.batch(() => {
|
|
760
|
+
this.getAll().forEach((e) => {
|
|
761
|
+
e.onOnline();
|
|
762
|
+
});
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
}, I = new WeakMap(), is), B, Q, wt, tt, nt, ns, pr = (ns = class extends vs {
|
|
766
|
+
constructor(e) {
|
|
767
|
+
super();
|
|
768
|
+
y(this, tt);
|
|
769
|
+
y(this, B);
|
|
770
|
+
y(this, Q);
|
|
771
|
+
y(this, wt);
|
|
772
|
+
this.mutationId = e.mutationId, f(this, Q, e.mutationCache), f(this, B, []), this.state = e.state || xs(), this.setOptions(e.options), this.scheduleGc();
|
|
773
|
+
}
|
|
774
|
+
setOptions(e) {
|
|
775
|
+
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
776
|
+
}
|
|
777
|
+
get meta() {
|
|
778
|
+
return this.options.meta;
|
|
779
|
+
}
|
|
780
|
+
addObserver(e) {
|
|
781
|
+
o(this, B).includes(e) || (o(this, B).push(e), this.clearGcTimeout(), o(this, Q).notify({
|
|
782
|
+
type: "observerAdded",
|
|
783
|
+
mutation: this,
|
|
784
|
+
observer: e
|
|
785
|
+
}));
|
|
786
|
+
}
|
|
787
|
+
removeObserver(e) {
|
|
788
|
+
f(this, B, o(this, B).filter((s) => s !== e)), this.scheduleGc(), o(this, Q).notify({
|
|
789
|
+
type: "observerRemoved",
|
|
790
|
+
mutation: this,
|
|
791
|
+
observer: e
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
optionalRemove() {
|
|
795
|
+
o(this, B).length || (this.state.status === "pending" ? this.scheduleGc() : o(this, Q).remove(this));
|
|
796
|
+
}
|
|
797
|
+
continue() {
|
|
798
|
+
var e;
|
|
799
|
+
return ((e = o(this, wt)) == null ? void 0 : e.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
|
|
800
|
+
this.execute(this.state.variables);
|
|
801
|
+
}
|
|
802
|
+
async execute(e) {
|
|
803
|
+
var c, l, u, h, p, m, d, x, g, k, v, C, S, E, P, L, F, V, $t, D;
|
|
804
|
+
const s = () => {
|
|
805
|
+
b(this, tt, nt).call(this, { type: "continue" });
|
|
806
|
+
};
|
|
807
|
+
f(this, wt, gs({
|
|
808
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
809
|
+
onFail: (R, T) => {
|
|
810
|
+
b(this, tt, nt).call(this, { type: "failed", failureCount: R, error: T });
|
|
811
|
+
},
|
|
812
|
+
onPause: () => {
|
|
813
|
+
b(this, tt, nt).call(this, { type: "pause" });
|
|
814
|
+
},
|
|
815
|
+
onContinue: s,
|
|
816
|
+
retry: this.options.retry ?? 0,
|
|
817
|
+
retryDelay: this.options.retryDelay,
|
|
818
|
+
networkMode: this.options.networkMode,
|
|
819
|
+
canRun: () => o(this, Q).canRun(this)
|
|
820
|
+
}));
|
|
821
|
+
const r = this.state.status === "pending", a = !o(this, wt).canStart();
|
|
822
|
+
try {
|
|
823
|
+
if (r)
|
|
824
|
+
s();
|
|
825
|
+
else {
|
|
826
|
+
b(this, tt, nt).call(this, { type: "pending", variables: e, isPaused: a }), await ((l = (c = o(this, Q).config).onMutate) == null ? void 0 : l.call(
|
|
827
|
+
c,
|
|
828
|
+
e,
|
|
829
|
+
this
|
|
830
|
+
));
|
|
831
|
+
const T = await ((h = (u = this.options).onMutate) == null ? void 0 : h.call(u, e));
|
|
832
|
+
T !== this.state.context && b(this, tt, nt).call(this, {
|
|
833
|
+
type: "pending",
|
|
834
|
+
context: T,
|
|
835
|
+
variables: e,
|
|
836
|
+
isPaused: a
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
const R = await o(this, wt).start();
|
|
840
|
+
return await ((m = (p = o(this, Q).config).onSuccess) == null ? void 0 : m.call(
|
|
841
|
+
p,
|
|
842
|
+
R,
|
|
843
|
+
e,
|
|
844
|
+
this.state.context,
|
|
845
|
+
this
|
|
846
|
+
)), await ((x = (d = this.options).onSuccess) == null ? void 0 : x.call(d, R, e, this.state.context)), await ((k = (g = o(this, Q).config).onSettled) == null ? void 0 : k.call(
|
|
847
|
+
g,
|
|
848
|
+
R,
|
|
849
|
+
null,
|
|
850
|
+
this.state.variables,
|
|
851
|
+
this.state.context,
|
|
852
|
+
this
|
|
853
|
+
)), await ((C = (v = this.options).onSettled) == null ? void 0 : C.call(v, R, null, e, this.state.context)), b(this, tt, nt).call(this, { type: "success", data: R }), R;
|
|
854
|
+
} catch (R) {
|
|
855
|
+
try {
|
|
856
|
+
throw await ((E = (S = o(this, Q).config).onError) == null ? void 0 : E.call(
|
|
857
|
+
S,
|
|
858
|
+
R,
|
|
859
|
+
e,
|
|
860
|
+
this.state.context,
|
|
861
|
+
this
|
|
862
|
+
)), await ((L = (P = this.options).onError) == null ? void 0 : L.call(
|
|
863
|
+
P,
|
|
864
|
+
R,
|
|
865
|
+
e,
|
|
866
|
+
this.state.context
|
|
867
|
+
)), await ((V = (F = o(this, Q).config).onSettled) == null ? void 0 : V.call(
|
|
868
|
+
F,
|
|
869
|
+
void 0,
|
|
870
|
+
R,
|
|
871
|
+
this.state.variables,
|
|
872
|
+
this.state.context,
|
|
873
|
+
this
|
|
874
|
+
)), await ((D = ($t = this.options).onSettled) == null ? void 0 : D.call(
|
|
875
|
+
$t,
|
|
876
|
+
void 0,
|
|
877
|
+
R,
|
|
878
|
+
e,
|
|
879
|
+
this.state.context
|
|
880
|
+
)), R;
|
|
881
|
+
} finally {
|
|
882
|
+
b(this, tt, nt).call(this, { type: "error", error: R });
|
|
883
|
+
}
|
|
884
|
+
} finally {
|
|
885
|
+
o(this, Q).runNext(this);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}, B = new WeakMap(), Q = new WeakMap(), wt = new WeakMap(), tt = new WeakSet(), nt = function(e) {
|
|
889
|
+
const s = (r) => {
|
|
890
|
+
switch (e.type) {
|
|
891
|
+
case "failed":
|
|
892
|
+
return {
|
|
893
|
+
...r,
|
|
894
|
+
failureCount: e.failureCount,
|
|
895
|
+
failureReason: e.error
|
|
896
|
+
};
|
|
897
|
+
case "pause":
|
|
898
|
+
return {
|
|
899
|
+
...r,
|
|
900
|
+
isPaused: !0
|
|
901
|
+
};
|
|
902
|
+
case "continue":
|
|
903
|
+
return {
|
|
904
|
+
...r,
|
|
905
|
+
isPaused: !1
|
|
906
|
+
};
|
|
907
|
+
case "pending":
|
|
908
|
+
return {
|
|
909
|
+
...r,
|
|
910
|
+
context: e.context,
|
|
911
|
+
data: void 0,
|
|
912
|
+
failureCount: 0,
|
|
913
|
+
failureReason: null,
|
|
914
|
+
error: null,
|
|
915
|
+
isPaused: e.isPaused,
|
|
916
|
+
status: "pending",
|
|
917
|
+
variables: e.variables,
|
|
918
|
+
submittedAt: Date.now()
|
|
919
|
+
};
|
|
920
|
+
case "success":
|
|
921
|
+
return {
|
|
922
|
+
...r,
|
|
923
|
+
data: e.data,
|
|
924
|
+
failureCount: 0,
|
|
925
|
+
failureReason: null,
|
|
926
|
+
error: null,
|
|
927
|
+
status: "success",
|
|
928
|
+
isPaused: !1
|
|
929
|
+
};
|
|
930
|
+
case "error":
|
|
931
|
+
return {
|
|
932
|
+
...r,
|
|
933
|
+
data: void 0,
|
|
934
|
+
error: e.error,
|
|
935
|
+
failureCount: r.failureCount + 1,
|
|
936
|
+
failureReason: e.error,
|
|
937
|
+
isPaused: !1,
|
|
938
|
+
status: "error"
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
this.state = s(this.state), z.batch(() => {
|
|
943
|
+
o(this, B).forEach((r) => {
|
|
944
|
+
r.onMutationUpdate(e);
|
|
945
|
+
}), o(this, Q).notify({
|
|
946
|
+
mutation: this,
|
|
947
|
+
type: "updated",
|
|
948
|
+
action: e
|
|
949
|
+
});
|
|
950
|
+
});
|
|
951
|
+
}, ns);
|
|
952
|
+
function xs() {
|
|
953
|
+
return {
|
|
954
|
+
context: void 0,
|
|
955
|
+
data: void 0,
|
|
956
|
+
error: null,
|
|
957
|
+
failureCount: 0,
|
|
958
|
+
failureReason: null,
|
|
959
|
+
isPaused: !1,
|
|
960
|
+
status: "idle",
|
|
961
|
+
variables: void 0,
|
|
962
|
+
submittedAt: 0
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
var st, Y, Jt, as, mr = (as = class extends Vt {
|
|
966
|
+
constructor(e = {}) {
|
|
967
|
+
super();
|
|
968
|
+
y(this, st);
|
|
969
|
+
y(this, Y);
|
|
970
|
+
y(this, Jt);
|
|
971
|
+
this.config = e, f(this, st, /* @__PURE__ */ new Set()), f(this, Y, /* @__PURE__ */ new Map()), f(this, Jt, 0);
|
|
972
|
+
}
|
|
973
|
+
build(e, s, r) {
|
|
974
|
+
const a = new pr({
|
|
975
|
+
mutationCache: this,
|
|
976
|
+
mutationId: ++re(this, Jt)._,
|
|
977
|
+
options: e.defaultMutationOptions(s),
|
|
978
|
+
state: r
|
|
979
|
+
});
|
|
980
|
+
return this.add(a), a;
|
|
981
|
+
}
|
|
982
|
+
add(e) {
|
|
983
|
+
o(this, st).add(e);
|
|
984
|
+
const s = ie(e);
|
|
985
|
+
if (typeof s == "string") {
|
|
986
|
+
const r = o(this, Y).get(s);
|
|
987
|
+
r ? r.push(e) : o(this, Y).set(s, [e]);
|
|
988
|
+
}
|
|
989
|
+
this.notify({ type: "added", mutation: e });
|
|
990
|
+
}
|
|
991
|
+
remove(e) {
|
|
992
|
+
if (o(this, st).delete(e)) {
|
|
993
|
+
const s = ie(e);
|
|
994
|
+
if (typeof s == "string") {
|
|
995
|
+
const r = o(this, Y).get(s);
|
|
996
|
+
if (r)
|
|
997
|
+
if (r.length > 1) {
|
|
998
|
+
const a = r.indexOf(e);
|
|
999
|
+
a !== -1 && r.splice(a, 1);
|
|
1000
|
+
} else r[0] === e && o(this, Y).delete(s);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
this.notify({ type: "removed", mutation: e });
|
|
1004
|
+
}
|
|
1005
|
+
canRun(e) {
|
|
1006
|
+
const s = ie(e);
|
|
1007
|
+
if (typeof s == "string") {
|
|
1008
|
+
const r = o(this, Y).get(s), a = r == null ? void 0 : r.find(
|
|
1009
|
+
(c) => c.state.status === "pending"
|
|
1010
|
+
);
|
|
1011
|
+
return !a || a === e;
|
|
1012
|
+
} else
|
|
1013
|
+
return !0;
|
|
1014
|
+
}
|
|
1015
|
+
runNext(e) {
|
|
1016
|
+
var r;
|
|
1017
|
+
const s = ie(e);
|
|
1018
|
+
if (typeof s == "string") {
|
|
1019
|
+
const a = (r = o(this, Y).get(s)) == null ? void 0 : r.find((c) => c !== e && c.state.isPaused);
|
|
1020
|
+
return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
|
|
1021
|
+
} else
|
|
1022
|
+
return Promise.resolve();
|
|
1023
|
+
}
|
|
1024
|
+
clear() {
|
|
1025
|
+
z.batch(() => {
|
|
1026
|
+
o(this, st).forEach((e) => {
|
|
1027
|
+
this.notify({ type: "removed", mutation: e });
|
|
1028
|
+
}), o(this, st).clear(), o(this, Y).clear();
|
|
1029
|
+
});
|
|
1030
|
+
}
|
|
1031
|
+
getAll() {
|
|
1032
|
+
return Array.from(o(this, st));
|
|
1033
|
+
}
|
|
1034
|
+
find(e) {
|
|
1035
|
+
const s = { exact: !0, ...e };
|
|
1036
|
+
return this.getAll().find(
|
|
1037
|
+
(r) => Qe(s, r)
|
|
1038
|
+
);
|
|
1039
|
+
}
|
|
1040
|
+
findAll(e = {}) {
|
|
1041
|
+
return this.getAll().filter((s) => Qe(e, s));
|
|
1042
|
+
}
|
|
1043
|
+
notify(e) {
|
|
1044
|
+
z.batch(() => {
|
|
1045
|
+
this.listeners.forEach((s) => {
|
|
1046
|
+
s(e);
|
|
1047
|
+
});
|
|
1048
|
+
});
|
|
1049
|
+
}
|
|
1050
|
+
resumePausedMutations() {
|
|
1051
|
+
const e = this.getAll().filter((s) => s.state.isPaused);
|
|
1052
|
+
return z.batch(
|
|
1053
|
+
() => Promise.all(
|
|
1054
|
+
e.map((s) => s.continue().catch(K))
|
|
1055
|
+
)
|
|
1056
|
+
);
|
|
1057
|
+
}
|
|
1058
|
+
}, st = new WeakMap(), Y = new WeakMap(), Jt = new WeakMap(), as);
|
|
1059
|
+
function ie(t) {
|
|
1060
|
+
var e;
|
|
1061
|
+
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
1062
|
+
}
|
|
1063
|
+
function Ge(t) {
|
|
1064
|
+
return {
|
|
1065
|
+
onFetch: (e, s) => {
|
|
1066
|
+
var m, d, x, g, k;
|
|
1067
|
+
const r = e.options, a = (x = (d = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : d.fetchMore) == null ? void 0 : x.direction, c = ((g = e.state.data) == null ? void 0 : g.pages) || [], l = ((k = e.state.data) == null ? void 0 : k.pageParams) || [];
|
|
1068
|
+
let u = { pages: [], pageParams: [] }, h = 0;
|
|
1069
|
+
const p = async () => {
|
|
1070
|
+
let v = !1;
|
|
1071
|
+
const C = (P) => {
|
|
1072
|
+
Object.defineProperty(P, "signal", {
|
|
1073
|
+
enumerable: !0,
|
|
1074
|
+
get: () => (e.signal.aborted ? v = !0 : e.signal.addEventListener("abort", () => {
|
|
1075
|
+
v = !0;
|
|
1076
|
+
}), e.signal)
|
|
1077
|
+
});
|
|
1078
|
+
}, S = fs(e.options, e.fetchOptions), E = async (P, L, F) => {
|
|
1079
|
+
if (v)
|
|
1080
|
+
return Promise.reject();
|
|
1081
|
+
if (L == null && P.pages.length)
|
|
1082
|
+
return Promise.resolve(P);
|
|
1083
|
+
const V = {
|
|
1084
|
+
client: e.client,
|
|
1085
|
+
queryKey: e.queryKey,
|
|
1086
|
+
pageParam: L,
|
|
1087
|
+
direction: F ? "backward" : "forward",
|
|
1088
|
+
meta: e.options.meta
|
|
1089
|
+
};
|
|
1090
|
+
C(V);
|
|
1091
|
+
const $t = await S(
|
|
1092
|
+
V
|
|
1093
|
+
), { maxPages: D } = e.options, R = F ? nr : ir;
|
|
1094
|
+
return {
|
|
1095
|
+
pages: R(P.pages, $t, D),
|
|
1096
|
+
pageParams: R(P.pageParams, L, D)
|
|
1097
|
+
};
|
|
1098
|
+
};
|
|
1099
|
+
if (a && c.length) {
|
|
1100
|
+
const P = a === "backward", L = P ? yr : qe, F = {
|
|
1101
|
+
pages: c,
|
|
1102
|
+
pageParams: l
|
|
1103
|
+
}, V = L(r, F);
|
|
1104
|
+
u = await E(F, V, P);
|
|
1105
|
+
} else {
|
|
1106
|
+
const P = t ?? c.length;
|
|
1107
|
+
do {
|
|
1108
|
+
const L = h === 0 ? l[0] ?? r.initialPageParam : qe(r, u);
|
|
1109
|
+
if (h > 0 && L == null)
|
|
1110
|
+
break;
|
|
1111
|
+
u = await E(u, L), h++;
|
|
1112
|
+
} while (h < P);
|
|
1113
|
+
}
|
|
1114
|
+
return u;
|
|
1115
|
+
};
|
|
1116
|
+
e.options.persister ? e.fetchFn = () => {
|
|
1117
|
+
var v, C;
|
|
1118
|
+
return (C = (v = e.options).persister) == null ? void 0 : C.call(
|
|
1119
|
+
v,
|
|
1120
|
+
p,
|
|
1121
|
+
{
|
|
1122
|
+
client: e.client,
|
|
1123
|
+
queryKey: e.queryKey,
|
|
1124
|
+
meta: e.options.meta,
|
|
1125
|
+
signal: e.signal
|
|
1126
|
+
},
|
|
1127
|
+
s
|
|
1128
|
+
);
|
|
1129
|
+
} : e.fetchFn = p;
|
|
1130
|
+
}
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
function qe(t, { pages: e, pageParams: s }) {
|
|
1134
|
+
const r = e.length - 1;
|
|
1135
|
+
return e.length > 0 ? t.getNextPageParam(
|
|
1136
|
+
e[r],
|
|
1137
|
+
e,
|
|
1138
|
+
s[r],
|
|
1139
|
+
s
|
|
1140
|
+
) : void 0;
|
|
1141
|
+
}
|
|
1142
|
+
function yr(t, { pages: e, pageParams: s }) {
|
|
1143
|
+
var r;
|
|
1144
|
+
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, s[0], s) : void 0;
|
|
1145
|
+
}
|
|
1146
|
+
var O, lt, ct, Dt, Ut, ut, Qt, Ht, os, bs = (os = class {
|
|
1147
|
+
constructor(t = {}) {
|
|
1148
|
+
y(this, O);
|
|
1149
|
+
y(this, lt);
|
|
1150
|
+
y(this, ct);
|
|
1151
|
+
y(this, Dt);
|
|
1152
|
+
y(this, Ut);
|
|
1153
|
+
y(this, ut);
|
|
1154
|
+
y(this, Qt);
|
|
1155
|
+
y(this, Ht);
|
|
1156
|
+
f(this, O, t.queryCache || new fr()), f(this, lt, t.mutationCache || new mr()), f(this, ct, t.defaultOptions || {}), f(this, Dt, /* @__PURE__ */ new Map()), f(this, Ut, /* @__PURE__ */ new Map()), f(this, ut, 0);
|
|
1157
|
+
}
|
|
1158
|
+
mount() {
|
|
1159
|
+
re(this, ut)._++, o(this, ut) === 1 && (f(this, Qt, Le.subscribe(async (t) => {
|
|
1160
|
+
t && (await this.resumePausedMutations(), o(this, O).onFocus());
|
|
1161
|
+
})), f(this, Ht, le.subscribe(async (t) => {
|
|
1162
|
+
t && (await this.resumePausedMutations(), o(this, O).onOnline());
|
|
1163
|
+
})));
|
|
1164
|
+
}
|
|
1165
|
+
unmount() {
|
|
1166
|
+
var t, e;
|
|
1167
|
+
re(this, ut)._--, o(this, ut) === 0 && ((t = o(this, Qt)) == null || t.call(this), f(this, Qt, void 0), (e = o(this, Ht)) == null || e.call(this), f(this, Ht, void 0));
|
|
1168
|
+
}
|
|
1169
|
+
isFetching(t) {
|
|
1170
|
+
return o(this, O).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
1171
|
+
}
|
|
1172
|
+
isMutating(t) {
|
|
1173
|
+
return o(this, lt).findAll({ ...t, status: "pending" }).length;
|
|
1174
|
+
}
|
|
1175
|
+
/**
|
|
1176
|
+
* Imperative (non-reactive) way to retrieve data for a QueryKey.
|
|
1177
|
+
* Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
|
|
1178
|
+
*
|
|
1179
|
+
* Hint: Do not use this function inside a component, because it won't receive updates.
|
|
1180
|
+
* Use `useQuery` to create a `QueryObserver` that subscribes to changes.
|
|
1181
|
+
*/
|
|
1182
|
+
getQueryData(t) {
|
|
1183
|
+
var s;
|
|
1184
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
1185
|
+
return (s = o(this, O).get(e.queryHash)) == null ? void 0 : s.state.data;
|
|
1186
|
+
}
|
|
1187
|
+
ensureQueryData(t) {
|
|
1188
|
+
const e = this.defaultQueryOptions(t), s = o(this, O).build(this, e), r = s.state.data;
|
|
1189
|
+
return r === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && s.isStaleByTime(yt(e.staleTime, s)) && this.prefetchQuery(e), Promise.resolve(r));
|
|
1190
|
+
}
|
|
1191
|
+
getQueriesData(t) {
|
|
1192
|
+
return o(this, O).findAll(t).map(({ queryKey: e, state: s }) => {
|
|
1193
|
+
const r = s.data;
|
|
1194
|
+
return [e, r];
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
setQueryData(t, e, s) {
|
|
1198
|
+
const r = this.defaultQueryOptions({ queryKey: t }), a = o(this, O).get(
|
|
1199
|
+
r.queryHash
|
|
1200
|
+
), c = a == null ? void 0 : a.state.data, l = sr(e, c);
|
|
1201
|
+
if (l !== void 0)
|
|
1202
|
+
return o(this, O).build(this, r).setData(l, { ...s, manual: !0 });
|
|
1203
|
+
}
|
|
1204
|
+
setQueriesData(t, e, s) {
|
|
1205
|
+
return z.batch(
|
|
1206
|
+
() => o(this, O).findAll(t).map(({ queryKey: r }) => [
|
|
1207
|
+
r,
|
|
1208
|
+
this.setQueryData(r, e, s)
|
|
1209
|
+
])
|
|
1210
|
+
);
|
|
1211
|
+
}
|
|
1212
|
+
getQueryState(t) {
|
|
1213
|
+
var s;
|
|
1214
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
1215
|
+
return (s = o(this, O).get(
|
|
1216
|
+
e.queryHash
|
|
1217
|
+
)) == null ? void 0 : s.state;
|
|
1218
|
+
}
|
|
1219
|
+
removeQueries(t) {
|
|
1220
|
+
const e = o(this, O);
|
|
1221
|
+
z.batch(() => {
|
|
1222
|
+
e.findAll(t).forEach((s) => {
|
|
1223
|
+
e.remove(s);
|
|
1224
|
+
});
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
resetQueries(t, e) {
|
|
1228
|
+
const s = o(this, O);
|
|
1229
|
+
return z.batch(() => (s.findAll(t).forEach((r) => {
|
|
1230
|
+
r.reset();
|
|
1231
|
+
}), this.refetchQueries(
|
|
1232
|
+
{
|
|
1233
|
+
type: "active",
|
|
1234
|
+
...t
|
|
1235
|
+
},
|
|
1236
|
+
e
|
|
1237
|
+
)));
|
|
1238
|
+
}
|
|
1239
|
+
cancelQueries(t, e = {}) {
|
|
1240
|
+
const s = { revert: !0, ...e }, r = z.batch(
|
|
1241
|
+
() => o(this, O).findAll(t).map((a) => a.cancel(s))
|
|
1242
|
+
);
|
|
1243
|
+
return Promise.all(r).then(K).catch(K);
|
|
1244
|
+
}
|
|
1245
|
+
invalidateQueries(t, e = {}) {
|
|
1246
|
+
return z.batch(() => (o(this, O).findAll(t).forEach((s) => {
|
|
1247
|
+
s.invalidate();
|
|
1248
|
+
}), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
1249
|
+
{
|
|
1250
|
+
...t,
|
|
1251
|
+
type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
|
|
1252
|
+
},
|
|
1253
|
+
e
|
|
1254
|
+
)));
|
|
1255
|
+
}
|
|
1256
|
+
refetchQueries(t, e = {}) {
|
|
1257
|
+
const s = {
|
|
1258
|
+
...e,
|
|
1259
|
+
cancelRefetch: e.cancelRefetch ?? !0
|
|
1260
|
+
}, r = z.batch(
|
|
1261
|
+
() => o(this, O).findAll(t).filter((a) => !a.isDisabled() && !a.isStatic()).map((a) => {
|
|
1262
|
+
let c = a.fetch(void 0, s);
|
|
1263
|
+
return s.throwOnError || (c = c.catch(K)), a.state.fetchStatus === "paused" ? Promise.resolve() : c;
|
|
1264
|
+
})
|
|
1265
|
+
);
|
|
1266
|
+
return Promise.all(r).then(K);
|
|
1267
|
+
}
|
|
1268
|
+
fetchQuery(t) {
|
|
1269
|
+
const e = this.defaultQueryOptions(t);
|
|
1270
|
+
e.retry === void 0 && (e.retry = !1);
|
|
1271
|
+
const s = o(this, O).build(this, e);
|
|
1272
|
+
return s.isStaleByTime(
|
|
1273
|
+
yt(e.staleTime, s)
|
|
1274
|
+
) ? s.fetch(e) : Promise.resolve(s.state.data);
|
|
1275
|
+
}
|
|
1276
|
+
prefetchQuery(t) {
|
|
1277
|
+
return this.fetchQuery(t).then(K).catch(K);
|
|
1278
|
+
}
|
|
1279
|
+
fetchInfiniteQuery(t) {
|
|
1280
|
+
return t.behavior = Ge(t.pages), this.fetchQuery(t);
|
|
1281
|
+
}
|
|
1282
|
+
prefetchInfiniteQuery(t) {
|
|
1283
|
+
return this.fetchInfiniteQuery(t).then(K).catch(K);
|
|
1284
|
+
}
|
|
1285
|
+
ensureInfiniteQueryData(t) {
|
|
1286
|
+
return t.behavior = Ge(t.pages), this.ensureQueryData(t);
|
|
1287
|
+
}
|
|
1288
|
+
resumePausedMutations() {
|
|
1289
|
+
return le.isOnline() ? o(this, lt).resumePausedMutations() : Promise.resolve();
|
|
1290
|
+
}
|
|
1291
|
+
getQueryCache() {
|
|
1292
|
+
return o(this, O);
|
|
1293
|
+
}
|
|
1294
|
+
getMutationCache() {
|
|
1295
|
+
return o(this, lt);
|
|
1296
|
+
}
|
|
1297
|
+
getDefaultOptions() {
|
|
1298
|
+
return o(this, ct);
|
|
1299
|
+
}
|
|
1300
|
+
setDefaultOptions(t) {
|
|
1301
|
+
f(this, ct, t);
|
|
1302
|
+
}
|
|
1303
|
+
setQueryDefaults(t, e) {
|
|
1304
|
+
o(this, Dt).set(Pt(t), {
|
|
1305
|
+
queryKey: t,
|
|
1306
|
+
defaultOptions: e
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
getQueryDefaults(t) {
|
|
1310
|
+
const e = [...o(this, Dt).values()], s = {};
|
|
1311
|
+
return e.forEach((r) => {
|
|
1312
|
+
Xt(t, r.queryKey) && Object.assign(s, r.defaultOptions);
|
|
1313
|
+
}), s;
|
|
1314
|
+
}
|
|
1315
|
+
setMutationDefaults(t, e) {
|
|
1316
|
+
o(this, Ut).set(Pt(t), {
|
|
1317
|
+
mutationKey: t,
|
|
1318
|
+
defaultOptions: e
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
getMutationDefaults(t) {
|
|
1322
|
+
const e = [...o(this, Ut).values()], s = {};
|
|
1323
|
+
return e.forEach((r) => {
|
|
1324
|
+
Xt(t, r.mutationKey) && Object.assign(s, r.defaultOptions);
|
|
1325
|
+
}), s;
|
|
1326
|
+
}
|
|
1327
|
+
defaultQueryOptions(t) {
|
|
1328
|
+
if (t._defaulted)
|
|
1329
|
+
return t;
|
|
1330
|
+
const e = {
|
|
1331
|
+
...o(this, ct).queries,
|
|
1332
|
+
...this.getQueryDefaults(t.queryKey),
|
|
1333
|
+
...t,
|
|
1334
|
+
_defaulted: !0
|
|
1335
|
+
};
|
|
1336
|
+
return e.queryHash || (e.queryHash = Ee(
|
|
1337
|
+
e.queryKey,
|
|
1338
|
+
e
|
|
1339
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === Me && (e.enabled = !1), e;
|
|
1340
|
+
}
|
|
1341
|
+
defaultMutationOptions(t) {
|
|
1342
|
+
return t != null && t._defaulted ? t : {
|
|
1343
|
+
...o(this, ct).mutations,
|
|
1344
|
+
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
1345
|
+
...t,
|
|
1346
|
+
_defaulted: !0
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
clear() {
|
|
1350
|
+
o(this, O).clear(), o(this, lt).clear();
|
|
1351
|
+
}
|
|
1352
|
+
}, O = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), Dt = new WeakMap(), Ut = new WeakMap(), ut = new WeakMap(), Qt = new WeakMap(), Ht = new WeakMap(), os), G, j, It, H, jt, Kt, ht, dt, Bt, Gt, qt, St, _t, ft, Wt, A, Zt, ve, Ce, xe, be, we, je, Se, ws, ls, gr = (ls = class extends Vt {
|
|
1353
|
+
constructor(e, s) {
|
|
1354
|
+
super();
|
|
1355
|
+
y(this, A);
|
|
1356
|
+
y(this, G);
|
|
1357
|
+
y(this, j);
|
|
1358
|
+
y(this, It);
|
|
1359
|
+
y(this, H);
|
|
1360
|
+
y(this, jt);
|
|
1361
|
+
y(this, Kt);
|
|
1362
|
+
y(this, ht);
|
|
1363
|
+
y(this, dt);
|
|
1364
|
+
y(this, Bt);
|
|
1365
|
+
y(this, Gt);
|
|
1366
|
+
// This property keeps track of the last query with defined data.
|
|
1367
|
+
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
1368
|
+
y(this, qt);
|
|
1369
|
+
y(this, St);
|
|
1370
|
+
y(this, _t);
|
|
1371
|
+
y(this, ft);
|
|
1372
|
+
y(this, Wt, /* @__PURE__ */ new Set());
|
|
1373
|
+
this.options = s, f(this, G, e), f(this, dt, null), f(this, ht, ge()), this.options.experimental_prefetchInRender || o(this, ht).reject(
|
|
1374
|
+
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
1375
|
+
), this.bindMethods(), this.setOptions(s);
|
|
1376
|
+
}
|
|
1377
|
+
bindMethods() {
|
|
1378
|
+
this.refetch = this.refetch.bind(this);
|
|
1379
|
+
}
|
|
1380
|
+
onSubscribe() {
|
|
1381
|
+
this.listeners.size === 1 && (o(this, j).addObserver(this), We(o(this, j), this.options) ? b(this, A, Zt).call(this) : this.updateResult(), b(this, A, be).call(this));
|
|
1382
|
+
}
|
|
1383
|
+
onUnsubscribe() {
|
|
1384
|
+
this.hasListeners() || this.destroy();
|
|
1385
|
+
}
|
|
1386
|
+
shouldFetchOnReconnect() {
|
|
1387
|
+
return _e(
|
|
1388
|
+
o(this, j),
|
|
1389
|
+
this.options,
|
|
1390
|
+
this.options.refetchOnReconnect
|
|
1391
|
+
);
|
|
1392
|
+
}
|
|
1393
|
+
shouldFetchOnWindowFocus() {
|
|
1394
|
+
return _e(
|
|
1395
|
+
o(this, j),
|
|
1396
|
+
this.options,
|
|
1397
|
+
this.options.refetchOnWindowFocus
|
|
1398
|
+
);
|
|
1399
|
+
}
|
|
1400
|
+
destroy() {
|
|
1401
|
+
this.listeners = /* @__PURE__ */ new Set(), b(this, A, we).call(this), b(this, A, je).call(this), o(this, j).removeObserver(this);
|
|
1402
|
+
}
|
|
1403
|
+
setOptions(e) {
|
|
1404
|
+
const s = this.options, r = o(this, j);
|
|
1405
|
+
if (this.options = o(this, G).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof J(this.options.enabled, o(this, j)) != "boolean")
|
|
1406
|
+
throw new Error(
|
|
1407
|
+
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
1408
|
+
);
|
|
1409
|
+
b(this, A, Se).call(this), o(this, j).setOptions(this.options), s._defaulted && !oe(this.options, s) && o(this, G).getQueryCache().notify({
|
|
1410
|
+
type: "observerOptionsUpdated",
|
|
1411
|
+
query: o(this, j),
|
|
1412
|
+
observer: this
|
|
1413
|
+
});
|
|
1414
|
+
const a = this.hasListeners();
|
|
1415
|
+
a && Ve(
|
|
1416
|
+
o(this, j),
|
|
1417
|
+
r,
|
|
1418
|
+
this.options,
|
|
1419
|
+
s
|
|
1420
|
+
) && b(this, A, Zt).call(this), this.updateResult(), a && (o(this, j) !== r || J(this.options.enabled, o(this, j)) !== J(s.enabled, o(this, j)) || yt(this.options.staleTime, o(this, j)) !== yt(s.staleTime, o(this, j))) && b(this, A, ve).call(this);
|
|
1421
|
+
const c = b(this, A, Ce).call(this);
|
|
1422
|
+
a && (o(this, j) !== r || J(this.options.enabled, o(this, j)) !== J(s.enabled, o(this, j)) || c !== o(this, ft)) && b(this, A, xe).call(this, c);
|
|
1423
|
+
}
|
|
1424
|
+
getOptimisticResult(e) {
|
|
1425
|
+
const s = o(this, G).getQueryCache().build(o(this, G), e), r = this.createResult(s, e);
|
|
1426
|
+
return Cr(this, r) && (f(this, H, r), f(this, Kt, this.options), f(this, jt, o(this, j).state)), r;
|
|
1427
|
+
}
|
|
1428
|
+
getCurrentResult() {
|
|
1429
|
+
return o(this, H);
|
|
1430
|
+
}
|
|
1431
|
+
trackResult(e, s) {
|
|
1432
|
+
return new Proxy(e, {
|
|
1433
|
+
get: (r, a) => (this.trackProp(a), s == null || s(a), Reflect.get(r, a))
|
|
1434
|
+
});
|
|
1435
|
+
}
|
|
1436
|
+
trackProp(e) {
|
|
1437
|
+
o(this, Wt).add(e);
|
|
1438
|
+
}
|
|
1439
|
+
getCurrentQuery() {
|
|
1440
|
+
return o(this, j);
|
|
1441
|
+
}
|
|
1442
|
+
refetch({ ...e } = {}) {
|
|
1443
|
+
return this.fetch({
|
|
1444
|
+
...e
|
|
1445
|
+
});
|
|
1446
|
+
}
|
|
1447
|
+
fetchOptimistic(e) {
|
|
1448
|
+
const s = o(this, G).defaultQueryOptions(e), r = o(this, G).getQueryCache().build(o(this, G), s);
|
|
1449
|
+
return r.fetch().then(() => this.createResult(r, s));
|
|
1450
|
+
}
|
|
1451
|
+
fetch(e) {
|
|
1452
|
+
return b(this, A, Zt).call(this, {
|
|
1453
|
+
...e,
|
|
1454
|
+
cancelRefetch: e.cancelRefetch ?? !0
|
|
1455
|
+
}).then(() => (this.updateResult(), o(this, H)));
|
|
1456
|
+
}
|
|
1457
|
+
createResult(e, s) {
|
|
1458
|
+
var R;
|
|
1459
|
+
const r = o(this, j), a = this.options, c = o(this, H), l = o(this, jt), u = o(this, Kt), p = e !== r ? e.state : o(this, It), { state: m } = e;
|
|
1460
|
+
let d = { ...m }, x = !1, g;
|
|
1461
|
+
if (s._optimisticResults) {
|
|
1462
|
+
const T = this.hasListeners(), ee = !T && We(e, s), Mt = T && Ve(e, r, s, a);
|
|
1463
|
+
(ee || Mt) && (d = {
|
|
1464
|
+
...d,
|
|
1465
|
+
...Cs(m.data, e.options)
|
|
1466
|
+
}), s._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
|
|
1467
|
+
}
|
|
1468
|
+
let { error: k, errorUpdatedAt: v, status: C } = d;
|
|
1469
|
+
g = d.data;
|
|
1470
|
+
let S = !1;
|
|
1471
|
+
if (s.placeholderData !== void 0 && g === void 0 && C === "pending") {
|
|
1472
|
+
let T;
|
|
1473
|
+
c != null && c.isPlaceholderData && s.placeholderData === (u == null ? void 0 : u.placeholderData) ? (T = c.data, S = !0) : T = typeof s.placeholderData == "function" ? s.placeholderData(
|
|
1474
|
+
(R = o(this, qt)) == null ? void 0 : R.state.data,
|
|
1475
|
+
o(this, qt)
|
|
1476
|
+
) : s.placeholderData, T !== void 0 && (C = "success", g = ye(
|
|
1477
|
+
c == null ? void 0 : c.data,
|
|
1478
|
+
T,
|
|
1479
|
+
s
|
|
1480
|
+
), x = !0);
|
|
1481
|
+
}
|
|
1482
|
+
if (s.select && g !== void 0 && !S)
|
|
1483
|
+
if (c && g === (l == null ? void 0 : l.data) && s.select === o(this, Bt))
|
|
1484
|
+
g = o(this, Gt);
|
|
1485
|
+
else
|
|
1486
|
+
try {
|
|
1487
|
+
f(this, Bt, s.select), g = s.select(g), g = ye(c == null ? void 0 : c.data, g, s), f(this, Gt, g), f(this, dt, null);
|
|
1488
|
+
} catch (T) {
|
|
1489
|
+
f(this, dt, T);
|
|
1490
|
+
}
|
|
1491
|
+
o(this, dt) && (k = o(this, dt), g = o(this, Gt), v = Date.now(), C = "error");
|
|
1492
|
+
const E = d.fetchStatus === "fetching", P = C === "pending", L = C === "error", F = P && E, V = g !== void 0, D = {
|
|
1493
|
+
status: C,
|
|
1494
|
+
fetchStatus: d.fetchStatus,
|
|
1495
|
+
isPending: P,
|
|
1496
|
+
isSuccess: C === "success",
|
|
1497
|
+
isError: L,
|
|
1498
|
+
isInitialLoading: F,
|
|
1499
|
+
isLoading: F,
|
|
1500
|
+
data: g,
|
|
1501
|
+
dataUpdatedAt: d.dataUpdatedAt,
|
|
1502
|
+
error: k,
|
|
1503
|
+
errorUpdatedAt: v,
|
|
1504
|
+
failureCount: d.fetchFailureCount,
|
|
1505
|
+
failureReason: d.fetchFailureReason,
|
|
1506
|
+
errorUpdateCount: d.errorUpdateCount,
|
|
1507
|
+
isFetched: d.dataUpdateCount > 0 || d.errorUpdateCount > 0,
|
|
1508
|
+
isFetchedAfterMount: d.dataUpdateCount > p.dataUpdateCount || d.errorUpdateCount > p.errorUpdateCount,
|
|
1509
|
+
isFetching: E,
|
|
1510
|
+
isRefetching: E && !P,
|
|
1511
|
+
isLoadingError: L && !V,
|
|
1512
|
+
isPaused: d.fetchStatus === "paused",
|
|
1513
|
+
isPlaceholderData: x,
|
|
1514
|
+
isRefetchError: L && V,
|
|
1515
|
+
isStale: Oe(e, s),
|
|
1516
|
+
refetch: this.refetch,
|
|
1517
|
+
promise: o(this, ht)
|
|
1518
|
+
};
|
|
1519
|
+
if (this.options.experimental_prefetchInRender) {
|
|
1520
|
+
const T = (se) => {
|
|
1521
|
+
D.status === "error" ? se.reject(D.error) : D.data !== void 0 && se.resolve(D.data);
|
|
1522
|
+
}, ee = () => {
|
|
1523
|
+
const se = f(this, ht, D.promise = ge());
|
|
1524
|
+
T(se);
|
|
1525
|
+
}, Mt = o(this, ht);
|
|
1526
|
+
switch (Mt.status) {
|
|
1527
|
+
case "pending":
|
|
1528
|
+
e.queryHash === r.queryHash && T(Mt);
|
|
1529
|
+
break;
|
|
1530
|
+
case "fulfilled":
|
|
1531
|
+
(D.status === "error" || D.data !== Mt.value) && ee();
|
|
1532
|
+
break;
|
|
1533
|
+
case "rejected":
|
|
1534
|
+
(D.status !== "error" || D.error !== Mt.reason) && ee();
|
|
1535
|
+
break;
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
return D;
|
|
1539
|
+
}
|
|
1540
|
+
updateResult() {
|
|
1541
|
+
const e = o(this, H), s = this.createResult(o(this, j), this.options);
|
|
1542
|
+
if (f(this, jt, o(this, j).state), f(this, Kt, this.options), o(this, jt).data !== void 0 && f(this, qt, o(this, j)), oe(s, e))
|
|
1543
|
+
return;
|
|
1544
|
+
f(this, H, s);
|
|
1545
|
+
const r = () => {
|
|
1546
|
+
if (!e)
|
|
1547
|
+
return !0;
|
|
1548
|
+
const { notifyOnChangeProps: a } = this.options, c = typeof a == "function" ? a() : a;
|
|
1549
|
+
if (c === "all" || !c && !o(this, Wt).size)
|
|
1550
|
+
return !0;
|
|
1551
|
+
const l = new Set(
|
|
1552
|
+
c ?? o(this, Wt)
|
|
1553
|
+
);
|
|
1554
|
+
return this.options.throwOnError && l.add("error"), Object.keys(o(this, H)).some((u) => {
|
|
1555
|
+
const h = u;
|
|
1556
|
+
return o(this, H)[h] !== e[h] && l.has(h);
|
|
1557
|
+
});
|
|
1558
|
+
};
|
|
1559
|
+
b(this, A, ws).call(this, { listeners: r() });
|
|
1560
|
+
}
|
|
1561
|
+
onQueryUpdate() {
|
|
1562
|
+
this.updateResult(), this.hasListeners() && b(this, A, be).call(this);
|
|
1563
|
+
}
|
|
1564
|
+
}, G = new WeakMap(), j = new WeakMap(), It = new WeakMap(), H = new WeakMap(), jt = new WeakMap(), Kt = new WeakMap(), ht = new WeakMap(), dt = new WeakMap(), Bt = new WeakMap(), Gt = new WeakMap(), qt = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), ft = new WeakMap(), Wt = new WeakMap(), A = new WeakSet(), Zt = function(e) {
|
|
1565
|
+
b(this, A, Se).call(this);
|
|
1566
|
+
let s = o(this, j).fetch(
|
|
1567
|
+
this.options,
|
|
1568
|
+
e
|
|
1569
|
+
);
|
|
1570
|
+
return e != null && e.throwOnError || (s = s.catch(K)), s;
|
|
1571
|
+
}, ve = function() {
|
|
1572
|
+
b(this, A, we).call(this);
|
|
1573
|
+
const e = yt(
|
|
1574
|
+
this.options.staleTime,
|
|
1575
|
+
o(this, j)
|
|
1576
|
+
);
|
|
1577
|
+
if (kt || o(this, H).isStale || !pe(e))
|
|
1578
|
+
return;
|
|
1579
|
+
const r = hs(o(this, H).dataUpdatedAt, e) + 1;
|
|
1580
|
+
f(this, St, setTimeout(() => {
|
|
1581
|
+
o(this, H).isStale || this.updateResult();
|
|
1582
|
+
}, r));
|
|
1583
|
+
}, Ce = function() {
|
|
1584
|
+
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(o(this, j)) : this.options.refetchInterval) ?? !1;
|
|
1585
|
+
}, xe = function(e) {
|
|
1586
|
+
b(this, A, je).call(this), f(this, ft, e), !(kt || J(this.options.enabled, o(this, j)) === !1 || !pe(o(this, ft)) || o(this, ft) === 0) && f(this, _t, setInterval(() => {
|
|
1587
|
+
(this.options.refetchIntervalInBackground || Le.isFocused()) && b(this, A, Zt).call(this);
|
|
1588
|
+
}, o(this, ft)));
|
|
1589
|
+
}, be = function() {
|
|
1590
|
+
b(this, A, ve).call(this), b(this, A, xe).call(this, b(this, A, Ce).call(this));
|
|
1591
|
+
}, we = function() {
|
|
1592
|
+
o(this, St) && (clearTimeout(o(this, St)), f(this, St, void 0));
|
|
1593
|
+
}, je = function() {
|
|
1594
|
+
o(this, _t) && (clearInterval(o(this, _t)), f(this, _t, void 0));
|
|
1595
|
+
}, Se = function() {
|
|
1596
|
+
const e = o(this, G).getQueryCache().build(o(this, G), this.options);
|
|
1597
|
+
if (e === o(this, j))
|
|
1598
|
+
return;
|
|
1599
|
+
const s = o(this, j);
|
|
1600
|
+
f(this, j, e), f(this, It, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
|
|
1601
|
+
}, ws = function(e) {
|
|
1602
|
+
z.batch(() => {
|
|
1603
|
+
e.listeners && this.listeners.forEach((s) => {
|
|
1604
|
+
s(o(this, H));
|
|
1605
|
+
}), o(this, G).getQueryCache().notify({
|
|
1606
|
+
query: o(this, j),
|
|
1607
|
+
type: "observerResultsUpdated"
|
|
1608
|
+
});
|
|
1609
|
+
});
|
|
1610
|
+
}, ls);
|
|
1611
|
+
function vr(t, e) {
|
|
1612
|
+
return J(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
|
|
1613
|
+
}
|
|
1614
|
+
function We(t, e) {
|
|
1615
|
+
return vr(t, e) || t.state.data !== void 0 && _e(t, e, e.refetchOnMount);
|
|
1616
|
+
}
|
|
1617
|
+
function _e(t, e, s) {
|
|
1618
|
+
if (J(e.enabled, t) !== !1 && yt(e.staleTime, t) !== "static") {
|
|
1619
|
+
const r = typeof s == "function" ? s(t) : s;
|
|
1620
|
+
return r === "always" || r !== !1 && Oe(t, e);
|
|
1621
|
+
}
|
|
1622
|
+
return !1;
|
|
1623
|
+
}
|
|
1624
|
+
function Ve(t, e, s, r) {
|
|
1625
|
+
return (t !== e || J(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && Oe(t, s);
|
|
1626
|
+
}
|
|
1627
|
+
function Oe(t, e) {
|
|
1628
|
+
return J(e.enabled, t) !== !1 && t.isStaleByTime(yt(e.staleTime, t));
|
|
1629
|
+
}
|
|
1630
|
+
function Cr(t, e) {
|
|
1631
|
+
return !oe(t.getCurrentResult(), e);
|
|
1632
|
+
}
|
|
1633
|
+
var pt, mt, q, rt, it, ae, ke, cs, xr = (cs = class extends Vt {
|
|
1634
|
+
constructor(e, s) {
|
|
1635
|
+
super();
|
|
1636
|
+
y(this, it);
|
|
1637
|
+
y(this, pt);
|
|
1638
|
+
y(this, mt);
|
|
1639
|
+
y(this, q);
|
|
1640
|
+
y(this, rt);
|
|
1641
|
+
f(this, pt, e), this.setOptions(s), this.bindMethods(), b(this, it, ae).call(this);
|
|
1642
|
+
}
|
|
1643
|
+
bindMethods() {
|
|
1644
|
+
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
1645
|
+
}
|
|
1646
|
+
setOptions(e) {
|
|
1647
|
+
var r;
|
|
1648
|
+
const s = this.options;
|
|
1649
|
+
this.options = o(this, pt).defaultMutationOptions(e), oe(this.options, s) || o(this, pt).getMutationCache().notify({
|
|
1650
|
+
type: "observerOptionsUpdated",
|
|
1651
|
+
mutation: o(this, q),
|
|
1652
|
+
observer: this
|
|
1653
|
+
}), s != null && s.mutationKey && this.options.mutationKey && Pt(s.mutationKey) !== Pt(this.options.mutationKey) ? this.reset() : ((r = o(this, q)) == null ? void 0 : r.state.status) === "pending" && o(this, q).setOptions(this.options);
|
|
1654
|
+
}
|
|
1655
|
+
onUnsubscribe() {
|
|
1656
|
+
var e;
|
|
1657
|
+
this.hasListeners() || (e = o(this, q)) == null || e.removeObserver(this);
|
|
1658
|
+
}
|
|
1659
|
+
onMutationUpdate(e) {
|
|
1660
|
+
b(this, it, ae).call(this), b(this, it, ke).call(this, e);
|
|
1661
|
+
}
|
|
1662
|
+
getCurrentResult() {
|
|
1663
|
+
return o(this, mt);
|
|
1664
|
+
}
|
|
1665
|
+
reset() {
|
|
1666
|
+
var e;
|
|
1667
|
+
(e = o(this, q)) == null || e.removeObserver(this), f(this, q, void 0), b(this, it, ae).call(this), b(this, it, ke).call(this);
|
|
1668
|
+
}
|
|
1669
|
+
mutate(e, s) {
|
|
1670
|
+
var r;
|
|
1671
|
+
return f(this, rt, s), (r = o(this, q)) == null || r.removeObserver(this), f(this, q, o(this, pt).getMutationCache().build(o(this, pt), this.options)), o(this, q).addObserver(this), o(this, q).execute(e);
|
|
1672
|
+
}
|
|
1673
|
+
}, pt = new WeakMap(), mt = new WeakMap(), q = new WeakMap(), rt = new WeakMap(), it = new WeakSet(), ae = function() {
|
|
1674
|
+
var s;
|
|
1675
|
+
const e = ((s = o(this, q)) == null ? void 0 : s.state) ?? xs();
|
|
1676
|
+
f(this, mt, {
|
|
1677
|
+
...e,
|
|
1678
|
+
isPending: e.status === "pending",
|
|
1679
|
+
isSuccess: e.status === "success",
|
|
1680
|
+
isError: e.status === "error",
|
|
1681
|
+
isIdle: e.status === "idle",
|
|
1682
|
+
mutate: this.mutate,
|
|
1683
|
+
reset: this.reset
|
|
1684
|
+
});
|
|
1685
|
+
}, ke = function(e) {
|
|
1686
|
+
z.batch(() => {
|
|
1687
|
+
var s, r, a, c, l, u, h, p;
|
|
1688
|
+
if (o(this, rt) && this.hasListeners()) {
|
|
1689
|
+
const m = o(this, mt).variables, d = o(this, mt).context;
|
|
1690
|
+
(e == null ? void 0 : e.type) === "success" ? ((r = (s = o(this, rt)).onSuccess) == null || r.call(s, e.data, m, d), (c = (a = o(this, rt)).onSettled) == null || c.call(a, e.data, null, m, d)) : (e == null ? void 0 : e.type) === "error" && ((u = (l = o(this, rt)).onError) == null || u.call(l, e.error, m, d), (p = (h = o(this, rt)).onSettled) == null || p.call(
|
|
1691
|
+
h,
|
|
1692
|
+
void 0,
|
|
1693
|
+
e.error,
|
|
1694
|
+
m,
|
|
1695
|
+
d
|
|
1696
|
+
));
|
|
1697
|
+
}
|
|
1698
|
+
this.listeners.forEach((m) => {
|
|
1699
|
+
m(o(this, mt));
|
|
1700
|
+
});
|
|
1701
|
+
});
|
|
1702
|
+
}, cs), js = n.createContext(
|
|
1703
|
+
void 0
|
|
1704
|
+
), Re = (t) => {
|
|
1705
|
+
const e = n.useContext(js);
|
|
1706
|
+
if (!e)
|
|
1707
|
+
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1708
|
+
return e;
|
|
1709
|
+
}, br = ({
|
|
1710
|
+
client: t,
|
|
1711
|
+
children: e
|
|
1712
|
+
}) => (n.useEffect(() => (t.mount(), () => {
|
|
1713
|
+
t.unmount();
|
|
1714
|
+
}), [t]), /* @__PURE__ */ i.jsx(js.Provider, { value: t, children: e })), Ss = n.createContext(!1), wr = () => n.useContext(Ss);
|
|
1715
|
+
Ss.Provider;
|
|
1716
|
+
function jr() {
|
|
1717
|
+
let t = !1;
|
|
1718
|
+
return {
|
|
1719
|
+
clearReset: () => {
|
|
1720
|
+
t = !1;
|
|
1721
|
+
},
|
|
1722
|
+
reset: () => {
|
|
1723
|
+
t = !0;
|
|
1724
|
+
},
|
|
1725
|
+
isReset: () => t
|
|
1726
|
+
};
|
|
1727
|
+
}
|
|
1728
|
+
var Sr = n.createContext(jr()), _r = () => n.useContext(Sr), kr = (t, e) => {
|
|
1729
|
+
(t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
|
|
1730
|
+
}, Pr = (t) => {
|
|
1731
|
+
n.useEffect(() => {
|
|
1732
|
+
t.clearReset();
|
|
1733
|
+
}, [t]);
|
|
1734
|
+
}, Nr = ({
|
|
1735
|
+
result: t,
|
|
1736
|
+
errorResetBoundary: e,
|
|
1737
|
+
throwOnError: s,
|
|
1738
|
+
query: r,
|
|
1739
|
+
suspense: a
|
|
1740
|
+
}) => t.isError && !e.isReset() && !t.isFetching && r && (a && t.data === void 0 || ps(s, [t.error, r])), Ar = (t) => {
|
|
1741
|
+
if (t.suspense) {
|
|
1742
|
+
const e = (r) => r === "static" ? r : Math.max(r ?? 1e3, 1e3), s = t.staleTime;
|
|
1743
|
+
t.staleTime = typeof s == "function" ? (...r) => e(s(...r)) : e(s), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3));
|
|
1744
|
+
}
|
|
1745
|
+
}, Er = (t, e) => t.isLoading && t.isFetching && !e, Mr = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, $e = (t, e, s) => e.fetchOptimistic(t).catch(() => {
|
|
1746
|
+
s.clearReset();
|
|
1747
|
+
});
|
|
1748
|
+
function Lr(t, e, s) {
|
|
1749
|
+
var d, x, g, k, v;
|
|
1750
|
+
const r = Re(), a = wr(), c = _r(), l = r.defaultQueryOptions(t);
|
|
1751
|
+
(x = (d = r.getDefaultOptions().queries) == null ? void 0 : d._experimental_beforeQuery) == null || x.call(
|
|
1752
|
+
d,
|
|
1753
|
+
l
|
|
1754
|
+
), l._optimisticResults = a ? "isRestoring" : "optimistic", Ar(l), kr(l, c), Pr(c);
|
|
1755
|
+
const u = !r.getQueryCache().get(l.queryHash), [h] = n.useState(
|
|
1756
|
+
() => new e(
|
|
1757
|
+
r,
|
|
1758
|
+
l
|
|
1759
|
+
)
|
|
1760
|
+
), p = h.getOptimisticResult(l), m = !a && t.subscribed !== !1;
|
|
1761
|
+
if (n.useSyncExternalStore(
|
|
1762
|
+
n.useCallback(
|
|
1763
|
+
(C) => {
|
|
1764
|
+
const S = m ? h.subscribe(z.batchCalls(C)) : K;
|
|
1765
|
+
return h.updateResult(), S;
|
|
1766
|
+
},
|
|
1767
|
+
[h, m]
|
|
1768
|
+
),
|
|
1769
|
+
() => h.getCurrentResult(),
|
|
1770
|
+
() => h.getCurrentResult()
|
|
1771
|
+
), n.useEffect(() => {
|
|
1772
|
+
h.setOptions(l);
|
|
1773
|
+
}, [l, h]), Mr(l, p))
|
|
1774
|
+
throw $e(l, h, c);
|
|
1775
|
+
if (Nr({
|
|
1776
|
+
result: p,
|
|
1777
|
+
errorResetBoundary: c,
|
|
1778
|
+
throwOnError: l.throwOnError,
|
|
1779
|
+
query: r.getQueryCache().get(l.queryHash),
|
|
1780
|
+
suspense: l.suspense
|
|
1781
|
+
}))
|
|
1782
|
+
throw p.error;
|
|
1783
|
+
if ((k = (g = r.getDefaultOptions().queries) == null ? void 0 : g._experimental_afterQuery) == null || k.call(
|
|
1784
|
+
g,
|
|
1785
|
+
l,
|
|
1786
|
+
p
|
|
1787
|
+
), l.experimental_prefetchInRender && !kt && Er(p, a)) {
|
|
1788
|
+
const C = u ? (
|
|
1789
|
+
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1790
|
+
$e(l, h, c)
|
|
1791
|
+
) : (
|
|
1792
|
+
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1793
|
+
(v = r.getQueryCache().get(l.queryHash)) == null ? void 0 : v.promise
|
|
1794
|
+
);
|
|
1795
|
+
C == null || C.catch(K).finally(() => {
|
|
1796
|
+
h.updateResult();
|
|
1797
|
+
});
|
|
1798
|
+
}
|
|
1799
|
+
return l.notifyOnChangeProps ? p : h.trackResult(p);
|
|
1800
|
+
}
|
|
1801
|
+
function _s(t, e) {
|
|
1802
|
+
return Lr(t, gr);
|
|
1803
|
+
}
|
|
1804
|
+
function Or(t, e) {
|
|
1805
|
+
const s = Re(), [r] = n.useState(
|
|
1806
|
+
() => new xr(
|
|
1807
|
+
s,
|
|
1808
|
+
t
|
|
1809
|
+
)
|
|
1810
|
+
);
|
|
1811
|
+
n.useEffect(() => {
|
|
1812
|
+
r.setOptions(t);
|
|
1813
|
+
}, [r, t]);
|
|
1814
|
+
const a = n.useSyncExternalStore(
|
|
1815
|
+
n.useCallback(
|
|
1816
|
+
(l) => r.subscribe(z.batchCalls(l)),
|
|
1817
|
+
[r]
|
|
1818
|
+
),
|
|
1819
|
+
() => r.getCurrentResult(),
|
|
1820
|
+
() => r.getCurrentResult()
|
|
1821
|
+
), c = n.useCallback(
|
|
1822
|
+
(l, u) => {
|
|
1823
|
+
r.mutate(l, u).catch(K);
|
|
1824
|
+
},
|
|
1825
|
+
[r]
|
|
1826
|
+
);
|
|
1827
|
+
if (a.error && ps(r.options.throwOnError, [a.error]))
|
|
1828
|
+
throw a.error;
|
|
1829
|
+
return { ...a, mutate: c, mutateAsync: a.mutate };
|
|
1830
|
+
}
|
|
1831
|
+
function ks(t) {
|
|
1832
|
+
var e, s, r = "";
|
|
1833
|
+
if (typeof t == "string" || typeof t == "number") r += t;
|
|
1834
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1835
|
+
var a = t.length;
|
|
1836
|
+
for (e = 0; e < a; e++) t[e] && (s = ks(t[e])) && (r && (r += " "), r += s);
|
|
1837
|
+
} else for (s in t) t[s] && (r && (r += " "), r += s);
|
|
1838
|
+
return r;
|
|
1839
|
+
}
|
|
1840
|
+
function N() {
|
|
1841
|
+
for (var t, e, s = 0, r = "", a = arguments.length; s < a; s++) (t = arguments[s]) && (e = ks(t)) && (r && (r += " "), r += e);
|
|
1842
|
+
return r;
|
|
1843
|
+
}
|
|
1844
|
+
var Rr = Object.defineProperty, zr = Object.defineProperties, Fr = Object.getOwnPropertyDescriptors, ce = Object.getOwnPropertySymbols, Ps = Object.prototype.hasOwnProperty, Ns = Object.prototype.propertyIsEnumerable, Ze = (t, e, s) => e in t ? Rr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, w = (t, e) => {
|
|
1845
|
+
for (var s in e || (e = {}))
|
|
1846
|
+
Ps.call(e, s) && Ze(t, s, e[s]);
|
|
1847
|
+
if (ce)
|
|
1848
|
+
for (var s of ce(e))
|
|
1849
|
+
Ns.call(e, s) && Ze(t, s, e[s]);
|
|
1850
|
+
return t;
|
|
1851
|
+
}, _ = (t, e) => zr(t, Fr(e)), M = (t, e) => {
|
|
1852
|
+
var s = {};
|
|
1853
|
+
for (var r in t)
|
|
1854
|
+
Ps.call(t, r) && e.indexOf(r) < 0 && (s[r] = t[r]);
|
|
1855
|
+
if (t != null && ce)
|
|
1856
|
+
for (var r of ce(t))
|
|
1857
|
+
e.indexOf(r) < 0 && Ns.call(t, r) && (s[r] = t[r]);
|
|
1858
|
+
return s;
|
|
1859
|
+
}, Tr = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
1860
|
+
const r = `${t.charAt(0)}${e.charAt(0)}`;
|
|
1861
|
+
return /* @__PURE__ */ i.jsx(
|
|
1862
|
+
"span",
|
|
1863
|
+
{
|
|
1864
|
+
className: `avatar avatar--${s}`,
|
|
1865
|
+
"aria-label": `${t} ${e}`,
|
|
1866
|
+
role: "img",
|
|
1867
|
+
children: /* @__PURE__ */ i.jsx("span", { className: "avatar__initials", children: r })
|
|
1868
|
+
}
|
|
1869
|
+
);
|
|
1870
|
+
}, At = n.forwardRef(
|
|
1871
|
+
(t, e) => {
|
|
1872
|
+
var s = t, {
|
|
1873
|
+
iconLeft: r,
|
|
1874
|
+
iconRight: a,
|
|
1875
|
+
isPending: c = !1,
|
|
1876
|
+
isFilled: l = !1,
|
|
1877
|
+
variant: u,
|
|
1878
|
+
className: h,
|
|
1879
|
+
children: p
|
|
1880
|
+
} = s, m = M(s, [
|
|
1881
|
+
"iconLeft",
|
|
1882
|
+
"iconRight",
|
|
1883
|
+
"isPending",
|
|
1884
|
+
"isFilled",
|
|
1885
|
+
"variant",
|
|
1886
|
+
"className",
|
|
1887
|
+
"children"
|
|
1888
|
+
]);
|
|
1889
|
+
const d = !!r || !!a;
|
|
1890
|
+
return /* @__PURE__ */ i.jsxs(
|
|
1891
|
+
"button",
|
|
1892
|
+
_(w({
|
|
1893
|
+
ref: e
|
|
1894
|
+
}, m), {
|
|
1895
|
+
className: N(
|
|
1896
|
+
"button",
|
|
1897
|
+
u && `button--${u}`,
|
|
1898
|
+
u && l && `button--${u}--filled`,
|
|
1899
|
+
d && "button--with-icon",
|
|
1900
|
+
c && "button--pending",
|
|
1901
|
+
h
|
|
1902
|
+
),
|
|
1903
|
+
children: [
|
|
1904
|
+
r && /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: r }),
|
|
1905
|
+
!!p && /* @__PURE__ */ i.jsx("span", { className: "button__label", children: p }),
|
|
1906
|
+
a && /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: a })
|
|
1907
|
+
]
|
|
1908
|
+
})
|
|
1909
|
+
);
|
|
1910
|
+
}
|
|
1911
|
+
);
|
|
1912
|
+
At.displayName = "Button";
|
|
1913
|
+
n.createContext(void 0);
|
|
1914
|
+
var Dr = n.forwardRef(
|
|
1915
|
+
(t, e) => {
|
|
1916
|
+
var s = t, { prefix: r, suffix: a, className: c } = s, l = M(s, ["prefix", "suffix", "className"]);
|
|
1917
|
+
return /* @__PURE__ */ i.jsxs("div", { className: "input__wrapper", children: [
|
|
1918
|
+
r && /* @__PURE__ */ i.jsx("span", { className: "input__prefix", children: r }),
|
|
1919
|
+
/* @__PURE__ */ i.jsx(
|
|
1920
|
+
"input",
|
|
1921
|
+
w({
|
|
1922
|
+
ref: e,
|
|
1923
|
+
className: N(
|
|
1924
|
+
"input",
|
|
1925
|
+
r && "input--with-prefix",
|
|
1926
|
+
a && "input--with-suffix",
|
|
1927
|
+
c
|
|
1928
|
+
)
|
|
1929
|
+
}, l)
|
|
1930
|
+
),
|
|
1931
|
+
a && /* @__PURE__ */ i.jsx("span", { className: "input__suffix", children: a })
|
|
1932
|
+
] });
|
|
1933
|
+
}
|
|
1934
|
+
);
|
|
1935
|
+
Dr.displayName = "TextField";
|
|
1936
|
+
n.createContext(void 0);
|
|
1937
|
+
var As = n.createContext(null), Es = n.createContext(null), ze = () => {
|
|
1938
|
+
const t = n.useContext(As);
|
|
1939
|
+
if (!t)
|
|
1940
|
+
throw new Error("This component must be used inside <NotificationBanner>.");
|
|
1941
|
+
return t;
|
|
1942
|
+
}, Ur = () => {
|
|
1943
|
+
const t = n.useContext(Es);
|
|
1944
|
+
if (!t)
|
|
1945
|
+
throw new Error("This component must be used inside <NotificationBanner.Actions>.");
|
|
1946
|
+
return t;
|
|
1947
|
+
}, Ms = (t) => {
|
|
1948
|
+
var e = t, {
|
|
1949
|
+
variant: s = "info",
|
|
1950
|
+
children: r,
|
|
1951
|
+
className: a
|
|
1952
|
+
} = e, c = M(e, [
|
|
1953
|
+
"variant",
|
|
1954
|
+
"children",
|
|
1955
|
+
"className"
|
|
1956
|
+
]);
|
|
1957
|
+
return /* @__PURE__ */ i.jsx(As.Provider, { value: !0, children: /* @__PURE__ */ i.jsx("div", _(w({ className: N("notification-banner", s, a) }, c), { children: r })) });
|
|
1958
|
+
};
|
|
1959
|
+
Ms.displayName = "NotificationBanner";
|
|
1960
|
+
var Qr = (t) => {
|
|
1961
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1962
|
+
return ze(), /* @__PURE__ */ i.jsx("div", _(w({ className: N("banner-content", r) }, a), { children: s }));
|
|
1963
|
+
}, Hr = (t) => {
|
|
1964
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1965
|
+
return ze(), /* @__PURE__ */ i.jsx("p", _(w({ className: N("description", r) }, a), { children: s }));
|
|
1966
|
+
}, Kr = (t) => {
|
|
1967
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1968
|
+
return ze(), /* @__PURE__ */ i.jsx(Es.Provider, { value: !0, children: /* @__PURE__ */ i.jsx("div", _(w({ className: N("actions", r) }, a), { children: s })) });
|
|
1969
|
+
}, Gr = (t) => {
|
|
1970
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1971
|
+
return Ur(), /* @__PURE__ */ i.jsx(At, _(w({ variant: "icon--secondary", className: r }, a), { children: s }));
|
|
1972
|
+
};
|
|
1973
|
+
Object.assign(Ms, {
|
|
1974
|
+
Content: Qr,
|
|
1975
|
+
Description: Hr,
|
|
1976
|
+
Actions: Kr,
|
|
1977
|
+
Button: Gr
|
|
1978
|
+
});
|
|
1979
|
+
var qr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__header__action", children: t }), Wr = (t) => {
|
|
1980
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1981
|
+
return /* @__PURE__ */ i.jsx("div", _(w({ className: N("card__body", r) }, a), { children: s }));
|
|
1982
|
+
}, Vr = (t) => /* @__PURE__ */ i.jsx(
|
|
1983
|
+
"svg",
|
|
1984
|
+
_(w({
|
|
1985
|
+
width: "24",
|
|
1986
|
+
height: "24",
|
|
1987
|
+
viewBox: "0 0 24 24",
|
|
1988
|
+
fill: "none",
|
|
1989
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1990
|
+
}, t), {
|
|
1991
|
+
children: /* @__PURE__ */ i.jsx(
|
|
1992
|
+
"path",
|
|
1993
|
+
{
|
|
1994
|
+
d: "M8 10L12 14L16 10",
|
|
1995
|
+
stroke: "currentColor",
|
|
1996
|
+
strokeWidth: "1.5",
|
|
1997
|
+
strokeLinecap: "round",
|
|
1998
|
+
strokeLinejoin: "round"
|
|
1999
|
+
}
|
|
2000
|
+
)
|
|
2001
|
+
})
|
|
2002
|
+
), Fe = Vr, $r = (t) => /* @__PURE__ */ i.jsx(
|
|
2003
|
+
"svg",
|
|
2004
|
+
_(w({
|
|
2005
|
+
width: "24",
|
|
2006
|
+
height: "24",
|
|
2007
|
+
viewBox: "0 0 24 24",
|
|
2008
|
+
fill: "none",
|
|
2009
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2010
|
+
}, t), {
|
|
2011
|
+
children: /* @__PURE__ */ i.jsx(
|
|
2012
|
+
"path",
|
|
2013
|
+
{
|
|
2014
|
+
d: "M20 6.5L9 17.5L4 12.5",
|
|
2015
|
+
stroke: "currentColor",
|
|
2016
|
+
strokeWidth: "1.5",
|
|
2017
|
+
strokeLinecap: "round",
|
|
2018
|
+
strokeLinejoin: "round"
|
|
2019
|
+
}
|
|
2020
|
+
)
|
|
2021
|
+
})
|
|
2022
|
+
), Zr = $r, Xr = (t) => /* @__PURE__ */ i.jsx(
|
|
2023
|
+
"svg",
|
|
2024
|
+
_(w({
|
|
2025
|
+
width: "24",
|
|
2026
|
+
height: "24",
|
|
2027
|
+
viewBox: "0 0 24 24",
|
|
2028
|
+
fill: "none",
|
|
2029
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2030
|
+
}, t), {
|
|
2031
|
+
children: /* @__PURE__ */ i.jsx(
|
|
2032
|
+
"path",
|
|
2033
|
+
{
|
|
2034
|
+
fillRule: "evenodd",
|
|
2035
|
+
clipRule: "evenodd",
|
|
2036
|
+
fill: "currentColor",
|
|
2037
|
+
d: "M5.53033 4.46967C5.23744 4.17678 4.76256 4.17678 4.46967 4.46967C4.17678 4.76256 4.17678 5.23744 4.46967 5.53033L10.9393 12L4.46967 18.4697C4.17678 18.7626 4.17678 19.2374 4.46967 19.5303C4.76256 19.8232 5.23744 19.8232 5.53033 19.5303L12 13.0607L18.4697 19.5303C18.7626 19.8232 19.2374 19.8232 19.5303 19.5303C19.8232 19.2374 19.8232 18.7626 19.5303 18.4697L13.0607 12L19.5303 5.53033C19.8232 5.23744 19.8232 4.76256 19.5303 4.46967C19.2374 4.17678 18.7626 4.17678 18.4697 4.46967L12 10.9393L5.53033 4.46967Z"
|
|
2038
|
+
}
|
|
2039
|
+
)
|
|
2040
|
+
})
|
|
2041
|
+
), Ls = Xr, Yr = (t) => /* @__PURE__ */ i.jsx(
|
|
2042
|
+
"svg",
|
|
2043
|
+
_(w({
|
|
2044
|
+
width: "24",
|
|
2045
|
+
height: "24",
|
|
2046
|
+
viewBox: "0 0 24 24",
|
|
2047
|
+
fill: "none",
|
|
2048
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2049
|
+
}, t), {
|
|
2050
|
+
children: /* @__PURE__ */ i.jsx(
|
|
2051
|
+
"path",
|
|
2052
|
+
{
|
|
2053
|
+
fillRule: "evenodd",
|
|
2054
|
+
clipRule: "evenodd",
|
|
2055
|
+
d: "M10.25 2.25C9.83579 2.25 9.5 2.58579 9.5 3C9.5 3.41421 9.83579 3.75 10.25 3.75H15.25C16.112 3.75 16.9386 4.09241 17.5481 4.7019C18.1576 5.3114 18.5 6.13805 18.5 7V17C18.5 17.862 18.1576 18.6886 17.5481 19.2981C16.9386 19.9076 16.112 20.25 15.25 20.25H10.25C9.83579 20.25 9.5 20.5858 9.5 21C9.5 21.4142 9.83579 21.75 10.25 21.75H15.25C16.5098 21.75 17.718 21.2496 18.6088 20.3588C19.4996 19.468 20 18.2598 20 17V7C20 5.74022 19.4996 4.53204 18.6088 3.64124C17.718 2.75044 16.5098 2.25 15.25 2.25H10.25ZM9.71967 9.53033C9.42678 9.23744 9.42678 8.76256 9.71967 8.46967C10.0126 8.17678 10.4874 8.17678 10.7803 8.46967L13.7803 11.4697C14.0732 11.7626 14.0732 12.2374 13.7803 12.5303L10.7803 15.5303C10.4874 15.8232 10.0126 15.8232 9.71967 15.5303C9.42678 15.2374 9.42678 14.7626 9.71967 14.4697L11.4393 12.75L4.25 12.75C3.83579 12.75 3.5 12.4142 3.5 12C3.5 11.5858 3.83579 11.25 4.25 11.25L11.4393 11.25L9.71967 9.53033Z",
|
|
2056
|
+
fill: "#323232"
|
|
2057
|
+
}
|
|
2058
|
+
)
|
|
2059
|
+
})
|
|
2060
|
+
), Jr = Yr, Ir = (t) => /* @__PURE__ */ i.jsx(
|
|
2061
|
+
"svg",
|
|
2062
|
+
_(w({
|
|
2063
|
+
width: "24",
|
|
2064
|
+
height: "24",
|
|
2065
|
+
viewBox: "0 0 24 24",
|
|
2066
|
+
fill: "none",
|
|
2067
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2068
|
+
}, t), {
|
|
2069
|
+
children: /* @__PURE__ */ i.jsx(
|
|
2070
|
+
"path",
|
|
2071
|
+
{
|
|
2072
|
+
fillRule: "evenodd",
|
|
2073
|
+
clipRule: "evenodd",
|
|
2074
|
+
d: "M13.25 2.25C13.6642 2.25 14 2.58579 14 3C14 3.41421 13.6642 3.75 13.25 3.75H8.25C7.38805 3.75 6.5614 4.09241 5.9519 4.7019C5.34241 5.3114 5 6.13805 5 7V17C5 17.862 5.34241 18.6886 5.9519 19.2981C6.5614 19.9076 7.38805 20.25 8.25 20.25H13.25C13.6642 20.25 14 20.5858 14 21C14 21.4142 13.6642 21.75 13.25 21.75H8.25C6.99022 21.75 5.78204 21.2496 4.89124 20.3588C4.00045 19.468 3.5 18.2598 3.5 17V7C3.5 5.74022 4.00045 4.53204 4.89124 3.64124C5.78204 2.75044 6.99022 2.25 8.25 2.25H13.25ZM15.7197 8.46967C16.0126 8.17678 16.4874 8.17678 16.7803 8.46967L19.7803 11.4697C20.0732 11.7626 20.0732 12.2374 19.7803 12.5303L16.7803 15.5303C16.4874 15.8232 16.0126 15.8232 15.7197 15.5303C15.4268 15.2374 15.4268 14.7626 15.7197 14.4697L17.4393 12.75L10.25 12.75C9.83579 12.75 9.5 12.4142 9.5 12C9.5 11.5858 9.83579 11.25 10.25 11.25L17.4393 11.25L15.7197 9.53033C15.4268 9.23744 15.4268 8.76256 15.7197 8.46967Z",
|
|
2075
|
+
fill: "currentColor"
|
|
2076
|
+
}
|
|
2077
|
+
)
|
|
2078
|
+
})
|
|
2079
|
+
), Br = Ir, ti = (t) => /* @__PURE__ */ i.jsxs(
|
|
2080
|
+
"svg",
|
|
2081
|
+
_(w({
|
|
2082
|
+
width: "24",
|
|
2083
|
+
height: "24",
|
|
2084
|
+
fill: "none",
|
|
2085
|
+
viewBox: "0 0 24 24",
|
|
2086
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2087
|
+
}, t), {
|
|
2088
|
+
children: [
|
|
2089
|
+
/* @__PURE__ */ i.jsxs("g", { clipPath: "url(#clip0_19_444)", children: [
|
|
2090
|
+
/* @__PURE__ */ i.jsx(
|
|
2091
|
+
"path",
|
|
2092
|
+
{
|
|
2093
|
+
d: "M17 21H7V21C5.89543 21 5 20.1046 5 19V12V12C5 10.8954 5.89543 10 7 10H17V10C18.1046 10 19 10.8954 19 12V19V19C19 20.1046 18.1046 21 17 21C17 21 17 21 17 21V21Z",
|
|
2094
|
+
stroke: "currentColor",
|
|
2095
|
+
strokeWidth: "1.5",
|
|
2096
|
+
strokeLinecap: "round",
|
|
2097
|
+
strokeLinejoin: "round"
|
|
2098
|
+
}
|
|
2099
|
+
),
|
|
2100
|
+
/* @__PURE__ */ i.jsx("circle", { cx: "10.3", cy: "15.5", r: "0.8", fill: "currentColor" }),
|
|
2101
|
+
/* @__PURE__ */ i.jsx("circle", { cx: "13.7", cy: "15.5", r: "0.8", fill: "currentColor" }),
|
|
2102
|
+
/* @__PURE__ */ i.jsx(
|
|
2103
|
+
"path",
|
|
2104
|
+
{
|
|
2105
|
+
d: "M8 10V7V7C8 4.79086 9.79086 3 12 3V3C14.2091 3 16 4.79086 16 7V10",
|
|
2106
|
+
stroke: "currentColor",
|
|
2107
|
+
strokeWidth: "1.5",
|
|
2108
|
+
strokeLinecap: "round",
|
|
2109
|
+
strokeLinejoin: "round"
|
|
2110
|
+
}
|
|
2111
|
+
)
|
|
2112
|
+
] }),
|
|
2113
|
+
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_19_444", children: /* @__PURE__ */ i.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
2114
|
+
]
|
|
2115
|
+
})
|
|
2116
|
+
), ei = ti, si = (t) => /* @__PURE__ */ i.jsxs(
|
|
2117
|
+
"svg",
|
|
2118
|
+
_(w({
|
|
2119
|
+
width: "24",
|
|
2120
|
+
height: "24",
|
|
2121
|
+
viewBox: "0 0 24 24",
|
|
2122
|
+
fill: "none",
|
|
2123
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2124
|
+
}, t), {
|
|
2125
|
+
children: [
|
|
2126
|
+
/* @__PURE__ */ i.jsx(
|
|
2127
|
+
"path",
|
|
2128
|
+
{
|
|
2129
|
+
d: "M14.4749 4.52513C15.8418 5.89197 15.8418 8.10804 14.4749 9.47488C13.1081 10.8417 10.892 10.8417 9.52516 9.47488C8.15832 8.10804 8.15832 5.89197 9.52516 4.52513C10.892 3.15829 13.1081 3.15829 14.4749 4.52513",
|
|
2130
|
+
stroke: "currentColor",
|
|
2131
|
+
strokeWidth: "1.5",
|
|
2132
|
+
strokeLinecap: "round",
|
|
2133
|
+
strokeLinejoin: "round"
|
|
2134
|
+
}
|
|
2135
|
+
),
|
|
2136
|
+
/* @__PURE__ */ i.jsx(
|
|
2137
|
+
"path",
|
|
2138
|
+
{
|
|
2139
|
+
d: "M4 18.5V19.5C4 20.052 4.448 20.5 5 20.5H19C19.552 20.5 20 20.052 20 19.5V18.5C20 15.474 16.048 13.508 12 13.508C7.952 13.508 4 15.474 4 18.5Z",
|
|
2140
|
+
stroke: "currentColor",
|
|
2141
|
+
strokeWidth: "1.5",
|
|
2142
|
+
strokeLinecap: "round",
|
|
2143
|
+
strokeLinejoin: "round"
|
|
2144
|
+
}
|
|
2145
|
+
)
|
|
2146
|
+
]
|
|
2147
|
+
})
|
|
2148
|
+
), ri = si, ii = (t) => /* @__PURE__ */ i.jsxs(
|
|
2149
|
+
"svg",
|
|
2150
|
+
_(w({
|
|
2151
|
+
width: "24",
|
|
2152
|
+
height: "24",
|
|
2153
|
+
viewBox: "0 0 24 24",
|
|
2154
|
+
fill: "none",
|
|
2155
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2156
|
+
}, t), {
|
|
2157
|
+
children: [
|
|
2158
|
+
/* @__PURE__ */ i.jsx(
|
|
2159
|
+
"path",
|
|
2160
|
+
{
|
|
2161
|
+
d: "M14.4749 4.52513C15.8418 5.89197 15.8418 8.10804 14.4749 9.47488C13.1081 10.8417 10.892 10.8417 9.52516 9.47488C8.15832 8.10804 8.15832 5.89197 9.52516 4.52513C10.892 3.15829 13.1081 3.15829 14.4749 4.52513",
|
|
2162
|
+
stroke: "currentColor",
|
|
2163
|
+
strokeWidth: "1.5",
|
|
2164
|
+
strokeLinecap: "round",
|
|
2165
|
+
strokeLinejoin: "round"
|
|
2166
|
+
}
|
|
2167
|
+
),
|
|
2168
|
+
/* @__PURE__ */ i.jsx(
|
|
2169
|
+
"path",
|
|
2170
|
+
{
|
|
2171
|
+
d: "M13.5 20.5H10H5C4.448 20.5 4 20.052 4 19.5V18.5C4 15.9788 6.7434 14.1935 10 13.6679C10.6521 13.5627 11.3247 13.508 12 13.508C13.0272 13.508 14.0482 13.6346 15 13.873",
|
|
2172
|
+
stroke: "currentColor",
|
|
2173
|
+
strokeWidth: "1.5",
|
|
2174
|
+
strokeLinecap: "round",
|
|
2175
|
+
strokeLinejoin: "round"
|
|
2176
|
+
}
|
|
2177
|
+
),
|
|
2178
|
+
/* @__PURE__ */ i.jsx(
|
|
2179
|
+
"path",
|
|
2180
|
+
{
|
|
2181
|
+
d: "M17.5 16V18.0164V20",
|
|
2182
|
+
stroke: "currentColor",
|
|
2183
|
+
strokeWidth: "1.5",
|
|
2184
|
+
strokeLinecap: "round",
|
|
2185
|
+
strokeLinejoin: "round"
|
|
2186
|
+
}
|
|
2187
|
+
),
|
|
2188
|
+
/* @__PURE__ */ i.jsx(
|
|
2189
|
+
"path",
|
|
2190
|
+
{
|
|
2191
|
+
d: "M19.5 18L17.4836 18L15.5 18",
|
|
2192
|
+
stroke: "currentColor",
|
|
2193
|
+
strokeWidth: "1.5",
|
|
2194
|
+
strokeLinecap: "round",
|
|
2195
|
+
strokeLinejoin: "round"
|
|
2196
|
+
}
|
|
2197
|
+
)
|
|
2198
|
+
]
|
|
2199
|
+
})
|
|
2200
|
+
), ni = ii, ai = (t) => {
|
|
2201
|
+
var e = t, { className: s } = e, r = M(e, ["className"]);
|
|
2202
|
+
return /* @__PURE__ */ i.jsxs(
|
|
2203
|
+
"svg",
|
|
2204
|
+
_(w({
|
|
2205
|
+
width: "20",
|
|
2206
|
+
height: "20",
|
|
2207
|
+
viewBox: "0 0 20 20",
|
|
2208
|
+
fill: "none",
|
|
2209
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2210
|
+
className: N("spinner", s)
|
|
2211
|
+
}, r), {
|
|
2212
|
+
children: [
|
|
2213
|
+
/* @__PURE__ */ i.jsx("circle", { cx: "10", cy: "10", r: "9", stroke: "currentColor", strokeOpacity: "0.2", strokeWidth: "1.5" }),
|
|
2214
|
+
/* @__PURE__ */ i.jsx(
|
|
2215
|
+
"circle",
|
|
2216
|
+
{
|
|
2217
|
+
cx: "10",
|
|
2218
|
+
cy: "10",
|
|
2219
|
+
r: "9",
|
|
2220
|
+
stroke: "currentColor",
|
|
2221
|
+
strokeWidth: "1.5",
|
|
2222
|
+
strokeLinecap: "round",
|
|
2223
|
+
strokeDasharray: "42.42 14.14"
|
|
2224
|
+
}
|
|
2225
|
+
)
|
|
2226
|
+
]
|
|
2227
|
+
})
|
|
2228
|
+
);
|
|
2229
|
+
}, oi = ai, li = (t) => /* @__PURE__ */ i.jsxs(
|
|
2230
|
+
"svg",
|
|
2231
|
+
_(w({
|
|
2232
|
+
width: "24",
|
|
2233
|
+
height: "24",
|
|
2234
|
+
fill: "none",
|
|
2235
|
+
viewBox: "0 0 24 24",
|
|
2236
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2237
|
+
}, t), {
|
|
2238
|
+
children: [
|
|
2239
|
+
/* @__PURE__ */ i.jsxs("g", { clipPath: "url(#clip0_762_2934)", children: [
|
|
2240
|
+
/* @__PURE__ */ i.jsx(
|
|
2241
|
+
"path",
|
|
2242
|
+
{
|
|
2243
|
+
fillRule: "evenodd",
|
|
2244
|
+
clipRule: "evenodd",
|
|
2245
|
+
d: "M12.75 8.39996C12.75 7.98575 12.4142 7.64996 12 7.64996C11.5858 7.64996 11.25 7.98575 11.25 8.39996V11.669C11.25 12.0832 11.5858 12.419 12 12.419C12.4142 12.419 12.75 12.0832 12.75 11.669V8.39996ZM12.005 16.35C12.5159 16.35 12.93 15.9359 12.93 15.425C12.93 14.9141 12.5159 14.5 12.005 14.5C11.4942 14.5 11.08 14.9141 11.08 15.425C11.08 15.9359 11.4942 16.35 12.005 16.35Z",
|
|
2246
|
+
fill: "currentColor"
|
|
2247
|
+
}
|
|
2248
|
+
),
|
|
2249
|
+
/* @__PURE__ */ i.jsx(
|
|
2250
|
+
"path",
|
|
2251
|
+
{
|
|
2252
|
+
d: "M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z",
|
|
2253
|
+
stroke: "currentColor",
|
|
2254
|
+
strokeWidth: "1.5",
|
|
2255
|
+
strokeLinecap: "round",
|
|
2256
|
+
strokeLinejoin: "round"
|
|
2257
|
+
}
|
|
2258
|
+
)
|
|
2259
|
+
] }),
|
|
2260
|
+
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_762_2934", children: /* @__PURE__ */ i.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
2261
|
+
]
|
|
2262
|
+
})
|
|
2263
|
+
), ci = li, ui = (t) => {
|
|
2264
|
+
const e = (s) => `${s}${t.suffix ? `_${t.suffix}` : ""}`;
|
|
2265
|
+
return /* @__PURE__ */ i.jsxs(
|
|
2266
|
+
"svg",
|
|
2267
|
+
_(w({
|
|
2268
|
+
width: "24",
|
|
2269
|
+
height: "24",
|
|
2270
|
+
viewBox: "0 0 24 24",
|
|
2271
|
+
fill: "none",
|
|
2272
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2273
|
+
}, t), {
|
|
2274
|
+
children: [
|
|
2275
|
+
/* @__PURE__ */ i.jsx(
|
|
2276
|
+
"path",
|
|
2277
|
+
{
|
|
2278
|
+
d: "M17.6214 11.1549C20.4161 8.33951 21.712 5.41047 20.6067 3.876C19.1586 1.85988 14.1278 2.98841 9.3766 6.39936C8.31103 7.15864 7.31229 8.00725 6.39122 8.93598L17.6214 11.1549Z",
|
|
2279
|
+
fill: e("url(#paint0")
|
|
2280
|
+
}
|
|
2281
|
+
),
|
|
2282
|
+
/* @__PURE__ */ i.jsx(
|
|
2283
|
+
"path",
|
|
2284
|
+
{
|
|
2285
|
+
opacity: "0.9",
|
|
2286
|
+
d: "M17.6214 11.1548C17.1178 9.955 16.5189 8.79735 15.8301 7.693C12.6925 2.58286 8.41126 -0.498612 6.30132 0.794902C4.66377 1.79657 4.80319 5.119 6.39145 8.93562L17.6214 11.1548Z",
|
|
2287
|
+
fill: e("url(#paint1")
|
|
2288
|
+
}
|
|
2289
|
+
),
|
|
2290
|
+
/* @__PURE__ */ i.jsx(
|
|
2291
|
+
"path",
|
|
2292
|
+
{
|
|
2293
|
+
d: "M6.39122 8.93591C6.89474 10.1357 7.49373 11.2934 8.18245 12.3977C11.3329 17.5079 15.6006 20.5894 17.7229 19.2958C19.3616 18.2942 19.221 14.9718 17.6339 11.1549L6.39122 8.93591Z",
|
|
2294
|
+
fill: e("url(#paint2")
|
|
2295
|
+
}
|
|
2296
|
+
),
|
|
2297
|
+
/* @__PURE__ */ i.jsx(
|
|
2298
|
+
"path",
|
|
2299
|
+
{
|
|
2300
|
+
opacity: "0.85",
|
|
2301
|
+
d: "M6.39113 8.93591C3.5836 11.7637 2.28796 14.6927 3.39319 16.2272C4.8413 18.2433 9.87186 17.1147 14.6224 13.7038C15.6888 12.9404 16.6916 12.0922 17.6213 11.1677L6.39113 8.93591Z",
|
|
2302
|
+
fill: e("url(#paint3")
|
|
2303
|
+
}
|
|
2304
|
+
),
|
|
2305
|
+
/* @__PURE__ */ i.jsx(
|
|
2306
|
+
"path",
|
|
2307
|
+
{
|
|
2308
|
+
opacity: "0.87",
|
|
2309
|
+
d: "M6.39113 8.93591C3.5836 11.7509 2.28796 14.6801 3.39319 16.2272C4.8413 18.2433 9.87186 17.1147 14.6224 13.7038C15.6888 12.9404 16.6916 12.0922 17.6213 11.1677L6.39113 8.93591Z",
|
|
2310
|
+
fill: e("url(#paint4")
|
|
2311
|
+
}
|
|
2312
|
+
),
|
|
2313
|
+
/* @__PURE__ */ i.jsx(
|
|
2314
|
+
"path",
|
|
2315
|
+
{
|
|
2316
|
+
d: "M12.0064 23.2897C16.2652 23.2897 19.7177 22.9093 19.7177 22.4402C19.7177 21.971 16.2652 21.5907 12.0064 21.5907C7.74761 21.5907 4.29517 21.971 4.29517 22.4402C4.29517 22.9093 7.74761 23.2897 12.0064 23.2897Z",
|
|
2317
|
+
fill: e("url(#paint5")
|
|
2318
|
+
}
|
|
2319
|
+
),
|
|
2320
|
+
/* @__PURE__ */ i.jsxs("defs", { children: [
|
|
2321
|
+
/* @__PURE__ */ i.jsxs(
|
|
2322
|
+
"linearGradient",
|
|
2323
|
+
{
|
|
2324
|
+
id: e("paint0"),
|
|
2325
|
+
x1: "10.6862",
|
|
2326
|
+
y1: "11.0225",
|
|
2327
|
+
x2: "14.9751",
|
|
2328
|
+
y2: "0.707188",
|
|
2329
|
+
gradientUnits: "userSpaceOnUse",
|
|
2330
|
+
children: [
|
|
2331
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.413", stopColor: "#90B117" }),
|
|
2332
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.501", stopColor: "#8BAF19" }),
|
|
2333
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.601", stopColor: "#7DAB1E" }),
|
|
2334
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.706", stopColor: "#67A325" }),
|
|
2335
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.815", stopColor: "#479830" }),
|
|
2336
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.925", stopColor: "#1F8A3E" }),
|
|
2337
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "1", stopColor: "#007F48" })
|
|
2338
|
+
]
|
|
2339
|
+
}
|
|
2340
|
+
),
|
|
2341
|
+
/* @__PURE__ */ i.jsxs(
|
|
2342
|
+
"linearGradient",
|
|
2343
|
+
{
|
|
2344
|
+
id: e("paint1"),
|
|
2345
|
+
x1: "11.5281",
|
|
2346
|
+
y1: "8.85339",
|
|
2347
|
+
x2: "12.4519",
|
|
2348
|
+
y2: "1.60772",
|
|
2349
|
+
gradientUnits: "userSpaceOnUse",
|
|
2350
|
+
children: [
|
|
2351
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0", stopColor: "#36BCEE" }),
|
|
2352
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.201", stopColor: "#31ACE3" }),
|
|
2353
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.59", stopColor: "#2583C5" }),
|
|
2354
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "1", stopColor: "#1652A1" })
|
|
2355
|
+
]
|
|
2356
|
+
}
|
|
2357
|
+
),
|
|
2358
|
+
/* @__PURE__ */ i.jsxs(
|
|
2359
|
+
"linearGradient",
|
|
2360
|
+
{
|
|
2361
|
+
id: e("paint2"),
|
|
2362
|
+
x1: "15.0651",
|
|
2363
|
+
y1: "18.7384",
|
|
2364
|
+
x2: "12.9747",
|
|
2365
|
+
y2: "8.0336",
|
|
2366
|
+
gradientUnits: "userSpaceOnUse",
|
|
2367
|
+
children: [
|
|
2368
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0", stopColor: "#E42313" }),
|
|
2369
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.071", stopColor: "#E73611" }),
|
|
2370
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.312", stopColor: "#F0710B" }),
|
|
2371
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.534", stopColor: "#F6A006" }),
|
|
2372
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.73", stopColor: "#FBC103" }),
|
|
2373
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.891", stopColor: "#FED601" }),
|
|
2374
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.999", stopColor: "#FFDD00" })
|
|
2375
|
+
]
|
|
2376
|
+
}
|
|
2377
|
+
),
|
|
2378
|
+
/* @__PURE__ */ i.jsxs(
|
|
2379
|
+
"linearGradient",
|
|
2380
|
+
{
|
|
2381
|
+
id: e("paint3"),
|
|
2382
|
+
x1: "13.9806",
|
|
2383
|
+
y1: "8.29749",
|
|
2384
|
+
x2: "10.8203",
|
|
2385
|
+
y2: "18.1127",
|
|
2386
|
+
gradientUnits: "userSpaceOnUse",
|
|
2387
|
+
children: [
|
|
2388
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0", stopColor: "#FFC832" }),
|
|
2389
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.354", stopColor: "#F8A220" }),
|
|
2390
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.779", stopColor: "#F07A0D" }),
|
|
2391
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "1", stopColor: "#ED6B06" })
|
|
2392
|
+
]
|
|
2393
|
+
}
|
|
2394
|
+
),
|
|
2395
|
+
/* @__PURE__ */ i.jsxs(
|
|
2396
|
+
"linearGradient",
|
|
2397
|
+
{
|
|
2398
|
+
id: e("paint4"),
|
|
2399
|
+
x1: "13.9806",
|
|
2400
|
+
y1: "8.2892",
|
|
2401
|
+
x2: "10.8212",
|
|
2402
|
+
y2: "18.1113",
|
|
2403
|
+
gradientUnits: "userSpaceOnUse",
|
|
2404
|
+
children: [
|
|
2405
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.461", stopColor: "#F3C636", stopOpacity: "0" }),
|
|
2406
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.645", stopColor: "#F1A223", stopOpacity: "0.341" }),
|
|
2407
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.879", stopColor: "#EE7A0E", stopOpacity: "0.776" }),
|
|
2408
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "1", stopColor: "#ED6B06" })
|
|
2409
|
+
]
|
|
2410
|
+
}
|
|
2411
|
+
),
|
|
2412
|
+
/* @__PURE__ */ i.jsxs(
|
|
2413
|
+
"radialGradient",
|
|
2414
|
+
{
|
|
2415
|
+
id: e("paint5"),
|
|
2416
|
+
cx: "0",
|
|
2417
|
+
cy: "0",
|
|
2418
|
+
r: "1",
|
|
2419
|
+
gradientUnits: "userSpaceOnUse",
|
|
2420
|
+
gradientTransform: "translate(11.9404 22.4736) scale(7.73227 0.851796)",
|
|
2421
|
+
children: [
|
|
2422
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0", stopColor: "#C9C9C9" }),
|
|
2423
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.302", stopColor: "#CCCCCC", stopOpacity: "0.698" }),
|
|
2424
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.554", stopColor: "#D7D7D7", stopOpacity: "0.447" }),
|
|
2425
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "0.787", stopColor: "#E8E8E8", stopOpacity: "0.212" }),
|
|
2426
|
+
/* @__PURE__ */ i.jsx("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
|
|
2427
|
+
]
|
|
2428
|
+
}
|
|
2429
|
+
)
|
|
2430
|
+
] })
|
|
2431
|
+
]
|
|
2432
|
+
})
|
|
2433
|
+
);
|
|
2434
|
+
}, Os = ui, hi = (t) => /* @__PURE__ */ i.jsxs(
|
|
2435
|
+
"svg",
|
|
2436
|
+
_(w({
|
|
2437
|
+
fill: "none",
|
|
2438
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2439
|
+
viewBox: "0 0 24 24",
|
|
2440
|
+
width: "24",
|
|
2441
|
+
height: "24"
|
|
2442
|
+
}, t), {
|
|
2443
|
+
children: [
|
|
2444
|
+
/* @__PURE__ */ i.jsx(
|
|
2445
|
+
"path",
|
|
2446
|
+
{
|
|
2447
|
+
d: "M16 3H8C5.23858 3 3 5.23858 3 8V16C3 18.7614 5.23858 21 8 21H16C18.7614 21 21 18.7614 21 16V8C21 5.23858 18.7614 3 16 3Z",
|
|
2448
|
+
stroke: "currentColor",
|
|
2449
|
+
strokeWidth: "1.5",
|
|
2450
|
+
strokeLinecap: "round",
|
|
2451
|
+
strokeLinejoin: "round"
|
|
2452
|
+
}
|
|
2453
|
+
),
|
|
2454
|
+
/* @__PURE__ */ i.jsx(
|
|
2455
|
+
"path",
|
|
2456
|
+
{
|
|
2457
|
+
d: "M12.001 11.258C12.001 8.906 13.634 7 15.648 7C16.515 7 17.218 7.703 17.218 8.57C17.218 10.464 14.881 12 11.999 12C9.117 12 6.78 10.465 6.78 8.57C6.78 7.703 7.483 7 8.351 7C10.365 7 11.998 8.906 11.998 11.258",
|
|
2458
|
+
stroke: "currentColor",
|
|
2459
|
+
strokeWidth: "1.5",
|
|
2460
|
+
strokeLinecap: "round",
|
|
2461
|
+
strokeLinejoin: "round"
|
|
2462
|
+
}
|
|
2463
|
+
),
|
|
2464
|
+
/* @__PURE__ */ i.jsx(
|
|
2465
|
+
"path",
|
|
2466
|
+
{
|
|
2467
|
+
d: "M8 15.854C10.208 15.854 11.998 13.764 11.998 11.186L12.002 11.2C12.002 13.778 13.792 15.868 16 15.868",
|
|
2468
|
+
stroke: "currentColor",
|
|
2469
|
+
strokeWidth: "1.5",
|
|
2470
|
+
strokeLinecap: "round",
|
|
2471
|
+
strokeLinejoin: "round"
|
|
2472
|
+
}
|
|
2473
|
+
),
|
|
2474
|
+
/* @__PURE__ */ i.jsx(
|
|
2475
|
+
"path",
|
|
2476
|
+
{
|
|
2477
|
+
d: "M12 3V21",
|
|
2478
|
+
stroke: "currentColor",
|
|
2479
|
+
strokeWidth: "1.5",
|
|
2480
|
+
strokeLinecap: "round",
|
|
2481
|
+
strokeLinejoin: "round"
|
|
2482
|
+
}
|
|
2483
|
+
),
|
|
2484
|
+
/* @__PURE__ */ i.jsx(
|
|
2485
|
+
"path",
|
|
2486
|
+
{
|
|
2487
|
+
d: "M21 12H3",
|
|
2488
|
+
stroke: "currentColor",
|
|
2489
|
+
strokeWidth: "1.5",
|
|
2490
|
+
strokeLinecap: "round",
|
|
2491
|
+
strokeLinejoin: "round"
|
|
2492
|
+
}
|
|
2493
|
+
)
|
|
2494
|
+
]
|
|
2495
|
+
})
|
|
2496
|
+
), di = hi, fi = (t) => /* @__PURE__ */ i.jsx(
|
|
2497
|
+
"svg",
|
|
2498
|
+
_(w({
|
|
2499
|
+
fill: "none",
|
|
2500
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2501
|
+
viewBox: "0 0 21 16",
|
|
2502
|
+
width: "21",
|
|
2503
|
+
height: "16"
|
|
2504
|
+
}, t), {
|
|
2505
|
+
children: /* @__PURE__ */ i.jsx(
|
|
2506
|
+
"path",
|
|
2507
|
+
{
|
|
2508
|
+
d: "M1.5 5h18M8.07 9H5.5M16.5 15h-12a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3Z",
|
|
2509
|
+
stroke: "currentcolor",
|
|
2510
|
+
strokeWidth: "1.5",
|
|
2511
|
+
strokeLinecap: "round",
|
|
2512
|
+
strokeLinejoin: "round"
|
|
2513
|
+
}
|
|
2514
|
+
)
|
|
2515
|
+
})
|
|
2516
|
+
), pi = fi, mi = (t) => /* @__PURE__ */ i.jsxs(
|
|
2517
|
+
"svg",
|
|
2518
|
+
_(w({
|
|
2519
|
+
width: "24",
|
|
2520
|
+
height: "24",
|
|
2521
|
+
fill: "none",
|
|
2522
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2523
|
+
viewBox: "0 0 24 24"
|
|
2524
|
+
}, t), {
|
|
2525
|
+
children: [
|
|
2526
|
+
/* @__PURE__ */ i.jsx(
|
|
2527
|
+
"path",
|
|
2528
|
+
{
|
|
2529
|
+
d: "M3 3h6v6H3V3ZM2.8 14.8h6v6h-6v-6ZM20.8 8.8h-6v-6h6v6Z",
|
|
2530
|
+
strokeWidth: "1.5",
|
|
2531
|
+
strokeLinecap: "round",
|
|
2532
|
+
strokeLinejoin: "round",
|
|
2533
|
+
stroke: "currentColor"
|
|
2534
|
+
}
|
|
2535
|
+
),
|
|
2536
|
+
/* @__PURE__ */ i.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 14.8 14.7)", fill: "currentColor" }),
|
|
2537
|
+
/* @__PURE__ */ i.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 14.7)", fill: "currentColor" }),
|
|
2538
|
+
/* @__PURE__ */ i.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 17.8 17.7)", fill: "currentColor" }),
|
|
2539
|
+
/* @__PURE__ */ i.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 14.8 20.7)", fill: "currentColor" }),
|
|
2540
|
+
/* @__PURE__ */ i.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
|
|
2541
|
+
]
|
|
2542
|
+
})
|
|
2543
|
+
), yi = mi, gi = (t) => {
|
|
2544
|
+
var e = t, {
|
|
2545
|
+
variant: s,
|
|
2546
|
+
icon: r,
|
|
2547
|
+
isStandalone: a,
|
|
2548
|
+
title: c,
|
|
2549
|
+
description: l,
|
|
2550
|
+
className: u
|
|
2551
|
+
} = e, h = M(e, [
|
|
2552
|
+
"variant",
|
|
2553
|
+
"icon",
|
|
2554
|
+
"isStandalone",
|
|
2555
|
+
"title",
|
|
2556
|
+
"description",
|
|
2557
|
+
"className"
|
|
2558
|
+
]);
|
|
2559
|
+
return /* @__PURE__ */ i.jsx(
|
|
2560
|
+
"div",
|
|
2561
|
+
_(w({}, h), {
|
|
2562
|
+
className: N(
|
|
2563
|
+
"card__empty-state",
|
|
2564
|
+
s === "error" && "card__empty-state--error",
|
|
2565
|
+
a && "card__empty-state--standalone",
|
|
2566
|
+
u
|
|
2567
|
+
),
|
|
2568
|
+
children: /* @__PURE__ */ i.jsxs("div", { className: "card__empty-state__wrapper", children: [
|
|
2569
|
+
/* @__PURE__ */ i.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ i.jsx(ci, {}) : r }),
|
|
2570
|
+
/* @__PURE__ */ i.jsxs("div", { className: "card__empty-state__content", children: [
|
|
2571
|
+
/* @__PURE__ */ i.jsx("p", { className: "card__empty-state__title", children: c }),
|
|
2572
|
+
/* @__PURE__ */ i.jsx("p", { className: "card__empty-state__description", children: l })
|
|
2573
|
+
] })
|
|
2574
|
+
] })
|
|
2575
|
+
})
|
|
2576
|
+
);
|
|
2577
|
+
}, vi = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__footer", children: t }), Ci = (t) => {
|
|
2578
|
+
var e = t, {
|
|
2579
|
+
variant: s = "default",
|
|
2580
|
+
sticky: r,
|
|
2581
|
+
className: a,
|
|
2582
|
+
children: c
|
|
2583
|
+
} = e, l = M(e, [
|
|
2584
|
+
"variant",
|
|
2585
|
+
"sticky",
|
|
2586
|
+
"className",
|
|
2587
|
+
"children"
|
|
2588
|
+
]);
|
|
2589
|
+
return /* @__PURE__ */ i.jsx(
|
|
2590
|
+
"div",
|
|
2591
|
+
_(w({}, l), {
|
|
2592
|
+
className: N(
|
|
2593
|
+
"card__header",
|
|
2594
|
+
s && `card__header--${s}`,
|
|
2595
|
+
r && "card__header--sticky",
|
|
2596
|
+
a
|
|
2597
|
+
),
|
|
2598
|
+
children: c
|
|
2599
|
+
})
|
|
2600
|
+
);
|
|
2601
|
+
}, xi = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__image", children: t }), bi = ({ children: t, className: e }) => /* @__PURE__ */ i.jsx("div", { className: N("card__body__item", e), children: t }), wi = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__body__subtitle", children: t }), ji = ({ icon: t, children: e }) => /* @__PURE__ */ i.jsxs("div", { className: "card__header__title", children: [
|
|
2602
|
+
t && /* @__PURE__ */ i.jsx("span", { className: "card__header__title__icon", children: t }),
|
|
2603
|
+
e
|
|
2604
|
+
] }), Rs = n.forwardRef(
|
|
2605
|
+
(t, e) => {
|
|
2606
|
+
var s = t, { type: r, children: a, className: c, variant: l = "default", disabled: u = !1 } = s, h = M(s, ["type", "children", "className", "variant", "disabled"]);
|
|
2607
|
+
return n.createElement(
|
|
2608
|
+
r,
|
|
2609
|
+
w({
|
|
2610
|
+
className: N(
|
|
2611
|
+
"card",
|
|
2612
|
+
u && "card--disabled",
|
|
2613
|
+
l && `card--${l}`,
|
|
2614
|
+
c
|
|
2615
|
+
),
|
|
2616
|
+
ref: e
|
|
2617
|
+
}, h),
|
|
2618
|
+
a
|
|
2619
|
+
);
|
|
2620
|
+
}
|
|
2621
|
+
);
|
|
2622
|
+
Rs.displayName = "Card";
|
|
2623
|
+
Object.assign(Rs, {
|
|
2624
|
+
Header: Ci,
|
|
2625
|
+
Action: qr,
|
|
2626
|
+
Title: ji,
|
|
2627
|
+
Subtitle: wi,
|
|
2628
|
+
Body: Wr,
|
|
2629
|
+
Image: xi,
|
|
2630
|
+
Item: bi,
|
|
2631
|
+
Footer: vi,
|
|
2632
|
+
EmptyState: gi
|
|
2633
|
+
});
|
|
2634
|
+
var Si = (t) => {
|
|
2635
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2636
|
+
return /* @__PURE__ */ i.jsx("div", _(w({ className: N("checkbox__content", s) }, a), { children: r }));
|
|
2637
|
+
}, _i = (t) => {
|
|
2638
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2639
|
+
return /* @__PURE__ */ i.jsx("span", _(w({ className: N("checkbox__hint", s) }, a), { children: r }));
|
|
2640
|
+
}, zs = n.createContext(void 0), ki = ({ id: t, name: e, children: s }) => /* @__PURE__ */ i.jsx(zs.Provider, { value: { id: t, name: e }, children: s }), Pi = () => {
|
|
2641
|
+
const t = n.useContext(zs);
|
|
2642
|
+
if (!t)
|
|
2643
|
+
throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
|
|
2644
|
+
return t;
|
|
2645
|
+
}, Ni = (t) => {
|
|
2646
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2647
|
+
const { id: c } = Pi();
|
|
2648
|
+
return /* @__PURE__ */ i.jsx("label", _(w({ htmlFor: c, className: N("checkbox__label", s) }, a), { children: r }));
|
|
2649
|
+
}, Nt = (t) => {
|
|
2650
|
+
var e = t, {
|
|
2651
|
+
id: s,
|
|
2652
|
+
name: r,
|
|
2653
|
+
isPending: a = !1,
|
|
2654
|
+
variant: c = "neutral",
|
|
2655
|
+
hasError: l = !1,
|
|
2656
|
+
single: u,
|
|
2657
|
+
className: h,
|
|
2658
|
+
children: p
|
|
2659
|
+
} = e, m = M(e, [
|
|
2660
|
+
"id",
|
|
2661
|
+
"name",
|
|
2662
|
+
"isPending",
|
|
2663
|
+
"variant",
|
|
2664
|
+
"hasError",
|
|
2665
|
+
"single",
|
|
2666
|
+
"className",
|
|
2667
|
+
"children"
|
|
2668
|
+
]);
|
|
2669
|
+
const d = n.useRef(null);
|
|
2670
|
+
return n.useEffect(() => {
|
|
2671
|
+
d.current && (a ? d.current.indeterminate = !0 : d.current.indeterminate = !1);
|
|
2672
|
+
}, [a]), /* @__PURE__ */ i.jsxs(
|
|
2673
|
+
"div",
|
|
2674
|
+
{
|
|
2675
|
+
className: N("checkbox", c && `checkbox--${c}`, l && "checkbox--error"),
|
|
2676
|
+
children: [
|
|
2677
|
+
/* @__PURE__ */ i.jsx(
|
|
2678
|
+
"input",
|
|
2679
|
+
w({
|
|
2680
|
+
id: s,
|
|
2681
|
+
name: r,
|
|
2682
|
+
type: "checkbox",
|
|
2683
|
+
ref: d,
|
|
2684
|
+
className: N("checkbox__input", h),
|
|
2685
|
+
value: u ? "true" : ""
|
|
2686
|
+
}, m)
|
|
2687
|
+
),
|
|
2688
|
+
a ? /* @__PURE__ */ i.jsx(oi, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ i.jsx(Zr, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
|
|
2689
|
+
/* @__PURE__ */ i.jsx(ki, { id: s, name: r, children: p })
|
|
2690
|
+
]
|
|
2691
|
+
}
|
|
2692
|
+
);
|
|
2693
|
+
};
|
|
2694
|
+
Nt.Content = Si;
|
|
2695
|
+
Nt.Label = Ni;
|
|
2696
|
+
Nt.Hint = _i;
|
|
2697
|
+
Nt.Error = Error;
|
|
2698
|
+
var Ai = (t) => {
|
|
2699
|
+
var e = t, { type: s = "div", className: r, children: a } = e, c = M(e, ["type", "className", "children"]);
|
|
2700
|
+
return n.createElement(s, w({ className: N("dialog__body", r) }, c), a);
|
|
2701
|
+
}, Ei = n.createContext(void 0), Mi = () => {
|
|
2702
|
+
const t = n.useContext(Ei);
|
|
2703
|
+
if (!t)
|
|
2704
|
+
throw new Error("Dialog compound components can not be rendered outside of Dialog");
|
|
2705
|
+
return t;
|
|
2706
|
+
}, Li = n.forwardRef((t, e) => {
|
|
2707
|
+
var s = t, { className: r } = s, a = M(s, ["className"]);
|
|
2708
|
+
const { onClose: c } = Mi();
|
|
2709
|
+
return /* @__PURE__ */ i.jsx(
|
|
2710
|
+
At,
|
|
2711
|
+
w({
|
|
2712
|
+
type: "submit",
|
|
2713
|
+
ref: e,
|
|
2714
|
+
formMethod: "dialog",
|
|
2715
|
+
onClick: c,
|
|
2716
|
+
iconLeft: /* @__PURE__ */ i.jsx(Ls, {}),
|
|
2717
|
+
variant: "icon--secondary",
|
|
2718
|
+
className: N("dialog__close button--icon", r)
|
|
2719
|
+
}, a)
|
|
2720
|
+
);
|
|
2721
|
+
});
|
|
2722
|
+
Li.displayName = "Close";
|
|
2723
|
+
var Oi = (t) => {
|
|
2724
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2725
|
+
return /* @__PURE__ */ i.jsx("div", _(w({ className: N("dialog__footer", s) }, a), { children: r }));
|
|
2726
|
+
}, Ri = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "dialog__header", children: t }), zi = () => document.body.style.removeProperty("overflow"), Fi = (t) => {
|
|
2727
|
+
var e = t, { className: s, children: r, shouldAnimate: a = !0 } = e, c = M(e, ["className", "children", "shouldAnimate"]);
|
|
2728
|
+
const { ref: l, defaultOpen: u, isModal: h, onClose: p } = te();
|
|
2729
|
+
return n.useEffect(() => {
|
|
2730
|
+
u && (l != null && l.current) && l.current.focus();
|
|
2731
|
+
}, [u, l]), n.useEffect(() => {
|
|
2732
|
+
if (!u)
|
|
2733
|
+
return;
|
|
2734
|
+
const m = (d) => {
|
|
2735
|
+
d.key === "Escape" && p();
|
|
2736
|
+
};
|
|
2737
|
+
return window.addEventListener("keydown", m), () => window.removeEventListener("keydown", m);
|
|
2738
|
+
}, [u, p]), u ? /* @__PURE__ */ i.jsxs("div", { className: "dialog-portal", children: [
|
|
2739
|
+
/* @__PURE__ */ i.jsx("div", { className: "custom-backdrop", "aria-hidden": "true" }),
|
|
2740
|
+
/* @__PURE__ */ i.jsx(
|
|
2741
|
+
"div",
|
|
2742
|
+
_(w({
|
|
2743
|
+
ref: l,
|
|
2744
|
+
role: "dialog",
|
|
2745
|
+
"aria-modal": !!h,
|
|
2746
|
+
"aria-labelledby": "dialogTitle",
|
|
2747
|
+
className: N("dialog", a && "dialog--animated", s),
|
|
2748
|
+
tabIndex: -1
|
|
2749
|
+
}, c), {
|
|
2750
|
+
children: r
|
|
2751
|
+
})
|
|
2752
|
+
)
|
|
2753
|
+
] }) : null;
|
|
2754
|
+
}, Fs = n.createContext(void 0), Ti = ({ defaultOpen: t, onClose: e, isModal: s, children: r }) => {
|
|
2755
|
+
const [a, c] = n.useState(t), l = n.useRef(null), u = n.useRef(e), h = n.useCallback(() => {
|
|
2756
|
+
zi(), c(!1), u.current && (u == null || u.current());
|
|
2757
|
+
}, []), p = n.useCallback(() => {
|
|
2758
|
+
c(!0);
|
|
2759
|
+
}, []);
|
|
2760
|
+
return /* @__PURE__ */ i.jsx(
|
|
2761
|
+
Fs.Provider,
|
|
2762
|
+
{
|
|
2763
|
+
value: {
|
|
2764
|
+
ref: l,
|
|
2765
|
+
defaultOpen: a,
|
|
2766
|
+
isModal: s,
|
|
2767
|
+
onClose: h,
|
|
2768
|
+
onOpen: p
|
|
2769
|
+
},
|
|
2770
|
+
children: r
|
|
2771
|
+
}
|
|
2772
|
+
);
|
|
2773
|
+
}, te = () => {
|
|
2774
|
+
const t = n.useContext(Fs);
|
|
2775
|
+
if (!t)
|
|
2776
|
+
throw new Error("Dialog compound components can not be rendered outside of Dialog");
|
|
2777
|
+
return t;
|
|
2778
|
+
}, Di = (t) => {
|
|
2779
|
+
var e = t, { children: s } = e, r = M(e, ["children"]);
|
|
2780
|
+
const { onClose: a } = te();
|
|
2781
|
+
return /* @__PURE__ */ i.jsx(At, _(w({ onClick: a }, r), { children: s }));
|
|
2782
|
+
}, Ts = n.forwardRef(
|
|
2783
|
+
(t, e) => {
|
|
2784
|
+
var s = t, { className: r } = s, a = M(s, ["className"]);
|
|
2785
|
+
const { onClose: c } = te();
|
|
2786
|
+
return /* @__PURE__ */ i.jsx(
|
|
2787
|
+
At,
|
|
2788
|
+
w({
|
|
2789
|
+
type: "submit",
|
|
2790
|
+
ref: e,
|
|
2791
|
+
formMethod: "dialog",
|
|
2792
|
+
onClick: c,
|
|
2793
|
+
iconLeft: /* @__PURE__ */ i.jsx(Ls, {}),
|
|
2794
|
+
variant: "icon--secondary",
|
|
2795
|
+
className: N("dialog__close button--icon", r)
|
|
2796
|
+
}, a)
|
|
2797
|
+
);
|
|
2798
|
+
}
|
|
2799
|
+
);
|
|
2800
|
+
Ts.displayName = "Close";
|
|
2801
|
+
var Ui = (t) => {
|
|
2802
|
+
var e = t, { icon: s, children: r, className: a } = e, c = M(e, ["icon", "children", "className"]);
|
|
2803
|
+
const { ref: l } = te(), u = n.useRef(null);
|
|
2804
|
+
return n.useEffect(() => {
|
|
2805
|
+
l != null && l.current && l.current.focus();
|
|
2806
|
+
}, [l]), /* @__PURE__ */ i.jsxs(
|
|
2807
|
+
"div",
|
|
2808
|
+
_(w({
|
|
2809
|
+
tabIndex: 0,
|
|
2810
|
+
ref: u,
|
|
2811
|
+
id: "dialogTitle",
|
|
2812
|
+
className: N("dialog__header__title", a)
|
|
2813
|
+
}, c), {
|
|
2814
|
+
children: [
|
|
2815
|
+
s && /* @__PURE__ */ i.jsx("span", { className: "dialog__header__icon", children: s }),
|
|
2816
|
+
r
|
|
2817
|
+
]
|
|
2818
|
+
})
|
|
2819
|
+
);
|
|
2820
|
+
}, Qi = (t) => {
|
|
2821
|
+
var e = t, { children: s } = e, r = M(e, ["children"]);
|
|
2822
|
+
const { onOpen: a } = te();
|
|
2823
|
+
return /* @__PURE__ */ i.jsx(At, _(w({ onClick: a }, r), { children: s }));
|
|
2824
|
+
}, W = ({ defaultOpen: t, isModal: e, children: s, onClose: r }) => /* @__PURE__ */ i.jsx(Ti, { defaultOpen: !!t, isModal: e, onClose: r, children: s });
|
|
2825
|
+
W.Trigger = Qi;
|
|
2826
|
+
W.Root = Fi;
|
|
2827
|
+
W.Title = Ui;
|
|
2828
|
+
W.Header = Ri;
|
|
2829
|
+
W.Body = Ai;
|
|
2830
|
+
W.Footer = Oi;
|
|
2831
|
+
W.Button = Di;
|
|
2832
|
+
W.Close = Ts;
|
|
2833
|
+
var Ds = n.createContext(void 0), Hi = ({
|
|
2834
|
+
id: t,
|
|
2835
|
+
position: e,
|
|
2836
|
+
isOpen: s,
|
|
2837
|
+
setIsOpen: r,
|
|
2838
|
+
activeItemIndex: a,
|
|
2839
|
+
setActiveItemIndex: c,
|
|
2840
|
+
clearActiveItemIndex: l,
|
|
2841
|
+
triggerRef: u,
|
|
2842
|
+
contentRef: h,
|
|
2843
|
+
children: p
|
|
2844
|
+
}) => /* @__PURE__ */ i.jsx(
|
|
2845
|
+
Ds.Provider,
|
|
2846
|
+
{
|
|
2847
|
+
value: {
|
|
2848
|
+
id: t,
|
|
2849
|
+
position: e,
|
|
2850
|
+
isOpen: s,
|
|
2851
|
+
setIsOpen: r,
|
|
2852
|
+
activeItemIndex: a,
|
|
2853
|
+
setActiveItemIndex: c,
|
|
2854
|
+
clearActiveItemIndex: l,
|
|
2855
|
+
triggerRef: u,
|
|
2856
|
+
contentRef: h
|
|
2857
|
+
},
|
|
2858
|
+
children: p
|
|
2859
|
+
}
|
|
2860
|
+
), Us = () => {
|
|
2861
|
+
const t = n.useContext(Ds);
|
|
2862
|
+
if (t === void 0)
|
|
2863
|
+
throw new Error("useMenu must be used within a MenuProvider");
|
|
2864
|
+
return t;
|
|
2865
|
+
}, Ki = ({ as: t, children: e }) => {
|
|
2866
|
+
const {
|
|
2867
|
+
id: s,
|
|
2868
|
+
position: r,
|
|
2869
|
+
isOpen: a,
|
|
2870
|
+
setIsOpen: c,
|
|
2871
|
+
activeItemIndex: l,
|
|
2872
|
+
setActiveItemIndex: u,
|
|
2873
|
+
clearActiveItemIndex: h,
|
|
2874
|
+
triggerRef: p,
|
|
2875
|
+
contentRef: m
|
|
2876
|
+
} = Us(), d = (x) => {
|
|
2877
|
+
var g;
|
|
2878
|
+
if (!a)
|
|
2879
|
+
return;
|
|
2880
|
+
if (x.key === "Escape")
|
|
2881
|
+
return h(), c(!1), (g = p.current) == null ? void 0 : g.focus();
|
|
2882
|
+
const k = x.shiftKey, v = Hs(m.current).length - 1;
|
|
2883
|
+
switch (x.key) {
|
|
2884
|
+
case "Tab": {
|
|
2885
|
+
if (k && l !== 0)
|
|
2886
|
+
return x.preventDefault(), u(l ? Math.max(0, l - 1) : 0);
|
|
2887
|
+
if (!k && l !== v) {
|
|
2888
|
+
x.preventDefault();
|
|
2889
|
+
const C = l !== void 0 ? l + 1 : 0;
|
|
2890
|
+
return u(Math.min(v, C));
|
|
2891
|
+
}
|
|
2892
|
+
break;
|
|
2893
|
+
}
|
|
2894
|
+
case "ArrowUp":
|
|
2895
|
+
case "ArrowLeft":
|
|
2896
|
+
return x.preventDefault(), u(l ? Math.max(0, l - 1) : 0);
|
|
2897
|
+
case "ArrowDown":
|
|
2898
|
+
case "ArrowRight": {
|
|
2899
|
+
x.preventDefault();
|
|
2900
|
+
const C = l !== void 0 ? l + 1 : 0;
|
|
2901
|
+
return u(Math.min(v, C));
|
|
2902
|
+
}
|
|
2903
|
+
case "Home":
|
|
2904
|
+
return x.preventDefault(), u(0);
|
|
2905
|
+
case "End":
|
|
2906
|
+
return x.preventDefault(), u(v);
|
|
2907
|
+
}
|
|
2908
|
+
};
|
|
2909
|
+
return t ? n.createElement(
|
|
2910
|
+
t,
|
|
2911
|
+
{
|
|
2912
|
+
id: `${s}-content`,
|
|
2913
|
+
ref: m,
|
|
2914
|
+
className: N("menu__list", `menu__list--${r}`, a && "menu__list--active"),
|
|
2915
|
+
onKeyDown: d
|
|
2916
|
+
},
|
|
2917
|
+
e
|
|
2918
|
+
) : (
|
|
2919
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
2920
|
+
/* @__PURE__ */ i.jsx(
|
|
2921
|
+
"ul",
|
|
2922
|
+
{
|
|
2923
|
+
id: `${s}-content`,
|
|
2924
|
+
ref: m,
|
|
2925
|
+
className: N("menu__list", `menu__list--${r}`, a && "menu__list--active"),
|
|
2926
|
+
onKeyDown: d,
|
|
2927
|
+
children: e
|
|
2928
|
+
}
|
|
2929
|
+
)
|
|
2930
|
+
);
|
|
2931
|
+
}, Gi = (t) => {
|
|
2932
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
2933
|
+
return /* @__PURE__ */ i.jsx("li", _(w({}, a), { className: N("menu__list-item", r), children: s }));
|
|
2934
|
+
}, Qs = ({ children: t, className: e }) => {
|
|
2935
|
+
const { id: s, isOpen: r, setIsOpen: a, clearActiveItemIndex: c, setActiveItemIndex: l, triggerRef: u } = Us(), h = () => {
|
|
2936
|
+
c(), a((m) => !m), r || l(0);
|
|
2937
|
+
}, p = (m) => {
|
|
2938
|
+
if (r) {
|
|
2939
|
+
if (m.key === "Escape")
|
|
2940
|
+
return c(), a(!1);
|
|
2941
|
+
m.key === "ArrowDown" && (m.preventDefault(), l(0));
|
|
2942
|
+
}
|
|
2943
|
+
};
|
|
2944
|
+
return n.cloneElement(t, {
|
|
2945
|
+
id: `${s}-trigger`,
|
|
2946
|
+
ref: u,
|
|
2947
|
+
className: N("menu__trigger", e),
|
|
2948
|
+
onClick: h,
|
|
2949
|
+
onKeyDown: p,
|
|
2950
|
+
"aria-expanded": r,
|
|
2951
|
+
"aria-controls": `${s}-content`
|
|
2952
|
+
});
|
|
2953
|
+
};
|
|
2954
|
+
Qs.displayName = "Trigger";
|
|
2955
|
+
var Hs = (t) => t ? t.tagName === "UL" ? t.children : Array.from(t.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], $ = (t) => {
|
|
2956
|
+
var e = t, { type: s, id: r, position: a = "bottom-end", children: c, className: l } = e, u = M(e, ["type", "id", "position", "children", "className"]);
|
|
2957
|
+
const h = n.useRef(null), p = n.useRef(null), m = n.useRef(null), [d, x] = n.useState(!1), [g, k] = n.useState(), [v, C] = n.useState(g);
|
|
2958
|
+
g !== v && g !== void 0 && m.current && (Hs(m.current)[g].firstChild.focus(), C(g));
|
|
2959
|
+
const S = () => {
|
|
2960
|
+
k(void 0), C(void 0);
|
|
2961
|
+
}, E = (P) => {
|
|
2962
|
+
var L;
|
|
2963
|
+
((L = h.current) == null ? void 0 : L.contains(P.relatedTarget)) || (S(), x(!1));
|
|
2964
|
+
};
|
|
2965
|
+
return /* @__PURE__ */ i.jsx(
|
|
2966
|
+
Hi,
|
|
2967
|
+
{
|
|
2968
|
+
id: r,
|
|
2969
|
+
position: a,
|
|
2970
|
+
isOpen: d,
|
|
2971
|
+
setIsOpen: x,
|
|
2972
|
+
activeItemIndex: g,
|
|
2973
|
+
setActiveItemIndex: k,
|
|
2974
|
+
clearActiveItemIndex: S,
|
|
2975
|
+
triggerRef: p,
|
|
2976
|
+
contentRef: m,
|
|
2977
|
+
children: n.createElement(
|
|
2978
|
+
s,
|
|
2979
|
+
_(w({}, u), {
|
|
2980
|
+
id: r,
|
|
2981
|
+
ref: h,
|
|
2982
|
+
className: `menu ${l || ""}`,
|
|
2983
|
+
onBlur: E
|
|
2984
|
+
}),
|
|
2985
|
+
c
|
|
2986
|
+
)
|
|
2987
|
+
}
|
|
2988
|
+
);
|
|
2989
|
+
};
|
|
2990
|
+
$.Trigger = Qs;
|
|
2991
|
+
$.Content = Ki;
|
|
2992
|
+
$.Item = Gi;
|
|
2993
|
+
n.createContext(void 0);
|
|
2994
|
+
var qi = (/* @__PURE__ */ new Map()).set("BE", "32").set("FR", "33").set("NL", "31").set("LU", "352").set("DE", "49").set("CA", "1").set("PR", "1").set("TC", "1").set("US", "1").set("BS", "1242").set("BB", "1246").set("AI", "1264").set("AG", "1268").set("KY", "1345").set("BM", "1441").set("GD", "1473").set("MS", "1664").set("GU", "1671").set("LC", "1758").set("DM", "1767").set("VC", "1784").set("DO", "1809").set("TT", "1868").set("KN", "1869").set("JM", "1876").set("EG", "20").set("SS", "211").set("MA", "212").set("DZ", "213").set("TN", "216").set("LY", "218").set("GM", "220").set("SN", "221").set("MR", "222").set("ML", "223").set("GN", "224").set("CI", "225").set("BF", "226").set("NE", "227").set("TG", "228").set("BJ", "229").set("MU", "230").set("LR", "231").set("SL", "232").set("GH", "233").set("NG", "234").set("TD", "235").set("CF", "236").set("CM", "237").set("CV", "238").set("ST", "239").set("GQ", "240").set("GA", "241").set("CG", "242").set("CD", "243").set("AO", "244").set("GW", "245").set("SC", "248").set("SD", "249").set("RW", "250").set("ET", "251").set("SO", "252").set("DJ", "253").set("KE", "254").set("TZ", "255").set("UG", "256").set("BI", "257").set("MZ", "258").set("ZM", "260").set("MG", "261").set("RE", "262").set("ZW", "263").set("NA", "264").set("MW", "265").set("LS", "266").set("BW", "267").set("SZ", "268").set("KM", "269").set("ZA", "27").set("VG", "284").set("ER", "291").set("AW", "297").set("FO", "298").set("GL", "299").set("GR", "30").set("ES", "34").set("GI", "350").set("PT", "351").set("IE", "353").set("IS", "354").set("AL", "355").set("MT", "356").set("CY", "357").set("FI", "358").set("BG", "359").set("HU", "36").set("LT", "370").set("LV", "371").set("EE", "372").set("MD", "373").set("AM", "374").set("BY", "375").set("AD", "376").set("MC", "377").set("SM", "378").set("UA", "380").set("RS", "381").set("ME", "382").set("HR", "385").set("SI", "386").set("BA", "387").set("MK", "389").set("IT", "39").set("RO", "40").set("CH", "41").set("CZ", "420").set("SK", "421").set("LI", "423").set("AT", "43").set("GB", "44").set("DK", "45").set("SE", "46").set("NO", "47").set("PL", "48").set("FK", "500").set("BZ", "501").set("GT", "502").set("SV", "503").set("HN", "504").set("NI", "505").set("CR", "506").set("PA", "507").set("PM", "508").set("HT", "509").set("PE", "51").set("MX", "52").set("CU", "53").set("AR", "54").set("BR", "55").set("CL", "56").set("CO", "57").set("VE", "58").set("GP", "590").set("BO", "591").set("GY", "592").set("EC", "593").set("FG", "594").set("PY", "595").set("MQ", "596").set("SR", "597").set("UY", "598").set("CW", "599").set("AN", "599").set("MY", "60").set("AU", "61").set("ID", "62").set("PH", "63").set("NZ", "64").set("SG", "65").set("TH", "66").set("TP", "670").set("BN", "673").set("PG", "675").set("TO", "676").set("SB", "677").set("VU", "678").set("FJ", "679").set("PW", "680").set("CK", "682").set("NU", "683").set("AS", "684").set("WS", "685").set("KI", "686").set("NC", "687").set("TV", "688").set("PF", "689").set("FM", "691").set("KZ", "7").set("RU", "7").set("JP", "81").set("KR", "82").set("VN", "84").set("KP", "850").set("HK", "852").set("MO", "853").set("KH", "855").set("LA", "856").set("CN", "86").set("BD", "880").set("TW", "886").set("TR", "90").set("IN", "91").set("PK", "92").set("AF", "93").set("LK", "94").set("MM", "95").set("MV", "960").set("LB", "961").set("JO", "962").set("SY", "963").set("IQ", "964").set("KW", "965").set("SA", "966").set("YE", "967").set("OM", "968").set("PS", "970").set("AE", "971").set("IL", "972").set("BH", "973").set("QA", "974").set("BT", "975").set("MN", "976").set("NP", "977").set("IR", "98").set("TK", "992").set("TM", "993").set("AZ", "994").set("GE", "995").set("KG", "996").set("UZ", "998");
|
|
2995
|
+
[...new Set(qi.values())].map((t) => ({
|
|
2996
|
+
label: `+${t}`,
|
|
2997
|
+
value: t
|
|
2998
|
+
}));
|
|
2999
|
+
n.createContext(void 0);
|
|
3000
|
+
n.createContext(void 0);
|
|
3001
|
+
var ue = /* @__PURE__ */ ((t) => (t[t.categoriesVegetables = 0] = "categoriesVegetables", t[t.categoriesMeat = 1] = "categoriesMeat", t[t.categoriesFish = 2] = "categoriesFish", t[t.categoriesDairy = 3] = "categoriesDairy", t[t.categoriesBreakfast = 4] = "categoriesBreakfast", t[t.categoriesSnacks = 5] = "categoriesSnacks", t[t.categoriesCandy = 6] = "categoriesCandy", t[t.categoriesNonFood = 7] = "categoriesNonFood", t[t.categoriesDryFood = 8] = "categoriesDryFood", t[t.categoriesTins = 9] = "categoriesTins", t[t.categoriesGrid = 10] = "categoriesGrid", t[t.categoriesSoda = 11] = "categoriesSoda", t[t.categoriesBakery = 12] = "categoriesBakery", t[t.categoriesWine = 13] = "categoriesWine", t[t.categoriesBaby = 14] = "categoriesBaby", t[t.categoriesDiet = 15] = "categoriesDiet", t[t.categoriesHygiene = 16] = "categoriesHygiene", t[t.categoriesCleaning = 17] = "categoriesCleaning", t[t.categoriesPets = 18] = "categoriesPets", t[t.categoriesFreezer = 19] = "categoriesFreezer", t[t.categoriesBbq = 20] = "categoriesBbq", t[t.categoriesMealbox = 21] = "categoriesMealbox", t[t.categoriesBrik = 22] = "categoriesBrik", t[t.categoriesGranen = 23] = "categoriesGranen", t[t.categoriesConserve = 24] = "categoriesConserve", t[t.categoriesHome = 25] = "categoriesHome", t[t.categoriesEaster = 26] = "categoriesEaster", t[t.categoriesOnlinePromo = 27] = "categoriesOnlinePromo", t[t.categoriesSportFood = 28] = "categoriesSportFood", t[t.categoriesClothing = 29] = "categoriesClothing", t[t.categoriesEnergy = 30] = "categoriesEnergy", t[t.categoriesDeskAndTravel = 31] = "categoriesDeskAndTravel", t[t.categoriesCigarette = 32] = "categoriesCigarette", t[t.categoriesFood = 33] = "categoriesFood", t[t.categoriesChild = 34] = "categoriesChild", t[t.categoriesPuzzle = 35] = "categoriesPuzzle", t[t.categoriesToys = 36] = "categoriesToys", t[t.categoriesCar = 37] = "categoriesCar", t[t.categoriesPlaceholder = 38] = "categoriesPlaceholder", t[t.categoriesFuel = 39] = "categoriesFuel", t[t.categoriesCarAndBike = 40] = "categoriesCarAndBike", t[t.categoriesToyAndHobby = 41] = "categoriesToyAndHobby", t[t.categoriesMultimedia = 42] = "categoriesMultimedia", t[t.categoriesParty = 43] = "categoriesParty", t[t.toolsPay = 44] = "toolsPay", t[t.toolsReceipt = 45] = "toolsReceipt", t[t.toolsFuel = 46] = "toolsFuel", t[t.toolsStoreLocator = 47] = "toolsStoreLocator", t[t.toolsStats = 48] = "toolsStats", t[t.toolsShowXtraOld = 49] = "toolsShowXtraOld", t[t.toolsShowXtraNew = 50] = "toolsShowXtraNew", t[t.toolsScan2 = 51] = "toolsScan2", t[t.toolsRecipes2 = 52] = "toolsRecipes2", t[t.toolsWarranty = 53] = "toolsWarranty", t[t.toolsCoupons = 54] = "toolsCoupons", t[t.toolsFavoriteInactive = 55] = "toolsFavoriteInactive", t[t.toolsFavoriteActive = 56] = "toolsFavoriteActive", t[t.toolsAssortment = 57] = "toolsAssortment", t[t.toolsPromo = 58] = "toolsPromo", t[t.fuelCng = 59] = "fuelCng", t[t.fuelE5 = 60] = "fuelE5", t[t.fuelAdblue = 61] = "fuelAdblue", t[t.fuelB7 = 62] = "fuelB7", t[t.fuelH2 = 63] = "fuelH2", t[t.fuelE10 = 64] = "fuelE10", t[t.fuelFreeTireInflation = 65] = "fuelFreeTireInflation", t[t.functionalClose = 66] = "functionalClose", t[t.functionalBack = 67] = "functionalBack", t[t.functionalSearch = 68] = "functionalSearch", t[t.functionalEdit = 69] = "functionalEdit", t[t.functionalShare = 70] = "functionalShare", t[t.functionalLocation = 71] = "functionalLocation", t[t.functionalTrash = 72] = "functionalTrash", t[t.functionalCamera = 73] = "functionalCamera", t[t.functionalPhone = 74] = "functionalPhone", t[t.functionalPushNotifications = 75] = "functionalPushNotifications", t[t.functionalMail = 76] = "functionalMail", t[t.functionalGift = 77] = "functionalGift", t[t.functionalPresent = 78] = "functionalPresent", t[t.functionalLoading = 79] = "functionalLoading", t[t.functionalChevronRight = 80] = "functionalChevronRight", t[t.functionalCheck = 81] = "functionalCheck", t[t.functionalChevronDown = 82] = "functionalChevronDown", t[t.functionalChevronUp = 83] = "functionalChevronUp", t[t.functionalPlus = 84] = "functionalPlus", t[t.functionalReset = 85] = "functionalReset", t[t.functionalDownload = 86] = "functionalDownload", t[t.functionalExport = 87] = "functionalExport", t[t.functionalCustomerService = 88] = "functionalCustomerService", t[t.functionalTruck = 89] = "functionalTruck", t[t.functionalBox = 90] = "functionalBox", t[t.functionalEllipsis = 91] = "functionalEllipsis", t[t.functionalLocationHome = 92] = "functionalLocationHome", t[t.functionalLocationPickup = 93] = "functionalLocationPickup", t[t.functionalAccount = 94] = "functionalAccount", t[t.functionalPrivacy = 95] = "functionalPrivacy", t[t.functionalSettings = 96] = "functionalSettings", t[t.functionalUserInfo = 97] = "functionalUserInfo", t[t.functionalPinOutlines = 98] = "functionalPinOutlines", t[t.functionalCalendar = 99] = "functionalCalendar", t[t.functionalMinus = 100] = "functionalMinus", t[t.functionalLifestyle = 101] = "functionalLifestyle", t[t.functionalSms = 102] = "functionalSms", t[t.functionalSwitch = 103] = "functionalSwitch", t[t.functionalSorting = 104] = "functionalSorting", t[t.functionalWarningCircle = 105] = "functionalWarningCircle", t[t.functionalQuestionCircle = 106] = "functionalQuestionCircle", t[t.functionalErrorCircle = 107] = "functionalErrorCircle", t[t.functionalSuccessCircle = 108] = "functionalSuccessCircle", t[t.functionalMessage = 109] = "functionalMessage", t[t.functionalExternalLink = 110] = "functionalExternalLink", t[t.functionalAddToList = 111] = "functionalAddToList", t[t.functionalShoppingcart = 112] = "functionalShoppingcart", t[t.functionalFilter = 113] = "functionalFilter", t[t.functionalLocate = 114] = "functionalLocate", t[t.functionalBarcode = 115] = "functionalBarcode", t[t.functionalClock = 116] = "functionalClock", t[t.functionalHistory = 117] = "functionalHistory", t[t.functionalShops = 118] = "functionalShops", t[t.functionalAddUser = 119] = "functionalAddUser", t[t.functionalOther = 120] = "functionalOther", t[t.functionalInAppNotifications = 121] = "functionalInAppNotifications", t[t.functionalExit = 122] = "functionalExit", t[t.functionalShared = 123] = "functionalShared", t[t.functionalThumbsup = 124] = "functionalThumbsup", t[t.functionalDiscount = 125] = "functionalDiscount", t[t.functionalPercentage = 126] = "functionalPercentage", t[t.functionalList = 127] = "functionalList", t[t.functionalMapLocation = 128] = "functionalMapLocation", t[t.functionalNoConnection = 129] = "functionalNoConnection", t[t.functionalSwap = 130] = "functionalSwap", t[t.functionalPiece = 131] = "functionalPiece", t[t.functionalWeight = 132] = "functionalWeight", t[t.functionalPack = 133] = "functionalPack", t[t.functionalCommunications = 134] = "functionalCommunications", t[t.functionalDeliveryAddresses = 135] = "functionalDeliveryAddresses", t[t["functional18+"] = 136] = "functional18+", t[t.functionalReadtime = 137] = "functionalReadtime", t[t.functionalCopy = 138] = "functionalCopy", t[t.functionalMessageField = 139] = "functionalMessageField", t[t.functionalNext = 140] = "functionalNext", t[t.functionalSave = 141] = "functionalSave", t[t.functionalLogin = 142] = "functionalLogin", t[t.functionalLogout = 143] = "functionalLogout", t[t.functionalWebsite = 144] = "functionalWebsite", t[t.functionalMenu = 145] = "functionalMenu", t[t.functionalRegister = 146] = "functionalRegister", t[t.functionalNews = 147] = "functionalNews", t[t.functionalTimer = 148] = "functionalTimer", t[t.functionalEyeShow = 149] = "functionalEyeShow", t[t.functionalMobilePay = 150] = "functionalMobilePay", t[t.functionalConnectionCable = 151] = "functionalConnectionCable", t[t.functionalDryCleaning = 152] = "functionalDryCleaning", t[t.functionalKiosk = 153] = "functionalKiosk", t[t.functionalConnectedDevice = 154] = "functionalConnectedDevice", t[t.functionalCookies = 155] = "functionalCookies", t[t.functionalViewFile = 156] = "functionalViewFile", t[t.functionalLastAdded = 157] = "functionalLastAdded", t[t.functionalFirstAdded = 158] = "functionalFirstAdded", t[t.functionalStoreLayout = 159] = "functionalStoreLayout", t[t.functionalBlock = 160] = "functionalBlock", t[t.functionalChecklist = 161] = "functionalChecklist", t[t.functionalCartCheckout = 162] = "functionalCartCheckout", t[t.functionalCartEdit = 163] = "functionalCartEdit", t[t.functionalEyeHidden = 164] = "functionalEyeHidden", t[t.functionalWarningCircleFilled = 165] = "functionalWarningCircleFilled", t[t.functionalQuestionCircleFilled = 166] = "functionalQuestionCircleFilled", t[t.functionalErrorCircleFilled = 167] = "functionalErrorCircleFilled", t[t.functionalSuccessCircleFilled = 168] = "functionalSuccessCircleFilled", t[t.functionalPlusCircle = 169] = "functionalPlusCircle", t[t.functionalSpinner = 170] = "functionalSpinner", t[t.functionalEcoEarth = 171] = "functionalEcoEarth", t[t.functionalAlphaBeta = 172] = "functionalAlphaBeta", t[t.functionalEuro = 173] = "functionalEuro", t[t.functionalNumber = 174] = "functionalNumber", t[t.functionalIdea = 175] = "functionalIdea", t[t.functionalMultifactorAuthenticator = 176] = "functionalMultifactorAuthenticator", t[t.functionalPassword = 177] = "functionalPassword", t[t.functionalDiscountCode = 178] = "functionalDiscountCode", t))(ue || {});
|
|
3002
|
+
const Wi = {
|
|
3003
|
+
categoriesVegetables: n.lazy(
|
|
3004
|
+
() => import("./Categoriesvegetables-DZmqkqzf.js")
|
|
3005
|
+
),
|
|
3006
|
+
categoriesMeat: n.lazy(() => import("./Categoriesmeat-D8F1Q7-6.js")),
|
|
3007
|
+
categoriesFish: n.lazy(() => import("./Categoriesfish-BT4SOzz9.js")),
|
|
3008
|
+
categoriesDairy: n.lazy(() => import("./Categoriesdairy-BN5pGn7H.js")),
|
|
3009
|
+
categoriesBreakfast: n.lazy(
|
|
3010
|
+
() => import("./Categoriesbreakfast-CrZEYv17.js")
|
|
3011
|
+
),
|
|
3012
|
+
categoriesSnacks: n.lazy(
|
|
3013
|
+
() => import("./Categoriessnacks-CfRIIcqL.js")
|
|
3014
|
+
),
|
|
3015
|
+
categoriesCandy: n.lazy(() => import("./Categoriescandy-CosPmSGe.js")),
|
|
3016
|
+
categoriesNonFood: n.lazy(
|
|
3017
|
+
() => import("./Categoriesnonfood-BnBFaXGS.js")
|
|
3018
|
+
),
|
|
3019
|
+
categoriesDryFood: n.lazy(
|
|
3020
|
+
() => import("./Categoriesdryfood-ClcYgc7y.js")
|
|
3021
|
+
),
|
|
3022
|
+
categoriesTins: n.lazy(() => import("./Categoriestins-CKYv87hu.js")),
|
|
3023
|
+
categoriesGrid: n.lazy(() => import("./Categoriesgrid-u09YGNf9.js")),
|
|
3024
|
+
categoriesSoda: n.lazy(() => import("./Categoriessoda-DDzhdgY-.js")),
|
|
3025
|
+
categoriesBakery: n.lazy(
|
|
3026
|
+
() => import("./Categoriesbakery-CcoBArzo.js")
|
|
3027
|
+
),
|
|
3028
|
+
categoriesWine: n.lazy(() => import("./Categorieswine-DtVxSYvH.js")),
|
|
3029
|
+
categoriesBaby: n.lazy(() => import("./Categoriesbaby-BK8PHi3L.js")),
|
|
3030
|
+
categoriesDiet: n.lazy(() => import("./Categoriesdiet-XttyqzzG.js")),
|
|
3031
|
+
categoriesHygiene: n.lazy(
|
|
3032
|
+
() => import("./Categorieshygiene-DsVq3vSG.js")
|
|
3033
|
+
),
|
|
3034
|
+
categoriesCleaning: n.lazy(
|
|
3035
|
+
() => import("./Categoriescleaning-ChBTEOpL.js")
|
|
3036
|
+
),
|
|
3037
|
+
categoriesPets: n.lazy(() => import("./Categoriespets-myRyzdWM.js")),
|
|
3038
|
+
categoriesFreezer: n.lazy(
|
|
3039
|
+
() => import("./Categoriesfreezer-Dcr4tycU.js")
|
|
3040
|
+
),
|
|
3041
|
+
categoriesBbq: n.lazy(() => import("./Categoriesbbq-8wHV3-M_.js")),
|
|
3042
|
+
categoriesMealbox: n.lazy(
|
|
3043
|
+
() => import("./Categoriesmealbox-BiGiIMkT.js")
|
|
3044
|
+
),
|
|
3045
|
+
categoriesBrik: n.lazy(() => import("./Categoriesbrik-nCENW9gv.js")),
|
|
3046
|
+
categoriesGranen: n.lazy(
|
|
3047
|
+
() => import("./Categoriesgranen-DE3ZoO-L.js")
|
|
3048
|
+
),
|
|
3049
|
+
categoriesConserve: n.lazy(
|
|
3050
|
+
() => import("./Categoriesconserve-DOg50u7R.js")
|
|
3051
|
+
),
|
|
3052
|
+
categoriesHome: n.lazy(() => import("./Categorieshome-DcPxnZUL.js")),
|
|
3053
|
+
categoriesEaster: n.lazy(
|
|
3054
|
+
() => import("./Categorieseaster-BecGCzVP.js")
|
|
3055
|
+
),
|
|
3056
|
+
categoriesOnlinePromo: n.lazy(
|
|
3057
|
+
() => import("./Categoriesonlinepromo-ByrVS4B6.js")
|
|
3058
|
+
),
|
|
3059
|
+
categoriesSportFood: n.lazy(
|
|
3060
|
+
() => import("./Categoriessportfood-SiwSHDB7.js")
|
|
3061
|
+
),
|
|
3062
|
+
categoriesClothing: n.lazy(
|
|
3063
|
+
() => import("./Categoriesclothing-Cn0h0i2i.js")
|
|
3064
|
+
),
|
|
3065
|
+
categoriesEnergy: n.lazy(
|
|
3066
|
+
() => import("./Categoriesenergy-Pja0bVRb.js")
|
|
3067
|
+
),
|
|
3068
|
+
categoriesDeskAndTravel: n.lazy(
|
|
3069
|
+
() => import("./Categoriesdeskandtravel-Cp5BxS9n.js")
|
|
3070
|
+
),
|
|
3071
|
+
categoriesCigarette: n.lazy(
|
|
3072
|
+
() => import("./Categoriescigarette-c4qRyeQ5.js")
|
|
3073
|
+
),
|
|
3074
|
+
categoriesFood: n.lazy(() => import("./Categoriesfood-DIkUZi64.js")),
|
|
3075
|
+
categoriesChild: n.lazy(() => import("./Categorieschild-CX99OAgT.js")),
|
|
3076
|
+
categoriesPuzzle: n.lazy(
|
|
3077
|
+
() => import("./Categoriespuzzle-DuCh6ovB.js")
|
|
3078
|
+
),
|
|
3079
|
+
categoriesToys: n.lazy(() => import("./Categoriestoys-VvydRq4P.js")),
|
|
3080
|
+
categoriesCar: n.lazy(() => import("./Categoriescar-7KP-M791.js")),
|
|
3081
|
+
categoriesPlaceholder: n.lazy(
|
|
3082
|
+
() => import("./Categoriesplaceholder-BnEE1Stl.js")
|
|
3083
|
+
),
|
|
3084
|
+
categoriesFuel: n.lazy(() => import("./Categoriesfuel-U0e04GV_.js")),
|
|
3085
|
+
categoriesCarAndBike: n.lazy(
|
|
3086
|
+
() => import("./Categoriescarandbike-B9bHFhLK.js")
|
|
3087
|
+
),
|
|
3088
|
+
categoriesToyAndHobby: n.lazy(
|
|
3089
|
+
() => import("./Categoriestoyandhobby-7i6Qk4rl.js")
|
|
3090
|
+
),
|
|
3091
|
+
categoriesMultimedia: n.lazy(
|
|
3092
|
+
() => import("./Categoriesmultimedia-BicArKmT.js")
|
|
3093
|
+
),
|
|
3094
|
+
categoriesParty: n.lazy(() => import("./Categoriesparty-BWzrbGN_.js")),
|
|
3095
|
+
toolsPay: n.lazy(() => import("./Toolspay-KtdPpmqd.js")),
|
|
3096
|
+
toolsReceipt: n.lazy(() => import("./Toolsreceipt-BGv1Cv7c.js")),
|
|
3097
|
+
toolsFuel: n.lazy(() => import("./Toolsfuel-BUqE3NEG.js")),
|
|
3098
|
+
toolsStoreLocator: n.lazy(
|
|
3099
|
+
() => import("./Toolsstorelocator-BrDv2xeS.js")
|
|
3100
|
+
),
|
|
3101
|
+
toolsStats: n.lazy(() => import("./Toolsstats-CFpH0rs8.js")),
|
|
3102
|
+
toolsShowXtraOld: n.lazy(
|
|
3103
|
+
() => import("./Toolsshowxtraold-BqrAPE1m.js")
|
|
3104
|
+
),
|
|
3105
|
+
toolsShowXtraNew: n.lazy(
|
|
3106
|
+
() => import("./Toolsshowxtranew-C4GLOL69.js")
|
|
3107
|
+
),
|
|
3108
|
+
toolsScan2: n.lazy(() => import("./Toolsscan2-Cr5CdaM9.js")),
|
|
3109
|
+
toolsRecipes2: n.lazy(() => import("./Toolsrecipes2-Bs9s6R6A.js")),
|
|
3110
|
+
toolsWarranty: n.lazy(() => import("./Toolswarranty-CZecEOkM.js")),
|
|
3111
|
+
toolsCoupons: n.lazy(() => import("./Toolscoupons-H4trLwkE.js")),
|
|
3112
|
+
toolsFavoriteInactive: n.lazy(
|
|
3113
|
+
() => import("./Toolsfavoriteinactive-CK9Zd2Xl.js")
|
|
3114
|
+
),
|
|
3115
|
+
toolsFavoriteActive: n.lazy(
|
|
3116
|
+
() => import("./Toolsfavoriteactive-De8P--yf.js")
|
|
3117
|
+
),
|
|
3118
|
+
toolsAssortment: n.lazy(() => import("./Toolsassortment-36SW5iI-.js")),
|
|
3119
|
+
toolsPromo: n.lazy(() => import("./Toolspromo-CNo9f1KB.js")),
|
|
3120
|
+
fuelCng: n.lazy(() => import("./Fuelcng-bMmrTp02.js")),
|
|
3121
|
+
fuelE5: n.lazy(() => import("./Fuele5-BVkTEGrj.js")),
|
|
3122
|
+
fuelAdblue: n.lazy(() => import("./Fueladblue-CSYlsyDy.js")),
|
|
3123
|
+
fuelB7: n.lazy(() => import("./Fuelb7-DFmtWruD.js")),
|
|
3124
|
+
fuelH2: n.lazy(() => import("./Fuelh2-D8ZQFbEM.js")),
|
|
3125
|
+
fuelE10: n.lazy(() => import("./Fuele10-CloHils2.js")),
|
|
3126
|
+
fuelFreeTireInflation: n.lazy(
|
|
3127
|
+
() => import("./Fuelfreetireinflation-SRIoMXZi.js")
|
|
3128
|
+
),
|
|
3129
|
+
functionalClose: n.lazy(() => import("./Functionalclose-CSc29pK8.js")),
|
|
3130
|
+
functionalBack: n.lazy(() => import("./Functionalback-Bp5nkAml.js")),
|
|
3131
|
+
functionalSearch: n.lazy(
|
|
3132
|
+
() => import("./Functionalsearch-DKHtmiN6.js")
|
|
3133
|
+
),
|
|
3134
|
+
functionalEdit: n.lazy(() => import("./Functionaledit-Bny8JHS3.js")),
|
|
3135
|
+
functionalShare: n.lazy(() => import("./Functionalshare-DwMvgZSh.js")),
|
|
3136
|
+
functionalLocation: n.lazy(
|
|
3137
|
+
() => import("./Functionallocation-BbGDMU8P.js")
|
|
3138
|
+
),
|
|
3139
|
+
functionalTrash: n.lazy(() => import("./Functionaltrash-CNfJEQWk.js")),
|
|
3140
|
+
functionalCamera: n.lazy(
|
|
3141
|
+
() => import("./Functionalcamera-D9dZic6y.js")
|
|
3142
|
+
),
|
|
3143
|
+
functionalPhone: n.lazy(() => import("./Functionalphone-Bagtkohc.js")),
|
|
3144
|
+
functionalPushNotifications: n.lazy(
|
|
3145
|
+
() => import("./Functionalpushnotifications-Dblb1X-g.js")
|
|
3146
|
+
),
|
|
3147
|
+
functionalMail: n.lazy(() => import("./Functionalmail-GurUjkNh.js")),
|
|
3148
|
+
functionalGift: n.lazy(() => import("./Functionalgift-A-S_eFoY.js")),
|
|
3149
|
+
functionalPresent: n.lazy(
|
|
3150
|
+
() => import("./Functionalpresent-Dn6juF59.js")
|
|
3151
|
+
),
|
|
3152
|
+
functionalLoading: n.lazy(
|
|
3153
|
+
() => import("./Functionalloading-CTp0Jd_T.js")
|
|
3154
|
+
),
|
|
3155
|
+
functionalChevronRight: n.lazy(
|
|
3156
|
+
() => import("./Functionalchevronright-COUKphaj.js")
|
|
3157
|
+
),
|
|
3158
|
+
functionalCheck: n.lazy(() => import("./Functionalcheck-BxgiHlti.js")),
|
|
3159
|
+
functionalChevronDown: n.lazy(
|
|
3160
|
+
() => import("./Functionalchevrondown-D9sw9bOC.js")
|
|
3161
|
+
),
|
|
3162
|
+
functionalChevronUp: n.lazy(
|
|
3163
|
+
() => import("./Functionalchevronup-CcNvpdw8.js")
|
|
3164
|
+
),
|
|
3165
|
+
functionalPlus: n.lazy(() => import("./Functionalplus-BfVdR4AS.js")),
|
|
3166
|
+
functionalReset: n.lazy(() => import("./Functionalreset-B6Y7gABE.js")),
|
|
3167
|
+
functionalDownload: n.lazy(
|
|
3168
|
+
() => import("./Functionaldownload-DZhkz83I.js")
|
|
3169
|
+
),
|
|
3170
|
+
functionalExport: n.lazy(
|
|
3171
|
+
() => import("./Functionalexport-cDsDdHi5.js")
|
|
3172
|
+
),
|
|
3173
|
+
functionalCustomerService: n.lazy(
|
|
3174
|
+
() => import("./Functionalcustomerservice-BUF7OZYY.js")
|
|
3175
|
+
),
|
|
3176
|
+
functionalTruck: n.lazy(() => import("./Functionaltruck-0Hxl-XHL.js")),
|
|
3177
|
+
functionalBox: n.lazy(() => import("./Functionalbox-BJwpdmhb.js")),
|
|
3178
|
+
functionalEllipsis: n.lazy(
|
|
3179
|
+
() => import("./Functionalellipsis-DSdUTFge.js")
|
|
3180
|
+
),
|
|
3181
|
+
functionalLocationHome: n.lazy(
|
|
3182
|
+
() => import("./Functionallocationhome-CWk-KaRh.js")
|
|
3183
|
+
),
|
|
3184
|
+
functionalLocationPickup: n.lazy(
|
|
3185
|
+
() => import("./Functionallocationpickup-Du_--iBZ.js")
|
|
3186
|
+
),
|
|
3187
|
+
functionalAccount: n.lazy(
|
|
3188
|
+
() => import("./Functionalaccount-DrN0jVA7.js")
|
|
3189
|
+
),
|
|
3190
|
+
functionalPrivacy: n.lazy(
|
|
3191
|
+
() => import("./Functionalprivacy-BG0LWqks.js")
|
|
3192
|
+
),
|
|
3193
|
+
functionalSettings: n.lazy(
|
|
3194
|
+
() => import("./Functionalsettings-CivQo5nO.js")
|
|
3195
|
+
),
|
|
3196
|
+
functionalUserInfo: n.lazy(
|
|
3197
|
+
() => import("./Functionaluserinfo-D8YRwj0z.js")
|
|
3198
|
+
),
|
|
3199
|
+
functionalPinOutlines: n.lazy(
|
|
3200
|
+
() => import("./Functionalpinoutlines-C4-kRRRI.js")
|
|
3201
|
+
),
|
|
3202
|
+
functionalCalendar: n.lazy(
|
|
3203
|
+
() => import("./Functionalcalendar-2td1a8iX.js")
|
|
3204
|
+
),
|
|
3205
|
+
functionalMinus: n.lazy(() => import("./Functionalminus-BLRZ3PXJ.js")),
|
|
3206
|
+
functionalLifestyle: n.lazy(
|
|
3207
|
+
() => import("./Functionallifestyle-B8ikBccg.js")
|
|
3208
|
+
),
|
|
3209
|
+
functionalSms: n.lazy(() => import("./Functionalsms-DoeTMScD.js")),
|
|
3210
|
+
functionalSwitch: n.lazy(
|
|
3211
|
+
() => import("./Functionalswitch-DQq0PT3U.js")
|
|
3212
|
+
),
|
|
3213
|
+
functionalSorting: n.lazy(
|
|
3214
|
+
() => import("./Functionalsorting-D8V81-yd.js")
|
|
3215
|
+
),
|
|
3216
|
+
functionalWarningCircle: n.lazy(
|
|
3217
|
+
() => import("./Functionalwarningcircle-BlJ59knk.js")
|
|
3218
|
+
),
|
|
3219
|
+
functionalQuestionCircle: n.lazy(
|
|
3220
|
+
() => import("./Functionalquestioncircle-DP7eKeSb.js")
|
|
3221
|
+
),
|
|
3222
|
+
functionalErrorCircle: n.lazy(
|
|
3223
|
+
() => import("./Functionalerrorcircle-Cn9D7y2M.js")
|
|
3224
|
+
),
|
|
3225
|
+
functionalSuccessCircle: n.lazy(
|
|
3226
|
+
() => import("./Functionalsuccesscircle-BZSKq-XE.js")
|
|
3227
|
+
),
|
|
3228
|
+
functionalMessage: n.lazy(
|
|
3229
|
+
() => import("./Functionalmessage-CuItmwfZ.js")
|
|
3230
|
+
),
|
|
3231
|
+
functionalExternalLink: n.lazy(
|
|
3232
|
+
() => import("./Functionalexternallink-dS7Ownhh.js")
|
|
3233
|
+
),
|
|
3234
|
+
functionalAddToList: n.lazy(
|
|
3235
|
+
() => import("./Functionaladdtolist-oXBWyYGw.js")
|
|
3236
|
+
),
|
|
3237
|
+
functionalShoppingcart: n.lazy(
|
|
3238
|
+
() => import("./Functionalshoppingcart-Ls0DYjqT.js")
|
|
3239
|
+
),
|
|
3240
|
+
functionalFilter: n.lazy(
|
|
3241
|
+
() => import("./Functionalfilter-oikNz5BS.js")
|
|
3242
|
+
),
|
|
3243
|
+
functionalLocate: n.lazy(
|
|
3244
|
+
() => import("./Functionallocate-BfzlDwwL.js")
|
|
3245
|
+
),
|
|
3246
|
+
functionalBarcode: n.lazy(
|
|
3247
|
+
() => import("./Functionalbarcode-CnW2Znah.js")
|
|
3248
|
+
),
|
|
3249
|
+
functionalClock: n.lazy(() => import("./Functionalclock-CQJMiOUj.js")),
|
|
3250
|
+
functionalHistory: n.lazy(
|
|
3251
|
+
() => import("./Functionalhistory-DSPZf2ii.js")
|
|
3252
|
+
),
|
|
3253
|
+
functionalShops: n.lazy(() => import("./Functionalshops-BvMRmBWC.js")),
|
|
3254
|
+
functionalAddUser: n.lazy(
|
|
3255
|
+
() => import("./Functionaladduser-DyfUvgr7.js")
|
|
3256
|
+
),
|
|
3257
|
+
functionalOther: n.lazy(() => import("./Functionalother-ClXgsR1I.js")),
|
|
3258
|
+
functionalInAppNotifications: n.lazy(
|
|
3259
|
+
() => import("./Functionalinappnotifications-DOWSLSnw.js")
|
|
3260
|
+
),
|
|
3261
|
+
functionalExit: n.lazy(() => import("./Functionalexit-BMYWgMPM.js")),
|
|
3262
|
+
functionalShared: n.lazy(
|
|
3263
|
+
() => import("./Functionalshared-DzP2vBRb.js")
|
|
3264
|
+
),
|
|
3265
|
+
functionalThumbsup: n.lazy(
|
|
3266
|
+
() => import("./Functionalthumbsup-B2AWy6SW.js")
|
|
3267
|
+
),
|
|
3268
|
+
functionalDiscount: n.lazy(
|
|
3269
|
+
() => import("./Functionaldiscount-C4D1kfU5.js")
|
|
3270
|
+
),
|
|
3271
|
+
functionalPercentage: n.lazy(
|
|
3272
|
+
() => import("./Functionalpercentage-DuTWZRtX.js")
|
|
3273
|
+
),
|
|
3274
|
+
functionalList: n.lazy(() => import("./Functionallist-CtIVDDKI.js")),
|
|
3275
|
+
functionalMapLocation: n.lazy(
|
|
3276
|
+
() => import("./Functionalmaplocation-ShsgfKPf.js")
|
|
3277
|
+
),
|
|
3278
|
+
functionalNoConnection: n.lazy(
|
|
3279
|
+
() => import("./Functionalnoconnection-pPU7or3J.js")
|
|
3280
|
+
),
|
|
3281
|
+
functionalSwap: n.lazy(() => import("./Functionalswap-BU4e2oLg.js")),
|
|
3282
|
+
functionalPiece: n.lazy(() => import("./Functionalpiece-C6ulS7oE.js")),
|
|
3283
|
+
functionalWeight: n.lazy(
|
|
3284
|
+
() => import("./Functionalweight-C1uPyrhO.js")
|
|
3285
|
+
),
|
|
3286
|
+
functionalPack: n.lazy(() => import("./Functionalpack-Dm5IfprQ.js")),
|
|
3287
|
+
functionalCommunications: n.lazy(
|
|
3288
|
+
() => import("./Functionalcommunications-BvA6HmxT.js")
|
|
3289
|
+
),
|
|
3290
|
+
functionalDeliveryAddresses: n.lazy(
|
|
3291
|
+
() => import("./Functionaldeliveryaddresses-Dq8bDZ0l.js")
|
|
3292
|
+
),
|
|
3293
|
+
"functional18+": n.lazy(
|
|
3294
|
+
() => import("./Functional18plus-QP8_Jdn4.js")
|
|
3295
|
+
),
|
|
3296
|
+
functionalReadtime: n.lazy(
|
|
3297
|
+
() => import("./Functionalreadtime-C_bKGAYY.js")
|
|
3298
|
+
),
|
|
3299
|
+
functionalCopy: n.lazy(() => import("./Functionalcopy-Cia7a0iN.js")),
|
|
3300
|
+
functionalMessageField: n.lazy(
|
|
3301
|
+
() => import("./Functionalmessagefield-CwpyVdYL.js")
|
|
3302
|
+
),
|
|
3303
|
+
functionalNext: n.lazy(() => import("./Functionalnext-Cp_x1ZV6.js")),
|
|
3304
|
+
functionalSave: n.lazy(() => import("./Functionalsave-BPm0j_jU.js")),
|
|
3305
|
+
functionalLogin: n.lazy(() => import("./Functionallogin-iJT5VO2y.js")),
|
|
3306
|
+
functionalLogout: n.lazy(
|
|
3307
|
+
() => import("./Functionallogout-C8Mq01k0.js")
|
|
3308
|
+
),
|
|
3309
|
+
functionalWebsite: n.lazy(
|
|
3310
|
+
() => import("./Functionalwebsite-BniTsGiW.js")
|
|
3311
|
+
),
|
|
3312
|
+
functionalMenu: n.lazy(() => import("./Functionalmenu-B1ta7mdn.js")),
|
|
3313
|
+
functionalRegister: n.lazy(
|
|
3314
|
+
() => import("./Functionalregister-C3HnHqxI.js")
|
|
3315
|
+
),
|
|
3316
|
+
functionalNews: n.lazy(() => import("./Functionalnews-C4u0KQJ-.js")),
|
|
3317
|
+
functionalTimer: n.lazy(() => import("./Functionaltimer-H7m2s0Jo.js")),
|
|
3318
|
+
functionalEyeShow: n.lazy(
|
|
3319
|
+
() => import("./Functionaleyeshow-DeDQo-aK.js")
|
|
3320
|
+
),
|
|
3321
|
+
functionalMobilePay: n.lazy(
|
|
3322
|
+
() => import("./Functionalmobilepay-DbPvnMEH.js")
|
|
3323
|
+
),
|
|
3324
|
+
functionalConnectionCable: n.lazy(
|
|
3325
|
+
() => import("./Functionalconnectioncable-aTtVqI_G.js")
|
|
3326
|
+
),
|
|
3327
|
+
functionalDryCleaning: n.lazy(
|
|
3328
|
+
() => import("./Functionaldrycleaning-9e8OvgJc.js")
|
|
3329
|
+
),
|
|
3330
|
+
functionalKiosk: n.lazy(() => import("./Functionalkiosk-DW0IfYHw.js")),
|
|
3331
|
+
functionalConnectedDevice: n.lazy(
|
|
3332
|
+
() => import("./Functionalconnecteddevice-DwZVzD4k.js")
|
|
3333
|
+
),
|
|
3334
|
+
functionalCookies: n.lazy(
|
|
3335
|
+
() => import("./Functionalcookies-CBVHL9o4.js")
|
|
3336
|
+
),
|
|
3337
|
+
functionalViewFile: n.lazy(
|
|
3338
|
+
() => import("./Functionalviewfile-D2hknqMU.js")
|
|
3339
|
+
),
|
|
3340
|
+
functionalLastAdded: n.lazy(
|
|
3341
|
+
() => import("./Functionallastadded-u4XSW3hD.js")
|
|
3342
|
+
),
|
|
3343
|
+
functionalFirstAdded: n.lazy(
|
|
3344
|
+
() => import("./Functionalfirstadded-BnHAUwEu.js")
|
|
3345
|
+
),
|
|
3346
|
+
functionalStoreLayout: n.lazy(
|
|
3347
|
+
() => import("./Functionalstorelayout-CrrvFLpE.js")
|
|
3348
|
+
),
|
|
3349
|
+
functionalBlock: n.lazy(() => import("./Functionalblock-DWP4Vov2.js")),
|
|
3350
|
+
functionalChecklist: n.lazy(
|
|
3351
|
+
() => import("./Functionalchecklist-D-LnY_Ee.js")
|
|
3352
|
+
),
|
|
3353
|
+
functionalCartCheckout: n.lazy(
|
|
3354
|
+
() => import("./Functionalcartcheckout-CNI63YGa.js")
|
|
3355
|
+
),
|
|
3356
|
+
functionalCartEdit: n.lazy(
|
|
3357
|
+
() => import("./Functionalcartedit-CLCPUmNR.js")
|
|
3358
|
+
),
|
|
3359
|
+
functionalEyeHidden: n.lazy(
|
|
3360
|
+
() => import("./Functionaleyehidden-Bbjl6We7.js")
|
|
3361
|
+
),
|
|
3362
|
+
functionalWarningCircleFilled: n.lazy(
|
|
3363
|
+
() => import("./Functionalwarningcirclefilled-Dfic7jAb.js")
|
|
3364
|
+
),
|
|
3365
|
+
functionalQuestionCircleFilled: n.lazy(
|
|
3366
|
+
() => import("./Functionalquestioncirclefilled-4lNkj_mX.js")
|
|
3367
|
+
),
|
|
3368
|
+
functionalErrorCircleFilled: n.lazy(
|
|
3369
|
+
() => import("./Functionalerrorcirclefilled-DT2g6pS4.js")
|
|
3370
|
+
),
|
|
3371
|
+
functionalSuccessCircleFilled: n.lazy(
|
|
3372
|
+
() => import("./Functionalsuccesscirclefilled-BNosIoGs.js")
|
|
3373
|
+
),
|
|
3374
|
+
functionalPlusCircle: n.lazy(
|
|
3375
|
+
() => import("./Functionalpluscircle-485Is4Xu.js")
|
|
3376
|
+
),
|
|
3377
|
+
functionalSpinner: n.lazy(
|
|
3378
|
+
() => import("./Functionalspinner-DkwbA_aW.js")
|
|
3379
|
+
),
|
|
3380
|
+
functionalEcoEarth: n.lazy(
|
|
3381
|
+
() => import("./Functionalecoearth-BGJbj9YJ.js")
|
|
3382
|
+
),
|
|
3383
|
+
functionalAlphaBeta: n.lazy(
|
|
3384
|
+
() => import("./Functionalalphabeta-eRsdPQrG.js")
|
|
3385
|
+
),
|
|
3386
|
+
functionalEuro: n.lazy(() => import("./Functionaleuro-BfFjpwIF.js")),
|
|
3387
|
+
functionalNumber: n.lazy(
|
|
3388
|
+
() => import("./Functionalnumber-BQByMDKU.js")
|
|
3389
|
+
),
|
|
3390
|
+
functionalIdea: n.lazy(() => import("./Functionalidea-D6ZHRfi1.js")),
|
|
3391
|
+
functionalMultifactorAuthenticator: n.lazy(
|
|
3392
|
+
() => import("./Functionalmultifactorauthenticator-D1jkwsgX.js")
|
|
3393
|
+
),
|
|
3394
|
+
functionalPassword: n.lazy(
|
|
3395
|
+
() => import("./Functionalpassword-YD7RSIAC.js")
|
|
3396
|
+
),
|
|
3397
|
+
functionalDiscountCode: n.lazy(
|
|
3398
|
+
() => import("./Functionaldiscountcode-BWwyTnvX.js")
|
|
3399
|
+
)
|
|
3400
|
+
}, Vi = ({
|
|
3401
|
+
bouIconId: t,
|
|
3402
|
+
...e
|
|
3403
|
+
}) => {
|
|
3404
|
+
const s = ue[t], r = Wi[s];
|
|
3405
|
+
return r ? /* @__PURE__ */ i.jsx(n.Suspense, { fallback: /* @__PURE__ */ i.jsx("div", { children: "..." }), children: /* @__PURE__ */ i.jsx(r, { width: "24", height: "24", ...e, fill: "none", ref: void 0 }) }) : null;
|
|
3406
|
+
}, Pe = (t) => typeof t.icon == "string" && t.icon in ue ? /* @__PURE__ */ i.jsx(Vi, { bouIconId: ue[t.icon] }) : t.icon, $i = ({
|
|
3407
|
+
label: t,
|
|
3408
|
+
className: e,
|
|
3409
|
+
onClick: s,
|
|
3410
|
+
icon: r
|
|
3411
|
+
}) => /* @__PURE__ */ i.jsx($.Item, { className: e, children: /* @__PURE__ */ i.jsxs("button", { onClick: s, children: [
|
|
3412
|
+
/* @__PURE__ */ i.jsx(Pe, { icon: r }),
|
|
3413
|
+
t
|
|
3414
|
+
] }) }), Lt = (t) => {
|
|
3415
|
+
const e = Ys(), { className: s, label: r, mobileUrl: a, desktopUrl: c, icon: l } = t;
|
|
3416
|
+
return /* @__PURE__ */ i.jsxs($.Item, { className: s, children: [
|
|
3417
|
+
(!e || e && !c) && /* @__PURE__ */ i.jsxs("a", { href: a, referrerPolicy: "no-referrer-when-downgrade", children: [
|
|
3418
|
+
/* @__PURE__ */ i.jsx(Pe, { icon: l }),
|
|
3419
|
+
r
|
|
3420
|
+
] }),
|
|
3421
|
+
!!c && /* @__PURE__ */ i.jsxs("a", { href: c, referrerPolicy: "no-referrer-when-downgrade", children: [
|
|
3422
|
+
/* @__PURE__ */ i.jsx(Pe, { icon: l }),
|
|
3423
|
+
r
|
|
3424
|
+
] })
|
|
3425
|
+
] });
|
|
3426
|
+
}, Ks = n.createContext(void 0), Zi = ({ apiUrl: t, authUrl: e, country: s, redirectUrl: r, bouHeaders: a, children: c }) => /* @__PURE__ */ i.jsx(Ks.Provider, { value: { apiUrl: t, authUrl: e, country: s, redirectUrl: r, bouHeaders: a }, children: c }), Et = () => {
|
|
3427
|
+
const t = n.useContext(Ks);
|
|
3428
|
+
if (!t)
|
|
3429
|
+
throw new Error("Api context can not be rendered outside of Api");
|
|
3430
|
+
return t;
|
|
3431
|
+
}, Gs = n.createContext(void 0), Xi = ({ position: t, bouMenuItems: e, menuItemsToHide: s, children: r }) => /* @__PURE__ */ i.jsx(Gs.Provider, { value: { position: t, bouMenuItems: e, menuItemsToHide: s }, children: r }), qs = () => {
|
|
3432
|
+
const t = n.useContext(Gs);
|
|
3433
|
+
if (!t)
|
|
3434
|
+
throw new Error("Authentication context can not be rendered outside of Authentication");
|
|
3435
|
+
return t;
|
|
3436
|
+
}, Ws = ({ authUrl: t, redirectUrl: e, trackingInfo: s }) => {
|
|
3437
|
+
const r = new URLSearchParams({ redirectUrl: e });
|
|
3438
|
+
s && r.append("trackingInfo", s);
|
|
3439
|
+
const a = `${t}/login?${r.toString()}`, c = `${t}/logout?${r.toString()}`;
|
|
3440
|
+
return { loginUrl: a, logoutUrl: c };
|
|
3441
|
+
}, he = () => {
|
|
3442
|
+
const { authUrl: t, redirectUrl: e } = Et(), s = Js();
|
|
3443
|
+
return Ws({ authUrl: t, redirectUrl: e, trackingInfo: s });
|
|
3444
|
+
}, Yi = () => {
|
|
3445
|
+
const { apiUrl: t } = Et();
|
|
3446
|
+
return `${`${t}/xtra`}/authentication/v1/user/profile`;
|
|
3447
|
+
}, Xe = (t) => t ? `+${t.countryCode} ${t.number}` : "", Ye = (t, e) => e == null ? void 0 : e.find((s) => s.type === t), Je = ({ apiUrl: t, redirectUrl: e }) => {
|
|
3448
|
+
const { loginUrl: s } = Ws({ authUrl: t, redirectUrl: e });
|
|
3449
|
+
window.location.replace(s);
|
|
3450
|
+
}, Ie = (t) => {
|
|
3451
|
+
var c;
|
|
3452
|
+
if (!t)
|
|
3453
|
+
return { user: { state: () => "NotAuthenticated" }, tryToLogon: Je };
|
|
3454
|
+
const e = new Date(t.dateOfBirth), s = Ye(De.Mobile, t.phone), r = Ye(De.Fixed, t.phone), a = Xe(s) ?? Xe(r) ?? "";
|
|
3455
|
+
return {
|
|
3456
|
+
user: {
|
|
3457
|
+
...(c = window.XTRA) == null ? void 0 : c.user,
|
|
3458
|
+
firstName: () => t.firstName,
|
|
3459
|
+
lastName: () => t.lastName,
|
|
3460
|
+
dob: () => e.getDate(),
|
|
3461
|
+
mob: () => e.getMonth() + 1,
|
|
3462
|
+
yob: () => e.getFullYear(),
|
|
3463
|
+
gender: () => t.genderCode,
|
|
3464
|
+
phone: () => a,
|
|
3465
|
+
streetName: () => {
|
|
3466
|
+
var l;
|
|
3467
|
+
return (l = t.address) == null ? void 0 : l.streetName;
|
|
3468
|
+
},
|
|
3469
|
+
houseNr: () => {
|
|
3470
|
+
var l;
|
|
3471
|
+
return (l = t.address) == null ? void 0 : l.houseNumber;
|
|
3472
|
+
},
|
|
3473
|
+
box: () => {
|
|
3474
|
+
var l;
|
|
3475
|
+
return (l = t.address) == null ? void 0 : l.letterBoxName;
|
|
3476
|
+
},
|
|
3477
|
+
zip: () => {
|
|
3478
|
+
var l;
|
|
3479
|
+
return (l = t.address) == null ? void 0 : l.postalCode;
|
|
3480
|
+
},
|
|
3481
|
+
city: () => {
|
|
3482
|
+
var l;
|
|
3483
|
+
return (l = t.address) == null ? void 0 : l.locationName;
|
|
3484
|
+
},
|
|
3485
|
+
country: () => {
|
|
3486
|
+
var l;
|
|
3487
|
+
return (l = t.address) == null ? void 0 : l.countryCode;
|
|
3488
|
+
},
|
|
3489
|
+
email: () => t.email,
|
|
3490
|
+
cbh: () => t.customerIdentifier,
|
|
3491
|
+
state: () => "Authenticated"
|
|
3492
|
+
},
|
|
3493
|
+
tryToLogon: Je
|
|
3494
|
+
};
|
|
3495
|
+
}, Vs = ["profile"], $s = () => {
|
|
3496
|
+
const { i18n: t } = gt(), { country: e, bouHeaders: s } = Et(), r = Yi(), a = sessionStorage.getItem("profile"), c = !!a;
|
|
3497
|
+
return _s({
|
|
3498
|
+
queryKey: Vs,
|
|
3499
|
+
queryFn: async () => {
|
|
3500
|
+
const u = Ae(t.language, e), h = await fetch(r, {
|
|
3501
|
+
credentials: "include",
|
|
3502
|
+
mode: "cors",
|
|
3503
|
+
headers: { "Accept-Language": u, ...s }
|
|
3504
|
+
});
|
|
3505
|
+
if (!h.ok) {
|
|
3506
|
+
if (h.status === 401)
|
|
3507
|
+
return window.XTRA = { ...window.XTRA, ...Ie() }, window.postMessage(
|
|
3508
|
+
{ source: "xtra-authentication", isAuthenticated: !1 },
|
|
3509
|
+
new URL(window.location.href).origin
|
|
3510
|
+
), sessionStorage.removeItem("profile"), { authenticationStatus: "NotAuthenticated" };
|
|
3511
|
+
if (c)
|
|
3512
|
+
return { authenticationStatus: "Authenticated", profile: JSON.parse(a) };
|
|
3513
|
+
throw new Error("Failed to retrieve profile");
|
|
3514
|
+
}
|
|
3515
|
+
const p = await h.json(), { firstName: m, lastName: d } = p;
|
|
3516
|
+
return sessionStorage.setItem("profile", JSON.stringify({ firstName: m, lastName: d })), window.postMessage(
|
|
3517
|
+
{ source: "xtra-authentication", isAuthenticated: !0 },
|
|
3518
|
+
new URL(window.location.href).origin
|
|
3519
|
+
), window.XTRA = { ...window.XTRA, ...Ie(p) }, {
|
|
3520
|
+
authenticationStatus: "Authenticated",
|
|
3521
|
+
profile: { firstName: p.firstName, lastName: p.lastName }
|
|
3522
|
+
};
|
|
3523
|
+
},
|
|
3524
|
+
initialData: c ? {
|
|
3525
|
+
authenticationStatus: "Authenticated",
|
|
3526
|
+
profile: JSON.parse(a)
|
|
3527
|
+
} : void 0,
|
|
3528
|
+
placeholderData: { authenticationStatus: "Pending" },
|
|
3529
|
+
refetchOnWindowFocus: !1
|
|
3530
|
+
});
|
|
3531
|
+
}, Ji = (t) => {
|
|
3532
|
+
const e = {
|
|
3533
|
+
shouldHidePayments: !1,
|
|
3534
|
+
shouldHideVouchers: !1,
|
|
3535
|
+
shouldHideQrCodes: !1
|
|
3536
|
+
};
|
|
3537
|
+
return Array.isArray(t) && t.forEach((s) => {
|
|
3538
|
+
if (typeof s == "string")
|
|
3539
|
+
switch (s.toLowerCase()) {
|
|
3540
|
+
case "payment":
|
|
3541
|
+
e.shouldHidePayments = !0;
|
|
3542
|
+
break;
|
|
3543
|
+
case "vouchers":
|
|
3544
|
+
e.shouldHideVouchers = !0;
|
|
3545
|
+
break;
|
|
3546
|
+
case "qrcode":
|
|
3547
|
+
e.shouldHideQrCodes = !0;
|
|
3548
|
+
break;
|
|
3549
|
+
default:
|
|
3550
|
+
console.error(
|
|
3551
|
+
`'${s}' is not a valid value for menuItemsToHide. Please refer https://www.npmjs.com/package/@myxtra/authentication-green#configuration`
|
|
3552
|
+
);
|
|
3553
|
+
}
|
|
3554
|
+
else
|
|
3555
|
+
console.error(
|
|
3556
|
+
"Please make sure the Menu Items to hide are strings and the expected values are [Payment, Vouchers, QRCode]"
|
|
3557
|
+
);
|
|
3558
|
+
}), e;
|
|
3559
|
+
}, Ii = () => {
|
|
3560
|
+
const { t } = gt(), { position: e, bouMenuItems: s, menuItemsToHide: r } = qs(), { country: a } = Et(), c = us({ country: a }), { logoutUrl: l } = he(), h = Re().getQueryData(Vs), p = (h == null ? void 0 : h.profile.firstName) ?? "", m = (h == null ? void 0 : h.profile.lastName) ?? "", { shouldHidePayments: d, shouldHideVouchers: x, shouldHideQrCodes: g } = Ji(r), k = () => {
|
|
3561
|
+
sessionStorage.removeItem("profile"), window.location.href = l;
|
|
3562
|
+
};
|
|
3563
|
+
return /* @__PURE__ */ i.jsxs($, { type: "nav", id: "xtra-menu", position: e, children: [
|
|
3564
|
+
/* @__PURE__ */ i.jsx(
|
|
3565
|
+
$.Trigger,
|
|
3566
|
+
{
|
|
3567
|
+
className: N(
|
|
3568
|
+
"button",
|
|
3569
|
+
"button--neutral",
|
|
3570
|
+
"button--authentication",
|
|
3571
|
+
"button--authentication--authenticated"
|
|
3572
|
+
),
|
|
3573
|
+
children: /* @__PURE__ */ i.jsxs("button", { children: [
|
|
3574
|
+
/* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Tr, { variant: "small", firstName: p, lastName: m }) }),
|
|
3575
|
+
/* @__PURE__ */ i.jsx("span", { className: "button__label", children: p }),
|
|
3576
|
+
/* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Fe, {}) })
|
|
3577
|
+
] })
|
|
3578
|
+
}
|
|
3579
|
+
),
|
|
3580
|
+
/* @__PURE__ */ i.jsxs($.Content, { as: "div", children: [
|
|
3581
|
+
!!s && s.length > 0 && /* @__PURE__ */ i.jsx("ul", { className: "bou-menu__list", children: s.map(({ label: v, icon: C, url: S }, E) => /* @__PURE__ */ i.jsx(
|
|
3582
|
+
Lt,
|
|
3583
|
+
{
|
|
3584
|
+
className: "bou-menu-item",
|
|
3585
|
+
mobileUrl: S,
|
|
3586
|
+
icon: C,
|
|
3587
|
+
label: v
|
|
3588
|
+
},
|
|
3589
|
+
E
|
|
3590
|
+
)) }),
|
|
3591
|
+
/* @__PURE__ */ i.jsxs("ul", { children: [
|
|
3592
|
+
/* @__PURE__ */ i.jsx(
|
|
3593
|
+
Lt,
|
|
3594
|
+
{
|
|
3595
|
+
className: "manage-profile",
|
|
3596
|
+
mobileUrl: `${c}/manage-profile`,
|
|
3597
|
+
desktopUrl: `${c}/manage-profile/personal-data`,
|
|
3598
|
+
icon: /* @__PURE__ */ i.jsx(ri, {}),
|
|
3599
|
+
label: t("manageProfile")
|
|
3600
|
+
}
|
|
3601
|
+
),
|
|
3602
|
+
a === "BE" && !d && /* @__PURE__ */ i.jsx(
|
|
3603
|
+
Lt,
|
|
3604
|
+
{
|
|
3605
|
+
className: "payment",
|
|
3606
|
+
mobileUrl: `${c}/payment`,
|
|
3607
|
+
icon: /* @__PURE__ */ i.jsx(pi, {}),
|
|
3608
|
+
label: t("payment")
|
|
3609
|
+
}
|
|
3610
|
+
),
|
|
3611
|
+
!x && /* @__PURE__ */ i.jsx(
|
|
3612
|
+
Lt,
|
|
3613
|
+
{
|
|
3614
|
+
className: "gift-cards",
|
|
3615
|
+
mobileUrl: `${c}/${a === "BE" ? "gift-cards" : "vouchers"}`,
|
|
3616
|
+
icon: /* @__PURE__ */ i.jsx(di, {}),
|
|
3617
|
+
label: t("giftCards")
|
|
3618
|
+
}
|
|
3619
|
+
),
|
|
3620
|
+
!g && /* @__PURE__ */ i.jsx(
|
|
3621
|
+
Lt,
|
|
3622
|
+
{
|
|
3623
|
+
mobileUrl: `${c}/identifiers`,
|
|
3624
|
+
icon: /* @__PURE__ */ i.jsx(yi, {}),
|
|
3625
|
+
label: t("qrCode")
|
|
3626
|
+
}
|
|
3627
|
+
),
|
|
3628
|
+
/* @__PURE__ */ i.jsx(
|
|
3629
|
+
Lt,
|
|
3630
|
+
{
|
|
3631
|
+
className: "manage-privacy",
|
|
3632
|
+
mobileUrl: `${c}/manage-privacy`,
|
|
3633
|
+
desktopUrl: `${c}/manage-privacy/permissions`,
|
|
3634
|
+
icon: /* @__PURE__ */ i.jsx(ei, {}),
|
|
3635
|
+
label: t("privacy")
|
|
3636
|
+
}
|
|
3637
|
+
),
|
|
3638
|
+
/* @__PURE__ */ i.jsx($i, { onClick: k, icon: /* @__PURE__ */ i.jsx(Br, {}), label: t("logout") })
|
|
3639
|
+
] })
|
|
3640
|
+
] })
|
|
3641
|
+
] });
|
|
3642
|
+
}, Bi = () => {
|
|
3643
|
+
const { t } = gt();
|
|
3644
|
+
return /* @__PURE__ */ i.jsxs("button", { className: N("button", "button--neutral", "button--authentication"), children: [
|
|
3645
|
+
/* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx("i", { className: "spinner" }) }),
|
|
3646
|
+
/* @__PURE__ */ i.jsxs("span", { className: "button__label", children: [
|
|
3647
|
+
t("loading"),
|
|
3648
|
+
"..."
|
|
3649
|
+
] })
|
|
3650
|
+
] });
|
|
3651
|
+
};
|
|
3652
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
3653
|
+
function ne(t) {
|
|
3654
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
3655
|
+
var s = arguments[e];
|
|
3656
|
+
for (var r in s)
|
|
3657
|
+
t[r] = s[r];
|
|
3658
|
+
}
|
|
3659
|
+
return t;
|
|
3660
|
+
}
|
|
3661
|
+
var tn = {
|
|
3662
|
+
read: function(t) {
|
|
3663
|
+
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3664
|
+
},
|
|
3665
|
+
write: function(t) {
|
|
3666
|
+
return encodeURIComponent(t).replace(
|
|
3667
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
3668
|
+
decodeURIComponent
|
|
3669
|
+
);
|
|
3670
|
+
}
|
|
3671
|
+
};
|
|
3672
|
+
function Ne(t, e) {
|
|
3673
|
+
function s(a, c, l) {
|
|
3674
|
+
if (!(typeof document > "u")) {
|
|
3675
|
+
l = ne({}, e, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), a = encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
3676
|
+
var u = "";
|
|
3677
|
+
for (var h in l)
|
|
3678
|
+
l[h] && (u += "; " + h, l[h] !== !0 && (u += "=" + l[h].split(";")[0]));
|
|
3679
|
+
return document.cookie = a + "=" + t.write(c, a) + u;
|
|
3680
|
+
}
|
|
3681
|
+
}
|
|
3682
|
+
function r(a) {
|
|
3683
|
+
if (!(typeof document > "u" || arguments.length && !a)) {
|
|
3684
|
+
for (var c = document.cookie ? document.cookie.split("; ") : [], l = {}, u = 0; u < c.length; u++) {
|
|
3685
|
+
var h = c[u].split("="), p = h.slice(1).join("=");
|
|
3686
|
+
try {
|
|
3687
|
+
var m = decodeURIComponent(h[0]);
|
|
3688
|
+
if (l[m] = t.read(p, m), a === m)
|
|
3689
|
+
break;
|
|
3690
|
+
} catch {
|
|
3691
|
+
}
|
|
3692
|
+
}
|
|
3693
|
+
return a ? l[a] : l;
|
|
3694
|
+
}
|
|
3695
|
+
}
|
|
3696
|
+
return Object.create(
|
|
3697
|
+
{
|
|
3698
|
+
set: s,
|
|
3699
|
+
get: r,
|
|
3700
|
+
remove: function(a, c) {
|
|
3701
|
+
s(
|
|
3702
|
+
a,
|
|
3703
|
+
"",
|
|
3704
|
+
ne({}, c, {
|
|
3705
|
+
expires: -1
|
|
3706
|
+
})
|
|
3707
|
+
);
|
|
3708
|
+
},
|
|
3709
|
+
withAttributes: function(a) {
|
|
3710
|
+
return Ne(this.converter, ne({}, this.attributes, a));
|
|
3711
|
+
},
|
|
3712
|
+
withConverter: function(a) {
|
|
3713
|
+
return Ne(ne({}, this.converter, a), this.attributes);
|
|
3714
|
+
}
|
|
3715
|
+
},
|
|
3716
|
+
{
|
|
3717
|
+
attributes: { value: Object.freeze(e) },
|
|
3718
|
+
converter: { value: Object.freeze(t) }
|
|
3719
|
+
}
|
|
3720
|
+
);
|
|
3721
|
+
}
|
|
3722
|
+
var Be = Ne(tn, { path: "/" });
|
|
3723
|
+
const en = ({ className: t }) => {
|
|
3724
|
+
const { t: e } = gt(), { loginUrl: s } = he(), r = n.useRef(null);
|
|
3725
|
+
return n.useEffect(() => {
|
|
3726
|
+
const a = Be.get("shouldLogin"), c = !!a && !!atob(a);
|
|
3727
|
+
r != null && r.current && c && (Be.remove("shouldLogin"), r.current.click());
|
|
3728
|
+
}, [r]), /* @__PURE__ */ i.jsxs(
|
|
3729
|
+
"a",
|
|
3730
|
+
{
|
|
3731
|
+
ref: r,
|
|
3732
|
+
href: s,
|
|
3733
|
+
className: N(
|
|
3734
|
+
"button",
|
|
3735
|
+
"button--neutral",
|
|
3736
|
+
"button--authentication",
|
|
3737
|
+
"button--authentication--unauthenticated",
|
|
3738
|
+
t
|
|
3739
|
+
),
|
|
3740
|
+
children: [
|
|
3741
|
+
/* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Os, { width: 24, height: 24, suffix: "desktop" }) }),
|
|
3742
|
+
/* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("login") }),
|
|
3743
|
+
/* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Fe, {}) })
|
|
3744
|
+
]
|
|
3745
|
+
}
|
|
3746
|
+
);
|
|
3747
|
+
}, sn = () => {
|
|
3748
|
+
const { t } = gt(), { loginUrl: e } = he(), s = us(), { position: r } = qs();
|
|
3749
|
+
return /* @__PURE__ */ i.jsxs(
|
|
3750
|
+
$,
|
|
3751
|
+
{
|
|
3752
|
+
type: "nav",
|
|
3753
|
+
id: "xtra-menu",
|
|
3754
|
+
position: r,
|
|
3755
|
+
className: "menu--unauthenticated",
|
|
3756
|
+
"aria-label": t("xtraMenuAriaLabel"),
|
|
3757
|
+
children: [
|
|
3758
|
+
/* @__PURE__ */ i.jsx($.Trigger, { className: N("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ i.jsxs("button", { children: [
|
|
3759
|
+
/* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Os, { width: 24, height: 24, suffix: "mobile" }) }),
|
|
3760
|
+
/* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Fe, {}) })
|
|
3761
|
+
] }) }),
|
|
3762
|
+
/* @__PURE__ */ i.jsxs($.Content, { children: [
|
|
3763
|
+
/* @__PURE__ */ i.jsx($.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: e, className: "button button--with-icon", children: [
|
|
3764
|
+
/* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Jr, {}) }),
|
|
3765
|
+
/* @__PURE__ */ i.jsx("span", { className: "button__label", children: t("login") })
|
|
3766
|
+
] }) }),
|
|
3767
|
+
/* @__PURE__ */ i.jsx($.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
|
|
3768
|
+
/* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(ni, {}) }),
|
|
3769
|
+
/* @__PURE__ */ i.jsx("span", { className: "button__label", children: t("register") })
|
|
3770
|
+
] }) })
|
|
3771
|
+
] })
|
|
3772
|
+
]
|
|
3773
|
+
}
|
|
3774
|
+
);
|
|
3775
|
+
}, rn = () => {
|
|
3776
|
+
var e, s;
|
|
3777
|
+
const t = $s();
|
|
3778
|
+
return ((e = t.data) == null ? void 0 : e.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ i.jsx(Ii, {}) : ((s = t.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || t.isError ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
3779
|
+
/* @__PURE__ */ i.jsx(en, {}),
|
|
3780
|
+
/* @__PURE__ */ i.jsx(sn, {})
|
|
3781
|
+
] }) : /* @__PURE__ */ i.jsx(Bi, {});
|
|
3782
|
+
}, Zs = () => {
|
|
3783
|
+
const { apiUrl: t } = Et();
|
|
3784
|
+
return `${`${t}/xtra`}/authentication/v1/gdpr`;
|
|
3785
|
+
}, nn = () => {
|
|
3786
|
+
const { i18n: t } = gt(), e = Zs(), { country: s, bouHeaders: r } = Et(), a = new bs();
|
|
3787
|
+
return Or({
|
|
3788
|
+
mutationFn: async (l) => {
|
|
3789
|
+
const u = Ae(t.language, s), h = await fetch(`${e}/tc`, {
|
|
3790
|
+
body: JSON.stringify({ acceptedTC: l }),
|
|
3791
|
+
credentials: "include",
|
|
3792
|
+
headers: {
|
|
3793
|
+
"Content-Type": "application/json",
|
|
3794
|
+
"Accept-Language": u,
|
|
3795
|
+
...r
|
|
3796
|
+
},
|
|
3797
|
+
method: "POST",
|
|
3798
|
+
mode: "cors"
|
|
3799
|
+
});
|
|
3800
|
+
if (!h.ok)
|
|
3801
|
+
throw new Error("Network response was not ok");
|
|
3802
|
+
return h;
|
|
3803
|
+
},
|
|
3804
|
+
onSuccess: async () => {
|
|
3805
|
+
await a.invalidateQueries({ queryKey: ["gdpr"] });
|
|
3806
|
+
}
|
|
3807
|
+
});
|
|
3808
|
+
}, an = () => {
|
|
3809
|
+
var u;
|
|
3810
|
+
const { i18n: t } = gt(), e = Zs(), { country: s, bouHeaders: r } = Et(), c = ((u = $s().data) == null ? void 0 : u.authenticationStatus) === "Authenticated";
|
|
3811
|
+
return _s({
|
|
3812
|
+
queryKey: ["gdpr"],
|
|
3813
|
+
queryFn: async () => {
|
|
3814
|
+
const h = Ae(t.language, s), p = await fetch(`${e}/tc/check`, {
|
|
3815
|
+
credentials: "include",
|
|
3816
|
+
mode: "cors",
|
|
3817
|
+
headers: { "Accept-Language": h, ...r }
|
|
3818
|
+
});
|
|
3819
|
+
if (!p.ok)
|
|
3820
|
+
throw new Error("Network response was not ok");
|
|
3821
|
+
return p.status === 204 ? [] : await p.json();
|
|
3822
|
+
},
|
|
3823
|
+
enabled: c
|
|
3824
|
+
});
|
|
3825
|
+
}, on = () => {
|
|
3826
|
+
var C;
|
|
3827
|
+
const { t } = gt(), { logoutUrl: e } = he(), [s, r] = n.useState(0), [a, c] = n.useState({}), { AccessibleFormMessage: l, formRef: u } = Is({ submitCount: s, errors: a }), { mutate: h, isError: p } = nn(), m = an(), [d, x] = n.useState(!1);
|
|
3828
|
+
Bs({ element: "xtra-authentication" });
|
|
3829
|
+
const g = t("termsAndConditions.error.required"), k = () => {
|
|
3830
|
+
x(!1), document.body.style.removeProperty("overflow");
|
|
3831
|
+
};
|
|
3832
|
+
n.useEffect(() => {
|
|
3833
|
+
var S;
|
|
3834
|
+
(S = m.data) != null && S.length && x(!0);
|
|
3835
|
+
}, [(C = m.data) == null ? void 0 : C.length]), n.useEffect(() => {
|
|
3836
|
+
d && document.body.style.setProperty("overflow", "hidden");
|
|
3837
|
+
}, [d]), n.useEffect(() => {
|
|
3838
|
+
p && c({ acceptedTC: g });
|
|
3839
|
+
}, [g, p]);
|
|
3840
|
+
const v = (S) => {
|
|
3841
|
+
S.preventDefault(), r((P) => P + 1);
|
|
3842
|
+
const { acceptedTC: E } = S.target;
|
|
3843
|
+
if (E instanceof RadioNodeList) {
|
|
3844
|
+
const P = Object.values(E);
|
|
3845
|
+
P.every((F) => F.checked) ? (c({}), h(P.map((F) => F.value)), k()) : c({ acceptedTC: g });
|
|
3846
|
+
} else
|
|
3847
|
+
E != null && E.checked ? (c({}), h([E.value]), k()) : c({ acceptedTC: g });
|
|
3848
|
+
};
|
|
3849
|
+
return d ? /* @__PURE__ */ i.jsxs(W, { defaultOpen: d, isModal: !0, children: [
|
|
3850
|
+
l,
|
|
3851
|
+
/* @__PURE__ */ i.jsxs(W.Root, { children: [
|
|
3852
|
+
/* @__PURE__ */ i.jsx(W.Header, { children: /* @__PURE__ */ i.jsx(W.Title, { icon: /* @__PURE__ */ i.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ i.jsx(hn, { children: t("termsAndConditions.title") }) }) }),
|
|
3853
|
+
/* @__PURE__ */ i.jsx(W.Body, { children: /* @__PURE__ */ i.jsxs(Xs, { ref: u, id: "tc-form", onSubmit: v, children: [
|
|
3854
|
+
/* @__PURE__ */ i.jsxs(cn, { children: [
|
|
3855
|
+
t("termsAndConditions.description"),
|
|
3856
|
+
a.acceptedTC && /* @__PURE__ */ i.jsx(dn, { children: g })
|
|
3857
|
+
] }),
|
|
3858
|
+
m.data.map(({ tcCode: S, title: E, URL: P }) => /* @__PURE__ */ i.jsx(
|
|
3859
|
+
Nt,
|
|
3860
|
+
{
|
|
3861
|
+
id: S,
|
|
3862
|
+
value: S,
|
|
3863
|
+
name: "acceptedTC",
|
|
3864
|
+
variant: "primary",
|
|
3865
|
+
children: /* @__PURE__ */ i.jsxs(Nt.Content, { children: [
|
|
3866
|
+
/* @__PURE__ */ i.jsx(ln, { children: E }),
|
|
3867
|
+
/* @__PURE__ */ i.jsx(un, { href: P, children: t("termsAndConditions.action", { title: E }) })
|
|
3868
|
+
] })
|
|
3869
|
+
},
|
|
3870
|
+
S
|
|
3871
|
+
))
|
|
3872
|
+
] }) }),
|
|
3873
|
+
/* @__PURE__ */ i.jsxs(W.Footer, { children: [
|
|
3874
|
+
/* @__PURE__ */ i.jsx(
|
|
3875
|
+
"a",
|
|
3876
|
+
{
|
|
3877
|
+
className: N("button", "button--secondary", "button--terms-and-conditions"),
|
|
3878
|
+
href: e,
|
|
3879
|
+
children: t("logout")
|
|
3880
|
+
}
|
|
3881
|
+
),
|
|
3882
|
+
/* @__PURE__ */ i.jsx(At, { form: "tc-form", type: "submit", variant: "primary", children: t("confirm") })
|
|
3883
|
+
] })
|
|
3884
|
+
] })
|
|
3885
|
+
] }) : null;
|
|
3886
|
+
}, ln = ({
|
|
3887
|
+
children: t,
|
|
3888
|
+
...e
|
|
3889
|
+
}) => /* @__PURE__ */ i.jsx(Nt.Label, { className: "form--tc__label", ...e, children: t }), Xs = n.forwardRef(({ children: t, ...e }, s) => /* @__PURE__ */ i.jsx("form", { className: "form--tc", ref: s, ...e, children: t }));
|
|
3890
|
+
Xs.displayName = "TermsAndConditionsForm";
|
|
3891
|
+
const cn = ({
|
|
3892
|
+
children: t,
|
|
3893
|
+
...e
|
|
3894
|
+
}) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...e, children: t }), un = ({ children: t, ...e }) => /* @__PURE__ */ i.jsx(
|
|
3895
|
+
"a",
|
|
3896
|
+
{
|
|
3897
|
+
className: "form--tc__link",
|
|
3898
|
+
target: "_blank",
|
|
3899
|
+
rel: "noreferrer",
|
|
3900
|
+
role: "button",
|
|
3901
|
+
download: !0,
|
|
3902
|
+
...e,
|
|
3903
|
+
children: t
|
|
3904
|
+
}
|
|
3905
|
+
), hn = ({ children: t }) => /* @__PURE__ */ i.jsx("h1", { className: "form--tc__title", children: t }), dn = ({ children: t, ...e }) => /* @__PURE__ */ i.jsx("span", { className: "form--tc__error", role: "alert", ...e, children: t }), fn = new bs(), yn = ({
|
|
3906
|
+
environment: t,
|
|
3907
|
+
redirectUrl: e,
|
|
3908
|
+
apiUrl: s,
|
|
3909
|
+
authUrl: r,
|
|
3910
|
+
position: a,
|
|
3911
|
+
commerceId: c,
|
|
3912
|
+
bouMenuItems: l,
|
|
3913
|
+
menuItemsToHide: u,
|
|
3914
|
+
bouHeaders: h,
|
|
3915
|
+
country: p
|
|
3916
|
+
}) => /* @__PURE__ */ i.jsx(tr, { environment: t, children: /* @__PURE__ */ i.jsx(er, { commerceId: c, children: /* @__PURE__ */ i.jsx(
|
|
3917
|
+
Zi,
|
|
3918
|
+
{
|
|
3919
|
+
apiUrl: s,
|
|
3920
|
+
authUrl: r,
|
|
3921
|
+
country: p,
|
|
3922
|
+
redirectUrl: e,
|
|
3923
|
+
bouHeaders: h,
|
|
3924
|
+
children: /* @__PURE__ */ i.jsxs(br, { client: fn, children: [
|
|
3925
|
+
/* @__PURE__ */ i.jsx(
|
|
3926
|
+
Xi,
|
|
3927
|
+
{
|
|
3928
|
+
position: a,
|
|
3929
|
+
bouMenuItems: l,
|
|
3930
|
+
menuItemsToHide: u,
|
|
3931
|
+
children: /* @__PURE__ */ i.jsx(rn, {})
|
|
3932
|
+
}
|
|
3933
|
+
),
|
|
3934
|
+
/* @__PURE__ */ i.jsx(on, {})
|
|
3935
|
+
] })
|
|
3936
|
+
}
|
|
3937
|
+
) }) });
|
|
3938
|
+
export {
|
|
3939
|
+
yn as default
|
|
3940
|
+
};
|