@myxtra/authentication-green 2.25.0 → 2.26.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-DPuEWLjF.js → App-DBu1-gfq.js} +955 -959
- package/dist/{Categoriesbaby-DOC_ZuHD.js → Categoriesbaby-zLV8UkNS.js} +1 -1
- package/dist/{Categoriesbakery-DlKcDPmz.js → Categoriesbakery-BtvnuWq5.js} +1 -1
- package/dist/{Categoriesbbq-Q-bgGly5.js → Categoriesbbq-CBOtiZ2p.js} +1 -1
- package/dist/{Categoriesbreakfast-Bll-Mi7n.js → Categoriesbreakfast-Dl3J81Wq.js} +1 -1
- package/dist/{Categoriesbrik-BqUGdrqy.js → Categoriesbrik-YczPL7LO.js} +1 -1
- package/dist/{Categoriescandy-s7ExjVVD.js → Categoriescandy-B9Hl2Y8Q.js} +1 -1
- package/dist/{Categoriescar-B9uBCkgM.js → Categoriescar-CdLHTYAz.js} +1 -1
- package/dist/{Categoriescarandbike--nmwHcRo.js → Categoriescarandbike-bV2yUhiY.js} +1 -1
- package/dist/{Categorieschild-CzSnX2sP.js → Categorieschild-AelqMsFx.js} +1 -1
- package/dist/{Categoriescigarette-Bwsle8MH.js → Categoriescigarette-Cfk5fMMU.js} +1 -1
- package/dist/{Categoriescleaning-Cgk6SII3.js → Categoriescleaning-mFlJOx18.js} +1 -1
- package/dist/{Categoriesclothing-coxlXs5I.js → Categoriesclothing-DLQJSJsN.js} +1 -1
- package/dist/{Categoriesconserve-DAVg_yOJ.js → Categoriesconserve-e9Oh3upX.js} +1 -1
- package/dist/{Categoriesdairy-zA59DtKo.js → Categoriesdairy-CTqL2sJb.js} +1 -1
- package/dist/{Categoriesdeskandtravel-Y6qbY73Z.js → Categoriesdeskandtravel-CpaWwhg3.js} +1 -1
- package/dist/{Categoriesdiet-CVom5yc8.js → Categoriesdiet-DxyO8bcA.js} +1 -1
- package/dist/{Categoriesdryfood-Cgp3gROJ.js → Categoriesdryfood-C3HFUdB6.js} +1 -1
- package/dist/{Categorieseaster-C_hvclRo.js → Categorieseaster-H94UVblv.js} +1 -1
- package/dist/{Categoriesenergy-C1OLAInr.js → Categoriesenergy-B90ZmPhx.js} +1 -1
- package/dist/{Categoriesfish-B1P-U203.js → Categoriesfish-BH_crDgN.js} +1 -1
- package/dist/{Categoriesfood-B7aSTjZ2.js → Categoriesfood-GFrH8FR6.js} +1 -1
- package/dist/{Categoriesfreezer-wGYA4amT.js → Categoriesfreezer-CpiCEfyR.js} +1 -1
- package/dist/{Categoriesfuel-DMuPgsYf.js → Categoriesfuel-DgDagTsP.js} +1 -1
- package/dist/{Categoriesgranen-CEJ4rlK1.js → Categoriesgranen-CFzk9xdG.js} +1 -1
- package/dist/{Categoriesgrid-C0W01uYu.js → Categoriesgrid-4SL_ZCl3.js} +1 -1
- package/dist/{Categorieshome-C6vMWaOG.js → Categorieshome-DgORtmRv.js} +1 -1
- package/dist/{Categorieshygiene-ZpQoIN9G.js → Categorieshygiene-BiDjuHHG.js} +1 -1
- package/dist/{Categoriesmealbox-BD9Kn9-E.js → Categoriesmealbox-CdUSsl70.js} +1 -1
- package/dist/{Categoriesmeat-DDETfqmu.js → Categoriesmeat-MnYT-oF-.js} +1 -1
- package/dist/{Categoriesmultimedia-CZFXqlpM.js → Categoriesmultimedia-CdfwJGrj.js} +1 -1
- package/dist/{Categoriesnonfood-B0tE2q3x.js → Categoriesnonfood-Caery7h5.js} +1 -1
- package/dist/{Categoriesonlinepromo-CGrJ1dFa.js → Categoriesonlinepromo-B-bOd6-N.js} +1 -1
- package/dist/{Categoriesparty-COfKidN_.js → Categoriesparty-lPH7BbPT.js} +1 -1
- package/dist/{Categoriespets-D44FbzNo.js → Categoriespets-BuKfsdK6.js} +1 -1
- package/dist/{Categoriesplaceholder-Du7e9lT9.js → Categoriesplaceholder-BoN0C7uF.js} +1 -1
- package/dist/{Categoriespuzzle-CU4-hHQf.js → Categoriespuzzle-Bex7QRuv.js} +1 -1
- package/dist/{Categoriessnacks-9KlAVhfs.js → Categoriessnacks-BgVfm4XZ.js} +1 -1
- package/dist/{Categoriessoda--eBylTkI.js → Categoriessoda-BDKmW1FC.js} +1 -1
- package/dist/{Categoriessportfood-B5to0ViF.js → Categoriessportfood-B5IP5R4L.js} +1 -1
- package/dist/{Categoriestins-TYY6cP6b.js → Categoriestins-SQQ_bAMY.js} +1 -1
- package/dist/{Categoriestoyandhobby-O8FK-93I.js → Categoriestoyandhobby-D1wB-Pd5.js} +1 -1
- package/dist/{Categoriestoys-XHM0bIMT.js → Categoriestoys-D03TNBni.js} +1 -1
- package/dist/{Categoriesvegetables-DaKG4WyY.js → Categoriesvegetables-CBV5KT_y.js} +1 -1
- package/dist/{Categorieswine-CM7b6_wY.js → Categorieswine-C3g0I95E.js} +1 -1
- package/dist/{Fueladblue-CWKC7nWX.js → Fueladblue-ChqSddse.js} +1 -1
- package/dist/{Fuelb7-COtNdcwF.js → Fuelb7-3IPpIx6U.js} +1 -1
- package/dist/{Fuelcng-Br2q0gYk.js → Fuelcng-l2THW70a.js} +1 -1
- package/dist/{Fuele10-DMzfbJCG.js → Fuele10-XuiOitOL.js} +1 -1
- package/dist/{Fuele5-CMQmD4bT.js → Fuele5-BiaBtRgK.js} +1 -1
- package/dist/{Fuelfreetireinflation-DzBsqU-g.js → Fuelfreetireinflation-DmUEBmF6.js} +1 -1
- package/dist/{Fuelh2-C-vqmw6E.js → Fuelh2-CrOxMeIM.js} +1 -1
- package/dist/{Functional18plus-B81lw15R.js → Functional18plus-Ddg8XOc-.js} +1 -1
- package/dist/{Functionalaccount-DqT61ODm.js → Functionalaccount-Bnt6MZ3W.js} +1 -1
- package/dist/{Functionaladdtolist-CZ9Ksc1A.js → Functionaladdtolist-BlNEspkM.js} +1 -1
- package/dist/{Functionaladduser-BzojG3wi.js → Functionaladduser-CWXkXUog.js} +1 -1
- package/dist/{Functionalalphabeta-D3FJdeE_.js → Functionalalphabeta-CulAnUDo.js} +1 -1
- package/dist/{Functionalback-65zmCDjv.js → Functionalback-pl0V3Kby.js} +1 -1
- package/dist/{Functionalbarcode-BXdG8kp_.js → Functionalbarcode-DVJVYtfB.js} +1 -1
- package/dist/{Functionalblock-CRxUyFK_.js → Functionalblock-CemRET4z.js} +1 -1
- package/dist/{Functionalbox-oU3IgVn9.js → Functionalbox-P-ghum33.js} +1 -1
- package/dist/{Functionalcalendar-Dhh0tAw2.js → Functionalcalendar-CbO9iWkB.js} +1 -1
- package/dist/{Functionalcamera-N-SlPHXY.js → Functionalcamera-SLzIKiv4.js} +1 -1
- package/dist/{Functionalcartcheckout-B6YJdY9L.js → Functionalcartcheckout-DLRylbbf.js} +1 -1
- package/dist/{Functionalcartedit-Cj1VScM8.js → Functionalcartedit-BZsOoHDj.js} +1 -1
- package/dist/{Functionalcheck-DjBNO3ZV.js → Functionalcheck-CTsaSo12.js} +1 -1
- package/dist/{Functionalchecklist-B4m95zLI.js → Functionalchecklist-CDignahR.js} +1 -1
- package/dist/{Functionalchevrondown-DeSU4dRJ.js → Functionalchevrondown-B3QLvQH7.js} +1 -1
- package/dist/{Functionalchevronright-BAgIHLVE.js → Functionalchevronright-BelpgxQR.js} +1 -1
- package/dist/{Functionalchevronup-DBO2vYde.js → Functionalchevronup-CqSxvkmf.js} +1 -1
- package/dist/{Functionalclock-DCj8T-TL.js → Functionalclock-Ca2aahAP.js} +1 -1
- package/dist/{Functionalclose-SvauYhlX.js → Functionalclose-BKUMSRuU.js} +1 -1
- package/dist/{Functionalcommunications-C8YqPxtA.js → Functionalcommunications-jAeYBymW.js} +1 -1
- package/dist/{Functionalconnecteddevice-BIOGt9T7.js → Functionalconnecteddevice-DkNljFxK.js} +1 -1
- package/dist/{Functionalconnectioncable-w9NoRv6P.js → Functionalconnectioncable-D8WJV_SD.js} +1 -1
- package/dist/{Functionalcookies-DrA35JlA.js → Functionalcookies-D_WTTmgL.js} +1 -1
- package/dist/{Functionalcopy-qsj6Sd_B.js → Functionalcopy-CvbASnR4.js} +1 -1
- package/dist/{Functionalcustomerservice-CQI2QALG.js → Functionalcustomerservice-Bx8Njg04.js} +1 -1
- package/dist/{Functionaldeliveryaddresses-Dqsm7S0r.js → Functionaldeliveryaddresses-DclG3tVD.js} +1 -1
- package/dist/{Functionaldiscount-CKUohULp.js → Functionaldiscount-oAG4VzGV.js} +1 -1
- package/dist/{Functionaldiscountcode-BujJ9fa-.js → Functionaldiscountcode-BQwI1UEy.js} +1 -1
- package/dist/{Functionaldownload-DGL6wvbc.js → Functionaldownload-C9a_ajXf.js} +1 -1
- package/dist/{Functionaldrycleaning-BmNCIeVg.js → Functionaldrycleaning-BVALxFXl.js} +1 -1
- package/dist/{Functionalecoearth-33syfFhq.js → Functionalecoearth-B9LJ8J_5.js} +1 -1
- package/dist/{Functionaledit-nAKG-jtF.js → Functionaledit-BYiFmpwL.js} +1 -1
- package/dist/{Functionalellipsis-rkPSk_7T.js → Functionalellipsis-rU1EVOZc.js} +1 -1
- package/dist/{Functionalerrorcircle-DwfBkoo9.js → Functionalerrorcircle-CmQvSLoF.js} +1 -1
- package/dist/{Functionalerrorcirclefilled-De_EU8HW.js → Functionalerrorcirclefilled-d0USRGtr.js} +1 -1
- package/dist/{Functionaleuro-BI6ILaM6.js → Functionaleuro-D7wFD_IF.js} +1 -1
- package/dist/{Functionalexit-BeqXCGyO.js → Functionalexit-nIomTzRH.js} +1 -1
- package/dist/{Functionalexport-NFQBBSsl.js → Functionalexport-DUQwwuwQ.js} +1 -1
- package/dist/{Functionalexternallink-Cr7o00YG.js → Functionalexternallink-Dij3wfx3.js} +1 -1
- package/dist/{Functionaleyehidden-XFztxAqt.js → Functionaleyehidden-CU3Vb1Dq.js} +1 -1
- package/dist/{Functionaleyeshow-M5l96mSk.js → Functionaleyeshow-VZvRHUCc.js} +1 -1
- package/dist/{Functionalfilter-BEr-iVYT.js → Functionalfilter-C-Fafr2v.js} +1 -1
- package/dist/{Functionalfirstadded-Vuk8GbmF.js → Functionalfirstadded-CTo_v97-.js} +1 -1
- package/dist/{Functionalgift-ClwjUOOI.js → Functionalgift-qlRuU3JH.js} +1 -1
- package/dist/{Functionalhistory-OGfyFFrW.js → Functionalhistory-Bv4epxeh.js} +1 -1
- package/dist/{Functionalidea-i0AnV9bM.js → Functionalidea-BwbY50VB.js} +1 -1
- package/dist/{Functionalinappnotifications-Du98xnRa.js → Functionalinappnotifications-CQnv2KIU.js} +1 -1
- package/dist/{Functionalkiosk-DfzJl9fT.js → Functionalkiosk-CXoriPgN.js} +1 -1
- package/dist/{Functionallastadded-DDfGtuJj.js → Functionallastadded-DUTNwqzq.js} +1 -1
- package/dist/{Functionallifestyle-D0zANQKA.js → Functionallifestyle-C8vEOp3s.js} +1 -1
- package/dist/{Functionallist-BUDxBJzZ.js → Functionallist-C4ahBTwf.js} +1 -1
- package/dist/{Functionalloading-CavVSi4g.js → Functionalloading-BgGaayIk.js} +1 -1
- package/dist/{Functionallocate-DASXvdyv.js → Functionallocate-CyDygvGn.js} +1 -1
- package/dist/{Functionallocation-DWikU6y0.js → Functionallocation-BEO7IAQp.js} +1 -1
- package/dist/{Functionallocationhome-HAeap-7B.js → Functionallocationhome-QLhGNoLv.js} +1 -1
- package/dist/{Functionallocationpickup-bMUAciNO.js → Functionallocationpickup-DZFse_eh.js} +1 -1
- package/dist/{Functionallogin-CmgPHsDj.js → Functionallogin-mkMT1rHL.js} +1 -1
- package/dist/{Functionallogout-WQObFXNd.js → Functionallogout-CJEOzHOZ.js} +1 -1
- package/dist/{Functionalmail-B60xLcCZ.js → Functionalmail-DosjUg7Y.js} +1 -1
- package/dist/{Functionalmaplocation-Ddte5L2w.js → Functionalmaplocation-ByzgczPG.js} +1 -1
- package/dist/{Functionalmenu-Bx_SglRU.js → Functionalmenu-CgLBEUY-.js} +1 -1
- package/dist/{Functionalmessage-DilW_ij4.js → Functionalmessage-B3lG5V8T.js} +1 -1
- package/dist/{Functionalmessagefield-B8kLFGcI.js → Functionalmessagefield-wyUwQjlA.js} +1 -1
- package/dist/{Functionalminus-C5lvaL_b.js → Functionalminus-DAjUNbXV.js} +1 -1
- package/dist/{Functionalmobilepay-BxlW6L3v.js → Functionalmobilepay-c9RlQquM.js} +1 -1
- package/dist/{Functionalmultifactorauthenticator-C6Tcg6Qg.js → Functionalmultifactorauthenticator-D6xenqja.js} +1 -1
- package/dist/{Functionalnews-DMnYtnSA.js → Functionalnews-B9eVhJW3.js} +1 -1
- package/dist/{Functionalnext-Bob1Pr0g.js → Functionalnext-Ex_XasPq.js} +1 -1
- package/dist/{Functionalnoconnection-DSSSbv77.js → Functionalnoconnection-ccOk8_bI.js} +1 -1
- package/dist/{Functionalnumber-8Wrw3uLm.js → Functionalnumber-aZYnBBcv.js} +1 -1
- package/dist/{Functionalother-bYOLLWCL.js → Functionalother-Db-O1duA.js} +1 -1
- package/dist/{Functionalpack-Do-NA_x_.js → Functionalpack-DabqpolM.js} +1 -1
- package/dist/{Functionalpassword-GcFWOzh2.js → Functionalpassword-D_qE10n9.js} +1 -1
- package/dist/{Functionalpercentage-3yrkVSoK.js → Functionalpercentage-O6rN3h02.js} +1 -1
- package/dist/{Functionalphone-9_RSyOs2.js → Functionalphone-B8vKtJxT.js} +1 -1
- package/dist/{Functionalpiece-CgSk4m1N.js → Functionalpiece-THXTuVKJ.js} +1 -1
- package/dist/{Functionalpinoutlines-DbEZE0Er.js → Functionalpinoutlines-D9eN3Okw.js} +1 -1
- package/dist/{Functionalplus-BMLtPBNt.js → Functionalplus-xF4rj5tZ.js} +1 -1
- package/dist/{Functionalpluscircle-D76QYMjT.js → Functionalpluscircle-Bu5ECDIH.js} +1 -1
- package/dist/{Functionalpresent-3FK5CWtG.js → Functionalpresent-hNlK0QJ-.js} +1 -1
- package/dist/{Functionalprivacy-CnxNCyYe.js → Functionalprivacy-zotrCI5M.js} +1 -1
- package/dist/{Functionalpushnotifications-ZbsCkM4x.js → Functionalpushnotifications-D8pF_ZEC.js} +1 -1
- package/dist/{Functionalquestioncircle-Cftll_73.js → Functionalquestioncircle-2PDi1sbY.js} +1 -1
- package/dist/{Functionalquestioncirclefilled-G6C3OXhy.js → Functionalquestioncirclefilled-D3WuYQhd.js} +1 -1
- package/dist/{Functionalreadtime-BoaOLxTp.js → Functionalreadtime-BFDKvQ3c.js} +1 -1
- package/dist/{Functionalregister-BzKRIHjE.js → Functionalregister-hO7RUkdA.js} +1 -1
- package/dist/{Functionalreset-BgaOxpGO.js → Functionalreset-LieSrLvz.js} +1 -1
- package/dist/{Functionalsave-DeVoLFQI.js → Functionalsave-BvYJdq6M.js} +1 -1
- package/dist/{Functionalsearch-BUqLRPrC.js → Functionalsearch-CxMyPsNE.js} +1 -1
- package/dist/{Functionalsettings-Do2O1RWt.js → Functionalsettings-DEbullli.js} +1 -1
- package/dist/{Functionalshare-BmrBMkpy.js → Functionalshare-BaSede1c.js} +1 -1
- package/dist/{Functionalshared-VfUrrErw.js → Functionalshared-CA39SW4R.js} +1 -1
- package/dist/{Functionalshoppingcart-DDw_7_qV.js → Functionalshoppingcart-BjYAfE_n.js} +1 -1
- package/dist/{Functionalshops-BG2L4Btd.js → Functionalshops-Blr-QFKj.js} +1 -1
- package/dist/{Functionalsms-DyKuC8x0.js → Functionalsms-BT7bYQ7Y.js} +1 -1
- package/dist/{Functionalsorting-BUoVYHkd.js → Functionalsorting-C9GRh7zT.js} +1 -1
- package/dist/{Functionalspinner-C8l-CpJr.js → Functionalspinner-DuD-_Mnk.js} +1 -1
- package/dist/{Functionalstorelayout-D-nnmpSE.js → Functionalstorelayout-hmnfPr-B.js} +1 -1
- package/dist/{Functionalsuccesscircle-B8876_by.js → Functionalsuccesscircle-CvnJtrC1.js} +1 -1
- package/dist/{Functionalsuccesscirclefilled-CjadKbr-.js → Functionalsuccesscirclefilled-CN27HmQp.js} +1 -1
- package/dist/{Functionalswap-NnOocHex.js → Functionalswap-C1b8rSWs.js} +1 -1
- package/dist/{Functionalswitch-BMpBzGz-.js → Functionalswitch-Cj7NRzBZ.js} +1 -1
- package/dist/{Functionalthumbsup-Cp04whsE.js → Functionalthumbsup-D6-dxP2g.js} +1 -1
- package/dist/{Functionaltimer-BOFmpLXr.js → Functionaltimer-BHdD7mIx.js} +1 -1
- package/dist/{Functionaltrash-PF-S35vQ.js → Functionaltrash-CojPY_AR.js} +1 -1
- package/dist/{Functionaltruck-8WEeF31a.js → Functionaltruck-c609Vcql.js} +1 -1
- package/dist/{Functionaluserinfo-DTNeyMuA.js → Functionaluserinfo-C8i7GKmE.js} +1 -1
- package/dist/{Functionalviewfile-BDO_K-MF.js → Functionalviewfile-CCzlhZ-j.js} +1 -1
- package/dist/{Functionalwarningcircle-BhHk8Bz7.js → Functionalwarningcircle-C1i2MU6-.js} +1 -1
- package/dist/{Functionalwarningcirclefilled-D94wyNTu.js → Functionalwarningcirclefilled-B3K_ckR6.js} +1 -1
- package/dist/{Functionalwebsite-IHjtSmP7.js → Functionalwebsite-BlxPVfWP.js} +1 -1
- package/dist/{Functionalweight-BuRYas11.js → Functionalweight-DpTzOcNo.js} +1 -1
- package/dist/{Toolsassortment-DGrdhFWU.js → Toolsassortment-xWqHEALg.js} +1 -1
- package/dist/{Toolscoupons-BUzx__00.js → Toolscoupons-L9V_M2No.js} +1 -1
- package/dist/{Toolsfavoriteactive-CvN5omA7.js → Toolsfavoriteactive-C0mQg0nk.js} +1 -1
- package/dist/{Toolsfavoriteinactive-D3sG2g4Z.js → Toolsfavoriteinactive-C6SFe1mS.js} +1 -1
- package/dist/{Toolsfuel-5IAWOkr9.js → Toolsfuel-CNpeIRkD.js} +1 -1
- package/dist/{Toolspay-C5-Tt34q.js → Toolspay-BTIX12zI.js} +1 -1
- package/dist/{Toolspromo-DmOGQ70t.js → Toolspromo-CnYFWt7R.js} +1 -1
- package/dist/{Toolsreceipt-BELd5rem.js → Toolsreceipt-BR3EA8Fz.js} +1 -1
- package/dist/{Toolsrecipes2-BqPmAjd3.js → Toolsrecipes2-Q86b_ALW.js} +1 -1
- package/dist/{Toolsscan2-DWDg-Y0e.js → Toolsscan2-DuQsZ8dZ.js} +1 -1
- package/dist/{Toolsshowxtranew-DTEadpWr.js → Toolsshowxtranew-DJr0dWb1.js} +1 -1
- package/dist/{Toolsshowxtraold-Ds2DBUAm.js → Toolsshowxtraold-ClA-JWTH.js} +1 -1
- package/dist/{Toolsstats-Cis7TO3_.js → Toolsstats-TBDj5H2P.js} +1 -1
- package/dist/{Toolsstorelocator-DCTcA8Ke.js → Toolsstorelocator-IhMQhuLF.js} +1 -1
- package/dist/{Toolswarranty-CyaGyr9f.js → Toolswarranty-3eHEtBaM.js} +1 -1
- package/dist/{index-Dy-1g7rr.js → index-DhNVRuRv.js} +3 -3
- package/dist/xtra-authentication.js +1 -1
- package/package.json +3 -3
|
@@ -2,16 +2,16 @@ var Ne = (t) => {
|
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
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,
|
|
6
|
-
var Yt = (t, e, 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, i) => (ne(t, e, "write to private field"), i ? i.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, i) => ({
|
|
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, i);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
import { r
|
|
14
|
+
import { r, j as n, u as Gs, a as Vs, b as pt, g as je, P as Le, c as is, d as qs, e as $s, E as Zs, C as Xs } from "./index-DhNVRuRv.js";
|
|
15
15
|
var Ht = class {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
@@ -31,13 +31,13 @@ var Ht = class {
|
|
|
31
31
|
}, Qt = typeof window > "u" || "Deno" in globalThis;
|
|
32
32
|
function q() {
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Ys(t, e) {
|
|
35
35
|
return typeof t == "function" ? t(e) : t;
|
|
36
36
|
}
|
|
37
37
|
function oe(t) {
|
|
38
38
|
return typeof t == "number" && t >= 0 && t !== 1 / 0;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function rs(t, e) {
|
|
41
41
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
42
42
|
}
|
|
43
43
|
function Pt(t, e) {
|
|
@@ -49,14 +49,14 @@ function X(t, e) {
|
|
|
49
49
|
function Me(t, e) {
|
|
50
50
|
const {
|
|
51
51
|
type: s = "all",
|
|
52
|
-
exact:
|
|
52
|
+
exact: i,
|
|
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 (i) {
|
|
60
60
|
if (e.queryHash !== Se(l, e.options))
|
|
61
61
|
return !1;
|
|
62
62
|
} else if (!Gt(e.queryKey, l))
|
|
@@ -70,7 +70,7 @@ function Me(t, e) {
|
|
|
70
70
|
return !(typeof u == "boolean" && e.isStale() !== u || a && a !== e.state.fetchStatus || c && !c(e));
|
|
71
71
|
}
|
|
72
72
|
function Fe(t, e) {
|
|
73
|
-
const { exact: s, status:
|
|
73
|
+
const { exact: s, status: i, predicate: a, mutationKey: c } = t;
|
|
74
74
|
if (c) {
|
|
75
75
|
if (!e.options.mutationKey)
|
|
76
76
|
return !1;
|
|
@@ -80,7 +80,7 @@ function Fe(t, e) {
|
|
|
80
80
|
} else if (!Gt(e.options.mutationKey, c))
|
|
81
81
|
return !1;
|
|
82
82
|
}
|
|
83
|
-
return !(
|
|
83
|
+
return !(i && e.state.status !== i || a && !a(e));
|
|
84
84
|
}
|
|
85
85
|
function Se(t, e) {
|
|
86
86
|
return ((e == null ? void 0 : e.queryKeyHashFn) || wt)(t);
|
|
@@ -88,7 +88,7 @@ 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((i, a) => (i[a] = s[a], i), {}) : s
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
94
|
function Gt(t, e) {
|
|
@@ -99,11 +99,11 @@ function ns(t, e) {
|
|
|
99
99
|
return t;
|
|
100
100
|
const s = Re(t) && Re(e);
|
|
101
101
|
if (s || le(t) && le(e)) {
|
|
102
|
-
const
|
|
102
|
+
const i = s ? t : Object.keys(t), a = i.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 && i.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
|
}
|
|
@@ -132,7 +132,7 @@ function le(t) {
|
|
|
132
132
|
function Oe(t) {
|
|
133
133
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Js(t) {
|
|
136
136
|
return new Promise((e) => {
|
|
137
137
|
setTimeout(e, t);
|
|
138
138
|
});
|
|
@@ -140,19 +140,19 @@ function Is(t) {
|
|
|
140
140
|
function ce(t, e, s) {
|
|
141
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 Is(t, e, s = 0) {
|
|
144
|
+
const i = [...t, e];
|
|
145
|
+
return s && i.length > s ? i.slice(1) : i;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
const
|
|
149
|
-
return s &&
|
|
147
|
+
function Bs(t, e, s = 0) {
|
|
148
|
+
const i = [e, ...t];
|
|
149
|
+
return s && i.length > s ? i.slice(0, -1) : i;
|
|
150
150
|
}
|
|
151
151
|
var as = Symbol();
|
|
152
152
|
function os(t, e) {
|
|
153
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, $e,
|
|
155
|
+
var mt, at, Et, $e, ti = ($e = class extends Ht {
|
|
156
156
|
constructor() {
|
|
157
157
|
super();
|
|
158
158
|
v(this, mt);
|
|
@@ -176,8 +176,8 @@ var mt, at, Et, $e, er = ($e = 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((i) => {
|
|
180
|
+
typeof i == "boolean" ? this.setFocused(i) : this.onFocus();
|
|
181
181
|
}));
|
|
182
182
|
}
|
|
183
183
|
setFocused(e) {
|
|
@@ -193,7 +193,7 @@ var mt, at, Et, $e, er = ($e = 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(), $e), _e = new
|
|
196
|
+
}, mt = new WeakMap(), at = new WeakMap(), Et = new WeakMap(), $e), _e = new ti(), kt, ot, At, Ze, ei = (Ze = class extends Ht {
|
|
197
197
|
constructor() {
|
|
198
198
|
super();
|
|
199
199
|
v(this, kt, !0);
|
|
@@ -201,9 +201,9 @@ var mt, at, Et, $e, er = ($e = 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), i = () => e(!1);
|
|
205
|
+
return window.addEventListener("online", s, !1), window.addEventListener("offline", i, !1), () => {
|
|
206
|
+
window.removeEventListener("online", s), window.removeEventListener("offline", i);
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
});
|
|
@@ -220,15 +220,15 @@ var mt, at, Et, $e, er = ($e = 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((i) => {
|
|
224
|
+
i(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(), Ze), ee = new
|
|
231
|
-
function
|
|
230
|
+
}, kt = new WeakMap(), ot = new WeakMap(), At = new WeakMap(), Ze), ee = new ei();
|
|
231
|
+
function si(t) {
|
|
232
232
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
233
233
|
}
|
|
234
234
|
function ls(t) {
|
|
@@ -243,32 +243,32 @@ function ae(t) {
|
|
|
243
243
|
return t instanceof cs;
|
|
244
244
|
}
|
|
245
245
|
function us(t) {
|
|
246
|
-
let e = !1, s = 0,
|
|
246
|
+
let e = !1, s = 0, i = !1, a, c, l;
|
|
247
247
|
const u = new Promise((x, b) => {
|
|
248
248
|
c = x, l = b;
|
|
249
249
|
}), d = (x) => {
|
|
250
250
|
var b;
|
|
251
|
-
|
|
251
|
+
i || (_(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
256
|
}, h = () => _e.isFocused() && (t.networkMode === "always" || ee.isOnline()) && t.canRun(), y = () => ls(t.networkMode) && t.canRun(), g = (x) => {
|
|
257
257
|
var b;
|
|
258
|
-
|
|
259
|
-
},
|
|
258
|
+
i || (i = !0, (b = t.onSuccess) == null || b.call(t, x), a == null || a(), c(x));
|
|
259
|
+
}, _ = (x) => {
|
|
260
260
|
var b;
|
|
261
|
-
|
|
261
|
+
i || (i = !0, (b = t.onError) == null || b.call(t, x), a == null || a(), l(x));
|
|
262
262
|
}, S = () => new Promise((x) => {
|
|
263
263
|
var b;
|
|
264
264
|
a = (w) => {
|
|
265
|
-
(
|
|
265
|
+
(i || h()) && x(w);
|
|
266
266
|
}, (b = t.onPause) == null || b.call(t);
|
|
267
267
|
}).then(() => {
|
|
268
268
|
var x;
|
|
269
|
-
a = void 0,
|
|
270
|
-
}),
|
|
271
|
-
if (
|
|
269
|
+
a = void 0, i || (x = t.onContinue) == null || x.call(t);
|
|
270
|
+
}), P = () => {
|
|
271
|
+
if (i)
|
|
272
272
|
return;
|
|
273
273
|
let x;
|
|
274
274
|
const b = s === 0 ? t.initialPromise : void 0;
|
|
@@ -279,15 +279,15 @@ function us(t) {
|
|
|
279
279
|
}
|
|
280
280
|
Promise.resolve(x).then(g).catch((w) => {
|
|
281
281
|
var A;
|
|
282
|
-
if (
|
|
282
|
+
if (i)
|
|
283
283
|
return;
|
|
284
|
-
const
|
|
284
|
+
const M = t.retry ?? (Qt ? 0 : 3), O = t.retryDelay ?? si, Y = typeof O == "function" ? O(s, w) : O, et = M === !0 || typeof M == "number" && s < M || typeof M == "function" && M(s, w);
|
|
285
285
|
if (e || !et) {
|
|
286
|
-
|
|
286
|
+
_(w);
|
|
287
287
|
return;
|
|
288
288
|
}
|
|
289
|
-
s++, (A = t.onFail) == null || A.call(t, s, w),
|
|
290
|
-
e ?
|
|
289
|
+
s++, (A = t.onFail) == null || A.call(t, s, w), Js(Y).then(() => h() ? void 0 : S()).then(() => {
|
|
290
|
+
e ? _(w) : P();
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
};
|
|
@@ -298,13 +298,13 @@ function us(t) {
|
|
|
298
298
|
cancelRetry: p,
|
|
299
299
|
continueRetry: f,
|
|
300
300
|
canStart: y,
|
|
301
|
-
start: () => (y() ?
|
|
301
|
+
start: () => (y() ? P() : S().then(P), u)
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function ii() {
|
|
305
305
|
let t = [], e = 0, s = (u) => {
|
|
306
306
|
u();
|
|
307
|
-
},
|
|
307
|
+
}, i = (u) => {
|
|
308
308
|
u();
|
|
309
309
|
}, a = (u) => setTimeout(u, 0);
|
|
310
310
|
const c = (u) => {
|
|
@@ -314,7 +314,7 @@ function ir() {
|
|
|
314
314
|
}, l = () => {
|
|
315
315
|
const u = t;
|
|
316
316
|
t = [], u.length && a(() => {
|
|
317
|
-
|
|
317
|
+
i(() => {
|
|
318
318
|
u.forEach((d) => {
|
|
319
319
|
s(d);
|
|
320
320
|
});
|
|
@@ -353,14 +353,14 @@ function ir() {
|
|
|
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
|
+
i = u;
|
|
357
357
|
},
|
|
358
358
|
setScheduler: (u) => {
|
|
359
359
|
a = u;
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
var z =
|
|
363
|
+
var z = ii(), yt, Xe, ds = (Xe = class {
|
|
364
364
|
constructor() {
|
|
365
365
|
v(this, yt);
|
|
366
366
|
}
|
|
@@ -381,7 +381,7 @@ var z = ir(), yt, Xe, ds = (Xe = class {
|
|
|
381
381
|
clearGcTimeout() {
|
|
382
382
|
o(this, yt) && (clearTimeout(o(this, yt)), m(this, yt, void 0));
|
|
383
383
|
}
|
|
384
|
-
}, yt = new WeakMap(), Xe), Nt, Lt, V, D, Vt, gt, Z, st, Ye,
|
|
384
|
+
}, yt = new WeakMap(), Xe), Nt, Lt, V, D, Vt, gt, Z, st, Ye, ri = (Ye = class extends ds {
|
|
385
385
|
constructor(e) {
|
|
386
386
|
super();
|
|
387
387
|
v(this, Z);
|
|
@@ -391,7 +391,7 @@ var z = ir(), yt, Xe, ds = (Xe = class {
|
|
|
391
391
|
v(this, D);
|
|
392
392
|
v(this, Vt);
|
|
393
393
|
v(this, gt);
|
|
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,
|
|
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, ni(this.options)), this.state = e.state ?? o(this, Nt), this.scheduleGc();
|
|
395
395
|
}
|
|
396
396
|
get meta() {
|
|
397
397
|
return this.options.meta;
|
|
@@ -407,20 +407,20 @@ var z = ir(), yt, Xe, ds = (Xe = class {
|
|
|
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 i = ce(this.state.data, e, this.options);
|
|
411
411
|
return j(this, Z, st).call(this, {
|
|
412
|
-
data:
|
|
412
|
+
data: i,
|
|
413
413
|
type: "success",
|
|
414
414
|
dataUpdatedAt: s == null ? void 0 : s.updatedAt,
|
|
415
415
|
manual: s == null ? void 0 : s.manual
|
|
416
|
-
}),
|
|
416
|
+
}), i;
|
|
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 i, a;
|
|
423
|
+
const s = (i = o(this, D)) == null ? void 0 : i.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() {
|
|
@@ -443,16 +443,16 @@ var z = ir(), yt, Xe, ds = (Xe = class {
|
|
|
443
443
|
) : this.state.data === void 0;
|
|
444
444
|
}
|
|
445
445
|
isStaleByTime(e = 0) {
|
|
446
|
-
return this.state.isInvalidated || this.state.data === void 0 || !
|
|
446
|
+
return this.state.isInvalidated || this.state.data === void 0 || !rs(this.state.dataUpdatedAt, e);
|
|
447
447
|
}
|
|
448
448
|
onFocus() {
|
|
449
449
|
var s;
|
|
450
|
-
const e = this.observers.find((
|
|
450
|
+
const e = this.observers.find((i) => i.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((i) => i.shouldFetchOnReconnect());
|
|
456
456
|
e == null || e.refetch({ cancelRefetch: !1 }), (s = o(this, D)) == null || s.continue();
|
|
457
457
|
}
|
|
458
458
|
addObserver(e) {
|
|
@@ -479,10 +479,10 @@ var z = ir(), yt, Xe, ds = (Xe = 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 i = 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), i.signal)
|
|
486
486
|
});
|
|
487
487
|
}, c = () => {
|
|
488
488
|
const h = os(this.options, s), y = {
|
|
@@ -506,7 +506,7 @@ var z = ir(), yt, Xe, ds = (Xe = 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, _, S;
|
|
510
510
|
ae(h) && h.silent || j(this, Z, st).call(this, {
|
|
511
511
|
type: "error",
|
|
512
512
|
error: h
|
|
@@ -514,8 +514,8 @@ var z = ir(), yt, Xe, ds = (Xe = class {
|
|
|
514
514
|
y,
|
|
515
515
|
h,
|
|
516
516
|
this
|
|
517
|
-
), (S = (
|
|
518
|
-
|
|
517
|
+
), (S = (_ = o(this, V).config).onSettled) == null || S.call(
|
|
518
|
+
_,
|
|
519
519
|
this.state.data,
|
|
520
520
|
h,
|
|
521
521
|
this
|
|
@@ -524,21 +524,21 @@ var z = ir(), yt, Xe, ds = (Xe = class {
|
|
|
524
524
|
return m(this, D, us({
|
|
525
525
|
initialPromise: s == null ? void 0 : s.initialPromise,
|
|
526
526
|
fn: l.fetchFn,
|
|
527
|
-
abort:
|
|
527
|
+
abort: i.abort.bind(i),
|
|
528
528
|
onSuccess: (h) => {
|
|
529
|
-
var y, g,
|
|
529
|
+
var y, g, _, 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 (P) {
|
|
537
|
+
u(P);
|
|
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 = (_ = o(this, V).config).onSettled) == null || S.call(
|
|
541
|
+
_,
|
|
542
542
|
h,
|
|
543
543
|
this.state.error,
|
|
544
544
|
this
|
|
@@ -561,35 +561,35 @@ var z = ir(), yt, Xe, ds = (Xe = class {
|
|
|
561
561
|
})), o(this, D).start();
|
|
562
562
|
}
|
|
563
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 = (
|
|
564
|
+
const s = (i) => {
|
|
565
565
|
switch (e.type) {
|
|
566
566
|
case "failed":
|
|
567
567
|
return {
|
|
568
|
-
...
|
|
568
|
+
...i,
|
|
569
569
|
fetchFailureCount: e.failureCount,
|
|
570
570
|
fetchFailureReason: e.error
|
|
571
571
|
};
|
|
572
572
|
case "pause":
|
|
573
573
|
return {
|
|
574
|
-
...
|
|
574
|
+
...i,
|
|
575
575
|
fetchStatus: "paused"
|
|
576
576
|
};
|
|
577
577
|
case "continue":
|
|
578
578
|
return {
|
|
579
|
-
...
|
|
579
|
+
...i,
|
|
580
580
|
fetchStatus: "fetching"
|
|
581
581
|
};
|
|
582
582
|
case "fetch":
|
|
583
583
|
return {
|
|
584
|
-
...
|
|
585
|
-
...hs(
|
|
584
|
+
...i,
|
|
585
|
+
...hs(i.data, this.options),
|
|
586
586
|
fetchMeta: e.meta ?? null
|
|
587
587
|
};
|
|
588
588
|
case "success":
|
|
589
589
|
return {
|
|
590
|
-
...
|
|
590
|
+
...i,
|
|
591
591
|
data: e.data,
|
|
592
|
-
dataUpdateCount:
|
|
592
|
+
dataUpdateCount: i.dataUpdateCount + 1,
|
|
593
593
|
dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
|
|
594
594
|
error: null,
|
|
595
595
|
isInvalidated: !1,
|
|
@@ -603,30 +603,30 @@ var z = ir(), yt, Xe, ds = (Xe = 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
|
+
...i,
|
|
607
607
|
error: a,
|
|
608
|
-
errorUpdateCount:
|
|
608
|
+
errorUpdateCount: i.errorUpdateCount + 1,
|
|
609
609
|
errorUpdatedAt: Date.now(),
|
|
610
|
-
fetchFailureCount:
|
|
610
|
+
fetchFailureCount: i.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
|
+
...i,
|
|
618
618
|
isInvalidated: !0
|
|
619
619
|
};
|
|
620
620
|
case "setState":
|
|
621
621
|
return {
|
|
622
|
-
...
|
|
622
|
+
...i,
|
|
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((i) => {
|
|
629
|
+
i.onQueryUpdate();
|
|
630
630
|
}), o(this, V).notify({ query: this, type: "updated", action: e });
|
|
631
631
|
});
|
|
632
632
|
}, Ye);
|
|
@@ -641,12 +641,12 @@ function hs(t, e) {
|
|
|
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 ni(t) {
|
|
645
|
+
const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, i = 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 ? i ?? Date.now() : 0,
|
|
650
650
|
error: null,
|
|
651
651
|
errorUpdateCount: 0,
|
|
652
652
|
errorUpdatedAt: 0,
|
|
@@ -658,21 +658,21 @@ function ar(t) {
|
|
|
658
658
|
fetchStatus: "idle"
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
var J, Je,
|
|
661
|
+
var J, Je, ai = (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, i) {
|
|
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 ri({
|
|
671
671
|
cache: this,
|
|
672
672
|
queryKey: a,
|
|
673
673
|
queryHash: c,
|
|
674
674
|
options: e.defaultQueryOptions(s),
|
|
675
|
-
state:
|
|
675
|
+
state: i,
|
|
676
676
|
defaultOptions: e.getQueryDefaults(a)
|
|
677
677
|
}), this.add(l)), l;
|
|
678
678
|
}
|
|
@@ -702,12 +702,12 @@ var J, Je, or = (Je = class extends Ht {
|
|
|
702
702
|
find(e) {
|
|
703
703
|
const s = { exact: !0, ...e };
|
|
704
704
|
return this.getAll().find(
|
|
705
|
-
(
|
|
705
|
+
(i) => Me(s, i)
|
|
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((i) => Me(e, i)) : s;
|
|
711
711
|
}
|
|
712
712
|
notify(e) {
|
|
713
713
|
z.batch(() => {
|
|
@@ -730,7 +730,7 @@ var J, Je, or = (Je = class extends Ht {
|
|
|
730
730
|
});
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
}, J = new WeakMap(), Je), I, T, vt, B, nt, Ie,
|
|
733
|
+
}, J = new WeakMap(), Je), I, T, vt, B, nt, Ie, oi = (Ie = class extends ds {
|
|
734
734
|
constructor(e) {
|
|
735
735
|
super();
|
|
736
736
|
v(this, B);
|
|
@@ -768,7 +768,7 @@ var J, Je, or = (Je = 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,
|
|
771
|
+
var a, c, l, u, d, p, f, h, y, g, _, S, P, x, b, w, M, O, Y, et;
|
|
772
772
|
m(this, vt, us({
|
|
773
773
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
774
774
|
onFail: (A, $) => {
|
|
@@ -785,10 +785,10 @@ var J, Je, or = (Je = 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", i = !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: i }), await ((c = (a = o(this, T).config).onMutate) == null ? void 0 : c.call(
|
|
792
792
|
a,
|
|
793
793
|
e,
|
|
794
794
|
this
|
|
@@ -798,7 +798,7 @@ var J, Je, or = (Je = class extends Ht {
|
|
|
798
798
|
type: "pending",
|
|
799
799
|
context: $,
|
|
800
800
|
variables: e,
|
|
801
|
-
isPaused:
|
|
801
|
+
isPaused: i
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
const A = await o(this, vt).start();
|
|
@@ -815,11 +815,11 @@ var J, Je, or = (Je = class extends Ht {
|
|
|
815
815
|
this.state.variables,
|
|
816
816
|
this.state.context,
|
|
817
817
|
this
|
|
818
|
-
)), await ((S = (
|
|
818
|
+
)), await ((S = (_ = this.options).onSettled) == null ? void 0 : S.call(_, A, null, e, this.state.context)), j(this, B, nt).call(this, { type: "success", data: A }), A;
|
|
819
819
|
} catch (A) {
|
|
820
820
|
try {
|
|
821
|
-
throw await ((x = (
|
|
822
|
-
|
|
821
|
+
throw await ((x = (P = o(this, T).config).onError) == null ? void 0 : x.call(
|
|
822
|
+
P,
|
|
823
823
|
A,
|
|
824
824
|
e,
|
|
825
825
|
this.state.context,
|
|
@@ -829,8 +829,8 @@ var J, Je, or = (Je = class extends Ht {
|
|
|
829
829
|
A,
|
|
830
830
|
e,
|
|
831
831
|
this.state.context
|
|
832
|
-
)), await ((O = (
|
|
833
|
-
|
|
832
|
+
)), await ((O = (M = o(this, T).config).onSettled) == null ? void 0 : O.call(
|
|
833
|
+
M,
|
|
834
834
|
void 0,
|
|
835
835
|
A,
|
|
836
836
|
this.state.variables,
|
|
@@ -851,27 +851,27 @@ var J, Je, or = (Je = class extends Ht {
|
|
|
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 = (i) => {
|
|
855
855
|
switch (e.type) {
|
|
856
856
|
case "failed":
|
|
857
857
|
return {
|
|
858
|
-
...
|
|
858
|
+
...i,
|
|
859
859
|
failureCount: e.failureCount,
|
|
860
860
|
failureReason: e.error
|
|
861
861
|
};
|
|
862
862
|
case "pause":
|
|
863
863
|
return {
|
|
864
|
-
...
|
|
864
|
+
...i,
|
|
865
865
|
isPaused: !0
|
|
866
866
|
};
|
|
867
867
|
case "continue":
|
|
868
868
|
return {
|
|
869
|
-
...
|
|
869
|
+
...i,
|
|
870
870
|
isPaused: !1
|
|
871
871
|
};
|
|
872
872
|
case "pending":
|
|
873
873
|
return {
|
|
874
|
-
...
|
|
874
|
+
...i,
|
|
875
875
|
context: e.context,
|
|
876
876
|
data: void 0,
|
|
877
877
|
failureCount: 0,
|
|
@@ -884,7 +884,7 @@ var J, Je, or = (Je = class extends Ht {
|
|
|
884
884
|
};
|
|
885
885
|
case "success":
|
|
886
886
|
return {
|
|
887
|
-
...
|
|
887
|
+
...i,
|
|
888
888
|
data: e.data,
|
|
889
889
|
failureCount: 0,
|
|
890
890
|
failureReason: null,
|
|
@@ -894,10 +894,10 @@ var J, Je, or = (Je = class extends Ht {
|
|
|
894
894
|
};
|
|
895
895
|
case "error":
|
|
896
896
|
return {
|
|
897
|
-
...
|
|
897
|
+
...i,
|
|
898
898
|
data: void 0,
|
|
899
899
|
error: e.error,
|
|
900
|
-
failureCount:
|
|
900
|
+
failureCount: i.failureCount + 1,
|
|
901
901
|
failureReason: e.error,
|
|
902
902
|
isPaused: !1,
|
|
903
903
|
status: "error"
|
|
@@ -905,8 +905,8 @@ var J, Je, or = (Je = 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((i) => {
|
|
909
|
+
i.onMutationUpdate(e);
|
|
910
910
|
}), o(this, T).notify({
|
|
911
911
|
mutation: this,
|
|
912
912
|
type: "updated",
|
|
@@ -927,43 +927,43 @@ function fs() {
|
|
|
927
927
|
submittedAt: 0
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
|
-
var W, qt, Be,
|
|
930
|
+
var W, qt, Be, li = (Be = class extends Ht {
|
|
931
931
|
constructor(e = {}) {
|
|
932
932
|
super();
|
|
933
933
|
v(this, W);
|
|
934
934
|
v(this, qt);
|
|
935
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, i) {
|
|
938
|
+
const a = new oi({
|
|
939
939
|
mutationCache: this,
|
|
940
940
|
mutationId: ++Yt(this, qt)._,
|
|
941
941
|
options: e.defaultMutationOptions(s),
|
|
942
|
-
state:
|
|
942
|
+
state: i
|
|
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), i = o(this, W).get(s) ?? [];
|
|
948
|
+
i.push(e), o(this, W).set(s, i), this.notify({ type: "added", mutation: e });
|
|
949
949
|
}
|
|
950
950
|
remove(e) {
|
|
951
|
-
var
|
|
951
|
+
var i;
|
|
952
952
|
const s = Jt(e);
|
|
953
953
|
if (o(this, W).has(s)) {
|
|
954
|
-
const a = (
|
|
954
|
+
const a = (i = o(this, W).get(s)) == null ? void 0 : i.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 i;
|
|
961
|
+
const s = (i = o(this, W).get(Jt(e))) == null ? void 0 : i.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 i;
|
|
966
|
+
const s = (i = o(this, W).get(Jt(e))) == null ? void 0 : i.find((a) => a !== e && a.state.isPaused);
|
|
967
967
|
return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
|
|
968
968
|
}
|
|
969
969
|
clear() {
|
|
@@ -979,7 +979,7 @@ var W, qt, Be, cr = (Be = class extends Ht {
|
|
|
979
979
|
find(e) {
|
|
980
980
|
const s = { exact: !0, ...e };
|
|
981
981
|
return this.getAll().find(
|
|
982
|
-
(
|
|
982
|
+
(i) => Fe(s, i)
|
|
983
983
|
);
|
|
984
984
|
}
|
|
985
985
|
findAll(e = {}) {
|
|
@@ -1008,58 +1008,58 @@ function Jt(t) {
|
|
|
1008
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, _;
|
|
1012
|
+
const i = 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 = ((_ = e.state.data) == null ? void 0 : _.pageParams) || [];
|
|
1013
1013
|
let u = { pages: [], pageParams: [] }, d = 0;
|
|
1014
1014
|
const p = async () => {
|
|
1015
1015
|
let S = !1;
|
|
1016
|
-
const
|
|
1016
|
+
const P = (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
|
-
}, x = os(e.options, e.fetchOptions), b = async (w,
|
|
1023
|
+
}, x = os(e.options, e.fetchOptions), b = async (w, M, O) => {
|
|
1024
1024
|
if (S)
|
|
1025
1025
|
return Promise.reject();
|
|
1026
|
-
if (
|
|
1026
|
+
if (M == null && w.pages.length)
|
|
1027
1027
|
return Promise.resolve(w);
|
|
1028
1028
|
const Y = {
|
|
1029
1029
|
queryKey: e.queryKey,
|
|
1030
|
-
pageParam:
|
|
1030
|
+
pageParam: M,
|
|
1031
1031
|
direction: O ? "backward" : "forward",
|
|
1032
1032
|
meta: e.options.meta
|
|
1033
1033
|
};
|
|
1034
|
-
|
|
1034
|
+
P(Y);
|
|
1035
1035
|
const et = await x(
|
|
1036
1036
|
Y
|
|
1037
|
-
), { maxPages: A } = e.options, $ = O ?
|
|
1037
|
+
), { maxPages: A } = e.options, $ = O ? Bs : Is;
|
|
1038
1038
|
return {
|
|
1039
1039
|
pages: $(w.pages, et, A),
|
|
1040
|
-
pageParams: $(w.pageParams,
|
|
1040
|
+
pageParams: $(w.pageParams, M, A)
|
|
1041
1041
|
};
|
|
1042
1042
|
};
|
|
1043
1043
|
if (a && c.length) {
|
|
1044
|
-
const w = a === "backward",
|
|
1044
|
+
const w = a === "backward", M = w ? ci : De, O = {
|
|
1045
1045
|
pages: c,
|
|
1046
1046
|
pageParams: l
|
|
1047
|
-
}, Y =
|
|
1047
|
+
}, Y = M(i, O);
|
|
1048
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 M = d === 0 ? l[0] ?? i.initialPageParam : De(i, u);
|
|
1053
|
+
if (d > 0 && M == null)
|
|
1054
1054
|
break;
|
|
1055
|
-
u = await b(u,
|
|
1055
|
+
u = await b(u, M), 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, P;
|
|
1062
|
+
return (P = (S = e.options).persister) == null ? void 0 : P.call(
|
|
1063
1063
|
S,
|
|
1064
1064
|
p,
|
|
1065
1065
|
{
|
|
@@ -1074,17 +1074,17 @@ function ze(t) {
|
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
function De(t, { pages: e, pageParams: s }) {
|
|
1077
|
-
const
|
|
1077
|
+
const i = e.length - 1;
|
|
1078
1078
|
return e.length > 0 ? t.getNextPageParam(
|
|
1079
|
-
e[
|
|
1079
|
+
e[i],
|
|
1080
1080
|
e,
|
|
1081
|
-
s[
|
|
1081
|
+
s[i],
|
|
1082
1082
|
s
|
|
1083
1083
|
) : void 0;
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1086
|
-
var
|
|
1087
|
-
return e.length > 0 ? (
|
|
1085
|
+
function ci(t, { pages: e, pageParams: s }) {
|
|
1086
|
+
var i;
|
|
1087
|
+
return e.length > 0 ? (i = t.getPreviousPageParam) == null ? void 0 : i.call(t, e[0], e, s[0], s) : void 0;
|
|
1088
1088
|
}
|
|
1089
1089
|
var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
1090
1090
|
constructor(t = {}) {
|
|
@@ -1096,7 +1096,7 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1096
1096
|
v(this, ut);
|
|
1097
1097
|
v(this, Rt);
|
|
1098
1098
|
v(this, Ot);
|
|
1099
|
-
m(this, R, t.queryCache || new
|
|
1099
|
+
m(this, R, t.queryCache || new ai()), m(this, lt, t.mutationCache || new li()), 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) => {
|
|
@@ -1125,28 +1125,28 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
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), i = o(this, R).build(this, s);
|
|
1129
|
+
return t.revalidateIfStale && i.isStaleByTime(Pt(s.staleTime, i)) && this.prefetchQuery(s), Promise.resolve(e);
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
getQueriesData(t) {
|
|
1133
1133
|
return o(this, R).findAll(t).map(({ queryKey: e, state: s }) => {
|
|
1134
|
-
const
|
|
1135
|
-
return [e,
|
|
1134
|
+
const i = s.data;
|
|
1135
|
+
return [e, i];
|
|
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 i = this.defaultQueryOptions({ queryKey: t }), a = o(this, R).get(
|
|
1140
|
+
i.queryHash
|
|
1141
|
+
), c = a == null ? void 0 : a.state.data, l = Ys(e, c);
|
|
1142
1142
|
if (l !== void 0)
|
|
1143
|
-
return o(this, R).build(this,
|
|
1143
|
+
return o(this, R).build(this, i).setData(l, { ...s, manual: !0 });
|
|
1144
1144
|
}
|
|
1145
1145
|
setQueriesData(t, e, s) {
|
|
1146
1146
|
return z.batch(
|
|
1147
|
-
() => o(this, R).findAll(t).map(({ queryKey:
|
|
1148
|
-
|
|
1149
|
-
this.setQueryData(
|
|
1147
|
+
() => o(this, R).findAll(t).map(({ queryKey: i }) => [
|
|
1148
|
+
i,
|
|
1149
|
+
this.setQueryData(i, e, s)
|
|
1150
1150
|
])
|
|
1151
1151
|
);
|
|
1152
1152
|
}
|
|
@@ -1164,24 +1164,24 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
1166
|
resetQueries(t, e) {
|
|
1167
|
-
const s = o(this, R),
|
|
1167
|
+
const s = o(this, R), i = {
|
|
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(i, e)));
|
|
1174
1174
|
}
|
|
1175
1175
|
cancelQueries(t = {}, e = {}) {
|
|
1176
|
-
const s = { revert: !0, ...e },
|
|
1176
|
+
const s = { revert: !0, ...e }, i = z.batch(
|
|
1177
1177
|
() => o(this, R).findAll(t).map((a) => a.cancel(s))
|
|
1178
1178
|
);
|
|
1179
|
-
return Promise.all(
|
|
1179
|
+
return Promise.all(i).then(q).catch(q);
|
|
1180
1180
|
}
|
|
1181
1181
|
invalidateQueries(t = {}, e = {}) {
|
|
1182
1182
|
return z.batch(() => {
|
|
1183
|
-
if (o(this, R).findAll(t).forEach((
|
|
1184
|
-
|
|
1183
|
+
if (o(this, R).findAll(t).forEach((i) => {
|
|
1184
|
+
i.invalidate();
|
|
1185
1185
|
}), t.refetchType === "none")
|
|
1186
1186
|
return Promise.resolve();
|
|
1187
1187
|
const s = {
|
|
@@ -1195,13 +1195,13 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1195
1195
|
const s = {
|
|
1196
1196
|
...e,
|
|
1197
1197
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
1198
|
-
},
|
|
1198
|
+
}, i = z.batch(
|
|
1199
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(i).then(q);
|
|
1205
1205
|
}
|
|
1206
1206
|
fetchQuery(t) {
|
|
1207
1207
|
const e = this.defaultQueryOptions(t);
|
|
@@ -1247,8 +1247,8 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1247
1247
|
getQueryDefaults(t) {
|
|
1248
1248
|
const e = [...o(this, Mt).values()];
|
|
1249
1249
|
let s = {};
|
|
1250
|
-
return e.forEach((
|
|
1251
|
-
Gt(t,
|
|
1250
|
+
return e.forEach((i) => {
|
|
1251
|
+
Gt(t, i.queryKey) && (s = { ...s, ...i.defaultOptions });
|
|
1252
1252
|
}), s;
|
|
1253
1253
|
}
|
|
1254
1254
|
setMutationDefaults(t, e) {
|
|
@@ -1260,8 +1260,8 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1260
1260
|
getMutationDefaults(t) {
|
|
1261
1261
|
const e = [...o(this, Ft).values()];
|
|
1262
1262
|
let s = {};
|
|
1263
|
-
return e.forEach((
|
|
1264
|
-
Gt(t,
|
|
1263
|
+
return e.forEach((i) => {
|
|
1264
|
+
Gt(t, i.mutationKey) && (s = { ...s, ...i.defaultOptions });
|
|
1265
1265
|
}), s;
|
|
1266
1266
|
}
|
|
1267
1267
|
defaultQueryOptions(t) {
|
|
@@ -1289,7 +1289,7 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1289
1289
|
clear() {
|
|
1290
1290
|
o(this, R).clear(), o(this, lt).clear();
|
|
1291
1291
|
}
|
|
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,
|
|
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, ui = (es = class extends Ht {
|
|
1293
1293
|
constructor(e, s) {
|
|
1294
1294
|
super();
|
|
1295
1295
|
v(this, L);
|
|
@@ -1338,12 +1338,12 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1338
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
|
|
1341
|
+
const i = this.options, a = o(this, k);
|
|
1342
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, L, ye).call(this), o(this, k).setOptions(this.options),
|
|
1346
|
+
j(this, L, ye).call(this), o(this, k).setOptions(this.options), i._defaulted && !te(this.options, i) && o(this, Q).getQueryCache().notify({
|
|
1347
1347
|
type: "observerOptionsUpdated",
|
|
1348
1348
|
query: o(this, k),
|
|
1349
1349
|
observer: this
|
|
@@ -1353,27 +1353,27 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1353
1353
|
o(this, k),
|
|
1354
1354
|
a,
|
|
1355
1355
|
this.options,
|
|
1356
|
-
|
|
1357
|
-
) && j(this, L, Wt).call(this), this.updateResult(s), c && (o(this, k) !== a || X(this.options.enabled, o(this, k)) !== X(
|
|
1356
|
+
i
|
|
1357
|
+
) && j(this, L, Wt).call(this), this.updateResult(s), c && (o(this, k) !== a || X(this.options.enabled, o(this, k)) !== X(i.enabled, o(this, k)) || Pt(this.options.staleTime, o(this, k)) !== Pt(i.staleTime, o(this, k))) && j(this, L, ue).call(this);
|
|
1358
1358
|
const l = j(this, L, de).call(this);
|
|
1359
|
-
c && (o(this, k) !== a || X(this.options.enabled, o(this, k)) !== X(
|
|
1359
|
+
c && (o(this, k) !== a || X(this.options.enabled, o(this, k)) !== X(i.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), i = this.createResult(s, e);
|
|
1363
|
+
return hi(this, i) && (m(this, U, i), m(this, zt, this.options), m(this, Ct, o(this, k).state)), i;
|
|
1364
1364
|
}
|
|
1365
1365
|
getCurrentResult() {
|
|
1366
1366
|
return o(this, U);
|
|
1367
1367
|
}
|
|
1368
1368
|
trackResult(e, s) {
|
|
1369
|
-
const
|
|
1369
|
+
const i = {};
|
|
1370
1370
|
return Object.keys(e).forEach((a) => {
|
|
1371
|
-
Object.defineProperty(
|
|
1371
|
+
Object.defineProperty(i, 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
|
+
}), i;
|
|
1377
1377
|
}
|
|
1378
1378
|
trackProp(e) {
|
|
1379
1379
|
o(this, Ut).add(e);
|
|
@@ -1387,8 +1387,8 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = 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), i = o(this, Q).getQueryCache().build(o(this, Q), s);
|
|
1391
|
+
return i.isFetchingOptimistic = !0, i.fetch().then(() => this.createResult(i, s));
|
|
1392
1392
|
}
|
|
1393
1393
|
fetch(e) {
|
|
1394
1394
|
return j(this, L, Wt).call(this, {
|
|
@@ -1398,16 +1398,16 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
createResult(e, s) {
|
|
1400
1400
|
var et;
|
|
1401
|
-
const
|
|
1401
|
+
const i = o(this, k), a = this.options, c = o(this, U), l = o(this, Ct), u = o(this, zt), p = e !== i ? e.state : o(this, $t), { state: f } = e;
|
|
1402
1402
|
let h = { ...f }, y = !1, g;
|
|
1403
1403
|
if (s._optimisticResults) {
|
|
1404
|
-
const A = this.hasListeners(), $ = !A && Te(e, s),
|
|
1405
|
-
($ ||
|
|
1404
|
+
const A = this.hasListeners(), $ = !A && Te(e, s), Ws = A && Ue(e, i, s, a);
|
|
1405
|
+
($ || Ws) && (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: _, errorUpdatedAt: S, status: P } = h;
|
|
1411
1411
|
if (s.select && h.data !== void 0)
|
|
1412
1412
|
if (c && h.data === (l == null ? void 0 : l.data) && s.select === o(this, Zt))
|
|
1413
1413
|
g = o(this, Dt);
|
|
@@ -1419,7 +1419,7 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
else
|
|
1421
1421
|
g = h.data;
|
|
1422
|
-
if (s.placeholderData !== void 0 && g === void 0 &&
|
|
1422
|
+
if (s.placeholderData !== void 0 && g === void 0 && P === "pending") {
|
|
1423
1423
|
let A;
|
|
1424
1424
|
if (c != null && c.isPlaceholderData && s.placeholderData === (u == null ? void 0 : u.placeholderData))
|
|
1425
1425
|
A = c.data;
|
|
@@ -1432,25 +1432,25 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1432
1432
|
} catch ($) {
|
|
1433
1433
|
m(this, tt, $);
|
|
1434
1434
|
}
|
|
1435
|
-
A !== void 0 && (
|
|
1435
|
+
A !== void 0 && (P = "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 x = h.fetchStatus === "fetching", b =
|
|
1441
|
+
o(this, tt) && (_ = o(this, tt), g = o(this, Dt), S = Date.now(), P = "error");
|
|
1442
|
+
const x = h.fetchStatus === "fetching", b = P === "pending", w = P === "error", M = b && x, O = g !== void 0;
|
|
1443
1443
|
return {
|
|
1444
|
-
status:
|
|
1444
|
+
status: P,
|
|
1445
1445
|
fetchStatus: h.fetchStatus,
|
|
1446
1446
|
isPending: b,
|
|
1447
|
-
isSuccess:
|
|
1447
|
+
isSuccess: P === "success",
|
|
1448
1448
|
isError: w,
|
|
1449
|
-
isInitialLoading:
|
|
1450
|
-
isLoading:
|
|
1449
|
+
isInitialLoading: M,
|
|
1450
|
+
isLoading: M,
|
|
1451
1451
|
data: g,
|
|
1452
1452
|
dataUpdatedAt: h.dataUpdatedAt,
|
|
1453
|
-
error:
|
|
1453
|
+
error: _,
|
|
1454
1454
|
errorUpdatedAt: S,
|
|
1455
1455
|
failureCount: h.fetchFailureCount,
|
|
1456
1456
|
failureReason: h.fetchFailureReason,
|
|
@@ -1468,10 +1468,10 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1468
1468
|
};
|
|
1469
1469
|
}
|
|
1470
1470
|
updateResult(e) {
|
|
1471
|
-
const s = o(this, U),
|
|
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(
|
|
1471
|
+
const s = o(this, U), i = 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(i, s))
|
|
1473
1473
|
return;
|
|
1474
|
-
m(this, U,
|
|
1474
|
+
m(this, U, i);
|
|
1475
1475
|
const a = {}, c = () => {
|
|
1476
1476
|
if (!s)
|
|
1477
1477
|
return !0;
|
|
@@ -1506,10 +1506,10 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1506
1506
|
);
|
|
1507
1507
|
if (Qt || o(this, U).isStale || !oe(e))
|
|
1508
1508
|
return;
|
|
1509
|
-
const
|
|
1509
|
+
const i = rs(o(this, U).dataUpdatedAt, e) + 1;
|
|
1510
1510
|
m(this, xt, setTimeout(() => {
|
|
1511
1511
|
o(this, U).isStale || this.updateResult();
|
|
1512
|
-
},
|
|
1512
|
+
}, i));
|
|
1513
1513
|
}, de = function() {
|
|
1514
1514
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(o(this, k)) : this.options.refetchInterval) ?? !1;
|
|
1515
1515
|
}, he = function(e) {
|
|
@@ -1538,69 +1538,69 @@ var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
|
1538
1538
|
});
|
|
1539
1539
|
});
|
|
1540
1540
|
}, es);
|
|
1541
|
-
function
|
|
1541
|
+
function di(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
1544
|
function Te(t, e) {
|
|
1545
|
-
return
|
|
1545
|
+
return di(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 i = typeof s == "function" ? s(t) : s;
|
|
1550
|
+
return i === "always" || i !== !1 && Pe(t, e);
|
|
1551
1551
|
}
|
|
1552
1552
|
return !1;
|
|
1553
1553
|
}
|
|
1554
|
-
function Ue(t, e, s,
|
|
1555
|
-
return (t !== e || X(
|
|
1554
|
+
function Ue(t, e, s, i) {
|
|
1555
|
+
return (t !== e || X(i.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 hi(t, e) {
|
|
1561
1561
|
return !te(t.getCurrentResult(), e);
|
|
1562
1562
|
}
|
|
1563
|
-
var ht, ft, H,
|
|
1563
|
+
var ht, ft, H, it, rt, Bt, ve, ss, fi = (ss = class extends Ht {
|
|
1564
1564
|
constructor(e, s) {
|
|
1565
1565
|
super();
|
|
1566
|
-
v(this,
|
|
1566
|
+
v(this, rt);
|
|
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, it);
|
|
1571
|
+
m(this, ht, e), this.setOptions(s), this.bindMethods(), j(this, rt, 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 i;
|
|
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() : ((i = o(this, H)) == null ? void 0 : i.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, rt, Bt).call(this), j(this, rt, 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, rt, Bt).call(this), j(this, rt, ve).call(this);
|
|
1598
1598
|
}
|
|
1599
1599
|
mutate(e, s) {
|
|
1600
|
-
var
|
|
1601
|
-
return m(this,
|
|
1600
|
+
var i;
|
|
1601
|
+
return m(this, it, s), (i = o(this, H)) == null || i.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(), it = new WeakMap(), rt = new WeakSet(), Bt = function() {
|
|
1604
1604
|
var s;
|
|
1605
1605
|
const e = ((s = o(this, H)) == null ? void 0 : s.state) ?? fs();
|
|
1606
1606
|
m(this, ft, {
|
|
@@ -1614,10 +1614,10 @@ var ht, ft, H, rt, it, Bt, ve, ss, pr = (ss = class extends Ht {
|
|
|
1614
1614
|
});
|
|
1615
1615
|
}, ve = function(e) {
|
|
1616
1616
|
z.batch(() => {
|
|
1617
|
-
var s,
|
|
1618
|
-
if (o(this,
|
|
1617
|
+
var s, i, a, c, l, u, d, p;
|
|
1618
|
+
if (o(this, it) && 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" ? ((i = (s = o(this, it)).onSuccess) == null || i.call(s, e.data, f, h), (c = (a = o(this, it)).onSettled) == null || c.call(a, e.data, null, f, h)) : (e == null ? void 0 : e.type) === "error" && ((u = (l = o(this, it)).onError) == null || u.call(l, e.error, f, h), (p = (d = o(this, it)).onSettled) == null || p.call(
|
|
1621
1621
|
d,
|
|
1622
1622
|
void 0,
|
|
1623
1623
|
e.error,
|
|
@@ -1629,21 +1629,21 @@ var ht, ft, H, rt, it, Bt, ve, ss, pr = (ss = class extends Ht {
|
|
|
1629
1629
|
f(o(this, ft));
|
|
1630
1630
|
});
|
|
1631
1631
|
});
|
|
1632
|
-
}, ss), ys =
|
|
1632
|
+
}, ss), ys = r.createContext(
|
|
1633
1633
|
void 0
|
|
1634
1634
|
), Ee = (t) => {
|
|
1635
|
-
const e =
|
|
1635
|
+
const e = r.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
|
+
}, pi = ({
|
|
1640
1640
|
client: t,
|
|
1641
1641
|
children: e
|
|
1642
|
-
}) => (
|
|
1642
|
+
}) => (r.useEffect(() => (t.mount(), () => {
|
|
1643
1643
|
t.unmount();
|
|
1644
|
-
}), [t]), /* @__PURE__ */ n.jsx(ys.Provider, { value: t, children: e })), gs =
|
|
1644
|
+
}), [t]), /* @__PURE__ */ n.jsx(ys.Provider, { value: t, children: e })), gs = r.createContext(!1), mi = () => r.useContext(gs);
|
|
1645
1645
|
gs.Provider;
|
|
1646
|
-
function
|
|
1646
|
+
function yi() {
|
|
1647
1647
|
let t = !1;
|
|
1648
1648
|
return {
|
|
1649
1649
|
clearReset: () => {
|
|
@@ -1655,196 +1655,196 @@ function gr() {
|
|
|
1655
1655
|
isReset: () => t
|
|
1656
1656
|
};
|
|
1657
1657
|
}
|
|
1658
|
-
var
|
|
1658
|
+
var gi = r.createContext(yi()), vi = () => r.useContext(gi);
|
|
1659
1659
|
function vs(t, e) {
|
|
1660
1660
|
return typeof t == "function" ? t(...e) : !!t;
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function Ci() {
|
|
1663
1663
|
}
|
|
1664
|
-
var
|
|
1664
|
+
var xi = (t, e) => {
|
|
1665
1665
|
(t.suspense || t.throwOnError) && (e.isReset() || (t.retryOnMount = !1));
|
|
1666
|
-
},
|
|
1667
|
-
|
|
1666
|
+
}, bi = (t) => {
|
|
1667
|
+
r.useEffect(() => {
|
|
1668
1668
|
t.clearReset();
|
|
1669
1669
|
}, [t]);
|
|
1670
|
-
},
|
|
1670
|
+
}, wi = ({
|
|
1671
1671
|
result: t,
|
|
1672
1672
|
errorResetBoundary: e,
|
|
1673
1673
|
throwOnError: s,
|
|
1674
|
-
query:
|
|
1675
|
-
}) => t.isError && !e.isReset() && !t.isFetching &&
|
|
1674
|
+
query: i
|
|
1675
|
+
}) => t.isError && !e.isReset() && !t.isFetching && i && vs(s, [t.error, i]), ji = (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
|
+
}, Si = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, _i = (t, e, s) => e.fetchOptimistic(t).catch(() => {
|
|
1678
1678
|
s.clearReset();
|
|
1679
1679
|
});
|
|
1680
|
-
function
|
|
1680
|
+
function Pi(t, e, s) {
|
|
1681
1681
|
var p, f, h, y;
|
|
1682
|
-
const
|
|
1683
|
-
(f = (p =
|
|
1682
|
+
const i = Ee(), a = mi(), c = vi(), l = i.defaultQueryOptions(t);
|
|
1683
|
+
(f = (p = i.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", ji(l), xi(l, c), bi(c);
|
|
1687
|
+
const [u] = r.useState(
|
|
1688
1688
|
() => new e(
|
|
1689
|
-
|
|
1689
|
+
i,
|
|
1690
1690
|
l
|
|
1691
1691
|
)
|
|
1692
1692
|
), d = u.getOptimisticResult(l);
|
|
1693
|
-
if (
|
|
1694
|
-
|
|
1693
|
+
if (r.useSyncExternalStore(
|
|
1694
|
+
r.useCallback(
|
|
1695
1695
|
(g) => {
|
|
1696
|
-
const
|
|
1696
|
+
const _ = a ? () => {
|
|
1697
1697
|
} : u.subscribe(z.batchCalls(g));
|
|
1698
|
-
return u.updateResult(),
|
|
1698
|
+
return u.updateResult(), _;
|
|
1699
1699
|
},
|
|
1700
1700
|
[u, a]
|
|
1701
1701
|
),
|
|
1702
1702
|
() => u.getCurrentResult(),
|
|
1703
1703
|
() => u.getCurrentResult()
|
|
1704
|
-
),
|
|
1704
|
+
), r.useEffect(() => {
|
|
1705
1705
|
u.setOptions(l, { listeners: !1 });
|
|
1706
|
-
}, [l, u]),
|
|
1707
|
-
throw
|
|
1708
|
-
if (
|
|
1706
|
+
}, [l, u]), Si(l, d))
|
|
1707
|
+
throw _i(l, u, c);
|
|
1708
|
+
if (wi({
|
|
1709
1709
|
result: d,
|
|
1710
1710
|
errorResetBoundary: c,
|
|
1711
1711
|
throwOnError: l.throwOnError,
|
|
1712
|
-
query:
|
|
1712
|
+
query: i.getQueryCache().get(l.queryHash)
|
|
1713
1713
|
}))
|
|
1714
1714
|
throw d.error;
|
|
1715
|
-
return (y = (h =
|
|
1715
|
+
return (y = (h = i.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
1721
|
function Cs(t, e) {
|
|
1722
|
-
return
|
|
1722
|
+
return Pi(t, ui);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1725
|
-
const s = Ee(), [
|
|
1726
|
-
() => new
|
|
1724
|
+
function Ei(t, e) {
|
|
1725
|
+
const s = Ee(), [i] = r.useState(
|
|
1726
|
+
() => new fi(
|
|
1727
1727
|
s,
|
|
1728
1728
|
t
|
|
1729
1729
|
)
|
|
1730
1730
|
);
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
}, [
|
|
1734
|
-
const a =
|
|
1735
|
-
|
|
1736
|
-
(l) =>
|
|
1737
|
-
[
|
|
1731
|
+
r.useEffect(() => {
|
|
1732
|
+
i.setOptions(t);
|
|
1733
|
+
}, [i, t]);
|
|
1734
|
+
const a = r.useSyncExternalStore(
|
|
1735
|
+
r.useCallback(
|
|
1736
|
+
(l) => i.subscribe(z.batchCalls(l)),
|
|
1737
|
+
[i]
|
|
1738
1738
|
),
|
|
1739
|
-
() =>
|
|
1740
|
-
() =>
|
|
1741
|
-
), c =
|
|
1739
|
+
() => i.getCurrentResult(),
|
|
1740
|
+
() => i.getCurrentResult()
|
|
1741
|
+
), c = r.useCallback(
|
|
1742
1742
|
(l, u) => {
|
|
1743
|
-
|
|
1743
|
+
i.mutate(l, u).catch(Ci);
|
|
1744
1744
|
},
|
|
1745
|
-
[
|
|
1745
|
+
[i]
|
|
1746
1746
|
);
|
|
1747
|
-
if (a.error && vs(
|
|
1747
|
+
if (a.error && vs(i.options.throwOnError, [a.error]))
|
|
1748
1748
|
throw a.error;
|
|
1749
1749
|
return { ...a, mutate: c, mutateAsync: a.mutate };
|
|
1750
1750
|
}
|
|
1751
1751
|
function xs(t) {
|
|
1752
|
-
var e, s,
|
|
1753
|
-
if (typeof t == "string" || typeof t == "number")
|
|
1752
|
+
var e, s, i = "";
|
|
1753
|
+
if (typeof t == "string" || typeof t == "number") i += 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 = xs(t[e])) && (
|
|
1757
|
-
} else for (s in t) t[s] && (
|
|
1758
|
-
return
|
|
1756
|
+
for (e = 0; e < a; e++) t[e] && (s = xs(t[e])) && (i && (i += " "), i += s);
|
|
1757
|
+
} else for (s in t) t[s] && (i && (i += " "), i += s);
|
|
1758
|
+
return i;
|
|
1759
1759
|
}
|
|
1760
1760
|
function N() {
|
|
1761
|
-
for (var t, e, s = 0,
|
|
1762
|
-
return
|
|
1761
|
+
for (var t, e, s = 0, i = "", a = arguments.length; s < a; s++) (t = arguments[s]) && (e = xs(t)) && (i && (i += " "), i += e);
|
|
1762
|
+
return i;
|
|
1763
1763
|
}
|
|
1764
|
-
var
|
|
1764
|
+
var ki = Object.defineProperty, Ai = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, se = Object.getOwnPropertySymbols, bs = Object.prototype.hasOwnProperty, ws = Object.prototype.propertyIsEnumerable, Qe = (t, e, s) => e in t ? ki(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
|
+
}, E = (t, e) => Ai(t, Ni(e)), F = (t, e) => {
|
|
1772
1772
|
var s = {};
|
|
1773
|
-
for (var
|
|
1774
|
-
bs.call(t,
|
|
1773
|
+
for (var i in t)
|
|
1774
|
+
bs.call(t, i) && e.indexOf(i) < 0 && (s[i] = t[i]);
|
|
1775
1775
|
if (t != null && se)
|
|
1776
|
-
for (var
|
|
1777
|
-
e.indexOf(
|
|
1776
|
+
for (var i of se(t))
|
|
1777
|
+
e.indexOf(i) < 0 && ws.call(t, i) && (s[i] = t[i]);
|
|
1778
1778
|
return s;
|
|
1779
1779
|
};
|
|
1780
|
-
function
|
|
1780
|
+
function Li(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 Mi(...t) {
|
|
1784
|
+
return (e) => t.forEach((s) => Li(s, e));
|
|
1785
1785
|
}
|
|
1786
|
-
var
|
|
1787
|
-
const s = t, { children:
|
|
1786
|
+
var Fi = r.forwardRef((t, e) => {
|
|
1787
|
+
const s = t, { children: i } = s, a = F(s, ["children"]), c = r.Children.toArray(i), l = c.find(Oi);
|
|
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 ? r.Children.count(u) > 1 ? r.Children.only(null) : r.isValidElement(u) ? u.props.children : null : p);
|
|
1790
|
+
return /* @__PURE__ */ n.jsx(Ce, E(C({}, a), { ref: e, children: r.isValidElement(u) ? r.cloneElement(u, void 0, d) : null }));
|
|
1791
1791
|
}
|
|
1792
|
-
return /* @__PURE__ */ n.jsx(Ce,
|
|
1792
|
+
return /* @__PURE__ */ n.jsx(Ce, E(C({}, a), { ref: e, children: i }));
|
|
1793
1793
|
});
|
|
1794
|
-
|
|
1795
|
-
var Ce =
|
|
1796
|
-
const s = t, { children:
|
|
1797
|
-
if (
|
|
1798
|
-
const c =
|
|
1799
|
-
return
|
|
1794
|
+
Fi.displayName = "Slot";
|
|
1795
|
+
var Ce = r.forwardRef((t, e) => {
|
|
1796
|
+
const s = t, { children: i } = s, a = F(s, ["children"]);
|
|
1797
|
+
if (r.isValidElement(i)) {
|
|
1798
|
+
const c = Di(i);
|
|
1799
|
+
return r.cloneElement(i, E(C({}, zi(a, i.props)), {
|
|
1800
1800
|
// @ts-ignore
|
|
1801
|
-
ref: e ?
|
|
1801
|
+
ref: e ? Mi(e, c) : c
|
|
1802
1802
|
}));
|
|
1803
1803
|
}
|
|
1804
|
-
return
|
|
1804
|
+
return r.Children.count(i) > 1 ? r.Children.only(null) : null;
|
|
1805
1805
|
});
|
|
1806
1806
|
Ce.displayName = "SlotClone";
|
|
1807
|
-
var
|
|
1808
|
-
function
|
|
1809
|
-
return
|
|
1807
|
+
var Ri = ({ children: t }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
|
|
1808
|
+
function Oi(t) {
|
|
1809
|
+
return r.isValidElement(t) && t.type === Ri;
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1811
|
+
function zi(t, e) {
|
|
1812
1812
|
const s = C({}, e);
|
|
1813
|
-
for (const
|
|
1814
|
-
const a = t[
|
|
1815
|
-
/^on[A-Z]/.test(
|
|
1813
|
+
for (const i in e) {
|
|
1814
|
+
const a = t[i], c = e[i];
|
|
1815
|
+
/^on[A-Z]/.test(i) ? a && c ? s[i] = (...u) => {
|
|
1816
1816
|
c(...u), a(...u);
|
|
1817
|
-
} : a && (s[
|
|
1817
|
+
} : a && (s[i] = a) : i === "style" ? s[i] = C(C({}, a), c) : i === "className" && (s[i] = [a, c].filter(Boolean).join(" "));
|
|
1818
1818
|
}
|
|
1819
1819
|
return C(C({}, t), s);
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function Di(t) {
|
|
1822
1822
|
var e, s;
|
|
1823
|
-
let
|
|
1824
|
-
return a ? t.ref : (
|
|
1823
|
+
let i = (e = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : e.get, a = i && "isReactWarning" in i && i.isReactWarning;
|
|
1824
|
+
return a ? t.ref : (i = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, a = i && "isReactWarning" in i && i.isReactWarning, a ? t.props.ref : t.props.ref || t.ref);
|
|
1825
1825
|
}
|
|
1826
|
-
var
|
|
1827
|
-
const
|
|
1826
|
+
var Ti = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
1827
|
+
const i = `${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: i })
|
|
1835
1835
|
}
|
|
1836
1836
|
);
|
|
1837
|
-
}, Kt =
|
|
1837
|
+
}, Kt = r.forwardRef(
|
|
1838
1838
|
(t, e) => {
|
|
1839
1839
|
var s = t, {
|
|
1840
|
-
iconLeft:
|
|
1840
|
+
iconLeft: i,
|
|
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 = F(s, [
|
|
1848
1848
|
"iconLeft",
|
|
1849
1849
|
"iconRight",
|
|
1850
1850
|
"isPending",
|
|
@@ -1853,10 +1853,10 @@ var Ur = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
|
1853
1853
|
"className",
|
|
1854
1854
|
"children"
|
|
1855
1855
|
]);
|
|
1856
|
-
const h = !!
|
|
1856
|
+
const h = !!i || !!a;
|
|
1857
1857
|
return /* @__PURE__ */ n.jsxs(
|
|
1858
1858
|
"button",
|
|
1859
|
-
|
|
1859
|
+
E(C({
|
|
1860
1860
|
ref: e
|
|
1861
1861
|
}, f), {
|
|
1862
1862
|
className: N(
|
|
@@ -1868,7 +1868,7 @@ var Ur = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
|
1868
1868
|
d
|
|
1869
1869
|
),
|
|
1870
1870
|
children: [
|
|
1871
|
-
|
|
1871
|
+
i && /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: i }),
|
|
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
|
]
|
|
@@ -1877,19 +1877,19 @@ var Ur = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
);
|
|
1879
1879
|
Kt.displayName = "Button";
|
|
1880
|
-
|
|
1881
|
-
var
|
|
1880
|
+
r.createContext(void 0);
|
|
1881
|
+
var Ui = r.forwardRef(
|
|
1882
1882
|
(t, e) => {
|
|
1883
|
-
var s = t, { prefix:
|
|
1883
|
+
var s = t, { prefix: i, suffix: a, className: c } = s, l = F(s, ["prefix", "suffix", "className"]);
|
|
1884
1884
|
return /* @__PURE__ */ n.jsxs("div", { className: "input__wrapper", children: [
|
|
1885
|
-
|
|
1885
|
+
i && /* @__PURE__ */ n.jsx("span", { className: "input__prefix", children: i }),
|
|
1886
1886
|
/* @__PURE__ */ n.jsx(
|
|
1887
1887
|
"input",
|
|
1888
1888
|
C({
|
|
1889
1889
|
ref: e,
|
|
1890
1890
|
className: N(
|
|
1891
1891
|
"input",
|
|
1892
|
-
|
|
1892
|
+
i && "input--with-prefix",
|
|
1893
1893
|
a && "input--with-suffix",
|
|
1894
1894
|
c
|
|
1895
1895
|
)
|
|
@@ -1899,60 +1899,56 @@ var Qr = i.forwardRef(
|
|
|
1899
1899
|
] });
|
|
1900
1900
|
}
|
|
1901
1901
|
);
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
var js =
|
|
1905
|
-
const t =
|
|
1902
|
+
Ui.displayName = "TextField";
|
|
1903
|
+
r.createContext(void 0);
|
|
1904
|
+
var js = r.createContext(null), Ss = r.createContext(null), ke = () => {
|
|
1905
|
+
const t = r.useContext(js);
|
|
1906
1906
|
if (!t)
|
|
1907
1907
|
throw new Error("This component must be used inside <NotificationBanner>.");
|
|
1908
1908
|
return t;
|
|
1909
|
-
},
|
|
1910
|
-
const t =
|
|
1909
|
+
}, Qi = () => {
|
|
1910
|
+
const t = r.useContext(Ss);
|
|
1911
1911
|
if (!t)
|
|
1912
1912
|
throw new Error("This component must be used inside <NotificationBanner.Actions>.");
|
|
1913
1913
|
return t;
|
|
1914
|
-
},
|
|
1914
|
+
}, _s = (t) => {
|
|
1915
1915
|
var e = t, {
|
|
1916
1916
|
variant: s = "info",
|
|
1917
|
-
children:
|
|
1917
|
+
children: i,
|
|
1918
1918
|
className: a
|
|
1919
|
-
} = e, c =
|
|
1919
|
+
} = e, c = F(e, [
|
|
1920
1920
|
"variant",
|
|
1921
1921
|
"children",
|
|
1922
1922
|
"className"
|
|
1923
1923
|
]);
|
|
1924
|
-
return /* @__PURE__ */ n.jsx(js.Provider, { value: !0, children: /* @__PURE__ */ n.jsx("div",
|
|
1924
|
+
return /* @__PURE__ */ n.jsx(js.Provider, { value: !0, children: /* @__PURE__ */ n.jsx("div", E(C({ className: N("notification-banner", s, a) }, c), { children: i })) });
|
|
1925
1925
|
};
|
|
1926
|
-
|
|
1927
|
-
var
|
|
1928
|
-
var e = t, { children: s, className:
|
|
1929
|
-
return ke(), /* @__PURE__ */ n.jsx("div",
|
|
1930
|
-
},
|
|
1931
|
-
var e = t, { children: s, className:
|
|
1932
|
-
return ke(), /* @__PURE__ */ n.jsx("p",
|
|
1933
|
-
},
|
|
1934
|
-
var e = t, { children: s, className:
|
|
1935
|
-
return ke(), /* @__PURE__ */ n.jsx(Ss.Provider, { value: !0, children: /* @__PURE__ */ n.jsx("div",
|
|
1936
|
-
},
|
|
1937
|
-
var e = t, { children: s, className:
|
|
1938
|
-
return
|
|
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 }));
|
|
1926
|
+
_s.displayName = "NotificationBanner";
|
|
1927
|
+
var Hi = (t) => {
|
|
1928
|
+
var e = t, { children: s, className: i } = e, a = F(e, ["children", "className"]);
|
|
1929
|
+
return ke(), /* @__PURE__ */ n.jsx("div", E(C({ className: N("banner-content", i) }, a), { children: s }));
|
|
1930
|
+
}, Ki = (t) => {
|
|
1931
|
+
var e = t, { children: s, className: i } = e, a = F(e, ["children", "className"]);
|
|
1932
|
+
return ke(), /* @__PURE__ */ n.jsx("p", E(C({ className: N("description", i) }, a), { children: s }));
|
|
1933
|
+
}, Wi = (t) => {
|
|
1934
|
+
var e = t, { children: s, className: i } = e, a = F(e, ["children", "className"]);
|
|
1935
|
+
return ke(), /* @__PURE__ */ n.jsx(Ss.Provider, { value: !0, children: /* @__PURE__ */ n.jsx("div", E(C({ className: N("actions", i) }, a), { children: s })) });
|
|
1936
|
+
}, Gi = (t) => {
|
|
1937
|
+
var e = t, { children: s, className: i } = e, a = F(e, ["children", "className"]);
|
|
1938
|
+
return Qi(), /* @__PURE__ */ n.jsx(Kt, E(C({ variant: "icon--secondary", className: i }, a), { children: s }));
|
|
1942
1939
|
};
|
|
1943
|
-
Object.assign(
|
|
1944
|
-
Content:
|
|
1945
|
-
Description:
|
|
1946
|
-
Actions:
|
|
1947
|
-
|
|
1948
|
-
Link: Vr
|
|
1940
|
+
Object.assign(_s, {
|
|
1941
|
+
Content: Hi,
|
|
1942
|
+
Description: Ki,
|
|
1943
|
+
Actions: Wi,
|
|
1944
|
+
Button: Gi
|
|
1949
1945
|
});
|
|
1950
|
-
var
|
|
1951
|
-
var e = t, { children: s, className:
|
|
1952
|
-
return /* @__PURE__ */ n.jsx("div",
|
|
1953
|
-
},
|
|
1946
|
+
var Vi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__header__action", children: t }), qi = (t) => {
|
|
1947
|
+
var e = t, { children: s, className: i } = e, a = F(e, ["children", "className"]);
|
|
1948
|
+
return /* @__PURE__ */ n.jsx("div", E(C({ className: N("card__body", i) }, a), { children: s }));
|
|
1949
|
+
}, $i = (t) => /* @__PURE__ */ n.jsx(
|
|
1954
1950
|
"svg",
|
|
1955
|
-
|
|
1951
|
+
E(C({
|
|
1956
1952
|
width: "24",
|
|
1957
1953
|
height: "24",
|
|
1958
1954
|
viewBox: "0 0 24 24",
|
|
@@ -1970,9 +1966,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
1970
1966
|
}
|
|
1971
1967
|
)
|
|
1972
1968
|
})
|
|
1973
|
-
), Ae =
|
|
1969
|
+
), Ae = $i, Zi = (t) => /* @__PURE__ */ n.jsx(
|
|
1974
1970
|
"svg",
|
|
1975
|
-
|
|
1971
|
+
E(C({
|
|
1976
1972
|
width: "24",
|
|
1977
1973
|
height: "24",
|
|
1978
1974
|
viewBox: "0 0 24 24",
|
|
@@ -1990,9 +1986,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
1990
1986
|
}
|
|
1991
1987
|
)
|
|
1992
1988
|
})
|
|
1993
|
-
),
|
|
1989
|
+
), Xi = Zi, Yi = (t) => /* @__PURE__ */ n.jsx(
|
|
1994
1990
|
"svg",
|
|
1995
|
-
|
|
1991
|
+
E(C({
|
|
1996
1992
|
width: "24",
|
|
1997
1993
|
height: "24",
|
|
1998
1994
|
viewBox: "0 0 24 24",
|
|
@@ -2009,9 +2005,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2009
2005
|
}
|
|
2010
2006
|
)
|
|
2011
2007
|
})
|
|
2012
|
-
),
|
|
2008
|
+
), Ji = Yi, Ii = (t) => /* @__PURE__ */ n.jsx(
|
|
2013
2009
|
"svg",
|
|
2014
|
-
|
|
2010
|
+
E(C({
|
|
2015
2011
|
width: "24",
|
|
2016
2012
|
height: "24",
|
|
2017
2013
|
viewBox: "0 0 24 24",
|
|
@@ -2028,9 +2024,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2028
2024
|
}
|
|
2029
2025
|
)
|
|
2030
2026
|
})
|
|
2031
|
-
),
|
|
2027
|
+
), Bi = Ii, tr = (t) => /* @__PURE__ */ n.jsx(
|
|
2032
2028
|
"svg",
|
|
2033
|
-
|
|
2029
|
+
E(C({
|
|
2034
2030
|
width: "24",
|
|
2035
2031
|
height: "24",
|
|
2036
2032
|
viewBox: "0 0 24 24",
|
|
@@ -2047,9 +2043,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2047
2043
|
}
|
|
2048
2044
|
)
|
|
2049
2045
|
})
|
|
2050
|
-
),
|
|
2046
|
+
), er = tr, sr = (t) => /* @__PURE__ */ n.jsxs(
|
|
2051
2047
|
"svg",
|
|
2052
|
-
|
|
2048
|
+
E(C({
|
|
2053
2049
|
width: "24",
|
|
2054
2050
|
height: "24",
|
|
2055
2051
|
fill: "none",
|
|
@@ -2084,9 +2080,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2084
2080
|
/* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsx("clipPath", { id: "clip0_19_444", children: /* @__PURE__ */ n.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
2085
2081
|
]
|
|
2086
2082
|
})
|
|
2087
|
-
),
|
|
2083
|
+
), ir = sr, rr = (t) => /* @__PURE__ */ n.jsxs(
|
|
2088
2084
|
"svg",
|
|
2089
|
-
|
|
2085
|
+
E(C({
|
|
2090
2086
|
width: "24",
|
|
2091
2087
|
height: "24",
|
|
2092
2088
|
viewBox: "0 0 24 24",
|
|
@@ -2116,9 +2112,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2116
2112
|
)
|
|
2117
2113
|
]
|
|
2118
2114
|
})
|
|
2119
|
-
),
|
|
2115
|
+
), nr = rr, ar = (t) => /* @__PURE__ */ n.jsxs(
|
|
2120
2116
|
"svg",
|
|
2121
|
-
|
|
2117
|
+
E(C({
|
|
2122
2118
|
width: "24",
|
|
2123
2119
|
height: "24",
|
|
2124
2120
|
viewBox: "0 0 24 24",
|
|
@@ -2168,18 +2164,18 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2168
2164
|
)
|
|
2169
2165
|
]
|
|
2170
2166
|
})
|
|
2171
|
-
),
|
|
2172
|
-
var e = t, { className: s } = e,
|
|
2167
|
+
), or = ar, lr = (t) => {
|
|
2168
|
+
var e = t, { className: s } = e, i = F(e, ["className"]);
|
|
2173
2169
|
return /* @__PURE__ */ n.jsxs(
|
|
2174
2170
|
"svg",
|
|
2175
|
-
|
|
2171
|
+
E(C({
|
|
2176
2172
|
width: "20",
|
|
2177
2173
|
height: "20",
|
|
2178
2174
|
viewBox: "0 0 20 20",
|
|
2179
2175
|
fill: "none",
|
|
2180
2176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2181
2177
|
className: N("spinner", s)
|
|
2182
|
-
},
|
|
2178
|
+
}, i), {
|
|
2183
2179
|
children: [
|
|
2184
2180
|
/* @__PURE__ */ n.jsx("circle", { cx: "10", cy: "10", r: "9", stroke: "currentColor", strokeOpacity: "0.2", strokeWidth: "1.5" }),
|
|
2185
2181
|
/* @__PURE__ */ n.jsx(
|
|
@@ -2197,9 +2193,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2197
2193
|
]
|
|
2198
2194
|
})
|
|
2199
2195
|
);
|
|
2200
|
-
},
|
|
2196
|
+
}, cr = lr, ur = (t) => /* @__PURE__ */ n.jsxs(
|
|
2201
2197
|
"svg",
|
|
2202
|
-
|
|
2198
|
+
E(C({
|
|
2203
2199
|
width: "24",
|
|
2204
2200
|
height: "24",
|
|
2205
2201
|
fill: "none",
|
|
@@ -2231,11 +2227,11 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2231
2227
|
/* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsx("clipPath", { id: "clip0_762_2934", children: /* @__PURE__ */ n.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
2232
2228
|
]
|
|
2233
2229
|
})
|
|
2234
|
-
),
|
|
2230
|
+
), dr = ur, hr = (t) => {
|
|
2235
2231
|
const e = (s) => `${s}${t.suffix ? `_${t.suffix}` : ""}`;
|
|
2236
2232
|
return /* @__PURE__ */ n.jsxs(
|
|
2237
2233
|
"svg",
|
|
2238
|
-
|
|
2234
|
+
E(C({
|
|
2239
2235
|
width: "24",
|
|
2240
2236
|
height: "24",
|
|
2241
2237
|
viewBox: "0 0 24 24",
|
|
@@ -2402,9 +2398,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2402
2398
|
]
|
|
2403
2399
|
})
|
|
2404
2400
|
);
|
|
2405
|
-
},
|
|
2401
|
+
}, Ps = hr, fr = (t) => /* @__PURE__ */ n.jsxs(
|
|
2406
2402
|
"svg",
|
|
2407
|
-
|
|
2403
|
+
E(C({
|
|
2408
2404
|
fill: "none",
|
|
2409
2405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2410
2406
|
viewBox: "0 0 24 24",
|
|
@@ -2464,9 +2460,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2464
2460
|
)
|
|
2465
2461
|
]
|
|
2466
2462
|
})
|
|
2467
|
-
),
|
|
2463
|
+
), pr = fr, mr = (t) => /* @__PURE__ */ n.jsx(
|
|
2468
2464
|
"svg",
|
|
2469
|
-
|
|
2465
|
+
E(C({
|
|
2470
2466
|
fill: "none",
|
|
2471
2467
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2472
2468
|
viewBox: "0 0 21 16",
|
|
@@ -2484,9 +2480,9 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2484
2480
|
}
|
|
2485
2481
|
)
|
|
2486
2482
|
})
|
|
2487
|
-
),
|
|
2483
|
+
), yr = mr, gr = (t) => /* @__PURE__ */ n.jsxs(
|
|
2488
2484
|
"svg",
|
|
2489
|
-
|
|
2485
|
+
E(C({
|
|
2490
2486
|
width: "24",
|
|
2491
2487
|
height: "24",
|
|
2492
2488
|
fill: "none",
|
|
@@ -2511,15 +2507,15 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2511
2507
|
/* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
|
|
2512
2508
|
]
|
|
2513
2509
|
})
|
|
2514
|
-
),
|
|
2510
|
+
), vr = gr, Cr = (t) => {
|
|
2515
2511
|
var e = t, {
|
|
2516
2512
|
variant: s,
|
|
2517
|
-
icon:
|
|
2513
|
+
icon: i,
|
|
2518
2514
|
isStandalone: a,
|
|
2519
2515
|
title: c,
|
|
2520
2516
|
description: l,
|
|
2521
2517
|
className: u
|
|
2522
|
-
} = e, d =
|
|
2518
|
+
} = e, d = F(e, [
|
|
2523
2519
|
"variant",
|
|
2524
2520
|
"icon",
|
|
2525
2521
|
"isStandalone",
|
|
@@ -2529,7 +2525,7 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2529
2525
|
]);
|
|
2530
2526
|
return /* @__PURE__ */ n.jsx(
|
|
2531
2527
|
"div",
|
|
2532
|
-
|
|
2528
|
+
E(C({}, d), {
|
|
2533
2529
|
className: N(
|
|
2534
2530
|
"card__empty-state",
|
|
2535
2531
|
s === "error" && "card__empty-state--error",
|
|
@@ -2537,7 +2533,7 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2537
2533
|
u
|
|
2538
2534
|
),
|
|
2539
2535
|
children: /* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__wrapper", children: [
|
|
2540
|
-
/* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(
|
|
2536
|
+
/* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(dr, {}) : i }),
|
|
2541
2537
|
/* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__content", children: [
|
|
2542
2538
|
/* @__PURE__ */ n.jsx("p", { className: "card__empty-state__title", children: c }),
|
|
2543
2539
|
/* @__PURE__ */ n.jsx("p", { className: "card__empty-state__description", children: l })
|
|
@@ -2545,13 +2541,13 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2545
2541
|
] })
|
|
2546
2542
|
})
|
|
2547
2543
|
);
|
|
2548
|
-
},
|
|
2544
|
+
}, xr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__footer", children: t }), br = (t) => {
|
|
2549
2545
|
var e = t, {
|
|
2550
2546
|
variant: s = "default",
|
|
2551
|
-
sticky:
|
|
2547
|
+
sticky: i,
|
|
2552
2548
|
className: a,
|
|
2553
2549
|
children: c
|
|
2554
|
-
} = e, l =
|
|
2550
|
+
} = e, l = F(e, [
|
|
2555
2551
|
"variant",
|
|
2556
2552
|
"sticky",
|
|
2557
2553
|
"className",
|
|
@@ -2559,24 +2555,24 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2559
2555
|
]);
|
|
2560
2556
|
return /* @__PURE__ */ n.jsx(
|
|
2561
2557
|
"div",
|
|
2562
|
-
|
|
2558
|
+
E(C({}, l), {
|
|
2563
2559
|
className: N(
|
|
2564
2560
|
"card__header",
|
|
2565
2561
|
s && `card__header--${s}`,
|
|
2566
|
-
|
|
2562
|
+
i && "card__header--sticky",
|
|
2567
2563
|
a
|
|
2568
2564
|
),
|
|
2569
2565
|
children: c
|
|
2570
2566
|
})
|
|
2571
2567
|
);
|
|
2572
|
-
},
|
|
2568
|
+
}, wr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__image", children: t }), jr = ({ children: t, className: e }) => /* @__PURE__ */ n.jsx("div", { className: N("card__body__item", e), children: t }), Sr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__body__subtitle", children: t }), _r = ({ icon: t, children: e }) => /* @__PURE__ */ n.jsxs("div", { className: "card__header__title", children: [
|
|
2573
2569
|
t && /* @__PURE__ */ n.jsx("span", { className: "card__header__title__icon", children: t }),
|
|
2574
2570
|
e
|
|
2575
|
-
] }),
|
|
2571
|
+
] }), Es = r.forwardRef(
|
|
2576
2572
|
(t, e) => {
|
|
2577
|
-
var s = t, { type:
|
|
2578
|
-
return
|
|
2579
|
-
|
|
2573
|
+
var s = t, { type: i, children: a, className: c, variant: l = "default", disabled: u = !1 } = s, d = F(s, ["type", "children", "className", "variant", "disabled"]);
|
|
2574
|
+
return r.createElement(
|
|
2575
|
+
i,
|
|
2580
2576
|
C({
|
|
2581
2577
|
className: N(
|
|
2582
2578
|
"card",
|
|
@@ -2590,44 +2586,44 @@ var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2590
2586
|
);
|
|
2591
2587
|
}
|
|
2592
2588
|
);
|
|
2593
|
-
|
|
2594
|
-
Object.assign(
|
|
2595
|
-
Header:
|
|
2596
|
-
Action:
|
|
2597
|
-
Title:
|
|
2598
|
-
Subtitle:
|
|
2599
|
-
Body:
|
|
2600
|
-
Image:
|
|
2601
|
-
Item:
|
|
2602
|
-
Footer:
|
|
2603
|
-
EmptyState:
|
|
2589
|
+
Es.displayName = "Card";
|
|
2590
|
+
Object.assign(Es, {
|
|
2591
|
+
Header: br,
|
|
2592
|
+
Action: Vi,
|
|
2593
|
+
Title: _r,
|
|
2594
|
+
Subtitle: Sr,
|
|
2595
|
+
Body: qi,
|
|
2596
|
+
Image: wr,
|
|
2597
|
+
Item: jr,
|
|
2598
|
+
Footer: xr,
|
|
2599
|
+
EmptyState: Cr
|
|
2604
2600
|
});
|
|
2605
|
-
var
|
|
2606
|
-
var e = t, { className: s, children:
|
|
2607
|
-
return /* @__PURE__ */ n.jsx("div",
|
|
2608
|
-
},
|
|
2609
|
-
var e = t, { className: s, children:
|
|
2610
|
-
return /* @__PURE__ */ n.jsx("span",
|
|
2611
|
-
},
|
|
2612
|
-
const t =
|
|
2601
|
+
var Pr = (t) => {
|
|
2602
|
+
var e = t, { className: s, children: i } = e, a = F(e, ["className", "children"]);
|
|
2603
|
+
return /* @__PURE__ */ n.jsx("div", E(C({ className: N("checkbox__content", s) }, a), { children: i }));
|
|
2604
|
+
}, Er = (t) => {
|
|
2605
|
+
var e = t, { className: s, children: i } = e, a = F(e, ["className", "children"]);
|
|
2606
|
+
return /* @__PURE__ */ n.jsx("span", E(C({ className: N("checkbox__hint", s) }, a), { children: i }));
|
|
2607
|
+
}, ks = r.createContext(void 0), kr = ({ id: t, name: e, children: s }) => /* @__PURE__ */ n.jsx(ks.Provider, { value: { id: t, name: e }, children: s }), Ar = () => {
|
|
2608
|
+
const t = r.useContext(ks);
|
|
2613
2609
|
if (!t)
|
|
2614
2610
|
throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
|
|
2615
2611
|
return t;
|
|
2616
|
-
},
|
|
2617
|
-
var e = t, { className: s, children:
|
|
2618
|
-
const { id: c } =
|
|
2619
|
-
return /* @__PURE__ */ n.jsx("label",
|
|
2612
|
+
}, Nr = (t) => {
|
|
2613
|
+
var e = t, { className: s, children: i } = e, a = F(e, ["className", "children"]);
|
|
2614
|
+
const { id: c } = Ar();
|
|
2615
|
+
return /* @__PURE__ */ n.jsx("label", E(C({ htmlFor: c, className: N("checkbox__label", s) }, a), { children: i }));
|
|
2620
2616
|
}, jt = (t) => {
|
|
2621
2617
|
var e = t, {
|
|
2622
2618
|
id: s,
|
|
2623
|
-
name:
|
|
2619
|
+
name: i,
|
|
2624
2620
|
isPending: a = !1,
|
|
2625
2621
|
variant: c = "neutral",
|
|
2626
2622
|
hasError: l = !1,
|
|
2627
2623
|
single: u,
|
|
2628
2624
|
className: d,
|
|
2629
2625
|
children: p
|
|
2630
|
-
} = e, f =
|
|
2626
|
+
} = e, f = F(e, [
|
|
2631
2627
|
"id",
|
|
2632
2628
|
"name",
|
|
2633
2629
|
"isPending",
|
|
@@ -2637,8 +2633,8 @@ var Ei = (t) => {
|
|
|
2637
2633
|
"className",
|
|
2638
2634
|
"children"
|
|
2639
2635
|
]);
|
|
2640
|
-
const h =
|
|
2641
|
-
return
|
|
2636
|
+
const h = r.useRef(null);
|
|
2637
|
+
return r.useEffect(() => {
|
|
2642
2638
|
h.current && (a ? h.current.indeterminate = !0 : h.current.indeterminate = !1);
|
|
2643
2639
|
}, [a]), /* @__PURE__ */ n.jsxs(
|
|
2644
2640
|
"div",
|
|
@@ -2649,83 +2645,83 @@ var Ei = (t) => {
|
|
|
2649
2645
|
"input",
|
|
2650
2646
|
C({
|
|
2651
2647
|
id: s,
|
|
2652
|
-
name:
|
|
2648
|
+
name: i,
|
|
2653
2649
|
type: "checkbox",
|
|
2654
2650
|
ref: h,
|
|
2655
2651
|
className: N("checkbox__input", d),
|
|
2656
2652
|
value: u ? "true" : ""
|
|
2657
2653
|
}, f)
|
|
2658
2654
|
),
|
|
2659
|
-
a ? /* @__PURE__ */ n.jsx(
|
|
2660
|
-
/* @__PURE__ */ n.jsx(
|
|
2655
|
+
a ? /* @__PURE__ */ n.jsx(cr, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ n.jsx(Xi, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
|
|
2656
|
+
/* @__PURE__ */ n.jsx(kr, { id: s, name: i, children: p })
|
|
2661
2657
|
]
|
|
2662
2658
|
}
|
|
2663
2659
|
);
|
|
2664
2660
|
};
|
|
2665
|
-
jt.Content =
|
|
2666
|
-
jt.Label =
|
|
2667
|
-
jt.Hint =
|
|
2661
|
+
jt.Content = Pr;
|
|
2662
|
+
jt.Label = Nr;
|
|
2663
|
+
jt.Hint = Er;
|
|
2668
2664
|
jt.Error = Error;
|
|
2669
|
-
var
|
|
2670
|
-
var e = t, { type: s = "div", className:
|
|
2671
|
-
return
|
|
2672
|
-
}, xe = () => document.body.style.removeProperty("overflow"), He = (t) => t.preventDefault(),
|
|
2673
|
-
var e = t, { className: s, children:
|
|
2665
|
+
var Lr = (t) => {
|
|
2666
|
+
var e = t, { type: s = "div", className: i, children: a } = e, c = F(e, ["type", "className", "children"]);
|
|
2667
|
+
return r.createElement(s, C({ className: N("dialog__body", i) }, c), a);
|
|
2668
|
+
}, xe = () => document.body.style.removeProperty("overflow"), He = (t) => t.preventDefault(), Mr = '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])', Fr = (t) => {
|
|
2669
|
+
var e = t, { className: s, children: i, shouldAnimate: a = !0 } = e, c = F(e, ["className", "children", "shouldAnimate"]);
|
|
2674
2670
|
const { ref: l, defaultOpen: u, isModal: d, onClose: p } = Xt();
|
|
2675
|
-
return
|
|
2671
|
+
return r.useEffect(() => {
|
|
2676
2672
|
const f = l == null ? void 0 : l.current;
|
|
2677
2673
|
if (f != null && f.open) {
|
|
2678
|
-
const h = f.querySelectorAll(
|
|
2674
|
+
const h = f.querySelectorAll(Mr), y = h[0], g = h[h.length - 1], _ = (S) => {
|
|
2679
2675
|
if (!(S.key === "Tab"))
|
|
2680
2676
|
return;
|
|
2681
2677
|
S.shiftKey ? document.activeElement === y && (g.focus(), S.preventDefault()) : document.activeElement === g && (y.focus(), S.preventDefault());
|
|
2682
2678
|
};
|
|
2683
|
-
return document.body.style.overflow = "hidden", f.addEventListener("keydown",
|
|
2684
|
-
f.removeEventListener("keydown",
|
|
2679
|
+
return document.body.style.overflow = "hidden", f.addEventListener("keydown", _), window.addEventListener("popstate", () => xe()), () => {
|
|
2680
|
+
f.removeEventListener("keydown", _), window.removeEventListener("popstate", () => xe());
|
|
2685
2681
|
};
|
|
2686
2682
|
}
|
|
2687
|
-
}, [l]),
|
|
2683
|
+
}, [l]), r.useEffect(() => {
|
|
2688
2684
|
const f = l == null ? void 0 : l.current;
|
|
2689
2685
|
if (!f)
|
|
2690
2686
|
return;
|
|
2691
2687
|
if (u && (f.removeAttribute("open"), f.showModal(), f.focus()), d)
|
|
2692
2688
|
return f.addEventListener("cancel", He), () => f.removeEventListener("cancel", He);
|
|
2693
2689
|
const h = ({ clientX: y, clientY: g }) => {
|
|
2694
|
-
const { top:
|
|
2695
|
-
b && !(w &&
|
|
2690
|
+
const { top: _, right: S, bottom: P, left: x } = f.getBoundingClientRect(), b = 0 < g && 0 < y, w = _ < g && g < P, M = x < y && y < S;
|
|
2691
|
+
b && !(w && M) && p();
|
|
2696
2692
|
};
|
|
2697
2693
|
return f.addEventListener("cancel", p), f.addEventListener("mousedown", h), () => {
|
|
2698
2694
|
f.removeEventListener("cancel", p), f.removeEventListener("mousedown", h);
|
|
2699
2695
|
};
|
|
2700
2696
|
}, [l, d, p, u]), /* @__PURE__ */ n.jsx(
|
|
2701
2697
|
"dialog",
|
|
2702
|
-
|
|
2698
|
+
E(C({
|
|
2703
2699
|
ref: l,
|
|
2704
2700
|
open: u,
|
|
2705
2701
|
"aria-modal": !!d,
|
|
2706
2702
|
"aria-labelledby": "dialogTitle",
|
|
2707
2703
|
className: N("dialog", a && "dialog--animated", s)
|
|
2708
2704
|
}, c), {
|
|
2709
|
-
children:
|
|
2705
|
+
children: i
|
|
2710
2706
|
})
|
|
2711
2707
|
);
|
|
2712
|
-
},
|
|
2713
|
-
const a =
|
|
2708
|
+
}, As = r.createContext(void 0), Rr = ({ defaultOpen: t, onClose: e, isModal: s, children: i }) => {
|
|
2709
|
+
const a = r.useRef(null), c = r.useRef(e), l = r.useCallback(() => {
|
|
2714
2710
|
var u;
|
|
2715
2711
|
xe(), (u = a.current) == null || u.close(), c.current && (c == null || c.current());
|
|
2716
2712
|
}, [a]);
|
|
2717
|
-
return /* @__PURE__ */ n.jsx(
|
|
2713
|
+
return /* @__PURE__ */ n.jsx(As.Provider, { value: { ref: a, defaultOpen: t, isModal: s, onClose: l }, children: i });
|
|
2718
2714
|
}, Xt = () => {
|
|
2719
|
-
const t =
|
|
2715
|
+
const t = r.useContext(As);
|
|
2720
2716
|
if (!t)
|
|
2721
2717
|
throw new Error("Dialog compound components can not be rendered outside of Dialog");
|
|
2722
2718
|
return t;
|
|
2723
|
-
},
|
|
2724
|
-
var e = t, { children: s } = e,
|
|
2719
|
+
}, Or = (t) => {
|
|
2720
|
+
var e = t, { children: s } = e, i = F(e, ["children"]);
|
|
2725
2721
|
const { onClose: a } = Xt();
|
|
2726
|
-
return /* @__PURE__ */ n.jsx(Kt,
|
|
2727
|
-
},
|
|
2728
|
-
var s = t, { className:
|
|
2722
|
+
return /* @__PURE__ */ n.jsx(Kt, E(C({ onClick: a }, i), { children: s }));
|
|
2723
|
+
}, Ns = r.forwardRef((t, e) => {
|
|
2724
|
+
var s = t, { className: i } = s, a = F(s, ["className"]);
|
|
2729
2725
|
const { onClose: c } = Xt();
|
|
2730
2726
|
return /* @__PURE__ */ n.jsx(
|
|
2731
2727
|
Kt,
|
|
@@ -2734,24 +2730,24 @@ var Mi = (t) => {
|
|
|
2734
2730
|
ref: e,
|
|
2735
2731
|
formMethod: "dialog",
|
|
2736
2732
|
onClick: c,
|
|
2737
|
-
iconLeft: /* @__PURE__ */ n.jsx(
|
|
2733
|
+
iconLeft: /* @__PURE__ */ n.jsx(Ji, {}),
|
|
2738
2734
|
variant: "icon--secondary",
|
|
2739
|
-
className: N("dialog__close button--icon",
|
|
2735
|
+
className: N("dialog__close button--icon", i)
|
|
2740
2736
|
}, a)
|
|
2741
2737
|
);
|
|
2742
2738
|
});
|
|
2743
|
-
|
|
2744
|
-
var
|
|
2745
|
-
var e = t, { className: s, children:
|
|
2746
|
-
return /* @__PURE__ */ n.jsx("div",
|
|
2747
|
-
},
|
|
2748
|
-
var e = t, { icon: s, children:
|
|
2749
|
-
const { ref: l } = Xt(), u =
|
|
2750
|
-
return
|
|
2739
|
+
Ns.displayName = "Close";
|
|
2740
|
+
var zr = (t) => {
|
|
2741
|
+
var e = t, { className: s, children: i } = e, a = F(e, ["className", "children"]);
|
|
2742
|
+
return /* @__PURE__ */ n.jsx("div", E(C({ className: N("dialog__footer", s) }, a), { children: i }));
|
|
2743
|
+
}, Dr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "dialog__header", children: t }), Tr = (t) => {
|
|
2744
|
+
var e = t, { icon: s, children: i, className: a } = e, c = F(e, ["icon", "children", "className"]);
|
|
2745
|
+
const { ref: l } = Xt(), u = r.useRef(null);
|
|
2746
|
+
return r.useEffect(() => {
|
|
2751
2747
|
l != null && l.current && l.current.focus();
|
|
2752
2748
|
}, [l]), /* @__PURE__ */ n.jsxs(
|
|
2753
2749
|
"div",
|
|
2754
|
-
|
|
2750
|
+
E(C({
|
|
2755
2751
|
tabIndex: 0,
|
|
2756
2752
|
ref: u,
|
|
2757
2753
|
id: "dialogTitle",
|
|
@@ -2759,31 +2755,31 @@ var Di = (t) => {
|
|
|
2759
2755
|
}, c), {
|
|
2760
2756
|
children: [
|
|
2761
2757
|
s && /* @__PURE__ */ n.jsx("span", { className: "dialog__header__icon", children: s }),
|
|
2762
|
-
|
|
2758
|
+
i
|
|
2763
2759
|
]
|
|
2764
2760
|
})
|
|
2765
2761
|
);
|
|
2766
|
-
},
|
|
2767
|
-
var e = t, { children: s } = e,
|
|
2762
|
+
}, Ur = (t) => {
|
|
2763
|
+
var e = t, { children: s } = e, i = F(e, ["children"]);
|
|
2768
2764
|
const { ref: a } = Xt();
|
|
2769
|
-
return /* @__PURE__ */ n.jsx(Kt,
|
|
2765
|
+
return /* @__PURE__ */ n.jsx(Kt, E(C({ onClick: () => {
|
|
2770
2766
|
var c;
|
|
2771
2767
|
return (c = a == null ? void 0 : a.current) == null ? void 0 : c.showModal();
|
|
2772
|
-
} },
|
|
2773
|
-
}, K = ({ defaultOpen: t, isModal: e, children: s, onClose:
|
|
2774
|
-
K.Trigger =
|
|
2775
|
-
K.Root =
|
|
2776
|
-
K.Title =
|
|
2777
|
-
K.Header =
|
|
2778
|
-
K.Body =
|
|
2779
|
-
K.Footer =
|
|
2780
|
-
K.Button =
|
|
2781
|
-
K.Close =
|
|
2782
|
-
var
|
|
2768
|
+
} }, i), { children: s }));
|
|
2769
|
+
}, K = ({ defaultOpen: t, isModal: e, children: s, onClose: i }) => /* @__PURE__ */ n.jsx(Rr, { defaultOpen: !!t, isModal: e, onClose: i, children: s });
|
|
2770
|
+
K.Trigger = Ur;
|
|
2771
|
+
K.Root = Fr;
|
|
2772
|
+
K.Title = Tr;
|
|
2773
|
+
K.Header = Dr;
|
|
2774
|
+
K.Body = Lr;
|
|
2775
|
+
K.Footer = zr;
|
|
2776
|
+
K.Button = Or;
|
|
2777
|
+
K.Close = Ns;
|
|
2778
|
+
var Ls = r.createContext(void 0), Qr = ({
|
|
2783
2779
|
id: t,
|
|
2784
2780
|
position: e,
|
|
2785
2781
|
isOpen: s,
|
|
2786
|
-
setIsOpen:
|
|
2782
|
+
setIsOpen: i,
|
|
2787
2783
|
activeItemIndex: a,
|
|
2788
2784
|
setActiveItemIndex: c,
|
|
2789
2785
|
clearActiveItemIndex: l,
|
|
@@ -2791,13 +2787,13 @@ var Ms = i.createContext(void 0), Hi = ({
|
|
|
2791
2787
|
contentRef: d,
|
|
2792
2788
|
children: p
|
|
2793
2789
|
}) => /* @__PURE__ */ n.jsx(
|
|
2794
|
-
|
|
2790
|
+
Ls.Provider,
|
|
2795
2791
|
{
|
|
2796
2792
|
value: {
|
|
2797
2793
|
id: t,
|
|
2798
2794
|
position: e,
|
|
2799
2795
|
isOpen: s,
|
|
2800
|
-
setIsOpen:
|
|
2796
|
+
setIsOpen: i,
|
|
2801
2797
|
activeItemIndex: a,
|
|
2802
2798
|
setActiveItemIndex: c,
|
|
2803
2799
|
clearActiveItemIndex: l,
|
|
@@ -2806,15 +2802,15 @@ var Ms = i.createContext(void 0), Hi = ({
|
|
|
2806
2802
|
},
|
|
2807
2803
|
children: p
|
|
2808
2804
|
}
|
|
2809
|
-
),
|
|
2810
|
-
const t =
|
|
2805
|
+
), Ms = () => {
|
|
2806
|
+
const t = r.useContext(Ls);
|
|
2811
2807
|
if (t === void 0)
|
|
2812
2808
|
throw new Error("useMenu must be used within a MenuProvider");
|
|
2813
2809
|
return t;
|
|
2814
|
-
},
|
|
2810
|
+
}, Hr = ({ as: t, children: e }) => {
|
|
2815
2811
|
const {
|
|
2816
2812
|
id: s,
|
|
2817
|
-
position:
|
|
2813
|
+
position: i,
|
|
2818
2814
|
isOpen: a,
|
|
2819
2815
|
setIsOpen: c,
|
|
2820
2816
|
activeItemIndex: l,
|
|
@@ -2822,21 +2818,21 @@ var Ms = i.createContext(void 0), Hi = ({
|
|
|
2822
2818
|
clearActiveItemIndex: d,
|
|
2823
2819
|
triggerRef: p,
|
|
2824
2820
|
contentRef: f
|
|
2825
|
-
} =
|
|
2821
|
+
} = Ms(), h = (y) => {
|
|
2826
2822
|
var g;
|
|
2827
2823
|
if (!a)
|
|
2828
2824
|
return;
|
|
2829
2825
|
if (y.key === "Escape")
|
|
2830
2826
|
return d(), c(!1), (g = p.current) == null ? void 0 : g.focus();
|
|
2831
|
-
const
|
|
2827
|
+
const _ = y.shiftKey, S = Rs(f.current).length - 1;
|
|
2832
2828
|
switch (y.key) {
|
|
2833
2829
|
case "Tab": {
|
|
2834
|
-
if (
|
|
2830
|
+
if (_ && l !== 0)
|
|
2835
2831
|
return y.preventDefault(), u(l ? Math.max(0, l - 1) : 0);
|
|
2836
|
-
if (!
|
|
2832
|
+
if (!_ && l !== S) {
|
|
2837
2833
|
y.preventDefault();
|
|
2838
|
-
const
|
|
2839
|
-
return u(Math.min(S,
|
|
2834
|
+
const P = l !== void 0 ? l + 1 : 0;
|
|
2835
|
+
return u(Math.min(S, P));
|
|
2840
2836
|
}
|
|
2841
2837
|
break;
|
|
2842
2838
|
}
|
|
@@ -2846,8 +2842,8 @@ var Ms = i.createContext(void 0), Hi = ({
|
|
|
2846
2842
|
case "ArrowDown":
|
|
2847
2843
|
case "ArrowRight": {
|
|
2848
2844
|
y.preventDefault();
|
|
2849
|
-
const
|
|
2850
|
-
return u(Math.min(S,
|
|
2845
|
+
const P = l !== void 0 ? l + 1 : 0;
|
|
2846
|
+
return u(Math.min(S, P));
|
|
2851
2847
|
}
|
|
2852
2848
|
case "Home":
|
|
2853
2849
|
return y.preventDefault(), u(0);
|
|
@@ -2855,12 +2851,12 @@ var Ms = i.createContext(void 0), Hi = ({
|
|
|
2855
2851
|
return y.preventDefault(), u(S);
|
|
2856
2852
|
}
|
|
2857
2853
|
};
|
|
2858
|
-
return t ?
|
|
2854
|
+
return t ? r.createElement(
|
|
2859
2855
|
t,
|
|
2860
2856
|
{
|
|
2861
2857
|
id: `${s}-content`,
|
|
2862
2858
|
ref: f,
|
|
2863
|
-
className: N("menu__list", `menu__list--${
|
|
2859
|
+
className: N("menu__list", `menu__list--${i}`, a && "menu__list--active"),
|
|
2864
2860
|
onKeyDown: h
|
|
2865
2861
|
},
|
|
2866
2862
|
e
|
|
@@ -2871,62 +2867,62 @@ var Ms = i.createContext(void 0), Hi = ({
|
|
|
2871
2867
|
{
|
|
2872
2868
|
id: `${s}-content`,
|
|
2873
2869
|
ref: f,
|
|
2874
|
-
className: N("menu__list", `menu__list--${
|
|
2870
|
+
className: N("menu__list", `menu__list--${i}`, a && "menu__list--active"),
|
|
2875
2871
|
onKeyDown: h,
|
|
2876
2872
|
children: e
|
|
2877
2873
|
}
|
|
2878
2874
|
)
|
|
2879
2875
|
);
|
|
2880
|
-
},
|
|
2881
|
-
var e = t, { children: s, className:
|
|
2882
|
-
return /* @__PURE__ */ n.jsx("li",
|
|
2883
|
-
},
|
|
2884
|
-
const { id: s, isOpen:
|
|
2885
|
-
c(), a((f) => !f),
|
|
2876
|
+
}, Kr = (t) => {
|
|
2877
|
+
var e = t, { children: s, className: i } = e, a = F(e, ["children", "className"]);
|
|
2878
|
+
return /* @__PURE__ */ n.jsx("li", E(C({}, a), { className: N("menu__list-item", i), children: s }));
|
|
2879
|
+
}, Fs = ({ children: t, className: e }) => {
|
|
2880
|
+
const { id: s, isOpen: i, setIsOpen: a, clearActiveItemIndex: c, setActiveItemIndex: l, triggerRef: u } = Ms(), d = () => {
|
|
2881
|
+
c(), a((f) => !f), i || l(0);
|
|
2886
2882
|
}, p = (f) => {
|
|
2887
|
-
if (
|
|
2883
|
+
if (i) {
|
|
2888
2884
|
if (f.key === "Escape")
|
|
2889
2885
|
return c(), a(!1);
|
|
2890
2886
|
f.key === "ArrowDown" && (f.preventDefault(), l(0));
|
|
2891
2887
|
}
|
|
2892
2888
|
};
|
|
2893
|
-
return
|
|
2889
|
+
return r.cloneElement(t, {
|
|
2894
2890
|
id: `${s}-trigger`,
|
|
2895
2891
|
ref: u,
|
|
2896
2892
|
className: N("menu__trigger", e),
|
|
2897
2893
|
onClick: d,
|
|
2898
2894
|
onKeyDown: p,
|
|
2899
|
-
"aria-expanded":
|
|
2895
|
+
"aria-expanded": i,
|
|
2900
2896
|
"aria-controls": `${s}-content`
|
|
2901
2897
|
});
|
|
2902
2898
|
};
|
|
2903
|
-
|
|
2904
|
-
var
|
|
2905
|
-
var e = t, { type: s, id:
|
|
2906
|
-
const d =
|
|
2907
|
-
g !== S && g !== void 0 && f.current && (
|
|
2899
|
+
Fs.displayName = "Trigger";
|
|
2900
|
+
var Rs = (t) => t ? t.tagName === "UL" ? t.children : Array.from(t.getElementsByTagName("ul")).reduce((s, i) => [...s, ...Array.from(i.getElementsByTagName("li"))], []) : [], G = (t) => {
|
|
2901
|
+
var e = t, { type: s, id: i, position: a = "bottom-end", children: c, className: l } = e, u = F(e, ["type", "id", "position", "children", "className"]);
|
|
2902
|
+
const d = r.useRef(null), p = r.useRef(null), f = r.useRef(null), [h, y] = r.useState(!1), [g, _] = r.useState(), [S, P] = r.useState(g);
|
|
2903
|
+
g !== S && g !== void 0 && f.current && (Rs(f.current)[g].firstChild.focus(), P(g));
|
|
2908
2904
|
const x = () => {
|
|
2909
|
-
|
|
2905
|
+
_(void 0), P(void 0);
|
|
2910
2906
|
}, b = (w) => {
|
|
2911
|
-
var
|
|
2912
|
-
((
|
|
2907
|
+
var M;
|
|
2908
|
+
((M = d.current) == null ? void 0 : M.contains(w.relatedTarget)) || (x(), y(!1));
|
|
2913
2909
|
};
|
|
2914
2910
|
return /* @__PURE__ */ n.jsx(
|
|
2915
|
-
|
|
2911
|
+
Qr,
|
|
2916
2912
|
{
|
|
2917
|
-
id:
|
|
2913
|
+
id: i,
|
|
2918
2914
|
position: a,
|
|
2919
2915
|
isOpen: h,
|
|
2920
2916
|
setIsOpen: y,
|
|
2921
2917
|
activeItemIndex: g,
|
|
2922
|
-
setActiveItemIndex:
|
|
2918
|
+
setActiveItemIndex: _,
|
|
2923
2919
|
clearActiveItemIndex: x,
|
|
2924
2920
|
triggerRef: p,
|
|
2925
2921
|
contentRef: f,
|
|
2926
|
-
children:
|
|
2922
|
+
children: r.createElement(
|
|
2927
2923
|
s,
|
|
2928
|
-
|
|
2929
|
-
id:
|
|
2924
|
+
E(C({}, u), {
|
|
2925
|
+
id: i,
|
|
2930
2926
|
ref: d,
|
|
2931
2927
|
className: `menu ${l || ""}`,
|
|
2932
2928
|
onBlur: b
|
|
@@ -2936,471 +2932,471 @@ var Os = (t) => t ? t.tagName === "UL" ? t.children : Array.from(t.getElementsBy
|
|
|
2936
2932
|
}
|
|
2937
2933
|
);
|
|
2938
2934
|
};
|
|
2939
|
-
G.Trigger =
|
|
2940
|
-
G.Content =
|
|
2941
|
-
G.Item =
|
|
2942
|
-
|
|
2943
|
-
var
|
|
2944
|
-
[...new Set(
|
|
2935
|
+
G.Trigger = Fs;
|
|
2936
|
+
G.Content = Hr;
|
|
2937
|
+
G.Item = Kr;
|
|
2938
|
+
r.createContext(void 0);
|
|
2939
|
+
var Wr = (/* @__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");
|
|
2940
|
+
[...new Set(Wr.values())].map((t) => ({
|
|
2945
2941
|
label: `+${t}`,
|
|
2946
2942
|
value: t
|
|
2947
2943
|
}));
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
var
|
|
2951
|
-
const
|
|
2952
|
-
categoriesVegetables:
|
|
2953
|
-
() => import("./Categoriesvegetables-
|
|
2944
|
+
r.createContext(void 0);
|
|
2945
|
+
r.createContext(void 0);
|
|
2946
|
+
var ie = /* @__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))(ie || {});
|
|
2947
|
+
const Gr = {
|
|
2948
|
+
categoriesVegetables: r.lazy(
|
|
2949
|
+
() => import("./Categoriesvegetables-CBV5KT_y.js")
|
|
2954
2950
|
),
|
|
2955
|
-
categoriesMeat:
|
|
2956
|
-
categoriesFish:
|
|
2957
|
-
categoriesDairy:
|
|
2958
|
-
categoriesBreakfast:
|
|
2959
|
-
() => import("./Categoriesbreakfast-
|
|
2960
|
-
),
|
|
2961
|
-
categoriesSnacks:
|
|
2962
|
-
() => import("./Categoriessnacks-
|
|
2963
|
-
),
|
|
2964
|
-
categoriesCandy:
|
|
2965
|
-
categoriesNonFood:
|
|
2966
|
-
() => import("./Categoriesnonfood-
|
|
2967
|
-
),
|
|
2968
|
-
categoriesDryFood:
|
|
2969
|
-
() => import("./Categoriesdryfood-
|
|
2970
|
-
),
|
|
2971
|
-
categoriesTins:
|
|
2972
|
-
categoriesGrid:
|
|
2973
|
-
categoriesSoda:
|
|
2974
|
-
categoriesBakery:
|
|
2975
|
-
() => import("./Categoriesbakery-
|
|
2976
|
-
),
|
|
2977
|
-
categoriesWine:
|
|
2978
|
-
categoriesBaby:
|
|
2979
|
-
categoriesDiet:
|
|
2980
|
-
categoriesHygiene:
|
|
2981
|
-
() => import("./Categorieshygiene-
|
|
2982
|
-
),
|
|
2983
|
-
categoriesCleaning:
|
|
2984
|
-
() => import("./Categoriescleaning-
|
|
2985
|
-
),
|
|
2986
|
-
categoriesPets:
|
|
2987
|
-
categoriesFreezer:
|
|
2988
|
-
() => import("./Categoriesfreezer-
|
|
2989
|
-
),
|
|
2990
|
-
categoriesBbq:
|
|
2991
|
-
categoriesMealbox:
|
|
2992
|
-
() => import("./Categoriesmealbox-
|
|
2993
|
-
),
|
|
2994
|
-
categoriesBrik:
|
|
2995
|
-
categoriesGranen:
|
|
2996
|
-
() => import("./Categoriesgranen-
|
|
2997
|
-
),
|
|
2998
|
-
categoriesConserve:
|
|
2999
|
-
() => import("./Categoriesconserve-
|
|
3000
|
-
),
|
|
3001
|
-
categoriesHome:
|
|
3002
|
-
categoriesEaster:
|
|
3003
|
-
() => import("./Categorieseaster-
|
|
3004
|
-
),
|
|
3005
|
-
categoriesOnlinePromo:
|
|
3006
|
-
() => import("./Categoriesonlinepromo-
|
|
3007
|
-
),
|
|
3008
|
-
categoriesSportFood:
|
|
3009
|
-
() => import("./Categoriessportfood-
|
|
3010
|
-
),
|
|
3011
|
-
categoriesClothing:
|
|
3012
|
-
() => import("./Categoriesclothing-
|
|
3013
|
-
),
|
|
3014
|
-
categoriesEnergy:
|
|
3015
|
-
() => import("./Categoriesenergy-
|
|
3016
|
-
),
|
|
3017
|
-
categoriesDeskAndTravel:
|
|
3018
|
-
() => import("./Categoriesdeskandtravel-
|
|
3019
|
-
),
|
|
3020
|
-
categoriesCigarette:
|
|
3021
|
-
() => import("./Categoriescigarette-
|
|
3022
|
-
),
|
|
3023
|
-
categoriesFood:
|
|
3024
|
-
categoriesChild:
|
|
3025
|
-
categoriesPuzzle:
|
|
3026
|
-
() => import("./Categoriespuzzle-
|
|
3027
|
-
),
|
|
3028
|
-
categoriesToys:
|
|
3029
|
-
categoriesCar:
|
|
3030
|
-
categoriesPlaceholder:
|
|
3031
|
-
() => import("./Categoriesplaceholder-
|
|
3032
|
-
),
|
|
3033
|
-
categoriesFuel:
|
|
3034
|
-
categoriesCarAndBike:
|
|
3035
|
-
() => import("./Categoriescarandbike
|
|
3036
|
-
),
|
|
3037
|
-
categoriesToyAndHobby:
|
|
3038
|
-
() => import("./Categoriestoyandhobby-
|
|
3039
|
-
),
|
|
3040
|
-
categoriesMultimedia:
|
|
3041
|
-
() => import("./Categoriesmultimedia-
|
|
3042
|
-
),
|
|
3043
|
-
categoriesParty:
|
|
3044
|
-
toolsPay:
|
|
3045
|
-
toolsReceipt:
|
|
3046
|
-
toolsFuel:
|
|
3047
|
-
toolsStoreLocator:
|
|
3048
|
-
() => import("./Toolsstorelocator-
|
|
3049
|
-
),
|
|
3050
|
-
toolsStats:
|
|
3051
|
-
toolsShowXtraOld:
|
|
3052
|
-
() => import("./Toolsshowxtraold-
|
|
2951
|
+
categoriesMeat: r.lazy(() => import("./Categoriesmeat-MnYT-oF-.js")),
|
|
2952
|
+
categoriesFish: r.lazy(() => import("./Categoriesfish-BH_crDgN.js")),
|
|
2953
|
+
categoriesDairy: r.lazy(() => import("./Categoriesdairy-CTqL2sJb.js")),
|
|
2954
|
+
categoriesBreakfast: r.lazy(
|
|
2955
|
+
() => import("./Categoriesbreakfast-Dl3J81Wq.js")
|
|
2956
|
+
),
|
|
2957
|
+
categoriesSnacks: r.lazy(
|
|
2958
|
+
() => import("./Categoriessnacks-BgVfm4XZ.js")
|
|
2959
|
+
),
|
|
2960
|
+
categoriesCandy: r.lazy(() => import("./Categoriescandy-B9Hl2Y8Q.js")),
|
|
2961
|
+
categoriesNonFood: r.lazy(
|
|
2962
|
+
() => import("./Categoriesnonfood-Caery7h5.js")
|
|
2963
|
+
),
|
|
2964
|
+
categoriesDryFood: r.lazy(
|
|
2965
|
+
() => import("./Categoriesdryfood-C3HFUdB6.js")
|
|
2966
|
+
),
|
|
2967
|
+
categoriesTins: r.lazy(() => import("./Categoriestins-SQQ_bAMY.js")),
|
|
2968
|
+
categoriesGrid: r.lazy(() => import("./Categoriesgrid-4SL_ZCl3.js")),
|
|
2969
|
+
categoriesSoda: r.lazy(() => import("./Categoriessoda-BDKmW1FC.js")),
|
|
2970
|
+
categoriesBakery: r.lazy(
|
|
2971
|
+
() => import("./Categoriesbakery-BtvnuWq5.js")
|
|
2972
|
+
),
|
|
2973
|
+
categoriesWine: r.lazy(() => import("./Categorieswine-C3g0I95E.js")),
|
|
2974
|
+
categoriesBaby: r.lazy(() => import("./Categoriesbaby-zLV8UkNS.js")),
|
|
2975
|
+
categoriesDiet: r.lazy(() => import("./Categoriesdiet-DxyO8bcA.js")),
|
|
2976
|
+
categoriesHygiene: r.lazy(
|
|
2977
|
+
() => import("./Categorieshygiene-BiDjuHHG.js")
|
|
2978
|
+
),
|
|
2979
|
+
categoriesCleaning: r.lazy(
|
|
2980
|
+
() => import("./Categoriescleaning-mFlJOx18.js")
|
|
2981
|
+
),
|
|
2982
|
+
categoriesPets: r.lazy(() => import("./Categoriespets-BuKfsdK6.js")),
|
|
2983
|
+
categoriesFreezer: r.lazy(
|
|
2984
|
+
() => import("./Categoriesfreezer-CpiCEfyR.js")
|
|
2985
|
+
),
|
|
2986
|
+
categoriesBbq: r.lazy(() => import("./Categoriesbbq-CBOtiZ2p.js")),
|
|
2987
|
+
categoriesMealbox: r.lazy(
|
|
2988
|
+
() => import("./Categoriesmealbox-CdUSsl70.js")
|
|
2989
|
+
),
|
|
2990
|
+
categoriesBrik: r.lazy(() => import("./Categoriesbrik-YczPL7LO.js")),
|
|
2991
|
+
categoriesGranen: r.lazy(
|
|
2992
|
+
() => import("./Categoriesgranen-CFzk9xdG.js")
|
|
2993
|
+
),
|
|
2994
|
+
categoriesConserve: r.lazy(
|
|
2995
|
+
() => import("./Categoriesconserve-e9Oh3upX.js")
|
|
2996
|
+
),
|
|
2997
|
+
categoriesHome: r.lazy(() => import("./Categorieshome-DgORtmRv.js")),
|
|
2998
|
+
categoriesEaster: r.lazy(
|
|
2999
|
+
() => import("./Categorieseaster-H94UVblv.js")
|
|
3000
|
+
),
|
|
3001
|
+
categoriesOnlinePromo: r.lazy(
|
|
3002
|
+
() => import("./Categoriesonlinepromo-B-bOd6-N.js")
|
|
3003
|
+
),
|
|
3004
|
+
categoriesSportFood: r.lazy(
|
|
3005
|
+
() => import("./Categoriessportfood-B5IP5R4L.js")
|
|
3006
|
+
),
|
|
3007
|
+
categoriesClothing: r.lazy(
|
|
3008
|
+
() => import("./Categoriesclothing-DLQJSJsN.js")
|
|
3009
|
+
),
|
|
3010
|
+
categoriesEnergy: r.lazy(
|
|
3011
|
+
() => import("./Categoriesenergy-B90ZmPhx.js")
|
|
3012
|
+
),
|
|
3013
|
+
categoriesDeskAndTravel: r.lazy(
|
|
3014
|
+
() => import("./Categoriesdeskandtravel-CpaWwhg3.js")
|
|
3015
|
+
),
|
|
3016
|
+
categoriesCigarette: r.lazy(
|
|
3017
|
+
() => import("./Categoriescigarette-Cfk5fMMU.js")
|
|
3018
|
+
),
|
|
3019
|
+
categoriesFood: r.lazy(() => import("./Categoriesfood-GFrH8FR6.js")),
|
|
3020
|
+
categoriesChild: r.lazy(() => import("./Categorieschild-AelqMsFx.js")),
|
|
3021
|
+
categoriesPuzzle: r.lazy(
|
|
3022
|
+
() => import("./Categoriespuzzle-Bex7QRuv.js")
|
|
3023
|
+
),
|
|
3024
|
+
categoriesToys: r.lazy(() => import("./Categoriestoys-D03TNBni.js")),
|
|
3025
|
+
categoriesCar: r.lazy(() => import("./Categoriescar-CdLHTYAz.js")),
|
|
3026
|
+
categoriesPlaceholder: r.lazy(
|
|
3027
|
+
() => import("./Categoriesplaceholder-BoN0C7uF.js")
|
|
3028
|
+
),
|
|
3029
|
+
categoriesFuel: r.lazy(() => import("./Categoriesfuel-DgDagTsP.js")),
|
|
3030
|
+
categoriesCarAndBike: r.lazy(
|
|
3031
|
+
() => import("./Categoriescarandbike-bV2yUhiY.js")
|
|
3032
|
+
),
|
|
3033
|
+
categoriesToyAndHobby: r.lazy(
|
|
3034
|
+
() => import("./Categoriestoyandhobby-D1wB-Pd5.js")
|
|
3035
|
+
),
|
|
3036
|
+
categoriesMultimedia: r.lazy(
|
|
3037
|
+
() => import("./Categoriesmultimedia-CdfwJGrj.js")
|
|
3038
|
+
),
|
|
3039
|
+
categoriesParty: r.lazy(() => import("./Categoriesparty-lPH7BbPT.js")),
|
|
3040
|
+
toolsPay: r.lazy(() => import("./Toolspay-BTIX12zI.js")),
|
|
3041
|
+
toolsReceipt: r.lazy(() => import("./Toolsreceipt-BR3EA8Fz.js")),
|
|
3042
|
+
toolsFuel: r.lazy(() => import("./Toolsfuel-CNpeIRkD.js")),
|
|
3043
|
+
toolsStoreLocator: r.lazy(
|
|
3044
|
+
() => import("./Toolsstorelocator-IhMQhuLF.js")
|
|
3045
|
+
),
|
|
3046
|
+
toolsStats: r.lazy(() => import("./Toolsstats-TBDj5H2P.js")),
|
|
3047
|
+
toolsShowXtraOld: r.lazy(
|
|
3048
|
+
() => import("./Toolsshowxtraold-ClA-JWTH.js")
|
|
3053
3049
|
),
|
|
3054
|
-
toolsShowXtraNew:
|
|
3055
|
-
() => import("./Toolsshowxtranew-
|
|
3050
|
+
toolsShowXtraNew: r.lazy(
|
|
3051
|
+
() => import("./Toolsshowxtranew-DJr0dWb1.js")
|
|
3056
3052
|
),
|
|
3057
|
-
toolsScan2:
|
|
3058
|
-
toolsRecipes2:
|
|
3059
|
-
toolsWarranty:
|
|
3060
|
-
toolsCoupons:
|
|
3061
|
-
toolsFavoriteInactive:
|
|
3062
|
-
() => import("./Toolsfavoriteinactive-
|
|
3053
|
+
toolsScan2: r.lazy(() => import("./Toolsscan2-DuQsZ8dZ.js")),
|
|
3054
|
+
toolsRecipes2: r.lazy(() => import("./Toolsrecipes2-Q86b_ALW.js")),
|
|
3055
|
+
toolsWarranty: r.lazy(() => import("./Toolswarranty-3eHEtBaM.js")),
|
|
3056
|
+
toolsCoupons: r.lazy(() => import("./Toolscoupons-L9V_M2No.js")),
|
|
3057
|
+
toolsFavoriteInactive: r.lazy(
|
|
3058
|
+
() => import("./Toolsfavoriteinactive-C6SFe1mS.js")
|
|
3063
3059
|
),
|
|
3064
|
-
toolsFavoriteActive:
|
|
3065
|
-
() => import("./Toolsfavoriteactive-
|
|
3060
|
+
toolsFavoriteActive: r.lazy(
|
|
3061
|
+
() => import("./Toolsfavoriteactive-C0mQg0nk.js")
|
|
3066
3062
|
),
|
|
3067
|
-
toolsAssortment:
|
|
3068
|
-
toolsPromo:
|
|
3069
|
-
fuelCng:
|
|
3070
|
-
fuelE5:
|
|
3071
|
-
fuelAdblue:
|
|
3072
|
-
fuelB7:
|
|
3073
|
-
fuelH2:
|
|
3074
|
-
fuelE10:
|
|
3075
|
-
fuelFreeTireInflation:
|
|
3076
|
-
() => import("./Fuelfreetireinflation-
|
|
3063
|
+
toolsAssortment: r.lazy(() => import("./Toolsassortment-xWqHEALg.js")),
|
|
3064
|
+
toolsPromo: r.lazy(() => import("./Toolspromo-CnYFWt7R.js")),
|
|
3065
|
+
fuelCng: r.lazy(() => import("./Fuelcng-l2THW70a.js")),
|
|
3066
|
+
fuelE5: r.lazy(() => import("./Fuele5-BiaBtRgK.js")),
|
|
3067
|
+
fuelAdblue: r.lazy(() => import("./Fueladblue-ChqSddse.js")),
|
|
3068
|
+
fuelB7: r.lazy(() => import("./Fuelb7-3IPpIx6U.js")),
|
|
3069
|
+
fuelH2: r.lazy(() => import("./Fuelh2-CrOxMeIM.js")),
|
|
3070
|
+
fuelE10: r.lazy(() => import("./Fuele10-XuiOitOL.js")),
|
|
3071
|
+
fuelFreeTireInflation: r.lazy(
|
|
3072
|
+
() => import("./Fuelfreetireinflation-DmUEBmF6.js")
|
|
3077
3073
|
),
|
|
3078
|
-
functionalClose:
|
|
3079
|
-
functionalBack:
|
|
3080
|
-
functionalSearch:
|
|
3081
|
-
() => import("./Functionalsearch-
|
|
3074
|
+
functionalClose: r.lazy(() => import("./Functionalclose-BKUMSRuU.js")),
|
|
3075
|
+
functionalBack: r.lazy(() => import("./Functionalback-pl0V3Kby.js")),
|
|
3076
|
+
functionalSearch: r.lazy(
|
|
3077
|
+
() => import("./Functionalsearch-CxMyPsNE.js")
|
|
3082
3078
|
),
|
|
3083
|
-
functionalEdit:
|
|
3084
|
-
functionalShare:
|
|
3085
|
-
functionalLocation:
|
|
3086
|
-
() => import("./Functionallocation-
|
|
3079
|
+
functionalEdit: r.lazy(() => import("./Functionaledit-BYiFmpwL.js")),
|
|
3080
|
+
functionalShare: r.lazy(() => import("./Functionalshare-BaSede1c.js")),
|
|
3081
|
+
functionalLocation: r.lazy(
|
|
3082
|
+
() => import("./Functionallocation-BEO7IAQp.js")
|
|
3087
3083
|
),
|
|
3088
|
-
functionalTrash:
|
|
3089
|
-
functionalCamera:
|
|
3090
|
-
() => import("./Functionalcamera-
|
|
3084
|
+
functionalTrash: r.lazy(() => import("./Functionaltrash-CojPY_AR.js")),
|
|
3085
|
+
functionalCamera: r.lazy(
|
|
3086
|
+
() => import("./Functionalcamera-SLzIKiv4.js")
|
|
3091
3087
|
),
|
|
3092
|
-
functionalPhone:
|
|
3093
|
-
functionalPushNotifications:
|
|
3094
|
-
() => import("./Functionalpushnotifications-
|
|
3088
|
+
functionalPhone: r.lazy(() => import("./Functionalphone-B8vKtJxT.js")),
|
|
3089
|
+
functionalPushNotifications: r.lazy(
|
|
3090
|
+
() => import("./Functionalpushnotifications-D8pF_ZEC.js")
|
|
3095
3091
|
),
|
|
3096
|
-
functionalMail:
|
|
3097
|
-
functionalGift:
|
|
3098
|
-
functionalPresent:
|
|
3099
|
-
() => import("./Functionalpresent-
|
|
3092
|
+
functionalMail: r.lazy(() => import("./Functionalmail-DosjUg7Y.js")),
|
|
3093
|
+
functionalGift: r.lazy(() => import("./Functionalgift-qlRuU3JH.js")),
|
|
3094
|
+
functionalPresent: r.lazy(
|
|
3095
|
+
() => import("./Functionalpresent-hNlK0QJ-.js")
|
|
3100
3096
|
),
|
|
3101
|
-
functionalLoading:
|
|
3102
|
-
() => import("./Functionalloading-
|
|
3097
|
+
functionalLoading: r.lazy(
|
|
3098
|
+
() => import("./Functionalloading-BgGaayIk.js")
|
|
3103
3099
|
),
|
|
3104
|
-
functionalChevronRight:
|
|
3105
|
-
() => import("./Functionalchevronright-
|
|
3100
|
+
functionalChevronRight: r.lazy(
|
|
3101
|
+
() => import("./Functionalchevronright-BelpgxQR.js")
|
|
3106
3102
|
),
|
|
3107
|
-
functionalCheck:
|
|
3108
|
-
functionalChevronDown:
|
|
3109
|
-
() => import("./Functionalchevrondown-
|
|
3103
|
+
functionalCheck: r.lazy(() => import("./Functionalcheck-CTsaSo12.js")),
|
|
3104
|
+
functionalChevronDown: r.lazy(
|
|
3105
|
+
() => import("./Functionalchevrondown-B3QLvQH7.js")
|
|
3110
3106
|
),
|
|
3111
|
-
functionalChevronUp:
|
|
3112
|
-
() => import("./Functionalchevronup-
|
|
3107
|
+
functionalChevronUp: r.lazy(
|
|
3108
|
+
() => import("./Functionalchevronup-CqSxvkmf.js")
|
|
3113
3109
|
),
|
|
3114
|
-
functionalPlus:
|
|
3115
|
-
functionalReset:
|
|
3116
|
-
functionalDownload:
|
|
3117
|
-
() => import("./Functionaldownload-
|
|
3110
|
+
functionalPlus: r.lazy(() => import("./Functionalplus-xF4rj5tZ.js")),
|
|
3111
|
+
functionalReset: r.lazy(() => import("./Functionalreset-LieSrLvz.js")),
|
|
3112
|
+
functionalDownload: r.lazy(
|
|
3113
|
+
() => import("./Functionaldownload-C9a_ajXf.js")
|
|
3118
3114
|
),
|
|
3119
|
-
functionalExport:
|
|
3120
|
-
() => import("./Functionalexport-
|
|
3115
|
+
functionalExport: r.lazy(
|
|
3116
|
+
() => import("./Functionalexport-DUQwwuwQ.js")
|
|
3121
3117
|
),
|
|
3122
|
-
functionalCustomerService:
|
|
3123
|
-
() => import("./Functionalcustomerservice-
|
|
3118
|
+
functionalCustomerService: r.lazy(
|
|
3119
|
+
() => import("./Functionalcustomerservice-Bx8Njg04.js")
|
|
3124
3120
|
),
|
|
3125
|
-
functionalTruck:
|
|
3126
|
-
functionalBox:
|
|
3127
|
-
functionalEllipsis:
|
|
3128
|
-
() => import("./Functionalellipsis-
|
|
3121
|
+
functionalTruck: r.lazy(() => import("./Functionaltruck-c609Vcql.js")),
|
|
3122
|
+
functionalBox: r.lazy(() => import("./Functionalbox-P-ghum33.js")),
|
|
3123
|
+
functionalEllipsis: r.lazy(
|
|
3124
|
+
() => import("./Functionalellipsis-rU1EVOZc.js")
|
|
3129
3125
|
),
|
|
3130
|
-
functionalLocationHome:
|
|
3131
|
-
() => import("./Functionallocationhome-
|
|
3126
|
+
functionalLocationHome: r.lazy(
|
|
3127
|
+
() => import("./Functionallocationhome-QLhGNoLv.js")
|
|
3132
3128
|
),
|
|
3133
|
-
functionalLocationPickup:
|
|
3134
|
-
() => import("./Functionallocationpickup-
|
|
3129
|
+
functionalLocationPickup: r.lazy(
|
|
3130
|
+
() => import("./Functionallocationpickup-DZFse_eh.js")
|
|
3135
3131
|
),
|
|
3136
|
-
functionalAccount:
|
|
3137
|
-
() => import("./Functionalaccount-
|
|
3132
|
+
functionalAccount: r.lazy(
|
|
3133
|
+
() => import("./Functionalaccount-Bnt6MZ3W.js")
|
|
3138
3134
|
),
|
|
3139
|
-
functionalPrivacy:
|
|
3140
|
-
() => import("./Functionalprivacy-
|
|
3135
|
+
functionalPrivacy: r.lazy(
|
|
3136
|
+
() => import("./Functionalprivacy-zotrCI5M.js")
|
|
3141
3137
|
),
|
|
3142
|
-
functionalSettings:
|
|
3143
|
-
() => import("./Functionalsettings-
|
|
3138
|
+
functionalSettings: r.lazy(
|
|
3139
|
+
() => import("./Functionalsettings-DEbullli.js")
|
|
3144
3140
|
),
|
|
3145
|
-
functionalUserInfo:
|
|
3146
|
-
() => import("./Functionaluserinfo-
|
|
3141
|
+
functionalUserInfo: r.lazy(
|
|
3142
|
+
() => import("./Functionaluserinfo-C8i7GKmE.js")
|
|
3147
3143
|
),
|
|
3148
|
-
functionalPinOutlines:
|
|
3149
|
-
() => import("./Functionalpinoutlines-
|
|
3144
|
+
functionalPinOutlines: r.lazy(
|
|
3145
|
+
() => import("./Functionalpinoutlines-D9eN3Okw.js")
|
|
3150
3146
|
),
|
|
3151
|
-
functionalCalendar:
|
|
3152
|
-
() => import("./Functionalcalendar-
|
|
3147
|
+
functionalCalendar: r.lazy(
|
|
3148
|
+
() => import("./Functionalcalendar-CbO9iWkB.js")
|
|
3153
3149
|
),
|
|
3154
|
-
functionalMinus:
|
|
3155
|
-
functionalLifestyle:
|
|
3156
|
-
() => import("./Functionallifestyle-
|
|
3150
|
+
functionalMinus: r.lazy(() => import("./Functionalminus-DAjUNbXV.js")),
|
|
3151
|
+
functionalLifestyle: r.lazy(
|
|
3152
|
+
() => import("./Functionallifestyle-C8vEOp3s.js")
|
|
3157
3153
|
),
|
|
3158
|
-
functionalSms:
|
|
3159
|
-
functionalSwitch:
|
|
3160
|
-
() => import("./Functionalswitch-
|
|
3154
|
+
functionalSms: r.lazy(() => import("./Functionalsms-BT7bYQ7Y.js")),
|
|
3155
|
+
functionalSwitch: r.lazy(
|
|
3156
|
+
() => import("./Functionalswitch-Cj7NRzBZ.js")
|
|
3161
3157
|
),
|
|
3162
|
-
functionalSorting:
|
|
3163
|
-
() => import("./Functionalsorting-
|
|
3158
|
+
functionalSorting: r.lazy(
|
|
3159
|
+
() => import("./Functionalsorting-C9GRh7zT.js")
|
|
3164
3160
|
),
|
|
3165
|
-
functionalWarningCircle:
|
|
3166
|
-
() => import("./Functionalwarningcircle-
|
|
3161
|
+
functionalWarningCircle: r.lazy(
|
|
3162
|
+
() => import("./Functionalwarningcircle-C1i2MU6-.js")
|
|
3167
3163
|
),
|
|
3168
|
-
functionalQuestionCircle:
|
|
3169
|
-
() => import("./Functionalquestioncircle-
|
|
3164
|
+
functionalQuestionCircle: r.lazy(
|
|
3165
|
+
() => import("./Functionalquestioncircle-2PDi1sbY.js")
|
|
3170
3166
|
),
|
|
3171
|
-
functionalErrorCircle:
|
|
3172
|
-
() => import("./Functionalerrorcircle-
|
|
3167
|
+
functionalErrorCircle: r.lazy(
|
|
3168
|
+
() => import("./Functionalerrorcircle-CmQvSLoF.js")
|
|
3173
3169
|
),
|
|
3174
|
-
functionalSuccessCircle:
|
|
3175
|
-
() => import("./Functionalsuccesscircle-
|
|
3170
|
+
functionalSuccessCircle: r.lazy(
|
|
3171
|
+
() => import("./Functionalsuccesscircle-CvnJtrC1.js")
|
|
3176
3172
|
),
|
|
3177
|
-
functionalMessage:
|
|
3178
|
-
() => import("./Functionalmessage-
|
|
3173
|
+
functionalMessage: r.lazy(
|
|
3174
|
+
() => import("./Functionalmessage-B3lG5V8T.js")
|
|
3179
3175
|
),
|
|
3180
|
-
functionalExternalLink:
|
|
3181
|
-
() => import("./Functionalexternallink-
|
|
3176
|
+
functionalExternalLink: r.lazy(
|
|
3177
|
+
() => import("./Functionalexternallink-Dij3wfx3.js")
|
|
3182
3178
|
),
|
|
3183
|
-
functionalAddToList:
|
|
3184
|
-
() => import("./Functionaladdtolist-
|
|
3179
|
+
functionalAddToList: r.lazy(
|
|
3180
|
+
() => import("./Functionaladdtolist-BlNEspkM.js")
|
|
3185
3181
|
),
|
|
3186
|
-
functionalShoppingcart:
|
|
3187
|
-
() => import("./Functionalshoppingcart-
|
|
3182
|
+
functionalShoppingcart: r.lazy(
|
|
3183
|
+
() => import("./Functionalshoppingcart-BjYAfE_n.js")
|
|
3188
3184
|
),
|
|
3189
|
-
functionalFilter:
|
|
3190
|
-
() => import("./Functionalfilter-
|
|
3185
|
+
functionalFilter: r.lazy(
|
|
3186
|
+
() => import("./Functionalfilter-C-Fafr2v.js")
|
|
3191
3187
|
),
|
|
3192
|
-
functionalLocate:
|
|
3193
|
-
() => import("./Functionallocate-
|
|
3188
|
+
functionalLocate: r.lazy(
|
|
3189
|
+
() => import("./Functionallocate-CyDygvGn.js")
|
|
3194
3190
|
),
|
|
3195
|
-
functionalBarcode:
|
|
3196
|
-
() => import("./Functionalbarcode-
|
|
3191
|
+
functionalBarcode: r.lazy(
|
|
3192
|
+
() => import("./Functionalbarcode-DVJVYtfB.js")
|
|
3197
3193
|
),
|
|
3198
|
-
functionalClock:
|
|
3199
|
-
functionalHistory:
|
|
3200
|
-
() => import("./Functionalhistory-
|
|
3194
|
+
functionalClock: r.lazy(() => import("./Functionalclock-Ca2aahAP.js")),
|
|
3195
|
+
functionalHistory: r.lazy(
|
|
3196
|
+
() => import("./Functionalhistory-Bv4epxeh.js")
|
|
3201
3197
|
),
|
|
3202
|
-
functionalShops:
|
|
3203
|
-
functionalAddUser:
|
|
3204
|
-
() => import("./Functionaladduser-
|
|
3198
|
+
functionalShops: r.lazy(() => import("./Functionalshops-Blr-QFKj.js")),
|
|
3199
|
+
functionalAddUser: r.lazy(
|
|
3200
|
+
() => import("./Functionaladduser-CWXkXUog.js")
|
|
3205
3201
|
),
|
|
3206
|
-
functionalOther:
|
|
3207
|
-
functionalInAppNotifications:
|
|
3208
|
-
() => import("./Functionalinappnotifications-
|
|
3202
|
+
functionalOther: r.lazy(() => import("./Functionalother-Db-O1duA.js")),
|
|
3203
|
+
functionalInAppNotifications: r.lazy(
|
|
3204
|
+
() => import("./Functionalinappnotifications-CQnv2KIU.js")
|
|
3209
3205
|
),
|
|
3210
|
-
functionalExit:
|
|
3211
|
-
functionalShared:
|
|
3212
|
-
() => import("./Functionalshared-
|
|
3206
|
+
functionalExit: r.lazy(() => import("./Functionalexit-nIomTzRH.js")),
|
|
3207
|
+
functionalShared: r.lazy(
|
|
3208
|
+
() => import("./Functionalshared-CA39SW4R.js")
|
|
3213
3209
|
),
|
|
3214
|
-
functionalThumbsup:
|
|
3215
|
-
() => import("./Functionalthumbsup-
|
|
3210
|
+
functionalThumbsup: r.lazy(
|
|
3211
|
+
() => import("./Functionalthumbsup-D6-dxP2g.js")
|
|
3216
3212
|
),
|
|
3217
|
-
functionalDiscount:
|
|
3218
|
-
() => import("./Functionaldiscount-
|
|
3213
|
+
functionalDiscount: r.lazy(
|
|
3214
|
+
() => import("./Functionaldiscount-oAG4VzGV.js")
|
|
3219
3215
|
),
|
|
3220
|
-
functionalPercentage:
|
|
3221
|
-
() => import("./Functionalpercentage-
|
|
3216
|
+
functionalPercentage: r.lazy(
|
|
3217
|
+
() => import("./Functionalpercentage-O6rN3h02.js")
|
|
3222
3218
|
),
|
|
3223
|
-
functionalList:
|
|
3224
|
-
functionalMapLocation:
|
|
3225
|
-
() => import("./Functionalmaplocation-
|
|
3219
|
+
functionalList: r.lazy(() => import("./Functionallist-C4ahBTwf.js")),
|
|
3220
|
+
functionalMapLocation: r.lazy(
|
|
3221
|
+
() => import("./Functionalmaplocation-ByzgczPG.js")
|
|
3226
3222
|
),
|
|
3227
|
-
functionalNoConnection:
|
|
3228
|
-
() => import("./Functionalnoconnection-
|
|
3223
|
+
functionalNoConnection: r.lazy(
|
|
3224
|
+
() => import("./Functionalnoconnection-ccOk8_bI.js")
|
|
3229
3225
|
),
|
|
3230
|
-
functionalSwap:
|
|
3231
|
-
functionalPiece:
|
|
3232
|
-
functionalWeight:
|
|
3233
|
-
() => import("./Functionalweight-
|
|
3226
|
+
functionalSwap: r.lazy(() => import("./Functionalswap-C1b8rSWs.js")),
|
|
3227
|
+
functionalPiece: r.lazy(() => import("./Functionalpiece-THXTuVKJ.js")),
|
|
3228
|
+
functionalWeight: r.lazy(
|
|
3229
|
+
() => import("./Functionalweight-DpTzOcNo.js")
|
|
3234
3230
|
),
|
|
3235
|
-
functionalPack:
|
|
3236
|
-
functionalCommunications:
|
|
3237
|
-
() => import("./Functionalcommunications-
|
|
3231
|
+
functionalPack: r.lazy(() => import("./Functionalpack-DabqpolM.js")),
|
|
3232
|
+
functionalCommunications: r.lazy(
|
|
3233
|
+
() => import("./Functionalcommunications-jAeYBymW.js")
|
|
3238
3234
|
),
|
|
3239
|
-
functionalDeliveryAddresses:
|
|
3240
|
-
() => import("./Functionaldeliveryaddresses-
|
|
3235
|
+
functionalDeliveryAddresses: r.lazy(
|
|
3236
|
+
() => import("./Functionaldeliveryaddresses-DclG3tVD.js")
|
|
3241
3237
|
),
|
|
3242
|
-
"functional18+":
|
|
3243
|
-
() => import("./Functional18plus-
|
|
3238
|
+
"functional18+": r.lazy(
|
|
3239
|
+
() => import("./Functional18plus-Ddg8XOc-.js")
|
|
3244
3240
|
),
|
|
3245
|
-
functionalReadtime:
|
|
3246
|
-
() => import("./Functionalreadtime-
|
|
3241
|
+
functionalReadtime: r.lazy(
|
|
3242
|
+
() => import("./Functionalreadtime-BFDKvQ3c.js")
|
|
3247
3243
|
),
|
|
3248
|
-
functionalCopy:
|
|
3249
|
-
functionalMessageField:
|
|
3250
|
-
() => import("./Functionalmessagefield-
|
|
3244
|
+
functionalCopy: r.lazy(() => import("./Functionalcopy-CvbASnR4.js")),
|
|
3245
|
+
functionalMessageField: r.lazy(
|
|
3246
|
+
() => import("./Functionalmessagefield-wyUwQjlA.js")
|
|
3251
3247
|
),
|
|
3252
|
-
functionalNext:
|
|
3253
|
-
functionalSave:
|
|
3254
|
-
functionalLogin:
|
|
3255
|
-
functionalLogout:
|
|
3256
|
-
() => import("./Functionallogout-
|
|
3248
|
+
functionalNext: r.lazy(() => import("./Functionalnext-Ex_XasPq.js")),
|
|
3249
|
+
functionalSave: r.lazy(() => import("./Functionalsave-BvYJdq6M.js")),
|
|
3250
|
+
functionalLogin: r.lazy(() => import("./Functionallogin-mkMT1rHL.js")),
|
|
3251
|
+
functionalLogout: r.lazy(
|
|
3252
|
+
() => import("./Functionallogout-CJEOzHOZ.js")
|
|
3257
3253
|
),
|
|
3258
|
-
functionalWebsite:
|
|
3259
|
-
() => import("./Functionalwebsite-
|
|
3254
|
+
functionalWebsite: r.lazy(
|
|
3255
|
+
() => import("./Functionalwebsite-BlxPVfWP.js")
|
|
3260
3256
|
),
|
|
3261
|
-
functionalMenu:
|
|
3262
|
-
functionalRegister:
|
|
3263
|
-
() => import("./Functionalregister-
|
|
3257
|
+
functionalMenu: r.lazy(() => import("./Functionalmenu-CgLBEUY-.js")),
|
|
3258
|
+
functionalRegister: r.lazy(
|
|
3259
|
+
() => import("./Functionalregister-hO7RUkdA.js")
|
|
3264
3260
|
),
|
|
3265
|
-
functionalNews:
|
|
3266
|
-
functionalTimer:
|
|
3267
|
-
functionalEyeShow:
|
|
3268
|
-
() => import("./Functionaleyeshow-
|
|
3261
|
+
functionalNews: r.lazy(() => import("./Functionalnews-B9eVhJW3.js")),
|
|
3262
|
+
functionalTimer: r.lazy(() => import("./Functionaltimer-BHdD7mIx.js")),
|
|
3263
|
+
functionalEyeShow: r.lazy(
|
|
3264
|
+
() => import("./Functionaleyeshow-VZvRHUCc.js")
|
|
3269
3265
|
),
|
|
3270
|
-
functionalMobilePay:
|
|
3271
|
-
() => import("./Functionalmobilepay-
|
|
3266
|
+
functionalMobilePay: r.lazy(
|
|
3267
|
+
() => import("./Functionalmobilepay-c9RlQquM.js")
|
|
3272
3268
|
),
|
|
3273
|
-
functionalConnectionCable:
|
|
3274
|
-
() => import("./Functionalconnectioncable-
|
|
3269
|
+
functionalConnectionCable: r.lazy(
|
|
3270
|
+
() => import("./Functionalconnectioncable-D8WJV_SD.js")
|
|
3275
3271
|
),
|
|
3276
|
-
functionalDryCleaning:
|
|
3277
|
-
() => import("./Functionaldrycleaning-
|
|
3272
|
+
functionalDryCleaning: r.lazy(
|
|
3273
|
+
() => import("./Functionaldrycleaning-BVALxFXl.js")
|
|
3278
3274
|
),
|
|
3279
|
-
functionalKiosk:
|
|
3280
|
-
functionalConnectedDevice:
|
|
3281
|
-
() => import("./Functionalconnecteddevice-
|
|
3275
|
+
functionalKiosk: r.lazy(() => import("./Functionalkiosk-CXoriPgN.js")),
|
|
3276
|
+
functionalConnectedDevice: r.lazy(
|
|
3277
|
+
() => import("./Functionalconnecteddevice-DkNljFxK.js")
|
|
3282
3278
|
),
|
|
3283
|
-
functionalCookies:
|
|
3284
|
-
() => import("./Functionalcookies-
|
|
3279
|
+
functionalCookies: r.lazy(
|
|
3280
|
+
() => import("./Functionalcookies-D_WTTmgL.js")
|
|
3285
3281
|
),
|
|
3286
|
-
functionalViewFile:
|
|
3287
|
-
() => import("./Functionalviewfile-
|
|
3282
|
+
functionalViewFile: r.lazy(
|
|
3283
|
+
() => import("./Functionalviewfile-CCzlhZ-j.js")
|
|
3288
3284
|
),
|
|
3289
|
-
functionalLastAdded:
|
|
3290
|
-
() => import("./Functionallastadded-
|
|
3285
|
+
functionalLastAdded: r.lazy(
|
|
3286
|
+
() => import("./Functionallastadded-DUTNwqzq.js")
|
|
3291
3287
|
),
|
|
3292
|
-
functionalFirstAdded:
|
|
3293
|
-
() => import("./Functionalfirstadded-
|
|
3288
|
+
functionalFirstAdded: r.lazy(
|
|
3289
|
+
() => import("./Functionalfirstadded-CTo_v97-.js")
|
|
3294
3290
|
),
|
|
3295
|
-
functionalStoreLayout:
|
|
3296
|
-
() => import("./Functionalstorelayout-
|
|
3291
|
+
functionalStoreLayout: r.lazy(
|
|
3292
|
+
() => import("./Functionalstorelayout-hmnfPr-B.js")
|
|
3297
3293
|
),
|
|
3298
|
-
functionalBlock:
|
|
3299
|
-
functionalChecklist:
|
|
3300
|
-
() => import("./Functionalchecklist-
|
|
3294
|
+
functionalBlock: r.lazy(() => import("./Functionalblock-CemRET4z.js")),
|
|
3295
|
+
functionalChecklist: r.lazy(
|
|
3296
|
+
() => import("./Functionalchecklist-CDignahR.js")
|
|
3301
3297
|
),
|
|
3302
|
-
functionalCartCheckout:
|
|
3303
|
-
() => import("./Functionalcartcheckout-
|
|
3298
|
+
functionalCartCheckout: r.lazy(
|
|
3299
|
+
() => import("./Functionalcartcheckout-DLRylbbf.js")
|
|
3304
3300
|
),
|
|
3305
|
-
functionalCartEdit:
|
|
3306
|
-
() => import("./Functionalcartedit-
|
|
3301
|
+
functionalCartEdit: r.lazy(
|
|
3302
|
+
() => import("./Functionalcartedit-BZsOoHDj.js")
|
|
3307
3303
|
),
|
|
3308
|
-
functionalEyeHidden:
|
|
3309
|
-
() => import("./Functionaleyehidden-
|
|
3304
|
+
functionalEyeHidden: r.lazy(
|
|
3305
|
+
() => import("./Functionaleyehidden-CU3Vb1Dq.js")
|
|
3310
3306
|
),
|
|
3311
|
-
functionalWarningCircleFilled:
|
|
3312
|
-
() => import("./Functionalwarningcirclefilled-
|
|
3307
|
+
functionalWarningCircleFilled: r.lazy(
|
|
3308
|
+
() => import("./Functionalwarningcirclefilled-B3K_ckR6.js")
|
|
3313
3309
|
),
|
|
3314
|
-
functionalQuestionCircleFilled:
|
|
3315
|
-
() => import("./Functionalquestioncirclefilled-
|
|
3310
|
+
functionalQuestionCircleFilled: r.lazy(
|
|
3311
|
+
() => import("./Functionalquestioncirclefilled-D3WuYQhd.js")
|
|
3316
3312
|
),
|
|
3317
|
-
functionalErrorCircleFilled:
|
|
3318
|
-
() => import("./Functionalerrorcirclefilled-
|
|
3313
|
+
functionalErrorCircleFilled: r.lazy(
|
|
3314
|
+
() => import("./Functionalerrorcirclefilled-d0USRGtr.js")
|
|
3319
3315
|
),
|
|
3320
|
-
functionalSuccessCircleFilled:
|
|
3321
|
-
() => import("./Functionalsuccesscirclefilled-
|
|
3316
|
+
functionalSuccessCircleFilled: r.lazy(
|
|
3317
|
+
() => import("./Functionalsuccesscirclefilled-CN27HmQp.js")
|
|
3322
3318
|
),
|
|
3323
|
-
functionalPlusCircle:
|
|
3324
|
-
() => import("./Functionalpluscircle-
|
|
3319
|
+
functionalPlusCircle: r.lazy(
|
|
3320
|
+
() => import("./Functionalpluscircle-Bu5ECDIH.js")
|
|
3325
3321
|
),
|
|
3326
|
-
functionalSpinner:
|
|
3327
|
-
() => import("./Functionalspinner-
|
|
3322
|
+
functionalSpinner: r.lazy(
|
|
3323
|
+
() => import("./Functionalspinner-DuD-_Mnk.js")
|
|
3328
3324
|
),
|
|
3329
|
-
functionalEcoEarth:
|
|
3330
|
-
() => import("./Functionalecoearth-
|
|
3325
|
+
functionalEcoEarth: r.lazy(
|
|
3326
|
+
() => import("./Functionalecoearth-B9LJ8J_5.js")
|
|
3331
3327
|
),
|
|
3332
|
-
functionalAlphaBeta:
|
|
3333
|
-
() => import("./Functionalalphabeta-
|
|
3328
|
+
functionalAlphaBeta: r.lazy(
|
|
3329
|
+
() => import("./Functionalalphabeta-CulAnUDo.js")
|
|
3334
3330
|
),
|
|
3335
|
-
functionalEuro:
|
|
3336
|
-
functionalNumber:
|
|
3337
|
-
() => import("./Functionalnumber-
|
|
3331
|
+
functionalEuro: r.lazy(() => import("./Functionaleuro-D7wFD_IF.js")),
|
|
3332
|
+
functionalNumber: r.lazy(
|
|
3333
|
+
() => import("./Functionalnumber-aZYnBBcv.js")
|
|
3338
3334
|
),
|
|
3339
|
-
functionalIdea:
|
|
3340
|
-
functionalMultifactorAuthenticator:
|
|
3341
|
-
() => import("./Functionalmultifactorauthenticator-
|
|
3335
|
+
functionalIdea: r.lazy(() => import("./Functionalidea-BwbY50VB.js")),
|
|
3336
|
+
functionalMultifactorAuthenticator: r.lazy(
|
|
3337
|
+
() => import("./Functionalmultifactorauthenticator-D6xenqja.js")
|
|
3342
3338
|
),
|
|
3343
|
-
functionalPassword:
|
|
3344
|
-
() => import("./Functionalpassword-
|
|
3339
|
+
functionalPassword: r.lazy(
|
|
3340
|
+
() => import("./Functionalpassword-D_qE10n9.js")
|
|
3345
3341
|
),
|
|
3346
|
-
functionalDiscountCode:
|
|
3347
|
-
() => import("./Functionaldiscountcode-
|
|
3342
|
+
functionalDiscountCode: r.lazy(
|
|
3343
|
+
() => import("./Functionaldiscountcode-BQwI1UEy.js")
|
|
3348
3344
|
)
|
|
3349
|
-
},
|
|
3345
|
+
}, Vr = ({
|
|
3350
3346
|
bouIconId: t,
|
|
3351
3347
|
...e
|
|
3352
3348
|
}) => {
|
|
3353
|
-
const s =
|
|
3354
|
-
return
|
|
3355
|
-
}, be = (t) => typeof t.icon == "string" && t.icon in
|
|
3349
|
+
const s = ie[t], i = Gr[s];
|
|
3350
|
+
return i ? /* @__PURE__ */ n.jsx(r.Suspense, { fallback: /* @__PURE__ */ n.jsx("div", { children: "..." }), children: /* @__PURE__ */ n.jsx(i, { width: "24", height: "24", ...e, fill: "none", ref: void 0 }) }) : null;
|
|
3351
|
+
}, be = (t) => typeof t.icon == "string" && t.icon in ie ? /* @__PURE__ */ n.jsx(Vr, { bouIconId: ie[t.icon] }) : t.icon, qr = ({
|
|
3356
3352
|
label: t,
|
|
3357
3353
|
className: e,
|
|
3358
3354
|
onClick: s,
|
|
3359
|
-
icon:
|
|
3355
|
+
icon: i
|
|
3360
3356
|
}) => /* @__PURE__ */ n.jsx(G.Item, { className: e, children: /* @__PURE__ */ n.jsxs("button", { onClick: s, children: [
|
|
3361
|
-
/* @__PURE__ */ n.jsx(be, { icon:
|
|
3357
|
+
/* @__PURE__ */ n.jsx(be, { icon: i }),
|
|
3362
3358
|
t
|
|
3363
3359
|
] }) }), _t = (t) => {
|
|
3364
|
-
const e =
|
|
3360
|
+
const e = Gs(), { className: s, label: i, mobileUrl: a, desktopUrl: c, icon: l } = t;
|
|
3365
3361
|
return /* @__PURE__ */ n.jsxs(G.Item, { className: s, children: [
|
|
3366
3362
|
(!e || e && !c) && /* @__PURE__ */ n.jsxs("a", { href: a, referrerPolicy: "no-referrer-when-downgrade", children: [
|
|
3367
3363
|
/* @__PURE__ */ n.jsx(be, { icon: l }),
|
|
3368
|
-
|
|
3364
|
+
i
|
|
3369
3365
|
] }),
|
|
3370
3366
|
!!c && /* @__PURE__ */ n.jsxs("a", { href: c, referrerPolicy: "no-referrer-when-downgrade", children: [
|
|
3371
3367
|
/* @__PURE__ */ n.jsx(be, { icon: l }),
|
|
3372
|
-
|
|
3368
|
+
i
|
|
3373
3369
|
] })
|
|
3374
3370
|
] });
|
|
3375
|
-
},
|
|
3376
|
-
const t =
|
|
3371
|
+
}, Os = r.createContext(void 0), $r = ({ apiUrl: t, authUrl: e, country: s, redirectUrl: i, bouHeaders: a, children: c }) => /* @__PURE__ */ n.jsx(Os.Provider, { value: { apiUrl: t, authUrl: e, country: s, redirectUrl: i, bouHeaders: a }, children: c }), St = () => {
|
|
3372
|
+
const t = r.useContext(Os);
|
|
3377
3373
|
if (!t)
|
|
3378
3374
|
throw new Error("Api context can not be rendered outside of Api");
|
|
3379
3375
|
return t;
|
|
3380
|
-
},
|
|
3381
|
-
const t =
|
|
3376
|
+
}, zs = r.createContext(void 0), Zr = ({ position: t, bouMenuItems: e, menuItemsToHide: s, children: i }) => /* @__PURE__ */ n.jsx(zs.Provider, { value: { position: t, bouMenuItems: e, menuItemsToHide: s }, children: i }), Ds = () => {
|
|
3377
|
+
const t = r.useContext(zs);
|
|
3382
3378
|
if (!t)
|
|
3383
3379
|
throw new Error("Authentication context can not be rendered outside of Authentication");
|
|
3384
3380
|
return t;
|
|
3385
|
-
},
|
|
3386
|
-
const
|
|
3387
|
-
s &&
|
|
3388
|
-
const a = `${t}/login?${
|
|
3381
|
+
}, Ts = ({ authUrl: t, redirectUrl: e, trackingInfo: s }) => {
|
|
3382
|
+
const i = new URLSearchParams({ redirectUrl: e });
|
|
3383
|
+
s && i.append("trackingInfo", s);
|
|
3384
|
+
const a = `${t}/login?${i.toString()}`, c = `${t}/logout?${i.toString()}`;
|
|
3389
3385
|
return { loginUrl: a, logoutUrl: c };
|
|
3390
|
-
},
|
|
3391
|
-
const { authUrl: t, redirectUrl: e } = St(), s =
|
|
3392
|
-
return
|
|
3393
|
-
},
|
|
3386
|
+
}, re = () => {
|
|
3387
|
+
const { authUrl: t, redirectUrl: e } = St(), s = Vs();
|
|
3388
|
+
return Ts({ authUrl: t, redirectUrl: e, trackingInfo: s });
|
|
3389
|
+
}, Xr = () => {
|
|
3394
3390
|
const { apiUrl: t } = St();
|
|
3395
3391
|
return `${`${t}/xtra`}/authentication/v1/user/profile`;
|
|
3396
3392
|
}, 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 } =
|
|
3393
|
+
const { loginUrl: s } = Ts({ authUrl: t, redirectUrl: e });
|
|
3398
3394
|
window.location.replace(s);
|
|
3399
3395
|
}, Ve = (t) => {
|
|
3400
3396
|
var c;
|
|
3401
3397
|
if (!t)
|
|
3402
3398
|
return { user: { state: () => "NotAuthenticated" }, tryToLogon: Ge };
|
|
3403
|
-
const e = new Date(t.dateOfBirth), s = We(Le.Mobile, t.phone),
|
|
3399
|
+
const e = new Date(t.dateOfBirth), s = We(Le.Mobile, t.phone), i = We(Le.Fixed, t.phone), a = Ke(s) ?? Ke(i) ?? "";
|
|
3404
3400
|
return {
|
|
3405
3401
|
user: {
|
|
3406
3402
|
...(c = window.XTRA) == null ? void 0 : c.user,
|
|
@@ -3441,12 +3437,12 @@ const Vi = {
|
|
|
3441
3437
|
},
|
|
3442
3438
|
tryToLogon: Ge
|
|
3443
3439
|
};
|
|
3444
|
-
},
|
|
3445
|
-
const { i18n: t } = pt(), { country: e, bouHeaders: s } = St(),
|
|
3440
|
+
}, Us = ["profile"], Qs = () => {
|
|
3441
|
+
const { i18n: t } = pt(), { country: e, bouHeaders: s } = St(), i = Xr(), a = sessionStorage.getItem("profile"), c = !!a;
|
|
3446
3442
|
return Cs({
|
|
3447
|
-
queryKey:
|
|
3443
|
+
queryKey: Us,
|
|
3448
3444
|
queryFn: async () => {
|
|
3449
|
-
const u = je(t.language, e), d = await fetch(
|
|
3445
|
+
const u = je(t.language, e), d = await fetch(i, {
|
|
3450
3446
|
credentials: "include",
|
|
3451
3447
|
mode: "cors",
|
|
3452
3448
|
headers: { "Accept-Language": u, ...s }
|
|
@@ -3477,7 +3473,7 @@ const Vi = {
|
|
|
3477
3473
|
placeholderData: { authenticationStatus: "Pending" },
|
|
3478
3474
|
refetchOnWindowFocus: !1
|
|
3479
3475
|
});
|
|
3480
|
-
},
|
|
3476
|
+
}, Yr = (t) => {
|
|
3481
3477
|
const e = {
|
|
3482
3478
|
shouldHidePayments: !1,
|
|
3483
3479
|
shouldHideVouchers: !1,
|
|
@@ -3505,8 +3501,8 @@ const Vi = {
|
|
|
3505
3501
|
"Please make sure the Menu Items to hide are strings and the expected values are [Payment, Vouchers, QRCode]"
|
|
3506
3502
|
);
|
|
3507
3503
|
}), e;
|
|
3508
|
-
},
|
|
3509
|
-
const { t } = pt(), { position: e, bouMenuItems: s, menuItemsToHide:
|
|
3504
|
+
}, Jr = () => {
|
|
3505
|
+
const { t } = pt(), { position: e, bouMenuItems: s, menuItemsToHide: i } = Ds(), { country: a } = St(), c = is({ country: a }), { logoutUrl: l } = re(), d = Ee().getQueryData(Us), p = (d == null ? void 0 : d.profile.firstName) ?? "", f = (d == null ? void 0 : d.profile.lastName) ?? "", { shouldHidePayments: h, shouldHideVouchers: y, shouldHideQrCodes: g } = Yr(i), _ = () => {
|
|
3510
3506
|
sessionStorage.removeItem("profile"), window.location.href = l;
|
|
3511
3507
|
};
|
|
3512
3508
|
return /* @__PURE__ */ n.jsxs(G, { type: "nav", id: "xtra-menu", position: e, children: [
|
|
@@ -3520,19 +3516,19 @@ const Vi = {
|
|
|
3520
3516
|
"button--authentication--authenticated"
|
|
3521
3517
|
),
|
|
3522
3518
|
children: /* @__PURE__ */ n.jsxs("button", { children: [
|
|
3523
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3519
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ti, { variant: "small", firstName: p, lastName: f }) }),
|
|
3524
3520
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: p }),
|
|
3525
3521
|
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3526
3522
|
] })
|
|
3527
3523
|
}
|
|
3528
3524
|
),
|
|
3529
3525
|
/* @__PURE__ */ n.jsxs(G.Content, { as: "div", children: [
|
|
3530
|
-
!!s && s.length > 0 && /* @__PURE__ */ n.jsx("ul", { className: "bou-menu__list", children: s.map(({ label: S, icon:
|
|
3526
|
+
!!s && s.length > 0 && /* @__PURE__ */ n.jsx("ul", { className: "bou-menu__list", children: s.map(({ label: S, icon: P, url: x }, b) => /* @__PURE__ */ n.jsx(
|
|
3531
3527
|
_t,
|
|
3532
3528
|
{
|
|
3533
3529
|
className: "bou-menu-item",
|
|
3534
3530
|
mobileUrl: x,
|
|
3535
|
-
icon:
|
|
3531
|
+
icon: P,
|
|
3536
3532
|
label: S
|
|
3537
3533
|
},
|
|
3538
3534
|
b
|
|
@@ -3544,7 +3540,7 @@ const Vi = {
|
|
|
3544
3540
|
className: "manage-profile",
|
|
3545
3541
|
mobileUrl: `${c}/manage-profile`,
|
|
3546
3542
|
desktopUrl: `${c}/manage-profile/personal-data`,
|
|
3547
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3543
|
+
icon: /* @__PURE__ */ n.jsx(nr, {}),
|
|
3548
3544
|
label: t("manageProfile")
|
|
3549
3545
|
}
|
|
3550
3546
|
),
|
|
@@ -3553,7 +3549,7 @@ const Vi = {
|
|
|
3553
3549
|
{
|
|
3554
3550
|
className: "payment",
|
|
3555
3551
|
mobileUrl: `${c}/payment`,
|
|
3556
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3552
|
+
icon: /* @__PURE__ */ n.jsx(yr, {}),
|
|
3557
3553
|
label: t("payment")
|
|
3558
3554
|
}
|
|
3559
3555
|
),
|
|
@@ -3562,7 +3558,7 @@ const Vi = {
|
|
|
3562
3558
|
{
|
|
3563
3559
|
className: "gift-cards",
|
|
3564
3560
|
mobileUrl: `${c}/gift-cards`,
|
|
3565
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3561
|
+
icon: /* @__PURE__ */ n.jsx(pr, {}),
|
|
3566
3562
|
label: t("giftCards")
|
|
3567
3563
|
}
|
|
3568
3564
|
),
|
|
@@ -3570,7 +3566,7 @@ const Vi = {
|
|
|
3570
3566
|
_t,
|
|
3571
3567
|
{
|
|
3572
3568
|
mobileUrl: `${c}/identifiers`,
|
|
3573
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3569
|
+
icon: /* @__PURE__ */ n.jsx(vr, {}),
|
|
3574
3570
|
label: t("qrCode")
|
|
3575
3571
|
}
|
|
3576
3572
|
),
|
|
@@ -3580,15 +3576,15 @@ const Vi = {
|
|
|
3580
3576
|
className: "manage-privacy",
|
|
3581
3577
|
mobileUrl: `${c}/manage-privacy`,
|
|
3582
3578
|
desktopUrl: `${c}/manage-privacy/permissions`,
|
|
3583
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3579
|
+
icon: /* @__PURE__ */ n.jsx(ir, {}),
|
|
3584
3580
|
label: t("privacy")
|
|
3585
3581
|
}
|
|
3586
3582
|
),
|
|
3587
|
-
/* @__PURE__ */ n.jsx(
|
|
3583
|
+
/* @__PURE__ */ n.jsx(qr, { onClick: _, icon: /* @__PURE__ */ n.jsx(er, {}), label: t("logout") })
|
|
3588
3584
|
] })
|
|
3589
3585
|
] })
|
|
3590
3586
|
] });
|
|
3591
|
-
},
|
|
3587
|
+
}, Ir = () => {
|
|
3592
3588
|
const { t } = pt();
|
|
3593
3589
|
return /* @__PURE__ */ n.jsxs("button", { className: N("button", "button--neutral", "button--authentication"), children: [
|
|
3594
3590
|
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx("i", { className: "spinner" }) }),
|
|
@@ -3602,12 +3598,12 @@ const Vi = {
|
|
|
3602
3598
|
function It(t) {
|
|
3603
3599
|
for (var e = 1; e < arguments.length; e++) {
|
|
3604
3600
|
var s = arguments[e];
|
|
3605
|
-
for (var
|
|
3606
|
-
t[
|
|
3601
|
+
for (var i in s)
|
|
3602
|
+
t[i] = s[i];
|
|
3607
3603
|
}
|
|
3608
3604
|
return t;
|
|
3609
3605
|
}
|
|
3610
|
-
var
|
|
3606
|
+
var Br = {
|
|
3611
3607
|
read: function(t) {
|
|
3612
3608
|
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3613
3609
|
},
|
|
@@ -3628,7 +3624,7 @@ function we(t, e) {
|
|
|
3628
3624
|
return document.cookie = a + "=" + t.write(c, a) + u;
|
|
3629
3625
|
}
|
|
3630
3626
|
}
|
|
3631
|
-
function
|
|
3627
|
+
function i(a) {
|
|
3632
3628
|
if (!(typeof document > "u" || arguments.length && !a)) {
|
|
3633
3629
|
for (var c = document.cookie ? document.cookie.split("; ") : [], l = {}, u = 0; u < c.length; u++) {
|
|
3634
3630
|
var d = c[u].split("="), p = d.slice(1).join("=");
|
|
@@ -3645,7 +3641,7 @@ function we(t, e) {
|
|
|
3645
3641
|
return Object.create(
|
|
3646
3642
|
{
|
|
3647
3643
|
set: s,
|
|
3648
|
-
get:
|
|
3644
|
+
get: i,
|
|
3649
3645
|
remove: function(a, c) {
|
|
3650
3646
|
s(
|
|
3651
3647
|
a,
|
|
@@ -3668,16 +3664,16 @@ function we(t, e) {
|
|
|
3668
3664
|
}
|
|
3669
3665
|
);
|
|
3670
3666
|
}
|
|
3671
|
-
var qe = we(
|
|
3672
|
-
const
|
|
3673
|
-
const { t: e } = pt(), { loginUrl: s } =
|
|
3674
|
-
return
|
|
3667
|
+
var qe = we(Br, { path: "/" });
|
|
3668
|
+
const tn = ({ className: t }) => {
|
|
3669
|
+
const { t: e } = pt(), { loginUrl: s } = re(), i = r.useRef(null);
|
|
3670
|
+
return r.useEffect(() => {
|
|
3675
3671
|
const a = qe.get("shouldLogin"), c = !!a && !!atob(a);
|
|
3676
|
-
|
|
3677
|
-
}, [
|
|
3672
|
+
i != null && i.current && c && (qe.remove("shouldLogin"), i.current.click());
|
|
3673
|
+
}, [i]), /* @__PURE__ */ n.jsxs(
|
|
3678
3674
|
"a",
|
|
3679
3675
|
{
|
|
3680
|
-
ref:
|
|
3676
|
+
ref: i,
|
|
3681
3677
|
href: s,
|
|
3682
3678
|
className: N(
|
|
3683
3679
|
"button",
|
|
@@ -3687,53 +3683,53 @@ const en = ({ className: t }) => {
|
|
|
3687
3683
|
t
|
|
3688
3684
|
),
|
|
3689
3685
|
children: [
|
|
3690
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3686
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ps, { width: 24, height: 24, suffix: "desktop" }) }),
|
|
3691
3687
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: e("login") }),
|
|
3692
3688
|
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3693
3689
|
]
|
|
3694
3690
|
}
|
|
3695
3691
|
);
|
|
3696
|
-
},
|
|
3697
|
-
const { t } = pt(), { loginUrl: e } =
|
|
3692
|
+
}, en = () => {
|
|
3693
|
+
const { t } = pt(), { loginUrl: e } = re(), s = is(), { position: i } = Ds();
|
|
3698
3694
|
return /* @__PURE__ */ n.jsxs(
|
|
3699
3695
|
G,
|
|
3700
3696
|
{
|
|
3701
3697
|
type: "nav",
|
|
3702
3698
|
id: "xtra-menu",
|
|
3703
|
-
position:
|
|
3699
|
+
position: i,
|
|
3704
3700
|
className: "menu--unauthenticated",
|
|
3705
3701
|
"aria-label": t("xtraMenuAriaLabel"),
|
|
3706
3702
|
children: [
|
|
3707
3703
|
/* @__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(
|
|
3704
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ps, { width: 24, height: 24, suffix: "mobile" }) }),
|
|
3709
3705
|
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3710
3706
|
] }) }),
|
|
3711
3707
|
/* @__PURE__ */ n.jsxs(G.Content, { children: [
|
|
3712
3708
|
/* @__PURE__ */ n.jsx(G.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: e, className: "button button--with-icon", children: [
|
|
3713
|
-
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3709
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Bi, {}) }),
|
|
3714
3710
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("login") })
|
|
3715
3711
|
] }) }),
|
|
3716
3712
|
/* @__PURE__ */ n.jsx(G.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
|
|
3717
|
-
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3713
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(or, {}) }),
|
|
3718
3714
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("register") })
|
|
3719
3715
|
] }) })
|
|
3720
3716
|
] })
|
|
3721
3717
|
]
|
|
3722
3718
|
}
|
|
3723
3719
|
);
|
|
3724
|
-
},
|
|
3720
|
+
}, sn = () => {
|
|
3725
3721
|
var e, s;
|
|
3726
|
-
const t =
|
|
3727
|
-
return ((e = t.data) == null ? void 0 : e.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ n.jsx(
|
|
3728
|
-
/* @__PURE__ */ n.jsx(
|
|
3729
|
-
/* @__PURE__ */ n.jsx(
|
|
3730
|
-
] }) : /* @__PURE__ */ n.jsx(
|
|
3731
|
-
},
|
|
3722
|
+
const t = Qs();
|
|
3723
|
+
return ((e = t.data) == null ? void 0 : e.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ n.jsx(Jr, {}) : ((s = t.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || t.isError ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3724
|
+
/* @__PURE__ */ n.jsx(tn, {}),
|
|
3725
|
+
/* @__PURE__ */ n.jsx(en, {})
|
|
3726
|
+
] }) : /* @__PURE__ */ n.jsx(Ir, {});
|
|
3727
|
+
}, Hs = () => {
|
|
3732
3728
|
const { apiUrl: t } = St();
|
|
3733
3729
|
return `${`${t}/xtra`}/authentication/v1/gdpr`;
|
|
3734
|
-
},
|
|
3735
|
-
const { i18n: t } = pt(), e =
|
|
3736
|
-
return
|
|
3730
|
+
}, rn = () => {
|
|
3731
|
+
const { i18n: t } = pt(), e = Hs(), { country: s, bouHeaders: i } = St(), a = new ps();
|
|
3732
|
+
return Ei({
|
|
3737
3733
|
mutationFn: async (l) => {
|
|
3738
3734
|
const u = je(t.language, s), d = await fetch(`${e}/tc`, {
|
|
3739
3735
|
body: JSON.stringify({ acceptedTC: l }),
|
|
@@ -3741,7 +3737,7 @@ const en = ({ className: t }) => {
|
|
|
3741
3737
|
headers: {
|
|
3742
3738
|
"Content-Type": "application/json",
|
|
3743
3739
|
"Accept-Language": u,
|
|
3744
|
-
...
|
|
3740
|
+
...i
|
|
3745
3741
|
},
|
|
3746
3742
|
method: "POST",
|
|
3747
3743
|
mode: "cors"
|
|
@@ -3754,16 +3750,16 @@ const en = ({ className: t }) => {
|
|
|
3754
3750
|
await a.invalidateQueries({ queryKey: ["gdpr"] });
|
|
3755
3751
|
}
|
|
3756
3752
|
});
|
|
3757
|
-
},
|
|
3753
|
+
}, nn = () => {
|
|
3758
3754
|
var u;
|
|
3759
|
-
const { i18n: t } = pt(), e =
|
|
3755
|
+
const { i18n: t } = pt(), e = Hs(), { country: s, bouHeaders: i } = St(), c = ((u = Qs().data) == null ? void 0 : u.authenticationStatus) === "Authenticated";
|
|
3760
3756
|
return Cs({
|
|
3761
3757
|
queryKey: ["gdpr"],
|
|
3762
3758
|
queryFn: async () => {
|
|
3763
3759
|
const d = je(t.language, s), p = await fetch(`${e}/tc/check`, {
|
|
3764
3760
|
credentials: "include",
|
|
3765
3761
|
mode: "cors",
|
|
3766
|
-
headers: { "Accept-Language": d, ...
|
|
3762
|
+
headers: { "Accept-Language": d, ...i }
|
|
3767
3763
|
});
|
|
3768
3764
|
if (!p.ok)
|
|
3769
3765
|
throw new Error("Network response was not ok");
|
|
@@ -3771,38 +3767,38 @@ const en = ({ className: t }) => {
|
|
|
3771
3767
|
},
|
|
3772
3768
|
enabled: c
|
|
3773
3769
|
});
|
|
3774
|
-
},
|
|
3775
|
-
var
|
|
3776
|
-
const { t } = pt(), { logoutUrl: e } =
|
|
3777
|
-
|
|
3778
|
-
const g = t("termsAndConditions.error.required"),
|
|
3770
|
+
}, an = () => {
|
|
3771
|
+
var P;
|
|
3772
|
+
const { t } = pt(), { logoutUrl: e } = re(), [s, i] = r.useState(0), [a, c] = r.useState({}), { AccessibleFormMessage: l, formRef: u } = qs({ submitCount: s, errors: a }), { mutate: d, isError: p } = rn(), f = nn(), [h, y] = r.useState(!1);
|
|
3773
|
+
$s({ element: "xtra-authentication" });
|
|
3774
|
+
const g = t("termsAndConditions.error.required"), _ = () => {
|
|
3779
3775
|
y(!1), document.body.style.removeProperty("overflow");
|
|
3780
3776
|
};
|
|
3781
|
-
|
|
3777
|
+
r.useEffect(() => {
|
|
3782
3778
|
var x;
|
|
3783
3779
|
(x = f.data) != null && x.length && !window.showTnCPopup && (y(!0), window.showTnCPopup = !0);
|
|
3784
|
-
}, [(
|
|
3780
|
+
}, [(P = f.data) == null ? void 0 : P.length]), r.useEffect(() => {
|
|
3785
3781
|
h && document.body.style.setProperty("overflow", "hidden");
|
|
3786
|
-
}, [h]),
|
|
3782
|
+
}, [h]), r.useEffect(() => {
|
|
3787
3783
|
p && c({ acceptedTC: g });
|
|
3788
3784
|
}, [g, p]);
|
|
3789
3785
|
const S = (x) => {
|
|
3790
|
-
x.preventDefault(),
|
|
3786
|
+
x.preventDefault(), i((w) => w + 1);
|
|
3791
3787
|
const { acceptedTC: b } = x.target;
|
|
3792
3788
|
if (b instanceof RadioNodeList) {
|
|
3793
3789
|
const w = Object.values(b);
|
|
3794
|
-
w.every((O) => O.checked) ? (c({}), d(w.map((O) => O.value)),
|
|
3790
|
+
w.every((O) => O.checked) ? (c({}), d(w.map((O) => O.value)), _()) : c({ acceptedTC: g });
|
|
3795
3791
|
} else
|
|
3796
|
-
b != null && b.checked ? (c({}), d([b.value]),
|
|
3792
|
+
b != null && b.checked ? (c({}), d([b.value]), _()) : c({ acceptedTC: g });
|
|
3797
3793
|
};
|
|
3798
3794
|
return h ? /* @__PURE__ */ n.jsxs(K, { defaultOpen: h, isModal: !0, children: [
|
|
3799
3795
|
l,
|
|
3800
3796
|
/* @__PURE__ */ n.jsxs(K.Root, { children: [
|
|
3801
|
-
/* @__PURE__ */ n.jsx(K.Header, { children: /* @__PURE__ */ n.jsx(K.Title, { icon: /* @__PURE__ */ n.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ n.jsx(
|
|
3802
|
-
/* @__PURE__ */ n.jsx(K.Body, { children: /* @__PURE__ */ n.jsxs(
|
|
3803
|
-
/* @__PURE__ */ n.jsxs(
|
|
3797
|
+
/* @__PURE__ */ n.jsx(K.Header, { children: /* @__PURE__ */ n.jsx(K.Title, { icon: /* @__PURE__ */ n.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ n.jsx(un, { children: t("termsAndConditions.title") }) }) }),
|
|
3798
|
+
/* @__PURE__ */ n.jsx(K.Body, { children: /* @__PURE__ */ n.jsxs(Ks, { ref: u, id: "tc-form", onSubmit: S, children: [
|
|
3799
|
+
/* @__PURE__ */ n.jsxs(ln, { children: [
|
|
3804
3800
|
t("termsAndConditions.description"),
|
|
3805
|
-
a.acceptedTC && /* @__PURE__ */ n.jsx(
|
|
3801
|
+
a.acceptedTC && /* @__PURE__ */ n.jsx(dn, { children: g })
|
|
3806
3802
|
] }),
|
|
3807
3803
|
f.data.map(({ tcCode: x, title: b, URL: w }) => /* @__PURE__ */ n.jsx(
|
|
3808
3804
|
jt,
|
|
@@ -3812,8 +3808,8 @@ const en = ({ className: t }) => {
|
|
|
3812
3808
|
name: "acceptedTC",
|
|
3813
3809
|
variant: "primary",
|
|
3814
3810
|
children: /* @__PURE__ */ n.jsxs(jt.Content, { children: [
|
|
3815
|
-
/* @__PURE__ */ n.jsx(
|
|
3816
|
-
/* @__PURE__ */ n.jsx(
|
|
3811
|
+
/* @__PURE__ */ n.jsx(on, { children: b }),
|
|
3812
|
+
/* @__PURE__ */ n.jsx(cn, { href: w, children: t("termsAndConditions.action", { title: b }) })
|
|
3817
3813
|
] })
|
|
3818
3814
|
},
|
|
3819
3815
|
x
|
|
@@ -3832,15 +3828,15 @@ const en = ({ className: t }) => {
|
|
|
3832
3828
|
] })
|
|
3833
3829
|
] })
|
|
3834
3830
|
] }) : null;
|
|
3835
|
-
},
|
|
3831
|
+
}, on = ({
|
|
3836
3832
|
children: t,
|
|
3837
3833
|
...e
|
|
3838
|
-
}) => /* @__PURE__ */ n.jsx(jt.Label, { className: "form--tc__label", ...e, children: t }),
|
|
3839
|
-
|
|
3840
|
-
const
|
|
3834
|
+
}) => /* @__PURE__ */ n.jsx(jt.Label, { className: "form--tc__label", ...e, children: t }), Ks = r.forwardRef(({ children: t, ...e }, s) => /* @__PURE__ */ n.jsx("form", { className: "form--tc", ref: s, ...e, children: t }));
|
|
3835
|
+
Ks.displayName = "TermsAndConditionsForm";
|
|
3836
|
+
const ln = ({
|
|
3841
3837
|
children: t,
|
|
3842
3838
|
...e
|
|
3843
|
-
}) => /* @__PURE__ */ n.jsx("p", { className: "form--tc__description", ...e, children: t }),
|
|
3839
|
+
}) => /* @__PURE__ */ n.jsx("p", { className: "form--tc__description", ...e, children: t }), cn = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx(
|
|
3844
3840
|
"a",
|
|
3845
3841
|
{
|
|
3846
3842
|
className: "form--tc__link",
|
|
@@ -3851,39 +3847,39 @@ const cn = ({
|
|
|
3851
3847
|
...e,
|
|
3852
3848
|
children: t
|
|
3853
3849
|
}
|
|
3854
|
-
),
|
|
3850
|
+
), un = ({ children: t }) => /* @__PURE__ */ n.jsx("h1", { className: "form--tc__title", children: t }), dn = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx("span", { className: "form--tc__error", role: "alert", ...e, children: t }), hn = new ps(), mn = ({
|
|
3855
3851
|
environment: t,
|
|
3856
3852
|
redirectUrl: e,
|
|
3857
3853
|
apiUrl: s,
|
|
3858
|
-
authUrl:
|
|
3854
|
+
authUrl: i,
|
|
3859
3855
|
position: a,
|
|
3860
3856
|
commerceId: c,
|
|
3861
3857
|
bouMenuItems: l,
|
|
3862
3858
|
menuItemsToHide: u,
|
|
3863
3859
|
bouHeaders: d,
|
|
3864
3860
|
country: p
|
|
3865
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
3866
|
-
|
|
3861
|
+
}) => /* @__PURE__ */ n.jsx(Zs, { environment: t, children: /* @__PURE__ */ n.jsx(Xs, { commerceId: c, children: /* @__PURE__ */ n.jsx(
|
|
3862
|
+
$r,
|
|
3867
3863
|
{
|
|
3868
3864
|
apiUrl: s,
|
|
3869
|
-
authUrl:
|
|
3865
|
+
authUrl: i,
|
|
3870
3866
|
country: p,
|
|
3871
3867
|
redirectUrl: e,
|
|
3872
3868
|
bouHeaders: d,
|
|
3873
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
3869
|
+
children: /* @__PURE__ */ n.jsxs(pi, { client: hn, children: [
|
|
3874
3870
|
/* @__PURE__ */ n.jsx(
|
|
3875
|
-
|
|
3871
|
+
Zr,
|
|
3876
3872
|
{
|
|
3877
3873
|
position: a,
|
|
3878
3874
|
bouMenuItems: l,
|
|
3879
3875
|
menuItemsToHide: u,
|
|
3880
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3876
|
+
children: /* @__PURE__ */ n.jsx(sn, {})
|
|
3881
3877
|
}
|
|
3882
3878
|
),
|
|
3883
|
-
/* @__PURE__ */ n.jsx(
|
|
3879
|
+
/* @__PURE__ */ n.jsx(an, {})
|
|
3884
3880
|
] })
|
|
3885
3881
|
}
|
|
3886
3882
|
) }) });
|
|
3887
3883
|
export {
|
|
3888
|
-
|
|
3884
|
+
mn as default
|
|
3889
3885
|
};
|