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