@myxtra/authentication-green 2.24.0 → 2.25.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-DQnSWvAh.js → App-DPuEWLjF.js} +1175 -1129
- package/dist/{Categoriesbaby-I5xHdl9w.js → Categoriesbaby-DOC_ZuHD.js} +1 -1
- package/dist/{Categoriesbakery-Dodl4IW-.js → Categoriesbakery-DlKcDPmz.js} +1 -1
- package/dist/{Categoriesbbq-CuND2IkF.js → Categoriesbbq-Q-bgGly5.js} +1 -1
- package/dist/{Categoriesbreakfast-CJ92V58W.js → Categoriesbreakfast-Bll-Mi7n.js} +1 -1
- package/dist/{Categoriesbrik-BLef2C42.js → Categoriesbrik-BqUGdrqy.js} +1 -1
- package/dist/{Categoriescandy-Cstf0HVh.js → Categoriescandy-s7ExjVVD.js} +1 -1
- package/dist/{Categoriescar-0OQA7MoZ.js → Categoriescar-B9uBCkgM.js} +1 -1
- package/dist/{Categoriescarandbike-gRMH7JKc.js → Categoriescarandbike--nmwHcRo.js} +1 -1
- package/dist/{Categorieschild-D2Vel6rp.js → Categorieschild-CzSnX2sP.js} +1 -1
- package/dist/{Categoriescigarette-B0sjQB5z.js → Categoriescigarette-Bwsle8MH.js} +1 -1
- package/dist/{Categoriescleaning-DJL45Lyn.js → Categoriescleaning-Cgk6SII3.js} +1 -1
- package/dist/{Categoriesclothing-DHZyRvL4.js → Categoriesclothing-coxlXs5I.js} +1 -1
- package/dist/{Categoriesconserve-BIH5Lpz6.js → Categoriesconserve-DAVg_yOJ.js} +1 -1
- package/dist/{Categoriesdairy-C3LoQO3l.js → Categoriesdairy-zA59DtKo.js} +1 -1
- package/dist/{Categoriesdeskandtravel-CI-04NhO.js → Categoriesdeskandtravel-Y6qbY73Z.js} +1 -1
- package/dist/{Categoriesdiet-DWPmNr28.js → Categoriesdiet-CVom5yc8.js} +1 -1
- package/dist/{Categoriesdryfood-UG_AU0oi.js → Categoriesdryfood-Cgp3gROJ.js} +1 -1
- package/dist/{Categorieseaster-B4myFhLT.js → Categorieseaster-C_hvclRo.js} +1 -1
- package/dist/{Categoriesenergy-8mPnA7SL.js → Categoriesenergy-C1OLAInr.js} +1 -1
- package/dist/{Categoriesfish-DMYULEfH.js → Categoriesfish-B1P-U203.js} +1 -1
- package/dist/{Categoriesfood-oqhL_umF.js → Categoriesfood-B7aSTjZ2.js} +1 -1
- package/dist/{Categoriesfreezer-DBomAT-Y.js → Categoriesfreezer-wGYA4amT.js} +1 -1
- package/dist/{Categoriesfuel-Cmgtcl8s.js → Categoriesfuel-DMuPgsYf.js} +1 -1
- package/dist/{Categoriesgranen-CqMXeQQ5.js → Categoriesgranen-CEJ4rlK1.js} +1 -1
- package/dist/{Categoriesgrid-CqiDzEgE.js → Categoriesgrid-C0W01uYu.js} +1 -1
- package/dist/{Categorieshome-bH3fWx_J.js → Categorieshome-C6vMWaOG.js} +1 -1
- package/dist/{Categorieshygiene-CZgCN1bJ.js → Categorieshygiene-ZpQoIN9G.js} +1 -1
- package/dist/{Categoriesmealbox-Dac6Bt2o.js → Categoriesmealbox-BD9Kn9-E.js} +1 -1
- package/dist/{Categoriesmeat-gC1ZL79L.js → Categoriesmeat-DDETfqmu.js} +1 -1
- package/dist/{Categoriesmultimedia-Do0cP7RM.js → Categoriesmultimedia-CZFXqlpM.js} +1 -1
- package/dist/{Categoriesnonfood-DKQcgLZ1.js → Categoriesnonfood-B0tE2q3x.js} +1 -1
- package/dist/{Categoriesonlinepromo-CnCGps1T.js → Categoriesonlinepromo-CGrJ1dFa.js} +1 -1
- package/dist/{Categoriesparty-DKbWSYL8.js → Categoriesparty-COfKidN_.js} +1 -1
- package/dist/{Categoriespets-1Y9Xon50.js → Categoriespets-D44FbzNo.js} +1 -1
- package/dist/{Categoriesplaceholder-DMrcCrfG.js → Categoriesplaceholder-Du7e9lT9.js} +1 -1
- package/dist/{Categoriespuzzle-CzXkJk5y.js → Categoriespuzzle-CU4-hHQf.js} +1 -1
- package/dist/{Categoriessnacks-Blwdxo9H.js → Categoriessnacks-9KlAVhfs.js} +1 -1
- package/dist/{Categoriessoda-NQRsgFxQ.js → Categoriessoda--eBylTkI.js} +1 -1
- package/dist/{Categoriessportfood-DCJJNBTM.js → Categoriessportfood-B5to0ViF.js} +1 -1
- package/dist/{Categoriestins-DbOOUDAT.js → Categoriestins-TYY6cP6b.js} +1 -1
- package/dist/{Categoriestoyandhobby-BW2aWZjG.js → Categoriestoyandhobby-O8FK-93I.js} +1 -1
- package/dist/{Categoriestoys-BpIS_w_W.js → Categoriestoys-XHM0bIMT.js} +1 -1
- package/dist/{Categoriesvegetables-6u7dZHNo.js → Categoriesvegetables-DaKG4WyY.js} +1 -1
- package/dist/{Categorieswine-BOfezc50.js → Categorieswine-CM7b6_wY.js} +1 -1
- package/dist/{Fueladblue-DMXYT_Te.js → Fueladblue-CWKC7nWX.js} +1 -1
- package/dist/{Fuelb7-BuQ2Ap0u.js → Fuelb7-COtNdcwF.js} +1 -1
- package/dist/{Fuelcng-CwjuId4d.js → Fuelcng-Br2q0gYk.js} +1 -1
- package/dist/{Fuele10-DdFSQ1CP.js → Fuele10-DMzfbJCG.js} +1 -1
- package/dist/{Fuele5-B4GGoX7I.js → Fuele5-CMQmD4bT.js} +1 -1
- package/dist/{Fuelfreetireinflation-R2eBmxGf.js → Fuelfreetireinflation-DzBsqU-g.js} +1 -1
- package/dist/{Fuelh2-ryEnQiyY.js → Fuelh2-C-vqmw6E.js} +1 -1
- package/dist/{Functional18plus-scE_b2vU.js → Functional18plus-B81lw15R.js} +1 -1
- package/dist/{Functionalaccount-BxIWFmNH.js → Functionalaccount-DqT61ODm.js} +1 -1
- package/dist/{Functionaladdtolist-DsSFGx9d.js → Functionaladdtolist-CZ9Ksc1A.js} +1 -1
- package/dist/{Functionaladduser-BOvhKNKg.js → Functionaladduser-BzojG3wi.js} +1 -1
- package/dist/{Functionalalphabeta-DXADcLhE.js → Functionalalphabeta-D3FJdeE_.js} +1 -1
- package/dist/{Functionalback-B-ViXW5g.js → Functionalback-65zmCDjv.js} +1 -1
- package/dist/{Functionalbarcode-Dr9l98V3.js → Functionalbarcode-BXdG8kp_.js} +1 -1
- package/dist/{Functionalblock-BvGUVqkB.js → Functionalblock-CRxUyFK_.js} +1 -1
- package/dist/{Functionalbox-CKax9Iwz.js → Functionalbox-oU3IgVn9.js} +1 -1
- package/dist/{Functionalcalendar-CaATtEwR.js → Functionalcalendar-Dhh0tAw2.js} +1 -1
- package/dist/{Functionalcamera-Bjl8z3U7.js → Functionalcamera-N-SlPHXY.js} +1 -1
- package/dist/{Functionalcartcheckout-AOYbifJf.js → Functionalcartcheckout-B6YJdY9L.js} +1 -1
- package/dist/{Functionalcartedit-fAQ0GbKt.js → Functionalcartedit-Cj1VScM8.js} +1 -1
- package/dist/{Functionalcheck-0xfD7i0e.js → Functionalcheck-DjBNO3ZV.js} +1 -1
- package/dist/{Functionalchecklist-BEqIATSY.js → Functionalchecklist-B4m95zLI.js} +1 -1
- package/dist/{Functionalchevrondown-Da8v_-Xy.js → Functionalchevrondown-DeSU4dRJ.js} +1 -1
- package/dist/{Functionalchevronright-9PNBfmAy.js → Functionalchevronright-BAgIHLVE.js} +1 -1
- package/dist/{Functionalchevronup-Bl3h_BTh.js → Functionalchevronup-DBO2vYde.js} +1 -1
- package/dist/{Functionalclock-C6P-puKi.js → Functionalclock-DCj8T-TL.js} +1 -1
- package/dist/{Functionalclose-CI-j5QYx.js → Functionalclose-SvauYhlX.js} +1 -1
- package/dist/{Functionalcommunications-B9_qEryC.js → Functionalcommunications-C8YqPxtA.js} +1 -1
- package/dist/{Functionalconnecteddevice-BVZJK-uO.js → Functionalconnecteddevice-BIOGt9T7.js} +1 -1
- package/dist/{Functionalconnectioncable-BGtkmMmp.js → Functionalconnectioncable-w9NoRv6P.js} +1 -1
- package/dist/{Functionalcookies-Ba1n4Mss.js → Functionalcookies-DrA35JlA.js} +1 -1
- package/dist/{Functionalcopy-C9HL5fcQ.js → Functionalcopy-qsj6Sd_B.js} +1 -1
- package/dist/{Functionalcustomerservice-Bxk9rIGC.js → Functionalcustomerservice-CQI2QALG.js} +1 -1
- package/dist/{Functionaldeliveryaddresses-DmscZIgy.js → Functionaldeliveryaddresses-Dqsm7S0r.js} +1 -1
- package/dist/{Functionaldiscount-D8eE6-BB.js → Functionaldiscount-CKUohULp.js} +1 -1
- package/dist/{Functionaldiscountcode-CKRybXeb.js → Functionaldiscountcode-BujJ9fa-.js} +1 -1
- package/dist/{Functionaldownload-B0FxxpqV.js → Functionaldownload-DGL6wvbc.js} +1 -1
- package/dist/{Functionaldrycleaning-BHkGCmdB.js → Functionaldrycleaning-BmNCIeVg.js} +1 -1
- package/dist/{Functionalecoearth-v-oIubGX.js → Functionalecoearth-33syfFhq.js} +1 -1
- package/dist/{Functionaledit-DuvYz0E1.js → Functionaledit-nAKG-jtF.js} +1 -1
- package/dist/{Functionalellipsis-BTlUiC01.js → Functionalellipsis-rkPSk_7T.js} +1 -1
- package/dist/{Functionalerrorcircle-1bgJvZCJ.js → Functionalerrorcircle-DwfBkoo9.js} +1 -1
- package/dist/{Functionalerrorcirclefilled-Cyl0PEmH.js → Functionalerrorcirclefilled-De_EU8HW.js} +1 -1
- package/dist/{Functionaleuro-Bl170Yy9.js → Functionaleuro-BI6ILaM6.js} +1 -1
- package/dist/{Functionalexit-BzSIEsis.js → Functionalexit-BeqXCGyO.js} +1 -1
- package/dist/{Functionalexport-CMivJPzQ.js → Functionalexport-NFQBBSsl.js} +1 -1
- package/dist/{Functionalexternallink-bQO634-P.js → Functionalexternallink-Cr7o00YG.js} +1 -1
- package/dist/{Functionaleyehidden-CIWyRXYm.js → Functionaleyehidden-XFztxAqt.js} +1 -1
- package/dist/{Functionaleyeshow-aHbAIGdU.js → Functionaleyeshow-M5l96mSk.js} +1 -1
- package/dist/{Functionalfilter-e3wcX8PF.js → Functionalfilter-BEr-iVYT.js} +1 -1
- package/dist/{Functionalfirstadded-_1QL39HZ.js → Functionalfirstadded-Vuk8GbmF.js} +1 -1
- package/dist/{Functionalgift-DQL6k0AS.js → Functionalgift-ClwjUOOI.js} +1 -1
- package/dist/{Functionalhistory-CF6Gjp4_.js → Functionalhistory-OGfyFFrW.js} +1 -1
- package/dist/{Functionalidea-hCg-TuUA.js → Functionalidea-i0AnV9bM.js} +1 -1
- package/dist/{Functionalinappnotifications-Bo2poQZW.js → Functionalinappnotifications-Du98xnRa.js} +1 -1
- package/dist/{Functionalkiosk-Dvucjtfx.js → Functionalkiosk-DfzJl9fT.js} +1 -1
- package/dist/{Functionallastadded-mBjd5gIy.js → Functionallastadded-DDfGtuJj.js} +1 -1
- package/dist/{Functionallifestyle-BHAOHsgr.js → Functionallifestyle-D0zANQKA.js} +1 -1
- package/dist/{Functionallist-CaSpBUgE.js → Functionallist-BUDxBJzZ.js} +1 -1
- package/dist/{Functionalloading-on5DzDap.js → Functionalloading-CavVSi4g.js} +1 -1
- package/dist/{Functionallocate-DQ6rQdxn.js → Functionallocate-DASXvdyv.js} +1 -1
- package/dist/{Functionallocation-BTy2kqO7.js → Functionallocation-DWikU6y0.js} +1 -1
- package/dist/{Functionallocationhome-C7vPP0GV.js → Functionallocationhome-HAeap-7B.js} +1 -1
- package/dist/{Functionallocationpickup-GubaVmlM.js → Functionallocationpickup-bMUAciNO.js} +1 -1
- package/dist/{Functionallogin-Dfh7lhIz.js → Functionallogin-CmgPHsDj.js} +1 -1
- package/dist/{Functionallogout-BIcVMKhx.js → Functionallogout-WQObFXNd.js} +1 -1
- package/dist/{Functionalmail-B3WSyK2s.js → Functionalmail-B60xLcCZ.js} +1 -1
- package/dist/{Functionalmaplocation-N4zQmkF-.js → Functionalmaplocation-Ddte5L2w.js} +1 -1
- package/dist/{Functionalmenu-FzIVn08W.js → Functionalmenu-Bx_SglRU.js} +1 -1
- package/dist/{Functionalmessage-D0Vk4_U7.js → Functionalmessage-DilW_ij4.js} +1 -1
- package/dist/{Functionalmessagefield-ChSO6WJY.js → Functionalmessagefield-B8kLFGcI.js} +1 -1
- package/dist/{Functionalminus-BfCiQnXQ.js → Functionalminus-C5lvaL_b.js} +1 -1
- package/dist/{Functionalmobilepay-zdjQX0Lt.js → Functionalmobilepay-BxlW6L3v.js} +1 -1
- package/dist/{Functionalmultifactorauthenticator-BTONF6bR.js → Functionalmultifactorauthenticator-C6Tcg6Qg.js} +1 -1
- package/dist/{Functionalnews-BKRxSPba.js → Functionalnews-DMnYtnSA.js} +1 -1
- package/dist/{Functionalnext-Cur-yTJK.js → Functionalnext-Bob1Pr0g.js} +1 -1
- package/dist/{Functionalnoconnection-DOvE_mzo.js → Functionalnoconnection-DSSSbv77.js} +1 -1
- package/dist/{Functionalnumber-vTcTQCi_.js → Functionalnumber-8Wrw3uLm.js} +1 -1
- package/dist/{Functionalother-CsIv_cV9.js → Functionalother-bYOLLWCL.js} +1 -1
- package/dist/{Functionalpack-CkEXVbSj.js → Functionalpack-Do-NA_x_.js} +1 -1
- package/dist/{Functionalpassword-D0BxVXNC.js → Functionalpassword-GcFWOzh2.js} +1 -1
- package/dist/{Functionalpercentage-BLNFYIhj.js → Functionalpercentage-3yrkVSoK.js} +1 -1
- package/dist/{Functionalphone-BiXABMI7.js → Functionalphone-9_RSyOs2.js} +1 -1
- package/dist/{Functionalpiece-D4UwG_9D.js → Functionalpiece-CgSk4m1N.js} +1 -1
- package/dist/{Functionalpinoutlines-D5ZS1hvq.js → Functionalpinoutlines-DbEZE0Er.js} +1 -1
- package/dist/{Functionalplus-BLj_Gh_c.js → Functionalplus-BMLtPBNt.js} +1 -1
- package/dist/{Functionalpluscircle-BPG0YWGF.js → Functionalpluscircle-D76QYMjT.js} +1 -1
- package/dist/{Functionalpresent-CprAynbW.js → Functionalpresent-3FK5CWtG.js} +1 -1
- package/dist/{Functionalprivacy-CgAg3mHt.js → Functionalprivacy-CnxNCyYe.js} +1 -1
- package/dist/{Functionalpushnotifications-9yitl6Mk.js → Functionalpushnotifications-ZbsCkM4x.js} +1 -1
- package/dist/{Functionalquestioncircle-C48HItuy.js → Functionalquestioncircle-Cftll_73.js} +1 -1
- package/dist/{Functionalquestioncirclefilled-qWTMhRII.js → Functionalquestioncirclefilled-G6C3OXhy.js} +1 -1
- package/dist/{Functionalreadtime-DNrO95y3.js → Functionalreadtime-BoaOLxTp.js} +1 -1
- package/dist/{Functionalregister-C0pEFKgd.js → Functionalregister-BzKRIHjE.js} +1 -1
- package/dist/{Functionalreset-CkSuR2ui.js → Functionalreset-BgaOxpGO.js} +1 -1
- package/dist/{Functionalsave-C_juXQcb.js → Functionalsave-DeVoLFQI.js} +1 -1
- package/dist/{Functionalsearch-BWGklad5.js → Functionalsearch-BUqLRPrC.js} +1 -1
- package/dist/{Functionalsettings-CEvUHOa7.js → Functionalsettings-Do2O1RWt.js} +1 -1
- package/dist/{Functionalshare-BOaYnkgq.js → Functionalshare-BmrBMkpy.js} +1 -1
- package/dist/{Functionalshared-DNhv_0TC.js → Functionalshared-VfUrrErw.js} +1 -1
- package/dist/{Functionalshoppingcart-BJl_Vxid.js → Functionalshoppingcart-DDw_7_qV.js} +1 -1
- package/dist/{Functionalshops-CG5XCtEl.js → Functionalshops-BG2L4Btd.js} +1 -1
- package/dist/{Functionalsms-B5OOi9qN.js → Functionalsms-DyKuC8x0.js} +1 -1
- package/dist/{Functionalsorting-D_0ci3tJ.js → Functionalsorting-BUoVYHkd.js} +1 -1
- package/dist/{Functionalspinner-DJZUYK1k.js → Functionalspinner-C8l-CpJr.js} +1 -1
- package/dist/{Functionalstorelayout-D5YWOPb_.js → Functionalstorelayout-D-nnmpSE.js} +1 -1
- package/dist/{Functionalsuccesscircle-DLEuHWjS.js → Functionalsuccesscircle-B8876_by.js} +1 -1
- package/dist/{Functionalsuccesscirclefilled-DyOQixIy.js → Functionalsuccesscirclefilled-CjadKbr-.js} +1 -1
- package/dist/{Functionalswap-CgF3_6Wd.js → Functionalswap-NnOocHex.js} +1 -1
- package/dist/{Functionalswitch-Bz1vs2A_.js → Functionalswitch-BMpBzGz-.js} +1 -1
- package/dist/{Functionalthumbsup-BG36KKc1.js → Functionalthumbsup-Cp04whsE.js} +1 -1
- package/dist/{Functionaltimer-DmFG43lk.js → Functionaltimer-BOFmpLXr.js} +1 -1
- package/dist/{Functionaltrash-BMwR36aB.js → Functionaltrash-PF-S35vQ.js} +1 -1
- package/dist/{Functionaltruck-CaH_nQ64.js → Functionaltruck-8WEeF31a.js} +1 -1
- package/dist/{Functionaluserinfo-Cx1_xL3T.js → Functionaluserinfo-DTNeyMuA.js} +1 -1
- package/dist/{Functionalviewfile-C58B73Lb.js → Functionalviewfile-BDO_K-MF.js} +1 -1
- package/dist/{Functionalwarningcircle-pOEndtZ-.js → Functionalwarningcircle-BhHk8Bz7.js} +1 -1
- package/dist/{Functionalwarningcirclefilled-CP84hI9s.js → Functionalwarningcirclefilled-D94wyNTu.js} +1 -1
- package/dist/{Functionalwebsite-DyiIYpxW.js → Functionalwebsite-IHjtSmP7.js} +1 -1
- package/dist/{Functionalweight-C1mGn7Se.js → Functionalweight-BuRYas11.js} +1 -1
- package/dist/{Toolsassortment-BxyAxLRQ.js → Toolsassortment-DGrdhFWU.js} +1 -1
- package/dist/{Toolscoupons-CqVPx1MK.js → Toolscoupons-BUzx__00.js} +1 -1
- package/dist/{Toolsfavoriteactive-RaSxiYCY.js → Toolsfavoriteactive-CvN5omA7.js} +1 -1
- package/dist/{Toolsfavoriteinactive-B0TeN_7_.js → Toolsfavoriteinactive-D3sG2g4Z.js} +1 -1
- package/dist/{Toolsfuel-CmrAkp2P.js → Toolsfuel-5IAWOkr9.js} +1 -1
- package/dist/{Toolspay-BriKSnGr.js → Toolspay-C5-Tt34q.js} +1 -1
- package/dist/{Toolspromo-CVTausKm.js → Toolspromo-DmOGQ70t.js} +1 -1
- package/dist/{Toolsreceipt-BvS7DLGd.js → Toolsreceipt-BELd5rem.js} +1 -1
- package/dist/{Toolsrecipes2-CyUK8dyq.js → Toolsrecipes2-BqPmAjd3.js} +1 -1
- package/dist/{Toolsscan2-XG-pIpbK.js → Toolsscan2-DWDg-Y0e.js} +1 -1
- package/dist/{Toolsshowxtranew-BlMMztYk.js → Toolsshowxtranew-DTEadpWr.js} +1 -1
- package/dist/{Toolsshowxtraold-fQXI0f-R.js → Toolsshowxtraold-Ds2DBUAm.js} +1 -1
- package/dist/{Toolsstats-e0qoRydk.js → Toolsstats-Cis7TO3_.js} +1 -1
- package/dist/{Toolsstorelocator-BwCWqDdj.js → Toolsstorelocator-DCTcA8Ke.js} +1 -1
- package/dist/{Toolswarranty-DRi1kv80.js → Toolswarranty-CyaGyr9f.js} +1 -1
- package/dist/{index-DZSeWJVi.js → index-Dy-1g7rr.js} +711 -711
- package/dist/xtra-authentication.js +1 -1
- package/package.json +4 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ne = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var ne = (t, e, s) => e.has(t) ||
|
|
5
|
-
var o = (t, e, s) => (ne(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ?
|
|
6
|
-
var Yt = (t, e, s,
|
|
4
|
+
var ne = (t, e, s) => e.has(t) || Ne("Cannot " + s);
|
|
5
|
+
var o = (t, e, s) => (ne(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ? Ne("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), m = (t, e, s, r) => (ne(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), j = (t, e, s) => (ne(t, e, "access private method"), s);
|
|
6
|
+
var Yt = (t, e, s, r) => ({
|
|
7
7
|
set _(a) {
|
|
8
8
|
m(t, e, a, s);
|
|
9
9
|
},
|
|
10
10
|
get _() {
|
|
11
|
-
return o(t, e,
|
|
11
|
+
return o(t, e, r);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
import { r, j as n, u as
|
|
14
|
+
import { r as i, j as n, u as Vs, a as qs, b as pt, g as je, P as Le, c as rs, d as $s, e as Zs, E as Xs, C as Ys } from "./index-Dy-1g7rr.js";
|
|
15
15
|
var Ht = class {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
@@ -31,7 +31,7 @@ var Ht = class {
|
|
|
31
31
|
}, Qt = typeof window > "u" || "Deno" in globalThis;
|
|
32
32
|
function q() {
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Js(t, e) {
|
|
35
35
|
return typeof t == "function" ? t(e) : t;
|
|
36
36
|
}
|
|
37
37
|
function oe(t) {
|
|
@@ -46,20 +46,20 @@ function Pt(t, e) {
|
|
|
46
46
|
function X(t, e) {
|
|
47
47
|
return typeof t == "function" ? t(e) : t;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Me(t, e) {
|
|
50
50
|
const {
|
|
51
51
|
type: s = "all",
|
|
52
|
-
exact:
|
|
52
|
+
exact: r,
|
|
53
53
|
fetchStatus: a,
|
|
54
54
|
predicate: c,
|
|
55
55
|
queryKey: l,
|
|
56
56
|
stale: u
|
|
57
57
|
} = t;
|
|
58
58
|
if (l) {
|
|
59
|
-
if (
|
|
59
|
+
if (r) {
|
|
60
60
|
if (e.queryHash !== Se(l, e.options))
|
|
61
61
|
return !1;
|
|
62
|
-
} else if (!
|
|
62
|
+
} else if (!Gt(e.queryKey, l))
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
if (s !== "all") {
|
|
@@ -69,18 +69,18 @@ function Le(t, e) {
|
|
|
69
69
|
}
|
|
70
70
|
return !(typeof u == "boolean" && e.isStale() !== u || a && a !== e.state.fetchStatus || c && !c(e));
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
const { exact: s, status:
|
|
72
|
+
function Fe(t, e) {
|
|
73
|
+
const { exact: s, status: r, predicate: a, mutationKey: c } = t;
|
|
74
74
|
if (c) {
|
|
75
75
|
if (!e.options.mutationKey)
|
|
76
76
|
return !1;
|
|
77
77
|
if (s) {
|
|
78
78
|
if (wt(e.options.mutationKey) !== wt(c))
|
|
79
79
|
return !1;
|
|
80
|
-
} else if (!
|
|
80
|
+
} else if (!Gt(e.options.mutationKey, c))
|
|
81
81
|
return !1;
|
|
82
82
|
}
|
|
83
|
-
return !(
|
|
83
|
+
return !(r && e.state.status !== r || a && !a(e));
|
|
84
84
|
}
|
|
85
85
|
function Se(t, e) {
|
|
86
86
|
return ((e == null ? void 0 : e.queryKeyHashFn) || wt)(t);
|
|
@@ -88,22 +88,22 @@ function Se(t, e) {
|
|
|
88
88
|
function wt(t) {
|
|
89
89
|
return JSON.stringify(
|
|
90
90
|
t,
|
|
91
|
-
(e, s) => le(s) ? Object.keys(s).sort().reduce((
|
|
91
|
+
(e, s) => le(s) ? Object.keys(s).sort().reduce((r, a) => (r[a] = s[a], r), {}) : s
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !
|
|
94
|
+
function Gt(t, e) {
|
|
95
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !Gt(t[s], e[s])) : !1;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function ns(t, e) {
|
|
98
98
|
if (t === e)
|
|
99
99
|
return t;
|
|
100
|
-
const s =
|
|
100
|
+
const s = Re(t) && Re(e);
|
|
101
101
|
if (s || le(t) && le(e)) {
|
|
102
|
-
const
|
|
102
|
+
const r = s ? t : Object.keys(t), a = r.length, c = s ? e : Object.keys(e), l = c.length, u = s ? [] : {};
|
|
103
103
|
let d = 0;
|
|
104
104
|
for (let p = 0; p < l; p++) {
|
|
105
105
|
const f = s ? p : c[p];
|
|
106
|
-
(!s &&
|
|
106
|
+
(!s && r.includes(f) || s) && t[f] === void 0 && e[f] === void 0 ? (u[f] = void 0, d++) : (u[f] = ns(t[f], e[f]), u[f] === t[f] && t[f] !== void 0 && d++);
|
|
107
107
|
}
|
|
108
108
|
return a === l && d === a ? t : u;
|
|
109
109
|
}
|
|
@@ -117,42 +117,42 @@ function te(t, e) {
|
|
|
117
117
|
return !1;
|
|
118
118
|
return !0;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Re(t) {
|
|
121
121
|
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
122
122
|
}
|
|
123
123
|
function le(t) {
|
|
124
|
-
if (!
|
|
124
|
+
if (!Oe(t))
|
|
125
125
|
return !1;
|
|
126
126
|
const e = t.constructor;
|
|
127
127
|
if (e === void 0)
|
|
128
128
|
return !0;
|
|
129
129
|
const s = e.prototype;
|
|
130
|
-
return !(!
|
|
130
|
+
return !(!Oe(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Oe(t) {
|
|
133
133
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Is(t) {
|
|
136
136
|
return new Promise((e) => {
|
|
137
137
|
setTimeout(e, t);
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
function ce(t, e, s) {
|
|
141
|
-
return typeof s.structuralSharing == "function" ? s.structuralSharing(t, e) : s.structuralSharing !== !1 ?
|
|
141
|
+
return typeof s.structuralSharing == "function" ? s.structuralSharing(t, e) : s.structuralSharing !== !1 ? ns(t, e) : e;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
const
|
|
145
|
-
return s &&
|
|
143
|
+
function Bs(t, e, s = 0) {
|
|
144
|
+
const r = [...t, e];
|
|
145
|
+
return s && r.length > s ? r.slice(1) : r;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
const
|
|
149
|
-
return s &&
|
|
147
|
+
function tr(t, e, s = 0) {
|
|
148
|
+
const r = [e, ...t];
|
|
149
|
+
return s && r.length > s ? r.slice(0, -1) : r;
|
|
150
150
|
}
|
|
151
|
-
var
|
|
152
|
-
function
|
|
153
|
-
return !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
151
|
+
var as = Symbol();
|
|
152
|
+
function os(t, e) {
|
|
153
|
+
return !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === as ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
154
154
|
}
|
|
155
|
-
var mt, at, Et,
|
|
155
|
+
var mt, at, Et, $e, er = ($e = class extends Ht {
|
|
156
156
|
constructor() {
|
|
157
157
|
super();
|
|
158
158
|
v(this, mt);
|
|
@@ -176,8 +176,8 @@ var mt, at, Et, qe, Ys = (qe = class extends Ht {
|
|
|
176
176
|
}
|
|
177
177
|
setEventListener(e) {
|
|
178
178
|
var s;
|
|
179
|
-
m(this, Et, e), (s = o(this, at)) == null || s.call(this), m(this, at, e((
|
|
180
|
-
typeof
|
|
179
|
+
m(this, Et, e), (s = o(this, at)) == null || s.call(this), m(this, at, e((r) => {
|
|
180
|
+
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
181
181
|
}));
|
|
182
182
|
}
|
|
183
183
|
setFocused(e) {
|
|
@@ -193,7 +193,7 @@ var mt, at, Et, qe, Ys = (qe = class extends Ht {
|
|
|
193
193
|
var e;
|
|
194
194
|
return typeof o(this, mt) == "boolean" ? o(this, mt) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
195
195
|
}
|
|
196
|
-
}, mt = new WeakMap(), at = new WeakMap(), Et = new WeakMap(),
|
|
196
|
+
}, mt = new WeakMap(), at = new WeakMap(), Et = new WeakMap(), $e), _e = new er(), kt, ot, At, Ze, sr = (Ze = class extends Ht {
|
|
197
197
|
constructor() {
|
|
198
198
|
super();
|
|
199
199
|
v(this, kt, !0);
|
|
@@ -201,9 +201,9 @@ var mt, at, Et, qe, Ys = (qe = class extends Ht {
|
|
|
201
201
|
v(this, At);
|
|
202
202
|
m(this, At, (e) => {
|
|
203
203
|
if (!Qt && window.addEventListener) {
|
|
204
|
-
const s = () => e(!0),
|
|
205
|
-
return window.addEventListener("online", s, !1), window.addEventListener("offline",
|
|
206
|
-
window.removeEventListener("online", s), window.removeEventListener("offline",
|
|
204
|
+
const s = () => e(!0), r = () => e(!1);
|
|
205
|
+
return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
|
|
206
|
+
window.removeEventListener("online", s), window.removeEventListener("offline", r);
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
});
|
|
@@ -220,74 +220,74 @@ var mt, at, Et, qe, Ys = (qe = class extends Ht {
|
|
|
220
220
|
m(this, At, e), (s = o(this, ot)) == null || s.call(this), m(this, ot, e(this.setOnline.bind(this)));
|
|
221
221
|
}
|
|
222
222
|
setOnline(e) {
|
|
223
|
-
o(this, kt) !== e && (m(this, kt, e), this.listeners.forEach((
|
|
224
|
-
|
|
223
|
+
o(this, kt) !== e && (m(this, kt, e), this.listeners.forEach((r) => {
|
|
224
|
+
r(e);
|
|
225
225
|
}));
|
|
226
226
|
}
|
|
227
227
|
isOnline() {
|
|
228
228
|
return o(this, kt);
|
|
229
229
|
}
|
|
230
|
-
}, kt = new WeakMap(), ot = new WeakMap(), At = new WeakMap(),
|
|
231
|
-
function
|
|
230
|
+
}, kt = new WeakMap(), ot = new WeakMap(), At = new WeakMap(), Ze), ee = new sr();
|
|
231
|
+
function rr(t) {
|
|
232
232
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function ls(t) {
|
|
235
235
|
return (t ?? "online") === "online" ? ee.isOnline() : !0;
|
|
236
236
|
}
|
|
237
|
-
var
|
|
237
|
+
var cs = class extends Error {
|
|
238
238
|
constructor(t) {
|
|
239
239
|
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
function ae(t) {
|
|
243
|
-
return t instanceof
|
|
243
|
+
return t instanceof cs;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
let e = !1, s = 0,
|
|
247
|
-
const u = new Promise((
|
|
248
|
-
c =
|
|
249
|
-
}), d = (
|
|
250
|
-
var
|
|
251
|
-
|
|
245
|
+
function us(t) {
|
|
246
|
+
let e = !1, s = 0, r = !1, a, c, l;
|
|
247
|
+
const u = new Promise((x, b) => {
|
|
248
|
+
c = x, l = b;
|
|
249
|
+
}), d = (x) => {
|
|
250
|
+
var b;
|
|
251
|
+
r || (P(new cs(x)), (b = t.abort) == null || b.call(t));
|
|
252
252
|
}, p = () => {
|
|
253
253
|
e = !0;
|
|
254
254
|
}, f = () => {
|
|
255
255
|
e = !1;
|
|
256
|
-
}, h = () => _e.isFocused() && (t.networkMode === "always" || ee.isOnline()) && t.canRun(), y = () =>
|
|
257
|
-
var
|
|
258
|
-
|
|
259
|
-
},
|
|
260
|
-
var
|
|
261
|
-
|
|
262
|
-
}, S = () => new Promise((
|
|
263
|
-
var
|
|
256
|
+
}, h = () => _e.isFocused() && (t.networkMode === "always" || ee.isOnline()) && t.canRun(), y = () => ls(t.networkMode) && t.canRun(), g = (x) => {
|
|
257
|
+
var b;
|
|
258
|
+
r || (r = !0, (b = t.onSuccess) == null || b.call(t, x), a == null || a(), c(x));
|
|
259
|
+
}, P = (x) => {
|
|
260
|
+
var b;
|
|
261
|
+
r || (r = !0, (b = t.onError) == null || b.call(t, x), a == null || a(), l(x));
|
|
262
|
+
}, S = () => new Promise((x) => {
|
|
263
|
+
var b;
|
|
264
264
|
a = (w) => {
|
|
265
|
-
(
|
|
266
|
-
}, (
|
|
265
|
+
(r || h()) && x(w);
|
|
266
|
+
}, (b = t.onPause) == null || b.call(t);
|
|
267
267
|
}).then(() => {
|
|
268
|
-
var
|
|
269
|
-
a = void 0,
|
|
270
|
-
}),
|
|
271
|
-
if (
|
|
268
|
+
var x;
|
|
269
|
+
a = void 0, r || (x = t.onContinue) == null || x.call(t);
|
|
270
|
+
}), E = () => {
|
|
271
|
+
if (r)
|
|
272
272
|
return;
|
|
273
|
-
let
|
|
274
|
-
const
|
|
273
|
+
let x;
|
|
274
|
+
const b = s === 0 ? t.initialPromise : void 0;
|
|
275
275
|
try {
|
|
276
|
-
|
|
276
|
+
x = b ?? t.fn();
|
|
277
277
|
} catch (w) {
|
|
278
|
-
|
|
278
|
+
x = Promise.reject(w);
|
|
279
279
|
}
|
|
280
|
-
Promise.resolve(
|
|
281
|
-
var
|
|
282
|
-
if (
|
|
280
|
+
Promise.resolve(x).then(g).catch((w) => {
|
|
281
|
+
var A;
|
|
282
|
+
if (r)
|
|
283
283
|
return;
|
|
284
|
-
const
|
|
284
|
+
const F = t.retry ?? (Qt ? 0 : 3), O = t.retryDelay ?? rr, Y = typeof O == "function" ? O(s, w) : O, et = F === !0 || typeof F == "number" && s < F || typeof F == "function" && F(s, w);
|
|
285
285
|
if (e || !et) {
|
|
286
|
-
|
|
286
|
+
P(w);
|
|
287
287
|
return;
|
|
288
288
|
}
|
|
289
|
-
s++, (
|
|
290
|
-
e ?
|
|
289
|
+
s++, (A = t.onFail) == null || A.call(t, s, w), Is(Y).then(() => h() ? void 0 : S()).then(() => {
|
|
290
|
+
e ? P(w) : E();
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
};
|
|
@@ -298,13 +298,13 @@ function cs(t) {
|
|
|
298
298
|
cancelRetry: p,
|
|
299
299
|
continueRetry: f,
|
|
300
300
|
canStart: y,
|
|
301
|
-
start: () => (y() ?
|
|
301
|
+
start: () => (y() ? E() : S().then(E), u)
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function ir() {
|
|
305
305
|
let t = [], e = 0, s = (u) => {
|
|
306
306
|
u();
|
|
307
|
-
},
|
|
307
|
+
}, r = (u) => {
|
|
308
308
|
u();
|
|
309
309
|
}, a = (u) => setTimeout(u, 0);
|
|
310
310
|
const c = (u) => {
|
|
@@ -314,7 +314,7 @@ function Bs() {
|
|
|
314
314
|
}, l = () => {
|
|
315
315
|
const u = t;
|
|
316
316
|
t = [], u.length && a(() => {
|
|
317
|
-
|
|
317
|
+
r(() => {
|
|
318
318
|
u.forEach((d) => {
|
|
319
319
|
s(d);
|
|
320
320
|
});
|
|
@@ -353,14 +353,14 @@ function Bs() {
|
|
|
353
353
|
* By default React Query will use the batch function provided by ReactDOM or React Native.
|
|
354
354
|
*/
|
|
355
355
|
setBatchNotifyFunction: (u) => {
|
|
356
|
-
|
|
356
|
+
r = u;
|
|
357
357
|
},
|
|
358
358
|
setScheduler: (u) => {
|
|
359
359
|
a = u;
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
var z =
|
|
363
|
+
var z = ir(), yt, Xe, ds = (Xe = class {
|
|
364
364
|
constructor() {
|
|
365
365
|
v(this, yt);
|
|
366
366
|
}
|
|
@@ -381,7 +381,7 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
381
381
|
clearGcTimeout() {
|
|
382
382
|
o(this, yt) && (clearTimeout(o(this, yt)), m(this, yt, void 0));
|
|
383
383
|
}
|
|
384
|
-
}, yt = new WeakMap(),
|
|
384
|
+
}, yt = new WeakMap(), Xe), Nt, Lt, V, D, Vt, gt, Z, st, Ye, nr = (Ye = class extends ds {
|
|
385
385
|
constructor(e) {
|
|
386
386
|
super();
|
|
387
387
|
v(this, Z);
|
|
@@ -389,9 +389,9 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
389
389
|
v(this, Lt);
|
|
390
390
|
v(this, V);
|
|
391
391
|
v(this, D);
|
|
392
|
-
v(this,
|
|
392
|
+
v(this, Vt);
|
|
393
393
|
v(this, gt);
|
|
394
|
-
m(this, gt, !1), m(this,
|
|
394
|
+
m(this, gt, !1), m(this, Vt, e.defaultOptions), this.setOptions(e.options), this.observers = [], m(this, V, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, m(this, Nt, ar(this.options)), this.state = e.state ?? o(this, Nt), this.scheduleGc();
|
|
395
395
|
}
|
|
396
396
|
get meta() {
|
|
397
397
|
return this.options.meta;
|
|
@@ -401,26 +401,26 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
401
401
|
return (e = o(this, D)) == null ? void 0 : e.promise;
|
|
402
402
|
}
|
|
403
403
|
setOptions(e) {
|
|
404
|
-
this.options = { ...o(this,
|
|
404
|
+
this.options = { ...o(this, Vt), ...e }, this.updateGcTime(this.options.gcTime);
|
|
405
405
|
}
|
|
406
406
|
optionalRemove() {
|
|
407
407
|
!this.observers.length && this.state.fetchStatus === "idle" && o(this, V).remove(this);
|
|
408
408
|
}
|
|
409
409
|
setData(e, s) {
|
|
410
|
-
const
|
|
410
|
+
const r = ce(this.state.data, e, this.options);
|
|
411
411
|
return j(this, Z, st).call(this, {
|
|
412
|
-
data:
|
|
412
|
+
data: r,
|
|
413
413
|
type: "success",
|
|
414
414
|
dataUpdatedAt: s == null ? void 0 : s.updatedAt,
|
|
415
415
|
manual: s == null ? void 0 : s.manual
|
|
416
|
-
}),
|
|
416
|
+
}), r;
|
|
417
417
|
}
|
|
418
418
|
setState(e, s) {
|
|
419
419
|
j(this, Z, st).call(this, { type: "setState", state: e, setStateOptions: s });
|
|
420
420
|
}
|
|
421
421
|
cancel(e) {
|
|
422
|
-
var
|
|
423
|
-
const s = (
|
|
422
|
+
var r, a;
|
|
423
|
+
const s = (r = o(this, D)) == null ? void 0 : r.promise;
|
|
424
424
|
return (a = o(this, D)) == null || a.cancel(e), s ? s.then(q).catch(q) : Promise.resolve();
|
|
425
425
|
}
|
|
426
426
|
destroy() {
|
|
@@ -447,12 +447,12 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
447
447
|
}
|
|
448
448
|
onFocus() {
|
|
449
449
|
var s;
|
|
450
|
-
const e = this.observers.find((
|
|
450
|
+
const e = this.observers.find((r) => r.shouldFetchOnWindowFocus());
|
|
451
451
|
e == null || e.refetch({ cancelRefetch: !1 }), (s = o(this, D)) == null || s.continue();
|
|
452
452
|
}
|
|
453
453
|
onOnline() {
|
|
454
454
|
var s;
|
|
455
|
-
const e = this.observers.find((
|
|
455
|
+
const e = this.observers.find((r) => r.shouldFetchOnReconnect());
|
|
456
456
|
e == null || e.refetch({ cancelRefetch: !1 }), (s = o(this, D)) == null || s.continue();
|
|
457
457
|
}
|
|
458
458
|
addObserver(e) {
|
|
@@ -479,13 +479,13 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
479
479
|
const h = this.observers.find((y) => y.options.queryFn);
|
|
480
480
|
h && this.setOptions(h.options);
|
|
481
481
|
}
|
|
482
|
-
const
|
|
482
|
+
const r = new AbortController(), a = (h) => {
|
|
483
483
|
Object.defineProperty(h, "signal", {
|
|
484
484
|
enumerable: !0,
|
|
485
|
-
get: () => (m(this, gt, !0),
|
|
485
|
+
get: () => (m(this, gt, !0), r.signal)
|
|
486
486
|
});
|
|
487
487
|
}, c = () => {
|
|
488
|
-
const h =
|
|
488
|
+
const h = os(this.options, s), y = {
|
|
489
489
|
queryKey: this.queryKey,
|
|
490
490
|
meta: this.meta
|
|
491
491
|
};
|
|
@@ -506,7 +506,7 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
506
506
|
this
|
|
507
507
|
), m(this, Lt, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((p = l.fetchOptions) == null ? void 0 : p.meta)) && j(this, Z, st).call(this, { type: "fetch", meta: (f = l.fetchOptions) == null ? void 0 : f.meta });
|
|
508
508
|
const u = (h) => {
|
|
509
|
-
var y, g,
|
|
509
|
+
var y, g, P, S;
|
|
510
510
|
ae(h) && h.silent || j(this, Z, st).call(this, {
|
|
511
511
|
type: "error",
|
|
512
512
|
error: h
|
|
@@ -514,31 +514,31 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
514
514
|
y,
|
|
515
515
|
h,
|
|
516
516
|
this
|
|
517
|
-
), (S = (
|
|
518
|
-
|
|
517
|
+
), (S = (P = o(this, V).config).onSettled) == null || S.call(
|
|
518
|
+
P,
|
|
519
519
|
this.state.data,
|
|
520
520
|
h,
|
|
521
521
|
this
|
|
522
522
|
)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
|
|
523
523
|
};
|
|
524
|
-
return m(this, D,
|
|
524
|
+
return m(this, D, us({
|
|
525
525
|
initialPromise: s == null ? void 0 : s.initialPromise,
|
|
526
526
|
fn: l.fetchFn,
|
|
527
|
-
abort:
|
|
527
|
+
abort: r.abort.bind(r),
|
|
528
528
|
onSuccess: (h) => {
|
|
529
|
-
var y, g,
|
|
529
|
+
var y, g, P, S;
|
|
530
530
|
if (h === void 0) {
|
|
531
531
|
u(new Error(`${this.queryHash} data is undefined`));
|
|
532
532
|
return;
|
|
533
533
|
}
|
|
534
534
|
try {
|
|
535
535
|
this.setData(h);
|
|
536
|
-
} catch (
|
|
537
|
-
u(
|
|
536
|
+
} catch (E) {
|
|
537
|
+
u(E);
|
|
538
538
|
return;
|
|
539
539
|
}
|
|
540
|
-
(g = (y = o(this, V).config).onSuccess) == null || g.call(y, h, this), (S = (
|
|
541
|
-
|
|
540
|
+
(g = (y = o(this, V).config).onSuccess) == null || g.call(y, h, this), (S = (P = o(this, V).config).onSettled) == null || S.call(
|
|
541
|
+
P,
|
|
542
542
|
h,
|
|
543
543
|
this.state.error,
|
|
544
544
|
this
|
|
@@ -560,36 +560,36 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
560
560
|
canRun: () => !0
|
|
561
561
|
})), o(this, D).start();
|
|
562
562
|
}
|
|
563
|
-
}, Nt = new WeakMap(), Lt = new WeakMap(), V = new WeakMap(), D = new WeakMap(),
|
|
564
|
-
const s = (
|
|
563
|
+
}, Nt = new WeakMap(), Lt = new WeakMap(), V = new WeakMap(), D = new WeakMap(), Vt = new WeakMap(), gt = new WeakMap(), Z = new WeakSet(), st = function(e) {
|
|
564
|
+
const s = (r) => {
|
|
565
565
|
switch (e.type) {
|
|
566
566
|
case "failed":
|
|
567
567
|
return {
|
|
568
|
-
...
|
|
568
|
+
...r,
|
|
569
569
|
fetchFailureCount: e.failureCount,
|
|
570
570
|
fetchFailureReason: e.error
|
|
571
571
|
};
|
|
572
572
|
case "pause":
|
|
573
573
|
return {
|
|
574
|
-
...
|
|
574
|
+
...r,
|
|
575
575
|
fetchStatus: "paused"
|
|
576
576
|
};
|
|
577
577
|
case "continue":
|
|
578
578
|
return {
|
|
579
|
-
...
|
|
579
|
+
...r,
|
|
580
580
|
fetchStatus: "fetching"
|
|
581
581
|
};
|
|
582
582
|
case "fetch":
|
|
583
583
|
return {
|
|
584
|
-
...
|
|
585
|
-
...
|
|
584
|
+
...r,
|
|
585
|
+
...hs(r.data, this.options),
|
|
586
586
|
fetchMeta: e.meta ?? null
|
|
587
587
|
};
|
|
588
588
|
case "success":
|
|
589
589
|
return {
|
|
590
|
-
...
|
|
590
|
+
...r,
|
|
591
591
|
data: e.data,
|
|
592
|
-
dataUpdateCount:
|
|
592
|
+
dataUpdateCount: r.dataUpdateCount + 1,
|
|
593
593
|
dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
|
|
594
594
|
error: null,
|
|
595
595
|
isInvalidated: !1,
|
|
@@ -603,50 +603,50 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
603
603
|
case "error":
|
|
604
604
|
const a = e.error;
|
|
605
605
|
return ae(a) && a.revert && o(this, Lt) ? { ...o(this, Lt), fetchStatus: "idle" } : {
|
|
606
|
-
...
|
|
606
|
+
...r,
|
|
607
607
|
error: a,
|
|
608
|
-
errorUpdateCount:
|
|
608
|
+
errorUpdateCount: r.errorUpdateCount + 1,
|
|
609
609
|
errorUpdatedAt: Date.now(),
|
|
610
|
-
fetchFailureCount:
|
|
610
|
+
fetchFailureCount: r.fetchFailureCount + 1,
|
|
611
611
|
fetchFailureReason: a,
|
|
612
612
|
fetchStatus: "idle",
|
|
613
613
|
status: "error"
|
|
614
614
|
};
|
|
615
615
|
case "invalidate":
|
|
616
616
|
return {
|
|
617
|
-
...
|
|
617
|
+
...r,
|
|
618
618
|
isInvalidated: !0
|
|
619
619
|
};
|
|
620
620
|
case "setState":
|
|
621
621
|
return {
|
|
622
|
-
...
|
|
622
|
+
...r,
|
|
623
623
|
...e.state
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
};
|
|
627
627
|
this.state = s(this.state), z.batch(() => {
|
|
628
|
-
this.observers.forEach((
|
|
629
|
-
|
|
628
|
+
this.observers.forEach((r) => {
|
|
629
|
+
r.onQueryUpdate();
|
|
630
630
|
}), o(this, V).notify({ query: this, type: "updated", action: e });
|
|
631
631
|
});
|
|
632
|
-
},
|
|
633
|
-
function
|
|
632
|
+
}, Ye);
|
|
633
|
+
function hs(t, e) {
|
|
634
634
|
return {
|
|
635
635
|
fetchFailureCount: 0,
|
|
636
636
|
fetchFailureReason: null,
|
|
637
|
-
fetchStatus:
|
|
637
|
+
fetchStatus: ls(e.networkMode) ? "fetching" : "paused",
|
|
638
638
|
...t === void 0 && {
|
|
639
639
|
error: null,
|
|
640
640
|
status: "pending"
|
|
641
641
|
}
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0,
|
|
644
|
+
function ar(t) {
|
|
645
|
+
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;
|
|
646
646
|
return {
|
|
647
647
|
data: e,
|
|
648
648
|
dataUpdateCount: 0,
|
|
649
|
-
dataUpdatedAt: s ?
|
|
649
|
+
dataUpdatedAt: s ? r ?? Date.now() : 0,
|
|
650
650
|
error: null,
|
|
651
651
|
errorUpdateCount: 0,
|
|
652
652
|
errorUpdatedAt: 0,
|
|
@@ -658,21 +658,21 @@ function ei(t) {
|
|
|
658
658
|
fetchStatus: "idle"
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
var J,
|
|
661
|
+
var J, Je, or = (Je = class extends Ht {
|
|
662
662
|
constructor(e = {}) {
|
|
663
663
|
super();
|
|
664
664
|
v(this, J);
|
|
665
665
|
this.config = e, m(this, J, /* @__PURE__ */ new Map());
|
|
666
666
|
}
|
|
667
|
-
build(e, s,
|
|
667
|
+
build(e, s, r) {
|
|
668
668
|
const a = s.queryKey, c = s.queryHash ?? Se(a, s);
|
|
669
669
|
let l = this.get(c);
|
|
670
|
-
return l || (l = new
|
|
670
|
+
return l || (l = new nr({
|
|
671
671
|
cache: this,
|
|
672
672
|
queryKey: a,
|
|
673
673
|
queryHash: c,
|
|
674
674
|
options: e.defaultQueryOptions(s),
|
|
675
|
-
state:
|
|
675
|
+
state: r,
|
|
676
676
|
defaultOptions: e.getQueryDefaults(a)
|
|
677
677
|
}), this.add(l)), l;
|
|
678
678
|
}
|
|
@@ -702,12 +702,12 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
702
702
|
find(e) {
|
|
703
703
|
const s = { exact: !0, ...e };
|
|
704
704
|
return this.getAll().find(
|
|
705
|
-
(
|
|
705
|
+
(r) => Me(s, r)
|
|
706
706
|
);
|
|
707
707
|
}
|
|
708
708
|
findAll(e = {}) {
|
|
709
709
|
const s = this.getAll();
|
|
710
|
-
return Object.keys(e).length > 0 ? s.filter((
|
|
710
|
+
return Object.keys(e).length > 0 ? s.filter((r) => Me(e, r)) : s;
|
|
711
711
|
}
|
|
712
712
|
notify(e) {
|
|
713
713
|
z.batch(() => {
|
|
@@ -730,14 +730,14 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
730
730
|
});
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
}, J = new WeakMap(),
|
|
733
|
+
}, J = new WeakMap(), Je), I, T, vt, B, nt, Ie, lr = (Ie = class extends ds {
|
|
734
734
|
constructor(e) {
|
|
735
735
|
super();
|
|
736
736
|
v(this, B);
|
|
737
737
|
v(this, I);
|
|
738
738
|
v(this, T);
|
|
739
739
|
v(this, vt);
|
|
740
|
-
this.mutationId = e.mutationId, m(this, T, e.mutationCache), m(this, I, []), this.state = e.state ||
|
|
740
|
+
this.mutationId = e.mutationId, m(this, T, e.mutationCache), m(this, I, []), this.state = e.state || fs(), this.setOptions(e.options), this.scheduleGc();
|
|
741
741
|
}
|
|
742
742
|
setOptions(e) {
|
|
743
743
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -768,11 +768,11 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
768
768
|
this.execute(this.state.variables);
|
|
769
769
|
}
|
|
770
770
|
async execute(e) {
|
|
771
|
-
var a, c, l, u, d, p, f, h, y, g,
|
|
772
|
-
m(this, vt,
|
|
771
|
+
var a, c, l, u, d, p, f, h, y, g, P, S, E, x, b, w, F, O, Y, et;
|
|
772
|
+
m(this, vt, us({
|
|
773
773
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
774
|
-
onFail: (
|
|
775
|
-
j(this, B, nt).call(this, { type: "failed", failureCount:
|
|
774
|
+
onFail: (A, $) => {
|
|
775
|
+
j(this, B, nt).call(this, { type: "failed", failureCount: A, error: $ });
|
|
776
776
|
},
|
|
777
777
|
onPause: () => {
|
|
778
778
|
j(this, B, nt).call(this, { type: "pause" });
|
|
@@ -785,10 +785,10 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
785
785
|
networkMode: this.options.networkMode,
|
|
786
786
|
canRun: () => o(this, T).canRun(this)
|
|
787
787
|
}));
|
|
788
|
-
const s = this.state.status === "pending",
|
|
788
|
+
const s = this.state.status === "pending", r = !o(this, vt).canStart();
|
|
789
789
|
try {
|
|
790
790
|
if (!s) {
|
|
791
|
-
j(this, B, nt).call(this, { type: "pending", variables: e, isPaused:
|
|
791
|
+
j(this, B, nt).call(this, { type: "pending", variables: e, isPaused: r }), await ((c = (a = o(this, T).config).onMutate) == null ? void 0 : c.call(
|
|
792
792
|
a,
|
|
793
793
|
e,
|
|
794
794
|
this
|
|
@@ -798,80 +798,80 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
798
798
|
type: "pending",
|
|
799
799
|
context: $,
|
|
800
800
|
variables: e,
|
|
801
|
-
isPaused:
|
|
801
|
+
isPaused: r
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
|
-
const
|
|
804
|
+
const A = await o(this, vt).start();
|
|
805
805
|
return await ((p = (d = o(this, T).config).onSuccess) == null ? void 0 : p.call(
|
|
806
806
|
d,
|
|
807
|
-
|
|
807
|
+
A,
|
|
808
808
|
e,
|
|
809
809
|
this.state.context,
|
|
810
810
|
this
|
|
811
|
-
)), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f,
|
|
811
|
+
)), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f, A, e, this.state.context)), await ((g = (y = o(this, T).config).onSettled) == null ? void 0 : g.call(
|
|
812
812
|
y,
|
|
813
|
-
|
|
813
|
+
A,
|
|
814
814
|
null,
|
|
815
815
|
this.state.variables,
|
|
816
816
|
this.state.context,
|
|
817
817
|
this
|
|
818
|
-
)), await ((S = (
|
|
819
|
-
} catch (
|
|
818
|
+
)), await ((S = (P = this.options).onSettled) == null ? void 0 : S.call(P, A, null, e, this.state.context)), j(this, B, nt).call(this, { type: "success", data: A }), A;
|
|
819
|
+
} catch (A) {
|
|
820
820
|
try {
|
|
821
|
-
throw await ((
|
|
822
|
-
|
|
823
|
-
|
|
821
|
+
throw await ((x = (E = o(this, T).config).onError) == null ? void 0 : x.call(
|
|
822
|
+
E,
|
|
823
|
+
A,
|
|
824
824
|
e,
|
|
825
825
|
this.state.context,
|
|
826
826
|
this
|
|
827
|
-
)), await ((w = (
|
|
828
|
-
|
|
829
|
-
|
|
827
|
+
)), await ((w = (b = this.options).onError) == null ? void 0 : w.call(
|
|
828
|
+
b,
|
|
829
|
+
A,
|
|
830
830
|
e,
|
|
831
831
|
this.state.context
|
|
832
|
-
)), await ((O = (
|
|
833
|
-
|
|
832
|
+
)), await ((O = (F = o(this, T).config).onSettled) == null ? void 0 : O.call(
|
|
833
|
+
F,
|
|
834
834
|
void 0,
|
|
835
|
-
|
|
835
|
+
A,
|
|
836
836
|
this.state.variables,
|
|
837
837
|
this.state.context,
|
|
838
838
|
this
|
|
839
839
|
)), await ((et = (Y = this.options).onSettled) == null ? void 0 : et.call(
|
|
840
840
|
Y,
|
|
841
841
|
void 0,
|
|
842
|
-
|
|
842
|
+
A,
|
|
843
843
|
e,
|
|
844
844
|
this.state.context
|
|
845
|
-
)),
|
|
845
|
+
)), A;
|
|
846
846
|
} finally {
|
|
847
|
-
j(this, B, nt).call(this, { type: "error", error:
|
|
847
|
+
j(this, B, nt).call(this, { type: "error", error: A });
|
|
848
848
|
}
|
|
849
849
|
} finally {
|
|
850
850
|
o(this, T).runNext(this);
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
}, I = new WeakMap(), T = new WeakMap(), vt = new WeakMap(), B = new WeakSet(), nt = function(e) {
|
|
854
|
-
const s = (
|
|
854
|
+
const s = (r) => {
|
|
855
855
|
switch (e.type) {
|
|
856
856
|
case "failed":
|
|
857
857
|
return {
|
|
858
|
-
...
|
|
858
|
+
...r,
|
|
859
859
|
failureCount: e.failureCount,
|
|
860
860
|
failureReason: e.error
|
|
861
861
|
};
|
|
862
862
|
case "pause":
|
|
863
863
|
return {
|
|
864
|
-
...
|
|
864
|
+
...r,
|
|
865
865
|
isPaused: !0
|
|
866
866
|
};
|
|
867
867
|
case "continue":
|
|
868
868
|
return {
|
|
869
|
-
...
|
|
869
|
+
...r,
|
|
870
870
|
isPaused: !1
|
|
871
871
|
};
|
|
872
872
|
case "pending":
|
|
873
873
|
return {
|
|
874
|
-
...
|
|
874
|
+
...r,
|
|
875
875
|
context: e.context,
|
|
876
876
|
data: void 0,
|
|
877
877
|
failureCount: 0,
|
|
@@ -884,7 +884,7 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
884
884
|
};
|
|
885
885
|
case "success":
|
|
886
886
|
return {
|
|
887
|
-
...
|
|
887
|
+
...r,
|
|
888
888
|
data: e.data,
|
|
889
889
|
failureCount: 0,
|
|
890
890
|
failureReason: null,
|
|
@@ -894,10 +894,10 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
894
894
|
};
|
|
895
895
|
case "error":
|
|
896
896
|
return {
|
|
897
|
-
...
|
|
897
|
+
...r,
|
|
898
898
|
data: void 0,
|
|
899
899
|
error: e.error,
|
|
900
|
-
failureCount:
|
|
900
|
+
failureCount: r.failureCount + 1,
|
|
901
901
|
failureReason: e.error,
|
|
902
902
|
isPaused: !1,
|
|
903
903
|
status: "error"
|
|
@@ -905,16 +905,16 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
907
|
this.state = s(this.state), z.batch(() => {
|
|
908
|
-
o(this, I).forEach((
|
|
909
|
-
|
|
908
|
+
o(this, I).forEach((r) => {
|
|
909
|
+
r.onMutationUpdate(e);
|
|
910
910
|
}), o(this, T).notify({
|
|
911
911
|
mutation: this,
|
|
912
912
|
type: "updated",
|
|
913
913
|
action: e
|
|
914
914
|
});
|
|
915
915
|
});
|
|
916
|
-
},
|
|
917
|
-
function
|
|
916
|
+
}, Ie);
|
|
917
|
+
function fs() {
|
|
918
918
|
return {
|
|
919
919
|
context: void 0,
|
|
920
920
|
data: void 0,
|
|
@@ -927,43 +927,43 @@ function hs() {
|
|
|
927
927
|
submittedAt: 0
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
|
-
var W,
|
|
930
|
+
var W, qt, Be, cr = (Be = class extends Ht {
|
|
931
931
|
constructor(e = {}) {
|
|
932
932
|
super();
|
|
933
933
|
v(this, W);
|
|
934
|
-
v(this,
|
|
935
|
-
this.config = e, m(this, W, /* @__PURE__ */ new Map()), m(this,
|
|
934
|
+
v(this, qt);
|
|
935
|
+
this.config = e, m(this, W, /* @__PURE__ */ new Map()), m(this, qt, Date.now());
|
|
936
936
|
}
|
|
937
|
-
build(e, s,
|
|
938
|
-
const a = new
|
|
937
|
+
build(e, s, r) {
|
|
938
|
+
const a = new lr({
|
|
939
939
|
mutationCache: this,
|
|
940
|
-
mutationId: ++Yt(this,
|
|
940
|
+
mutationId: ++Yt(this, qt)._,
|
|
941
941
|
options: e.defaultMutationOptions(s),
|
|
942
|
-
state:
|
|
942
|
+
state: r
|
|
943
943
|
});
|
|
944
944
|
return this.add(a), a;
|
|
945
945
|
}
|
|
946
946
|
add(e) {
|
|
947
|
-
const s = Jt(e),
|
|
948
|
-
|
|
947
|
+
const s = Jt(e), r = o(this, W).get(s) ?? [];
|
|
948
|
+
r.push(e), o(this, W).set(s, r), this.notify({ type: "added", mutation: e });
|
|
949
949
|
}
|
|
950
950
|
remove(e) {
|
|
951
|
-
var
|
|
951
|
+
var r;
|
|
952
952
|
const s = Jt(e);
|
|
953
953
|
if (o(this, W).has(s)) {
|
|
954
|
-
const a = (
|
|
954
|
+
const a = (r = o(this, W).get(s)) == null ? void 0 : r.filter((c) => c !== e);
|
|
955
955
|
a && (a.length === 0 ? o(this, W).delete(s) : o(this, W).set(s, a));
|
|
956
956
|
}
|
|
957
957
|
this.notify({ type: "removed", mutation: e });
|
|
958
958
|
}
|
|
959
959
|
canRun(e) {
|
|
960
|
-
var
|
|
961
|
-
const s = (
|
|
960
|
+
var r;
|
|
961
|
+
const s = (r = o(this, W).get(Jt(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
|
|
962
962
|
return !s || s === e;
|
|
963
963
|
}
|
|
964
964
|
runNext(e) {
|
|
965
|
-
var
|
|
966
|
-
const s = (
|
|
965
|
+
var r;
|
|
966
|
+
const s = (r = o(this, W).get(Jt(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
|
|
967
967
|
return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
|
|
968
968
|
}
|
|
969
969
|
clear() {
|
|
@@ -979,11 +979,11 @@ var W, Vt, Ie, ri = (Ie = class extends Ht {
|
|
|
979
979
|
find(e) {
|
|
980
980
|
const s = { exact: !0, ...e };
|
|
981
981
|
return this.getAll().find(
|
|
982
|
-
(
|
|
982
|
+
(r) => Fe(s, r)
|
|
983
983
|
);
|
|
984
984
|
}
|
|
985
985
|
findAll(e = {}) {
|
|
986
|
-
return this.getAll().filter((s) =>
|
|
986
|
+
return this.getAll().filter((s) => Fe(e, s));
|
|
987
987
|
}
|
|
988
988
|
notify(e) {
|
|
989
989
|
z.batch(() => {
|
|
@@ -1000,66 +1000,66 @@ var W, Vt, Ie, ri = (Ie = class extends Ht {
|
|
|
1000
1000
|
)
|
|
1001
1001
|
);
|
|
1002
1002
|
}
|
|
1003
|
-
}, W = new WeakMap(),
|
|
1003
|
+
}, W = new WeakMap(), qt = new WeakMap(), Be);
|
|
1004
1004
|
function Jt(t) {
|
|
1005
1005
|
var e;
|
|
1006
1006
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function ze(t) {
|
|
1009
1009
|
return {
|
|
1010
1010
|
onFetch: (e, s) => {
|
|
1011
|
-
var f, h, y, g,
|
|
1012
|
-
const
|
|
1011
|
+
var f, h, y, g, P;
|
|
1012
|
+
const r = e.options, a = (y = (h = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : h.fetchMore) == null ? void 0 : y.direction, c = ((g = e.state.data) == null ? void 0 : g.pages) || [], l = ((P = e.state.data) == null ? void 0 : P.pageParams) || [];
|
|
1013
1013
|
let u = { pages: [], pageParams: [] }, d = 0;
|
|
1014
1014
|
const p = async () => {
|
|
1015
1015
|
let S = !1;
|
|
1016
|
-
const
|
|
1016
|
+
const E = (w) => {
|
|
1017
1017
|
Object.defineProperty(w, "signal", {
|
|
1018
1018
|
enumerable: !0,
|
|
1019
1019
|
get: () => (e.signal.aborted ? S = !0 : e.signal.addEventListener("abort", () => {
|
|
1020
1020
|
S = !0;
|
|
1021
1021
|
}), e.signal)
|
|
1022
1022
|
});
|
|
1023
|
-
},
|
|
1023
|
+
}, x = os(e.options, e.fetchOptions), b = async (w, F, O) => {
|
|
1024
1024
|
if (S)
|
|
1025
1025
|
return Promise.reject();
|
|
1026
|
-
if (
|
|
1026
|
+
if (F == null && w.pages.length)
|
|
1027
1027
|
return Promise.resolve(w);
|
|
1028
1028
|
const Y = {
|
|
1029
1029
|
queryKey: e.queryKey,
|
|
1030
|
-
pageParam:
|
|
1030
|
+
pageParam: F,
|
|
1031
1031
|
direction: O ? "backward" : "forward",
|
|
1032
1032
|
meta: e.options.meta
|
|
1033
1033
|
};
|
|
1034
|
-
|
|
1035
|
-
const et = await
|
|
1034
|
+
E(Y);
|
|
1035
|
+
const et = await x(
|
|
1036
1036
|
Y
|
|
1037
|
-
), { maxPages:
|
|
1037
|
+
), { maxPages: A } = e.options, $ = O ? tr : Bs;
|
|
1038
1038
|
return {
|
|
1039
|
-
pages: $(w.pages, et,
|
|
1040
|
-
pageParams: $(w.pageParams,
|
|
1039
|
+
pages: $(w.pages, et, A),
|
|
1040
|
+
pageParams: $(w.pageParams, F, A)
|
|
1041
1041
|
};
|
|
1042
1042
|
};
|
|
1043
1043
|
if (a && c.length) {
|
|
1044
|
-
const w = a === "backward",
|
|
1044
|
+
const w = a === "backward", F = w ? ur : De, O = {
|
|
1045
1045
|
pages: c,
|
|
1046
1046
|
pageParams: l
|
|
1047
|
-
}, Y =
|
|
1048
|
-
u = await
|
|
1047
|
+
}, Y = F(r, O);
|
|
1048
|
+
u = await b(O, Y, w);
|
|
1049
1049
|
} else {
|
|
1050
1050
|
const w = t ?? c.length;
|
|
1051
1051
|
do {
|
|
1052
|
-
const
|
|
1053
|
-
if (d > 0 &&
|
|
1052
|
+
const F = d === 0 ? l[0] ?? r.initialPageParam : De(r, u);
|
|
1053
|
+
if (d > 0 && F == null)
|
|
1054
1054
|
break;
|
|
1055
|
-
u = await
|
|
1055
|
+
u = await b(u, F), d++;
|
|
1056
1056
|
} while (d < w);
|
|
1057
1057
|
}
|
|
1058
1058
|
return u;
|
|
1059
1059
|
};
|
|
1060
1060
|
e.options.persister ? e.fetchFn = () => {
|
|
1061
|
-
var S,
|
|
1062
|
-
return (
|
|
1061
|
+
var S, E;
|
|
1062
|
+
return (E = (S = e.options).persister) == null ? void 0 : E.call(
|
|
1063
1063
|
S,
|
|
1064
1064
|
p,
|
|
1065
1065
|
{
|
|
@@ -1073,22 +1073,22 @@ function Oe(t) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
const
|
|
1076
|
+
function De(t, { pages: e, pageParams: s }) {
|
|
1077
|
+
const r = e.length - 1;
|
|
1078
1078
|
return e.length > 0 ? t.getNextPageParam(
|
|
1079
|
-
e[
|
|
1079
|
+
e[r],
|
|
1080
1080
|
e,
|
|
1081
|
-
s[
|
|
1081
|
+
s[r],
|
|
1082
1082
|
s
|
|
1083
1083
|
) : void 0;
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1086
|
-
var
|
|
1087
|
-
return e.length > 0 ? (
|
|
1085
|
+
function ur(t, { pages: e, pageParams: s }) {
|
|
1086
|
+
var r;
|
|
1087
|
+
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, s[0], s) : void 0;
|
|
1088
1088
|
}
|
|
1089
|
-
var
|
|
1089
|
+
var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
1090
1090
|
constructor(t = {}) {
|
|
1091
|
-
v(this,
|
|
1091
|
+
v(this, R);
|
|
1092
1092
|
v(this, lt);
|
|
1093
1093
|
v(this, ct);
|
|
1094
1094
|
v(this, Mt);
|
|
@@ -1096,13 +1096,13 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1096
1096
|
v(this, ut);
|
|
1097
1097
|
v(this, Rt);
|
|
1098
1098
|
v(this, Ot);
|
|
1099
|
-
m(this,
|
|
1099
|
+
m(this, R, t.queryCache || new or()), m(this, lt, t.mutationCache || new cr()), m(this, ct, t.defaultOptions || {}), m(this, Mt, /* @__PURE__ */ new Map()), m(this, Ft, /* @__PURE__ */ new Map()), m(this, ut, 0);
|
|
1100
1100
|
}
|
|
1101
1101
|
mount() {
|
|
1102
1102
|
Yt(this, ut)._++, o(this, ut) === 1 && (m(this, Rt, _e.subscribe(async (t) => {
|
|
1103
|
-
t && (await this.resumePausedMutations(), o(this,
|
|
1103
|
+
t && (await this.resumePausedMutations(), o(this, R).onFocus());
|
|
1104
1104
|
})), m(this, Ot, ee.subscribe(async (t) => {
|
|
1105
|
-
t && (await this.resumePausedMutations(), o(this,
|
|
1105
|
+
t && (await this.resumePausedMutations(), o(this, R).onOnline());
|
|
1106
1106
|
})));
|
|
1107
1107
|
}
|
|
1108
1108
|
unmount() {
|
|
@@ -1110,7 +1110,7 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1110
1110
|
Yt(this, ut)._--, o(this, ut) === 0 && ((t = o(this, Rt)) == null || t.call(this), m(this, Rt, void 0), (e = o(this, Ot)) == null || e.call(this), m(this, Ot, void 0));
|
|
1111
1111
|
}
|
|
1112
1112
|
isFetching(t) {
|
|
1113
|
-
return o(this,
|
|
1113
|
+
return o(this, R).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
1114
1114
|
}
|
|
1115
1115
|
isMutating(t) {
|
|
1116
1116
|
return o(this, lt).findAll({ ...t, status: "pending" }).length;
|
|
@@ -1118,45 +1118,45 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1118
1118
|
getQueryData(t) {
|
|
1119
1119
|
var s;
|
|
1120
1120
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
1121
|
-
return (s = o(this,
|
|
1121
|
+
return (s = o(this, R).get(e.queryHash)) == null ? void 0 : s.state.data;
|
|
1122
1122
|
}
|
|
1123
1123
|
ensureQueryData(t) {
|
|
1124
1124
|
const e = this.getQueryData(t.queryKey);
|
|
1125
1125
|
if (e === void 0)
|
|
1126
1126
|
return this.fetchQuery(t);
|
|
1127
1127
|
{
|
|
1128
|
-
const s = this.defaultQueryOptions(t),
|
|
1129
|
-
return t.revalidateIfStale &&
|
|
1128
|
+
const s = this.defaultQueryOptions(t), r = o(this, R).build(this, s);
|
|
1129
|
+
return t.revalidateIfStale && r.isStaleByTime(Pt(s.staleTime, r)) && this.prefetchQuery(s), Promise.resolve(e);
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
getQueriesData(t) {
|
|
1133
|
-
return o(this,
|
|
1134
|
-
const
|
|
1135
|
-
return [e,
|
|
1133
|
+
return o(this, R).findAll(t).map(({ queryKey: e, state: s }) => {
|
|
1134
|
+
const r = s.data;
|
|
1135
|
+
return [e, r];
|
|
1136
1136
|
});
|
|
1137
1137
|
}
|
|
1138
1138
|
setQueryData(t, e, s) {
|
|
1139
|
-
const
|
|
1140
|
-
|
|
1141
|
-
), c = a == null ? void 0 : a.state.data, l =
|
|
1139
|
+
const r = this.defaultQueryOptions({ queryKey: t }), a = o(this, R).get(
|
|
1140
|
+
r.queryHash
|
|
1141
|
+
), c = a == null ? void 0 : a.state.data, l = Js(e, c);
|
|
1142
1142
|
if (l !== void 0)
|
|
1143
|
-
return o(this,
|
|
1143
|
+
return o(this, R).build(this, r).setData(l, { ...s, manual: !0 });
|
|
1144
1144
|
}
|
|
1145
1145
|
setQueriesData(t, e, s) {
|
|
1146
1146
|
return z.batch(
|
|
1147
|
-
() => o(this,
|
|
1148
|
-
|
|
1149
|
-
this.setQueryData(
|
|
1147
|
+
() => o(this, R).findAll(t).map(({ queryKey: r }) => [
|
|
1148
|
+
r,
|
|
1149
|
+
this.setQueryData(r, e, s)
|
|
1150
1150
|
])
|
|
1151
1151
|
);
|
|
1152
1152
|
}
|
|
1153
1153
|
getQueryState(t) {
|
|
1154
1154
|
var s;
|
|
1155
1155
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
1156
|
-
return (s = o(this,
|
|
1156
|
+
return (s = o(this, R).get(e.queryHash)) == null ? void 0 : s.state;
|
|
1157
1157
|
}
|
|
1158
1158
|
removeQueries(t) {
|
|
1159
|
-
const e = o(this,
|
|
1159
|
+
const e = o(this, R);
|
|
1160
1160
|
z.batch(() => {
|
|
1161
1161
|
e.findAll(t).forEach((s) => {
|
|
1162
1162
|
e.remove(s);
|
|
@@ -1164,24 +1164,24 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
1166
|
resetQueries(t, e) {
|
|
1167
|
-
const s = o(this,
|
|
1167
|
+
const s = o(this, R), r = {
|
|
1168
1168
|
type: "active",
|
|
1169
1169
|
...t
|
|
1170
1170
|
};
|
|
1171
1171
|
return z.batch(() => (s.findAll(t).forEach((a) => {
|
|
1172
1172
|
a.reset();
|
|
1173
|
-
}), this.refetchQueries(
|
|
1173
|
+
}), this.refetchQueries(r, e)));
|
|
1174
1174
|
}
|
|
1175
1175
|
cancelQueries(t = {}, e = {}) {
|
|
1176
|
-
const s = { revert: !0, ...e },
|
|
1177
|
-
() => o(this,
|
|
1176
|
+
const s = { revert: !0, ...e }, r = z.batch(
|
|
1177
|
+
() => o(this, R).findAll(t).map((a) => a.cancel(s))
|
|
1178
1178
|
);
|
|
1179
|
-
return Promise.all(
|
|
1179
|
+
return Promise.all(r).then(q).catch(q);
|
|
1180
1180
|
}
|
|
1181
1181
|
invalidateQueries(t = {}, e = {}) {
|
|
1182
1182
|
return z.batch(() => {
|
|
1183
|
-
if (o(this,
|
|
1184
|
-
|
|
1183
|
+
if (o(this, R).findAll(t).forEach((r) => {
|
|
1184
|
+
r.invalidate();
|
|
1185
1185
|
}), t.refetchType === "none")
|
|
1186
1186
|
return Promise.resolve();
|
|
1187
1187
|
const s = {
|
|
@@ -1195,18 +1195,18 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1195
1195
|
const s = {
|
|
1196
1196
|
...e,
|
|
1197
1197
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
1198
|
-
},
|
|
1199
|
-
() => o(this,
|
|
1198
|
+
}, r = z.batch(
|
|
1199
|
+
() => o(this, R).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
1200
1200
|
let c = a.fetch(void 0, s);
|
|
1201
1201
|
return s.throwOnError || (c = c.catch(q)), a.state.fetchStatus === "paused" ? Promise.resolve() : c;
|
|
1202
1202
|
})
|
|
1203
1203
|
);
|
|
1204
|
-
return Promise.all(
|
|
1204
|
+
return Promise.all(r).then(q);
|
|
1205
1205
|
}
|
|
1206
1206
|
fetchQuery(t) {
|
|
1207
1207
|
const e = this.defaultQueryOptions(t);
|
|
1208
1208
|
e.retry === void 0 && (e.retry = !1);
|
|
1209
|
-
const s = o(this,
|
|
1209
|
+
const s = o(this, R).build(this, e);
|
|
1210
1210
|
return s.isStaleByTime(
|
|
1211
1211
|
Pt(e.staleTime, s)
|
|
1212
1212
|
) ? s.fetch(e) : Promise.resolve(s.state.data);
|
|
@@ -1215,19 +1215,19 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1215
1215
|
return this.fetchQuery(t).then(q).catch(q);
|
|
1216
1216
|
}
|
|
1217
1217
|
fetchInfiniteQuery(t) {
|
|
1218
|
-
return t.behavior =
|
|
1218
|
+
return t.behavior = ze(t.pages), this.fetchQuery(t);
|
|
1219
1219
|
}
|
|
1220
1220
|
prefetchInfiniteQuery(t) {
|
|
1221
1221
|
return this.fetchInfiniteQuery(t).then(q).catch(q);
|
|
1222
1222
|
}
|
|
1223
1223
|
ensureInfiniteQueryData(t) {
|
|
1224
|
-
return t.behavior =
|
|
1224
|
+
return t.behavior = ze(t.pages), this.ensureQueryData(t);
|
|
1225
1225
|
}
|
|
1226
1226
|
resumePausedMutations() {
|
|
1227
1227
|
return ee.isOnline() ? o(this, lt).resumePausedMutations() : Promise.resolve();
|
|
1228
1228
|
}
|
|
1229
1229
|
getQueryCache() {
|
|
1230
|
-
return o(this,
|
|
1230
|
+
return o(this, R);
|
|
1231
1231
|
}
|
|
1232
1232
|
getMutationCache() {
|
|
1233
1233
|
return o(this, lt);
|
|
@@ -1247,8 +1247,8 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1247
1247
|
getQueryDefaults(t) {
|
|
1248
1248
|
const e = [...o(this, Mt).values()];
|
|
1249
1249
|
let s = {};
|
|
1250
|
-
return e.forEach((
|
|
1251
|
-
|
|
1250
|
+
return e.forEach((r) => {
|
|
1251
|
+
Gt(t, r.queryKey) && (s = { ...s, ...r.defaultOptions });
|
|
1252
1252
|
}), s;
|
|
1253
1253
|
}
|
|
1254
1254
|
setMutationDefaults(t, e) {
|
|
@@ -1260,8 +1260,8 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1260
1260
|
getMutationDefaults(t) {
|
|
1261
1261
|
const e = [...o(this, Ft).values()];
|
|
1262
1262
|
let s = {};
|
|
1263
|
-
return e.forEach((
|
|
1264
|
-
|
|
1263
|
+
return e.forEach((r) => {
|
|
1264
|
+
Gt(t, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
|
|
1265
1265
|
}), s;
|
|
1266
1266
|
}
|
|
1267
1267
|
defaultQueryOptions(t) {
|
|
@@ -1276,7 +1276,7 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1276
1276
|
return e.queryHash || (e.queryHash = Se(
|
|
1277
1277
|
e.queryKey,
|
|
1278
1278
|
e
|
|
1279
|
-
)), 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.enabled !== !0 && e.queryFn ===
|
|
1279
|
+
)), 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.enabled !== !0 && e.queryFn === as && (e.enabled = !1), e;
|
|
1280
1280
|
}
|
|
1281
1281
|
defaultMutationOptions(t) {
|
|
1282
1282
|
return t != null && t._defaulted ? t : {
|
|
@@ -1287,20 +1287,20 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
}
|
|
1289
1289
|
clear() {
|
|
1290
|
-
o(this,
|
|
1290
|
+
o(this, R).clear(), o(this, lt).clear();
|
|
1291
1291
|
}
|
|
1292
|
-
},
|
|
1292
|
+
}, R = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), Mt = new WeakMap(), Ft = new WeakMap(), ut = new WeakMap(), Rt = new WeakMap(), Ot = new WeakMap(), ts), Q, k, $t, U, Ct, zt, tt, Zt, Dt, Tt, xt, bt, dt, Ut, L, Wt, ue, de, he, fe, pe, me, ye, ms, es, dr = (es = class extends Ht {
|
|
1293
1293
|
constructor(e, s) {
|
|
1294
1294
|
super();
|
|
1295
|
-
v(this,
|
|
1295
|
+
v(this, L);
|
|
1296
1296
|
v(this, Q);
|
|
1297
|
-
v(this,
|
|
1298
|
-
v(this,
|
|
1297
|
+
v(this, k);
|
|
1298
|
+
v(this, $t);
|
|
1299
1299
|
v(this, U);
|
|
1300
1300
|
v(this, Ct);
|
|
1301
1301
|
v(this, zt);
|
|
1302
1302
|
v(this, tt);
|
|
1303
|
-
v(this,
|
|
1303
|
+
v(this, Zt);
|
|
1304
1304
|
v(this, Dt);
|
|
1305
1305
|
// This property keeps track of the last query with defined data.
|
|
1306
1306
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
@@ -1315,71 +1315,71 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1315
1315
|
this.refetch = this.refetch.bind(this);
|
|
1316
1316
|
}
|
|
1317
1317
|
onSubscribe() {
|
|
1318
|
-
this.listeners.size === 1 && (o(this,
|
|
1318
|
+
this.listeners.size === 1 && (o(this, k).addObserver(this), Te(o(this, k), this.options) ? j(this, L, Wt).call(this) : this.updateResult(), j(this, L, fe).call(this));
|
|
1319
1319
|
}
|
|
1320
1320
|
onUnsubscribe() {
|
|
1321
1321
|
this.hasListeners() || this.destroy();
|
|
1322
1322
|
}
|
|
1323
1323
|
shouldFetchOnReconnect() {
|
|
1324
1324
|
return ge(
|
|
1325
|
-
o(this,
|
|
1325
|
+
o(this, k),
|
|
1326
1326
|
this.options,
|
|
1327
1327
|
this.options.refetchOnReconnect
|
|
1328
1328
|
);
|
|
1329
1329
|
}
|
|
1330
1330
|
shouldFetchOnWindowFocus() {
|
|
1331
1331
|
return ge(
|
|
1332
|
-
o(this,
|
|
1332
|
+
o(this, k),
|
|
1333
1333
|
this.options,
|
|
1334
1334
|
this.options.refetchOnWindowFocus
|
|
1335
1335
|
);
|
|
1336
1336
|
}
|
|
1337
1337
|
destroy() {
|
|
1338
|
-
this.listeners = /* @__PURE__ */ new Set(), j(this,
|
|
1338
|
+
this.listeners = /* @__PURE__ */ new Set(), j(this, L, pe).call(this), j(this, L, me).call(this), o(this, k).removeObserver(this);
|
|
1339
1339
|
}
|
|
1340
1340
|
setOptions(e, s) {
|
|
1341
|
-
const
|
|
1342
|
-
if (this.options = o(this, Q).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof X(this.options.enabled, o(this,
|
|
1341
|
+
const r = this.options, a = o(this, k);
|
|
1342
|
+
if (this.options = o(this, Q).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof X(this.options.enabled, o(this, k)) != "boolean")
|
|
1343
1343
|
throw new Error(
|
|
1344
1344
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
1345
1345
|
);
|
|
1346
|
-
j(this,
|
|
1346
|
+
j(this, L, ye).call(this), o(this, k).setOptions(this.options), r._defaulted && !te(this.options, r) && o(this, Q).getQueryCache().notify({
|
|
1347
1347
|
type: "observerOptionsUpdated",
|
|
1348
|
-
query: o(this,
|
|
1348
|
+
query: o(this, k),
|
|
1349
1349
|
observer: this
|
|
1350
1350
|
});
|
|
1351
1351
|
const c = this.hasListeners();
|
|
1352
|
-
c &&
|
|
1353
|
-
o(this,
|
|
1352
|
+
c && Ue(
|
|
1353
|
+
o(this, k),
|
|
1354
1354
|
a,
|
|
1355
1355
|
this.options,
|
|
1356
|
-
|
|
1357
|
-
) && j(this,
|
|
1358
|
-
const l = j(this,
|
|
1359
|
-
c && (o(this,
|
|
1356
|
+
r
|
|
1357
|
+
) && j(this, L, Wt).call(this), this.updateResult(s), c && (o(this, k) !== a || X(this.options.enabled, o(this, k)) !== X(r.enabled, o(this, k)) || Pt(this.options.staleTime, o(this, k)) !== Pt(r.staleTime, o(this, k))) && j(this, L, ue).call(this);
|
|
1358
|
+
const l = j(this, L, de).call(this);
|
|
1359
|
+
c && (o(this, k) !== a || X(this.options.enabled, o(this, k)) !== X(r.enabled, o(this, k)) || l !== o(this, dt)) && j(this, L, he).call(this, l);
|
|
1360
1360
|
}
|
|
1361
1361
|
getOptimisticResult(e) {
|
|
1362
|
-
const s = o(this, Q).getQueryCache().build(o(this, Q), e),
|
|
1363
|
-
return
|
|
1362
|
+
const s = o(this, Q).getQueryCache().build(o(this, Q), e), r = this.createResult(s, e);
|
|
1363
|
+
return fr(this, r) && (m(this, U, r), m(this, zt, this.options), m(this, Ct, o(this, k).state)), r;
|
|
1364
1364
|
}
|
|
1365
1365
|
getCurrentResult() {
|
|
1366
1366
|
return o(this, U);
|
|
1367
1367
|
}
|
|
1368
1368
|
trackResult(e, s) {
|
|
1369
|
-
const
|
|
1369
|
+
const r = {};
|
|
1370
1370
|
return Object.keys(e).forEach((a) => {
|
|
1371
|
-
Object.defineProperty(
|
|
1371
|
+
Object.defineProperty(r, a, {
|
|
1372
1372
|
configurable: !1,
|
|
1373
1373
|
enumerable: !0,
|
|
1374
1374
|
get: () => (this.trackProp(a), s == null || s(a), e[a])
|
|
1375
1375
|
});
|
|
1376
|
-
}),
|
|
1376
|
+
}), r;
|
|
1377
1377
|
}
|
|
1378
1378
|
trackProp(e) {
|
|
1379
1379
|
o(this, Ut).add(e);
|
|
1380
1380
|
}
|
|
1381
1381
|
getCurrentQuery() {
|
|
1382
|
-
return o(this,
|
|
1382
|
+
return o(this, k);
|
|
1383
1383
|
}
|
|
1384
1384
|
refetch({ ...e } = {}) {
|
|
1385
1385
|
return this.fetch({
|
|
@@ -1387,78 +1387,78 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1387
1387
|
});
|
|
1388
1388
|
}
|
|
1389
1389
|
fetchOptimistic(e) {
|
|
1390
|
-
const s = o(this, Q).defaultQueryOptions(e),
|
|
1391
|
-
return
|
|
1390
|
+
const s = o(this, Q).defaultQueryOptions(e), r = o(this, Q).getQueryCache().build(o(this, Q), s);
|
|
1391
|
+
return r.isFetchingOptimistic = !0, r.fetch().then(() => this.createResult(r, s));
|
|
1392
1392
|
}
|
|
1393
1393
|
fetch(e) {
|
|
1394
|
-
return j(this,
|
|
1394
|
+
return j(this, L, Wt).call(this, {
|
|
1395
1395
|
...e,
|
|
1396
1396
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
1397
1397
|
}).then(() => (this.updateResult(), o(this, U)));
|
|
1398
1398
|
}
|
|
1399
1399
|
createResult(e, s) {
|
|
1400
1400
|
var et;
|
|
1401
|
-
const
|
|
1401
|
+
const r = o(this, k), a = this.options, c = o(this, U), l = o(this, Ct), u = o(this, zt), p = e !== r ? e.state : o(this, $t), { state: f } = e;
|
|
1402
1402
|
let h = { ...f }, y = !1, g;
|
|
1403
1403
|
if (s._optimisticResults) {
|
|
1404
|
-
const
|
|
1405
|
-
($ ||
|
|
1404
|
+
const A = this.hasListeners(), $ = !A && Te(e, s), Gs = A && Ue(e, r, s, a);
|
|
1405
|
+
($ || Gs) && (h = {
|
|
1406
1406
|
...h,
|
|
1407
|
-
...
|
|
1407
|
+
...hs(f.data, e.options)
|
|
1408
1408
|
}), s._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
|
|
1409
1409
|
}
|
|
1410
|
-
let { error:
|
|
1410
|
+
let { error: P, errorUpdatedAt: S, status: E } = h;
|
|
1411
1411
|
if (s.select && h.data !== void 0)
|
|
1412
|
-
if (c && h.data === (l == null ? void 0 : l.data) && s.select === o(this,
|
|
1412
|
+
if (c && h.data === (l == null ? void 0 : l.data) && s.select === o(this, Zt))
|
|
1413
1413
|
g = o(this, Dt);
|
|
1414
1414
|
else
|
|
1415
1415
|
try {
|
|
1416
|
-
m(this,
|
|
1417
|
-
} catch (
|
|
1418
|
-
m(this, tt,
|
|
1416
|
+
m(this, Zt, s.select), g = s.select(h.data), g = ce(c == null ? void 0 : c.data, g, s), m(this, Dt, g), m(this, tt, null);
|
|
1417
|
+
} catch (A) {
|
|
1418
|
+
m(this, tt, A);
|
|
1419
1419
|
}
|
|
1420
1420
|
else
|
|
1421
1421
|
g = h.data;
|
|
1422
|
-
if (s.placeholderData !== void 0 && g === void 0 &&
|
|
1423
|
-
let
|
|
1422
|
+
if (s.placeholderData !== void 0 && g === void 0 && E === "pending") {
|
|
1423
|
+
let A;
|
|
1424
1424
|
if (c != null && c.isPlaceholderData && s.placeholderData === (u == null ? void 0 : u.placeholderData))
|
|
1425
|
-
|
|
1426
|
-
else if (
|
|
1425
|
+
A = c.data;
|
|
1426
|
+
else if (A = typeof s.placeholderData == "function" ? s.placeholderData(
|
|
1427
1427
|
(et = o(this, Tt)) == null ? void 0 : et.state.data,
|
|
1428
1428
|
o(this, Tt)
|
|
1429
|
-
) : s.placeholderData, s.select &&
|
|
1429
|
+
) : s.placeholderData, s.select && A !== void 0)
|
|
1430
1430
|
try {
|
|
1431
|
-
|
|
1431
|
+
A = s.select(A), m(this, tt, null);
|
|
1432
1432
|
} catch ($) {
|
|
1433
1433
|
m(this, tt, $);
|
|
1434
1434
|
}
|
|
1435
|
-
|
|
1435
|
+
A !== void 0 && (E = "success", g = ce(
|
|
1436
1436
|
c == null ? void 0 : c.data,
|
|
1437
|
-
|
|
1437
|
+
A,
|
|
1438
1438
|
s
|
|
1439
1439
|
), y = !0);
|
|
1440
1440
|
}
|
|
1441
|
-
o(this, tt) && (
|
|
1442
|
-
const
|
|
1441
|
+
o(this, tt) && (P = o(this, tt), g = o(this, Dt), S = Date.now(), E = "error");
|
|
1442
|
+
const x = h.fetchStatus === "fetching", b = E === "pending", w = E === "error", F = b && x, O = g !== void 0;
|
|
1443
1443
|
return {
|
|
1444
|
-
status:
|
|
1444
|
+
status: E,
|
|
1445
1445
|
fetchStatus: h.fetchStatus,
|
|
1446
|
-
isPending:
|
|
1447
|
-
isSuccess:
|
|
1446
|
+
isPending: b,
|
|
1447
|
+
isSuccess: E === "success",
|
|
1448
1448
|
isError: w,
|
|
1449
|
-
isInitialLoading:
|
|
1450
|
-
isLoading:
|
|
1449
|
+
isInitialLoading: F,
|
|
1450
|
+
isLoading: F,
|
|
1451
1451
|
data: g,
|
|
1452
1452
|
dataUpdatedAt: h.dataUpdatedAt,
|
|
1453
|
-
error:
|
|
1453
|
+
error: P,
|
|
1454
1454
|
errorUpdatedAt: S,
|
|
1455
1455
|
failureCount: h.fetchFailureCount,
|
|
1456
1456
|
failureReason: h.fetchFailureReason,
|
|
1457
1457
|
errorUpdateCount: h.errorUpdateCount,
|
|
1458
1458
|
isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
|
|
1459
1459
|
isFetchedAfterMount: h.dataUpdateCount > p.dataUpdateCount || h.errorUpdateCount > p.errorUpdateCount,
|
|
1460
|
-
isFetching:
|
|
1461
|
-
isRefetching:
|
|
1460
|
+
isFetching: x,
|
|
1461
|
+
isRefetching: x && !b,
|
|
1462
1462
|
isLoadingError: w && !O,
|
|
1463
1463
|
isPaused: h.fetchStatus === "paused",
|
|
1464
1464
|
isPlaceholderData: y,
|
|
@@ -1468,10 +1468,10 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1468
1468
|
};
|
|
1469
1469
|
}
|
|
1470
1470
|
updateResult(e) {
|
|
1471
|
-
const s = o(this, U),
|
|
1472
|
-
if (m(this, Ct, o(this,
|
|
1471
|
+
const s = o(this, U), r = this.createResult(o(this, k), this.options);
|
|
1472
|
+
if (m(this, Ct, o(this, k).state), m(this, zt, this.options), o(this, Ct).data !== void 0 && m(this, Tt, o(this, k)), te(r, s))
|
|
1473
1473
|
return;
|
|
1474
|
-
m(this, U,
|
|
1474
|
+
m(this, U, r);
|
|
1475
1475
|
const a = {}, c = () => {
|
|
1476
1476
|
if (!s)
|
|
1477
1477
|
return !0;
|
|
@@ -1486,123 +1486,123 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1486
1486
|
return o(this, U)[f] !== s[f] && d.has(f);
|
|
1487
1487
|
});
|
|
1488
1488
|
};
|
|
1489
|
-
(e == null ? void 0 : e.listeners) !== !1 && c() && (a.listeners = !0), j(this,
|
|
1489
|
+
(e == null ? void 0 : e.listeners) !== !1 && c() && (a.listeners = !0), j(this, L, ms).call(this, { ...a, ...e });
|
|
1490
1490
|
}
|
|
1491
1491
|
onQueryUpdate() {
|
|
1492
|
-
this.updateResult(), this.hasListeners() && j(this,
|
|
1492
|
+
this.updateResult(), this.hasListeners() && j(this, L, fe).call(this);
|
|
1493
1493
|
}
|
|
1494
|
-
}, Q = new WeakMap(),
|
|
1495
|
-
j(this,
|
|
1496
|
-
let s = o(this,
|
|
1494
|
+
}, Q = new WeakMap(), k = new WeakMap(), $t = new WeakMap(), U = new WeakMap(), Ct = new WeakMap(), zt = new WeakMap(), tt = new WeakMap(), Zt = new WeakMap(), Dt = new WeakMap(), Tt = new WeakMap(), xt = new WeakMap(), bt = new WeakMap(), dt = new WeakMap(), Ut = new WeakMap(), L = new WeakSet(), Wt = function(e) {
|
|
1495
|
+
j(this, L, ye).call(this);
|
|
1496
|
+
let s = o(this, k).fetch(
|
|
1497
1497
|
this.options,
|
|
1498
1498
|
e
|
|
1499
1499
|
);
|
|
1500
1500
|
return e != null && e.throwOnError || (s = s.catch(q)), s;
|
|
1501
1501
|
}, ue = function() {
|
|
1502
|
-
j(this,
|
|
1502
|
+
j(this, L, pe).call(this);
|
|
1503
1503
|
const e = Pt(
|
|
1504
1504
|
this.options.staleTime,
|
|
1505
|
-
o(this,
|
|
1505
|
+
o(this, k)
|
|
1506
1506
|
);
|
|
1507
1507
|
if (Qt || o(this, U).isStale || !oe(e))
|
|
1508
1508
|
return;
|
|
1509
|
-
const
|
|
1509
|
+
const r = is(o(this, U).dataUpdatedAt, e) + 1;
|
|
1510
1510
|
m(this, xt, setTimeout(() => {
|
|
1511
1511
|
o(this, U).isStale || this.updateResult();
|
|
1512
|
-
},
|
|
1512
|
+
}, r));
|
|
1513
1513
|
}, de = function() {
|
|
1514
|
-
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(o(this,
|
|
1514
|
+
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(o(this, k)) : this.options.refetchInterval) ?? !1;
|
|
1515
1515
|
}, he = function(e) {
|
|
1516
|
-
j(this,
|
|
1517
|
-
(this.options.refetchIntervalInBackground || _e.isFocused()) && j(this,
|
|
1516
|
+
j(this, L, me).call(this), m(this, dt, e), !(Qt || X(this.options.enabled, o(this, k)) === !1 || !oe(o(this, dt)) || o(this, dt) === 0) && m(this, bt, setInterval(() => {
|
|
1517
|
+
(this.options.refetchIntervalInBackground || _e.isFocused()) && j(this, L, Wt).call(this);
|
|
1518
1518
|
}, o(this, dt)));
|
|
1519
1519
|
}, fe = function() {
|
|
1520
|
-
j(this,
|
|
1520
|
+
j(this, L, ue).call(this), j(this, L, he).call(this, j(this, L, de).call(this));
|
|
1521
1521
|
}, pe = function() {
|
|
1522
1522
|
o(this, xt) && (clearTimeout(o(this, xt)), m(this, xt, void 0));
|
|
1523
1523
|
}, me = function() {
|
|
1524
1524
|
o(this, bt) && (clearInterval(o(this, bt)), m(this, bt, void 0));
|
|
1525
1525
|
}, ye = function() {
|
|
1526
1526
|
const e = o(this, Q).getQueryCache().build(o(this, Q), this.options);
|
|
1527
|
-
if (e === o(this,
|
|
1527
|
+
if (e === o(this, k))
|
|
1528
1528
|
return;
|
|
1529
|
-
const s = o(this,
|
|
1530
|
-
m(this,
|
|
1531
|
-
},
|
|
1529
|
+
const s = o(this, k);
|
|
1530
|
+
m(this, k, e), m(this, $t, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
|
|
1531
|
+
}, ms = function(e) {
|
|
1532
1532
|
z.batch(() => {
|
|
1533
1533
|
e.listeners && this.listeners.forEach((s) => {
|
|
1534
1534
|
s(o(this, U));
|
|
1535
1535
|
}), o(this, Q).getQueryCache().notify({
|
|
1536
|
-
query: o(this,
|
|
1536
|
+
query: o(this, k),
|
|
1537
1537
|
type: "observerResultsUpdated"
|
|
1538
1538
|
});
|
|
1539
1539
|
});
|
|
1540
|
-
},
|
|
1541
|
-
function
|
|
1540
|
+
}, es);
|
|
1541
|
+
function hr(t, e) {
|
|
1542
1542
|
return X(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1545
|
-
return
|
|
1544
|
+
function Te(t, e) {
|
|
1545
|
+
return hr(t, e) || t.state.data !== void 0 && ge(t, e, e.refetchOnMount);
|
|
1546
1546
|
}
|
|
1547
1547
|
function ge(t, e, s) {
|
|
1548
1548
|
if (X(e.enabled, t) !== !1) {
|
|
1549
|
-
const
|
|
1550
|
-
return
|
|
1549
|
+
const r = typeof s == "function" ? s(t) : s;
|
|
1550
|
+
return r === "always" || r !== !1 && Pe(t, e);
|
|
1551
1551
|
}
|
|
1552
1552
|
return !1;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1555
|
-
return (t !== e || X(
|
|
1554
|
+
function Ue(t, e, s, r) {
|
|
1555
|
+
return (t !== e || X(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && Pe(t, s);
|
|
1556
1556
|
}
|
|
1557
1557
|
function Pe(t, e) {
|
|
1558
1558
|
return X(e.enabled, t) !== !1 && t.isStaleByTime(Pt(e.staleTime, t));
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function fr(t, e) {
|
|
1561
1561
|
return !te(t.getCurrentResult(), e);
|
|
1562
1562
|
}
|
|
1563
|
-
var ht, ft, H,
|
|
1563
|
+
var ht, ft, H, rt, it, Bt, ve, ss, pr = (ss = class extends Ht {
|
|
1564
1564
|
constructor(e, s) {
|
|
1565
1565
|
super();
|
|
1566
|
-
v(this,
|
|
1566
|
+
v(this, it);
|
|
1567
1567
|
v(this, ht);
|
|
1568
1568
|
v(this, ft);
|
|
1569
1569
|
v(this, H);
|
|
1570
|
-
v(this,
|
|
1571
|
-
m(this, ht, e), this.setOptions(s), this.bindMethods(), j(this,
|
|
1570
|
+
v(this, rt);
|
|
1571
|
+
m(this, ht, e), this.setOptions(s), this.bindMethods(), j(this, it, Bt).call(this);
|
|
1572
1572
|
}
|
|
1573
1573
|
bindMethods() {
|
|
1574
1574
|
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
1575
1575
|
}
|
|
1576
1576
|
setOptions(e) {
|
|
1577
|
-
var
|
|
1577
|
+
var r;
|
|
1578
1578
|
const s = this.options;
|
|
1579
1579
|
this.options = o(this, ht).defaultMutationOptions(e), te(this.options, s) || o(this, ht).getMutationCache().notify({
|
|
1580
1580
|
type: "observerOptionsUpdated",
|
|
1581
1581
|
mutation: o(this, H),
|
|
1582
1582
|
observer: this
|
|
1583
|
-
}), s != null && s.mutationKey && this.options.mutationKey && wt(s.mutationKey) !== wt(this.options.mutationKey) ? this.reset() : ((
|
|
1583
|
+
}), s != null && s.mutationKey && this.options.mutationKey && wt(s.mutationKey) !== wt(this.options.mutationKey) ? this.reset() : ((r = o(this, H)) == null ? void 0 : r.state.status) === "pending" && o(this, H).setOptions(this.options);
|
|
1584
1584
|
}
|
|
1585
1585
|
onUnsubscribe() {
|
|
1586
1586
|
var e;
|
|
1587
1587
|
this.hasListeners() || (e = o(this, H)) == null || e.removeObserver(this);
|
|
1588
1588
|
}
|
|
1589
1589
|
onMutationUpdate(e) {
|
|
1590
|
-
j(this,
|
|
1590
|
+
j(this, it, Bt).call(this), j(this, it, ve).call(this, e);
|
|
1591
1591
|
}
|
|
1592
1592
|
getCurrentResult() {
|
|
1593
1593
|
return o(this, ft);
|
|
1594
1594
|
}
|
|
1595
1595
|
reset() {
|
|
1596
1596
|
var e;
|
|
1597
|
-
(e = o(this, H)) == null || e.removeObserver(this), m(this, H, void 0), j(this,
|
|
1597
|
+
(e = o(this, H)) == null || e.removeObserver(this), m(this, H, void 0), j(this, it, Bt).call(this), j(this, it, ve).call(this);
|
|
1598
1598
|
}
|
|
1599
1599
|
mutate(e, s) {
|
|
1600
|
-
var
|
|
1601
|
-
return m(this,
|
|
1600
|
+
var r;
|
|
1601
|
+
return m(this, rt, s), (r = o(this, H)) == null || r.removeObserver(this), m(this, H, o(this, ht).getMutationCache().build(o(this, ht), this.options)), o(this, H).addObserver(this), o(this, H).execute(e);
|
|
1602
1602
|
}
|
|
1603
|
-
}, ht = new WeakMap(), ft = new WeakMap(), H = new WeakMap(),
|
|
1603
|
+
}, ht = new WeakMap(), ft = new WeakMap(), H = new WeakMap(), rt = new WeakMap(), it = new WeakSet(), Bt = function() {
|
|
1604
1604
|
var s;
|
|
1605
|
-
const e = ((s = o(this, H)) == null ? void 0 : s.state) ??
|
|
1605
|
+
const e = ((s = o(this, H)) == null ? void 0 : s.state) ?? fs();
|
|
1606
1606
|
m(this, ft, {
|
|
1607
1607
|
...e,
|
|
1608
1608
|
isPending: e.status === "pending",
|
|
@@ -1614,10 +1614,10 @@ var ht, ft, H, it, rt, Bt, ve, es, ci = (es = class extends Ht {
|
|
|
1614
1614
|
});
|
|
1615
1615
|
}, ve = function(e) {
|
|
1616
1616
|
z.batch(() => {
|
|
1617
|
-
var s,
|
|
1618
|
-
if (o(this,
|
|
1617
|
+
var s, r, a, c, l, u, d, p;
|
|
1618
|
+
if (o(this, rt) && this.hasListeners()) {
|
|
1619
1619
|
const f = o(this, ft).variables, h = o(this, ft).context;
|
|
1620
|
-
(e == null ? void 0 : e.type) === "success" ? ((
|
|
1620
|
+
(e == null ? void 0 : e.type) === "success" ? ((r = (s = o(this, rt)).onSuccess) == null || r.call(s, e.data, f, h), (c = (a = o(this, rt)).onSettled) == null || c.call(a, e.data, null, f, h)) : (e == null ? void 0 : e.type) === "error" && ((u = (l = o(this, rt)).onError) == null || u.call(l, e.error, f, h), (p = (d = o(this, rt)).onSettled) == null || p.call(
|
|
1621
1621
|
d,
|
|
1622
1622
|
void 0,
|
|
1623
1623
|
e.error,
|
|
@@ -1629,21 +1629,21 @@ var ht, ft, H, it, rt, Bt, ve, es, ci = (es = class extends Ht {
|
|
|
1629
1629
|
f(o(this, ft));
|
|
1630
1630
|
});
|
|
1631
1631
|
});
|
|
1632
|
-
},
|
|
1632
|
+
}, ss), ys = i.createContext(
|
|
1633
1633
|
void 0
|
|
1634
1634
|
), Ee = (t) => {
|
|
1635
|
-
const e =
|
|
1635
|
+
const e = i.useContext(ys);
|
|
1636
1636
|
if (!e)
|
|
1637
1637
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1638
1638
|
return e;
|
|
1639
|
-
},
|
|
1639
|
+
}, mr = ({
|
|
1640
1640
|
client: t,
|
|
1641
1641
|
children: e
|
|
1642
|
-
}) => (
|
|
1642
|
+
}) => (i.useEffect(() => (t.mount(), () => {
|
|
1643
1643
|
t.unmount();
|
|
1644
|
-
}), [t]), /* @__PURE__ */ n.jsx(
|
|
1645
|
-
|
|
1646
|
-
function
|
|
1644
|
+
}), [t]), /* @__PURE__ */ n.jsx(ys.Provider, { value: t, children: e })), gs = i.createContext(!1), yr = () => i.useContext(gs);
|
|
1645
|
+
gs.Provider;
|
|
1646
|
+
function gr() {
|
|
1647
1647
|
let t = !1;
|
|
1648
1648
|
return {
|
|
1649
1649
|
clearReset: () => {
|
|
@@ -1655,196 +1655,196 @@ function hi() {
|
|
|
1655
1655
|
isReset: () => t
|
|
1656
1656
|
};
|
|
1657
1657
|
}
|
|
1658
|
-
var
|
|
1659
|
-
function
|
|
1658
|
+
var vr = i.createContext(gr()), Cr = () => i.useContext(vr);
|
|
1659
|
+
function vs(t, e) {
|
|
1660
1660
|
return typeof t == "function" ? t(...e) : !!t;
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function xr() {
|
|
1663
1663
|
}
|
|
1664
|
-
var
|
|
1664
|
+
var br = (t, e) => {
|
|
1665
1665
|
(t.suspense || t.throwOnError) && (e.isReset() || (t.retryOnMount = !1));
|
|
1666
|
-
},
|
|
1667
|
-
|
|
1666
|
+
}, wr = (t) => {
|
|
1667
|
+
i.useEffect(() => {
|
|
1668
1668
|
t.clearReset();
|
|
1669
1669
|
}, [t]);
|
|
1670
|
-
},
|
|
1670
|
+
}, jr = ({
|
|
1671
1671
|
result: t,
|
|
1672
1672
|
errorResetBoundary: e,
|
|
1673
1673
|
throwOnError: s,
|
|
1674
|
-
query:
|
|
1675
|
-
}) => t.isError && !e.isReset() && !t.isFetching &&
|
|
1674
|
+
query: r
|
|
1675
|
+
}) => t.isError && !e.isReset() && !t.isFetching && r && vs(s, [t.error, r]), Sr = (t) => {
|
|
1676
1676
|
t.suspense && (typeof t.staleTime != "number" && (t.staleTime = 1e3), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3)));
|
|
1677
|
-
},
|
|
1677
|
+
}, _r = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, Pr = (t, e, s) => e.fetchOptimistic(t).catch(() => {
|
|
1678
1678
|
s.clearReset();
|
|
1679
1679
|
});
|
|
1680
|
-
function
|
|
1680
|
+
function Er(t, e, s) {
|
|
1681
1681
|
var p, f, h, y;
|
|
1682
|
-
const
|
|
1683
|
-
(f = (p =
|
|
1682
|
+
const r = Ee(), a = yr(), c = Cr(), l = r.defaultQueryOptions(t);
|
|
1683
|
+
(f = (p = r.getDefaultOptions().queries) == null ? void 0 : p._experimental_beforeQuery) == null || f.call(
|
|
1684
1684
|
p,
|
|
1685
1685
|
l
|
|
1686
|
-
), l._optimisticResults = a ? "isRestoring" : "optimistic",
|
|
1687
|
-
const [u] =
|
|
1686
|
+
), l._optimisticResults = a ? "isRestoring" : "optimistic", Sr(l), br(l, c), wr(c);
|
|
1687
|
+
const [u] = i.useState(
|
|
1688
1688
|
() => new e(
|
|
1689
|
-
|
|
1689
|
+
r,
|
|
1690
1690
|
l
|
|
1691
1691
|
)
|
|
1692
1692
|
), d = u.getOptimisticResult(l);
|
|
1693
|
-
if (
|
|
1694
|
-
|
|
1693
|
+
if (i.useSyncExternalStore(
|
|
1694
|
+
i.useCallback(
|
|
1695
1695
|
(g) => {
|
|
1696
|
-
const
|
|
1696
|
+
const P = a ? () => {
|
|
1697
1697
|
} : u.subscribe(z.batchCalls(g));
|
|
1698
|
-
return u.updateResult(),
|
|
1698
|
+
return u.updateResult(), P;
|
|
1699
1699
|
},
|
|
1700
1700
|
[u, a]
|
|
1701
1701
|
),
|
|
1702
1702
|
() => u.getCurrentResult(),
|
|
1703
1703
|
() => u.getCurrentResult()
|
|
1704
|
-
),
|
|
1704
|
+
), i.useEffect(() => {
|
|
1705
1705
|
u.setOptions(l, { listeners: !1 });
|
|
1706
|
-
}, [l, u]),
|
|
1707
|
-
throw
|
|
1708
|
-
if (
|
|
1706
|
+
}, [l, u]), _r(l, d))
|
|
1707
|
+
throw Pr(l, u, c);
|
|
1708
|
+
if (jr({
|
|
1709
1709
|
result: d,
|
|
1710
1710
|
errorResetBoundary: c,
|
|
1711
1711
|
throwOnError: l.throwOnError,
|
|
1712
|
-
query:
|
|
1712
|
+
query: r.getQueryCache().get(l.queryHash)
|
|
1713
1713
|
}))
|
|
1714
1714
|
throw d.error;
|
|
1715
|
-
return (y = (h =
|
|
1715
|
+
return (y = (h = r.getDefaultOptions().queries) == null ? void 0 : h._experimental_afterQuery) == null || y.call(
|
|
1716
1716
|
h,
|
|
1717
1717
|
l,
|
|
1718
1718
|
d
|
|
1719
1719
|
), l.notifyOnChangeProps ? d : u.trackResult(d);
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1722
|
-
return
|
|
1721
|
+
function Cs(t, e) {
|
|
1722
|
+
return Er(t, dr);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1725
|
-
const s = Ee(), [
|
|
1726
|
-
() => new
|
|
1724
|
+
function kr(t, e) {
|
|
1725
|
+
const s = Ee(), [r] = i.useState(
|
|
1726
|
+
() => new pr(
|
|
1727
1727
|
s,
|
|
1728
1728
|
t
|
|
1729
1729
|
)
|
|
1730
1730
|
);
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
}, [
|
|
1734
|
-
const a =
|
|
1735
|
-
|
|
1736
|
-
(l) =>
|
|
1737
|
-
[
|
|
1731
|
+
i.useEffect(() => {
|
|
1732
|
+
r.setOptions(t);
|
|
1733
|
+
}, [r, t]);
|
|
1734
|
+
const a = i.useSyncExternalStore(
|
|
1735
|
+
i.useCallback(
|
|
1736
|
+
(l) => r.subscribe(z.batchCalls(l)),
|
|
1737
|
+
[r]
|
|
1738
1738
|
),
|
|
1739
|
-
() =>
|
|
1740
|
-
() =>
|
|
1741
|
-
), c =
|
|
1739
|
+
() => r.getCurrentResult(),
|
|
1740
|
+
() => r.getCurrentResult()
|
|
1741
|
+
), c = i.useCallback(
|
|
1742
1742
|
(l, u) => {
|
|
1743
|
-
|
|
1743
|
+
r.mutate(l, u).catch(xr);
|
|
1744
1744
|
},
|
|
1745
|
-
[
|
|
1745
|
+
[r]
|
|
1746
1746
|
);
|
|
1747
|
-
if (a.error &&
|
|
1747
|
+
if (a.error && vs(r.options.throwOnError, [a.error]))
|
|
1748
1748
|
throw a.error;
|
|
1749
1749
|
return { ...a, mutate: c, mutateAsync: a.mutate };
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1752
|
-
var e, s,
|
|
1753
|
-
if (typeof t == "string" || typeof t == "number")
|
|
1751
|
+
function xs(t) {
|
|
1752
|
+
var e, s, r = "";
|
|
1753
|
+
if (typeof t == "string" || typeof t == "number") r += t;
|
|
1754
1754
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1755
1755
|
var a = t.length;
|
|
1756
|
-
for (e = 0; e < a; e++) t[e] && (s =
|
|
1757
|
-
} else for (s in t) t[s] && (
|
|
1758
|
-
return
|
|
1756
|
+
for (e = 0; e < a; e++) t[e] && (s = xs(t[e])) && (r && (r += " "), r += s);
|
|
1757
|
+
} else for (s in t) t[s] && (r && (r += " "), r += s);
|
|
1758
|
+
return r;
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1761
|
-
for (var t, e, s = 0,
|
|
1762
|
-
return
|
|
1760
|
+
function N() {
|
|
1761
|
+
for (var t, e, s = 0, r = "", a = arguments.length; s < a; s++) (t = arguments[s]) && (e = xs(t)) && (r && (r += " "), r += e);
|
|
1762
|
+
return r;
|
|
1763
1763
|
}
|
|
1764
|
-
var
|
|
1764
|
+
var Ar = Object.defineProperty, Nr = Object.defineProperties, Lr = Object.getOwnPropertyDescriptors, se = Object.getOwnPropertySymbols, bs = Object.prototype.hasOwnProperty, ws = Object.prototype.propertyIsEnumerable, Qe = (t, e, s) => e in t ? Ar(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, C = (t, e) => {
|
|
1765
1765
|
for (var s in e || (e = {}))
|
|
1766
|
-
|
|
1766
|
+
bs.call(e, s) && Qe(t, s, e[s]);
|
|
1767
1767
|
if (se)
|
|
1768
1768
|
for (var s of se(e))
|
|
1769
|
-
|
|
1769
|
+
ws.call(e, s) && Qe(t, s, e[s]);
|
|
1770
1770
|
return t;
|
|
1771
|
-
},
|
|
1771
|
+
}, _ = (t, e) => Nr(t, Lr(e)), M = (t, e) => {
|
|
1772
1772
|
var s = {};
|
|
1773
|
-
for (var
|
|
1774
|
-
|
|
1773
|
+
for (var r in t)
|
|
1774
|
+
bs.call(t, r) && e.indexOf(r) < 0 && (s[r] = t[r]);
|
|
1775
1775
|
if (t != null && se)
|
|
1776
|
-
for (var
|
|
1777
|
-
e.indexOf(
|
|
1776
|
+
for (var r of se(t))
|
|
1777
|
+
e.indexOf(r) < 0 && ws.call(t, r) && (s[r] = t[r]);
|
|
1778
1778
|
return s;
|
|
1779
1779
|
};
|
|
1780
|
-
function
|
|
1780
|
+
function Mr(t, e) {
|
|
1781
1781
|
typeof t == "function" ? t(e) : t != null && (t.current = e);
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
return (e) => t.forEach((s) =>
|
|
1783
|
+
function Fr(...t) {
|
|
1784
|
+
return (e) => t.forEach((s) => Mr(s, e));
|
|
1785
1785
|
}
|
|
1786
|
-
var
|
|
1787
|
-
const s = t, { children:
|
|
1786
|
+
var Rr = i.forwardRef((t, e) => {
|
|
1787
|
+
const s = t, { children: r } = s, a = M(s, ["children"]), c = i.Children.toArray(r), l = c.find(zr);
|
|
1788
1788
|
if (l) {
|
|
1789
|
-
const u = l.props.children, d = c.map((p) => p === l ?
|
|
1790
|
-
return /* @__PURE__ */ n.jsx(Ce,
|
|
1789
|
+
const u = l.props.children, d = c.map((p) => p === l ? i.Children.count(u) > 1 ? i.Children.only(null) : i.isValidElement(u) ? u.props.children : null : p);
|
|
1790
|
+
return /* @__PURE__ */ n.jsx(Ce, _(C({}, a), { ref: e, children: i.isValidElement(u) ? i.cloneElement(u, void 0, d) : null }));
|
|
1791
1791
|
}
|
|
1792
|
-
return /* @__PURE__ */ n.jsx(Ce,
|
|
1792
|
+
return /* @__PURE__ */ n.jsx(Ce, _(C({}, a), { ref: e, children: r }));
|
|
1793
1793
|
});
|
|
1794
|
-
|
|
1795
|
-
var Ce =
|
|
1796
|
-
const s = t, { children:
|
|
1797
|
-
if (
|
|
1798
|
-
const c =
|
|
1799
|
-
return
|
|
1794
|
+
Rr.displayName = "Slot";
|
|
1795
|
+
var Ce = i.forwardRef((t, e) => {
|
|
1796
|
+
const s = t, { children: r } = s, a = M(s, ["children"]);
|
|
1797
|
+
if (i.isValidElement(r)) {
|
|
1798
|
+
const c = Tr(r);
|
|
1799
|
+
return i.cloneElement(r, _(C({}, Dr(a, r.props)), {
|
|
1800
1800
|
// @ts-ignore
|
|
1801
|
-
ref: e ?
|
|
1801
|
+
ref: e ? Fr(e, c) : c
|
|
1802
1802
|
}));
|
|
1803
1803
|
}
|
|
1804
|
-
return
|
|
1804
|
+
return i.Children.count(r) > 1 ? i.Children.only(null) : null;
|
|
1805
1805
|
});
|
|
1806
1806
|
Ce.displayName = "SlotClone";
|
|
1807
|
-
var
|
|
1808
|
-
function
|
|
1809
|
-
return
|
|
1807
|
+
var Or = ({ children: t }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
|
|
1808
|
+
function zr(t) {
|
|
1809
|
+
return i.isValidElement(t) && t.type === Or;
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1812
|
-
const s =
|
|
1813
|
-
for (const
|
|
1814
|
-
const a = t[
|
|
1815
|
-
/^on[A-Z]/.test(
|
|
1811
|
+
function Dr(t, e) {
|
|
1812
|
+
const s = C({}, e);
|
|
1813
|
+
for (const r in e) {
|
|
1814
|
+
const a = t[r], c = e[r];
|
|
1815
|
+
/^on[A-Z]/.test(r) ? a && c ? s[r] = (...u) => {
|
|
1816
1816
|
c(...u), a(...u);
|
|
1817
|
-
} : a && (s[
|
|
1817
|
+
} : a && (s[r] = a) : r === "style" ? s[r] = C(C({}, a), c) : r === "className" && (s[r] = [a, c].filter(Boolean).join(" "));
|
|
1818
1818
|
}
|
|
1819
|
-
return
|
|
1819
|
+
return C(C({}, t), s);
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function Tr(t) {
|
|
1822
1822
|
var e, s;
|
|
1823
|
-
let
|
|
1824
|
-
return a ? t.ref : (
|
|
1823
|
+
let r = (e = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : e.get, a = r && "isReactWarning" in r && r.isReactWarning;
|
|
1824
|
+
return a ? t.ref : (r = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, a = r && "isReactWarning" in r && r.isReactWarning, a ? t.props.ref : t.props.ref || t.ref);
|
|
1825
1825
|
}
|
|
1826
|
-
var
|
|
1827
|
-
const
|
|
1826
|
+
var Ur = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
1827
|
+
const r = `${t.charAt(0)}${e.charAt(0)}`;
|
|
1828
1828
|
return /* @__PURE__ */ n.jsx(
|
|
1829
1829
|
"span",
|
|
1830
1830
|
{
|
|
1831
1831
|
className: `avatar avatar--${s}`,
|
|
1832
1832
|
"aria-label": `${t} ${e}`,
|
|
1833
1833
|
role: "img",
|
|
1834
|
-
children: /* @__PURE__ */ n.jsx("span", { className: "avatar__initials", children:
|
|
1834
|
+
children: /* @__PURE__ */ n.jsx("span", { className: "avatar__initials", children: r })
|
|
1835
1835
|
}
|
|
1836
1836
|
);
|
|
1837
|
-
},
|
|
1837
|
+
}, Kt = i.forwardRef(
|
|
1838
1838
|
(t, e) => {
|
|
1839
1839
|
var s = t, {
|
|
1840
|
-
iconLeft:
|
|
1840
|
+
iconLeft: r,
|
|
1841
1841
|
iconRight: a,
|
|
1842
1842
|
isPending: c = !1,
|
|
1843
1843
|
isFilled: l = !1,
|
|
1844
1844
|
variant: u,
|
|
1845
1845
|
className: d,
|
|
1846
1846
|
children: p
|
|
1847
|
-
} = s, f =
|
|
1847
|
+
} = s, f = M(s, [
|
|
1848
1848
|
"iconLeft",
|
|
1849
1849
|
"iconRight",
|
|
1850
1850
|
"isPending",
|
|
@@ -1853,13 +1853,13 @@ var Ri = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
|
1853
1853
|
"className",
|
|
1854
1854
|
"children"
|
|
1855
1855
|
]);
|
|
1856
|
-
const h = !!
|
|
1856
|
+
const h = !!r || !!a;
|
|
1857
1857
|
return /* @__PURE__ */ n.jsxs(
|
|
1858
1858
|
"button",
|
|
1859
|
-
|
|
1859
|
+
_(C({
|
|
1860
1860
|
ref: e
|
|
1861
1861
|
}, f), {
|
|
1862
|
-
className:
|
|
1862
|
+
className: N(
|
|
1863
1863
|
"button",
|
|
1864
1864
|
u && `button--${u}`,
|
|
1865
1865
|
u && l && `button--${u}--filled`,
|
|
@@ -1868,7 +1868,7 @@ var Ri = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
|
1868
1868
|
d
|
|
1869
1869
|
),
|
|
1870
1870
|
children: [
|
|
1871
|
-
|
|
1871
|
+
r && /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: r }),
|
|
1872
1872
|
!!p && /* @__PURE__ */ n.jsx("span", { className: "button__label", children: p }),
|
|
1873
1873
|
a && /* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: a })
|
|
1874
1874
|
]
|
|
@@ -1876,20 +1876,20 @@ var Ri = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
|
1876
1876
|
);
|
|
1877
1877
|
}
|
|
1878
1878
|
);
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
var
|
|
1879
|
+
Kt.displayName = "Button";
|
|
1880
|
+
i.createContext(void 0);
|
|
1881
|
+
var Qr = i.forwardRef(
|
|
1882
1882
|
(t, e) => {
|
|
1883
|
-
var s = t, { prefix:
|
|
1883
|
+
var s = t, { prefix: r, suffix: a, className: c } = s, l = M(s, ["prefix", "suffix", "className"]);
|
|
1884
1884
|
return /* @__PURE__ */ n.jsxs("div", { className: "input__wrapper", children: [
|
|
1885
|
-
|
|
1885
|
+
r && /* @__PURE__ */ n.jsx("span", { className: "input__prefix", children: r }),
|
|
1886
1886
|
/* @__PURE__ */ n.jsx(
|
|
1887
1887
|
"input",
|
|
1888
|
-
|
|
1888
|
+
C({
|
|
1889
1889
|
ref: e,
|
|
1890
|
-
className:
|
|
1890
|
+
className: N(
|
|
1891
1891
|
"input",
|
|
1892
|
-
|
|
1892
|
+
r && "input--with-prefix",
|
|
1893
1893
|
a && "input--with-suffix",
|
|
1894
1894
|
c
|
|
1895
1895
|
)
|
|
@@ -1899,14 +1899,60 @@ var Oi = r.forwardRef(
|
|
|
1899
1899
|
] });
|
|
1900
1900
|
}
|
|
1901
1901
|
);
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
var
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1902
|
+
Qr.displayName = "TextField";
|
|
1903
|
+
i.createContext(void 0);
|
|
1904
|
+
var js = i.createContext(null), Ss = i.createContext(null), ke = () => {
|
|
1905
|
+
const t = i.useContext(js);
|
|
1906
|
+
if (!t)
|
|
1907
|
+
throw new Error("This component must be used inside <NotificationBanner>.");
|
|
1908
|
+
return t;
|
|
1909
|
+
}, _s = () => {
|
|
1910
|
+
const t = i.useContext(Ss);
|
|
1911
|
+
if (!t)
|
|
1912
|
+
throw new Error("This component must be used inside <NotificationBanner.Actions>.");
|
|
1913
|
+
return t;
|
|
1914
|
+
}, Ps = (t) => {
|
|
1915
|
+
var e = t, {
|
|
1916
|
+
variant: s = "info",
|
|
1917
|
+
children: r,
|
|
1918
|
+
className: a
|
|
1919
|
+
} = e, c = M(e, [
|
|
1920
|
+
"variant",
|
|
1921
|
+
"children",
|
|
1922
|
+
"className"
|
|
1923
|
+
]);
|
|
1924
|
+
return /* @__PURE__ */ n.jsx(js.Provider, { value: !0, children: /* @__PURE__ */ n.jsx("div", _(C({ className: N("notification-banner", s, a) }, c), { children: r })) });
|
|
1925
|
+
};
|
|
1926
|
+
Ps.displayName = "NotificationBanner";
|
|
1927
|
+
var Hr = (t) => {
|
|
1928
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1929
|
+
return ke(), /* @__PURE__ */ n.jsx("div", _(C({ className: N("banner-content", r) }, a), { children: s }));
|
|
1930
|
+
}, Kr = (t) => {
|
|
1931
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1932
|
+
return ke(), /* @__PURE__ */ n.jsx("p", _(C({ className: N("description", r) }, a), { children: s }));
|
|
1933
|
+
}, Wr = (t) => {
|
|
1934
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1935
|
+
return ke(), /* @__PURE__ */ n.jsx(Ss.Provider, { value: !0, children: /* @__PURE__ */ n.jsx("div", _(C({ className: N("actions", r) }, a), { children: s })) });
|
|
1936
|
+
}, Gr = (t) => {
|
|
1937
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1938
|
+
return _s(), /* @__PURE__ */ n.jsx(Kt, _(C({ type: "button", variant: "icon--secondary", className: N("close", r) }, a), { children: s }));
|
|
1939
|
+
}, Vr = (t) => {
|
|
1940
|
+
var e = t, { href: s, children: r, className: a } = e, c = M(e, ["href", "children", "className"]);
|
|
1941
|
+
return _s(), /* @__PURE__ */ n.jsx("a", _(C({ href: s, className: N("link", a) }, c), { children: r }));
|
|
1942
|
+
};
|
|
1943
|
+
Object.assign(Ps, {
|
|
1944
|
+
Content: Hr,
|
|
1945
|
+
Description: Kr,
|
|
1946
|
+
Actions: Wr,
|
|
1947
|
+
CloseButton: Gr,
|
|
1948
|
+
Link: Vr
|
|
1949
|
+
});
|
|
1950
|
+
var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__header__action", children: t }), $r = (t) => {
|
|
1951
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1952
|
+
return /* @__PURE__ */ n.jsx("div", _(C({ className: N("card__body", r) }, a), { children: s }));
|
|
1953
|
+
}, Zr = (t) => /* @__PURE__ */ n.jsx(
|
|
1908
1954
|
"svg",
|
|
1909
|
-
|
|
1955
|
+
_(C({
|
|
1910
1956
|
width: "24",
|
|
1911
1957
|
height: "24",
|
|
1912
1958
|
viewBox: "0 0 24 24",
|
|
@@ -1924,9 +1970,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
1924
1970
|
}
|
|
1925
1971
|
)
|
|
1926
1972
|
})
|
|
1927
|
-
),
|
|
1973
|
+
), Ae = Zr, Xr = (t) => /* @__PURE__ */ n.jsx(
|
|
1928
1974
|
"svg",
|
|
1929
|
-
|
|
1975
|
+
_(C({
|
|
1930
1976
|
width: "24",
|
|
1931
1977
|
height: "24",
|
|
1932
1978
|
viewBox: "0 0 24 24",
|
|
@@ -1944,9 +1990,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
1944
1990
|
}
|
|
1945
1991
|
)
|
|
1946
1992
|
})
|
|
1947
|
-
),
|
|
1993
|
+
), Yr = Xr, Jr = (t) => /* @__PURE__ */ n.jsx(
|
|
1948
1994
|
"svg",
|
|
1949
|
-
|
|
1995
|
+
_(C({
|
|
1950
1996
|
width: "24",
|
|
1951
1997
|
height: "24",
|
|
1952
1998
|
viewBox: "0 0 24 24",
|
|
@@ -1963,9 +2009,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
1963
2009
|
}
|
|
1964
2010
|
)
|
|
1965
2011
|
})
|
|
1966
|
-
),
|
|
2012
|
+
), Ir = Jr, Br = (t) => /* @__PURE__ */ n.jsx(
|
|
1967
2013
|
"svg",
|
|
1968
|
-
|
|
2014
|
+
_(C({
|
|
1969
2015
|
width: "24",
|
|
1970
2016
|
height: "24",
|
|
1971
2017
|
viewBox: "0 0 24 24",
|
|
@@ -1982,9 +2028,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
1982
2028
|
}
|
|
1983
2029
|
)
|
|
1984
2030
|
})
|
|
1985
|
-
),
|
|
2031
|
+
), ti = Br, ei = (t) => /* @__PURE__ */ n.jsx(
|
|
1986
2032
|
"svg",
|
|
1987
|
-
|
|
2033
|
+
_(C({
|
|
1988
2034
|
width: "24",
|
|
1989
2035
|
height: "24",
|
|
1990
2036
|
viewBox: "0 0 24 24",
|
|
@@ -2001,9 +2047,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2001
2047
|
}
|
|
2002
2048
|
)
|
|
2003
2049
|
})
|
|
2004
|
-
),
|
|
2050
|
+
), si = ei, ri = (t) => /* @__PURE__ */ n.jsxs(
|
|
2005
2051
|
"svg",
|
|
2006
|
-
|
|
2052
|
+
_(C({
|
|
2007
2053
|
width: "24",
|
|
2008
2054
|
height: "24",
|
|
2009
2055
|
fill: "none",
|
|
@@ -2038,9 +2084,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2038
2084
|
/* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsx("clipPath", { id: "clip0_19_444", children: /* @__PURE__ */ n.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
2039
2085
|
]
|
|
2040
2086
|
})
|
|
2041
|
-
),
|
|
2087
|
+
), ii = ri, ni = (t) => /* @__PURE__ */ n.jsxs(
|
|
2042
2088
|
"svg",
|
|
2043
|
-
|
|
2089
|
+
_(C({
|
|
2044
2090
|
width: "24",
|
|
2045
2091
|
height: "24",
|
|
2046
2092
|
viewBox: "0 0 24 24",
|
|
@@ -2070,9 +2116,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2070
2116
|
)
|
|
2071
2117
|
]
|
|
2072
2118
|
})
|
|
2073
|
-
),
|
|
2119
|
+
), ai = ni, oi = (t) => /* @__PURE__ */ n.jsxs(
|
|
2074
2120
|
"svg",
|
|
2075
|
-
|
|
2121
|
+
_(C({
|
|
2076
2122
|
width: "24",
|
|
2077
2123
|
height: "24",
|
|
2078
2124
|
viewBox: "0 0 24 24",
|
|
@@ -2122,18 +2168,18 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2122
2168
|
)
|
|
2123
2169
|
]
|
|
2124
2170
|
})
|
|
2125
|
-
),
|
|
2126
|
-
var e = t, { className: s } = e,
|
|
2171
|
+
), li = oi, ci = (t) => {
|
|
2172
|
+
var e = t, { className: s } = e, r = M(e, ["className"]);
|
|
2127
2173
|
return /* @__PURE__ */ n.jsxs(
|
|
2128
2174
|
"svg",
|
|
2129
|
-
|
|
2175
|
+
_(C({
|
|
2130
2176
|
width: "20",
|
|
2131
2177
|
height: "20",
|
|
2132
2178
|
viewBox: "0 0 20 20",
|
|
2133
2179
|
fill: "none",
|
|
2134
2180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2135
|
-
className:
|
|
2136
|
-
},
|
|
2181
|
+
className: N("spinner", s)
|
|
2182
|
+
}, r), {
|
|
2137
2183
|
children: [
|
|
2138
2184
|
/* @__PURE__ */ n.jsx("circle", { cx: "10", cy: "10", r: "9", stroke: "currentColor", strokeOpacity: "0.2", strokeWidth: "1.5" }),
|
|
2139
2185
|
/* @__PURE__ */ n.jsx(
|
|
@@ -2151,9 +2197,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2151
2197
|
]
|
|
2152
2198
|
})
|
|
2153
2199
|
);
|
|
2154
|
-
},
|
|
2200
|
+
}, ui = ci, di = (t) => /* @__PURE__ */ n.jsxs(
|
|
2155
2201
|
"svg",
|
|
2156
|
-
|
|
2202
|
+
_(C({
|
|
2157
2203
|
width: "24",
|
|
2158
2204
|
height: "24",
|
|
2159
2205
|
fill: "none",
|
|
@@ -2185,11 +2231,11 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2185
2231
|
/* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsx("clipPath", { id: "clip0_762_2934", children: /* @__PURE__ */ n.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
2186
2232
|
]
|
|
2187
2233
|
})
|
|
2188
|
-
),
|
|
2234
|
+
), hi = di, fi = (t) => {
|
|
2189
2235
|
const e = (s) => `${s}${t.suffix ? `_${t.suffix}` : ""}`;
|
|
2190
2236
|
return /* @__PURE__ */ n.jsxs(
|
|
2191
2237
|
"svg",
|
|
2192
|
-
|
|
2238
|
+
_(C({
|
|
2193
2239
|
width: "24",
|
|
2194
2240
|
height: "24",
|
|
2195
2241
|
viewBox: "0 0 24 24",
|
|
@@ -2356,9 +2402,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2356
2402
|
]
|
|
2357
2403
|
})
|
|
2358
2404
|
);
|
|
2359
|
-
},
|
|
2405
|
+
}, Es = fi, pi = (t) => /* @__PURE__ */ n.jsxs(
|
|
2360
2406
|
"svg",
|
|
2361
|
-
|
|
2407
|
+
_(C({
|
|
2362
2408
|
fill: "none",
|
|
2363
2409
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2364
2410
|
viewBox: "0 0 24 24",
|
|
@@ -2418,9 +2464,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2418
2464
|
)
|
|
2419
2465
|
]
|
|
2420
2466
|
})
|
|
2421
|
-
),
|
|
2467
|
+
), mi = pi, yi = (t) => /* @__PURE__ */ n.jsx(
|
|
2422
2468
|
"svg",
|
|
2423
|
-
|
|
2469
|
+
_(C({
|
|
2424
2470
|
fill: "none",
|
|
2425
2471
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2426
2472
|
viewBox: "0 0 21 16",
|
|
@@ -2438,9 +2484,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2438
2484
|
}
|
|
2439
2485
|
)
|
|
2440
2486
|
})
|
|
2441
|
-
),
|
|
2487
|
+
), gi = yi, vi = (t) => /* @__PURE__ */ n.jsxs(
|
|
2442
2488
|
"svg",
|
|
2443
|
-
|
|
2489
|
+
_(C({
|
|
2444
2490
|
width: "24",
|
|
2445
2491
|
height: "24",
|
|
2446
2492
|
fill: "none",
|
|
@@ -2465,15 +2511,15 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2465
2511
|
/* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
|
|
2466
2512
|
]
|
|
2467
2513
|
})
|
|
2468
|
-
),
|
|
2514
|
+
), Ci = vi, xi = (t) => {
|
|
2469
2515
|
var e = t, {
|
|
2470
2516
|
variant: s,
|
|
2471
|
-
icon:
|
|
2517
|
+
icon: r,
|
|
2472
2518
|
isStandalone: a,
|
|
2473
2519
|
title: c,
|
|
2474
2520
|
description: l,
|
|
2475
2521
|
className: u
|
|
2476
|
-
} = e, d =
|
|
2522
|
+
} = e, d = M(e, [
|
|
2477
2523
|
"variant",
|
|
2478
2524
|
"icon",
|
|
2479
2525
|
"isStandalone",
|
|
@@ -2483,15 +2529,15 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2483
2529
|
]);
|
|
2484
2530
|
return /* @__PURE__ */ n.jsx(
|
|
2485
2531
|
"div",
|
|
2486
|
-
|
|
2487
|
-
className:
|
|
2532
|
+
_(C({}, d), {
|
|
2533
|
+
className: N(
|
|
2488
2534
|
"card__empty-state",
|
|
2489
2535
|
s === "error" && "card__empty-state--error",
|
|
2490
2536
|
a && "card__empty-state--standalone",
|
|
2491
2537
|
u
|
|
2492
2538
|
),
|
|
2493
2539
|
children: /* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__wrapper", children: [
|
|
2494
|
-
/* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(
|
|
2540
|
+
/* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(hi, {}) : r }),
|
|
2495
2541
|
/* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__content", children: [
|
|
2496
2542
|
/* @__PURE__ */ n.jsx("p", { className: "card__empty-state__title", children: c }),
|
|
2497
2543
|
/* @__PURE__ */ n.jsx("p", { className: "card__empty-state__description", children: l })
|
|
@@ -2499,13 +2545,13 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2499
2545
|
] })
|
|
2500
2546
|
})
|
|
2501
2547
|
);
|
|
2502
|
-
},
|
|
2548
|
+
}, bi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__footer", children: t }), wi = (t) => {
|
|
2503
2549
|
var e = t, {
|
|
2504
2550
|
variant: s = "default",
|
|
2505
|
-
sticky:
|
|
2551
|
+
sticky: r,
|
|
2506
2552
|
className: a,
|
|
2507
2553
|
children: c
|
|
2508
|
-
} = e, l =
|
|
2554
|
+
} = e, l = M(e, [
|
|
2509
2555
|
"variant",
|
|
2510
2556
|
"sticky",
|
|
2511
2557
|
"className",
|
|
@@ -2513,26 +2559,26 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2513
2559
|
]);
|
|
2514
2560
|
return /* @__PURE__ */ n.jsx(
|
|
2515
2561
|
"div",
|
|
2516
|
-
|
|
2517
|
-
className:
|
|
2562
|
+
_(C({}, l), {
|
|
2563
|
+
className: N(
|
|
2518
2564
|
"card__header",
|
|
2519
2565
|
s && `card__header--${s}`,
|
|
2520
|
-
|
|
2566
|
+
r && "card__header--sticky",
|
|
2521
2567
|
a
|
|
2522
2568
|
),
|
|
2523
2569
|
children: c
|
|
2524
2570
|
})
|
|
2525
2571
|
);
|
|
2526
|
-
},
|
|
2572
|
+
}, ji = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__image", children: t }), Si = ({ children: t, className: e }) => /* @__PURE__ */ n.jsx("div", { className: N("card__body__item", e), children: t }), _i = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__body__subtitle", children: t }), Pi = ({ icon: t, children: e }) => /* @__PURE__ */ n.jsxs("div", { className: "card__header__title", children: [
|
|
2527
2573
|
t && /* @__PURE__ */ n.jsx("span", { className: "card__header__title__icon", children: t }),
|
|
2528
2574
|
e
|
|
2529
|
-
] }),
|
|
2575
|
+
] }), ks = i.forwardRef(
|
|
2530
2576
|
(t, e) => {
|
|
2531
|
-
var s = t, { type:
|
|
2532
|
-
return
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
className:
|
|
2577
|
+
var s = t, { type: r, children: a, className: c, variant: l = "default", disabled: u = !1 } = s, d = M(s, ["type", "children", "className", "variant", "disabled"]);
|
|
2578
|
+
return i.createElement(
|
|
2579
|
+
r,
|
|
2580
|
+
C({
|
|
2581
|
+
className: N(
|
|
2536
2582
|
"card",
|
|
2537
2583
|
u && "card--disabled",
|
|
2538
2584
|
l && `card--${l}`,
|
|
@@ -2544,44 +2590,44 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2544
2590
|
);
|
|
2545
2591
|
}
|
|
2546
2592
|
);
|
|
2547
|
-
|
|
2548
|
-
Object.assign(
|
|
2549
|
-
Header:
|
|
2550
|
-
Action:
|
|
2551
|
-
Title:
|
|
2552
|
-
Subtitle:
|
|
2553
|
-
Body:
|
|
2554
|
-
Image:
|
|
2555
|
-
Item:
|
|
2556
|
-
Footer:
|
|
2557
|
-
EmptyState:
|
|
2593
|
+
ks.displayName = "Card";
|
|
2594
|
+
Object.assign(ks, {
|
|
2595
|
+
Header: wi,
|
|
2596
|
+
Action: qr,
|
|
2597
|
+
Title: Pi,
|
|
2598
|
+
Subtitle: _i,
|
|
2599
|
+
Body: $r,
|
|
2600
|
+
Image: ji,
|
|
2601
|
+
Item: Si,
|
|
2602
|
+
Footer: bi,
|
|
2603
|
+
EmptyState: xi
|
|
2558
2604
|
});
|
|
2559
|
-
var
|
|
2560
|
-
var e = t, { className: s, children:
|
|
2561
|
-
return /* @__PURE__ */ n.jsx("div",
|
|
2562
|
-
},
|
|
2563
|
-
var e = t, { className: s, children:
|
|
2564
|
-
return /* @__PURE__ */ n.jsx("span",
|
|
2565
|
-
},
|
|
2566
|
-
const t =
|
|
2605
|
+
var Ei = (t) => {
|
|
2606
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2607
|
+
return /* @__PURE__ */ n.jsx("div", _(C({ className: N("checkbox__content", s) }, a), { children: r }));
|
|
2608
|
+
}, ki = (t) => {
|
|
2609
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2610
|
+
return /* @__PURE__ */ n.jsx("span", _(C({ className: N("checkbox__hint", s) }, a), { children: r }));
|
|
2611
|
+
}, As = i.createContext(void 0), Ai = ({ id: t, name: e, children: s }) => /* @__PURE__ */ n.jsx(As.Provider, { value: { id: t, name: e }, children: s }), Ni = () => {
|
|
2612
|
+
const t = i.useContext(As);
|
|
2567
2613
|
if (!t)
|
|
2568
2614
|
throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
|
|
2569
2615
|
return t;
|
|
2570
|
-
},
|
|
2571
|
-
var e = t, { className: s, children:
|
|
2572
|
-
const { id: c } =
|
|
2573
|
-
return /* @__PURE__ */ n.jsx("label",
|
|
2616
|
+
}, Li = (t) => {
|
|
2617
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2618
|
+
const { id: c } = Ni();
|
|
2619
|
+
return /* @__PURE__ */ n.jsx("label", _(C({ htmlFor: c, className: N("checkbox__label", s) }, a), { children: r }));
|
|
2574
2620
|
}, jt = (t) => {
|
|
2575
2621
|
var e = t, {
|
|
2576
2622
|
id: s,
|
|
2577
|
-
name:
|
|
2623
|
+
name: r,
|
|
2578
2624
|
isPending: a = !1,
|
|
2579
2625
|
variant: c = "neutral",
|
|
2580
2626
|
hasError: l = !1,
|
|
2581
2627
|
single: u,
|
|
2582
2628
|
className: d,
|
|
2583
2629
|
children: p
|
|
2584
|
-
} = e, f =
|
|
2630
|
+
} = e, f = M(e, [
|
|
2585
2631
|
"id",
|
|
2586
2632
|
"name",
|
|
2587
2633
|
"isPending",
|
|
@@ -2591,153 +2637,153 @@ var gr = (t) => {
|
|
|
2591
2637
|
"className",
|
|
2592
2638
|
"children"
|
|
2593
2639
|
]);
|
|
2594
|
-
const h =
|
|
2595
|
-
return
|
|
2640
|
+
const h = i.useRef(null);
|
|
2641
|
+
return i.useEffect(() => {
|
|
2596
2642
|
h.current && (a ? h.current.indeterminate = !0 : h.current.indeterminate = !1);
|
|
2597
2643
|
}, [a]), /* @__PURE__ */ n.jsxs(
|
|
2598
2644
|
"div",
|
|
2599
2645
|
{
|
|
2600
|
-
className:
|
|
2646
|
+
className: N("checkbox", c && `checkbox--${c}`, l && "checkbox--error"),
|
|
2601
2647
|
children: [
|
|
2602
2648
|
/* @__PURE__ */ n.jsx(
|
|
2603
2649
|
"input",
|
|
2604
|
-
|
|
2650
|
+
C({
|
|
2605
2651
|
id: s,
|
|
2606
|
-
name:
|
|
2652
|
+
name: r,
|
|
2607
2653
|
type: "checkbox",
|
|
2608
2654
|
ref: h,
|
|
2609
|
-
className:
|
|
2655
|
+
className: N("checkbox__input", d),
|
|
2610
2656
|
value: u ? "true" : ""
|
|
2611
2657
|
}, f)
|
|
2612
2658
|
),
|
|
2613
|
-
a ? /* @__PURE__ */ n.jsx(
|
|
2614
|
-
/* @__PURE__ */ n.jsx(
|
|
2659
|
+
a ? /* @__PURE__ */ n.jsx(ui, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ n.jsx(Yr, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
|
|
2660
|
+
/* @__PURE__ */ n.jsx(Ai, { id: s, name: r, children: p })
|
|
2615
2661
|
]
|
|
2616
2662
|
}
|
|
2617
2663
|
);
|
|
2618
2664
|
};
|
|
2619
|
-
jt.Content =
|
|
2620
|
-
jt.Label =
|
|
2621
|
-
jt.Hint =
|
|
2665
|
+
jt.Content = Ei;
|
|
2666
|
+
jt.Label = Li;
|
|
2667
|
+
jt.Hint = ki;
|
|
2622
2668
|
jt.Error = Error;
|
|
2623
|
-
var
|
|
2624
|
-
var e = t, { type: s = "div", className:
|
|
2625
|
-
return
|
|
2626
|
-
}, xe = () => document.body.style.removeProperty("overflow"),
|
|
2627
|
-
var e = t, { className: s, children:
|
|
2669
|
+
var Mi = (t) => {
|
|
2670
|
+
var e = t, { type: s = "div", className: r, children: a } = e, c = M(e, ["type", "className", "children"]);
|
|
2671
|
+
return i.createElement(s, C({ className: N("dialog__body", r) }, c), a);
|
|
2672
|
+
}, xe = () => document.body.style.removeProperty("overflow"), He = (t) => t.preventDefault(), Fi = 'a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])', Ri = (t) => {
|
|
2673
|
+
var e = t, { className: s, children: r, shouldAnimate: a = !0 } = e, c = M(e, ["className", "children", "shouldAnimate"]);
|
|
2628
2674
|
const { ref: l, defaultOpen: u, isModal: d, onClose: p } = Xt();
|
|
2629
|
-
return
|
|
2675
|
+
return i.useEffect(() => {
|
|
2630
2676
|
const f = l == null ? void 0 : l.current;
|
|
2631
2677
|
if (f != null && f.open) {
|
|
2632
|
-
const h = f.querySelectorAll(
|
|
2678
|
+
const h = f.querySelectorAll(Fi), y = h[0], g = h[h.length - 1], P = (S) => {
|
|
2633
2679
|
if (!(S.key === "Tab"))
|
|
2634
2680
|
return;
|
|
2635
2681
|
S.shiftKey ? document.activeElement === y && (g.focus(), S.preventDefault()) : document.activeElement === g && (y.focus(), S.preventDefault());
|
|
2636
2682
|
};
|
|
2637
|
-
return document.body.style.overflow = "hidden", f.addEventListener("keydown",
|
|
2638
|
-
f.removeEventListener("keydown",
|
|
2683
|
+
return document.body.style.overflow = "hidden", f.addEventListener("keydown", P), window.addEventListener("popstate", () => xe()), () => {
|
|
2684
|
+
f.removeEventListener("keydown", P), window.removeEventListener("popstate", () => xe());
|
|
2639
2685
|
};
|
|
2640
2686
|
}
|
|
2641
|
-
}, [l]),
|
|
2687
|
+
}, [l]), i.useEffect(() => {
|
|
2642
2688
|
const f = l == null ? void 0 : l.current;
|
|
2643
2689
|
if (!f)
|
|
2644
2690
|
return;
|
|
2645
2691
|
if (u && (f.removeAttribute("open"), f.showModal(), f.focus()), d)
|
|
2646
|
-
return f.addEventListener("cancel",
|
|
2692
|
+
return f.addEventListener("cancel", He), () => f.removeEventListener("cancel", He);
|
|
2647
2693
|
const h = ({ clientX: y, clientY: g }) => {
|
|
2648
|
-
const { top:
|
|
2649
|
-
|
|
2694
|
+
const { top: P, right: S, bottom: E, left: x } = f.getBoundingClientRect(), b = 0 < g && 0 < y, w = P < g && g < E, F = x < y && y < S;
|
|
2695
|
+
b && !(w && F) && p();
|
|
2650
2696
|
};
|
|
2651
2697
|
return f.addEventListener("cancel", p), f.addEventListener("mousedown", h), () => {
|
|
2652
2698
|
f.removeEventListener("cancel", p), f.removeEventListener("mousedown", h);
|
|
2653
2699
|
};
|
|
2654
2700
|
}, [l, d, p, u]), /* @__PURE__ */ n.jsx(
|
|
2655
2701
|
"dialog",
|
|
2656
|
-
|
|
2702
|
+
_(C({
|
|
2657
2703
|
ref: l,
|
|
2658
2704
|
open: u,
|
|
2659
2705
|
"aria-modal": !!d,
|
|
2660
2706
|
"aria-labelledby": "dialogTitle",
|
|
2661
|
-
className:
|
|
2707
|
+
className: N("dialog", a && "dialog--animated", s)
|
|
2662
2708
|
}, c), {
|
|
2663
|
-
children:
|
|
2709
|
+
children: r
|
|
2664
2710
|
})
|
|
2665
2711
|
);
|
|
2666
|
-
},
|
|
2667
|
-
const a =
|
|
2712
|
+
}, Ns = i.createContext(void 0), Oi = ({ defaultOpen: t, onClose: e, isModal: s, children: r }) => {
|
|
2713
|
+
const a = i.useRef(null), c = i.useRef(e), l = i.useCallback(() => {
|
|
2668
2714
|
var u;
|
|
2669
2715
|
xe(), (u = a.current) == null || u.close(), c.current && (c == null || c.current());
|
|
2670
2716
|
}, [a]);
|
|
2671
|
-
return /* @__PURE__ */ n.jsx(
|
|
2717
|
+
return /* @__PURE__ */ n.jsx(Ns.Provider, { value: { ref: a, defaultOpen: t, isModal: s, onClose: l }, children: r });
|
|
2672
2718
|
}, Xt = () => {
|
|
2673
|
-
const t =
|
|
2719
|
+
const t = i.useContext(Ns);
|
|
2674
2720
|
if (!t)
|
|
2675
2721
|
throw new Error("Dialog compound components can not be rendered outside of Dialog");
|
|
2676
2722
|
return t;
|
|
2677
|
-
},
|
|
2678
|
-
var e = t, { children: s } = e,
|
|
2723
|
+
}, zi = (t) => {
|
|
2724
|
+
var e = t, { children: s } = e, r = M(e, ["children"]);
|
|
2679
2725
|
const { onClose: a } = Xt();
|
|
2680
|
-
return /* @__PURE__ */ n.jsx(
|
|
2681
|
-
},
|
|
2682
|
-
var s = t, { className:
|
|
2726
|
+
return /* @__PURE__ */ n.jsx(Kt, _(C({ onClick: a }, r), { children: s }));
|
|
2727
|
+
}, Ls = i.forwardRef((t, e) => {
|
|
2728
|
+
var s = t, { className: r } = s, a = M(s, ["className"]);
|
|
2683
2729
|
const { onClose: c } = Xt();
|
|
2684
2730
|
return /* @__PURE__ */ n.jsx(
|
|
2685
|
-
|
|
2686
|
-
|
|
2731
|
+
Kt,
|
|
2732
|
+
C({
|
|
2687
2733
|
type: "submit",
|
|
2688
2734
|
ref: e,
|
|
2689
2735
|
formMethod: "dialog",
|
|
2690
2736
|
onClick: c,
|
|
2691
|
-
iconLeft: /* @__PURE__ */ n.jsx(
|
|
2737
|
+
iconLeft: /* @__PURE__ */ n.jsx(Ir, {}),
|
|
2692
2738
|
variant: "icon--secondary",
|
|
2693
|
-
className:
|
|
2739
|
+
className: N("dialog__close button--icon", r)
|
|
2694
2740
|
}, a)
|
|
2695
2741
|
);
|
|
2696
2742
|
});
|
|
2697
|
-
|
|
2698
|
-
var
|
|
2699
|
-
var e = t, { className: s, children:
|
|
2700
|
-
return /* @__PURE__ */ n.jsx("div",
|
|
2701
|
-
},
|
|
2702
|
-
var e = t, { icon: s, children:
|
|
2703
|
-
const { ref: l } = Xt(), u =
|
|
2704
|
-
return
|
|
2743
|
+
Ls.displayName = "Close";
|
|
2744
|
+
var Di = (t) => {
|
|
2745
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2746
|
+
return /* @__PURE__ */ n.jsx("div", _(C({ className: N("dialog__footer", s) }, a), { children: r }));
|
|
2747
|
+
}, Ti = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "dialog__header", children: t }), Ui = (t) => {
|
|
2748
|
+
var e = t, { icon: s, children: r, className: a } = e, c = M(e, ["icon", "children", "className"]);
|
|
2749
|
+
const { ref: l } = Xt(), u = i.useRef(null);
|
|
2750
|
+
return i.useEffect(() => {
|
|
2705
2751
|
l != null && l.current && l.current.focus();
|
|
2706
2752
|
}, [l]), /* @__PURE__ */ n.jsxs(
|
|
2707
2753
|
"div",
|
|
2708
|
-
|
|
2754
|
+
_(C({
|
|
2709
2755
|
tabIndex: 0,
|
|
2710
2756
|
ref: u,
|
|
2711
2757
|
id: "dialogTitle",
|
|
2712
|
-
className:
|
|
2758
|
+
className: N("dialog__header__title", a)
|
|
2713
2759
|
}, c), {
|
|
2714
2760
|
children: [
|
|
2715
2761
|
s && /* @__PURE__ */ n.jsx("span", { className: "dialog__header__icon", children: s }),
|
|
2716
|
-
|
|
2762
|
+
r
|
|
2717
2763
|
]
|
|
2718
2764
|
})
|
|
2719
2765
|
);
|
|
2720
|
-
},
|
|
2721
|
-
var e = t, { children: s } = e,
|
|
2766
|
+
}, Qi = (t) => {
|
|
2767
|
+
var e = t, { children: s } = e, r = M(e, ["children"]);
|
|
2722
2768
|
const { ref: a } = Xt();
|
|
2723
|
-
return /* @__PURE__ */ n.jsx(
|
|
2769
|
+
return /* @__PURE__ */ n.jsx(Kt, _(C({ onClick: () => {
|
|
2724
2770
|
var c;
|
|
2725
2771
|
return (c = a == null ? void 0 : a.current) == null ? void 0 : c.showModal();
|
|
2726
|
-
} },
|
|
2727
|
-
}, K = ({ defaultOpen: t, isModal: e, children: s, onClose:
|
|
2728
|
-
K.Trigger =
|
|
2729
|
-
K.Root =
|
|
2730
|
-
K.Title =
|
|
2731
|
-
K.Header =
|
|
2732
|
-
K.Body =
|
|
2733
|
-
K.Footer =
|
|
2734
|
-
K.Button =
|
|
2735
|
-
K.Close =
|
|
2736
|
-
var
|
|
2772
|
+
} }, r), { children: s }));
|
|
2773
|
+
}, K = ({ defaultOpen: t, isModal: e, children: s, onClose: r }) => /* @__PURE__ */ n.jsx(Oi, { defaultOpen: !!t, isModal: e, onClose: r, children: s });
|
|
2774
|
+
K.Trigger = Qi;
|
|
2775
|
+
K.Root = Ri;
|
|
2776
|
+
K.Title = Ui;
|
|
2777
|
+
K.Header = Ti;
|
|
2778
|
+
K.Body = Mi;
|
|
2779
|
+
K.Footer = Di;
|
|
2780
|
+
K.Button = zi;
|
|
2781
|
+
K.Close = Ls;
|
|
2782
|
+
var Ms = i.createContext(void 0), Hi = ({
|
|
2737
2783
|
id: t,
|
|
2738
2784
|
position: e,
|
|
2739
2785
|
isOpen: s,
|
|
2740
|
-
setIsOpen:
|
|
2786
|
+
setIsOpen: r,
|
|
2741
2787
|
activeItemIndex: a,
|
|
2742
2788
|
setActiveItemIndex: c,
|
|
2743
2789
|
clearActiveItemIndex: l,
|
|
@@ -2745,13 +2791,13 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2745
2791
|
contentRef: d,
|
|
2746
2792
|
children: p
|
|
2747
2793
|
}) => /* @__PURE__ */ n.jsx(
|
|
2748
|
-
|
|
2794
|
+
Ms.Provider,
|
|
2749
2795
|
{
|
|
2750
2796
|
value: {
|
|
2751
2797
|
id: t,
|
|
2752
2798
|
position: e,
|
|
2753
2799
|
isOpen: s,
|
|
2754
|
-
setIsOpen:
|
|
2800
|
+
setIsOpen: r,
|
|
2755
2801
|
activeItemIndex: a,
|
|
2756
2802
|
setActiveItemIndex: c,
|
|
2757
2803
|
clearActiveItemIndex: l,
|
|
@@ -2760,15 +2806,15 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2760
2806
|
},
|
|
2761
2807
|
children: p
|
|
2762
2808
|
}
|
|
2763
|
-
),
|
|
2764
|
-
const t =
|
|
2809
|
+
), Fs = () => {
|
|
2810
|
+
const t = i.useContext(Ms);
|
|
2765
2811
|
if (t === void 0)
|
|
2766
2812
|
throw new Error("useMenu must be used within a MenuProvider");
|
|
2767
2813
|
return t;
|
|
2768
|
-
},
|
|
2814
|
+
}, Ki = ({ as: t, children: e }) => {
|
|
2769
2815
|
const {
|
|
2770
2816
|
id: s,
|
|
2771
|
-
position:
|
|
2817
|
+
position: r,
|
|
2772
2818
|
isOpen: a,
|
|
2773
2819
|
setIsOpen: c,
|
|
2774
2820
|
activeItemIndex: l,
|
|
@@ -2776,21 +2822,21 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2776
2822
|
clearActiveItemIndex: d,
|
|
2777
2823
|
triggerRef: p,
|
|
2778
2824
|
contentRef: f
|
|
2779
|
-
} =
|
|
2825
|
+
} = Fs(), h = (y) => {
|
|
2780
2826
|
var g;
|
|
2781
2827
|
if (!a)
|
|
2782
2828
|
return;
|
|
2783
2829
|
if (y.key === "Escape")
|
|
2784
2830
|
return d(), c(!1), (g = p.current) == null ? void 0 : g.focus();
|
|
2785
|
-
const
|
|
2831
|
+
const P = y.shiftKey, S = Os(f.current).length - 1;
|
|
2786
2832
|
switch (y.key) {
|
|
2787
2833
|
case "Tab": {
|
|
2788
|
-
if (
|
|
2834
|
+
if (P && l !== 0)
|
|
2789
2835
|
return y.preventDefault(), u(l ? Math.max(0, l - 1) : 0);
|
|
2790
|
-
if (!
|
|
2836
|
+
if (!P && l !== S) {
|
|
2791
2837
|
y.preventDefault();
|
|
2792
|
-
const
|
|
2793
|
-
return u(Math.min(S,
|
|
2838
|
+
const E = l !== void 0 ? l + 1 : 0;
|
|
2839
|
+
return u(Math.min(S, E));
|
|
2794
2840
|
}
|
|
2795
2841
|
break;
|
|
2796
2842
|
}
|
|
@@ -2800,8 +2846,8 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2800
2846
|
case "ArrowDown":
|
|
2801
2847
|
case "ArrowRight": {
|
|
2802
2848
|
y.preventDefault();
|
|
2803
|
-
const
|
|
2804
|
-
return u(Math.min(S,
|
|
2849
|
+
const E = l !== void 0 ? l + 1 : 0;
|
|
2850
|
+
return u(Math.min(S, E));
|
|
2805
2851
|
}
|
|
2806
2852
|
case "Home":
|
|
2807
2853
|
return y.preventDefault(), u(0);
|
|
@@ -2809,12 +2855,12 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2809
2855
|
return y.preventDefault(), u(S);
|
|
2810
2856
|
}
|
|
2811
2857
|
};
|
|
2812
|
-
return t ?
|
|
2858
|
+
return t ? i.createElement(
|
|
2813
2859
|
t,
|
|
2814
2860
|
{
|
|
2815
2861
|
id: `${s}-content`,
|
|
2816
2862
|
ref: f,
|
|
2817
|
-
className:
|
|
2863
|
+
className: N("menu__list", `menu__list--${r}`, a && "menu__list--active"),
|
|
2818
2864
|
onKeyDown: h
|
|
2819
2865
|
},
|
|
2820
2866
|
e
|
|
@@ -2825,536 +2871,536 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2825
2871
|
{
|
|
2826
2872
|
id: `${s}-content`,
|
|
2827
2873
|
ref: f,
|
|
2828
|
-
className:
|
|
2874
|
+
className: N("menu__list", `menu__list--${r}`, a && "menu__list--active"),
|
|
2829
2875
|
onKeyDown: h,
|
|
2830
2876
|
children: e
|
|
2831
2877
|
}
|
|
2832
2878
|
)
|
|
2833
2879
|
);
|
|
2834
|
-
},
|
|
2835
|
-
var e = t, { children: s, className:
|
|
2836
|
-
return /* @__PURE__ */ n.jsx("li",
|
|
2837
|
-
},
|
|
2838
|
-
const { id: s, isOpen:
|
|
2839
|
-
c(), a((f) => !f),
|
|
2880
|
+
}, Wi = (t) => {
|
|
2881
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
2882
|
+
return /* @__PURE__ */ n.jsx("li", _(C({}, a), { className: N("menu__list-item", r), children: s }));
|
|
2883
|
+
}, Rs = ({ children: t, className: e }) => {
|
|
2884
|
+
const { id: s, isOpen: r, setIsOpen: a, clearActiveItemIndex: c, setActiveItemIndex: l, triggerRef: u } = Fs(), d = () => {
|
|
2885
|
+
c(), a((f) => !f), r || l(0);
|
|
2840
2886
|
}, p = (f) => {
|
|
2841
|
-
if (
|
|
2887
|
+
if (r) {
|
|
2842
2888
|
if (f.key === "Escape")
|
|
2843
2889
|
return c(), a(!1);
|
|
2844
2890
|
f.key === "ArrowDown" && (f.preventDefault(), l(0));
|
|
2845
2891
|
}
|
|
2846
2892
|
};
|
|
2847
|
-
return
|
|
2893
|
+
return i.cloneElement(t, {
|
|
2848
2894
|
id: `${s}-trigger`,
|
|
2849
2895
|
ref: u,
|
|
2850
|
-
className:
|
|
2896
|
+
className: N("menu__trigger", e),
|
|
2851
2897
|
onClick: d,
|
|
2852
2898
|
onKeyDown: p,
|
|
2853
|
-
"aria-expanded":
|
|
2899
|
+
"aria-expanded": r,
|
|
2854
2900
|
"aria-controls": `${s}-content`
|
|
2855
2901
|
});
|
|
2856
2902
|
};
|
|
2857
|
-
|
|
2858
|
-
var
|
|
2859
|
-
var e = t, { type: s, id:
|
|
2860
|
-
const d =
|
|
2861
|
-
g !== S && g !== void 0 && f.current && (
|
|
2862
|
-
const
|
|
2863
|
-
|
|
2864
|
-
},
|
|
2865
|
-
var
|
|
2866
|
-
((
|
|
2903
|
+
Rs.displayName = "Trigger";
|
|
2904
|
+
var Os = (t) => t ? t.tagName === "UL" ? t.children : Array.from(t.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], G = (t) => {
|
|
2905
|
+
var e = t, { type: s, id: r, position: a = "bottom-end", children: c, className: l } = e, u = M(e, ["type", "id", "position", "children", "className"]);
|
|
2906
|
+
const d = i.useRef(null), p = i.useRef(null), f = i.useRef(null), [h, y] = i.useState(!1), [g, P] = i.useState(), [S, E] = i.useState(g);
|
|
2907
|
+
g !== S && g !== void 0 && f.current && (Os(f.current)[g].firstChild.focus(), E(g));
|
|
2908
|
+
const x = () => {
|
|
2909
|
+
P(void 0), E(void 0);
|
|
2910
|
+
}, b = (w) => {
|
|
2911
|
+
var F;
|
|
2912
|
+
((F = d.current) == null ? void 0 : F.contains(w.relatedTarget)) || (x(), y(!1));
|
|
2867
2913
|
};
|
|
2868
2914
|
return /* @__PURE__ */ n.jsx(
|
|
2869
|
-
|
|
2915
|
+
Hi,
|
|
2870
2916
|
{
|
|
2871
|
-
id:
|
|
2917
|
+
id: r,
|
|
2872
2918
|
position: a,
|
|
2873
2919
|
isOpen: h,
|
|
2874
2920
|
setIsOpen: y,
|
|
2875
2921
|
activeItemIndex: g,
|
|
2876
|
-
setActiveItemIndex:
|
|
2877
|
-
clearActiveItemIndex:
|
|
2922
|
+
setActiveItemIndex: P,
|
|
2923
|
+
clearActiveItemIndex: x,
|
|
2878
2924
|
triggerRef: p,
|
|
2879
2925
|
contentRef: f,
|
|
2880
|
-
children:
|
|
2926
|
+
children: i.createElement(
|
|
2881
2927
|
s,
|
|
2882
|
-
|
|
2883
|
-
id:
|
|
2928
|
+
_(C({}, u), {
|
|
2929
|
+
id: r,
|
|
2884
2930
|
ref: d,
|
|
2885
2931
|
className: `menu ${l || ""}`,
|
|
2886
|
-
onBlur:
|
|
2932
|
+
onBlur: b
|
|
2887
2933
|
}),
|
|
2888
2934
|
c
|
|
2889
2935
|
)
|
|
2890
2936
|
}
|
|
2891
2937
|
);
|
|
2892
2938
|
};
|
|
2893
|
-
G.Trigger =
|
|
2894
|
-
G.Content =
|
|
2895
|
-
G.Item =
|
|
2896
|
-
|
|
2897
|
-
var
|
|
2898
|
-
[...new Set(
|
|
2939
|
+
G.Trigger = Rs;
|
|
2940
|
+
G.Content = Ki;
|
|
2941
|
+
G.Item = Wi;
|
|
2942
|
+
i.createContext(void 0);
|
|
2943
|
+
var Gi = (/* @__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");
|
|
2944
|
+
[...new Set(Gi.values())].map((t) => ({
|
|
2899
2945
|
label: `+${t}`,
|
|
2900
2946
|
value: t
|
|
2901
2947
|
}));
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
var
|
|
2905
|
-
const
|
|
2906
|
-
categoriesVegetables:
|
|
2907
|
-
() => import("./Categoriesvegetables-
|
|
2948
|
+
i.createContext(void 0);
|
|
2949
|
+
i.createContext(void 0);
|
|
2950
|
+
var re = /* @__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))(re || {});
|
|
2951
|
+
const Vi = {
|
|
2952
|
+
categoriesVegetables: i.lazy(
|
|
2953
|
+
() => import("./Categoriesvegetables-DaKG4WyY.js")
|
|
2908
2954
|
),
|
|
2909
|
-
categoriesMeat:
|
|
2910
|
-
categoriesFish:
|
|
2911
|
-
categoriesDairy:
|
|
2912
|
-
categoriesBreakfast:
|
|
2913
|
-
() => import("./Categoriesbreakfast-
|
|
2914
|
-
),
|
|
2915
|
-
categoriesSnacks:
|
|
2916
|
-
() => import("./Categoriessnacks-
|
|
2917
|
-
),
|
|
2918
|
-
categoriesCandy:
|
|
2919
|
-
categoriesNonFood:
|
|
2920
|
-
() => import("./Categoriesnonfood-
|
|
2921
|
-
),
|
|
2922
|
-
categoriesDryFood:
|
|
2923
|
-
() => import("./Categoriesdryfood-
|
|
2924
|
-
),
|
|
2925
|
-
categoriesTins:
|
|
2926
|
-
categoriesGrid:
|
|
2927
|
-
categoriesSoda:
|
|
2928
|
-
categoriesBakery:
|
|
2929
|
-
() => import("./Categoriesbakery-
|
|
2930
|
-
),
|
|
2931
|
-
categoriesWine:
|
|
2932
|
-
categoriesBaby:
|
|
2933
|
-
categoriesDiet:
|
|
2934
|
-
categoriesHygiene:
|
|
2935
|
-
() => import("./Categorieshygiene-
|
|
2936
|
-
),
|
|
2937
|
-
categoriesCleaning:
|
|
2938
|
-
() => import("./Categoriescleaning-
|
|
2939
|
-
),
|
|
2940
|
-
categoriesPets:
|
|
2941
|
-
categoriesFreezer:
|
|
2942
|
-
() => import("./Categoriesfreezer-
|
|
2943
|
-
),
|
|
2944
|
-
categoriesBbq:
|
|
2945
|
-
categoriesMealbox:
|
|
2946
|
-
() => import("./Categoriesmealbox-
|
|
2947
|
-
),
|
|
2948
|
-
categoriesBrik:
|
|
2949
|
-
categoriesGranen:
|
|
2950
|
-
() => import("./Categoriesgranen-
|
|
2951
|
-
),
|
|
2952
|
-
categoriesConserve:
|
|
2953
|
-
() => import("./Categoriesconserve-
|
|
2954
|
-
),
|
|
2955
|
-
categoriesHome:
|
|
2956
|
-
categoriesEaster:
|
|
2957
|
-
() => import("./Categorieseaster-
|
|
2958
|
-
),
|
|
2959
|
-
categoriesOnlinePromo:
|
|
2960
|
-
() => import("./Categoriesonlinepromo-
|
|
2961
|
-
),
|
|
2962
|
-
categoriesSportFood:
|
|
2963
|
-
() => import("./Categoriessportfood-
|
|
2964
|
-
),
|
|
2965
|
-
categoriesClothing:
|
|
2966
|
-
() => import("./Categoriesclothing-
|
|
2967
|
-
),
|
|
2968
|
-
categoriesEnergy:
|
|
2969
|
-
() => import("./Categoriesenergy-
|
|
2970
|
-
),
|
|
2971
|
-
categoriesDeskAndTravel:
|
|
2972
|
-
() => import("./Categoriesdeskandtravel-
|
|
2973
|
-
),
|
|
2974
|
-
categoriesCigarette:
|
|
2975
|
-
() => import("./Categoriescigarette-
|
|
2976
|
-
),
|
|
2977
|
-
categoriesFood:
|
|
2978
|
-
categoriesChild:
|
|
2979
|
-
categoriesPuzzle:
|
|
2980
|
-
() => import("./Categoriespuzzle-
|
|
2981
|
-
),
|
|
2982
|
-
categoriesToys:
|
|
2983
|
-
categoriesCar:
|
|
2984
|
-
categoriesPlaceholder:
|
|
2985
|
-
() => import("./Categoriesplaceholder-
|
|
2986
|
-
),
|
|
2987
|
-
categoriesFuel:
|
|
2988
|
-
categoriesCarAndBike:
|
|
2989
|
-
() => import("./Categoriescarandbike
|
|
2990
|
-
),
|
|
2991
|
-
categoriesToyAndHobby:
|
|
2992
|
-
() => import("./Categoriestoyandhobby-
|
|
2993
|
-
),
|
|
2994
|
-
categoriesMultimedia:
|
|
2995
|
-
() => import("./Categoriesmultimedia-
|
|
2996
|
-
),
|
|
2997
|
-
categoriesParty:
|
|
2998
|
-
toolsPay:
|
|
2999
|
-
toolsReceipt:
|
|
3000
|
-
toolsFuel:
|
|
3001
|
-
toolsStoreLocator:
|
|
3002
|
-
() => import("./Toolsstorelocator-
|
|
3003
|
-
),
|
|
3004
|
-
toolsStats:
|
|
3005
|
-
toolsShowXtraOld:
|
|
3006
|
-
() => import("./Toolsshowxtraold-
|
|
2955
|
+
categoriesMeat: i.lazy(() => import("./Categoriesmeat-DDETfqmu.js")),
|
|
2956
|
+
categoriesFish: i.lazy(() => import("./Categoriesfish-B1P-U203.js")),
|
|
2957
|
+
categoriesDairy: i.lazy(() => import("./Categoriesdairy-zA59DtKo.js")),
|
|
2958
|
+
categoriesBreakfast: i.lazy(
|
|
2959
|
+
() => import("./Categoriesbreakfast-Bll-Mi7n.js")
|
|
2960
|
+
),
|
|
2961
|
+
categoriesSnacks: i.lazy(
|
|
2962
|
+
() => import("./Categoriessnacks-9KlAVhfs.js")
|
|
2963
|
+
),
|
|
2964
|
+
categoriesCandy: i.lazy(() => import("./Categoriescandy-s7ExjVVD.js")),
|
|
2965
|
+
categoriesNonFood: i.lazy(
|
|
2966
|
+
() => import("./Categoriesnonfood-B0tE2q3x.js")
|
|
2967
|
+
),
|
|
2968
|
+
categoriesDryFood: i.lazy(
|
|
2969
|
+
() => import("./Categoriesdryfood-Cgp3gROJ.js")
|
|
2970
|
+
),
|
|
2971
|
+
categoriesTins: i.lazy(() => import("./Categoriestins-TYY6cP6b.js")),
|
|
2972
|
+
categoriesGrid: i.lazy(() => import("./Categoriesgrid-C0W01uYu.js")),
|
|
2973
|
+
categoriesSoda: i.lazy(() => import("./Categoriessoda--eBylTkI.js")),
|
|
2974
|
+
categoriesBakery: i.lazy(
|
|
2975
|
+
() => import("./Categoriesbakery-DlKcDPmz.js")
|
|
2976
|
+
),
|
|
2977
|
+
categoriesWine: i.lazy(() => import("./Categorieswine-CM7b6_wY.js")),
|
|
2978
|
+
categoriesBaby: i.lazy(() => import("./Categoriesbaby-DOC_ZuHD.js")),
|
|
2979
|
+
categoriesDiet: i.lazy(() => import("./Categoriesdiet-CVom5yc8.js")),
|
|
2980
|
+
categoriesHygiene: i.lazy(
|
|
2981
|
+
() => import("./Categorieshygiene-ZpQoIN9G.js")
|
|
2982
|
+
),
|
|
2983
|
+
categoriesCleaning: i.lazy(
|
|
2984
|
+
() => import("./Categoriescleaning-Cgk6SII3.js")
|
|
2985
|
+
),
|
|
2986
|
+
categoriesPets: i.lazy(() => import("./Categoriespets-D44FbzNo.js")),
|
|
2987
|
+
categoriesFreezer: i.lazy(
|
|
2988
|
+
() => import("./Categoriesfreezer-wGYA4amT.js")
|
|
2989
|
+
),
|
|
2990
|
+
categoriesBbq: i.lazy(() => import("./Categoriesbbq-Q-bgGly5.js")),
|
|
2991
|
+
categoriesMealbox: i.lazy(
|
|
2992
|
+
() => import("./Categoriesmealbox-BD9Kn9-E.js")
|
|
2993
|
+
),
|
|
2994
|
+
categoriesBrik: i.lazy(() => import("./Categoriesbrik-BqUGdrqy.js")),
|
|
2995
|
+
categoriesGranen: i.lazy(
|
|
2996
|
+
() => import("./Categoriesgranen-CEJ4rlK1.js")
|
|
2997
|
+
),
|
|
2998
|
+
categoriesConserve: i.lazy(
|
|
2999
|
+
() => import("./Categoriesconserve-DAVg_yOJ.js")
|
|
3000
|
+
),
|
|
3001
|
+
categoriesHome: i.lazy(() => import("./Categorieshome-C6vMWaOG.js")),
|
|
3002
|
+
categoriesEaster: i.lazy(
|
|
3003
|
+
() => import("./Categorieseaster-C_hvclRo.js")
|
|
3004
|
+
),
|
|
3005
|
+
categoriesOnlinePromo: i.lazy(
|
|
3006
|
+
() => import("./Categoriesonlinepromo-CGrJ1dFa.js")
|
|
3007
|
+
),
|
|
3008
|
+
categoriesSportFood: i.lazy(
|
|
3009
|
+
() => import("./Categoriessportfood-B5to0ViF.js")
|
|
3010
|
+
),
|
|
3011
|
+
categoriesClothing: i.lazy(
|
|
3012
|
+
() => import("./Categoriesclothing-coxlXs5I.js")
|
|
3013
|
+
),
|
|
3014
|
+
categoriesEnergy: i.lazy(
|
|
3015
|
+
() => import("./Categoriesenergy-C1OLAInr.js")
|
|
3016
|
+
),
|
|
3017
|
+
categoriesDeskAndTravel: i.lazy(
|
|
3018
|
+
() => import("./Categoriesdeskandtravel-Y6qbY73Z.js")
|
|
3019
|
+
),
|
|
3020
|
+
categoriesCigarette: i.lazy(
|
|
3021
|
+
() => import("./Categoriescigarette-Bwsle8MH.js")
|
|
3022
|
+
),
|
|
3023
|
+
categoriesFood: i.lazy(() => import("./Categoriesfood-B7aSTjZ2.js")),
|
|
3024
|
+
categoriesChild: i.lazy(() => import("./Categorieschild-CzSnX2sP.js")),
|
|
3025
|
+
categoriesPuzzle: i.lazy(
|
|
3026
|
+
() => import("./Categoriespuzzle-CU4-hHQf.js")
|
|
3027
|
+
),
|
|
3028
|
+
categoriesToys: i.lazy(() => import("./Categoriestoys-XHM0bIMT.js")),
|
|
3029
|
+
categoriesCar: i.lazy(() => import("./Categoriescar-B9uBCkgM.js")),
|
|
3030
|
+
categoriesPlaceholder: i.lazy(
|
|
3031
|
+
() => import("./Categoriesplaceholder-Du7e9lT9.js")
|
|
3032
|
+
),
|
|
3033
|
+
categoriesFuel: i.lazy(() => import("./Categoriesfuel-DMuPgsYf.js")),
|
|
3034
|
+
categoriesCarAndBike: i.lazy(
|
|
3035
|
+
() => import("./Categoriescarandbike--nmwHcRo.js")
|
|
3036
|
+
),
|
|
3037
|
+
categoriesToyAndHobby: i.lazy(
|
|
3038
|
+
() => import("./Categoriestoyandhobby-O8FK-93I.js")
|
|
3039
|
+
),
|
|
3040
|
+
categoriesMultimedia: i.lazy(
|
|
3041
|
+
() => import("./Categoriesmultimedia-CZFXqlpM.js")
|
|
3042
|
+
),
|
|
3043
|
+
categoriesParty: i.lazy(() => import("./Categoriesparty-COfKidN_.js")),
|
|
3044
|
+
toolsPay: i.lazy(() => import("./Toolspay-C5-Tt34q.js")),
|
|
3045
|
+
toolsReceipt: i.lazy(() => import("./Toolsreceipt-BELd5rem.js")),
|
|
3046
|
+
toolsFuel: i.lazy(() => import("./Toolsfuel-5IAWOkr9.js")),
|
|
3047
|
+
toolsStoreLocator: i.lazy(
|
|
3048
|
+
() => import("./Toolsstorelocator-DCTcA8Ke.js")
|
|
3049
|
+
),
|
|
3050
|
+
toolsStats: i.lazy(() => import("./Toolsstats-Cis7TO3_.js")),
|
|
3051
|
+
toolsShowXtraOld: i.lazy(
|
|
3052
|
+
() => import("./Toolsshowxtraold-Ds2DBUAm.js")
|
|
3007
3053
|
),
|
|
3008
|
-
toolsShowXtraNew:
|
|
3009
|
-
() => import("./Toolsshowxtranew-
|
|
3054
|
+
toolsShowXtraNew: i.lazy(
|
|
3055
|
+
() => import("./Toolsshowxtranew-DTEadpWr.js")
|
|
3010
3056
|
),
|
|
3011
|
-
toolsScan2:
|
|
3012
|
-
toolsRecipes2:
|
|
3013
|
-
toolsWarranty:
|
|
3014
|
-
toolsCoupons:
|
|
3015
|
-
toolsFavoriteInactive:
|
|
3016
|
-
() => import("./Toolsfavoriteinactive-
|
|
3057
|
+
toolsScan2: i.lazy(() => import("./Toolsscan2-DWDg-Y0e.js")),
|
|
3058
|
+
toolsRecipes2: i.lazy(() => import("./Toolsrecipes2-BqPmAjd3.js")),
|
|
3059
|
+
toolsWarranty: i.lazy(() => import("./Toolswarranty-CyaGyr9f.js")),
|
|
3060
|
+
toolsCoupons: i.lazy(() => import("./Toolscoupons-BUzx__00.js")),
|
|
3061
|
+
toolsFavoriteInactive: i.lazy(
|
|
3062
|
+
() => import("./Toolsfavoriteinactive-D3sG2g4Z.js")
|
|
3017
3063
|
),
|
|
3018
|
-
toolsFavoriteActive:
|
|
3019
|
-
() => import("./Toolsfavoriteactive-
|
|
3064
|
+
toolsFavoriteActive: i.lazy(
|
|
3065
|
+
() => import("./Toolsfavoriteactive-CvN5omA7.js")
|
|
3020
3066
|
),
|
|
3021
|
-
toolsAssortment:
|
|
3022
|
-
toolsPromo:
|
|
3023
|
-
fuelCng:
|
|
3024
|
-
fuelE5:
|
|
3025
|
-
fuelAdblue:
|
|
3026
|
-
fuelB7:
|
|
3027
|
-
fuelH2:
|
|
3028
|
-
fuelE10:
|
|
3029
|
-
fuelFreeTireInflation:
|
|
3030
|
-
() => import("./Fuelfreetireinflation-
|
|
3067
|
+
toolsAssortment: i.lazy(() => import("./Toolsassortment-DGrdhFWU.js")),
|
|
3068
|
+
toolsPromo: i.lazy(() => import("./Toolspromo-DmOGQ70t.js")),
|
|
3069
|
+
fuelCng: i.lazy(() => import("./Fuelcng-Br2q0gYk.js")),
|
|
3070
|
+
fuelE5: i.lazy(() => import("./Fuele5-CMQmD4bT.js")),
|
|
3071
|
+
fuelAdblue: i.lazy(() => import("./Fueladblue-CWKC7nWX.js")),
|
|
3072
|
+
fuelB7: i.lazy(() => import("./Fuelb7-COtNdcwF.js")),
|
|
3073
|
+
fuelH2: i.lazy(() => import("./Fuelh2-C-vqmw6E.js")),
|
|
3074
|
+
fuelE10: i.lazy(() => import("./Fuele10-DMzfbJCG.js")),
|
|
3075
|
+
fuelFreeTireInflation: i.lazy(
|
|
3076
|
+
() => import("./Fuelfreetireinflation-DzBsqU-g.js")
|
|
3031
3077
|
),
|
|
3032
|
-
functionalClose:
|
|
3033
|
-
functionalBack:
|
|
3034
|
-
functionalSearch:
|
|
3035
|
-
() => import("./Functionalsearch-
|
|
3078
|
+
functionalClose: i.lazy(() => import("./Functionalclose-SvauYhlX.js")),
|
|
3079
|
+
functionalBack: i.lazy(() => import("./Functionalback-65zmCDjv.js")),
|
|
3080
|
+
functionalSearch: i.lazy(
|
|
3081
|
+
() => import("./Functionalsearch-BUqLRPrC.js")
|
|
3036
3082
|
),
|
|
3037
|
-
functionalEdit:
|
|
3038
|
-
functionalShare:
|
|
3039
|
-
functionalLocation:
|
|
3040
|
-
() => import("./Functionallocation-
|
|
3083
|
+
functionalEdit: i.lazy(() => import("./Functionaledit-nAKG-jtF.js")),
|
|
3084
|
+
functionalShare: i.lazy(() => import("./Functionalshare-BmrBMkpy.js")),
|
|
3085
|
+
functionalLocation: i.lazy(
|
|
3086
|
+
() => import("./Functionallocation-DWikU6y0.js")
|
|
3041
3087
|
),
|
|
3042
|
-
functionalTrash:
|
|
3043
|
-
functionalCamera:
|
|
3044
|
-
() => import("./Functionalcamera-
|
|
3088
|
+
functionalTrash: i.lazy(() => import("./Functionaltrash-PF-S35vQ.js")),
|
|
3089
|
+
functionalCamera: i.lazy(
|
|
3090
|
+
() => import("./Functionalcamera-N-SlPHXY.js")
|
|
3045
3091
|
),
|
|
3046
|
-
functionalPhone:
|
|
3047
|
-
functionalPushNotifications:
|
|
3048
|
-
() => import("./Functionalpushnotifications-
|
|
3092
|
+
functionalPhone: i.lazy(() => import("./Functionalphone-9_RSyOs2.js")),
|
|
3093
|
+
functionalPushNotifications: i.lazy(
|
|
3094
|
+
() => import("./Functionalpushnotifications-ZbsCkM4x.js")
|
|
3049
3095
|
),
|
|
3050
|
-
functionalMail:
|
|
3051
|
-
functionalGift:
|
|
3052
|
-
functionalPresent:
|
|
3053
|
-
() => import("./Functionalpresent-
|
|
3096
|
+
functionalMail: i.lazy(() => import("./Functionalmail-B60xLcCZ.js")),
|
|
3097
|
+
functionalGift: i.lazy(() => import("./Functionalgift-ClwjUOOI.js")),
|
|
3098
|
+
functionalPresent: i.lazy(
|
|
3099
|
+
() => import("./Functionalpresent-3FK5CWtG.js")
|
|
3054
3100
|
),
|
|
3055
|
-
functionalLoading:
|
|
3056
|
-
() => import("./Functionalloading-
|
|
3101
|
+
functionalLoading: i.lazy(
|
|
3102
|
+
() => import("./Functionalloading-CavVSi4g.js")
|
|
3057
3103
|
),
|
|
3058
|
-
functionalChevronRight:
|
|
3059
|
-
() => import("./Functionalchevronright-
|
|
3104
|
+
functionalChevronRight: i.lazy(
|
|
3105
|
+
() => import("./Functionalchevronright-BAgIHLVE.js")
|
|
3060
3106
|
),
|
|
3061
|
-
functionalCheck:
|
|
3062
|
-
functionalChevronDown:
|
|
3063
|
-
() => import("./Functionalchevrondown-
|
|
3107
|
+
functionalCheck: i.lazy(() => import("./Functionalcheck-DjBNO3ZV.js")),
|
|
3108
|
+
functionalChevronDown: i.lazy(
|
|
3109
|
+
() => import("./Functionalchevrondown-DeSU4dRJ.js")
|
|
3064
3110
|
),
|
|
3065
|
-
functionalChevronUp:
|
|
3066
|
-
() => import("./Functionalchevronup-
|
|
3111
|
+
functionalChevronUp: i.lazy(
|
|
3112
|
+
() => import("./Functionalchevronup-DBO2vYde.js")
|
|
3067
3113
|
),
|
|
3068
|
-
functionalPlus:
|
|
3069
|
-
functionalReset:
|
|
3070
|
-
functionalDownload:
|
|
3071
|
-
() => import("./Functionaldownload-
|
|
3114
|
+
functionalPlus: i.lazy(() => import("./Functionalplus-BMLtPBNt.js")),
|
|
3115
|
+
functionalReset: i.lazy(() => import("./Functionalreset-BgaOxpGO.js")),
|
|
3116
|
+
functionalDownload: i.lazy(
|
|
3117
|
+
() => import("./Functionaldownload-DGL6wvbc.js")
|
|
3072
3118
|
),
|
|
3073
|
-
functionalExport:
|
|
3074
|
-
() => import("./Functionalexport-
|
|
3119
|
+
functionalExport: i.lazy(
|
|
3120
|
+
() => import("./Functionalexport-NFQBBSsl.js")
|
|
3075
3121
|
),
|
|
3076
|
-
functionalCustomerService:
|
|
3077
|
-
() => import("./Functionalcustomerservice-
|
|
3122
|
+
functionalCustomerService: i.lazy(
|
|
3123
|
+
() => import("./Functionalcustomerservice-CQI2QALG.js")
|
|
3078
3124
|
),
|
|
3079
|
-
functionalTruck:
|
|
3080
|
-
functionalBox:
|
|
3081
|
-
functionalEllipsis:
|
|
3082
|
-
() => import("./Functionalellipsis-
|
|
3125
|
+
functionalTruck: i.lazy(() => import("./Functionaltruck-8WEeF31a.js")),
|
|
3126
|
+
functionalBox: i.lazy(() => import("./Functionalbox-oU3IgVn9.js")),
|
|
3127
|
+
functionalEllipsis: i.lazy(
|
|
3128
|
+
() => import("./Functionalellipsis-rkPSk_7T.js")
|
|
3083
3129
|
),
|
|
3084
|
-
functionalLocationHome:
|
|
3085
|
-
() => import("./Functionallocationhome-
|
|
3130
|
+
functionalLocationHome: i.lazy(
|
|
3131
|
+
() => import("./Functionallocationhome-HAeap-7B.js")
|
|
3086
3132
|
),
|
|
3087
|
-
functionalLocationPickup:
|
|
3088
|
-
() => import("./Functionallocationpickup-
|
|
3133
|
+
functionalLocationPickup: i.lazy(
|
|
3134
|
+
() => import("./Functionallocationpickup-bMUAciNO.js")
|
|
3089
3135
|
),
|
|
3090
|
-
functionalAccount:
|
|
3091
|
-
() => import("./Functionalaccount-
|
|
3136
|
+
functionalAccount: i.lazy(
|
|
3137
|
+
() => import("./Functionalaccount-DqT61ODm.js")
|
|
3092
3138
|
),
|
|
3093
|
-
functionalPrivacy:
|
|
3094
|
-
() => import("./Functionalprivacy-
|
|
3139
|
+
functionalPrivacy: i.lazy(
|
|
3140
|
+
() => import("./Functionalprivacy-CnxNCyYe.js")
|
|
3095
3141
|
),
|
|
3096
|
-
functionalSettings:
|
|
3097
|
-
() => import("./Functionalsettings-
|
|
3142
|
+
functionalSettings: i.lazy(
|
|
3143
|
+
() => import("./Functionalsettings-Do2O1RWt.js")
|
|
3098
3144
|
),
|
|
3099
|
-
functionalUserInfo:
|
|
3100
|
-
() => import("./Functionaluserinfo-
|
|
3145
|
+
functionalUserInfo: i.lazy(
|
|
3146
|
+
() => import("./Functionaluserinfo-DTNeyMuA.js")
|
|
3101
3147
|
),
|
|
3102
|
-
functionalPinOutlines:
|
|
3103
|
-
() => import("./Functionalpinoutlines-
|
|
3148
|
+
functionalPinOutlines: i.lazy(
|
|
3149
|
+
() => import("./Functionalpinoutlines-DbEZE0Er.js")
|
|
3104
3150
|
),
|
|
3105
|
-
functionalCalendar:
|
|
3106
|
-
() => import("./Functionalcalendar-
|
|
3151
|
+
functionalCalendar: i.lazy(
|
|
3152
|
+
() => import("./Functionalcalendar-Dhh0tAw2.js")
|
|
3107
3153
|
),
|
|
3108
|
-
functionalMinus:
|
|
3109
|
-
functionalLifestyle:
|
|
3110
|
-
() => import("./Functionallifestyle-
|
|
3154
|
+
functionalMinus: i.lazy(() => import("./Functionalminus-C5lvaL_b.js")),
|
|
3155
|
+
functionalLifestyle: i.lazy(
|
|
3156
|
+
() => import("./Functionallifestyle-D0zANQKA.js")
|
|
3111
3157
|
),
|
|
3112
|
-
functionalSms:
|
|
3113
|
-
functionalSwitch:
|
|
3114
|
-
() => import("./Functionalswitch-
|
|
3158
|
+
functionalSms: i.lazy(() => import("./Functionalsms-DyKuC8x0.js")),
|
|
3159
|
+
functionalSwitch: i.lazy(
|
|
3160
|
+
() => import("./Functionalswitch-BMpBzGz-.js")
|
|
3115
3161
|
),
|
|
3116
|
-
functionalSorting:
|
|
3117
|
-
() => import("./Functionalsorting-
|
|
3162
|
+
functionalSorting: i.lazy(
|
|
3163
|
+
() => import("./Functionalsorting-BUoVYHkd.js")
|
|
3118
3164
|
),
|
|
3119
|
-
functionalWarningCircle:
|
|
3120
|
-
() => import("./Functionalwarningcircle-
|
|
3165
|
+
functionalWarningCircle: i.lazy(
|
|
3166
|
+
() => import("./Functionalwarningcircle-BhHk8Bz7.js")
|
|
3121
3167
|
),
|
|
3122
|
-
functionalQuestionCircle:
|
|
3123
|
-
() => import("./Functionalquestioncircle-
|
|
3168
|
+
functionalQuestionCircle: i.lazy(
|
|
3169
|
+
() => import("./Functionalquestioncircle-Cftll_73.js")
|
|
3124
3170
|
),
|
|
3125
|
-
functionalErrorCircle:
|
|
3126
|
-
() => import("./Functionalerrorcircle-
|
|
3171
|
+
functionalErrorCircle: i.lazy(
|
|
3172
|
+
() => import("./Functionalerrorcircle-DwfBkoo9.js")
|
|
3127
3173
|
),
|
|
3128
|
-
functionalSuccessCircle:
|
|
3129
|
-
() => import("./Functionalsuccesscircle-
|
|
3174
|
+
functionalSuccessCircle: i.lazy(
|
|
3175
|
+
() => import("./Functionalsuccesscircle-B8876_by.js")
|
|
3130
3176
|
),
|
|
3131
|
-
functionalMessage:
|
|
3132
|
-
() => import("./Functionalmessage-
|
|
3177
|
+
functionalMessage: i.lazy(
|
|
3178
|
+
() => import("./Functionalmessage-DilW_ij4.js")
|
|
3133
3179
|
),
|
|
3134
|
-
functionalExternalLink:
|
|
3135
|
-
() => import("./Functionalexternallink-
|
|
3180
|
+
functionalExternalLink: i.lazy(
|
|
3181
|
+
() => import("./Functionalexternallink-Cr7o00YG.js")
|
|
3136
3182
|
),
|
|
3137
|
-
functionalAddToList:
|
|
3138
|
-
() => import("./Functionaladdtolist-
|
|
3183
|
+
functionalAddToList: i.lazy(
|
|
3184
|
+
() => import("./Functionaladdtolist-CZ9Ksc1A.js")
|
|
3139
3185
|
),
|
|
3140
|
-
functionalShoppingcart:
|
|
3141
|
-
() => import("./Functionalshoppingcart-
|
|
3186
|
+
functionalShoppingcart: i.lazy(
|
|
3187
|
+
() => import("./Functionalshoppingcart-DDw_7_qV.js")
|
|
3142
3188
|
),
|
|
3143
|
-
functionalFilter:
|
|
3144
|
-
() => import("./Functionalfilter-
|
|
3189
|
+
functionalFilter: i.lazy(
|
|
3190
|
+
() => import("./Functionalfilter-BEr-iVYT.js")
|
|
3145
3191
|
),
|
|
3146
|
-
functionalLocate:
|
|
3147
|
-
() => import("./Functionallocate-
|
|
3192
|
+
functionalLocate: i.lazy(
|
|
3193
|
+
() => import("./Functionallocate-DASXvdyv.js")
|
|
3148
3194
|
),
|
|
3149
|
-
functionalBarcode:
|
|
3150
|
-
() => import("./Functionalbarcode-
|
|
3195
|
+
functionalBarcode: i.lazy(
|
|
3196
|
+
() => import("./Functionalbarcode-BXdG8kp_.js")
|
|
3151
3197
|
),
|
|
3152
|
-
functionalClock:
|
|
3153
|
-
functionalHistory:
|
|
3154
|
-
() => import("./Functionalhistory-
|
|
3198
|
+
functionalClock: i.lazy(() => import("./Functionalclock-DCj8T-TL.js")),
|
|
3199
|
+
functionalHistory: i.lazy(
|
|
3200
|
+
() => import("./Functionalhistory-OGfyFFrW.js")
|
|
3155
3201
|
),
|
|
3156
|
-
functionalShops:
|
|
3157
|
-
functionalAddUser:
|
|
3158
|
-
() => import("./Functionaladduser-
|
|
3202
|
+
functionalShops: i.lazy(() => import("./Functionalshops-BG2L4Btd.js")),
|
|
3203
|
+
functionalAddUser: i.lazy(
|
|
3204
|
+
() => import("./Functionaladduser-BzojG3wi.js")
|
|
3159
3205
|
),
|
|
3160
|
-
functionalOther:
|
|
3161
|
-
functionalInAppNotifications:
|
|
3162
|
-
() => import("./Functionalinappnotifications-
|
|
3206
|
+
functionalOther: i.lazy(() => import("./Functionalother-bYOLLWCL.js")),
|
|
3207
|
+
functionalInAppNotifications: i.lazy(
|
|
3208
|
+
() => import("./Functionalinappnotifications-Du98xnRa.js")
|
|
3163
3209
|
),
|
|
3164
|
-
functionalExit:
|
|
3165
|
-
functionalShared:
|
|
3166
|
-
() => import("./Functionalshared-
|
|
3210
|
+
functionalExit: i.lazy(() => import("./Functionalexit-BeqXCGyO.js")),
|
|
3211
|
+
functionalShared: i.lazy(
|
|
3212
|
+
() => import("./Functionalshared-VfUrrErw.js")
|
|
3167
3213
|
),
|
|
3168
|
-
functionalThumbsup:
|
|
3169
|
-
() => import("./Functionalthumbsup-
|
|
3214
|
+
functionalThumbsup: i.lazy(
|
|
3215
|
+
() => import("./Functionalthumbsup-Cp04whsE.js")
|
|
3170
3216
|
),
|
|
3171
|
-
functionalDiscount:
|
|
3172
|
-
() => import("./Functionaldiscount-
|
|
3217
|
+
functionalDiscount: i.lazy(
|
|
3218
|
+
() => import("./Functionaldiscount-CKUohULp.js")
|
|
3173
3219
|
),
|
|
3174
|
-
functionalPercentage:
|
|
3175
|
-
() => import("./Functionalpercentage-
|
|
3220
|
+
functionalPercentage: i.lazy(
|
|
3221
|
+
() => import("./Functionalpercentage-3yrkVSoK.js")
|
|
3176
3222
|
),
|
|
3177
|
-
functionalList:
|
|
3178
|
-
functionalMapLocation:
|
|
3179
|
-
() => import("./Functionalmaplocation-
|
|
3223
|
+
functionalList: i.lazy(() => import("./Functionallist-BUDxBJzZ.js")),
|
|
3224
|
+
functionalMapLocation: i.lazy(
|
|
3225
|
+
() => import("./Functionalmaplocation-Ddte5L2w.js")
|
|
3180
3226
|
),
|
|
3181
|
-
functionalNoConnection:
|
|
3182
|
-
() => import("./Functionalnoconnection-
|
|
3227
|
+
functionalNoConnection: i.lazy(
|
|
3228
|
+
() => import("./Functionalnoconnection-DSSSbv77.js")
|
|
3183
3229
|
),
|
|
3184
|
-
functionalSwap:
|
|
3185
|
-
functionalPiece:
|
|
3186
|
-
functionalWeight:
|
|
3187
|
-
() => import("./Functionalweight-
|
|
3230
|
+
functionalSwap: i.lazy(() => import("./Functionalswap-NnOocHex.js")),
|
|
3231
|
+
functionalPiece: i.lazy(() => import("./Functionalpiece-CgSk4m1N.js")),
|
|
3232
|
+
functionalWeight: i.lazy(
|
|
3233
|
+
() => import("./Functionalweight-BuRYas11.js")
|
|
3188
3234
|
),
|
|
3189
|
-
functionalPack:
|
|
3190
|
-
functionalCommunications:
|
|
3191
|
-
() => import("./Functionalcommunications-
|
|
3235
|
+
functionalPack: i.lazy(() => import("./Functionalpack-Do-NA_x_.js")),
|
|
3236
|
+
functionalCommunications: i.lazy(
|
|
3237
|
+
() => import("./Functionalcommunications-C8YqPxtA.js")
|
|
3192
3238
|
),
|
|
3193
|
-
functionalDeliveryAddresses:
|
|
3194
|
-
() => import("./Functionaldeliveryaddresses-
|
|
3239
|
+
functionalDeliveryAddresses: i.lazy(
|
|
3240
|
+
() => import("./Functionaldeliveryaddresses-Dqsm7S0r.js")
|
|
3195
3241
|
),
|
|
3196
|
-
"functional18+":
|
|
3197
|
-
() => import("./Functional18plus-
|
|
3242
|
+
"functional18+": i.lazy(
|
|
3243
|
+
() => import("./Functional18plus-B81lw15R.js")
|
|
3198
3244
|
),
|
|
3199
|
-
functionalReadtime:
|
|
3200
|
-
() => import("./Functionalreadtime-
|
|
3245
|
+
functionalReadtime: i.lazy(
|
|
3246
|
+
() => import("./Functionalreadtime-BoaOLxTp.js")
|
|
3201
3247
|
),
|
|
3202
|
-
functionalCopy:
|
|
3203
|
-
functionalMessageField:
|
|
3204
|
-
() => import("./Functionalmessagefield-
|
|
3248
|
+
functionalCopy: i.lazy(() => import("./Functionalcopy-qsj6Sd_B.js")),
|
|
3249
|
+
functionalMessageField: i.lazy(
|
|
3250
|
+
() => import("./Functionalmessagefield-B8kLFGcI.js")
|
|
3205
3251
|
),
|
|
3206
|
-
functionalNext:
|
|
3207
|
-
functionalSave:
|
|
3208
|
-
functionalLogin:
|
|
3209
|
-
functionalLogout:
|
|
3210
|
-
() => import("./Functionallogout-
|
|
3252
|
+
functionalNext: i.lazy(() => import("./Functionalnext-Bob1Pr0g.js")),
|
|
3253
|
+
functionalSave: i.lazy(() => import("./Functionalsave-DeVoLFQI.js")),
|
|
3254
|
+
functionalLogin: i.lazy(() => import("./Functionallogin-CmgPHsDj.js")),
|
|
3255
|
+
functionalLogout: i.lazy(
|
|
3256
|
+
() => import("./Functionallogout-WQObFXNd.js")
|
|
3211
3257
|
),
|
|
3212
|
-
functionalWebsite:
|
|
3213
|
-
() => import("./Functionalwebsite-
|
|
3258
|
+
functionalWebsite: i.lazy(
|
|
3259
|
+
() => import("./Functionalwebsite-IHjtSmP7.js")
|
|
3214
3260
|
),
|
|
3215
|
-
functionalMenu:
|
|
3216
|
-
functionalRegister:
|
|
3217
|
-
() => import("./Functionalregister-
|
|
3261
|
+
functionalMenu: i.lazy(() => import("./Functionalmenu-Bx_SglRU.js")),
|
|
3262
|
+
functionalRegister: i.lazy(
|
|
3263
|
+
() => import("./Functionalregister-BzKRIHjE.js")
|
|
3218
3264
|
),
|
|
3219
|
-
functionalNews:
|
|
3220
|
-
functionalTimer:
|
|
3221
|
-
functionalEyeShow:
|
|
3222
|
-
() => import("./Functionaleyeshow-
|
|
3265
|
+
functionalNews: i.lazy(() => import("./Functionalnews-DMnYtnSA.js")),
|
|
3266
|
+
functionalTimer: i.lazy(() => import("./Functionaltimer-BOFmpLXr.js")),
|
|
3267
|
+
functionalEyeShow: i.lazy(
|
|
3268
|
+
() => import("./Functionaleyeshow-M5l96mSk.js")
|
|
3223
3269
|
),
|
|
3224
|
-
functionalMobilePay:
|
|
3225
|
-
() => import("./Functionalmobilepay-
|
|
3270
|
+
functionalMobilePay: i.lazy(
|
|
3271
|
+
() => import("./Functionalmobilepay-BxlW6L3v.js")
|
|
3226
3272
|
),
|
|
3227
|
-
functionalConnectionCable:
|
|
3228
|
-
() => import("./Functionalconnectioncable-
|
|
3273
|
+
functionalConnectionCable: i.lazy(
|
|
3274
|
+
() => import("./Functionalconnectioncable-w9NoRv6P.js")
|
|
3229
3275
|
),
|
|
3230
|
-
functionalDryCleaning:
|
|
3231
|
-
() => import("./Functionaldrycleaning-
|
|
3276
|
+
functionalDryCleaning: i.lazy(
|
|
3277
|
+
() => import("./Functionaldrycleaning-BmNCIeVg.js")
|
|
3232
3278
|
),
|
|
3233
|
-
functionalKiosk:
|
|
3234
|
-
functionalConnectedDevice:
|
|
3235
|
-
() => import("./Functionalconnecteddevice-
|
|
3279
|
+
functionalKiosk: i.lazy(() => import("./Functionalkiosk-DfzJl9fT.js")),
|
|
3280
|
+
functionalConnectedDevice: i.lazy(
|
|
3281
|
+
() => import("./Functionalconnecteddevice-BIOGt9T7.js")
|
|
3236
3282
|
),
|
|
3237
|
-
functionalCookies:
|
|
3238
|
-
() => import("./Functionalcookies-
|
|
3283
|
+
functionalCookies: i.lazy(
|
|
3284
|
+
() => import("./Functionalcookies-DrA35JlA.js")
|
|
3239
3285
|
),
|
|
3240
|
-
functionalViewFile:
|
|
3241
|
-
() => import("./Functionalviewfile-
|
|
3286
|
+
functionalViewFile: i.lazy(
|
|
3287
|
+
() => import("./Functionalviewfile-BDO_K-MF.js")
|
|
3242
3288
|
),
|
|
3243
|
-
functionalLastAdded:
|
|
3244
|
-
() => import("./Functionallastadded-
|
|
3289
|
+
functionalLastAdded: i.lazy(
|
|
3290
|
+
() => import("./Functionallastadded-DDfGtuJj.js")
|
|
3245
3291
|
),
|
|
3246
|
-
functionalFirstAdded:
|
|
3247
|
-
() => import("./Functionalfirstadded-
|
|
3292
|
+
functionalFirstAdded: i.lazy(
|
|
3293
|
+
() => import("./Functionalfirstadded-Vuk8GbmF.js")
|
|
3248
3294
|
),
|
|
3249
|
-
functionalStoreLayout:
|
|
3250
|
-
() => import("./Functionalstorelayout-
|
|
3295
|
+
functionalStoreLayout: i.lazy(
|
|
3296
|
+
() => import("./Functionalstorelayout-D-nnmpSE.js")
|
|
3251
3297
|
),
|
|
3252
|
-
functionalBlock:
|
|
3253
|
-
functionalChecklist:
|
|
3254
|
-
() => import("./Functionalchecklist-
|
|
3298
|
+
functionalBlock: i.lazy(() => import("./Functionalblock-CRxUyFK_.js")),
|
|
3299
|
+
functionalChecklist: i.lazy(
|
|
3300
|
+
() => import("./Functionalchecklist-B4m95zLI.js")
|
|
3255
3301
|
),
|
|
3256
|
-
functionalCartCheckout:
|
|
3257
|
-
() => import("./Functionalcartcheckout-
|
|
3302
|
+
functionalCartCheckout: i.lazy(
|
|
3303
|
+
() => import("./Functionalcartcheckout-B6YJdY9L.js")
|
|
3258
3304
|
),
|
|
3259
|
-
functionalCartEdit:
|
|
3260
|
-
() => import("./Functionalcartedit-
|
|
3305
|
+
functionalCartEdit: i.lazy(
|
|
3306
|
+
() => import("./Functionalcartedit-Cj1VScM8.js")
|
|
3261
3307
|
),
|
|
3262
|
-
functionalEyeHidden:
|
|
3263
|
-
() => import("./Functionaleyehidden-
|
|
3308
|
+
functionalEyeHidden: i.lazy(
|
|
3309
|
+
() => import("./Functionaleyehidden-XFztxAqt.js")
|
|
3264
3310
|
),
|
|
3265
|
-
functionalWarningCircleFilled:
|
|
3266
|
-
() => import("./Functionalwarningcirclefilled-
|
|
3311
|
+
functionalWarningCircleFilled: i.lazy(
|
|
3312
|
+
() => import("./Functionalwarningcirclefilled-D94wyNTu.js")
|
|
3267
3313
|
),
|
|
3268
|
-
functionalQuestionCircleFilled:
|
|
3269
|
-
() => import("./Functionalquestioncirclefilled-
|
|
3314
|
+
functionalQuestionCircleFilled: i.lazy(
|
|
3315
|
+
() => import("./Functionalquestioncirclefilled-G6C3OXhy.js")
|
|
3270
3316
|
),
|
|
3271
|
-
functionalErrorCircleFilled:
|
|
3272
|
-
() => import("./Functionalerrorcirclefilled-
|
|
3317
|
+
functionalErrorCircleFilled: i.lazy(
|
|
3318
|
+
() => import("./Functionalerrorcirclefilled-De_EU8HW.js")
|
|
3273
3319
|
),
|
|
3274
|
-
functionalSuccessCircleFilled:
|
|
3275
|
-
() => import("./Functionalsuccesscirclefilled-
|
|
3320
|
+
functionalSuccessCircleFilled: i.lazy(
|
|
3321
|
+
() => import("./Functionalsuccesscirclefilled-CjadKbr-.js")
|
|
3276
3322
|
),
|
|
3277
|
-
functionalPlusCircle:
|
|
3278
|
-
() => import("./Functionalpluscircle-
|
|
3323
|
+
functionalPlusCircle: i.lazy(
|
|
3324
|
+
() => import("./Functionalpluscircle-D76QYMjT.js")
|
|
3279
3325
|
),
|
|
3280
|
-
functionalSpinner:
|
|
3281
|
-
() => import("./Functionalspinner-
|
|
3326
|
+
functionalSpinner: i.lazy(
|
|
3327
|
+
() => import("./Functionalspinner-C8l-CpJr.js")
|
|
3282
3328
|
),
|
|
3283
|
-
functionalEcoEarth:
|
|
3284
|
-
() => import("./Functionalecoearth-
|
|
3329
|
+
functionalEcoEarth: i.lazy(
|
|
3330
|
+
() => import("./Functionalecoearth-33syfFhq.js")
|
|
3285
3331
|
),
|
|
3286
|
-
functionalAlphaBeta:
|
|
3287
|
-
() => import("./Functionalalphabeta-
|
|
3332
|
+
functionalAlphaBeta: i.lazy(
|
|
3333
|
+
() => import("./Functionalalphabeta-D3FJdeE_.js")
|
|
3288
3334
|
),
|
|
3289
|
-
functionalEuro:
|
|
3290
|
-
functionalNumber:
|
|
3291
|
-
() => import("./Functionalnumber-
|
|
3335
|
+
functionalEuro: i.lazy(() => import("./Functionaleuro-BI6ILaM6.js")),
|
|
3336
|
+
functionalNumber: i.lazy(
|
|
3337
|
+
() => import("./Functionalnumber-8Wrw3uLm.js")
|
|
3292
3338
|
),
|
|
3293
|
-
functionalIdea:
|
|
3294
|
-
functionalMultifactorAuthenticator:
|
|
3295
|
-
() => import("./Functionalmultifactorauthenticator-
|
|
3339
|
+
functionalIdea: i.lazy(() => import("./Functionalidea-i0AnV9bM.js")),
|
|
3340
|
+
functionalMultifactorAuthenticator: i.lazy(
|
|
3341
|
+
() => import("./Functionalmultifactorauthenticator-C6Tcg6Qg.js")
|
|
3296
3342
|
),
|
|
3297
|
-
functionalPassword:
|
|
3298
|
-
() => import("./Functionalpassword-
|
|
3343
|
+
functionalPassword: i.lazy(
|
|
3344
|
+
() => import("./Functionalpassword-GcFWOzh2.js")
|
|
3299
3345
|
),
|
|
3300
|
-
functionalDiscountCode:
|
|
3301
|
-
() => import("./Functionaldiscountcode-
|
|
3346
|
+
functionalDiscountCode: i.lazy(
|
|
3347
|
+
() => import("./Functionaldiscountcode-BujJ9fa-.js")
|
|
3302
3348
|
)
|
|
3303
|
-
},
|
|
3349
|
+
}, qi = ({
|
|
3304
3350
|
bouIconId: t,
|
|
3305
3351
|
...e
|
|
3306
3352
|
}) => {
|
|
3307
|
-
const s =
|
|
3308
|
-
return
|
|
3309
|
-
}, be = (t) => typeof t.icon == "string" && t.icon in
|
|
3353
|
+
const s = re[t], r = Vi[s];
|
|
3354
|
+
return r ? /* @__PURE__ */ n.jsx(i.Suspense, { fallback: /* @__PURE__ */ n.jsx("div", { children: "..." }), children: /* @__PURE__ */ n.jsx(r, { width: "24", height: "24", ...e, fill: "none", ref: void 0 }) }) : null;
|
|
3355
|
+
}, be = (t) => typeof t.icon == "string" && t.icon in re ? /* @__PURE__ */ n.jsx(qi, { bouIconId: re[t.icon] }) : t.icon, $i = ({
|
|
3310
3356
|
label: t,
|
|
3311
3357
|
className: e,
|
|
3312
3358
|
onClick: s,
|
|
3313
|
-
icon:
|
|
3359
|
+
icon: r
|
|
3314
3360
|
}) => /* @__PURE__ */ n.jsx(G.Item, { className: e, children: /* @__PURE__ */ n.jsxs("button", { onClick: s, children: [
|
|
3315
|
-
/* @__PURE__ */ n.jsx(be, { icon:
|
|
3361
|
+
/* @__PURE__ */ n.jsx(be, { icon: r }),
|
|
3316
3362
|
t
|
|
3317
3363
|
] }) }), _t = (t) => {
|
|
3318
|
-
const e =
|
|
3364
|
+
const e = Vs(), { className: s, label: r, mobileUrl: a, desktopUrl: c, icon: l } = t;
|
|
3319
3365
|
return /* @__PURE__ */ n.jsxs(G.Item, { className: s, children: [
|
|
3320
3366
|
(!e || e && !c) && /* @__PURE__ */ n.jsxs("a", { href: a, referrerPolicy: "no-referrer-when-downgrade", children: [
|
|
3321
3367
|
/* @__PURE__ */ n.jsx(be, { icon: l }),
|
|
3322
|
-
|
|
3368
|
+
r
|
|
3323
3369
|
] }),
|
|
3324
3370
|
!!c && /* @__PURE__ */ n.jsxs("a", { href: c, referrerPolicy: "no-referrer-when-downgrade", children: [
|
|
3325
3371
|
/* @__PURE__ */ n.jsx(be, { icon: l }),
|
|
3326
|
-
|
|
3372
|
+
r
|
|
3327
3373
|
] })
|
|
3328
3374
|
] });
|
|
3329
|
-
},
|
|
3330
|
-
const t =
|
|
3375
|
+
}, zs = i.createContext(void 0), Zi = ({ apiUrl: t, authUrl: e, country: s, redirectUrl: r, bouHeaders: a, children: c }) => /* @__PURE__ */ n.jsx(zs.Provider, { value: { apiUrl: t, authUrl: e, country: s, redirectUrl: r, bouHeaders: a }, children: c }), St = () => {
|
|
3376
|
+
const t = i.useContext(zs);
|
|
3331
3377
|
if (!t)
|
|
3332
3378
|
throw new Error("Api context can not be rendered outside of Api");
|
|
3333
3379
|
return t;
|
|
3334
|
-
},
|
|
3335
|
-
const t =
|
|
3380
|
+
}, Ds = i.createContext(void 0), Xi = ({ position: t, bouMenuItems: e, menuItemsToHide: s, children: r }) => /* @__PURE__ */ n.jsx(Ds.Provider, { value: { position: t, bouMenuItems: e, menuItemsToHide: s }, children: r }), Ts = () => {
|
|
3381
|
+
const t = i.useContext(Ds);
|
|
3336
3382
|
if (!t)
|
|
3337
3383
|
throw new Error("Authentication context can not be rendered outside of Authentication");
|
|
3338
3384
|
return t;
|
|
3339
|
-
},
|
|
3340
|
-
const
|
|
3341
|
-
s &&
|
|
3342
|
-
const a = `${t}/login?${
|
|
3385
|
+
}, Us = ({ authUrl: t, redirectUrl: e, trackingInfo: s }) => {
|
|
3386
|
+
const r = new URLSearchParams({ redirectUrl: e });
|
|
3387
|
+
s && r.append("trackingInfo", s);
|
|
3388
|
+
const a = `${t}/login?${r.toString()}`, c = `${t}/logout?${r.toString()}`;
|
|
3343
3389
|
return { loginUrl: a, logoutUrl: c };
|
|
3344
|
-
},
|
|
3345
|
-
const { authUrl: t, redirectUrl: e } = St(), s =
|
|
3346
|
-
return
|
|
3347
|
-
},
|
|
3390
|
+
}, ie = () => {
|
|
3391
|
+
const { authUrl: t, redirectUrl: e } = St(), s = qs();
|
|
3392
|
+
return Us({ authUrl: t, redirectUrl: e, trackingInfo: s });
|
|
3393
|
+
}, Yi = () => {
|
|
3348
3394
|
const { apiUrl: t } = St();
|
|
3349
3395
|
return `${`${t}/xtra`}/authentication/v1/user/profile`;
|
|
3350
|
-
},
|
|
3351
|
-
const { loginUrl: s } =
|
|
3396
|
+
}, Ke = (t) => t ? `+${t.countryCode} ${t.number}` : "", We = (t, e) => e == null ? void 0 : e.find((s) => s.type === t), Ge = ({ apiUrl: t, redirectUrl: e }) => {
|
|
3397
|
+
const { loginUrl: s } = Us({ authUrl: t, redirectUrl: e });
|
|
3352
3398
|
window.location.replace(s);
|
|
3353
|
-
},
|
|
3399
|
+
}, Ve = (t) => {
|
|
3354
3400
|
var c;
|
|
3355
3401
|
if (!t)
|
|
3356
|
-
return { user: { state: () => "NotAuthenticated" }, tryToLogon:
|
|
3357
|
-
const e = new Date(t.dateOfBirth), s =
|
|
3402
|
+
return { user: { state: () => "NotAuthenticated" }, tryToLogon: Ge };
|
|
3403
|
+
const e = new Date(t.dateOfBirth), s = We(Le.Mobile, t.phone), r = We(Le.Fixed, t.phone), a = Ke(s) ?? Ke(r) ?? "";
|
|
3358
3404
|
return {
|
|
3359
3405
|
user: {
|
|
3360
3406
|
...(c = window.XTRA) == null ? void 0 : c.user,
|
|
@@ -3393,21 +3439,21 @@ const Or = {
|
|
|
3393
3439
|
cbh: () => t.customerIdentifier,
|
|
3394
3440
|
state: () => "Authenticated"
|
|
3395
3441
|
},
|
|
3396
|
-
tryToLogon:
|
|
3442
|
+
tryToLogon: Ge
|
|
3397
3443
|
};
|
|
3398
|
-
},
|
|
3399
|
-
const { i18n: t } = pt(), { country: e, bouHeaders: s } = St(),
|
|
3400
|
-
return
|
|
3401
|
-
queryKey:
|
|
3444
|
+
}, Qs = ["profile"], Hs = () => {
|
|
3445
|
+
const { i18n: t } = pt(), { country: e, bouHeaders: s } = St(), r = Yi(), a = sessionStorage.getItem("profile"), c = !!a;
|
|
3446
|
+
return Cs({
|
|
3447
|
+
queryKey: Qs,
|
|
3402
3448
|
queryFn: async () => {
|
|
3403
|
-
const u = je(t.language, e), d = await fetch(
|
|
3449
|
+
const u = je(t.language, e), d = await fetch(r, {
|
|
3404
3450
|
credentials: "include",
|
|
3405
3451
|
mode: "cors",
|
|
3406
3452
|
headers: { "Accept-Language": u, ...s }
|
|
3407
3453
|
});
|
|
3408
3454
|
if (!d.ok) {
|
|
3409
3455
|
if (d.status === 401)
|
|
3410
|
-
return window.XTRA = { ...window.XTRA, ...
|
|
3456
|
+
return window.XTRA = { ...window.XTRA, ...Ve() }, window.postMessage(
|
|
3411
3457
|
{ source: "xtra-authentication", isAuthenticated: !1 },
|
|
3412
3458
|
new URL(window.location.href).origin
|
|
3413
3459
|
), sessionStorage.removeItem("profile"), { authenticationStatus: "NotAuthenticated" };
|
|
@@ -3419,7 +3465,7 @@ const Or = {
|
|
|
3419
3465
|
return sessionStorage.setItem("profile", JSON.stringify({ firstName: f, lastName: h })), window.postMessage(
|
|
3420
3466
|
{ source: "xtra-authentication", isAuthenticated: !0 },
|
|
3421
3467
|
new URL(window.location.href).origin
|
|
3422
|
-
), window.XTRA = { ...window.XTRA, ...
|
|
3468
|
+
), window.XTRA = { ...window.XTRA, ...Ve(p) }, {
|
|
3423
3469
|
authenticationStatus: "Authenticated",
|
|
3424
3470
|
profile: { firstName: p.firstName, lastName: p.lastName }
|
|
3425
3471
|
};
|
|
@@ -3431,7 +3477,7 @@ const Or = {
|
|
|
3431
3477
|
placeholderData: { authenticationStatus: "Pending" },
|
|
3432
3478
|
refetchOnWindowFocus: !1
|
|
3433
3479
|
});
|
|
3434
|
-
},
|
|
3480
|
+
}, Ji = (t) => {
|
|
3435
3481
|
const e = {
|
|
3436
3482
|
shouldHidePayments: !1,
|
|
3437
3483
|
shouldHideVouchers: !1,
|
|
@@ -3459,37 +3505,37 @@ const Or = {
|
|
|
3459
3505
|
"Please make sure the Menu Items to hide are strings and the expected values are [Payment, Vouchers, QRCode]"
|
|
3460
3506
|
);
|
|
3461
3507
|
}), e;
|
|
3462
|
-
},
|
|
3463
|
-
const { t } = pt(), { position: e, bouMenuItems: s, menuItemsToHide:
|
|
3508
|
+
}, Ii = () => {
|
|
3509
|
+
const { t } = pt(), { position: e, bouMenuItems: s, menuItemsToHide: r } = Ts(), { country: a } = St(), c = rs({ country: a }), { logoutUrl: l } = ie(), d = Ee().getQueryData(Qs), p = (d == null ? void 0 : d.profile.firstName) ?? "", f = (d == null ? void 0 : d.profile.lastName) ?? "", { shouldHidePayments: h, shouldHideVouchers: y, shouldHideQrCodes: g } = Ji(r), P = () => {
|
|
3464
3510
|
sessionStorage.removeItem("profile"), window.location.href = l;
|
|
3465
3511
|
};
|
|
3466
3512
|
return /* @__PURE__ */ n.jsxs(G, { type: "nav", id: "xtra-menu", position: e, children: [
|
|
3467
3513
|
/* @__PURE__ */ n.jsx(
|
|
3468
3514
|
G.Trigger,
|
|
3469
3515
|
{
|
|
3470
|
-
className:
|
|
3516
|
+
className: N(
|
|
3471
3517
|
"button",
|
|
3472
3518
|
"button--neutral",
|
|
3473
3519
|
"button--authentication",
|
|
3474
3520
|
"button--authentication--authenticated"
|
|
3475
3521
|
),
|
|
3476
3522
|
children: /* @__PURE__ */ n.jsxs("button", { children: [
|
|
3477
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3523
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ur, { variant: "small", firstName: p, lastName: f }) }),
|
|
3478
3524
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: p }),
|
|
3479
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(
|
|
3525
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3480
3526
|
] })
|
|
3481
3527
|
}
|
|
3482
3528
|
),
|
|
3483
3529
|
/* @__PURE__ */ n.jsxs(G.Content, { as: "div", children: [
|
|
3484
|
-
!!s && s.length > 0 && /* @__PURE__ */ n.jsx("ul", { className: "bou-menu__list", children: s.map(({ label: S, icon:
|
|
3530
|
+
!!s && s.length > 0 && /* @__PURE__ */ n.jsx("ul", { className: "bou-menu__list", children: s.map(({ label: S, icon: E, url: x }, b) => /* @__PURE__ */ n.jsx(
|
|
3485
3531
|
_t,
|
|
3486
3532
|
{
|
|
3487
3533
|
className: "bou-menu-item",
|
|
3488
|
-
mobileUrl:
|
|
3489
|
-
icon:
|
|
3534
|
+
mobileUrl: x,
|
|
3535
|
+
icon: E,
|
|
3490
3536
|
label: S
|
|
3491
3537
|
},
|
|
3492
|
-
|
|
3538
|
+
b
|
|
3493
3539
|
)) }),
|
|
3494
3540
|
/* @__PURE__ */ n.jsxs("ul", { children: [
|
|
3495
3541
|
/* @__PURE__ */ n.jsx(
|
|
@@ -3498,7 +3544,7 @@ const Or = {
|
|
|
3498
3544
|
className: "manage-profile",
|
|
3499
3545
|
mobileUrl: `${c}/manage-profile`,
|
|
3500
3546
|
desktopUrl: `${c}/manage-profile/personal-data`,
|
|
3501
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3547
|
+
icon: /* @__PURE__ */ n.jsx(ai, {}),
|
|
3502
3548
|
label: t("manageProfile")
|
|
3503
3549
|
}
|
|
3504
3550
|
),
|
|
@@ -3507,7 +3553,7 @@ const Or = {
|
|
|
3507
3553
|
{
|
|
3508
3554
|
className: "payment",
|
|
3509
3555
|
mobileUrl: `${c}/payment`,
|
|
3510
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3556
|
+
icon: /* @__PURE__ */ n.jsx(gi, {}),
|
|
3511
3557
|
label: t("payment")
|
|
3512
3558
|
}
|
|
3513
3559
|
),
|
|
@@ -3516,7 +3562,7 @@ const Or = {
|
|
|
3516
3562
|
{
|
|
3517
3563
|
className: "gift-cards",
|
|
3518
3564
|
mobileUrl: `${c}/gift-cards`,
|
|
3519
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3565
|
+
icon: /* @__PURE__ */ n.jsx(mi, {}),
|
|
3520
3566
|
label: t("giftCards")
|
|
3521
3567
|
}
|
|
3522
3568
|
),
|
|
@@ -3524,7 +3570,7 @@ const Or = {
|
|
|
3524
3570
|
_t,
|
|
3525
3571
|
{
|
|
3526
3572
|
mobileUrl: `${c}/identifiers`,
|
|
3527
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3573
|
+
icon: /* @__PURE__ */ n.jsx(Ci, {}),
|
|
3528
3574
|
label: t("qrCode")
|
|
3529
3575
|
}
|
|
3530
3576
|
),
|
|
@@ -3534,17 +3580,17 @@ const Or = {
|
|
|
3534
3580
|
className: "manage-privacy",
|
|
3535
3581
|
mobileUrl: `${c}/manage-privacy`,
|
|
3536
3582
|
desktopUrl: `${c}/manage-privacy/permissions`,
|
|
3537
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3583
|
+
icon: /* @__PURE__ */ n.jsx(ii, {}),
|
|
3538
3584
|
label: t("privacy")
|
|
3539
3585
|
}
|
|
3540
3586
|
),
|
|
3541
|
-
/* @__PURE__ */ n.jsx(
|
|
3587
|
+
/* @__PURE__ */ n.jsx($i, { onClick: P, icon: /* @__PURE__ */ n.jsx(si, {}), label: t("logout") })
|
|
3542
3588
|
] })
|
|
3543
3589
|
] })
|
|
3544
3590
|
] });
|
|
3545
|
-
},
|
|
3591
|
+
}, Bi = () => {
|
|
3546
3592
|
const { t } = pt();
|
|
3547
|
-
return /* @__PURE__ */ n.jsxs("button", { className:
|
|
3593
|
+
return /* @__PURE__ */ n.jsxs("button", { className: N("button", "button--neutral", "button--authentication"), children: [
|
|
3548
3594
|
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx("i", { className: "spinner" }) }),
|
|
3549
3595
|
/* @__PURE__ */ n.jsxs("span", { className: "button__label", children: [
|
|
3550
3596
|
t("loading"),
|
|
@@ -3556,12 +3602,12 @@ const Or = {
|
|
|
3556
3602
|
function It(t) {
|
|
3557
3603
|
for (var e = 1; e < arguments.length; e++) {
|
|
3558
3604
|
var s = arguments[e];
|
|
3559
|
-
for (var
|
|
3560
|
-
t[
|
|
3605
|
+
for (var r in s)
|
|
3606
|
+
t[r] = s[r];
|
|
3561
3607
|
}
|
|
3562
3608
|
return t;
|
|
3563
3609
|
}
|
|
3564
|
-
var
|
|
3610
|
+
var tn = {
|
|
3565
3611
|
read: function(t) {
|
|
3566
3612
|
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3567
3613
|
},
|
|
@@ -3582,7 +3628,7 @@ function we(t, e) {
|
|
|
3582
3628
|
return document.cookie = a + "=" + t.write(c, a) + u;
|
|
3583
3629
|
}
|
|
3584
3630
|
}
|
|
3585
|
-
function
|
|
3631
|
+
function r(a) {
|
|
3586
3632
|
if (!(typeof document > "u" || arguments.length && !a)) {
|
|
3587
3633
|
for (var c = document.cookie ? document.cookie.split("; ") : [], l = {}, u = 0; u < c.length; u++) {
|
|
3588
3634
|
var d = c[u].split("="), p = d.slice(1).join("=");
|
|
@@ -3599,7 +3645,7 @@ function we(t, e) {
|
|
|
3599
3645
|
return Object.create(
|
|
3600
3646
|
{
|
|
3601
3647
|
set: s,
|
|
3602
|
-
get:
|
|
3648
|
+
get: r,
|
|
3603
3649
|
remove: function(a, c) {
|
|
3604
3650
|
s(
|
|
3605
3651
|
a,
|
|
@@ -3622,18 +3668,18 @@ function we(t, e) {
|
|
|
3622
3668
|
}
|
|
3623
3669
|
);
|
|
3624
3670
|
}
|
|
3625
|
-
var
|
|
3626
|
-
const
|
|
3627
|
-
const { t: e } = pt(), { loginUrl: s } =
|
|
3628
|
-
return
|
|
3629
|
-
const a =
|
|
3630
|
-
|
|
3631
|
-
}, [
|
|
3671
|
+
var qe = we(tn, { path: "/" });
|
|
3672
|
+
const en = ({ className: t }) => {
|
|
3673
|
+
const { t: e } = pt(), { loginUrl: s } = ie(), r = i.useRef(null);
|
|
3674
|
+
return i.useEffect(() => {
|
|
3675
|
+
const a = qe.get("shouldLogin"), c = !!a && !!atob(a);
|
|
3676
|
+
r != null && r.current && c && (qe.remove("shouldLogin"), r.current.click());
|
|
3677
|
+
}, [r]), /* @__PURE__ */ n.jsxs(
|
|
3632
3678
|
"a",
|
|
3633
3679
|
{
|
|
3634
|
-
ref:
|
|
3680
|
+
ref: r,
|
|
3635
3681
|
href: s,
|
|
3636
|
-
className:
|
|
3682
|
+
className: N(
|
|
3637
3683
|
"button",
|
|
3638
3684
|
"button--neutral",
|
|
3639
3685
|
"button--authentication",
|
|
@@ -3641,53 +3687,53 @@ const Vr = ({ className: t }) => {
|
|
|
3641
3687
|
t
|
|
3642
3688
|
),
|
|
3643
3689
|
children: [
|
|
3644
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3690
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Es, { width: 24, height: 24, suffix: "desktop" }) }),
|
|
3645
3691
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: e("login") }),
|
|
3646
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(
|
|
3692
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3647
3693
|
]
|
|
3648
3694
|
}
|
|
3649
3695
|
);
|
|
3650
|
-
},
|
|
3651
|
-
const { t } = pt(), { loginUrl: e } =
|
|
3696
|
+
}, sn = () => {
|
|
3697
|
+
const { t } = pt(), { loginUrl: e } = ie(), s = rs(), { position: r } = Ts();
|
|
3652
3698
|
return /* @__PURE__ */ n.jsxs(
|
|
3653
3699
|
G,
|
|
3654
3700
|
{
|
|
3655
3701
|
type: "nav",
|
|
3656
3702
|
id: "xtra-menu",
|
|
3657
|
-
position:
|
|
3703
|
+
position: r,
|
|
3658
3704
|
className: "menu--unauthenticated",
|
|
3659
3705
|
"aria-label": t("xtraMenuAriaLabel"),
|
|
3660
3706
|
children: [
|
|
3661
|
-
/* @__PURE__ */ n.jsx(G.Trigger, { className:
|
|
3662
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3663
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(
|
|
3707
|
+
/* @__PURE__ */ n.jsx(G.Trigger, { className: N("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ n.jsxs("button", { children: [
|
|
3708
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Es, { width: 24, height: 24, suffix: "mobile" }) }),
|
|
3709
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3664
3710
|
] }) }),
|
|
3665
3711
|
/* @__PURE__ */ n.jsxs(G.Content, { children: [
|
|
3666
3712
|
/* @__PURE__ */ n.jsx(G.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: e, className: "button button--with-icon", children: [
|
|
3667
|
-
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3713
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(ti, {}) }),
|
|
3668
3714
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("login") })
|
|
3669
3715
|
] }) }),
|
|
3670
3716
|
/* @__PURE__ */ n.jsx(G.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
|
|
3671
|
-
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3717
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(li, {}) }),
|
|
3672
3718
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("register") })
|
|
3673
3719
|
] }) })
|
|
3674
3720
|
] })
|
|
3675
3721
|
]
|
|
3676
3722
|
}
|
|
3677
3723
|
);
|
|
3678
|
-
},
|
|
3724
|
+
}, rn = () => {
|
|
3679
3725
|
var e, s;
|
|
3680
|
-
const t =
|
|
3681
|
-
return ((e = t.data) == null ? void 0 : e.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ n.jsx(
|
|
3682
|
-
/* @__PURE__ */ n.jsx(
|
|
3683
|
-
/* @__PURE__ */ n.jsx(
|
|
3684
|
-
] }) : /* @__PURE__ */ n.jsx(
|
|
3685
|
-
},
|
|
3726
|
+
const t = Hs();
|
|
3727
|
+
return ((e = t.data) == null ? void 0 : e.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ n.jsx(Ii, {}) : ((s = t.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || t.isError ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3728
|
+
/* @__PURE__ */ n.jsx(en, {}),
|
|
3729
|
+
/* @__PURE__ */ n.jsx(sn, {})
|
|
3730
|
+
] }) : /* @__PURE__ */ n.jsx(Bi, {});
|
|
3731
|
+
}, Ks = () => {
|
|
3686
3732
|
const { apiUrl: t } = St();
|
|
3687
3733
|
return `${`${t}/xtra`}/authentication/v1/gdpr`;
|
|
3688
|
-
},
|
|
3689
|
-
const { i18n: t } = pt(), e =
|
|
3690
|
-
return
|
|
3734
|
+
}, nn = () => {
|
|
3735
|
+
const { i18n: t } = pt(), e = Ks(), { country: s, bouHeaders: r } = St(), a = new ps();
|
|
3736
|
+
return kr({
|
|
3691
3737
|
mutationFn: async (l) => {
|
|
3692
3738
|
const u = je(t.language, s), d = await fetch(`${e}/tc`, {
|
|
3693
3739
|
body: JSON.stringify({ acceptedTC: l }),
|
|
@@ -3695,7 +3741,7 @@ const Vr = ({ className: t }) => {
|
|
|
3695
3741
|
headers: {
|
|
3696
3742
|
"Content-Type": "application/json",
|
|
3697
3743
|
"Accept-Language": u,
|
|
3698
|
-
...
|
|
3744
|
+
...r
|
|
3699
3745
|
},
|
|
3700
3746
|
method: "POST",
|
|
3701
3747
|
mode: "cors"
|
|
@@ -3708,16 +3754,16 @@ const Vr = ({ className: t }) => {
|
|
|
3708
3754
|
await a.invalidateQueries({ queryKey: ["gdpr"] });
|
|
3709
3755
|
}
|
|
3710
3756
|
});
|
|
3711
|
-
},
|
|
3757
|
+
}, an = () => {
|
|
3712
3758
|
var u;
|
|
3713
|
-
const { i18n: t } = pt(), e =
|
|
3714
|
-
return
|
|
3759
|
+
const { i18n: t } = pt(), e = Ks(), { country: s, bouHeaders: r } = St(), c = ((u = Hs().data) == null ? void 0 : u.authenticationStatus) === "Authenticated";
|
|
3760
|
+
return Cs({
|
|
3715
3761
|
queryKey: ["gdpr"],
|
|
3716
3762
|
queryFn: async () => {
|
|
3717
3763
|
const d = je(t.language, s), p = await fetch(`${e}/tc/check`, {
|
|
3718
3764
|
credentials: "include",
|
|
3719
3765
|
mode: "cors",
|
|
3720
|
-
headers: { "Accept-Language": d, ...
|
|
3766
|
+
headers: { "Accept-Language": d, ...r }
|
|
3721
3767
|
});
|
|
3722
3768
|
if (!p.ok)
|
|
3723
3769
|
throw new Error("Network response was not ok");
|
|
@@ -3725,76 +3771,76 @@ const Vr = ({ className: t }) => {
|
|
|
3725
3771
|
},
|
|
3726
3772
|
enabled: c
|
|
3727
3773
|
});
|
|
3728
|
-
},
|
|
3729
|
-
var
|
|
3730
|
-
const { t } = pt(), { logoutUrl: e } =
|
|
3731
|
-
|
|
3732
|
-
const g = t("termsAndConditions.error.required"),
|
|
3774
|
+
}, on = () => {
|
|
3775
|
+
var E;
|
|
3776
|
+
const { t } = pt(), { logoutUrl: e } = ie(), [s, r] = i.useState(0), [a, c] = i.useState({}), { AccessibleFormMessage: l, formRef: u } = $s({ submitCount: s, errors: a }), { mutate: d, isError: p } = nn(), f = an(), [h, y] = i.useState(!1);
|
|
3777
|
+
Zs({ element: "xtra-authentication" });
|
|
3778
|
+
const g = t("termsAndConditions.error.required"), P = () => {
|
|
3733
3779
|
y(!1), document.body.style.removeProperty("overflow");
|
|
3734
3780
|
};
|
|
3735
|
-
|
|
3736
|
-
var
|
|
3737
|
-
(
|
|
3738
|
-
}, [(
|
|
3781
|
+
i.useEffect(() => {
|
|
3782
|
+
var x;
|
|
3783
|
+
(x = f.data) != null && x.length && !window.showTnCPopup && (y(!0), window.showTnCPopup = !0);
|
|
3784
|
+
}, [(E = f.data) == null ? void 0 : E.length]), i.useEffect(() => {
|
|
3739
3785
|
h && document.body.style.setProperty("overflow", "hidden");
|
|
3740
|
-
}, [h]),
|
|
3786
|
+
}, [h]), i.useEffect(() => {
|
|
3741
3787
|
p && c({ acceptedTC: g });
|
|
3742
3788
|
}, [g, p]);
|
|
3743
|
-
const S = (
|
|
3744
|
-
|
|
3745
|
-
const { acceptedTC:
|
|
3746
|
-
if (
|
|
3747
|
-
const w = Object.values(
|
|
3748
|
-
w.every((O) => O.checked) ? (c({}), d(w.map((O) => O.value)),
|
|
3789
|
+
const S = (x) => {
|
|
3790
|
+
x.preventDefault(), r((w) => w + 1);
|
|
3791
|
+
const { acceptedTC: b } = x.target;
|
|
3792
|
+
if (b instanceof RadioNodeList) {
|
|
3793
|
+
const w = Object.values(b);
|
|
3794
|
+
w.every((O) => O.checked) ? (c({}), d(w.map((O) => O.value)), P()) : c({ acceptedTC: g });
|
|
3749
3795
|
} else
|
|
3750
|
-
|
|
3796
|
+
b != null && b.checked ? (c({}), d([b.value]), P()) : c({ acceptedTC: g });
|
|
3751
3797
|
};
|
|
3752
3798
|
return h ? /* @__PURE__ */ n.jsxs(K, { defaultOpen: h, isModal: !0, children: [
|
|
3753
3799
|
l,
|
|
3754
3800
|
/* @__PURE__ */ n.jsxs(K.Root, { children: [
|
|
3755
|
-
/* @__PURE__ */ n.jsx(K.Header, { children: /* @__PURE__ */ n.jsx(K.Title, { icon: /* @__PURE__ */ n.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ n.jsx(
|
|
3756
|
-
/* @__PURE__ */ n.jsx(K.Body, { children: /* @__PURE__ */ n.jsxs(
|
|
3757
|
-
/* @__PURE__ */ n.jsxs(
|
|
3801
|
+
/* @__PURE__ */ n.jsx(K.Header, { children: /* @__PURE__ */ n.jsx(K.Title, { icon: /* @__PURE__ */ n.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ n.jsx(dn, { children: t("termsAndConditions.title") }) }) }),
|
|
3802
|
+
/* @__PURE__ */ n.jsx(K.Body, { children: /* @__PURE__ */ n.jsxs(Ws, { ref: u, id: "tc-form", onSubmit: S, children: [
|
|
3803
|
+
/* @__PURE__ */ n.jsxs(cn, { children: [
|
|
3758
3804
|
t("termsAndConditions.description"),
|
|
3759
|
-
a.acceptedTC && /* @__PURE__ */ n.jsx(
|
|
3805
|
+
a.acceptedTC && /* @__PURE__ */ n.jsx(hn, { children: g })
|
|
3760
3806
|
] }),
|
|
3761
|
-
f.data.map(({ tcCode:
|
|
3807
|
+
f.data.map(({ tcCode: x, title: b, URL: w }) => /* @__PURE__ */ n.jsx(
|
|
3762
3808
|
jt,
|
|
3763
3809
|
{
|
|
3764
|
-
id:
|
|
3765
|
-
value:
|
|
3810
|
+
id: x,
|
|
3811
|
+
value: x,
|
|
3766
3812
|
name: "acceptedTC",
|
|
3767
3813
|
variant: "primary",
|
|
3768
3814
|
children: /* @__PURE__ */ n.jsxs(jt.Content, { children: [
|
|
3769
|
-
/* @__PURE__ */ n.jsx(
|
|
3770
|
-
/* @__PURE__ */ n.jsx(
|
|
3815
|
+
/* @__PURE__ */ n.jsx(ln, { children: b }),
|
|
3816
|
+
/* @__PURE__ */ n.jsx(un, { href: w, children: t("termsAndConditions.action", { title: b }) })
|
|
3771
3817
|
] })
|
|
3772
3818
|
},
|
|
3773
|
-
|
|
3819
|
+
x
|
|
3774
3820
|
))
|
|
3775
3821
|
] }) }),
|
|
3776
3822
|
/* @__PURE__ */ n.jsxs(K.Footer, { children: [
|
|
3777
3823
|
/* @__PURE__ */ n.jsx(
|
|
3778
3824
|
"a",
|
|
3779
3825
|
{
|
|
3780
|
-
className:
|
|
3826
|
+
className: N("button", "button--secondary", "button--terms-and-conditions"),
|
|
3781
3827
|
href: e,
|
|
3782
3828
|
children: t("logout")
|
|
3783
3829
|
}
|
|
3784
3830
|
),
|
|
3785
|
-
/* @__PURE__ */ n.jsx(
|
|
3831
|
+
/* @__PURE__ */ n.jsx(Kt, { form: "tc-form", type: "submit", variant: "primary", children: t("confirm") })
|
|
3786
3832
|
] })
|
|
3787
3833
|
] })
|
|
3788
3834
|
] }) : null;
|
|
3789
|
-
},
|
|
3835
|
+
}, ln = ({
|
|
3790
3836
|
children: t,
|
|
3791
3837
|
...e
|
|
3792
|
-
}) => /* @__PURE__ */ n.jsx(jt.Label, { className: "form--tc__label", ...e, children: t }),
|
|
3793
|
-
|
|
3794
|
-
const
|
|
3838
|
+
}) => /* @__PURE__ */ n.jsx(jt.Label, { className: "form--tc__label", ...e, children: t }), Ws = i.forwardRef(({ children: t, ...e }, s) => /* @__PURE__ */ n.jsx("form", { className: "form--tc", ref: s, ...e, children: t }));
|
|
3839
|
+
Ws.displayName = "TermsAndConditionsForm";
|
|
3840
|
+
const cn = ({
|
|
3795
3841
|
children: t,
|
|
3796
3842
|
...e
|
|
3797
|
-
}) => /* @__PURE__ */ n.jsx("p", { className: "form--tc__description", ...e, children: t }),
|
|
3843
|
+
}) => /* @__PURE__ */ n.jsx("p", { className: "form--tc__description", ...e, children: t }), un = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx(
|
|
3798
3844
|
"a",
|
|
3799
3845
|
{
|
|
3800
3846
|
className: "form--tc__link",
|
|
@@ -3805,39 +3851,39 @@ const Ir = ({
|
|
|
3805
3851
|
...e,
|
|
3806
3852
|
children: t
|
|
3807
3853
|
}
|
|
3808
|
-
),
|
|
3854
|
+
), dn = ({ children: t }) => /* @__PURE__ */ n.jsx("h1", { className: "form--tc__title", children: t }), hn = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx("span", { className: "form--tc__error", role: "alert", ...e, children: t }), fn = new ps(), yn = ({
|
|
3809
3855
|
environment: t,
|
|
3810
3856
|
redirectUrl: e,
|
|
3811
3857
|
apiUrl: s,
|
|
3812
|
-
authUrl:
|
|
3858
|
+
authUrl: r,
|
|
3813
3859
|
position: a,
|
|
3814
3860
|
commerceId: c,
|
|
3815
3861
|
bouMenuItems: l,
|
|
3816
3862
|
menuItemsToHide: u,
|
|
3817
3863
|
bouHeaders: d,
|
|
3818
3864
|
country: p
|
|
3819
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
3820
|
-
|
|
3865
|
+
}) => /* @__PURE__ */ n.jsx(Xs, { environment: t, children: /* @__PURE__ */ n.jsx(Ys, { commerceId: c, children: /* @__PURE__ */ n.jsx(
|
|
3866
|
+
Zi,
|
|
3821
3867
|
{
|
|
3822
3868
|
apiUrl: s,
|
|
3823
|
-
authUrl:
|
|
3869
|
+
authUrl: r,
|
|
3824
3870
|
country: p,
|
|
3825
3871
|
redirectUrl: e,
|
|
3826
3872
|
bouHeaders: d,
|
|
3827
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
3873
|
+
children: /* @__PURE__ */ n.jsxs(mr, { client: fn, children: [
|
|
3828
3874
|
/* @__PURE__ */ n.jsx(
|
|
3829
|
-
|
|
3875
|
+
Xi,
|
|
3830
3876
|
{
|
|
3831
3877
|
position: a,
|
|
3832
3878
|
bouMenuItems: l,
|
|
3833
3879
|
menuItemsToHide: u,
|
|
3834
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3880
|
+
children: /* @__PURE__ */ n.jsx(rn, {})
|
|
3835
3881
|
}
|
|
3836
3882
|
),
|
|
3837
|
-
/* @__PURE__ */ n.jsx(
|
|
3883
|
+
/* @__PURE__ */ n.jsx(on, {})
|
|
3838
3884
|
] })
|
|
3839
3885
|
}
|
|
3840
3886
|
) }) });
|
|
3841
3887
|
export {
|
|
3842
|
-
|
|
3888
|
+
yn as default
|
|
3843
3889
|
};
|