@myxtra/authentication-green 2.24.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-DQnSWvAh.js → App-DBu1-gfq.js} +772 -730
- package/dist/{Categoriesbaby-I5xHdl9w.js → Categoriesbaby-zLV8UkNS.js} +1 -1
- package/dist/{Categoriesbakery-Dodl4IW-.js → Categoriesbakery-BtvnuWq5.js} +1 -1
- package/dist/{Categoriesbbq-CuND2IkF.js → Categoriesbbq-CBOtiZ2p.js} +1 -1
- package/dist/{Categoriesbreakfast-CJ92V58W.js → Categoriesbreakfast-Dl3J81Wq.js} +1 -1
- package/dist/{Categoriesbrik-BLef2C42.js → Categoriesbrik-YczPL7LO.js} +1 -1
- package/dist/{Categoriescandy-Cstf0HVh.js → Categoriescandy-B9Hl2Y8Q.js} +1 -1
- package/dist/{Categoriescar-0OQA7MoZ.js → Categoriescar-CdLHTYAz.js} +1 -1
- package/dist/{Categoriescarandbike-gRMH7JKc.js → Categoriescarandbike-bV2yUhiY.js} +1 -1
- package/dist/{Categorieschild-D2Vel6rp.js → Categorieschild-AelqMsFx.js} +1 -1
- package/dist/{Categoriescigarette-B0sjQB5z.js → Categoriescigarette-Cfk5fMMU.js} +1 -1
- package/dist/{Categoriescleaning-DJL45Lyn.js → Categoriescleaning-mFlJOx18.js} +1 -1
- package/dist/{Categoriesclothing-DHZyRvL4.js → Categoriesclothing-DLQJSJsN.js} +1 -1
- package/dist/{Categoriesconserve-BIH5Lpz6.js → Categoriesconserve-e9Oh3upX.js} +1 -1
- package/dist/{Categoriesdairy-C3LoQO3l.js → Categoriesdairy-CTqL2sJb.js} +1 -1
- package/dist/{Categoriesdeskandtravel-CI-04NhO.js → Categoriesdeskandtravel-CpaWwhg3.js} +1 -1
- package/dist/{Categoriesdiet-DWPmNr28.js → Categoriesdiet-DxyO8bcA.js} +1 -1
- package/dist/{Categoriesdryfood-UG_AU0oi.js → Categoriesdryfood-C3HFUdB6.js} +1 -1
- package/dist/{Categorieseaster-B4myFhLT.js → Categorieseaster-H94UVblv.js} +1 -1
- package/dist/{Categoriesenergy-8mPnA7SL.js → Categoriesenergy-B90ZmPhx.js} +1 -1
- package/dist/{Categoriesfish-DMYULEfH.js → Categoriesfish-BH_crDgN.js} +1 -1
- package/dist/{Categoriesfood-oqhL_umF.js → Categoriesfood-GFrH8FR6.js} +1 -1
- package/dist/{Categoriesfreezer-DBomAT-Y.js → Categoriesfreezer-CpiCEfyR.js} +1 -1
- package/dist/{Categoriesfuel-Cmgtcl8s.js → Categoriesfuel-DgDagTsP.js} +1 -1
- package/dist/{Categoriesgranen-CqMXeQQ5.js → Categoriesgranen-CFzk9xdG.js} +1 -1
- package/dist/{Categoriesgrid-CqiDzEgE.js → Categoriesgrid-4SL_ZCl3.js} +1 -1
- package/dist/{Categorieshome-bH3fWx_J.js → Categorieshome-DgORtmRv.js} +1 -1
- package/dist/{Categorieshygiene-CZgCN1bJ.js → Categorieshygiene-BiDjuHHG.js} +1 -1
- package/dist/{Categoriesmealbox-Dac6Bt2o.js → Categoriesmealbox-CdUSsl70.js} +1 -1
- package/dist/{Categoriesmeat-gC1ZL79L.js → Categoriesmeat-MnYT-oF-.js} +1 -1
- package/dist/{Categoriesmultimedia-Do0cP7RM.js → Categoriesmultimedia-CdfwJGrj.js} +1 -1
- package/dist/{Categoriesnonfood-DKQcgLZ1.js → Categoriesnonfood-Caery7h5.js} +1 -1
- package/dist/{Categoriesonlinepromo-CnCGps1T.js → Categoriesonlinepromo-B-bOd6-N.js} +1 -1
- package/dist/{Categoriesparty-DKbWSYL8.js → Categoriesparty-lPH7BbPT.js} +1 -1
- package/dist/{Categoriespets-1Y9Xon50.js → Categoriespets-BuKfsdK6.js} +1 -1
- package/dist/{Categoriesplaceholder-DMrcCrfG.js → Categoriesplaceholder-BoN0C7uF.js} +1 -1
- package/dist/{Categoriespuzzle-CzXkJk5y.js → Categoriespuzzle-Bex7QRuv.js} +1 -1
- package/dist/{Categoriessnacks-Blwdxo9H.js → Categoriessnacks-BgVfm4XZ.js} +1 -1
- package/dist/{Categoriessoda-NQRsgFxQ.js → Categoriessoda-BDKmW1FC.js} +1 -1
- package/dist/{Categoriessportfood-DCJJNBTM.js → Categoriessportfood-B5IP5R4L.js} +1 -1
- package/dist/{Categoriestins-DbOOUDAT.js → Categoriestins-SQQ_bAMY.js} +1 -1
- package/dist/{Categoriestoyandhobby-BW2aWZjG.js → Categoriestoyandhobby-D1wB-Pd5.js} +1 -1
- package/dist/{Categoriestoys-BpIS_w_W.js → Categoriestoys-D03TNBni.js} +1 -1
- package/dist/{Categoriesvegetables-6u7dZHNo.js → Categoriesvegetables-CBV5KT_y.js} +1 -1
- package/dist/{Categorieswine-BOfezc50.js → Categorieswine-C3g0I95E.js} +1 -1
- package/dist/{Fueladblue-DMXYT_Te.js → Fueladblue-ChqSddse.js} +1 -1
- package/dist/{Fuelb7-BuQ2Ap0u.js → Fuelb7-3IPpIx6U.js} +1 -1
- package/dist/{Fuelcng-CwjuId4d.js → Fuelcng-l2THW70a.js} +1 -1
- package/dist/{Fuele10-DdFSQ1CP.js → Fuele10-XuiOitOL.js} +1 -1
- package/dist/{Fuele5-B4GGoX7I.js → Fuele5-BiaBtRgK.js} +1 -1
- package/dist/{Fuelfreetireinflation-R2eBmxGf.js → Fuelfreetireinflation-DmUEBmF6.js} +1 -1
- package/dist/{Fuelh2-ryEnQiyY.js → Fuelh2-CrOxMeIM.js} +1 -1
- package/dist/{Functional18plus-scE_b2vU.js → Functional18plus-Ddg8XOc-.js} +1 -1
- package/dist/{Functionalaccount-BxIWFmNH.js → Functionalaccount-Bnt6MZ3W.js} +1 -1
- package/dist/{Functionaladdtolist-DsSFGx9d.js → Functionaladdtolist-BlNEspkM.js} +1 -1
- package/dist/{Functionaladduser-BOvhKNKg.js → Functionaladduser-CWXkXUog.js} +1 -1
- package/dist/{Functionalalphabeta-DXADcLhE.js → Functionalalphabeta-CulAnUDo.js} +1 -1
- package/dist/{Functionalback-B-ViXW5g.js → Functionalback-pl0V3Kby.js} +1 -1
- package/dist/{Functionalbarcode-Dr9l98V3.js → Functionalbarcode-DVJVYtfB.js} +1 -1
- package/dist/{Functionalblock-BvGUVqkB.js → Functionalblock-CemRET4z.js} +1 -1
- package/dist/{Functionalbox-CKax9Iwz.js → Functionalbox-P-ghum33.js} +1 -1
- package/dist/{Functionalcalendar-CaATtEwR.js → Functionalcalendar-CbO9iWkB.js} +1 -1
- package/dist/{Functionalcamera-Bjl8z3U7.js → Functionalcamera-SLzIKiv4.js} +1 -1
- package/dist/{Functionalcartcheckout-AOYbifJf.js → Functionalcartcheckout-DLRylbbf.js} +1 -1
- package/dist/{Functionalcartedit-fAQ0GbKt.js → Functionalcartedit-BZsOoHDj.js} +1 -1
- package/dist/{Functionalcheck-0xfD7i0e.js → Functionalcheck-CTsaSo12.js} +1 -1
- package/dist/{Functionalchecklist-BEqIATSY.js → Functionalchecklist-CDignahR.js} +1 -1
- package/dist/{Functionalchevrondown-Da8v_-Xy.js → Functionalchevrondown-B3QLvQH7.js} +1 -1
- package/dist/{Functionalchevronright-9PNBfmAy.js → Functionalchevronright-BelpgxQR.js} +1 -1
- package/dist/{Functionalchevronup-Bl3h_BTh.js → Functionalchevronup-CqSxvkmf.js} +1 -1
- package/dist/{Functionalclock-C6P-puKi.js → Functionalclock-Ca2aahAP.js} +1 -1
- package/dist/{Functionalclose-CI-j5QYx.js → Functionalclose-BKUMSRuU.js} +1 -1
- package/dist/{Functionalcommunications-B9_qEryC.js → Functionalcommunications-jAeYBymW.js} +1 -1
- package/dist/{Functionalconnecteddevice-BVZJK-uO.js → Functionalconnecteddevice-DkNljFxK.js} +1 -1
- package/dist/{Functionalconnectioncable-BGtkmMmp.js → Functionalconnectioncable-D8WJV_SD.js} +1 -1
- package/dist/{Functionalcookies-Ba1n4Mss.js → Functionalcookies-D_WTTmgL.js} +1 -1
- package/dist/{Functionalcopy-C9HL5fcQ.js → Functionalcopy-CvbASnR4.js} +1 -1
- package/dist/{Functionalcustomerservice-Bxk9rIGC.js → Functionalcustomerservice-Bx8Njg04.js} +1 -1
- package/dist/{Functionaldeliveryaddresses-DmscZIgy.js → Functionaldeliveryaddresses-DclG3tVD.js} +1 -1
- package/dist/{Functionaldiscount-D8eE6-BB.js → Functionaldiscount-oAG4VzGV.js} +1 -1
- package/dist/{Functionaldiscountcode-CKRybXeb.js → Functionaldiscountcode-BQwI1UEy.js} +1 -1
- package/dist/{Functionaldownload-B0FxxpqV.js → Functionaldownload-C9a_ajXf.js} +1 -1
- package/dist/{Functionaldrycleaning-BHkGCmdB.js → Functionaldrycleaning-BVALxFXl.js} +1 -1
- package/dist/{Functionalecoearth-v-oIubGX.js → Functionalecoearth-B9LJ8J_5.js} +1 -1
- package/dist/{Functionaledit-DuvYz0E1.js → Functionaledit-BYiFmpwL.js} +1 -1
- package/dist/{Functionalellipsis-BTlUiC01.js → Functionalellipsis-rU1EVOZc.js} +1 -1
- package/dist/{Functionalerrorcircle-1bgJvZCJ.js → Functionalerrorcircle-CmQvSLoF.js} +1 -1
- package/dist/{Functionalerrorcirclefilled-Cyl0PEmH.js → Functionalerrorcirclefilled-d0USRGtr.js} +1 -1
- package/dist/{Functionaleuro-Bl170Yy9.js → Functionaleuro-D7wFD_IF.js} +1 -1
- package/dist/{Functionalexit-BzSIEsis.js → Functionalexit-nIomTzRH.js} +1 -1
- package/dist/{Functionalexport-CMivJPzQ.js → Functionalexport-DUQwwuwQ.js} +1 -1
- package/dist/{Functionalexternallink-bQO634-P.js → Functionalexternallink-Dij3wfx3.js} +1 -1
- package/dist/{Functionaleyehidden-CIWyRXYm.js → Functionaleyehidden-CU3Vb1Dq.js} +1 -1
- package/dist/{Functionaleyeshow-aHbAIGdU.js → Functionaleyeshow-VZvRHUCc.js} +1 -1
- package/dist/{Functionalfilter-e3wcX8PF.js → Functionalfilter-C-Fafr2v.js} +1 -1
- package/dist/{Functionalfirstadded-_1QL39HZ.js → Functionalfirstadded-CTo_v97-.js} +1 -1
- package/dist/{Functionalgift-DQL6k0AS.js → Functionalgift-qlRuU3JH.js} +1 -1
- package/dist/{Functionalhistory-CF6Gjp4_.js → Functionalhistory-Bv4epxeh.js} +1 -1
- package/dist/{Functionalidea-hCg-TuUA.js → Functionalidea-BwbY50VB.js} +1 -1
- package/dist/{Functionalinappnotifications-Bo2poQZW.js → Functionalinappnotifications-CQnv2KIU.js} +1 -1
- package/dist/{Functionalkiosk-Dvucjtfx.js → Functionalkiosk-CXoriPgN.js} +1 -1
- package/dist/{Functionallastadded-mBjd5gIy.js → Functionallastadded-DUTNwqzq.js} +1 -1
- package/dist/{Functionallifestyle-BHAOHsgr.js → Functionallifestyle-C8vEOp3s.js} +1 -1
- package/dist/{Functionallist-CaSpBUgE.js → Functionallist-C4ahBTwf.js} +1 -1
- package/dist/{Functionalloading-on5DzDap.js → Functionalloading-BgGaayIk.js} +1 -1
- package/dist/{Functionallocate-DQ6rQdxn.js → Functionallocate-CyDygvGn.js} +1 -1
- package/dist/{Functionallocation-BTy2kqO7.js → Functionallocation-BEO7IAQp.js} +1 -1
- package/dist/{Functionallocationhome-C7vPP0GV.js → Functionallocationhome-QLhGNoLv.js} +1 -1
- package/dist/{Functionallocationpickup-GubaVmlM.js → Functionallocationpickup-DZFse_eh.js} +1 -1
- package/dist/{Functionallogin-Dfh7lhIz.js → Functionallogin-mkMT1rHL.js} +1 -1
- package/dist/{Functionallogout-BIcVMKhx.js → Functionallogout-CJEOzHOZ.js} +1 -1
- package/dist/{Functionalmail-B3WSyK2s.js → Functionalmail-DosjUg7Y.js} +1 -1
- package/dist/{Functionalmaplocation-N4zQmkF-.js → Functionalmaplocation-ByzgczPG.js} +1 -1
- package/dist/{Functionalmenu-FzIVn08W.js → Functionalmenu-CgLBEUY-.js} +1 -1
- package/dist/{Functionalmessage-D0Vk4_U7.js → Functionalmessage-B3lG5V8T.js} +1 -1
- package/dist/{Functionalmessagefield-ChSO6WJY.js → Functionalmessagefield-wyUwQjlA.js} +1 -1
- package/dist/{Functionalminus-BfCiQnXQ.js → Functionalminus-DAjUNbXV.js} +1 -1
- package/dist/{Functionalmobilepay-zdjQX0Lt.js → Functionalmobilepay-c9RlQquM.js} +1 -1
- package/dist/{Functionalmultifactorauthenticator-BTONF6bR.js → Functionalmultifactorauthenticator-D6xenqja.js} +1 -1
- package/dist/{Functionalnews-BKRxSPba.js → Functionalnews-B9eVhJW3.js} +1 -1
- package/dist/{Functionalnext-Cur-yTJK.js → Functionalnext-Ex_XasPq.js} +1 -1
- package/dist/{Functionalnoconnection-DOvE_mzo.js → Functionalnoconnection-ccOk8_bI.js} +1 -1
- package/dist/{Functionalnumber-vTcTQCi_.js → Functionalnumber-aZYnBBcv.js} +1 -1
- package/dist/{Functionalother-CsIv_cV9.js → Functionalother-Db-O1duA.js} +1 -1
- package/dist/{Functionalpack-CkEXVbSj.js → Functionalpack-DabqpolM.js} +1 -1
- package/dist/{Functionalpassword-D0BxVXNC.js → Functionalpassword-D_qE10n9.js} +1 -1
- package/dist/{Functionalpercentage-BLNFYIhj.js → Functionalpercentage-O6rN3h02.js} +1 -1
- package/dist/{Functionalphone-BiXABMI7.js → Functionalphone-B8vKtJxT.js} +1 -1
- package/dist/{Functionalpiece-D4UwG_9D.js → Functionalpiece-THXTuVKJ.js} +1 -1
- package/dist/{Functionalpinoutlines-D5ZS1hvq.js → Functionalpinoutlines-D9eN3Okw.js} +1 -1
- package/dist/{Functionalplus-BLj_Gh_c.js → Functionalplus-xF4rj5tZ.js} +1 -1
- package/dist/{Functionalpluscircle-BPG0YWGF.js → Functionalpluscircle-Bu5ECDIH.js} +1 -1
- package/dist/{Functionalpresent-CprAynbW.js → Functionalpresent-hNlK0QJ-.js} +1 -1
- package/dist/{Functionalprivacy-CgAg3mHt.js → Functionalprivacy-zotrCI5M.js} +1 -1
- package/dist/{Functionalpushnotifications-9yitl6Mk.js → Functionalpushnotifications-D8pF_ZEC.js} +1 -1
- package/dist/{Functionalquestioncircle-C48HItuy.js → Functionalquestioncircle-2PDi1sbY.js} +1 -1
- package/dist/{Functionalquestioncirclefilled-qWTMhRII.js → Functionalquestioncirclefilled-D3WuYQhd.js} +1 -1
- package/dist/{Functionalreadtime-DNrO95y3.js → Functionalreadtime-BFDKvQ3c.js} +1 -1
- package/dist/{Functionalregister-C0pEFKgd.js → Functionalregister-hO7RUkdA.js} +1 -1
- package/dist/{Functionalreset-CkSuR2ui.js → Functionalreset-LieSrLvz.js} +1 -1
- package/dist/{Functionalsave-C_juXQcb.js → Functionalsave-BvYJdq6M.js} +1 -1
- package/dist/{Functionalsearch-BWGklad5.js → Functionalsearch-CxMyPsNE.js} +1 -1
- package/dist/{Functionalsettings-CEvUHOa7.js → Functionalsettings-DEbullli.js} +1 -1
- package/dist/{Functionalshare-BOaYnkgq.js → Functionalshare-BaSede1c.js} +1 -1
- package/dist/{Functionalshared-DNhv_0TC.js → Functionalshared-CA39SW4R.js} +1 -1
- package/dist/{Functionalshoppingcart-BJl_Vxid.js → Functionalshoppingcart-BjYAfE_n.js} +1 -1
- package/dist/{Functionalshops-CG5XCtEl.js → Functionalshops-Blr-QFKj.js} +1 -1
- package/dist/{Functionalsms-B5OOi9qN.js → Functionalsms-BT7bYQ7Y.js} +1 -1
- package/dist/{Functionalsorting-D_0ci3tJ.js → Functionalsorting-C9GRh7zT.js} +1 -1
- package/dist/{Functionalspinner-DJZUYK1k.js → Functionalspinner-DuD-_Mnk.js} +1 -1
- package/dist/{Functionalstorelayout-D5YWOPb_.js → Functionalstorelayout-hmnfPr-B.js} +1 -1
- package/dist/{Functionalsuccesscircle-DLEuHWjS.js → Functionalsuccesscircle-CvnJtrC1.js} +1 -1
- package/dist/{Functionalsuccesscirclefilled-DyOQixIy.js → Functionalsuccesscirclefilled-CN27HmQp.js} +1 -1
- package/dist/{Functionalswap-CgF3_6Wd.js → Functionalswap-C1b8rSWs.js} +1 -1
- package/dist/{Functionalswitch-Bz1vs2A_.js → Functionalswitch-Cj7NRzBZ.js} +1 -1
- package/dist/{Functionalthumbsup-BG36KKc1.js → Functionalthumbsup-D6-dxP2g.js} +1 -1
- package/dist/{Functionaltimer-DmFG43lk.js → Functionaltimer-BHdD7mIx.js} +1 -1
- package/dist/{Functionaltrash-BMwR36aB.js → Functionaltrash-CojPY_AR.js} +1 -1
- package/dist/{Functionaltruck-CaH_nQ64.js → Functionaltruck-c609Vcql.js} +1 -1
- package/dist/{Functionaluserinfo-Cx1_xL3T.js → Functionaluserinfo-C8i7GKmE.js} +1 -1
- package/dist/{Functionalviewfile-C58B73Lb.js → Functionalviewfile-CCzlhZ-j.js} +1 -1
- package/dist/{Functionalwarningcircle-pOEndtZ-.js → Functionalwarningcircle-C1i2MU6-.js} +1 -1
- package/dist/{Functionalwarningcirclefilled-CP84hI9s.js → Functionalwarningcirclefilled-B3K_ckR6.js} +1 -1
- package/dist/{Functionalwebsite-DyiIYpxW.js → Functionalwebsite-BlxPVfWP.js} +1 -1
- package/dist/{Functionalweight-C1mGn7Se.js → Functionalweight-DpTzOcNo.js} +1 -1
- package/dist/{Toolsassortment-BxyAxLRQ.js → Toolsassortment-xWqHEALg.js} +1 -1
- package/dist/{Toolscoupons-CqVPx1MK.js → Toolscoupons-L9V_M2No.js} +1 -1
- package/dist/{Toolsfavoriteactive-RaSxiYCY.js → Toolsfavoriteactive-C0mQg0nk.js} +1 -1
- package/dist/{Toolsfavoriteinactive-B0TeN_7_.js → Toolsfavoriteinactive-C6SFe1mS.js} +1 -1
- package/dist/{Toolsfuel-CmrAkp2P.js → Toolsfuel-CNpeIRkD.js} +1 -1
- package/dist/{Toolspay-BriKSnGr.js → Toolspay-BTIX12zI.js} +1 -1
- package/dist/{Toolspromo-CVTausKm.js → Toolspromo-CnYFWt7R.js} +1 -1
- package/dist/{Toolsreceipt-BvS7DLGd.js → Toolsreceipt-BR3EA8Fz.js} +1 -1
- package/dist/{Toolsrecipes2-CyUK8dyq.js → Toolsrecipes2-Q86b_ALW.js} +1 -1
- package/dist/{Toolsscan2-XG-pIpbK.js → Toolsscan2-DuQsZ8dZ.js} +1 -1
- package/dist/{Toolsshowxtranew-BlMMztYk.js → Toolsshowxtranew-DJr0dWb1.js} +1 -1
- package/dist/{Toolsshowxtraold-fQXI0f-R.js → Toolsshowxtraold-ClA-JWTH.js} +1 -1
- package/dist/{Toolsstats-e0qoRydk.js → Toolsstats-TBDj5H2P.js} +1 -1
- package/dist/{Toolsstorelocator-BwCWqDdj.js → Toolsstorelocator-IhMQhuLF.js} +1 -1
- package/dist/{Toolswarranty-DRi1kv80.js → Toolswarranty-3eHEtBaM.js} +1 -1
- package/dist/{index-DZSeWJVi.js → index-DhNVRuRv.js} +711 -711
- package/dist/xtra-authentication.js +1 -1
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ne = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var ne = (t, e, s) => e.has(t) ||
|
|
5
|
-
var o = (t, e, s) => (ne(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ?
|
|
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, 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
6
|
var Yt = (t, e, s, i) => ({
|
|
7
7
|
set _(a) {
|
|
8
8
|
m(t, e, a, s);
|
|
@@ -11,7 +11,7 @@ var Yt = (t, e, s, i) => ({
|
|
|
11
11
|
return o(t, e, i);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
import { r, j as n, u as
|
|
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) {
|
|
@@ -46,7 +46,7 @@ function Pt(t, e) {
|
|
|
46
46
|
function X(t, e) {
|
|
47
47
|
return typeof t == "function" ? t(e) : t;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Me(t, e) {
|
|
50
50
|
const {
|
|
51
51
|
type: s = "all",
|
|
52
52
|
exact: i,
|
|
@@ -59,7 +59,7 @@ function Le(t, e) {
|
|
|
59
59
|
if (i) {
|
|
60
60
|
if (e.queryHash !== Se(l, e.options))
|
|
61
61
|
return !1;
|
|
62
|
-
} else if (!
|
|
62
|
+
} else if (!Gt(e.queryKey, l))
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
if (s !== "all") {
|
|
@@ -69,7 +69,7 @@ function Le(t, e) {
|
|
|
69
69
|
}
|
|
70
70
|
return !(typeof u == "boolean" && e.isStale() !== u || a && a !== e.state.fetchStatus || c && !c(e));
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Fe(t, e) {
|
|
73
73
|
const { exact: s, status: i, predicate: a, mutationKey: c } = t;
|
|
74
74
|
if (c) {
|
|
75
75
|
if (!e.options.mutationKey)
|
|
@@ -77,7 +77,7 @@ function Me(t, e) {
|
|
|
77
77
|
if (s) {
|
|
78
78
|
if (wt(e.options.mutationKey) !== wt(c))
|
|
79
79
|
return !1;
|
|
80
|
-
} else if (!
|
|
80
|
+
} else if (!Gt(e.options.mutationKey, c))
|
|
81
81
|
return !1;
|
|
82
82
|
}
|
|
83
83
|
return !(i && e.state.status !== i || a && !a(e));
|
|
@@ -91,19 +91,19 @@ function wt(t) {
|
|
|
91
91
|
(e, s) => le(s) ? Object.keys(s).sort().reduce((i, a) => (i[a] = s[a], i), {}) : s
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !
|
|
94
|
+
function Gt(t, e) {
|
|
95
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !Gt(t[s], e[s])) : !1;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function ns(t, e) {
|
|
98
98
|
if (t === e)
|
|
99
99
|
return t;
|
|
100
|
-
const s =
|
|
100
|
+
const s = Re(t) && Re(e);
|
|
101
101
|
if (s || le(t) && le(e)) {
|
|
102
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 && i.includes(f) || s) && t[f] === void 0 && e[f] === void 0 ? (u[f] = void 0, d++) : (u[f] =
|
|
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
|
}
|
|
@@ -117,42 +117,42 @@ function te(t, e) {
|
|
|
117
117
|
return !1;
|
|
118
118
|
return !0;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Re(t) {
|
|
121
121
|
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
122
122
|
}
|
|
123
123
|
function le(t) {
|
|
124
|
-
if (!
|
|
124
|
+
if (!Oe(t))
|
|
125
125
|
return !1;
|
|
126
126
|
const e = t.constructor;
|
|
127
127
|
if (e === void 0)
|
|
128
128
|
return !0;
|
|
129
129
|
const s = e.prototype;
|
|
130
|
-
return !(!
|
|
130
|
+
return !(!Oe(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Oe(t) {
|
|
133
133
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Js(t) {
|
|
136
136
|
return new Promise((e) => {
|
|
137
137
|
setTimeout(e, t);
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
function ce(t, e, s) {
|
|
141
|
-
return typeof s.structuralSharing == "function" ? s.structuralSharing(t, e) : s.structuralSharing !== !1 ?
|
|
141
|
+
return typeof s.structuralSharing == "function" ? s.structuralSharing(t, e) : s.structuralSharing !== !1 ? ns(t, e) : e;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Is(t, e, s = 0) {
|
|
144
144
|
const i = [...t, e];
|
|
145
145
|
return s && i.length > s ? i.slice(1) : i;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Bs(t, e, s = 0) {
|
|
148
148
|
const i = [e, ...t];
|
|
149
149
|
return s && i.length > s ? i.slice(0, -1) : i;
|
|
150
150
|
}
|
|
151
|
-
var
|
|
152
|
-
function
|
|
153
|
-
return !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
151
|
+
var as = Symbol();
|
|
152
|
+
function os(t, e) {
|
|
153
|
+
return !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === as ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
154
154
|
}
|
|
155
|
-
var mt, at, Et,
|
|
155
|
+
var mt, at, Et, $e, ti = ($e = class extends Ht {
|
|
156
156
|
constructor() {
|
|
157
157
|
super();
|
|
158
158
|
v(this, mt);
|
|
@@ -193,7 +193,7 @@ var mt, at, Et, qe, Ys = (qe = class extends Ht {
|
|
|
193
193
|
var e;
|
|
194
194
|
return typeof o(this, mt) == "boolean" ? o(this, mt) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
195
195
|
}
|
|
196
|
-
}, mt = new WeakMap(), at = new WeakMap(), Et = new WeakMap(),
|
|
196
|
+
}, mt = new WeakMap(), at = new WeakMap(), Et = new WeakMap(), $e), _e = new ti(), kt, ot, At, Ze, ei = (Ze = class extends Ht {
|
|
197
197
|
constructor() {
|
|
198
198
|
super();
|
|
199
199
|
v(this, kt, !0);
|
|
@@ -227,66 +227,66 @@ var mt, at, Et, qe, Ys = (qe = class extends Ht {
|
|
|
227
227
|
isOnline() {
|
|
228
228
|
return o(this, kt);
|
|
229
229
|
}
|
|
230
|
-
}, kt = new WeakMap(), ot = new WeakMap(), At = new WeakMap(),
|
|
231
|
-
function
|
|
230
|
+
}, kt = new WeakMap(), ot = new WeakMap(), At = new WeakMap(), Ze), ee = new ei();
|
|
231
|
+
function si(t) {
|
|
232
232
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function ls(t) {
|
|
235
235
|
return (t ?? "online") === "online" ? ee.isOnline() : !0;
|
|
236
236
|
}
|
|
237
|
-
var
|
|
237
|
+
var cs = class extends Error {
|
|
238
238
|
constructor(t) {
|
|
239
239
|
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
function ae(t) {
|
|
243
|
-
return t instanceof
|
|
243
|
+
return t instanceof cs;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function us(t) {
|
|
246
246
|
let e = !1, s = 0, i = !1, a, c, l;
|
|
247
|
-
const u = new Promise((
|
|
248
|
-
c =
|
|
249
|
-
}), d = (
|
|
250
|
-
var
|
|
251
|
-
i || (_(new
|
|
247
|
+
const u = new Promise((x, b) => {
|
|
248
|
+
c = x, l = b;
|
|
249
|
+
}), d = (x) => {
|
|
250
|
+
var b;
|
|
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
|
-
}, h = () => _e.isFocused() && (t.networkMode === "always" || ee.isOnline()) && t.canRun(), y = () =>
|
|
257
|
-
var
|
|
258
|
-
i || (i = !0, (
|
|
259
|
-
}, _ = (
|
|
260
|
-
var
|
|
261
|
-
i || (i = !0, (
|
|
262
|
-
}, S = () => new Promise((
|
|
263
|
-
var
|
|
256
|
+
}, h = () => _e.isFocused() && (t.networkMode === "always" || ee.isOnline()) && t.canRun(), y = () => ls(t.networkMode) && t.canRun(), g = (x) => {
|
|
257
|
+
var b;
|
|
258
|
+
i || (i = !0, (b = t.onSuccess) == null || b.call(t, x), a == null || a(), c(x));
|
|
259
|
+
}, _ = (x) => {
|
|
260
|
+
var b;
|
|
261
|
+
i || (i = !0, (b = t.onError) == null || b.call(t, x), a == null || a(), l(x));
|
|
262
|
+
}, S = () => new Promise((x) => {
|
|
263
|
+
var b;
|
|
264
264
|
a = (w) => {
|
|
265
|
-
(i || h()) &&
|
|
266
|
-
}, (
|
|
265
|
+
(i || h()) && x(w);
|
|
266
|
+
}, (b = t.onPause) == null || b.call(t);
|
|
267
267
|
}).then(() => {
|
|
268
|
-
var
|
|
269
|
-
a = void 0, i || (
|
|
268
|
+
var x;
|
|
269
|
+
a = void 0, i || (x = t.onContinue) == null || x.call(t);
|
|
270
270
|
}), P = () => {
|
|
271
271
|
if (i)
|
|
272
272
|
return;
|
|
273
|
-
let
|
|
274
|
-
const
|
|
273
|
+
let x;
|
|
274
|
+
const b = s === 0 ? t.initialPromise : void 0;
|
|
275
275
|
try {
|
|
276
|
-
|
|
276
|
+
x = b ?? t.fn();
|
|
277
277
|
} catch (w) {
|
|
278
|
-
|
|
278
|
+
x = Promise.reject(w);
|
|
279
279
|
}
|
|
280
|
-
Promise.resolve(
|
|
281
|
-
var
|
|
280
|
+
Promise.resolve(x).then(g).catch((w) => {
|
|
281
|
+
var A;
|
|
282
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++, (
|
|
289
|
+
s++, (A = t.onFail) == null || A.call(t, s, w), Js(Y).then(() => h() ? void 0 : S()).then(() => {
|
|
290
290
|
e ? _(w) : P();
|
|
291
291
|
});
|
|
292
292
|
});
|
|
@@ -301,7 +301,7 @@ function cs(t) {
|
|
|
301
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) => {
|
|
@@ -360,7 +360,7 @@ function Bs() {
|
|
|
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 = Bs(), yt, Ze, us = (Ze = class {
|
|
|
381
381
|
clearGcTimeout() {
|
|
382
382
|
o(this, yt) && (clearTimeout(o(this, yt)), m(this, yt, void 0));
|
|
383
383
|
}
|
|
384
|
-
}, yt = new WeakMap(),
|
|
384
|
+
}, yt = new WeakMap(), Xe), Nt, Lt, V, D, Vt, gt, Z, st, Ye, ri = (Ye = class extends ds {
|
|
385
385
|
constructor(e) {
|
|
386
386
|
super();
|
|
387
387
|
v(this, Z);
|
|
@@ -389,9 +389,9 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
389
389
|
v(this, Lt);
|
|
390
390
|
v(this, V);
|
|
391
391
|
v(this, D);
|
|
392
|
-
v(this,
|
|
392
|
+
v(this, Vt);
|
|
393
393
|
v(this, gt);
|
|
394
|
-
m(this, gt, !1), m(this,
|
|
394
|
+
m(this, gt, !1), m(this, Vt, e.defaultOptions), this.setOptions(e.options), this.observers = [], m(this, V, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, m(this, Nt, ni(this.options)), this.state = e.state ?? o(this, Nt), this.scheduleGc();
|
|
395
395
|
}
|
|
396
396
|
get meta() {
|
|
397
397
|
return this.options.meta;
|
|
@@ -401,7 +401,7 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
401
401
|
return (e = o(this, D)) == null ? void 0 : e.promise;
|
|
402
402
|
}
|
|
403
403
|
setOptions(e) {
|
|
404
|
-
this.options = { ...o(this,
|
|
404
|
+
this.options = { ...o(this, Vt), ...e }, this.updateGcTime(this.options.gcTime);
|
|
405
405
|
}
|
|
406
406
|
optionalRemove() {
|
|
407
407
|
!this.observers.length && this.state.fetchStatus === "idle" && o(this, V).remove(this);
|
|
@@ -443,7 +443,7 @@ var z = Bs(), yt, Ze, us = (Ze = 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;
|
|
@@ -485,7 +485,7 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
485
485
|
get: () => (m(this, gt, !0), i.signal)
|
|
486
486
|
});
|
|
487
487
|
}, c = () => {
|
|
488
|
-
const h =
|
|
488
|
+
const h = os(this.options, s), y = {
|
|
489
489
|
queryKey: this.queryKey,
|
|
490
490
|
meta: this.meta
|
|
491
491
|
};
|
|
@@ -521,7 +521,7 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
521
521
|
this
|
|
522
522
|
)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
|
|
523
523
|
};
|
|
524
|
-
return m(this, D,
|
|
524
|
+
return m(this, D, us({
|
|
525
525
|
initialPromise: s == null ? void 0 : s.initialPromise,
|
|
526
526
|
fn: l.fetchFn,
|
|
527
527
|
abort: i.abort.bind(i),
|
|
@@ -560,7 +560,7 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
560
560
|
canRun: () => !0
|
|
561
561
|
})), o(this, D).start();
|
|
562
562
|
}
|
|
563
|
-
}, Nt = new WeakMap(), Lt = new WeakMap(), V = new WeakMap(), D = new WeakMap(),
|
|
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
564
|
const s = (i) => {
|
|
565
565
|
switch (e.type) {
|
|
566
566
|
case "failed":
|
|
@@ -582,7 +582,7 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
582
582
|
case "fetch":
|
|
583
583
|
return {
|
|
584
584
|
...i,
|
|
585
|
-
...
|
|
585
|
+
...hs(i.data, this.options),
|
|
586
586
|
fetchMeta: e.meta ?? null
|
|
587
587
|
};
|
|
588
588
|
case "success":
|
|
@@ -629,19 +629,19 @@ var z = Bs(), yt, Ze, us = (Ze = class {
|
|
|
629
629
|
i.onQueryUpdate();
|
|
630
630
|
}), o(this, V).notify({ query: this, type: "updated", action: e });
|
|
631
631
|
});
|
|
632
|
-
},
|
|
633
|
-
function
|
|
632
|
+
}, Ye);
|
|
633
|
+
function hs(t, e) {
|
|
634
634
|
return {
|
|
635
635
|
fetchFailureCount: 0,
|
|
636
636
|
fetchFailureReason: null,
|
|
637
|
-
fetchStatus:
|
|
637
|
+
fetchStatus: ls(e.networkMode) ? "fetching" : "paused",
|
|
638
638
|
...t === void 0 && {
|
|
639
639
|
error: null,
|
|
640
640
|
status: "pending"
|
|
641
641
|
}
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function ni(t) {
|
|
645
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,
|
|
@@ -658,7 +658,7 @@ function ei(t) {
|
|
|
658
658
|
fetchStatus: "idle"
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
var J,
|
|
661
|
+
var J, Je, ai = (Je = class extends Ht {
|
|
662
662
|
constructor(e = {}) {
|
|
663
663
|
super();
|
|
664
664
|
v(this, J);
|
|
@@ -667,7 +667,7 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
667
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,
|
|
@@ -702,12 +702,12 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
702
702
|
find(e) {
|
|
703
703
|
const s = { exact: !0, ...e };
|
|
704
704
|
return this.getAll().find(
|
|
705
|
-
(i) =>
|
|
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((i) =>
|
|
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,14 +730,14 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
730
730
|
});
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
}, J = new WeakMap(),
|
|
733
|
+
}, J = new WeakMap(), Je), I, T, vt, B, nt, Ie, oi = (Ie = class extends ds {
|
|
734
734
|
constructor(e) {
|
|
735
735
|
super();
|
|
736
736
|
v(this, B);
|
|
737
737
|
v(this, I);
|
|
738
738
|
v(this, T);
|
|
739
739
|
v(this, vt);
|
|
740
|
-
this.mutationId = e.mutationId, m(this, T, e.mutationCache), m(this, I, []), this.state = e.state ||
|
|
740
|
+
this.mutationId = e.mutationId, m(this, T, e.mutationCache), m(this, I, []), this.state = e.state || fs(), this.setOptions(e.options), this.scheduleGc();
|
|
741
741
|
}
|
|
742
742
|
setOptions(e) {
|
|
743
743
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -768,11 +768,11 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
768
768
|
this.execute(this.state.variables);
|
|
769
769
|
}
|
|
770
770
|
async execute(e) {
|
|
771
|
-
var a, c, l, u, d, p, f, h, y, g, _, S, P,
|
|
772
|
-
m(this, vt,
|
|
771
|
+
var a, c, l, u, d, p, f, h, y, g, _, S, P, x, b, w, M, O, Y, et;
|
|
772
|
+
m(this, vt, us({
|
|
773
773
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
774
|
-
onFail: (
|
|
775
|
-
j(this, B, nt).call(this, { type: "failed", failureCount:
|
|
774
|
+
onFail: (A, $) => {
|
|
775
|
+
j(this, B, nt).call(this, { type: "failed", failureCount: A, error: $ });
|
|
776
776
|
},
|
|
777
777
|
onPause: () => {
|
|
778
778
|
j(this, B, nt).call(this, { type: "pause" });
|
|
@@ -801,50 +801,50 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
801
801
|
isPaused: i
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
|
-
const
|
|
804
|
+
const A = await o(this, vt).start();
|
|
805
805
|
return await ((p = (d = o(this, T).config).onSuccess) == null ? void 0 : p.call(
|
|
806
806
|
d,
|
|
807
|
-
|
|
807
|
+
A,
|
|
808
808
|
e,
|
|
809
809
|
this.state.context,
|
|
810
810
|
this
|
|
811
|
-
)), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f,
|
|
811
|
+
)), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f, A, e, this.state.context)), await ((g = (y = o(this, T).config).onSettled) == null ? void 0 : g.call(
|
|
812
812
|
y,
|
|
813
|
-
|
|
813
|
+
A,
|
|
814
814
|
null,
|
|
815
815
|
this.state.variables,
|
|
816
816
|
this.state.context,
|
|
817
817
|
this
|
|
818
|
-
)), await ((S = (_ = this.options).onSettled) == null ? void 0 : S.call(_,
|
|
819
|
-
} catch (
|
|
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
|
+
} catch (A) {
|
|
820
820
|
try {
|
|
821
|
-
throw await ((
|
|
821
|
+
throw await ((x = (P = o(this, T).config).onError) == null ? void 0 : x.call(
|
|
822
822
|
P,
|
|
823
|
-
|
|
823
|
+
A,
|
|
824
824
|
e,
|
|
825
825
|
this.state.context,
|
|
826
826
|
this
|
|
827
|
-
)), await ((w = (
|
|
828
|
-
|
|
829
|
-
|
|
827
|
+
)), await ((w = (b = this.options).onError) == null ? void 0 : w.call(
|
|
828
|
+
b,
|
|
829
|
+
A,
|
|
830
830
|
e,
|
|
831
831
|
this.state.context
|
|
832
|
-
)), await ((O = (
|
|
833
|
-
|
|
832
|
+
)), await ((O = (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,
|
|
837
837
|
this.state.context,
|
|
838
838
|
this
|
|
839
839
|
)), await ((et = (Y = this.options).onSettled) == null ? void 0 : et.call(
|
|
840
840
|
Y,
|
|
841
841
|
void 0,
|
|
842
|
-
|
|
842
|
+
A,
|
|
843
843
|
e,
|
|
844
844
|
this.state.context
|
|
845
|
-
)),
|
|
845
|
+
)), A;
|
|
846
846
|
} finally {
|
|
847
|
-
j(this, B, nt).call(this, { type: "error", error:
|
|
847
|
+
j(this, B, nt).call(this, { type: "error", error: A });
|
|
848
848
|
}
|
|
849
849
|
} finally {
|
|
850
850
|
o(this, T).runNext(this);
|
|
@@ -913,8 +913,8 @@ var J, Ye, si = (Ye = class extends Ht {
|
|
|
913
913
|
action: e
|
|
914
914
|
});
|
|
915
915
|
});
|
|
916
|
-
},
|
|
917
|
-
function
|
|
916
|
+
}, Ie);
|
|
917
|
+
function fs() {
|
|
918
918
|
return {
|
|
919
919
|
context: void 0,
|
|
920
920
|
data: void 0,
|
|
@@ -927,17 +927,17 @@ function hs() {
|
|
|
927
927
|
submittedAt: 0
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
|
-
var W,
|
|
930
|
+
var W, qt, Be, li = (Be = class extends Ht {
|
|
931
931
|
constructor(e = {}) {
|
|
932
932
|
super();
|
|
933
933
|
v(this, W);
|
|
934
|
-
v(this,
|
|
935
|
-
this.config = e, m(this, W, /* @__PURE__ */ new Map()), m(this,
|
|
934
|
+
v(this, qt);
|
|
935
|
+
this.config = e, m(this, W, /* @__PURE__ */ new Map()), m(this, qt, Date.now());
|
|
936
936
|
}
|
|
937
937
|
build(e, s, i) {
|
|
938
|
-
const a = new
|
|
938
|
+
const a = new oi({
|
|
939
939
|
mutationCache: this,
|
|
940
|
-
mutationId: ++Yt(this,
|
|
940
|
+
mutationId: ++Yt(this, qt)._,
|
|
941
941
|
options: e.defaultMutationOptions(s),
|
|
942
942
|
state: i
|
|
943
943
|
});
|
|
@@ -979,11 +979,11 @@ var W, Vt, Ie, ri = (Ie = class extends Ht {
|
|
|
979
979
|
find(e) {
|
|
980
980
|
const s = { exact: !0, ...e };
|
|
981
981
|
return this.getAll().find(
|
|
982
|
-
(i) =>
|
|
982
|
+
(i) => Fe(s, i)
|
|
983
983
|
);
|
|
984
984
|
}
|
|
985
985
|
findAll(e = {}) {
|
|
986
|
-
return this.getAll().filter((s) =>
|
|
986
|
+
return this.getAll().filter((s) => Fe(e, s));
|
|
987
987
|
}
|
|
988
988
|
notify(e) {
|
|
989
989
|
z.batch(() => {
|
|
@@ -1000,12 +1000,12 @@ var W, Vt, Ie, ri = (Ie = class extends Ht {
|
|
|
1000
1000
|
)
|
|
1001
1001
|
);
|
|
1002
1002
|
}
|
|
1003
|
-
}, W = new WeakMap(),
|
|
1003
|
+
}, W = new WeakMap(), qt = new WeakMap(), Be);
|
|
1004
1004
|
function Jt(t) {
|
|
1005
1005
|
var e;
|
|
1006
1006
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function ze(t) {
|
|
1009
1009
|
return {
|
|
1010
1010
|
onFetch: (e, s) => {
|
|
1011
1011
|
var f, h, y, g, _;
|
|
@@ -1020,39 +1020,39 @@ function Oe(t) {
|
|
|
1020
1020
|
S = !0;
|
|
1021
1021
|
}), e.signal)
|
|
1022
1022
|
});
|
|
1023
|
-
},
|
|
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
|
-
const et = await
|
|
1035
|
+
const et = await x(
|
|
1036
1036
|
Y
|
|
1037
|
-
), { maxPages:
|
|
1037
|
+
), { maxPages: A } = e.options, $ = O ? Bs : Is;
|
|
1038
1038
|
return {
|
|
1039
|
-
pages: $(w.pages, et,
|
|
1040
|
-
pageParams: $(w.pageParams,
|
|
1039
|
+
pages: $(w.pages, et, A),
|
|
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 =
|
|
1048
|
-
u = await
|
|
1047
|
+
}, Y = M(i, O);
|
|
1048
|
+
u = await b(O, Y, w);
|
|
1049
1049
|
} else {
|
|
1050
1050
|
const w = t ?? c.length;
|
|
1051
1051
|
do {
|
|
1052
|
-
const
|
|
1053
|
-
if (d > 0 &&
|
|
1052
|
+
const M = d === 0 ? l[0] ?? i.initialPageParam : De(i, u);
|
|
1053
|
+
if (d > 0 && M == null)
|
|
1054
1054
|
break;
|
|
1055
|
-
u = await
|
|
1055
|
+
u = await b(u, M), d++;
|
|
1056
1056
|
} while (d < w);
|
|
1057
1057
|
}
|
|
1058
1058
|
return u;
|
|
@@ -1073,7 +1073,7 @@ function Oe(t) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function De(t, { pages: e, pageParams: s }) {
|
|
1077
1077
|
const i = e.length - 1;
|
|
1078
1078
|
return e.length > 0 ? t.getNextPageParam(
|
|
1079
1079
|
e[i],
|
|
@@ -1082,13 +1082,13 @@ function ze(t, { pages: e, pageParams: s }) {
|
|
|
1082
1082
|
s
|
|
1083
1083
|
) : void 0;
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function ci(t, { pages: e, pageParams: s }) {
|
|
1086
1086
|
var i;
|
|
1087
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
|
-
var
|
|
1089
|
+
var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
1090
1090
|
constructor(t = {}) {
|
|
1091
|
-
v(this,
|
|
1091
|
+
v(this, R);
|
|
1092
1092
|
v(this, lt);
|
|
1093
1093
|
v(this, ct);
|
|
1094
1094
|
v(this, Mt);
|
|
@@ -1096,13 +1096,13 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1096
1096
|
v(this, ut);
|
|
1097
1097
|
v(this, Rt);
|
|
1098
1098
|
v(this, Ot);
|
|
1099
|
-
m(this,
|
|
1099
|
+
m(this, R, t.queryCache || new 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) => {
|
|
1103
|
-
t && (await this.resumePausedMutations(), o(this,
|
|
1103
|
+
t && (await this.resumePausedMutations(), o(this, R).onFocus());
|
|
1104
1104
|
})), m(this, Ot, ee.subscribe(async (t) => {
|
|
1105
|
-
t && (await this.resumePausedMutations(), o(this,
|
|
1105
|
+
t && (await this.resumePausedMutations(), o(this, R).onOnline());
|
|
1106
1106
|
})));
|
|
1107
1107
|
}
|
|
1108
1108
|
unmount() {
|
|
@@ -1110,7 +1110,7 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1110
1110
|
Yt(this, ut)._--, o(this, ut) === 0 && ((t = o(this, Rt)) == null || t.call(this), m(this, Rt, void 0), (e = o(this, Ot)) == null || e.call(this), m(this, Ot, void 0));
|
|
1111
1111
|
}
|
|
1112
1112
|
isFetching(t) {
|
|
1113
|
-
return o(this,
|
|
1113
|
+
return o(this, R).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
1114
1114
|
}
|
|
1115
1115
|
isMutating(t) {
|
|
1116
1116
|
return o(this, lt).findAll({ ...t, status: "pending" }).length;
|
|
@@ -1118,33 +1118,33 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1118
1118
|
getQueryData(t) {
|
|
1119
1119
|
var s;
|
|
1120
1120
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
1121
|
-
return (s = o(this,
|
|
1121
|
+
return (s = o(this, R).get(e.queryHash)) == null ? void 0 : s.state.data;
|
|
1122
1122
|
}
|
|
1123
1123
|
ensureQueryData(t) {
|
|
1124
1124
|
const e = this.getQueryData(t.queryKey);
|
|
1125
1125
|
if (e === void 0)
|
|
1126
1126
|
return this.fetchQuery(t);
|
|
1127
1127
|
{
|
|
1128
|
-
const s = this.defaultQueryOptions(t), i = o(this,
|
|
1128
|
+
const s = this.defaultQueryOptions(t), i = o(this, R).build(this, s);
|
|
1129
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
|
-
return o(this,
|
|
1133
|
+
return o(this, R).findAll(t).map(({ queryKey: e, state: s }) => {
|
|
1134
1134
|
const i = s.data;
|
|
1135
1135
|
return [e, i];
|
|
1136
1136
|
});
|
|
1137
1137
|
}
|
|
1138
1138
|
setQueryData(t, e, s) {
|
|
1139
|
-
const i = this.defaultQueryOptions({ queryKey: t }), a = o(this,
|
|
1139
|
+
const i = this.defaultQueryOptions({ queryKey: t }), a = o(this, R).get(
|
|
1140
1140
|
i.queryHash
|
|
1141
|
-
), c = a == null ? void 0 : a.state.data, l =
|
|
1141
|
+
), c = a == null ? void 0 : a.state.data, l = Ys(e, c);
|
|
1142
1142
|
if (l !== void 0)
|
|
1143
|
-
return o(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,
|
|
1147
|
+
() => o(this, R).findAll(t).map(({ queryKey: i }) => [
|
|
1148
1148
|
i,
|
|
1149
1149
|
this.setQueryData(i, e, s)
|
|
1150
1150
|
])
|
|
@@ -1153,10 +1153,10 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1153
1153
|
getQueryState(t) {
|
|
1154
1154
|
var s;
|
|
1155
1155
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
1156
|
-
return (s = o(this,
|
|
1156
|
+
return (s = o(this, R).get(e.queryHash)) == null ? void 0 : s.state;
|
|
1157
1157
|
}
|
|
1158
1158
|
removeQueries(t) {
|
|
1159
|
-
const e = o(this,
|
|
1159
|
+
const e = o(this, R);
|
|
1160
1160
|
z.batch(() => {
|
|
1161
1161
|
e.findAll(t).forEach((s) => {
|
|
1162
1162
|
e.remove(s);
|
|
@@ -1164,7 +1164,7 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
1166
|
resetQueries(t, e) {
|
|
1167
|
-
const s = o(this,
|
|
1167
|
+
const s = o(this, R), i = {
|
|
1168
1168
|
type: "active",
|
|
1169
1169
|
...t
|
|
1170
1170
|
};
|
|
@@ -1174,13 +1174,13 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
cancelQueries(t = {}, e = {}) {
|
|
1176
1176
|
const s = { revert: !0, ...e }, i = z.batch(
|
|
1177
|
-
() => o(this,
|
|
1177
|
+
() => o(this, R).findAll(t).map((a) => a.cancel(s))
|
|
1178
1178
|
);
|
|
1179
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,
|
|
1183
|
+
if (o(this, R).findAll(t).forEach((i) => {
|
|
1184
1184
|
i.invalidate();
|
|
1185
1185
|
}), t.refetchType === "none")
|
|
1186
1186
|
return Promise.resolve();
|
|
@@ -1196,7 +1196,7 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1196
1196
|
...e,
|
|
1197
1197
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
1198
1198
|
}, i = z.batch(
|
|
1199
|
-
() => o(this,
|
|
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
|
})
|
|
@@ -1206,7 +1206,7 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1206
1206
|
fetchQuery(t) {
|
|
1207
1207
|
const e = this.defaultQueryOptions(t);
|
|
1208
1208
|
e.retry === void 0 && (e.retry = !1);
|
|
1209
|
-
const s = o(this,
|
|
1209
|
+
const s = o(this, R).build(this, e);
|
|
1210
1210
|
return s.isStaleByTime(
|
|
1211
1211
|
Pt(e.staleTime, s)
|
|
1212
1212
|
) ? s.fetch(e) : Promise.resolve(s.state.data);
|
|
@@ -1215,19 +1215,19 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1215
1215
|
return this.fetchQuery(t).then(q).catch(q);
|
|
1216
1216
|
}
|
|
1217
1217
|
fetchInfiniteQuery(t) {
|
|
1218
|
-
return t.behavior =
|
|
1218
|
+
return t.behavior = ze(t.pages), this.fetchQuery(t);
|
|
1219
1219
|
}
|
|
1220
1220
|
prefetchInfiniteQuery(t) {
|
|
1221
1221
|
return this.fetchInfiniteQuery(t).then(q).catch(q);
|
|
1222
1222
|
}
|
|
1223
1223
|
ensureInfiniteQueryData(t) {
|
|
1224
|
-
return t.behavior =
|
|
1224
|
+
return t.behavior = ze(t.pages), this.ensureQueryData(t);
|
|
1225
1225
|
}
|
|
1226
1226
|
resumePausedMutations() {
|
|
1227
1227
|
return ee.isOnline() ? o(this, lt).resumePausedMutations() : Promise.resolve();
|
|
1228
1228
|
}
|
|
1229
1229
|
getQueryCache() {
|
|
1230
|
-
return o(this,
|
|
1230
|
+
return o(this, R);
|
|
1231
1231
|
}
|
|
1232
1232
|
getMutationCache() {
|
|
1233
1233
|
return o(this, lt);
|
|
@@ -1248,7 +1248,7 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1248
1248
|
const e = [...o(this, Mt).values()];
|
|
1249
1249
|
let s = {};
|
|
1250
1250
|
return e.forEach((i) => {
|
|
1251
|
-
|
|
1251
|
+
Gt(t, i.queryKey) && (s = { ...s, ...i.defaultOptions });
|
|
1252
1252
|
}), s;
|
|
1253
1253
|
}
|
|
1254
1254
|
setMutationDefaults(t, e) {
|
|
@@ -1261,7 +1261,7 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1261
1261
|
const e = [...o(this, Ft).values()];
|
|
1262
1262
|
let s = {};
|
|
1263
1263
|
return e.forEach((i) => {
|
|
1264
|
-
|
|
1264
|
+
Gt(t, i.mutationKey) && (s = { ...s, ...i.defaultOptions });
|
|
1265
1265
|
}), s;
|
|
1266
1266
|
}
|
|
1267
1267
|
defaultQueryOptions(t) {
|
|
@@ -1276,7 +1276,7 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1276
1276
|
return e.queryHash || (e.queryHash = Se(
|
|
1277
1277
|
e.queryKey,
|
|
1278
1278
|
e
|
|
1279
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn ===
|
|
1279
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === as && (e.enabled = !1), e;
|
|
1280
1280
|
}
|
|
1281
1281
|
defaultMutationOptions(t) {
|
|
1282
1282
|
return t != null && t._defaulted ? t : {
|
|
@@ -1287,20 +1287,20 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
}
|
|
1289
1289
|
clear() {
|
|
1290
|
-
o(this,
|
|
1290
|
+
o(this, R).clear(), o(this, lt).clear();
|
|
1291
1291
|
}
|
|
1292
|
-
},
|
|
1292
|
+
}, R = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), Mt = new WeakMap(), Ft = new WeakMap(), ut = new WeakMap(), Rt = new WeakMap(), Ot = new WeakMap(), ts), Q, k, $t, U, Ct, zt, tt, Zt, Dt, Tt, xt, bt, dt, Ut, L, Wt, ue, de, he, fe, pe, me, ye, ms, es, ui = (es = class extends Ht {
|
|
1293
1293
|
constructor(e, s) {
|
|
1294
1294
|
super();
|
|
1295
|
-
v(this,
|
|
1295
|
+
v(this, L);
|
|
1296
1296
|
v(this, Q);
|
|
1297
|
-
v(this,
|
|
1298
|
-
v(this,
|
|
1297
|
+
v(this, k);
|
|
1298
|
+
v(this, $t);
|
|
1299
1299
|
v(this, U);
|
|
1300
1300
|
v(this, Ct);
|
|
1301
1301
|
v(this, zt);
|
|
1302
1302
|
v(this, tt);
|
|
1303
|
-
v(this,
|
|
1303
|
+
v(this, Zt);
|
|
1304
1304
|
v(this, Dt);
|
|
1305
1305
|
// This property keeps track of the last query with defined data.
|
|
1306
1306
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
@@ -1315,52 +1315,52 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1315
1315
|
this.refetch = this.refetch.bind(this);
|
|
1316
1316
|
}
|
|
1317
1317
|
onSubscribe() {
|
|
1318
|
-
this.listeners.size === 1 && (o(this,
|
|
1318
|
+
this.listeners.size === 1 && (o(this, k).addObserver(this), Te(o(this, k), this.options) ? j(this, L, Wt).call(this) : this.updateResult(), j(this, L, fe).call(this));
|
|
1319
1319
|
}
|
|
1320
1320
|
onUnsubscribe() {
|
|
1321
1321
|
this.hasListeners() || this.destroy();
|
|
1322
1322
|
}
|
|
1323
1323
|
shouldFetchOnReconnect() {
|
|
1324
1324
|
return ge(
|
|
1325
|
-
o(this,
|
|
1325
|
+
o(this, k),
|
|
1326
1326
|
this.options,
|
|
1327
1327
|
this.options.refetchOnReconnect
|
|
1328
1328
|
);
|
|
1329
1329
|
}
|
|
1330
1330
|
shouldFetchOnWindowFocus() {
|
|
1331
1331
|
return ge(
|
|
1332
|
-
o(this,
|
|
1332
|
+
o(this, k),
|
|
1333
1333
|
this.options,
|
|
1334
1334
|
this.options.refetchOnWindowFocus
|
|
1335
1335
|
);
|
|
1336
1336
|
}
|
|
1337
1337
|
destroy() {
|
|
1338
|
-
this.listeners = /* @__PURE__ */ new Set(), j(this,
|
|
1338
|
+
this.listeners = /* @__PURE__ */ new Set(), j(this, L, pe).call(this), j(this, L, me).call(this), o(this, k).removeObserver(this);
|
|
1339
1339
|
}
|
|
1340
1340
|
setOptions(e, s) {
|
|
1341
|
-
const i = this.options, a = o(this,
|
|
1342
|
-
if (this.options = o(this, Q).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof X(this.options.enabled, o(this,
|
|
1341
|
+
const i = this.options, a = o(this, k);
|
|
1342
|
+
if (this.options = o(this, Q).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof X(this.options.enabled, o(this, k)) != "boolean")
|
|
1343
1343
|
throw new Error(
|
|
1344
1344
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
1345
1345
|
);
|
|
1346
|
-
j(this,
|
|
1346
|
+
j(this, L, ye).call(this), o(this, k).setOptions(this.options), i._defaulted && !te(this.options, i) && o(this, Q).getQueryCache().notify({
|
|
1347
1347
|
type: "observerOptionsUpdated",
|
|
1348
|
-
query: o(this,
|
|
1348
|
+
query: o(this, k),
|
|
1349
1349
|
observer: this
|
|
1350
1350
|
});
|
|
1351
1351
|
const c = this.hasListeners();
|
|
1352
|
-
c &&
|
|
1353
|
-
o(this,
|
|
1352
|
+
c && Ue(
|
|
1353
|
+
o(this, k),
|
|
1354
1354
|
a,
|
|
1355
1355
|
this.options,
|
|
1356
1356
|
i
|
|
1357
|
-
) && j(this,
|
|
1358
|
-
const l = j(this,
|
|
1359
|
-
c && (o(this,
|
|
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
|
+
const l = j(this, L, de).call(this);
|
|
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
1362
|
const s = o(this, Q).getQueryCache().build(o(this, Q), e), i = this.createResult(s, e);
|
|
1363
|
-
return
|
|
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);
|
|
@@ -1379,7 +1379,7 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1379
1379
|
o(this, Ut).add(e);
|
|
1380
1380
|
}
|
|
1381
1381
|
getCurrentQuery() {
|
|
1382
|
-
return o(this,
|
|
1382
|
+
return o(this, k);
|
|
1383
1383
|
}
|
|
1384
1384
|
refetch({ ...e } = {}) {
|
|
1385
1385
|
return this.fetch({
|
|
@@ -1391,63 +1391,63 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1391
1391
|
return i.isFetchingOptimistic = !0, i.fetch().then(() => this.createResult(i, s));
|
|
1392
1392
|
}
|
|
1393
1393
|
fetch(e) {
|
|
1394
|
-
return j(this,
|
|
1394
|
+
return j(this, L, Wt).call(this, {
|
|
1395
1395
|
...e,
|
|
1396
1396
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
1397
1397
|
}).then(() => (this.updateResult(), o(this, U)));
|
|
1398
1398
|
}
|
|
1399
1399
|
createResult(e, s) {
|
|
1400
1400
|
var et;
|
|
1401
|
-
const i = o(this,
|
|
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
|
|
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
1410
|
let { error: _, errorUpdatedAt: S, status: P } = h;
|
|
1411
1411
|
if (s.select && h.data !== void 0)
|
|
1412
|
-
if (c && h.data === (l == null ? void 0 : l.data) && s.select === o(this,
|
|
1412
|
+
if (c && h.data === (l == null ? void 0 : l.data) && s.select === o(this, Zt))
|
|
1413
1413
|
g = o(this, Dt);
|
|
1414
1414
|
else
|
|
1415
1415
|
try {
|
|
1416
|
-
m(this,
|
|
1417
|
-
} catch (
|
|
1418
|
-
m(this, tt,
|
|
1416
|
+
m(this, Zt, s.select), g = s.select(h.data), g = ce(c == null ? void 0 : c.data, g, s), m(this, Dt, g), m(this, tt, null);
|
|
1417
|
+
} catch (A) {
|
|
1418
|
+
m(this, tt, A);
|
|
1419
1419
|
}
|
|
1420
1420
|
else
|
|
1421
1421
|
g = h.data;
|
|
1422
1422
|
if (s.placeholderData !== void 0 && g === void 0 && P === "pending") {
|
|
1423
|
-
let
|
|
1423
|
+
let A;
|
|
1424
1424
|
if (c != null && c.isPlaceholderData && s.placeholderData === (u == null ? void 0 : u.placeholderData))
|
|
1425
|
-
|
|
1426
|
-
else if (
|
|
1425
|
+
A = c.data;
|
|
1426
|
+
else if (A = typeof s.placeholderData == "function" ? s.placeholderData(
|
|
1427
1427
|
(et = o(this, Tt)) == null ? void 0 : et.state.data,
|
|
1428
1428
|
o(this, Tt)
|
|
1429
|
-
) : s.placeholderData, s.select &&
|
|
1429
|
+
) : s.placeholderData, s.select && A !== void 0)
|
|
1430
1430
|
try {
|
|
1431
|
-
|
|
1431
|
+
A = s.select(A), m(this, tt, null);
|
|
1432
1432
|
} catch ($) {
|
|
1433
1433
|
m(this, tt, $);
|
|
1434
1434
|
}
|
|
1435
|
-
|
|
1435
|
+
A !== void 0 && (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
1441
|
o(this, tt) && (_ = o(this, tt), g = o(this, Dt), S = Date.now(), P = "error");
|
|
1442
|
-
const
|
|
1442
|
+
const x = h.fetchStatus === "fetching", b = P === "pending", w = P === "error", M = b && x, O = g !== void 0;
|
|
1443
1443
|
return {
|
|
1444
1444
|
status: P,
|
|
1445
1445
|
fetchStatus: h.fetchStatus,
|
|
1446
|
-
isPending:
|
|
1446
|
+
isPending: b,
|
|
1447
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
1453
|
error: _,
|
|
@@ -1457,8 +1457,8 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1457
1457
|
errorUpdateCount: h.errorUpdateCount,
|
|
1458
1458
|
isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
|
|
1459
1459
|
isFetchedAfterMount: h.dataUpdateCount > p.dataUpdateCount || h.errorUpdateCount > p.errorUpdateCount,
|
|
1460
|
-
isFetching:
|
|
1461
|
-
isRefetching:
|
|
1460
|
+
isFetching: x,
|
|
1461
|
+
isRefetching: x && !b,
|
|
1462
1462
|
isLoadingError: w && !O,
|
|
1463
1463
|
isPaused: h.fetchStatus === "paused",
|
|
1464
1464
|
isPlaceholderData: y,
|
|
@@ -1468,8 +1468,8 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1468
1468
|
};
|
|
1469
1469
|
}
|
|
1470
1470
|
updateResult(e) {
|
|
1471
|
-
const s = o(this, U), i = this.createResult(o(this,
|
|
1472
|
-
if (m(this, Ct, o(this,
|
|
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
1474
|
m(this, U, i);
|
|
1475
1475
|
const a = {}, c = () => {
|
|
@@ -1486,63 +1486,63 @@ var F, lt, ct, Mt, Ft, ut, Rt, Ot, Be, fs = (Be = class {
|
|
|
1486
1486
|
return o(this, U)[f] !== s[f] && d.has(f);
|
|
1487
1487
|
});
|
|
1488
1488
|
};
|
|
1489
|
-
(e == null ? void 0 : e.listeners) !== !1 && c() && (a.listeners = !0), j(this,
|
|
1489
|
+
(e == null ? void 0 : e.listeners) !== !1 && c() && (a.listeners = !0), j(this, L, ms).call(this, { ...a, ...e });
|
|
1490
1490
|
}
|
|
1491
1491
|
onQueryUpdate() {
|
|
1492
|
-
this.updateResult(), this.hasListeners() && j(this,
|
|
1492
|
+
this.updateResult(), this.hasListeners() && j(this, L, fe).call(this);
|
|
1493
1493
|
}
|
|
1494
|
-
}, Q = new WeakMap(),
|
|
1495
|
-
j(this,
|
|
1496
|
-
let s = o(this,
|
|
1494
|
+
}, Q = new WeakMap(), k = new WeakMap(), $t = new WeakMap(), U = new WeakMap(), Ct = new WeakMap(), zt = new WeakMap(), tt = new WeakMap(), Zt = new WeakMap(), Dt = new WeakMap(), Tt = new WeakMap(), xt = new WeakMap(), bt = new WeakMap(), dt = new WeakMap(), Ut = new WeakMap(), L = new WeakSet(), Wt = function(e) {
|
|
1495
|
+
j(this, L, ye).call(this);
|
|
1496
|
+
let s = o(this, k).fetch(
|
|
1497
1497
|
this.options,
|
|
1498
1498
|
e
|
|
1499
1499
|
);
|
|
1500
1500
|
return e != null && e.throwOnError || (s = s.catch(q)), s;
|
|
1501
1501
|
}, ue = function() {
|
|
1502
|
-
j(this,
|
|
1502
|
+
j(this, L, pe).call(this);
|
|
1503
1503
|
const e = Pt(
|
|
1504
1504
|
this.options.staleTime,
|
|
1505
|
-
o(this,
|
|
1505
|
+
o(this, k)
|
|
1506
1506
|
);
|
|
1507
1507
|
if (Qt || o(this, U).isStale || !oe(e))
|
|
1508
1508
|
return;
|
|
1509
|
-
const i =
|
|
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
|
-
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(o(this,
|
|
1514
|
+
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(o(this, k)) : this.options.refetchInterval) ?? !1;
|
|
1515
1515
|
}, he = function(e) {
|
|
1516
|
-
j(this,
|
|
1517
|
-
(this.options.refetchIntervalInBackground || _e.isFocused()) && j(this,
|
|
1516
|
+
j(this, L, me).call(this), m(this, dt, e), !(Qt || X(this.options.enabled, o(this, k)) === !1 || !oe(o(this, dt)) || o(this, dt) === 0) && m(this, bt, setInterval(() => {
|
|
1517
|
+
(this.options.refetchIntervalInBackground || _e.isFocused()) && j(this, L, Wt).call(this);
|
|
1518
1518
|
}, o(this, dt)));
|
|
1519
1519
|
}, fe = function() {
|
|
1520
|
-
j(this,
|
|
1520
|
+
j(this, L, ue).call(this), j(this, L, he).call(this, j(this, L, de).call(this));
|
|
1521
1521
|
}, pe = function() {
|
|
1522
1522
|
o(this, xt) && (clearTimeout(o(this, xt)), m(this, xt, void 0));
|
|
1523
1523
|
}, me = function() {
|
|
1524
1524
|
o(this, bt) && (clearInterval(o(this, bt)), m(this, bt, void 0));
|
|
1525
1525
|
}, ye = function() {
|
|
1526
1526
|
const e = o(this, Q).getQueryCache().build(o(this, Q), this.options);
|
|
1527
|
-
if (e === o(this,
|
|
1527
|
+
if (e === o(this, k))
|
|
1528
1528
|
return;
|
|
1529
|
-
const s = o(this,
|
|
1530
|
-
m(this,
|
|
1531
|
-
},
|
|
1529
|
+
const s = o(this, k);
|
|
1530
|
+
m(this, k, e), m(this, $t, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
|
|
1531
|
+
}, ms = function(e) {
|
|
1532
1532
|
z.batch(() => {
|
|
1533
1533
|
e.listeners && this.listeners.forEach((s) => {
|
|
1534
1534
|
s(o(this, U));
|
|
1535
1535
|
}), o(this, Q).getQueryCache().notify({
|
|
1536
|
-
query: o(this,
|
|
1536
|
+
query: o(this, k),
|
|
1537
1537
|
type: "observerResultsUpdated"
|
|
1538
1538
|
});
|
|
1539
1539
|
});
|
|
1540
|
-
},
|
|
1541
|
-
function
|
|
1540
|
+
}, es);
|
|
1541
|
+
function 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
|
-
function
|
|
1545
|
-
return
|
|
1544
|
+
function Te(t, e) {
|
|
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) {
|
|
@@ -1551,16 +1551,16 @@ function ge(t, e, s) {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
return !1;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Ue(t, e, s, i) {
|
|
1555
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, it, rt, Bt, ve,
|
|
1563
|
+
var ht, ft, H, it, rt, Bt, ve, ss, fi = (ss = class extends Ht {
|
|
1564
1564
|
constructor(e, s) {
|
|
1565
1565
|
super();
|
|
1566
1566
|
v(this, rt);
|
|
@@ -1602,7 +1602,7 @@ var ht, ft, H, it, rt, Bt, ve, es, ci = (es = class extends Ht {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
}, ht = new WeakMap(), ft = new WeakMap(), H = new WeakMap(), it = new WeakMap(), rt = new WeakSet(), Bt = function() {
|
|
1604
1604
|
var s;
|
|
1605
|
-
const e = ((s = o(this, H)) == null ? void 0 : s.state) ??
|
|
1605
|
+
const e = ((s = o(this, H)) == null ? void 0 : s.state) ?? fs();
|
|
1606
1606
|
m(this, ft, {
|
|
1607
1607
|
...e,
|
|
1608
1608
|
isPending: e.status === "pending",
|
|
@@ -1629,21 +1629,21 @@ var ht, ft, H, it, rt, Bt, ve, es, ci = (es = class extends Ht {
|
|
|
1629
1629
|
f(o(this, ft));
|
|
1630
1630
|
});
|
|
1631
1631
|
});
|
|
1632
|
-
},
|
|
1632
|
+
}, ss), ys = r.createContext(
|
|
1633
1633
|
void 0
|
|
1634
1634
|
), Ee = (t) => {
|
|
1635
|
-
const e = r.useContext(
|
|
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(
|
|
1645
|
-
|
|
1646
|
-
function
|
|
1644
|
+
}), [t]), /* @__PURE__ */ n.jsx(ys.Provider, { value: t, children: e })), gs = r.createContext(!1), mi = () => r.useContext(gs);
|
|
1645
|
+
gs.Provider;
|
|
1646
|
+
function yi() {
|
|
1647
1647
|
let t = !1;
|
|
1648
1648
|
return {
|
|
1649
1649
|
clearReset: () => {
|
|
@@ -1655,35 +1655,35 @@ function hi() {
|
|
|
1655
1655
|
isReset: () => t
|
|
1656
1656
|
};
|
|
1657
1657
|
}
|
|
1658
|
-
var
|
|
1659
|
-
function
|
|
1658
|
+
var gi = r.createContext(yi()), vi = () => r.useContext(gi);
|
|
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
|
-
},
|
|
1666
|
+
}, bi = (t) => {
|
|
1667
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
1674
|
query: i
|
|
1675
|
-
}) => t.isError && !e.isReset() && !t.isFetching && 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 i = Ee(), a =
|
|
1682
|
+
const i = Ee(), a = mi(), c = vi(), l = i.defaultQueryOptions(t);
|
|
1683
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",
|
|
1686
|
+
), l._optimisticResults = a ? "isRestoring" : "optimistic", ji(l), xi(l, c), bi(c);
|
|
1687
1687
|
const [u] = r.useState(
|
|
1688
1688
|
() => new e(
|
|
1689
1689
|
i,
|
|
@@ -1703,9 +1703,9 @@ function wi(t, e, s) {
|
|
|
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,
|
|
@@ -1718,12 +1718,12 @@ function wi(t, e, s) {
|
|
|
1718
1718
|
d
|
|
1719
1719
|
), l.notifyOnChangeProps ? d : u.trackResult(d);
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1722
|
-
return
|
|
1721
|
+
function Cs(t, e) {
|
|
1722
|
+
return Pi(t, ui);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function Ei(t, e) {
|
|
1725
1725
|
const s = Ee(), [i] = r.useState(
|
|
1726
|
-
() => new
|
|
1726
|
+
() => new fi(
|
|
1727
1727
|
s,
|
|
1728
1728
|
t
|
|
1729
1729
|
)
|
|
@@ -1740,90 +1740,90 @@ function ji(t, e) {
|
|
|
1740
1740
|
() => i.getCurrentResult()
|
|
1741
1741
|
), c = r.useCallback(
|
|
1742
1742
|
(l, u) => {
|
|
1743
|
-
i.mutate(l, u).catch(
|
|
1743
|
+
i.mutate(l, u).catch(Ci);
|
|
1744
1744
|
},
|
|
1745
1745
|
[i]
|
|
1746
1746
|
);
|
|
1747
|
-
if (a.error &&
|
|
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
|
-
function
|
|
1751
|
+
function xs(t) {
|
|
1752
1752
|
var e, s, i = "";
|
|
1753
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 =
|
|
1756
|
+
for (e = 0; e < a; e++) t[e] && (s = xs(t[e])) && (i && (i += " "), i += s);
|
|
1757
1757
|
} else for (s in t) t[s] && (i && (i += " "), i += s);
|
|
1758
1758
|
return i;
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1761
|
-
for (var t, e, s = 0, i = "", a = arguments.length; s < a; s++) (t = arguments[s]) && (e =
|
|
1760
|
+
function N() {
|
|
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
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
1773
|
for (var i in t)
|
|
1774
|
-
|
|
1774
|
+
bs.call(t, i) && e.indexOf(i) < 0 && (s[i] = t[i]);
|
|
1775
1775
|
if (t != null && se)
|
|
1776
1776
|
for (var i of se(t))
|
|
1777
|
-
e.indexOf(i) < 0 &&
|
|
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: i } = s, a =
|
|
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
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,
|
|
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
|
-
|
|
1794
|
+
Fi.displayName = "Slot";
|
|
1795
1795
|
var Ce = r.forwardRef((t, e) => {
|
|
1796
|
-
const s = t, { children: i } = s, a =
|
|
1796
|
+
const s = t, { children: i } = s, a = F(s, ["children"]);
|
|
1797
1797
|
if (r.isValidElement(i)) {
|
|
1798
|
-
const c =
|
|
1799
|
-
return r.cloneElement(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
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 r.isValidElement(t) && t.type ===
|
|
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
|
|
1812
|
-
const s =
|
|
1811
|
+
function zi(t, e) {
|
|
1812
|
+
const s = C({}, e);
|
|
1813
1813
|
for (const i in e) {
|
|
1814
1814
|
const a = t[i], c = e[i];
|
|
1815
1815
|
/^on[A-Z]/.test(i) ? a && c ? s[i] = (...u) => {
|
|
1816
1816
|
c(...u), a(...u);
|
|
1817
|
-
} : a && (s[i] = a) : i === "style" ? s[i] =
|
|
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
|
-
return
|
|
1819
|
+
return C(C({}, t), s);
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function Di(t) {
|
|
1822
1822
|
var e, s;
|
|
1823
1823
|
let i = (e = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : e.get, a = i && "isReactWarning" in i && i.isReactWarning;
|
|
1824
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
|
|
1826
|
+
var Ti = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
1827
1827
|
const i = `${t.charAt(0)}${e.charAt(0)}`;
|
|
1828
1828
|
return /* @__PURE__ */ n.jsx(
|
|
1829
1829
|
"span",
|
|
@@ -1834,7 +1834,7 @@ var Ri = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
|
1834
1834
|
children: /* @__PURE__ */ n.jsx("span", { className: "avatar__initials", children: i })
|
|
1835
1835
|
}
|
|
1836
1836
|
);
|
|
1837
|
-
},
|
|
1837
|
+
}, Kt = r.forwardRef(
|
|
1838
1838
|
(t, e) => {
|
|
1839
1839
|
var s = t, {
|
|
1840
1840
|
iconLeft: i,
|
|
@@ -1844,7 +1844,7 @@ var Ri = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
|
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",
|
|
@@ -1856,10 +1856,10 @@ var Ri = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
|
1856
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
|
-
className:
|
|
1862
|
+
className: N(
|
|
1863
1863
|
"button",
|
|
1864
1864
|
u && `button--${u}`,
|
|
1865
1865
|
u && l && `button--${u}--filled`,
|
|
@@ -1876,18 +1876,18 @@ var Ri = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
|
1876
1876
|
);
|
|
1877
1877
|
}
|
|
1878
1878
|
);
|
|
1879
|
-
|
|
1879
|
+
Kt.displayName = "Button";
|
|
1880
1880
|
r.createContext(void 0);
|
|
1881
|
-
var
|
|
1881
|
+
var Ui = r.forwardRef(
|
|
1882
1882
|
(t, e) => {
|
|
1883
|
-
var s = t, { prefix: i, suffix: a, className: c } = s, l =
|
|
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
|
-
className:
|
|
1890
|
+
className: N(
|
|
1891
1891
|
"input",
|
|
1892
1892
|
i && "input--with-prefix",
|
|
1893
1893
|
a && "input--with-suffix",
|
|
@@ -1899,14 +1899,56 @@ var Oi = r.forwardRef(
|
|
|
1899
1899
|
] });
|
|
1900
1900
|
}
|
|
1901
1901
|
);
|
|
1902
|
-
|
|
1902
|
+
Ui.displayName = "TextField";
|
|
1903
1903
|
r.createContext(void 0);
|
|
1904
|
-
var
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1904
|
+
var js = r.createContext(null), Ss = r.createContext(null), ke = () => {
|
|
1905
|
+
const t = r.useContext(js);
|
|
1906
|
+
if (!t)
|
|
1907
|
+
throw new Error("This component must be used inside <NotificationBanner>.");
|
|
1908
|
+
return t;
|
|
1909
|
+
}, Qi = () => {
|
|
1910
|
+
const t = r.useContext(Ss);
|
|
1911
|
+
if (!t)
|
|
1912
|
+
throw new Error("This component must be used inside <NotificationBanner.Actions>.");
|
|
1913
|
+
return t;
|
|
1914
|
+
}, _s = (t) => {
|
|
1915
|
+
var e = t, {
|
|
1916
|
+
variant: s = "info",
|
|
1917
|
+
children: i,
|
|
1918
|
+
className: a
|
|
1919
|
+
} = e, c = F(e, [
|
|
1920
|
+
"variant",
|
|
1921
|
+
"children",
|
|
1922
|
+
"className"
|
|
1923
|
+
]);
|
|
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
|
+
};
|
|
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 }));
|
|
1939
|
+
};
|
|
1940
|
+
Object.assign(_s, {
|
|
1941
|
+
Content: Hi,
|
|
1942
|
+
Description: Ki,
|
|
1943
|
+
Actions: Wi,
|
|
1944
|
+
Button: Gi
|
|
1945
|
+
});
|
|
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(
|
|
1908
1950
|
"svg",
|
|
1909
|
-
|
|
1951
|
+
E(C({
|
|
1910
1952
|
width: "24",
|
|
1911
1953
|
height: "24",
|
|
1912
1954
|
viewBox: "0 0 24 24",
|
|
@@ -1924,9 +1966,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
1924
1966
|
}
|
|
1925
1967
|
)
|
|
1926
1968
|
})
|
|
1927
|
-
),
|
|
1969
|
+
), Ae = $i, Zi = (t) => /* @__PURE__ */ n.jsx(
|
|
1928
1970
|
"svg",
|
|
1929
|
-
|
|
1971
|
+
E(C({
|
|
1930
1972
|
width: "24",
|
|
1931
1973
|
height: "24",
|
|
1932
1974
|
viewBox: "0 0 24 24",
|
|
@@ -1944,9 +1986,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
1944
1986
|
}
|
|
1945
1987
|
)
|
|
1946
1988
|
})
|
|
1947
|
-
),
|
|
1989
|
+
), Xi = Zi, Yi = (t) => /* @__PURE__ */ n.jsx(
|
|
1948
1990
|
"svg",
|
|
1949
|
-
|
|
1991
|
+
E(C({
|
|
1950
1992
|
width: "24",
|
|
1951
1993
|
height: "24",
|
|
1952
1994
|
viewBox: "0 0 24 24",
|
|
@@ -1963,9 +2005,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
1963
2005
|
}
|
|
1964
2006
|
)
|
|
1965
2007
|
})
|
|
1966
|
-
),
|
|
2008
|
+
), Ji = Yi, Ii = (t) => /* @__PURE__ */ n.jsx(
|
|
1967
2009
|
"svg",
|
|
1968
|
-
|
|
2010
|
+
E(C({
|
|
1969
2011
|
width: "24",
|
|
1970
2012
|
height: "24",
|
|
1971
2013
|
viewBox: "0 0 24 24",
|
|
@@ -1982,9 +2024,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
1982
2024
|
}
|
|
1983
2025
|
)
|
|
1984
2026
|
})
|
|
1985
|
-
),
|
|
2027
|
+
), Bi = Ii, tr = (t) => /* @__PURE__ */ n.jsx(
|
|
1986
2028
|
"svg",
|
|
1987
|
-
|
|
2029
|
+
E(C({
|
|
1988
2030
|
width: "24",
|
|
1989
2031
|
height: "24",
|
|
1990
2032
|
viewBox: "0 0 24 24",
|
|
@@ -2001,9 +2043,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2001
2043
|
}
|
|
2002
2044
|
)
|
|
2003
2045
|
})
|
|
2004
|
-
),
|
|
2046
|
+
), er = tr, sr = (t) => /* @__PURE__ */ n.jsxs(
|
|
2005
2047
|
"svg",
|
|
2006
|
-
|
|
2048
|
+
E(C({
|
|
2007
2049
|
width: "24",
|
|
2008
2050
|
height: "24",
|
|
2009
2051
|
fill: "none",
|
|
@@ -2038,9 +2080,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2038
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" }) }) })
|
|
2039
2081
|
]
|
|
2040
2082
|
})
|
|
2041
|
-
),
|
|
2083
|
+
), ir = sr, rr = (t) => /* @__PURE__ */ n.jsxs(
|
|
2042
2084
|
"svg",
|
|
2043
|
-
|
|
2085
|
+
E(C({
|
|
2044
2086
|
width: "24",
|
|
2045
2087
|
height: "24",
|
|
2046
2088
|
viewBox: "0 0 24 24",
|
|
@@ -2070,9 +2112,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2070
2112
|
)
|
|
2071
2113
|
]
|
|
2072
2114
|
})
|
|
2073
|
-
),
|
|
2115
|
+
), nr = rr, ar = (t) => /* @__PURE__ */ n.jsxs(
|
|
2074
2116
|
"svg",
|
|
2075
|
-
|
|
2117
|
+
E(C({
|
|
2076
2118
|
width: "24",
|
|
2077
2119
|
height: "24",
|
|
2078
2120
|
viewBox: "0 0 24 24",
|
|
@@ -2122,17 +2164,17 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2122
2164
|
)
|
|
2123
2165
|
]
|
|
2124
2166
|
})
|
|
2125
|
-
),
|
|
2126
|
-
var e = t, { className: s } = e, i =
|
|
2167
|
+
), or = ar, lr = (t) => {
|
|
2168
|
+
var e = t, { className: s } = e, i = F(e, ["className"]);
|
|
2127
2169
|
return /* @__PURE__ */ n.jsxs(
|
|
2128
2170
|
"svg",
|
|
2129
|
-
|
|
2171
|
+
E(C({
|
|
2130
2172
|
width: "20",
|
|
2131
2173
|
height: "20",
|
|
2132
2174
|
viewBox: "0 0 20 20",
|
|
2133
2175
|
fill: "none",
|
|
2134
2176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2135
|
-
className:
|
|
2177
|
+
className: N("spinner", s)
|
|
2136
2178
|
}, i), {
|
|
2137
2179
|
children: [
|
|
2138
2180
|
/* @__PURE__ */ n.jsx("circle", { cx: "10", cy: "10", r: "9", stroke: "currentColor", strokeOpacity: "0.2", strokeWidth: "1.5" }),
|
|
@@ -2151,9 +2193,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2151
2193
|
]
|
|
2152
2194
|
})
|
|
2153
2195
|
);
|
|
2154
|
-
},
|
|
2196
|
+
}, cr = lr, ur = (t) => /* @__PURE__ */ n.jsxs(
|
|
2155
2197
|
"svg",
|
|
2156
|
-
|
|
2198
|
+
E(C({
|
|
2157
2199
|
width: "24",
|
|
2158
2200
|
height: "24",
|
|
2159
2201
|
fill: "none",
|
|
@@ -2185,11 +2227,11 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2185
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" }) }) })
|
|
2186
2228
|
]
|
|
2187
2229
|
})
|
|
2188
|
-
),
|
|
2230
|
+
), dr = ur, hr = (t) => {
|
|
2189
2231
|
const e = (s) => `${s}${t.suffix ? `_${t.suffix}` : ""}`;
|
|
2190
2232
|
return /* @__PURE__ */ n.jsxs(
|
|
2191
2233
|
"svg",
|
|
2192
|
-
|
|
2234
|
+
E(C({
|
|
2193
2235
|
width: "24",
|
|
2194
2236
|
height: "24",
|
|
2195
2237
|
viewBox: "0 0 24 24",
|
|
@@ -2356,9 +2398,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2356
2398
|
]
|
|
2357
2399
|
})
|
|
2358
2400
|
);
|
|
2359
|
-
},
|
|
2401
|
+
}, Ps = hr, fr = (t) => /* @__PURE__ */ n.jsxs(
|
|
2360
2402
|
"svg",
|
|
2361
|
-
|
|
2403
|
+
E(C({
|
|
2362
2404
|
fill: "none",
|
|
2363
2405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2364
2406
|
viewBox: "0 0 24 24",
|
|
@@ -2418,9 +2460,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2418
2460
|
)
|
|
2419
2461
|
]
|
|
2420
2462
|
})
|
|
2421
|
-
),
|
|
2463
|
+
), pr = fr, mr = (t) => /* @__PURE__ */ n.jsx(
|
|
2422
2464
|
"svg",
|
|
2423
|
-
|
|
2465
|
+
E(C({
|
|
2424
2466
|
fill: "none",
|
|
2425
2467
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2426
2468
|
viewBox: "0 0 21 16",
|
|
@@ -2438,9 +2480,9 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2438
2480
|
}
|
|
2439
2481
|
)
|
|
2440
2482
|
})
|
|
2441
|
-
),
|
|
2483
|
+
), yr = mr, gr = (t) => /* @__PURE__ */ n.jsxs(
|
|
2442
2484
|
"svg",
|
|
2443
|
-
|
|
2485
|
+
E(C({
|
|
2444
2486
|
width: "24",
|
|
2445
2487
|
height: "24",
|
|
2446
2488
|
fill: "none",
|
|
@@ -2465,7 +2507,7 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2465
2507
|
/* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
|
|
2466
2508
|
]
|
|
2467
2509
|
})
|
|
2468
|
-
),
|
|
2510
|
+
), vr = gr, Cr = (t) => {
|
|
2469
2511
|
var e = t, {
|
|
2470
2512
|
variant: s,
|
|
2471
2513
|
icon: i,
|
|
@@ -2473,7 +2515,7 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2473
2515
|
title: c,
|
|
2474
2516
|
description: l,
|
|
2475
2517
|
className: u
|
|
2476
|
-
} = e, d =
|
|
2518
|
+
} = e, d = F(e, [
|
|
2477
2519
|
"variant",
|
|
2478
2520
|
"icon",
|
|
2479
2521
|
"isStandalone",
|
|
@@ -2483,15 +2525,15 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2483
2525
|
]);
|
|
2484
2526
|
return /* @__PURE__ */ n.jsx(
|
|
2485
2527
|
"div",
|
|
2486
|
-
|
|
2487
|
-
className:
|
|
2528
|
+
E(C({}, d), {
|
|
2529
|
+
className: N(
|
|
2488
2530
|
"card__empty-state",
|
|
2489
2531
|
s === "error" && "card__empty-state--error",
|
|
2490
2532
|
a && "card__empty-state--standalone",
|
|
2491
2533
|
u
|
|
2492
2534
|
),
|
|
2493
2535
|
children: /* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__wrapper", children: [
|
|
2494
|
-
/* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(
|
|
2536
|
+
/* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(dr, {}) : i }),
|
|
2495
2537
|
/* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__content", children: [
|
|
2496
2538
|
/* @__PURE__ */ n.jsx("p", { className: "card__empty-state__title", children: c }),
|
|
2497
2539
|
/* @__PURE__ */ n.jsx("p", { className: "card__empty-state__description", children: l })
|
|
@@ -2499,13 +2541,13 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2499
2541
|
] })
|
|
2500
2542
|
})
|
|
2501
2543
|
);
|
|
2502
|
-
},
|
|
2544
|
+
}, xr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__footer", children: t }), br = (t) => {
|
|
2503
2545
|
var e = t, {
|
|
2504
2546
|
variant: s = "default",
|
|
2505
2547
|
sticky: i,
|
|
2506
2548
|
className: a,
|
|
2507
2549
|
children: c
|
|
2508
|
-
} = e, l =
|
|
2550
|
+
} = e, l = F(e, [
|
|
2509
2551
|
"variant",
|
|
2510
2552
|
"sticky",
|
|
2511
2553
|
"className",
|
|
@@ -2513,8 +2555,8 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2513
2555
|
]);
|
|
2514
2556
|
return /* @__PURE__ */ n.jsx(
|
|
2515
2557
|
"div",
|
|
2516
|
-
|
|
2517
|
-
className:
|
|
2558
|
+
E(C({}, l), {
|
|
2559
|
+
className: N(
|
|
2518
2560
|
"card__header",
|
|
2519
2561
|
s && `card__header--${s}`,
|
|
2520
2562
|
i && "card__header--sticky",
|
|
@@ -2523,16 +2565,16 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2523
2565
|
children: c
|
|
2524
2566
|
})
|
|
2525
2567
|
);
|
|
2526
|
-
},
|
|
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: [
|
|
2527
2569
|
t && /* @__PURE__ */ n.jsx("span", { className: "card__header__title__icon", children: t }),
|
|
2528
2570
|
e
|
|
2529
|
-
] }),
|
|
2571
|
+
] }), Es = r.forwardRef(
|
|
2530
2572
|
(t, e) => {
|
|
2531
|
-
var s = t, { type: i, children: a, className: c, variant: l = "default", disabled: u = !1 } = s, d =
|
|
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"]);
|
|
2532
2574
|
return r.createElement(
|
|
2533
2575
|
i,
|
|
2534
|
-
|
|
2535
|
-
className:
|
|
2576
|
+
C({
|
|
2577
|
+
className: N(
|
|
2536
2578
|
"card",
|
|
2537
2579
|
u && "card--disabled",
|
|
2538
2580
|
l && `card--${l}`,
|
|
@@ -2544,33 +2586,33 @@ var zi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
|
|
|
2544
2586
|
);
|
|
2545
2587
|
}
|
|
2546
2588
|
);
|
|
2547
|
-
|
|
2548
|
-
Object.assign(
|
|
2549
|
-
Header:
|
|
2550
|
-
Action:
|
|
2551
|
-
Title:
|
|
2552
|
-
Subtitle:
|
|
2553
|
-
Body:
|
|
2554
|
-
Image:
|
|
2555
|
-
Item:
|
|
2556
|
-
Footer:
|
|
2557
|
-
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
|
|
2558
2600
|
});
|
|
2559
|
-
var
|
|
2560
|
-
var e = t, { className: s, children: i } = e, a =
|
|
2561
|
-
return /* @__PURE__ */ n.jsx("div",
|
|
2562
|
-
},
|
|
2563
|
-
var e = t, { className: s, children: i } = e, a =
|
|
2564
|
-
return /* @__PURE__ */ n.jsx("span",
|
|
2565
|
-
},
|
|
2566
|
-
const t = r.useContext(
|
|
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);
|
|
2567
2609
|
if (!t)
|
|
2568
2610
|
throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
|
|
2569
2611
|
return t;
|
|
2570
|
-
},
|
|
2571
|
-
var e = t, { className: s, children: i } = e, a =
|
|
2572
|
-
const { id: c } =
|
|
2573
|
-
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 }));
|
|
2574
2616
|
}, jt = (t) => {
|
|
2575
2617
|
var e = t, {
|
|
2576
2618
|
id: s,
|
|
@@ -2581,7 +2623,7 @@ var gr = (t) => {
|
|
|
2581
2623
|
single: u,
|
|
2582
2624
|
className: d,
|
|
2583
2625
|
children: p
|
|
2584
|
-
} = e, f =
|
|
2626
|
+
} = e, f = F(e, [
|
|
2585
2627
|
"id",
|
|
2586
2628
|
"name",
|
|
2587
2629
|
"isPending",
|
|
@@ -2597,39 +2639,39 @@ var gr = (t) => {
|
|
|
2597
2639
|
}, [a]), /* @__PURE__ */ n.jsxs(
|
|
2598
2640
|
"div",
|
|
2599
2641
|
{
|
|
2600
|
-
className:
|
|
2642
|
+
className: N("checkbox", c && `checkbox--${c}`, l && "checkbox--error"),
|
|
2601
2643
|
children: [
|
|
2602
2644
|
/* @__PURE__ */ n.jsx(
|
|
2603
2645
|
"input",
|
|
2604
|
-
|
|
2646
|
+
C({
|
|
2605
2647
|
id: s,
|
|
2606
2648
|
name: i,
|
|
2607
2649
|
type: "checkbox",
|
|
2608
2650
|
ref: h,
|
|
2609
|
-
className:
|
|
2651
|
+
className: N("checkbox__input", d),
|
|
2610
2652
|
value: u ? "true" : ""
|
|
2611
2653
|
}, f)
|
|
2612
2654
|
),
|
|
2613
|
-
a ? /* @__PURE__ */ n.jsx(
|
|
2614
|
-
/* @__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 })
|
|
2615
2657
|
]
|
|
2616
2658
|
}
|
|
2617
2659
|
);
|
|
2618
2660
|
};
|
|
2619
|
-
jt.Content =
|
|
2620
|
-
jt.Label =
|
|
2621
|
-
jt.Hint =
|
|
2661
|
+
jt.Content = Pr;
|
|
2662
|
+
jt.Label = Nr;
|
|
2663
|
+
jt.Hint = Er;
|
|
2622
2664
|
jt.Error = Error;
|
|
2623
|
-
var
|
|
2624
|
-
var e = t, { type: s = "div", className: i, children: a } = e, c =
|
|
2625
|
-
return r.createElement(s,
|
|
2626
|
-
}, xe = () => document.body.style.removeProperty("overflow"),
|
|
2627
|
-
var e = t, { className: s, children: i, shouldAnimate: a = !0 } = e, c =
|
|
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"]);
|
|
2628
2670
|
const { ref: l, defaultOpen: u, isModal: d, onClose: p } = Xt();
|
|
2629
2671
|
return r.useEffect(() => {
|
|
2630
2672
|
const f = l == null ? void 0 : l.current;
|
|
2631
2673
|
if (f != null && f.open) {
|
|
2632
|
-
const h = f.querySelectorAll(
|
|
2674
|
+
const h = f.querySelectorAll(Mr), y = h[0], g = h[h.length - 1], _ = (S) => {
|
|
2633
2675
|
if (!(S.key === "Tab"))
|
|
2634
2676
|
return;
|
|
2635
2677
|
S.shiftKey ? document.activeElement === y && (g.focus(), S.preventDefault()) : document.activeElement === g && (y.focus(), S.preventDefault());
|
|
@@ -2643,73 +2685,73 @@ var wr = (t) => {
|
|
|
2643
2685
|
if (!f)
|
|
2644
2686
|
return;
|
|
2645
2687
|
if (u && (f.removeAttribute("open"), f.showModal(), f.focus()), d)
|
|
2646
|
-
return f.addEventListener("cancel",
|
|
2688
|
+
return f.addEventListener("cancel", He), () => f.removeEventListener("cancel", He);
|
|
2647
2689
|
const h = ({ clientX: y, clientY: g }) => {
|
|
2648
|
-
const { top: _, right: S, bottom: P, left:
|
|
2649
|
-
|
|
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();
|
|
2650
2692
|
};
|
|
2651
2693
|
return f.addEventListener("cancel", p), f.addEventListener("mousedown", h), () => {
|
|
2652
2694
|
f.removeEventListener("cancel", p), f.removeEventListener("mousedown", h);
|
|
2653
2695
|
};
|
|
2654
2696
|
}, [l, d, p, u]), /* @__PURE__ */ n.jsx(
|
|
2655
2697
|
"dialog",
|
|
2656
|
-
|
|
2698
|
+
E(C({
|
|
2657
2699
|
ref: l,
|
|
2658
2700
|
open: u,
|
|
2659
2701
|
"aria-modal": !!d,
|
|
2660
2702
|
"aria-labelledby": "dialogTitle",
|
|
2661
|
-
className:
|
|
2703
|
+
className: N("dialog", a && "dialog--animated", s)
|
|
2662
2704
|
}, c), {
|
|
2663
2705
|
children: i
|
|
2664
2706
|
})
|
|
2665
2707
|
);
|
|
2666
|
-
},
|
|
2708
|
+
}, As = r.createContext(void 0), Rr = ({ defaultOpen: t, onClose: e, isModal: s, children: i }) => {
|
|
2667
2709
|
const a = r.useRef(null), c = r.useRef(e), l = r.useCallback(() => {
|
|
2668
2710
|
var u;
|
|
2669
2711
|
xe(), (u = a.current) == null || u.close(), c.current && (c == null || c.current());
|
|
2670
2712
|
}, [a]);
|
|
2671
|
-
return /* @__PURE__ */ n.jsx(
|
|
2713
|
+
return /* @__PURE__ */ n.jsx(As.Provider, { value: { ref: a, defaultOpen: t, isModal: s, onClose: l }, children: i });
|
|
2672
2714
|
}, Xt = () => {
|
|
2673
|
-
const t = r.useContext(
|
|
2715
|
+
const t = r.useContext(As);
|
|
2674
2716
|
if (!t)
|
|
2675
2717
|
throw new Error("Dialog compound components can not be rendered outside of Dialog");
|
|
2676
2718
|
return t;
|
|
2677
|
-
},
|
|
2678
|
-
var e = t, { children: s } = e, i =
|
|
2719
|
+
}, Or = (t) => {
|
|
2720
|
+
var e = t, { children: s } = e, i = F(e, ["children"]);
|
|
2679
2721
|
const { onClose: a } = Xt();
|
|
2680
|
-
return /* @__PURE__ */ n.jsx(
|
|
2681
|
-
},
|
|
2682
|
-
var s = t, { className: i } = s, a =
|
|
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"]);
|
|
2683
2725
|
const { onClose: c } = Xt();
|
|
2684
2726
|
return /* @__PURE__ */ n.jsx(
|
|
2685
|
-
|
|
2686
|
-
|
|
2727
|
+
Kt,
|
|
2728
|
+
C({
|
|
2687
2729
|
type: "submit",
|
|
2688
2730
|
ref: e,
|
|
2689
2731
|
formMethod: "dialog",
|
|
2690
2732
|
onClick: c,
|
|
2691
|
-
iconLeft: /* @__PURE__ */ n.jsx(
|
|
2733
|
+
iconLeft: /* @__PURE__ */ n.jsx(Ji, {}),
|
|
2692
2734
|
variant: "icon--secondary",
|
|
2693
|
-
className:
|
|
2735
|
+
className: N("dialog__close button--icon", i)
|
|
2694
2736
|
}, a)
|
|
2695
2737
|
);
|
|
2696
2738
|
});
|
|
2697
|
-
|
|
2698
|
-
var
|
|
2699
|
-
var e = t, { className: s, children: i } = e, a =
|
|
2700
|
-
return /* @__PURE__ */ n.jsx("div",
|
|
2701
|
-
},
|
|
2702
|
-
var e = t, { icon: s, children: i, className: a } = e, c =
|
|
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"]);
|
|
2703
2745
|
const { ref: l } = Xt(), u = r.useRef(null);
|
|
2704
2746
|
return r.useEffect(() => {
|
|
2705
2747
|
l != null && l.current && l.current.focus();
|
|
2706
2748
|
}, [l]), /* @__PURE__ */ n.jsxs(
|
|
2707
2749
|
"div",
|
|
2708
|
-
|
|
2750
|
+
E(C({
|
|
2709
2751
|
tabIndex: 0,
|
|
2710
2752
|
ref: u,
|
|
2711
2753
|
id: "dialogTitle",
|
|
2712
|
-
className:
|
|
2754
|
+
className: N("dialog__header__title", a)
|
|
2713
2755
|
}, c), {
|
|
2714
2756
|
children: [
|
|
2715
2757
|
s && /* @__PURE__ */ n.jsx("span", { className: "dialog__header__icon", children: s }),
|
|
@@ -2717,23 +2759,23 @@ var Er = (t) => {
|
|
|
2717
2759
|
]
|
|
2718
2760
|
})
|
|
2719
2761
|
);
|
|
2720
|
-
},
|
|
2721
|
-
var e = t, { children: s } = e, i =
|
|
2762
|
+
}, Ur = (t) => {
|
|
2763
|
+
var e = t, { children: s } = e, i = F(e, ["children"]);
|
|
2722
2764
|
const { ref: a } = Xt();
|
|
2723
|
-
return /* @__PURE__ */ n.jsx(
|
|
2765
|
+
return /* @__PURE__ */ n.jsx(Kt, E(C({ onClick: () => {
|
|
2724
2766
|
var c;
|
|
2725
2767
|
return (c = a == null ? void 0 : a.current) == null ? void 0 : c.showModal();
|
|
2726
2768
|
} }, i), { children: s }));
|
|
2727
|
-
}, K = ({ defaultOpen: t, isModal: e, children: s, onClose: i }) => /* @__PURE__ */ n.jsx(
|
|
2728
|
-
K.Trigger =
|
|
2729
|
-
K.Root =
|
|
2730
|
-
K.Title =
|
|
2731
|
-
K.Header =
|
|
2732
|
-
K.Body =
|
|
2733
|
-
K.Footer =
|
|
2734
|
-
K.Button =
|
|
2735
|
-
K.Close =
|
|
2736
|
-
var
|
|
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 = ({
|
|
2737
2779
|
id: t,
|
|
2738
2780
|
position: e,
|
|
2739
2781
|
isOpen: s,
|
|
@@ -2745,7 +2787,7 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2745
2787
|
contentRef: d,
|
|
2746
2788
|
children: p
|
|
2747
2789
|
}) => /* @__PURE__ */ n.jsx(
|
|
2748
|
-
|
|
2790
|
+
Ls.Provider,
|
|
2749
2791
|
{
|
|
2750
2792
|
value: {
|
|
2751
2793
|
id: t,
|
|
@@ -2760,12 +2802,12 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2760
2802
|
},
|
|
2761
2803
|
children: p
|
|
2762
2804
|
}
|
|
2763
|
-
),
|
|
2764
|
-
const t = r.useContext(
|
|
2805
|
+
), Ms = () => {
|
|
2806
|
+
const t = r.useContext(Ls);
|
|
2765
2807
|
if (t === void 0)
|
|
2766
2808
|
throw new Error("useMenu must be used within a MenuProvider");
|
|
2767
2809
|
return t;
|
|
2768
|
-
},
|
|
2810
|
+
}, Hr = ({ as: t, children: e }) => {
|
|
2769
2811
|
const {
|
|
2770
2812
|
id: s,
|
|
2771
2813
|
position: i,
|
|
@@ -2776,13 +2818,13 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2776
2818
|
clearActiveItemIndex: d,
|
|
2777
2819
|
triggerRef: p,
|
|
2778
2820
|
contentRef: f
|
|
2779
|
-
} =
|
|
2821
|
+
} = Ms(), h = (y) => {
|
|
2780
2822
|
var g;
|
|
2781
2823
|
if (!a)
|
|
2782
2824
|
return;
|
|
2783
2825
|
if (y.key === "Escape")
|
|
2784
2826
|
return d(), c(!1), (g = p.current) == null ? void 0 : g.focus();
|
|
2785
|
-
const _ = y.shiftKey, S =
|
|
2827
|
+
const _ = y.shiftKey, S = Rs(f.current).length - 1;
|
|
2786
2828
|
switch (y.key) {
|
|
2787
2829
|
case "Tab": {
|
|
2788
2830
|
if (_ && l !== 0)
|
|
@@ -2814,7 +2856,7 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2814
2856
|
{
|
|
2815
2857
|
id: `${s}-content`,
|
|
2816
2858
|
ref: f,
|
|
2817
|
-
className:
|
|
2859
|
+
className: N("menu__list", `menu__list--${i}`, a && "menu__list--active"),
|
|
2818
2860
|
onKeyDown: h
|
|
2819
2861
|
},
|
|
2820
2862
|
e
|
|
@@ -2825,17 +2867,17 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2825
2867
|
{
|
|
2826
2868
|
id: `${s}-content`,
|
|
2827
2869
|
ref: f,
|
|
2828
|
-
className:
|
|
2870
|
+
className: N("menu__list", `menu__list--${i}`, a && "menu__list--active"),
|
|
2829
2871
|
onKeyDown: h,
|
|
2830
2872
|
children: e
|
|
2831
2873
|
}
|
|
2832
2874
|
)
|
|
2833
2875
|
);
|
|
2834
|
-
},
|
|
2835
|
-
var e = t, { children: s, className: i } = e, a =
|
|
2836
|
-
return /* @__PURE__ */ n.jsx("li",
|
|
2837
|
-
},
|
|
2838
|
-
const { id: s, isOpen: i, setIsOpen: a, clearActiveItemIndex: c, setActiveItemIndex: l, triggerRef: u } =
|
|
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 = () => {
|
|
2839
2881
|
c(), a((f) => !f), i || l(0);
|
|
2840
2882
|
}, p = (f) => {
|
|
2841
2883
|
if (i) {
|
|
@@ -2847,26 +2889,26 @@ var Es = r.createContext(void 0), Lr = ({
|
|
|
2847
2889
|
return r.cloneElement(t, {
|
|
2848
2890
|
id: `${s}-trigger`,
|
|
2849
2891
|
ref: u,
|
|
2850
|
-
className:
|
|
2892
|
+
className: N("menu__trigger", e),
|
|
2851
2893
|
onClick: d,
|
|
2852
2894
|
onKeyDown: p,
|
|
2853
2895
|
"aria-expanded": i,
|
|
2854
2896
|
"aria-controls": `${s}-content`
|
|
2855
2897
|
});
|
|
2856
2898
|
};
|
|
2857
|
-
|
|
2858
|
-
var
|
|
2859
|
-
var e = t, { type: s, id: i, position: a = "bottom-end", children: c, className: l } = e, u =
|
|
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"]);
|
|
2860
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);
|
|
2861
|
-
g !== S && g !== void 0 && f.current && (
|
|
2862
|
-
const
|
|
2903
|
+
g !== S && g !== void 0 && f.current && (Rs(f.current)[g].firstChild.focus(), P(g));
|
|
2904
|
+
const x = () => {
|
|
2863
2905
|
_(void 0), P(void 0);
|
|
2864
|
-
},
|
|
2865
|
-
var
|
|
2866
|
-
((
|
|
2906
|
+
}, b = (w) => {
|
|
2907
|
+
var M;
|
|
2908
|
+
((M = d.current) == null ? void 0 : M.contains(w.relatedTarget)) || (x(), y(!1));
|
|
2867
2909
|
};
|
|
2868
2910
|
return /* @__PURE__ */ n.jsx(
|
|
2869
|
-
|
|
2911
|
+
Qr,
|
|
2870
2912
|
{
|
|
2871
2913
|
id: i,
|
|
2872
2914
|
position: a,
|
|
@@ -2874,439 +2916,439 @@ var Ns = (t) => t ? t.tagName === "UL" ? t.children : Array.from(t.getElementsBy
|
|
|
2874
2916
|
setIsOpen: y,
|
|
2875
2917
|
activeItemIndex: g,
|
|
2876
2918
|
setActiveItemIndex: _,
|
|
2877
|
-
clearActiveItemIndex:
|
|
2919
|
+
clearActiveItemIndex: x,
|
|
2878
2920
|
triggerRef: p,
|
|
2879
2921
|
contentRef: f,
|
|
2880
2922
|
children: r.createElement(
|
|
2881
2923
|
s,
|
|
2882
|
-
|
|
2924
|
+
E(C({}, u), {
|
|
2883
2925
|
id: i,
|
|
2884
2926
|
ref: d,
|
|
2885
2927
|
className: `menu ${l || ""}`,
|
|
2886
|
-
onBlur:
|
|
2928
|
+
onBlur: b
|
|
2887
2929
|
}),
|
|
2888
2930
|
c
|
|
2889
2931
|
)
|
|
2890
2932
|
}
|
|
2891
2933
|
);
|
|
2892
2934
|
};
|
|
2893
|
-
G.Trigger =
|
|
2894
|
-
G.Content =
|
|
2895
|
-
G.Item =
|
|
2935
|
+
G.Trigger = Fs;
|
|
2936
|
+
G.Content = Hr;
|
|
2937
|
+
G.Item = Kr;
|
|
2896
2938
|
r.createContext(void 0);
|
|
2897
|
-
var
|
|
2898
|
-
[...new Set(
|
|
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) => ({
|
|
2899
2941
|
label: `+${t}`,
|
|
2900
2942
|
value: t
|
|
2901
2943
|
}));
|
|
2902
2944
|
r.createContext(void 0);
|
|
2903
2945
|
r.createContext(void 0);
|
|
2904
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 || {});
|
|
2905
|
-
const
|
|
2947
|
+
const Gr = {
|
|
2906
2948
|
categoriesVegetables: r.lazy(
|
|
2907
|
-
() => import("./Categoriesvegetables-
|
|
2949
|
+
() => import("./Categoriesvegetables-CBV5KT_y.js")
|
|
2908
2950
|
),
|
|
2909
|
-
categoriesMeat: r.lazy(() => import("./Categoriesmeat-
|
|
2910
|
-
categoriesFish: r.lazy(() => import("./Categoriesfish-
|
|
2911
|
-
categoriesDairy: r.lazy(() => import("./Categoriesdairy-
|
|
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")),
|
|
2912
2954
|
categoriesBreakfast: r.lazy(
|
|
2913
|
-
() => import("./Categoriesbreakfast-
|
|
2955
|
+
() => import("./Categoriesbreakfast-Dl3J81Wq.js")
|
|
2914
2956
|
),
|
|
2915
2957
|
categoriesSnacks: r.lazy(
|
|
2916
|
-
() => import("./Categoriessnacks-
|
|
2958
|
+
() => import("./Categoriessnacks-BgVfm4XZ.js")
|
|
2917
2959
|
),
|
|
2918
|
-
categoriesCandy: r.lazy(() => import("./Categoriescandy-
|
|
2960
|
+
categoriesCandy: r.lazy(() => import("./Categoriescandy-B9Hl2Y8Q.js")),
|
|
2919
2961
|
categoriesNonFood: r.lazy(
|
|
2920
|
-
() => import("./Categoriesnonfood-
|
|
2962
|
+
() => import("./Categoriesnonfood-Caery7h5.js")
|
|
2921
2963
|
),
|
|
2922
2964
|
categoriesDryFood: r.lazy(
|
|
2923
|
-
() => import("./Categoriesdryfood-
|
|
2965
|
+
() => import("./Categoriesdryfood-C3HFUdB6.js")
|
|
2924
2966
|
),
|
|
2925
|
-
categoriesTins: r.lazy(() => import("./Categoriestins-
|
|
2926
|
-
categoriesGrid: r.lazy(() => import("./Categoriesgrid-
|
|
2927
|
-
categoriesSoda: r.lazy(() => import("./Categoriessoda-
|
|
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")),
|
|
2928
2970
|
categoriesBakery: r.lazy(
|
|
2929
|
-
() => import("./Categoriesbakery-
|
|
2971
|
+
() => import("./Categoriesbakery-BtvnuWq5.js")
|
|
2930
2972
|
),
|
|
2931
|
-
categoriesWine: r.lazy(() => import("./Categorieswine-
|
|
2932
|
-
categoriesBaby: r.lazy(() => import("./Categoriesbaby-
|
|
2933
|
-
categoriesDiet: r.lazy(() => import("./Categoriesdiet-
|
|
2973
|
+
categoriesWine: r.lazy(() => import("./Categorieswine-C3g0I95E.js")),
|
|
2974
|
+
categoriesBaby: r.lazy(() => import("./Categoriesbaby-zLV8UkNS.js")),
|
|
2975
|
+
categoriesDiet: r.lazy(() => import("./Categoriesdiet-DxyO8bcA.js")),
|
|
2934
2976
|
categoriesHygiene: r.lazy(
|
|
2935
|
-
() => import("./Categorieshygiene-
|
|
2977
|
+
() => import("./Categorieshygiene-BiDjuHHG.js")
|
|
2936
2978
|
),
|
|
2937
2979
|
categoriesCleaning: r.lazy(
|
|
2938
|
-
() => import("./Categoriescleaning-
|
|
2980
|
+
() => import("./Categoriescleaning-mFlJOx18.js")
|
|
2939
2981
|
),
|
|
2940
|
-
categoriesPets: r.lazy(() => import("./Categoriespets-
|
|
2982
|
+
categoriesPets: r.lazy(() => import("./Categoriespets-BuKfsdK6.js")),
|
|
2941
2983
|
categoriesFreezer: r.lazy(
|
|
2942
|
-
() => import("./Categoriesfreezer-
|
|
2984
|
+
() => import("./Categoriesfreezer-CpiCEfyR.js")
|
|
2943
2985
|
),
|
|
2944
|
-
categoriesBbq: r.lazy(() => import("./Categoriesbbq-
|
|
2986
|
+
categoriesBbq: r.lazy(() => import("./Categoriesbbq-CBOtiZ2p.js")),
|
|
2945
2987
|
categoriesMealbox: r.lazy(
|
|
2946
|
-
() => import("./Categoriesmealbox-
|
|
2988
|
+
() => import("./Categoriesmealbox-CdUSsl70.js")
|
|
2947
2989
|
),
|
|
2948
|
-
categoriesBrik: r.lazy(() => import("./Categoriesbrik-
|
|
2990
|
+
categoriesBrik: r.lazy(() => import("./Categoriesbrik-YczPL7LO.js")),
|
|
2949
2991
|
categoriesGranen: r.lazy(
|
|
2950
|
-
() => import("./Categoriesgranen-
|
|
2992
|
+
() => import("./Categoriesgranen-CFzk9xdG.js")
|
|
2951
2993
|
),
|
|
2952
2994
|
categoriesConserve: r.lazy(
|
|
2953
|
-
() => import("./Categoriesconserve-
|
|
2995
|
+
() => import("./Categoriesconserve-e9Oh3upX.js")
|
|
2954
2996
|
),
|
|
2955
|
-
categoriesHome: r.lazy(() => import("./Categorieshome-
|
|
2997
|
+
categoriesHome: r.lazy(() => import("./Categorieshome-DgORtmRv.js")),
|
|
2956
2998
|
categoriesEaster: r.lazy(
|
|
2957
|
-
() => import("./Categorieseaster-
|
|
2999
|
+
() => import("./Categorieseaster-H94UVblv.js")
|
|
2958
3000
|
),
|
|
2959
3001
|
categoriesOnlinePromo: r.lazy(
|
|
2960
|
-
() => import("./Categoriesonlinepromo-
|
|
3002
|
+
() => import("./Categoriesonlinepromo-B-bOd6-N.js")
|
|
2961
3003
|
),
|
|
2962
3004
|
categoriesSportFood: r.lazy(
|
|
2963
|
-
() => import("./Categoriessportfood-
|
|
3005
|
+
() => import("./Categoriessportfood-B5IP5R4L.js")
|
|
2964
3006
|
),
|
|
2965
3007
|
categoriesClothing: r.lazy(
|
|
2966
|
-
() => import("./Categoriesclothing-
|
|
3008
|
+
() => import("./Categoriesclothing-DLQJSJsN.js")
|
|
2967
3009
|
),
|
|
2968
3010
|
categoriesEnergy: r.lazy(
|
|
2969
|
-
() => import("./Categoriesenergy-
|
|
3011
|
+
() => import("./Categoriesenergy-B90ZmPhx.js")
|
|
2970
3012
|
),
|
|
2971
3013
|
categoriesDeskAndTravel: r.lazy(
|
|
2972
|
-
() => import("./Categoriesdeskandtravel-
|
|
3014
|
+
() => import("./Categoriesdeskandtravel-CpaWwhg3.js")
|
|
2973
3015
|
),
|
|
2974
3016
|
categoriesCigarette: r.lazy(
|
|
2975
|
-
() => import("./Categoriescigarette-
|
|
3017
|
+
() => import("./Categoriescigarette-Cfk5fMMU.js")
|
|
2976
3018
|
),
|
|
2977
|
-
categoriesFood: r.lazy(() => import("./Categoriesfood-
|
|
2978
|
-
categoriesChild: r.lazy(() => import("./Categorieschild-
|
|
3019
|
+
categoriesFood: r.lazy(() => import("./Categoriesfood-GFrH8FR6.js")),
|
|
3020
|
+
categoriesChild: r.lazy(() => import("./Categorieschild-AelqMsFx.js")),
|
|
2979
3021
|
categoriesPuzzle: r.lazy(
|
|
2980
|
-
() => import("./Categoriespuzzle-
|
|
3022
|
+
() => import("./Categoriespuzzle-Bex7QRuv.js")
|
|
2981
3023
|
),
|
|
2982
|
-
categoriesToys: r.lazy(() => import("./Categoriestoys-
|
|
2983
|
-
categoriesCar: r.lazy(() => import("./Categoriescar-
|
|
3024
|
+
categoriesToys: r.lazy(() => import("./Categoriestoys-D03TNBni.js")),
|
|
3025
|
+
categoriesCar: r.lazy(() => import("./Categoriescar-CdLHTYAz.js")),
|
|
2984
3026
|
categoriesPlaceholder: r.lazy(
|
|
2985
|
-
() => import("./Categoriesplaceholder-
|
|
3027
|
+
() => import("./Categoriesplaceholder-BoN0C7uF.js")
|
|
2986
3028
|
),
|
|
2987
|
-
categoriesFuel: r.lazy(() => import("./Categoriesfuel-
|
|
3029
|
+
categoriesFuel: r.lazy(() => import("./Categoriesfuel-DgDagTsP.js")),
|
|
2988
3030
|
categoriesCarAndBike: r.lazy(
|
|
2989
|
-
() => import("./Categoriescarandbike-
|
|
3031
|
+
() => import("./Categoriescarandbike-bV2yUhiY.js")
|
|
2990
3032
|
),
|
|
2991
3033
|
categoriesToyAndHobby: r.lazy(
|
|
2992
|
-
() => import("./Categoriestoyandhobby-
|
|
3034
|
+
() => import("./Categoriestoyandhobby-D1wB-Pd5.js")
|
|
2993
3035
|
),
|
|
2994
3036
|
categoriesMultimedia: r.lazy(
|
|
2995
|
-
() => import("./Categoriesmultimedia-
|
|
3037
|
+
() => import("./Categoriesmultimedia-CdfwJGrj.js")
|
|
2996
3038
|
),
|
|
2997
|
-
categoriesParty: r.lazy(() => import("./Categoriesparty-
|
|
2998
|
-
toolsPay: r.lazy(() => import("./Toolspay-
|
|
2999
|
-
toolsReceipt: r.lazy(() => import("./Toolsreceipt-
|
|
3000
|
-
toolsFuel: r.lazy(() => import("./Toolsfuel-
|
|
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")),
|
|
3001
3043
|
toolsStoreLocator: r.lazy(
|
|
3002
|
-
() => import("./Toolsstorelocator-
|
|
3044
|
+
() => import("./Toolsstorelocator-IhMQhuLF.js")
|
|
3003
3045
|
),
|
|
3004
|
-
toolsStats: r.lazy(() => import("./Toolsstats-
|
|
3046
|
+
toolsStats: r.lazy(() => import("./Toolsstats-TBDj5H2P.js")),
|
|
3005
3047
|
toolsShowXtraOld: r.lazy(
|
|
3006
|
-
() => import("./Toolsshowxtraold-
|
|
3048
|
+
() => import("./Toolsshowxtraold-ClA-JWTH.js")
|
|
3007
3049
|
),
|
|
3008
3050
|
toolsShowXtraNew: r.lazy(
|
|
3009
|
-
() => import("./Toolsshowxtranew-
|
|
3051
|
+
() => import("./Toolsshowxtranew-DJr0dWb1.js")
|
|
3010
3052
|
),
|
|
3011
|
-
toolsScan2: r.lazy(() => import("./Toolsscan2-
|
|
3012
|
-
toolsRecipes2: r.lazy(() => import("./Toolsrecipes2-
|
|
3013
|
-
toolsWarranty: r.lazy(() => import("./Toolswarranty-
|
|
3014
|
-
toolsCoupons: r.lazy(() => import("./Toolscoupons-
|
|
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")),
|
|
3015
3057
|
toolsFavoriteInactive: r.lazy(
|
|
3016
|
-
() => import("./Toolsfavoriteinactive-
|
|
3058
|
+
() => import("./Toolsfavoriteinactive-C6SFe1mS.js")
|
|
3017
3059
|
),
|
|
3018
3060
|
toolsFavoriteActive: r.lazy(
|
|
3019
|
-
() => import("./Toolsfavoriteactive-
|
|
3020
|
-
),
|
|
3021
|
-
toolsAssortment: r.lazy(() => import("./Toolsassortment-
|
|
3022
|
-
toolsPromo: r.lazy(() => import("./Toolspromo-
|
|
3023
|
-
fuelCng: r.lazy(() => import("./Fuelcng-
|
|
3024
|
-
fuelE5: r.lazy(() => import("./Fuele5-
|
|
3025
|
-
fuelAdblue: r.lazy(() => import("./Fueladblue-
|
|
3026
|
-
fuelB7: r.lazy(() => import("./Fuelb7-
|
|
3027
|
-
fuelH2: r.lazy(() => import("./Fuelh2-
|
|
3028
|
-
fuelE10: r.lazy(() => import("./Fuele10-
|
|
3061
|
+
() => import("./Toolsfavoriteactive-C0mQg0nk.js")
|
|
3062
|
+
),
|
|
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")),
|
|
3029
3071
|
fuelFreeTireInflation: r.lazy(
|
|
3030
|
-
() => import("./Fuelfreetireinflation-
|
|
3072
|
+
() => import("./Fuelfreetireinflation-DmUEBmF6.js")
|
|
3031
3073
|
),
|
|
3032
|
-
functionalClose: r.lazy(() => import("./Functionalclose-
|
|
3033
|
-
functionalBack: r.lazy(() => import("./Functionalback-
|
|
3074
|
+
functionalClose: r.lazy(() => import("./Functionalclose-BKUMSRuU.js")),
|
|
3075
|
+
functionalBack: r.lazy(() => import("./Functionalback-pl0V3Kby.js")),
|
|
3034
3076
|
functionalSearch: r.lazy(
|
|
3035
|
-
() => import("./Functionalsearch-
|
|
3077
|
+
() => import("./Functionalsearch-CxMyPsNE.js")
|
|
3036
3078
|
),
|
|
3037
|
-
functionalEdit: r.lazy(() => import("./Functionaledit-
|
|
3038
|
-
functionalShare: r.lazy(() => import("./Functionalshare-
|
|
3079
|
+
functionalEdit: r.lazy(() => import("./Functionaledit-BYiFmpwL.js")),
|
|
3080
|
+
functionalShare: r.lazy(() => import("./Functionalshare-BaSede1c.js")),
|
|
3039
3081
|
functionalLocation: r.lazy(
|
|
3040
|
-
() => import("./Functionallocation-
|
|
3082
|
+
() => import("./Functionallocation-BEO7IAQp.js")
|
|
3041
3083
|
),
|
|
3042
|
-
functionalTrash: r.lazy(() => import("./Functionaltrash-
|
|
3084
|
+
functionalTrash: r.lazy(() => import("./Functionaltrash-CojPY_AR.js")),
|
|
3043
3085
|
functionalCamera: r.lazy(
|
|
3044
|
-
() => import("./Functionalcamera-
|
|
3086
|
+
() => import("./Functionalcamera-SLzIKiv4.js")
|
|
3045
3087
|
),
|
|
3046
|
-
functionalPhone: r.lazy(() => import("./Functionalphone-
|
|
3088
|
+
functionalPhone: r.lazy(() => import("./Functionalphone-B8vKtJxT.js")),
|
|
3047
3089
|
functionalPushNotifications: r.lazy(
|
|
3048
|
-
() => import("./Functionalpushnotifications-
|
|
3090
|
+
() => import("./Functionalpushnotifications-D8pF_ZEC.js")
|
|
3049
3091
|
),
|
|
3050
|
-
functionalMail: r.lazy(() => import("./Functionalmail-
|
|
3051
|
-
functionalGift: r.lazy(() => import("./Functionalgift-
|
|
3092
|
+
functionalMail: r.lazy(() => import("./Functionalmail-DosjUg7Y.js")),
|
|
3093
|
+
functionalGift: r.lazy(() => import("./Functionalgift-qlRuU3JH.js")),
|
|
3052
3094
|
functionalPresent: r.lazy(
|
|
3053
|
-
() => import("./Functionalpresent-
|
|
3095
|
+
() => import("./Functionalpresent-hNlK0QJ-.js")
|
|
3054
3096
|
),
|
|
3055
3097
|
functionalLoading: r.lazy(
|
|
3056
|
-
() => import("./Functionalloading-
|
|
3098
|
+
() => import("./Functionalloading-BgGaayIk.js")
|
|
3057
3099
|
),
|
|
3058
3100
|
functionalChevronRight: r.lazy(
|
|
3059
|
-
() => import("./Functionalchevronright-
|
|
3101
|
+
() => import("./Functionalchevronright-BelpgxQR.js")
|
|
3060
3102
|
),
|
|
3061
|
-
functionalCheck: r.lazy(() => import("./Functionalcheck-
|
|
3103
|
+
functionalCheck: r.lazy(() => import("./Functionalcheck-CTsaSo12.js")),
|
|
3062
3104
|
functionalChevronDown: r.lazy(
|
|
3063
|
-
() => import("./Functionalchevrondown-
|
|
3105
|
+
() => import("./Functionalchevrondown-B3QLvQH7.js")
|
|
3064
3106
|
),
|
|
3065
3107
|
functionalChevronUp: r.lazy(
|
|
3066
|
-
() => import("./Functionalchevronup-
|
|
3108
|
+
() => import("./Functionalchevronup-CqSxvkmf.js")
|
|
3067
3109
|
),
|
|
3068
|
-
functionalPlus: r.lazy(() => import("./Functionalplus-
|
|
3069
|
-
functionalReset: r.lazy(() => import("./Functionalreset-
|
|
3110
|
+
functionalPlus: r.lazy(() => import("./Functionalplus-xF4rj5tZ.js")),
|
|
3111
|
+
functionalReset: r.lazy(() => import("./Functionalreset-LieSrLvz.js")),
|
|
3070
3112
|
functionalDownload: r.lazy(
|
|
3071
|
-
() => import("./Functionaldownload-
|
|
3113
|
+
() => import("./Functionaldownload-C9a_ajXf.js")
|
|
3072
3114
|
),
|
|
3073
3115
|
functionalExport: r.lazy(
|
|
3074
|
-
() => import("./Functionalexport-
|
|
3116
|
+
() => import("./Functionalexport-DUQwwuwQ.js")
|
|
3075
3117
|
),
|
|
3076
3118
|
functionalCustomerService: r.lazy(
|
|
3077
|
-
() => import("./Functionalcustomerservice-
|
|
3119
|
+
() => import("./Functionalcustomerservice-Bx8Njg04.js")
|
|
3078
3120
|
),
|
|
3079
|
-
functionalTruck: r.lazy(() => import("./Functionaltruck-
|
|
3080
|
-
functionalBox: r.lazy(() => import("./Functionalbox-
|
|
3121
|
+
functionalTruck: r.lazy(() => import("./Functionaltruck-c609Vcql.js")),
|
|
3122
|
+
functionalBox: r.lazy(() => import("./Functionalbox-P-ghum33.js")),
|
|
3081
3123
|
functionalEllipsis: r.lazy(
|
|
3082
|
-
() => import("./Functionalellipsis-
|
|
3124
|
+
() => import("./Functionalellipsis-rU1EVOZc.js")
|
|
3083
3125
|
),
|
|
3084
3126
|
functionalLocationHome: r.lazy(
|
|
3085
|
-
() => import("./Functionallocationhome-
|
|
3127
|
+
() => import("./Functionallocationhome-QLhGNoLv.js")
|
|
3086
3128
|
),
|
|
3087
3129
|
functionalLocationPickup: r.lazy(
|
|
3088
|
-
() => import("./Functionallocationpickup-
|
|
3130
|
+
() => import("./Functionallocationpickup-DZFse_eh.js")
|
|
3089
3131
|
),
|
|
3090
3132
|
functionalAccount: r.lazy(
|
|
3091
|
-
() => import("./Functionalaccount-
|
|
3133
|
+
() => import("./Functionalaccount-Bnt6MZ3W.js")
|
|
3092
3134
|
),
|
|
3093
3135
|
functionalPrivacy: r.lazy(
|
|
3094
|
-
() => import("./Functionalprivacy-
|
|
3136
|
+
() => import("./Functionalprivacy-zotrCI5M.js")
|
|
3095
3137
|
),
|
|
3096
3138
|
functionalSettings: r.lazy(
|
|
3097
|
-
() => import("./Functionalsettings-
|
|
3139
|
+
() => import("./Functionalsettings-DEbullli.js")
|
|
3098
3140
|
),
|
|
3099
3141
|
functionalUserInfo: r.lazy(
|
|
3100
|
-
() => import("./Functionaluserinfo-
|
|
3142
|
+
() => import("./Functionaluserinfo-C8i7GKmE.js")
|
|
3101
3143
|
),
|
|
3102
3144
|
functionalPinOutlines: r.lazy(
|
|
3103
|
-
() => import("./Functionalpinoutlines-
|
|
3145
|
+
() => import("./Functionalpinoutlines-D9eN3Okw.js")
|
|
3104
3146
|
),
|
|
3105
3147
|
functionalCalendar: r.lazy(
|
|
3106
|
-
() => import("./Functionalcalendar-
|
|
3148
|
+
() => import("./Functionalcalendar-CbO9iWkB.js")
|
|
3107
3149
|
),
|
|
3108
|
-
functionalMinus: r.lazy(() => import("./Functionalminus-
|
|
3150
|
+
functionalMinus: r.lazy(() => import("./Functionalminus-DAjUNbXV.js")),
|
|
3109
3151
|
functionalLifestyle: r.lazy(
|
|
3110
|
-
() => import("./Functionallifestyle-
|
|
3152
|
+
() => import("./Functionallifestyle-C8vEOp3s.js")
|
|
3111
3153
|
),
|
|
3112
|
-
functionalSms: r.lazy(() => import("./Functionalsms-
|
|
3154
|
+
functionalSms: r.lazy(() => import("./Functionalsms-BT7bYQ7Y.js")),
|
|
3113
3155
|
functionalSwitch: r.lazy(
|
|
3114
|
-
() => import("./Functionalswitch-
|
|
3156
|
+
() => import("./Functionalswitch-Cj7NRzBZ.js")
|
|
3115
3157
|
),
|
|
3116
3158
|
functionalSorting: r.lazy(
|
|
3117
|
-
() => import("./Functionalsorting-
|
|
3159
|
+
() => import("./Functionalsorting-C9GRh7zT.js")
|
|
3118
3160
|
),
|
|
3119
3161
|
functionalWarningCircle: r.lazy(
|
|
3120
|
-
() => import("./Functionalwarningcircle-
|
|
3162
|
+
() => import("./Functionalwarningcircle-C1i2MU6-.js")
|
|
3121
3163
|
),
|
|
3122
3164
|
functionalQuestionCircle: r.lazy(
|
|
3123
|
-
() => import("./Functionalquestioncircle-
|
|
3165
|
+
() => import("./Functionalquestioncircle-2PDi1sbY.js")
|
|
3124
3166
|
),
|
|
3125
3167
|
functionalErrorCircle: r.lazy(
|
|
3126
|
-
() => import("./Functionalerrorcircle-
|
|
3168
|
+
() => import("./Functionalerrorcircle-CmQvSLoF.js")
|
|
3127
3169
|
),
|
|
3128
3170
|
functionalSuccessCircle: r.lazy(
|
|
3129
|
-
() => import("./Functionalsuccesscircle-
|
|
3171
|
+
() => import("./Functionalsuccesscircle-CvnJtrC1.js")
|
|
3130
3172
|
),
|
|
3131
3173
|
functionalMessage: r.lazy(
|
|
3132
|
-
() => import("./Functionalmessage-
|
|
3174
|
+
() => import("./Functionalmessage-B3lG5V8T.js")
|
|
3133
3175
|
),
|
|
3134
3176
|
functionalExternalLink: r.lazy(
|
|
3135
|
-
() => import("./Functionalexternallink-
|
|
3177
|
+
() => import("./Functionalexternallink-Dij3wfx3.js")
|
|
3136
3178
|
),
|
|
3137
3179
|
functionalAddToList: r.lazy(
|
|
3138
|
-
() => import("./Functionaladdtolist-
|
|
3180
|
+
() => import("./Functionaladdtolist-BlNEspkM.js")
|
|
3139
3181
|
),
|
|
3140
3182
|
functionalShoppingcart: r.lazy(
|
|
3141
|
-
() => import("./Functionalshoppingcart-
|
|
3183
|
+
() => import("./Functionalshoppingcart-BjYAfE_n.js")
|
|
3142
3184
|
),
|
|
3143
3185
|
functionalFilter: r.lazy(
|
|
3144
|
-
() => import("./Functionalfilter-
|
|
3186
|
+
() => import("./Functionalfilter-C-Fafr2v.js")
|
|
3145
3187
|
),
|
|
3146
3188
|
functionalLocate: r.lazy(
|
|
3147
|
-
() => import("./Functionallocate-
|
|
3189
|
+
() => import("./Functionallocate-CyDygvGn.js")
|
|
3148
3190
|
),
|
|
3149
3191
|
functionalBarcode: r.lazy(
|
|
3150
|
-
() => import("./Functionalbarcode-
|
|
3192
|
+
() => import("./Functionalbarcode-DVJVYtfB.js")
|
|
3151
3193
|
),
|
|
3152
|
-
functionalClock: r.lazy(() => import("./Functionalclock-
|
|
3194
|
+
functionalClock: r.lazy(() => import("./Functionalclock-Ca2aahAP.js")),
|
|
3153
3195
|
functionalHistory: r.lazy(
|
|
3154
|
-
() => import("./Functionalhistory-
|
|
3196
|
+
() => import("./Functionalhistory-Bv4epxeh.js")
|
|
3155
3197
|
),
|
|
3156
|
-
functionalShops: r.lazy(() => import("./Functionalshops-
|
|
3198
|
+
functionalShops: r.lazy(() => import("./Functionalshops-Blr-QFKj.js")),
|
|
3157
3199
|
functionalAddUser: r.lazy(
|
|
3158
|
-
() => import("./Functionaladduser-
|
|
3200
|
+
() => import("./Functionaladduser-CWXkXUog.js")
|
|
3159
3201
|
),
|
|
3160
|
-
functionalOther: r.lazy(() => import("./Functionalother-
|
|
3202
|
+
functionalOther: r.lazy(() => import("./Functionalother-Db-O1duA.js")),
|
|
3161
3203
|
functionalInAppNotifications: r.lazy(
|
|
3162
|
-
() => import("./Functionalinappnotifications-
|
|
3204
|
+
() => import("./Functionalinappnotifications-CQnv2KIU.js")
|
|
3163
3205
|
),
|
|
3164
|
-
functionalExit: r.lazy(() => import("./Functionalexit-
|
|
3206
|
+
functionalExit: r.lazy(() => import("./Functionalexit-nIomTzRH.js")),
|
|
3165
3207
|
functionalShared: r.lazy(
|
|
3166
|
-
() => import("./Functionalshared-
|
|
3208
|
+
() => import("./Functionalshared-CA39SW4R.js")
|
|
3167
3209
|
),
|
|
3168
3210
|
functionalThumbsup: r.lazy(
|
|
3169
|
-
() => import("./Functionalthumbsup-
|
|
3211
|
+
() => import("./Functionalthumbsup-D6-dxP2g.js")
|
|
3170
3212
|
),
|
|
3171
3213
|
functionalDiscount: r.lazy(
|
|
3172
|
-
() => import("./Functionaldiscount-
|
|
3214
|
+
() => import("./Functionaldiscount-oAG4VzGV.js")
|
|
3173
3215
|
),
|
|
3174
3216
|
functionalPercentage: r.lazy(
|
|
3175
|
-
() => import("./Functionalpercentage-
|
|
3217
|
+
() => import("./Functionalpercentage-O6rN3h02.js")
|
|
3176
3218
|
),
|
|
3177
|
-
functionalList: r.lazy(() => import("./Functionallist-
|
|
3219
|
+
functionalList: r.lazy(() => import("./Functionallist-C4ahBTwf.js")),
|
|
3178
3220
|
functionalMapLocation: r.lazy(
|
|
3179
|
-
() => import("./Functionalmaplocation-
|
|
3221
|
+
() => import("./Functionalmaplocation-ByzgczPG.js")
|
|
3180
3222
|
),
|
|
3181
3223
|
functionalNoConnection: r.lazy(
|
|
3182
|
-
() => import("./Functionalnoconnection-
|
|
3224
|
+
() => import("./Functionalnoconnection-ccOk8_bI.js")
|
|
3183
3225
|
),
|
|
3184
|
-
functionalSwap: r.lazy(() => import("./Functionalswap-
|
|
3185
|
-
functionalPiece: r.lazy(() => import("./Functionalpiece-
|
|
3226
|
+
functionalSwap: r.lazy(() => import("./Functionalswap-C1b8rSWs.js")),
|
|
3227
|
+
functionalPiece: r.lazy(() => import("./Functionalpiece-THXTuVKJ.js")),
|
|
3186
3228
|
functionalWeight: r.lazy(
|
|
3187
|
-
() => import("./Functionalweight-
|
|
3229
|
+
() => import("./Functionalweight-DpTzOcNo.js")
|
|
3188
3230
|
),
|
|
3189
|
-
functionalPack: r.lazy(() => import("./Functionalpack-
|
|
3231
|
+
functionalPack: r.lazy(() => import("./Functionalpack-DabqpolM.js")),
|
|
3190
3232
|
functionalCommunications: r.lazy(
|
|
3191
|
-
() => import("./Functionalcommunications-
|
|
3233
|
+
() => import("./Functionalcommunications-jAeYBymW.js")
|
|
3192
3234
|
),
|
|
3193
3235
|
functionalDeliveryAddresses: r.lazy(
|
|
3194
|
-
() => import("./Functionaldeliveryaddresses-
|
|
3236
|
+
() => import("./Functionaldeliveryaddresses-DclG3tVD.js")
|
|
3195
3237
|
),
|
|
3196
3238
|
"functional18+": r.lazy(
|
|
3197
|
-
() => import("./Functional18plus-
|
|
3239
|
+
() => import("./Functional18plus-Ddg8XOc-.js")
|
|
3198
3240
|
),
|
|
3199
3241
|
functionalReadtime: r.lazy(
|
|
3200
|
-
() => import("./Functionalreadtime-
|
|
3242
|
+
() => import("./Functionalreadtime-BFDKvQ3c.js")
|
|
3201
3243
|
),
|
|
3202
|
-
functionalCopy: r.lazy(() => import("./Functionalcopy-
|
|
3244
|
+
functionalCopy: r.lazy(() => import("./Functionalcopy-CvbASnR4.js")),
|
|
3203
3245
|
functionalMessageField: r.lazy(
|
|
3204
|
-
() => import("./Functionalmessagefield-
|
|
3246
|
+
() => import("./Functionalmessagefield-wyUwQjlA.js")
|
|
3205
3247
|
),
|
|
3206
|
-
functionalNext: r.lazy(() => import("./Functionalnext-
|
|
3207
|
-
functionalSave: r.lazy(() => import("./Functionalsave-
|
|
3208
|
-
functionalLogin: r.lazy(() => import("./Functionallogin-
|
|
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")),
|
|
3209
3251
|
functionalLogout: r.lazy(
|
|
3210
|
-
() => import("./Functionallogout-
|
|
3252
|
+
() => import("./Functionallogout-CJEOzHOZ.js")
|
|
3211
3253
|
),
|
|
3212
3254
|
functionalWebsite: r.lazy(
|
|
3213
|
-
() => import("./Functionalwebsite-
|
|
3255
|
+
() => import("./Functionalwebsite-BlxPVfWP.js")
|
|
3214
3256
|
),
|
|
3215
|
-
functionalMenu: r.lazy(() => import("./Functionalmenu-
|
|
3257
|
+
functionalMenu: r.lazy(() => import("./Functionalmenu-CgLBEUY-.js")),
|
|
3216
3258
|
functionalRegister: r.lazy(
|
|
3217
|
-
() => import("./Functionalregister-
|
|
3259
|
+
() => import("./Functionalregister-hO7RUkdA.js")
|
|
3218
3260
|
),
|
|
3219
|
-
functionalNews: r.lazy(() => import("./Functionalnews-
|
|
3220
|
-
functionalTimer: r.lazy(() => import("./Functionaltimer-
|
|
3261
|
+
functionalNews: r.lazy(() => import("./Functionalnews-B9eVhJW3.js")),
|
|
3262
|
+
functionalTimer: r.lazy(() => import("./Functionaltimer-BHdD7mIx.js")),
|
|
3221
3263
|
functionalEyeShow: r.lazy(
|
|
3222
|
-
() => import("./Functionaleyeshow-
|
|
3264
|
+
() => import("./Functionaleyeshow-VZvRHUCc.js")
|
|
3223
3265
|
),
|
|
3224
3266
|
functionalMobilePay: r.lazy(
|
|
3225
|
-
() => import("./Functionalmobilepay-
|
|
3267
|
+
() => import("./Functionalmobilepay-c9RlQquM.js")
|
|
3226
3268
|
),
|
|
3227
3269
|
functionalConnectionCable: r.lazy(
|
|
3228
|
-
() => import("./Functionalconnectioncable-
|
|
3270
|
+
() => import("./Functionalconnectioncable-D8WJV_SD.js")
|
|
3229
3271
|
),
|
|
3230
3272
|
functionalDryCleaning: r.lazy(
|
|
3231
|
-
() => import("./Functionaldrycleaning-
|
|
3273
|
+
() => import("./Functionaldrycleaning-BVALxFXl.js")
|
|
3232
3274
|
),
|
|
3233
|
-
functionalKiosk: r.lazy(() => import("./Functionalkiosk-
|
|
3275
|
+
functionalKiosk: r.lazy(() => import("./Functionalkiosk-CXoriPgN.js")),
|
|
3234
3276
|
functionalConnectedDevice: r.lazy(
|
|
3235
|
-
() => import("./Functionalconnecteddevice-
|
|
3277
|
+
() => import("./Functionalconnecteddevice-DkNljFxK.js")
|
|
3236
3278
|
),
|
|
3237
3279
|
functionalCookies: r.lazy(
|
|
3238
|
-
() => import("./Functionalcookies-
|
|
3280
|
+
() => import("./Functionalcookies-D_WTTmgL.js")
|
|
3239
3281
|
),
|
|
3240
3282
|
functionalViewFile: r.lazy(
|
|
3241
|
-
() => import("./Functionalviewfile-
|
|
3283
|
+
() => import("./Functionalviewfile-CCzlhZ-j.js")
|
|
3242
3284
|
),
|
|
3243
3285
|
functionalLastAdded: r.lazy(
|
|
3244
|
-
() => import("./Functionallastadded-
|
|
3286
|
+
() => import("./Functionallastadded-DUTNwqzq.js")
|
|
3245
3287
|
),
|
|
3246
3288
|
functionalFirstAdded: r.lazy(
|
|
3247
|
-
() => import("./Functionalfirstadded-
|
|
3289
|
+
() => import("./Functionalfirstadded-CTo_v97-.js")
|
|
3248
3290
|
),
|
|
3249
3291
|
functionalStoreLayout: r.lazy(
|
|
3250
|
-
() => import("./Functionalstorelayout-
|
|
3292
|
+
() => import("./Functionalstorelayout-hmnfPr-B.js")
|
|
3251
3293
|
),
|
|
3252
|
-
functionalBlock: r.lazy(() => import("./Functionalblock-
|
|
3294
|
+
functionalBlock: r.lazy(() => import("./Functionalblock-CemRET4z.js")),
|
|
3253
3295
|
functionalChecklist: r.lazy(
|
|
3254
|
-
() => import("./Functionalchecklist-
|
|
3296
|
+
() => import("./Functionalchecklist-CDignahR.js")
|
|
3255
3297
|
),
|
|
3256
3298
|
functionalCartCheckout: r.lazy(
|
|
3257
|
-
() => import("./Functionalcartcheckout-
|
|
3299
|
+
() => import("./Functionalcartcheckout-DLRylbbf.js")
|
|
3258
3300
|
),
|
|
3259
3301
|
functionalCartEdit: r.lazy(
|
|
3260
|
-
() => import("./Functionalcartedit-
|
|
3302
|
+
() => import("./Functionalcartedit-BZsOoHDj.js")
|
|
3261
3303
|
),
|
|
3262
3304
|
functionalEyeHidden: r.lazy(
|
|
3263
|
-
() => import("./Functionaleyehidden-
|
|
3305
|
+
() => import("./Functionaleyehidden-CU3Vb1Dq.js")
|
|
3264
3306
|
),
|
|
3265
3307
|
functionalWarningCircleFilled: r.lazy(
|
|
3266
|
-
() => import("./Functionalwarningcirclefilled-
|
|
3308
|
+
() => import("./Functionalwarningcirclefilled-B3K_ckR6.js")
|
|
3267
3309
|
),
|
|
3268
3310
|
functionalQuestionCircleFilled: r.lazy(
|
|
3269
|
-
() => import("./Functionalquestioncirclefilled-
|
|
3311
|
+
() => import("./Functionalquestioncirclefilled-D3WuYQhd.js")
|
|
3270
3312
|
),
|
|
3271
3313
|
functionalErrorCircleFilled: r.lazy(
|
|
3272
|
-
() => import("./Functionalerrorcirclefilled-
|
|
3314
|
+
() => import("./Functionalerrorcirclefilled-d0USRGtr.js")
|
|
3273
3315
|
),
|
|
3274
3316
|
functionalSuccessCircleFilled: r.lazy(
|
|
3275
|
-
() => import("./Functionalsuccesscirclefilled-
|
|
3317
|
+
() => import("./Functionalsuccesscirclefilled-CN27HmQp.js")
|
|
3276
3318
|
),
|
|
3277
3319
|
functionalPlusCircle: r.lazy(
|
|
3278
|
-
() => import("./Functionalpluscircle-
|
|
3320
|
+
() => import("./Functionalpluscircle-Bu5ECDIH.js")
|
|
3279
3321
|
),
|
|
3280
3322
|
functionalSpinner: r.lazy(
|
|
3281
|
-
() => import("./Functionalspinner-
|
|
3323
|
+
() => import("./Functionalspinner-DuD-_Mnk.js")
|
|
3282
3324
|
),
|
|
3283
3325
|
functionalEcoEarth: r.lazy(
|
|
3284
|
-
() => import("./Functionalecoearth-
|
|
3326
|
+
() => import("./Functionalecoearth-B9LJ8J_5.js")
|
|
3285
3327
|
),
|
|
3286
3328
|
functionalAlphaBeta: r.lazy(
|
|
3287
|
-
() => import("./Functionalalphabeta-
|
|
3329
|
+
() => import("./Functionalalphabeta-CulAnUDo.js")
|
|
3288
3330
|
),
|
|
3289
|
-
functionalEuro: r.lazy(() => import("./Functionaleuro-
|
|
3331
|
+
functionalEuro: r.lazy(() => import("./Functionaleuro-D7wFD_IF.js")),
|
|
3290
3332
|
functionalNumber: r.lazy(
|
|
3291
|
-
() => import("./Functionalnumber-
|
|
3333
|
+
() => import("./Functionalnumber-aZYnBBcv.js")
|
|
3292
3334
|
),
|
|
3293
|
-
functionalIdea: r.lazy(() => import("./Functionalidea-
|
|
3335
|
+
functionalIdea: r.lazy(() => import("./Functionalidea-BwbY50VB.js")),
|
|
3294
3336
|
functionalMultifactorAuthenticator: r.lazy(
|
|
3295
|
-
() => import("./Functionalmultifactorauthenticator-
|
|
3337
|
+
() => import("./Functionalmultifactorauthenticator-D6xenqja.js")
|
|
3296
3338
|
),
|
|
3297
3339
|
functionalPassword: r.lazy(
|
|
3298
|
-
() => import("./Functionalpassword-
|
|
3340
|
+
() => import("./Functionalpassword-D_qE10n9.js")
|
|
3299
3341
|
),
|
|
3300
3342
|
functionalDiscountCode: r.lazy(
|
|
3301
|
-
() => import("./Functionaldiscountcode-
|
|
3343
|
+
() => import("./Functionaldiscountcode-BQwI1UEy.js")
|
|
3302
3344
|
)
|
|
3303
|
-
},
|
|
3345
|
+
}, Vr = ({
|
|
3304
3346
|
bouIconId: t,
|
|
3305
3347
|
...e
|
|
3306
3348
|
}) => {
|
|
3307
|
-
const s = ie[t], i =
|
|
3349
|
+
const s = ie[t], i = Gr[s];
|
|
3308
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;
|
|
3309
|
-
}, be = (t) => typeof t.icon == "string" && t.icon in ie ? /* @__PURE__ */ n.jsx(
|
|
3351
|
+
}, be = (t) => typeof t.icon == "string" && t.icon in ie ? /* @__PURE__ */ n.jsx(Vr, { bouIconId: ie[t.icon] }) : t.icon, qr = ({
|
|
3310
3352
|
label: t,
|
|
3311
3353
|
className: e,
|
|
3312
3354
|
onClick: s,
|
|
@@ -3315,7 +3357,7 @@ const Or = {
|
|
|
3315
3357
|
/* @__PURE__ */ n.jsx(be, { icon: i }),
|
|
3316
3358
|
t
|
|
3317
3359
|
] }) }), _t = (t) => {
|
|
3318
|
-
const e =
|
|
3360
|
+
const e = Gs(), { className: s, label: i, mobileUrl: a, desktopUrl: c, icon: l } = t;
|
|
3319
3361
|
return /* @__PURE__ */ n.jsxs(G.Item, { className: s, children: [
|
|
3320
3362
|
(!e || e && !c) && /* @__PURE__ */ n.jsxs("a", { href: a, referrerPolicy: "no-referrer-when-downgrade", children: [
|
|
3321
3363
|
/* @__PURE__ */ n.jsx(be, { icon: l }),
|
|
@@ -3326,35 +3368,35 @@ const Or = {
|
|
|
3326
3368
|
i
|
|
3327
3369
|
] })
|
|
3328
3370
|
] });
|
|
3329
|
-
},
|
|
3330
|
-
const t = r.useContext(
|
|
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);
|
|
3331
3373
|
if (!t)
|
|
3332
3374
|
throw new Error("Api context can not be rendered outside of Api");
|
|
3333
3375
|
return t;
|
|
3334
|
-
},
|
|
3335
|
-
const t = r.useContext(
|
|
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);
|
|
3336
3378
|
if (!t)
|
|
3337
3379
|
throw new Error("Authentication context can not be rendered outside of Authentication");
|
|
3338
3380
|
return t;
|
|
3339
|
-
},
|
|
3381
|
+
}, Ts = ({ authUrl: t, redirectUrl: e, trackingInfo: s }) => {
|
|
3340
3382
|
const i = new URLSearchParams({ redirectUrl: e });
|
|
3341
3383
|
s && i.append("trackingInfo", s);
|
|
3342
3384
|
const a = `${t}/login?${i.toString()}`, c = `${t}/logout?${i.toString()}`;
|
|
3343
3385
|
return { loginUrl: a, logoutUrl: c };
|
|
3344
3386
|
}, re = () => {
|
|
3345
|
-
const { authUrl: t, redirectUrl: e } = St(), s =
|
|
3346
|
-
return
|
|
3347
|
-
},
|
|
3387
|
+
const { authUrl: t, redirectUrl: e } = St(), s = Vs();
|
|
3388
|
+
return Ts({ authUrl: t, redirectUrl: e, trackingInfo: s });
|
|
3389
|
+
}, Xr = () => {
|
|
3348
3390
|
const { apiUrl: t } = St();
|
|
3349
3391
|
return `${`${t}/xtra`}/authentication/v1/user/profile`;
|
|
3350
|
-
},
|
|
3351
|
-
const { loginUrl: s } =
|
|
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 }) => {
|
|
3393
|
+
const { loginUrl: s } = Ts({ authUrl: t, redirectUrl: e });
|
|
3352
3394
|
window.location.replace(s);
|
|
3353
|
-
},
|
|
3395
|
+
}, Ve = (t) => {
|
|
3354
3396
|
var c;
|
|
3355
3397
|
if (!t)
|
|
3356
|
-
return { user: { state: () => "NotAuthenticated" }, tryToLogon:
|
|
3357
|
-
const e = new Date(t.dateOfBirth), s =
|
|
3398
|
+
return { user: { state: () => "NotAuthenticated" }, tryToLogon: Ge };
|
|
3399
|
+
const e = new Date(t.dateOfBirth), s = We(Le.Mobile, t.phone), i = We(Le.Fixed, t.phone), a = Ke(s) ?? Ke(i) ?? "";
|
|
3358
3400
|
return {
|
|
3359
3401
|
user: {
|
|
3360
3402
|
...(c = window.XTRA) == null ? void 0 : c.user,
|
|
@@ -3393,12 +3435,12 @@ const Or = {
|
|
|
3393
3435
|
cbh: () => t.customerIdentifier,
|
|
3394
3436
|
state: () => "Authenticated"
|
|
3395
3437
|
},
|
|
3396
|
-
tryToLogon:
|
|
3438
|
+
tryToLogon: Ge
|
|
3397
3439
|
};
|
|
3398
|
-
},
|
|
3399
|
-
const { i18n: t } = pt(), { country: e, bouHeaders: s } = St(), i =
|
|
3400
|
-
return
|
|
3401
|
-
queryKey:
|
|
3440
|
+
}, Us = ["profile"], Qs = () => {
|
|
3441
|
+
const { i18n: t } = pt(), { country: e, bouHeaders: s } = St(), i = Xr(), a = sessionStorage.getItem("profile"), c = !!a;
|
|
3442
|
+
return Cs({
|
|
3443
|
+
queryKey: Us,
|
|
3402
3444
|
queryFn: async () => {
|
|
3403
3445
|
const u = je(t.language, e), d = await fetch(i, {
|
|
3404
3446
|
credentials: "include",
|
|
@@ -3407,7 +3449,7 @@ const Or = {
|
|
|
3407
3449
|
});
|
|
3408
3450
|
if (!d.ok) {
|
|
3409
3451
|
if (d.status === 401)
|
|
3410
|
-
return window.XTRA = { ...window.XTRA, ...
|
|
3452
|
+
return window.XTRA = { ...window.XTRA, ...Ve() }, window.postMessage(
|
|
3411
3453
|
{ source: "xtra-authentication", isAuthenticated: !1 },
|
|
3412
3454
|
new URL(window.location.href).origin
|
|
3413
3455
|
), sessionStorage.removeItem("profile"), { authenticationStatus: "NotAuthenticated" };
|
|
@@ -3419,7 +3461,7 @@ const Or = {
|
|
|
3419
3461
|
return sessionStorage.setItem("profile", JSON.stringify({ firstName: f, lastName: h })), window.postMessage(
|
|
3420
3462
|
{ source: "xtra-authentication", isAuthenticated: !0 },
|
|
3421
3463
|
new URL(window.location.href).origin
|
|
3422
|
-
), window.XTRA = { ...window.XTRA, ...
|
|
3464
|
+
), window.XTRA = { ...window.XTRA, ...Ve(p) }, {
|
|
3423
3465
|
authenticationStatus: "Authenticated",
|
|
3424
3466
|
profile: { firstName: p.firstName, lastName: p.lastName }
|
|
3425
3467
|
};
|
|
@@ -3431,7 +3473,7 @@ const Or = {
|
|
|
3431
3473
|
placeholderData: { authenticationStatus: "Pending" },
|
|
3432
3474
|
refetchOnWindowFocus: !1
|
|
3433
3475
|
});
|
|
3434
|
-
},
|
|
3476
|
+
}, Yr = (t) => {
|
|
3435
3477
|
const e = {
|
|
3436
3478
|
shouldHidePayments: !1,
|
|
3437
3479
|
shouldHideVouchers: !1,
|
|
@@ -3459,37 +3501,37 @@ const Or = {
|
|
|
3459
3501
|
"Please make sure the Menu Items to hide are strings and the expected values are [Payment, Vouchers, QRCode]"
|
|
3460
3502
|
);
|
|
3461
3503
|
}), e;
|
|
3462
|
-
},
|
|
3463
|
-
const { t } = pt(), { position: e, bouMenuItems: s, menuItemsToHide: i } =
|
|
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), _ = () => {
|
|
3464
3506
|
sessionStorage.removeItem("profile"), window.location.href = l;
|
|
3465
3507
|
};
|
|
3466
3508
|
return /* @__PURE__ */ n.jsxs(G, { type: "nav", id: "xtra-menu", position: e, children: [
|
|
3467
3509
|
/* @__PURE__ */ n.jsx(
|
|
3468
3510
|
G.Trigger,
|
|
3469
3511
|
{
|
|
3470
|
-
className:
|
|
3512
|
+
className: N(
|
|
3471
3513
|
"button",
|
|
3472
3514
|
"button--neutral",
|
|
3473
3515
|
"button--authentication",
|
|
3474
3516
|
"button--authentication--authenticated"
|
|
3475
3517
|
),
|
|
3476
3518
|
children: /* @__PURE__ */ n.jsxs("button", { children: [
|
|
3477
|
-
/* @__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 }) }),
|
|
3478
3520
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: p }),
|
|
3479
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(
|
|
3521
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3480
3522
|
] })
|
|
3481
3523
|
}
|
|
3482
3524
|
),
|
|
3483
3525
|
/* @__PURE__ */ n.jsxs(G.Content, { as: "div", children: [
|
|
3484
|
-
!!s && s.length > 0 && /* @__PURE__ */ n.jsx("ul", { className: "bou-menu__list", children: s.map(({ label: S, icon: P, url:
|
|
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(
|
|
3485
3527
|
_t,
|
|
3486
3528
|
{
|
|
3487
3529
|
className: "bou-menu-item",
|
|
3488
|
-
mobileUrl:
|
|
3530
|
+
mobileUrl: x,
|
|
3489
3531
|
icon: P,
|
|
3490
3532
|
label: S
|
|
3491
3533
|
},
|
|
3492
|
-
|
|
3534
|
+
b
|
|
3493
3535
|
)) }),
|
|
3494
3536
|
/* @__PURE__ */ n.jsxs("ul", { children: [
|
|
3495
3537
|
/* @__PURE__ */ n.jsx(
|
|
@@ -3498,7 +3540,7 @@ const Or = {
|
|
|
3498
3540
|
className: "manage-profile",
|
|
3499
3541
|
mobileUrl: `${c}/manage-profile`,
|
|
3500
3542
|
desktopUrl: `${c}/manage-profile/personal-data`,
|
|
3501
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3543
|
+
icon: /* @__PURE__ */ n.jsx(nr, {}),
|
|
3502
3544
|
label: t("manageProfile")
|
|
3503
3545
|
}
|
|
3504
3546
|
),
|
|
@@ -3507,7 +3549,7 @@ const Or = {
|
|
|
3507
3549
|
{
|
|
3508
3550
|
className: "payment",
|
|
3509
3551
|
mobileUrl: `${c}/payment`,
|
|
3510
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3552
|
+
icon: /* @__PURE__ */ n.jsx(yr, {}),
|
|
3511
3553
|
label: t("payment")
|
|
3512
3554
|
}
|
|
3513
3555
|
),
|
|
@@ -3516,7 +3558,7 @@ const Or = {
|
|
|
3516
3558
|
{
|
|
3517
3559
|
className: "gift-cards",
|
|
3518
3560
|
mobileUrl: `${c}/gift-cards`,
|
|
3519
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3561
|
+
icon: /* @__PURE__ */ n.jsx(pr, {}),
|
|
3520
3562
|
label: t("giftCards")
|
|
3521
3563
|
}
|
|
3522
3564
|
),
|
|
@@ -3524,7 +3566,7 @@ const Or = {
|
|
|
3524
3566
|
_t,
|
|
3525
3567
|
{
|
|
3526
3568
|
mobileUrl: `${c}/identifiers`,
|
|
3527
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3569
|
+
icon: /* @__PURE__ */ n.jsx(vr, {}),
|
|
3528
3570
|
label: t("qrCode")
|
|
3529
3571
|
}
|
|
3530
3572
|
),
|
|
@@ -3534,17 +3576,17 @@ const Or = {
|
|
|
3534
3576
|
className: "manage-privacy",
|
|
3535
3577
|
mobileUrl: `${c}/manage-privacy`,
|
|
3536
3578
|
desktopUrl: `${c}/manage-privacy/permissions`,
|
|
3537
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3579
|
+
icon: /* @__PURE__ */ n.jsx(ir, {}),
|
|
3538
3580
|
label: t("privacy")
|
|
3539
3581
|
}
|
|
3540
3582
|
),
|
|
3541
|
-
/* @__PURE__ */ n.jsx(
|
|
3583
|
+
/* @__PURE__ */ n.jsx(qr, { onClick: _, icon: /* @__PURE__ */ n.jsx(er, {}), label: t("logout") })
|
|
3542
3584
|
] })
|
|
3543
3585
|
] })
|
|
3544
3586
|
] });
|
|
3545
|
-
},
|
|
3587
|
+
}, Ir = () => {
|
|
3546
3588
|
const { t } = pt();
|
|
3547
|
-
return /* @__PURE__ */ n.jsxs("button", { className:
|
|
3589
|
+
return /* @__PURE__ */ n.jsxs("button", { className: N("button", "button--neutral", "button--authentication"), children: [
|
|
3548
3590
|
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx("i", { className: "spinner" }) }),
|
|
3549
3591
|
/* @__PURE__ */ n.jsxs("span", { className: "button__label", children: [
|
|
3550
3592
|
t("loading"),
|
|
@@ -3561,7 +3603,7 @@ function It(t) {
|
|
|
3561
3603
|
}
|
|
3562
3604
|
return t;
|
|
3563
3605
|
}
|
|
3564
|
-
var
|
|
3606
|
+
var Br = {
|
|
3565
3607
|
read: function(t) {
|
|
3566
3608
|
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3567
3609
|
},
|
|
@@ -3622,18 +3664,18 @@ function we(t, e) {
|
|
|
3622
3664
|
}
|
|
3623
3665
|
);
|
|
3624
3666
|
}
|
|
3625
|
-
var
|
|
3626
|
-
const
|
|
3667
|
+
var qe = we(Br, { path: "/" });
|
|
3668
|
+
const tn = ({ className: t }) => {
|
|
3627
3669
|
const { t: e } = pt(), { loginUrl: s } = re(), i = r.useRef(null);
|
|
3628
3670
|
return r.useEffect(() => {
|
|
3629
|
-
const a =
|
|
3630
|
-
i != null && i.current && c && (
|
|
3671
|
+
const a = qe.get("shouldLogin"), c = !!a && !!atob(a);
|
|
3672
|
+
i != null && i.current && c && (qe.remove("shouldLogin"), i.current.click());
|
|
3631
3673
|
}, [i]), /* @__PURE__ */ n.jsxs(
|
|
3632
3674
|
"a",
|
|
3633
3675
|
{
|
|
3634
3676
|
ref: i,
|
|
3635
3677
|
href: s,
|
|
3636
|
-
className:
|
|
3678
|
+
className: N(
|
|
3637
3679
|
"button",
|
|
3638
3680
|
"button--neutral",
|
|
3639
3681
|
"button--authentication",
|
|
@@ -3641,14 +3683,14 @@ const Vr = ({ className: t }) => {
|
|
|
3641
3683
|
t
|
|
3642
3684
|
),
|
|
3643
3685
|
children: [
|
|
3644
|
-
/* @__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" }) }),
|
|
3645
3687
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: e("login") }),
|
|
3646
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(
|
|
3688
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3647
3689
|
]
|
|
3648
3690
|
}
|
|
3649
3691
|
);
|
|
3650
|
-
},
|
|
3651
|
-
const { t } = pt(), { loginUrl: e } = re(), s =
|
|
3692
|
+
}, en = () => {
|
|
3693
|
+
const { t } = pt(), { loginUrl: e } = re(), s = is(), { position: i } = Ds();
|
|
3652
3694
|
return /* @__PURE__ */ n.jsxs(
|
|
3653
3695
|
G,
|
|
3654
3696
|
{
|
|
@@ -3658,36 +3700,36 @@ const Vr = ({ className: t }) => {
|
|
|
3658
3700
|
className: "menu--unauthenticated",
|
|
3659
3701
|
"aria-label": t("xtraMenuAriaLabel"),
|
|
3660
3702
|
children: [
|
|
3661
|
-
/* @__PURE__ */ n.jsx(G.Trigger, { className:
|
|
3662
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3663
|
-
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(
|
|
3703
|
+
/* @__PURE__ */ n.jsx(G.Trigger, { className: N("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ n.jsxs("button", { children: [
|
|
3704
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ps, { width: 24, height: 24, suffix: "mobile" }) }),
|
|
3705
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3664
3706
|
] }) }),
|
|
3665
3707
|
/* @__PURE__ */ n.jsxs(G.Content, { children: [
|
|
3666
3708
|
/* @__PURE__ */ n.jsx(G.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: e, className: "button button--with-icon", children: [
|
|
3667
|
-
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3709
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Bi, {}) }),
|
|
3668
3710
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("login") })
|
|
3669
3711
|
] }) }),
|
|
3670
3712
|
/* @__PURE__ */ n.jsx(G.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
|
|
3671
|
-
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(
|
|
3713
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(or, {}) }),
|
|
3672
3714
|
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("register") })
|
|
3673
3715
|
] }) })
|
|
3674
3716
|
] })
|
|
3675
3717
|
]
|
|
3676
3718
|
}
|
|
3677
3719
|
);
|
|
3678
|
-
},
|
|
3720
|
+
}, sn = () => {
|
|
3679
3721
|
var e, s;
|
|
3680
|
-
const t =
|
|
3681
|
-
return ((e = t.data) == null ? void 0 : e.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ n.jsx(
|
|
3682
|
-
/* @__PURE__ */ n.jsx(
|
|
3683
|
-
/* @__PURE__ */ n.jsx(
|
|
3684
|
-
] }) : /* @__PURE__ */ n.jsx(
|
|
3685
|
-
},
|
|
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 = () => {
|
|
3686
3728
|
const { apiUrl: t } = St();
|
|
3687
3729
|
return `${`${t}/xtra`}/authentication/v1/gdpr`;
|
|
3688
|
-
},
|
|
3689
|
-
const { i18n: t } = pt(), e =
|
|
3690
|
-
return
|
|
3730
|
+
}, rn = () => {
|
|
3731
|
+
const { i18n: t } = pt(), e = Hs(), { country: s, bouHeaders: i } = St(), a = new ps();
|
|
3732
|
+
return Ei({
|
|
3691
3733
|
mutationFn: async (l) => {
|
|
3692
3734
|
const u = je(t.language, s), d = await fetch(`${e}/tc`, {
|
|
3693
3735
|
body: JSON.stringify({ acceptedTC: l }),
|
|
@@ -3708,10 +3750,10 @@ const Vr = ({ className: t }) => {
|
|
|
3708
3750
|
await a.invalidateQueries({ queryKey: ["gdpr"] });
|
|
3709
3751
|
}
|
|
3710
3752
|
});
|
|
3711
|
-
},
|
|
3753
|
+
}, nn = () => {
|
|
3712
3754
|
var u;
|
|
3713
|
-
const { i18n: t } = pt(), e =
|
|
3714
|
-
return
|
|
3755
|
+
const { i18n: t } = pt(), e = Hs(), { country: s, bouHeaders: i } = St(), c = ((u = Qs().data) == null ? void 0 : u.authenticationStatus) === "Authenticated";
|
|
3756
|
+
return Cs({
|
|
3715
3757
|
queryKey: ["gdpr"],
|
|
3716
3758
|
queryFn: async () => {
|
|
3717
3759
|
const d = je(t.language, s), p = await fetch(`${e}/tc/check`, {
|
|
@@ -3725,76 +3767,76 @@ const Vr = ({ className: t }) => {
|
|
|
3725
3767
|
},
|
|
3726
3768
|
enabled: c
|
|
3727
3769
|
});
|
|
3728
|
-
},
|
|
3770
|
+
}, an = () => {
|
|
3729
3771
|
var P;
|
|
3730
|
-
const { t } = pt(), { logoutUrl: e } = re(), [s, i] = r.useState(0), [a, c] = r.useState({}), { AccessibleFormMessage: l, formRef: u } =
|
|
3731
|
-
|
|
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" });
|
|
3732
3774
|
const g = t("termsAndConditions.error.required"), _ = () => {
|
|
3733
3775
|
y(!1), document.body.style.removeProperty("overflow");
|
|
3734
3776
|
};
|
|
3735
3777
|
r.useEffect(() => {
|
|
3736
|
-
var
|
|
3737
|
-
(
|
|
3778
|
+
var x;
|
|
3779
|
+
(x = f.data) != null && x.length && !window.showTnCPopup && (y(!0), window.showTnCPopup = !0);
|
|
3738
3780
|
}, [(P = f.data) == null ? void 0 : P.length]), r.useEffect(() => {
|
|
3739
3781
|
h && document.body.style.setProperty("overflow", "hidden");
|
|
3740
3782
|
}, [h]), r.useEffect(() => {
|
|
3741
3783
|
p && c({ acceptedTC: g });
|
|
3742
3784
|
}, [g, p]);
|
|
3743
|
-
const S = (
|
|
3744
|
-
|
|
3745
|
-
const { acceptedTC:
|
|
3746
|
-
if (
|
|
3747
|
-
const w = Object.values(
|
|
3785
|
+
const S = (x) => {
|
|
3786
|
+
x.preventDefault(), i((w) => w + 1);
|
|
3787
|
+
const { acceptedTC: b } = x.target;
|
|
3788
|
+
if (b instanceof RadioNodeList) {
|
|
3789
|
+
const w = Object.values(b);
|
|
3748
3790
|
w.every((O) => O.checked) ? (c({}), d(w.map((O) => O.value)), _()) : c({ acceptedTC: g });
|
|
3749
3791
|
} else
|
|
3750
|
-
|
|
3792
|
+
b != null && b.checked ? (c({}), d([b.value]), _()) : c({ acceptedTC: g });
|
|
3751
3793
|
};
|
|
3752
3794
|
return h ? /* @__PURE__ */ n.jsxs(K, { defaultOpen: h, isModal: !0, children: [
|
|
3753
3795
|
l,
|
|
3754
3796
|
/* @__PURE__ */ n.jsxs(K.Root, { children: [
|
|
3755
|
-
/* @__PURE__ */ n.jsx(K.Header, { children: /* @__PURE__ */ n.jsx(K.Title, { icon: /* @__PURE__ */ n.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ n.jsx(
|
|
3756
|
-
/* @__PURE__ */ n.jsx(K.Body, { children: /* @__PURE__ */ n.jsxs(
|
|
3757
|
-
/* @__PURE__ */ n.jsxs(
|
|
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: [
|
|
3758
3800
|
t("termsAndConditions.description"),
|
|
3759
|
-
a.acceptedTC && /* @__PURE__ */ n.jsx(
|
|
3801
|
+
a.acceptedTC && /* @__PURE__ */ n.jsx(dn, { children: g })
|
|
3760
3802
|
] }),
|
|
3761
|
-
f.data.map(({ tcCode:
|
|
3803
|
+
f.data.map(({ tcCode: x, title: b, URL: w }) => /* @__PURE__ */ n.jsx(
|
|
3762
3804
|
jt,
|
|
3763
3805
|
{
|
|
3764
|
-
id:
|
|
3765
|
-
value:
|
|
3806
|
+
id: x,
|
|
3807
|
+
value: x,
|
|
3766
3808
|
name: "acceptedTC",
|
|
3767
3809
|
variant: "primary",
|
|
3768
3810
|
children: /* @__PURE__ */ n.jsxs(jt.Content, { children: [
|
|
3769
|
-
/* @__PURE__ */ n.jsx(
|
|
3770
|
-
/* @__PURE__ */ n.jsx(
|
|
3811
|
+
/* @__PURE__ */ n.jsx(on, { children: b }),
|
|
3812
|
+
/* @__PURE__ */ n.jsx(cn, { href: w, children: t("termsAndConditions.action", { title: b }) })
|
|
3771
3813
|
] })
|
|
3772
3814
|
},
|
|
3773
|
-
|
|
3815
|
+
x
|
|
3774
3816
|
))
|
|
3775
3817
|
] }) }),
|
|
3776
3818
|
/* @__PURE__ */ n.jsxs(K.Footer, { children: [
|
|
3777
3819
|
/* @__PURE__ */ n.jsx(
|
|
3778
3820
|
"a",
|
|
3779
3821
|
{
|
|
3780
|
-
className:
|
|
3822
|
+
className: N("button", "button--secondary", "button--terms-and-conditions"),
|
|
3781
3823
|
href: e,
|
|
3782
3824
|
children: t("logout")
|
|
3783
3825
|
}
|
|
3784
3826
|
),
|
|
3785
|
-
/* @__PURE__ */ n.jsx(
|
|
3827
|
+
/* @__PURE__ */ n.jsx(Kt, { form: "tc-form", type: "submit", variant: "primary", children: t("confirm") })
|
|
3786
3828
|
] })
|
|
3787
3829
|
] })
|
|
3788
3830
|
] }) : null;
|
|
3789
|
-
},
|
|
3831
|
+
}, on = ({
|
|
3790
3832
|
children: t,
|
|
3791
3833
|
...e
|
|
3792
|
-
}) => /* @__PURE__ */ n.jsx(jt.Label, { className: "form--tc__label", ...e, children: t }),
|
|
3793
|
-
|
|
3794
|
-
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 = ({
|
|
3795
3837
|
children: t,
|
|
3796
3838
|
...e
|
|
3797
|
-
}) => /* @__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(
|
|
3798
3840
|
"a",
|
|
3799
3841
|
{
|
|
3800
3842
|
className: "form--tc__link",
|
|
@@ -3805,7 +3847,7 @@ const Ir = ({
|
|
|
3805
3847
|
...e,
|
|
3806
3848
|
children: t
|
|
3807
3849
|
}
|
|
3808
|
-
),
|
|
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 = ({
|
|
3809
3851
|
environment: t,
|
|
3810
3852
|
redirectUrl: e,
|
|
3811
3853
|
apiUrl: s,
|
|
@@ -3816,28 +3858,28 @@ const Ir = ({
|
|
|
3816
3858
|
menuItemsToHide: u,
|
|
3817
3859
|
bouHeaders: d,
|
|
3818
3860
|
country: p
|
|
3819
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
3820
|
-
|
|
3861
|
+
}) => /* @__PURE__ */ n.jsx(Zs, { environment: t, children: /* @__PURE__ */ n.jsx(Xs, { commerceId: c, children: /* @__PURE__ */ n.jsx(
|
|
3862
|
+
$r,
|
|
3821
3863
|
{
|
|
3822
3864
|
apiUrl: s,
|
|
3823
3865
|
authUrl: i,
|
|
3824
3866
|
country: p,
|
|
3825
3867
|
redirectUrl: e,
|
|
3826
3868
|
bouHeaders: d,
|
|
3827
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
3869
|
+
children: /* @__PURE__ */ n.jsxs(pi, { client: hn, children: [
|
|
3828
3870
|
/* @__PURE__ */ n.jsx(
|
|
3829
|
-
|
|
3871
|
+
Zr,
|
|
3830
3872
|
{
|
|
3831
3873
|
position: a,
|
|
3832
3874
|
bouMenuItems: l,
|
|
3833
3875
|
menuItemsToHide: u,
|
|
3834
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3876
|
+
children: /* @__PURE__ */ n.jsx(sn, {})
|
|
3835
3877
|
}
|
|
3836
3878
|
),
|
|
3837
|
-
/* @__PURE__ */ n.jsx(
|
|
3879
|
+
/* @__PURE__ */ n.jsx(an, {})
|
|
3838
3880
|
] })
|
|
3839
3881
|
}
|
|
3840
3882
|
) }) });
|
|
3841
3883
|
export {
|
|
3842
|
-
|
|
3884
|
+
mn as default
|
|
3843
3885
|
};
|