@myxtra/authentication-green 2.23.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/App-DPuEWLjF.js +3889 -0
- package/dist/Categoriesbaby-DOC_ZuHD.js +46 -0
- package/dist/Categoriesbakery-DlKcDPmz.js +36 -0
- package/dist/Categoriesbbq-Q-bgGly5.js +94 -0
- package/dist/Categoriesbreakfast-Bll-Mi7n.js +36 -0
- package/dist/Categoriesbrik-BqUGdrqy.js +50 -0
- package/dist/Categoriescandy-s7ExjVVD.js +36 -0
- package/dist/Categoriescar-B9uBCkgM.js +74 -0
- package/dist/Categoriescarandbike--nmwHcRo.js +83 -0
- package/dist/Categorieschild-CzSnX2sP.js +63 -0
- package/dist/Categoriescigarette-Bwsle8MH.js +72 -0
- package/dist/Categoriescleaning-Cgk6SII3.js +50 -0
- package/dist/Categoriesclothing-coxlXs5I.js +28 -0
- package/dist/Categoriesconserve-DAVg_yOJ.js +61 -0
- package/dist/Categoriesdairy-zA59DtKo.js +46 -0
- package/dist/Categoriesdeskandtravel-Y6qbY73Z.js +127 -0
- package/dist/Categoriesdiet-CVom5yc8.js +36 -0
- package/dist/Categoriesdryfood-Cgp3gROJ.js +36 -0
- package/dist/Categorieseaster-C_hvclRo.js +68 -0
- package/dist/Categoriesenergy-C1OLAInr.js +50 -0
- package/dist/Categoriesfish-B1P-U203.js +100 -0
- package/dist/Categoriesfood-B7aSTjZ2.js +39 -0
- package/dist/Categoriesfreezer-wGYA4amT.js +105 -0
- package/dist/Categoriesfuel-DMuPgsYf.js +72 -0
- package/dist/Categoriesgranen-CEJ4rlK1.js +83 -0
- package/dist/Categoriesgrid-C0W01uYu.js +54 -0
- package/dist/Categorieshome-C6vMWaOG.js +94 -0
- package/dist/Categorieshygiene-ZpQoIN9G.js +50 -0
- package/dist/Categoriesmealbox-BD9Kn9-E.js +94 -0
- package/dist/Categoriesmeat-DDETfqmu.js +46 -0
- package/dist/Categoriesmultimedia-CZFXqlpM.js +62 -0
- package/dist/Categoriesnonfood-B0tE2q3x.js +92 -0
- package/dist/Categoriesonlinepromo-CGrJ1dFa.js +76 -0
- package/dist/Categoriesparty-COfKidN_.js +182 -0
- package/dist/Categoriespets-D44FbzNo.js +61 -0
- package/dist/Categoriesplaceholder-Du7e9lT9.js +72 -0
- package/dist/Categoriespuzzle-CU4-hHQf.js +43 -0
- package/dist/Categoriessnacks-9KlAVhfs.js +36 -0
- package/dist/Categoriessoda--eBylTkI.js +56 -0
- package/dist/Categoriessportfood-B5to0ViF.js +70 -0
- package/dist/Categoriestins-TYY6cP6b.js +66 -0
- package/dist/Categoriestoyandhobby-O8FK-93I.js +72 -0
- package/dist/Categoriestoys-XHM0bIMT.js +93 -0
- package/dist/Categoriesvegetables-DaKG4WyY.js +68 -0
- package/dist/Categorieswine-CM7b6_wY.js +46 -0
- package/dist/Fueladblue-CWKC7nWX.js +12 -0
- package/dist/Fuelb7-COtNdcwF.js +14 -0
- package/dist/Fuelcng-Br2q0gYk.js +26 -0
- package/dist/Fuele10-DMzfbJCG.js +14 -0
- package/dist/Fuele5-CMQmD4bT.js +14 -0
- package/dist/Fuelfreetireinflation-DzBsqU-g.js +22 -0
- package/dist/Fuelh2-C-vqmw6E.js +26 -0
- package/dist/Functional18plus-B81lw15R.js +37 -0
- package/dist/Functionalaccount-DqT61ODm.js +13 -0
- package/dist/Functionaladdtolist-CZ9Ksc1A.js +56 -0
- package/dist/Functionaladduser-BzojG3wi.js +46 -0
- package/dist/Functionalalphabeta-D3FJdeE_.js +56 -0
- package/dist/Functionalback-65zmCDjv.js +13 -0
- package/dist/Functionalbarcode-BXdG8kp_.js +58 -0
- package/dist/Functionalblock-CRxUyFK_.js +30 -0
- package/dist/Functionalbox-oU3IgVn9.js +46 -0
- package/dist/Functionalcalendar-Dhh0tAw2.js +51 -0
- package/dist/Functionalcamera-N-SlPHXY.js +14 -0
- package/dist/Functionalcartcheckout-B6YJdY9L.js +48 -0
- package/dist/Functionalcartedit-Cj1VScM8.js +40 -0
- package/dist/Functionalcheck-DjBNO3ZV.js +14 -0
- package/dist/Functionalchecklist-B4m95zLI.js +36 -0
- package/dist/Functionalchevrondown-DeSU4dRJ.js +14 -0
- package/dist/Functionalchevronright-BAgIHLVE.js +14 -0
- package/dist/Functionalchevronup-DBO2vYde.js +14 -0
- package/dist/Functionalclock-DCj8T-TL.js +26 -0
- package/dist/Functionalclose-SvauYhlX.js +13 -0
- package/dist/Functionalcommunications-C8YqPxtA.js +36 -0
- package/dist/Functionalconnecteddevice-BIOGt9T7.js +46 -0
- package/dist/Functionalconnectioncable-w9NoRv6P.js +96 -0
- package/dist/Functionalcookies-DrA35JlA.js +56 -0
- package/dist/Functionalcopy-qsj6Sd_B.js +26 -0
- package/dist/Functionalcustomerservice-CQI2QALG.js +56 -0
- package/dist/Functionaldeliveryaddresses-Dqsm7S0r.js +97 -0
- package/dist/Functionaldiscount-CKUohULp.js +50 -0
- package/dist/Functionaldiscountcode-BujJ9fa-.js +38 -0
- package/dist/Functionaldownload-DGL6wvbc.js +36 -0
- package/dist/Functionaldrycleaning-BmNCIeVg.js +96 -0
- package/dist/Functionalecoearth-33syfFhq.js +58 -0
- package/dist/Functionaledit-nAKG-jtF.js +13 -0
- package/dist/Functionalellipsis-rkPSk_7T.js +39 -0
- package/dist/Functionalerrorcircle-DwfBkoo9.js +36 -0
- package/dist/Functionalerrorcirclefilled-De_EU8HW.js +13 -0
- package/dist/Functionaleuro-BI6ILaM6.js +46 -0
- package/dist/Functionalexit-BeqXCGyO.js +58 -0
- package/dist/Functionalexport-NFQBBSsl.js +36 -0
- package/dist/Functionalexternallink-Cr7o00YG.js +26 -0
- package/dist/Functionaleyehidden-XFztxAqt.js +66 -0
- package/dist/Functionaleyeshow-M5l96mSk.js +26 -0
- package/dist/Functionalfilter-BEr-iVYT.js +46 -0
- package/dist/Functionalfirstadded-Vuk8GbmF.js +47 -0
- package/dist/Functionalgift-ClwjUOOI.js +36 -0
- package/dist/Functionalhistory-OGfyFFrW.js +66 -0
- package/dist/Functionalidea-i0AnV9bM.js +96 -0
- package/dist/Functionalinappnotifications-Du98xnRa.js +26 -0
- package/dist/Functionalkiosk-DfzJl9fT.js +46 -0
- package/dist/Functionallastadded-DDfGtuJj.js +47 -0
- package/dist/Functionallifestyle-D0zANQKA.js +126 -0
- package/dist/Functionallist-BUDxBJzZ.js +66 -0
- package/dist/Functionalloading-CavVSi4g.js +14 -0
- package/dist/Functionallocate-DASXvdyv.js +56 -0
- package/dist/Functionallocation-DWikU6y0.js +14 -0
- package/dist/Functionallocationhome-HAeap-7B.js +13 -0
- package/dist/Functionallocationpickup-bMUAciNO.js +13 -0
- package/dist/Functionallogin-CmgPHsDj.js +13 -0
- package/dist/Functionallogout-WQObFXNd.js +13 -0
- package/dist/Functionalmail-B60xLcCZ.js +14 -0
- package/dist/Functionalmaplocation-Ddte5L2w.js +58 -0
- package/dist/Functionalmenu-Bx_SglRU.js +36 -0
- package/dist/Functionalmessage-DilW_ij4.js +28 -0
- package/dist/Functionalmessagefield-B8kLFGcI.js +14 -0
- package/dist/Functionalminus-C5lvaL_b.js +14 -0
- package/dist/Functionalmobilepay-BxlW6L3v.js +66 -0
- package/dist/Functionalmultifactorauthenticator-C6Tcg6Qg.js +40 -0
- package/dist/Functionalnews-DMnYtnSA.js +56 -0
- package/dist/Functionalnext-Bob1Pr0g.js +13 -0
- package/dist/Functionalnoconnection-DSSSbv77.js +77 -0
- package/dist/Functionalnumber-8Wrw3uLm.js +58 -0
- package/dist/Functionalother-bYOLLWCL.js +36 -0
- package/dist/Functionalpack-Do-NA_x_.js +36 -0
- package/dist/Functionalpassword-GcFWOzh2.js +80 -0
- package/dist/Functionalpercentage-3yrkVSoK.js +11 -0
- package/dist/Functionalphone-9_RSyOs2.js +14 -0
- package/dist/Functionalpiece-CgSk4m1N.js +48 -0
- package/dist/Functionalpinoutlines-DbEZE0Er.js +13 -0
- package/dist/Functionalplus-BMLtPBNt.js +26 -0
- package/dist/Functionalpluscircle-D76QYMjT.js +27 -0
- package/dist/Functionalpresent-3FK5CWtG.js +98 -0
- package/dist/Functionalprivacy-CnxNCyYe.js +28 -0
- package/dist/Functionalpushnotifications-ZbsCkM4x.js +13 -0
- package/dist/Functionalquestioncircle-Cftll_73.js +27 -0
- package/dist/Functionalquestioncirclefilled-G6C3OXhy.js +13 -0
- package/dist/Functionalreadtime-BoaOLxTp.js +46 -0
- package/dist/Functionalregister-BzKRIHjE.js +46 -0
- package/dist/Functionalreset-BgaOxpGO.js +46 -0
- package/dist/Functionalsave-DeVoLFQI.js +36 -0
- package/dist/Functionalsearch-BUqLRPrC.js +13 -0
- package/dist/Functionalsettings-Do2O1RWt.js +26 -0
- package/dist/Functionalshare-BmrBMkpy.js +13 -0
- package/dist/Functionalshared-VfUrrErw.js +46 -0
- package/dist/Functionalshoppingcart-DDw_7_qV.js +28 -0
- package/dist/Functionalshops-BG2L4Btd.js +58 -0
- package/dist/Functionalsms-DyKuC8x0.js +28 -0
- package/dist/Functionalsorting-BUoVYHkd.js +46 -0
- package/dist/Functionalspinner-C8l-CpJr.js +16 -0
- package/dist/Functionalstorelayout-D-nnmpSE.js +66 -0
- package/dist/Functionalsuccesscircle-B8876_by.js +26 -0
- package/dist/Functionalsuccesscirclefilled-CjadKbr-.js +13 -0
- package/dist/Functionalswap-NnOocHex.js +46 -0
- package/dist/Functionalswitch-BMpBzGz-.js +46 -0
- package/dist/Functionalthumbsup-Cp04whsE.js +27 -0
- package/dist/Functionaltimer-BOFmpLXr.js +76 -0
- package/dist/Functionaltrash-PF-S35vQ.js +13 -0
- package/dist/Functionaltruck-8WEeF31a.js +76 -0
- package/dist/Functionaluserinfo-DTNeyMuA.js +56 -0
- package/dist/Functionalviewfile-BDO_K-MF.js +46 -0
- package/dist/Functionalwarningcircle-BhHk8Bz7.js +25 -0
- package/dist/Functionalwarningcirclefilled-D94wyNTu.js +13 -0
- package/dist/Functionalwebsite-IHjtSmP7.js +46 -0
- package/dist/Functionalweight-BuRYas11.js +36 -0
- package/dist/Toolsassortment-DGrdhFWU.js +56 -0
- package/dist/Toolscoupons-BUzx__00.js +56 -0
- package/dist/Toolsfavoriteactive-CvN5omA7.js +15 -0
- package/dist/Toolsfavoriteinactive-D3sG2g4Z.js +14 -0
- package/dist/Toolsfuel-5IAWOkr9.js +66 -0
- package/dist/Toolspay-C5-Tt34q.js +36 -0
- package/dist/Toolspromo-DmOGQ70t.js +14 -0
- package/dist/Toolsreceipt-BELd5rem.js +46 -0
- package/dist/Toolsrecipes2-BqPmAjd3.js +36 -0
- package/dist/Toolsscan2-DWDg-Y0e.js +136 -0
- package/dist/Toolsshowxtranew-DTEadpWr.js +53 -0
- package/dist/Toolsshowxtraold-Ds2DBUAm.js +41 -0
- package/dist/Toolsstats-Cis7TO3_.js +46 -0
- package/dist/Toolsstorelocator-DCTcA8Ke.js +36 -0
- package/dist/Toolswarranty-CyaGyr9f.js +26 -0
- package/dist/icons/bouMenuIcons.svg +1 -1
- package/dist/{index-CV2Ketpq.js → index-Dy-1g7rr.js} +826 -825
- package/dist/xtra-authentication.js +1 -1
- package/package.json +4 -4
- package/dist/App-D_W7e9mc.js +0 -3412
|
@@ -0,0 +1,3889 @@
|
|
|
1
|
+
var Ne = (t) => {
|
|
2
|
+
throw TypeError(t);
|
|
3
|
+
};
|
|
4
|
+
var ne = (t, e, s) => e.has(t) || Ne("Cannot " + s);
|
|
5
|
+
var o = (t, e, s) => (ne(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ? Ne("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), m = (t, e, s, r) => (ne(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), j = (t, e, s) => (ne(t, e, "access private method"), s);
|
|
6
|
+
var Yt = (t, e, s, r) => ({
|
|
7
|
+
set _(a) {
|
|
8
|
+
m(t, e, a, s);
|
|
9
|
+
},
|
|
10
|
+
get _() {
|
|
11
|
+
return o(t, e, r);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
import { r as i, j as n, u as Vs, a as qs, b as pt, g as je, P as Le, c as rs, d as $s, e as Zs, E as Xs, C as Ys } from "./index-Dy-1g7rr.js";
|
|
15
|
+
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 Js(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 Me(t, e) {
|
|
50
|
+
const {
|
|
51
|
+
type: s = "all",
|
|
52
|
+
exact: r,
|
|
53
|
+
fetchStatus: a,
|
|
54
|
+
predicate: c,
|
|
55
|
+
queryKey: l,
|
|
56
|
+
stale: u
|
|
57
|
+
} = t;
|
|
58
|
+
if (l) {
|
|
59
|
+
if (r) {
|
|
60
|
+
if (e.queryHash !== Se(l, e.options))
|
|
61
|
+
return !1;
|
|
62
|
+
} else if (!Gt(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 Fe(t, e) {
|
|
73
|
+
const { exact: s, status: r, predicate: a, mutationKey: c } = t;
|
|
74
|
+
if (c) {
|
|
75
|
+
if (!e.options.mutationKey)
|
|
76
|
+
return !1;
|
|
77
|
+
if (s) {
|
|
78
|
+
if (wt(e.options.mutationKey) !== wt(c))
|
|
79
|
+
return !1;
|
|
80
|
+
} else if (!Gt(e.options.mutationKey, c))
|
|
81
|
+
return !1;
|
|
82
|
+
}
|
|
83
|
+
return !(r && e.state.status !== r || 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((r, a) => (r[a] = s[a], r), {}) : s
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
function Gt(t, e) {
|
|
95
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !Gt(t[s], e[s])) : !1;
|
|
96
|
+
}
|
|
97
|
+
function ns(t, e) {
|
|
98
|
+
if (t === e)
|
|
99
|
+
return t;
|
|
100
|
+
const s = Re(t) && Re(e);
|
|
101
|
+
if (s || le(t) && le(e)) {
|
|
102
|
+
const r = s ? t : Object.keys(t), a = r.length, c = s ? e : Object.keys(e), l = c.length, u = s ? [] : {};
|
|
103
|
+
let d = 0;
|
|
104
|
+
for (let p = 0; p < l; p++) {
|
|
105
|
+
const f = s ? p : c[p];
|
|
106
|
+
(!s && r.includes(f) || s) && t[f] === void 0 && e[f] === void 0 ? (u[f] = void 0, d++) : (u[f] = ns(t[f], e[f]), u[f] === t[f] && t[f] !== void 0 && d++);
|
|
107
|
+
}
|
|
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 Re(t) {
|
|
121
|
+
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
122
|
+
}
|
|
123
|
+
function le(t) {
|
|
124
|
+
if (!Oe(t))
|
|
125
|
+
return !1;
|
|
126
|
+
const e = t.constructor;
|
|
127
|
+
if (e === void 0)
|
|
128
|
+
return !0;
|
|
129
|
+
const s = e.prototype;
|
|
130
|
+
return !(!Oe(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
|
|
131
|
+
}
|
|
132
|
+
function Oe(t) {
|
|
133
|
+
return Object.prototype.toString.call(t) === "[object Object]";
|
|
134
|
+
}
|
|
135
|
+
function Is(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 ? ns(t, e) : e;
|
|
142
|
+
}
|
|
143
|
+
function Bs(t, e, s = 0) {
|
|
144
|
+
const r = [...t, e];
|
|
145
|
+
return s && r.length > s ? r.slice(1) : r;
|
|
146
|
+
}
|
|
147
|
+
function tr(t, e, s = 0) {
|
|
148
|
+
const r = [e, ...t];
|
|
149
|
+
return s && r.length > s ? r.slice(0, -1) : r;
|
|
150
|
+
}
|
|
151
|
+
var as = Symbol();
|
|
152
|
+
function os(t, e) {
|
|
153
|
+
return !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === as ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
154
|
+
}
|
|
155
|
+
var mt, at, Et, $e, er = ($e = 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((r) => {
|
|
180
|
+
typeof r == "boolean" ? this.setFocused(r) : 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(), $e), _e = new er(), kt, ot, At, Ze, sr = (Ze = 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), r = () => e(!1);
|
|
205
|
+
return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
|
|
206
|
+
window.removeEventListener("online", s), window.removeEventListener("offline", r);
|
|
207
|
+
};
|
|
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((r) => {
|
|
224
|
+
r(e);
|
|
225
|
+
}));
|
|
226
|
+
}
|
|
227
|
+
isOnline() {
|
|
228
|
+
return o(this, kt);
|
|
229
|
+
}
|
|
230
|
+
}, kt = new WeakMap(), ot = new WeakMap(), At = new WeakMap(), Ze), ee = new sr();
|
|
231
|
+
function rr(t) {
|
|
232
|
+
return Math.min(1e3 * 2 ** t, 3e4);
|
|
233
|
+
}
|
|
234
|
+
function ls(t) {
|
|
235
|
+
return (t ?? "online") === "online" ? ee.isOnline() : !0;
|
|
236
|
+
}
|
|
237
|
+
var cs = 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 cs;
|
|
244
|
+
}
|
|
245
|
+
function us(t) {
|
|
246
|
+
let e = !1, s = 0, r = !1, a, c, l;
|
|
247
|
+
const u = new Promise((x, b) => {
|
|
248
|
+
c = x, l = b;
|
|
249
|
+
}), d = (x) => {
|
|
250
|
+
var b;
|
|
251
|
+
r || (P(new cs(x)), (b = t.abort) == null || b.call(t));
|
|
252
|
+
}, p = () => {
|
|
253
|
+
e = !0;
|
|
254
|
+
}, f = () => {
|
|
255
|
+
e = !1;
|
|
256
|
+
}, h = () => _e.isFocused() && (t.networkMode === "always" || ee.isOnline()) && t.canRun(), y = () => ls(t.networkMode) && t.canRun(), g = (x) => {
|
|
257
|
+
var b;
|
|
258
|
+
r || (r = !0, (b = t.onSuccess) == null || b.call(t, x), a == null || a(), c(x));
|
|
259
|
+
}, P = (x) => {
|
|
260
|
+
var b;
|
|
261
|
+
r || (r = !0, (b = t.onError) == null || b.call(t, x), a == null || a(), l(x));
|
|
262
|
+
}, S = () => new Promise((x) => {
|
|
263
|
+
var b;
|
|
264
|
+
a = (w) => {
|
|
265
|
+
(r || h()) && x(w);
|
|
266
|
+
}, (b = t.onPause) == null || b.call(t);
|
|
267
|
+
}).then(() => {
|
|
268
|
+
var x;
|
|
269
|
+
a = void 0, r || (x = t.onContinue) == null || x.call(t);
|
|
270
|
+
}), E = () => {
|
|
271
|
+
if (r)
|
|
272
|
+
return;
|
|
273
|
+
let x;
|
|
274
|
+
const b = s === 0 ? t.initialPromise : void 0;
|
|
275
|
+
try {
|
|
276
|
+
x = b ?? t.fn();
|
|
277
|
+
} catch (w) {
|
|
278
|
+
x = Promise.reject(w);
|
|
279
|
+
}
|
|
280
|
+
Promise.resolve(x).then(g).catch((w) => {
|
|
281
|
+
var A;
|
|
282
|
+
if (r)
|
|
283
|
+
return;
|
|
284
|
+
const F = t.retry ?? (Qt ? 0 : 3), O = t.retryDelay ?? rr, Y = typeof O == "function" ? O(s, w) : O, et = F === !0 || typeof F == "number" && s < F || typeof F == "function" && F(s, w);
|
|
285
|
+
if (e || !et) {
|
|
286
|
+
P(w);
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
s++, (A = t.onFail) == null || A.call(t, s, w), Is(Y).then(() => h() ? void 0 : S()).then(() => {
|
|
290
|
+
e ? P(w) : E();
|
|
291
|
+
});
|
|
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() ? E() : S().then(E), u)
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
function ir() {
|
|
305
|
+
let t = [], e = 0, s = (u) => {
|
|
306
|
+
u();
|
|
307
|
+
}, r = (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
|
+
r(() => {
|
|
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
|
+
r = u;
|
|
357
|
+
},
|
|
358
|
+
setScheduler: (u) => {
|
|
359
|
+
a = u;
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
var z = ir(), yt, Xe, ds = (Xe = 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(), Xe), Nt, Lt, V, D, Vt, gt, Z, st, Ye, nr = (Ye = class extends ds {
|
|
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, Vt);
|
|
393
|
+
v(this, gt);
|
|
394
|
+
m(this, gt, !1), m(this, Vt, e.defaultOptions), this.setOptions(e.options), this.observers = [], m(this, V, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, m(this, Nt, ar(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, Vt), ...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 r = ce(this.state.data, e, this.options);
|
|
411
|
+
return j(this, Z, st).call(this, {
|
|
412
|
+
data: r,
|
|
413
|
+
type: "success",
|
|
414
|
+
dataUpdatedAt: s == null ? void 0 : s.updatedAt,
|
|
415
|
+
manual: s == null ? void 0 : s.manual
|
|
416
|
+
}), r;
|
|
417
|
+
}
|
|
418
|
+
setState(e, s) {
|
|
419
|
+
j(this, Z, st).call(this, { type: "setState", state: e, setStateOptions: s });
|
|
420
|
+
}
|
|
421
|
+
cancel(e) {
|
|
422
|
+
var r, a;
|
|
423
|
+
const s = (r = o(this, D)) == null ? void 0 : r.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((r) => r.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((r) => r.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 r = new AbortController(), a = (h) => {
|
|
483
|
+
Object.defineProperty(h, "signal", {
|
|
484
|
+
enumerable: !0,
|
|
485
|
+
get: () => (m(this, gt, !0), r.signal)
|
|
486
|
+
});
|
|
487
|
+
}, c = () => {
|
|
488
|
+
const h = os(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, P, 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 = (P = o(this, V).config).onSettled) == null || S.call(
|
|
518
|
+
P,
|
|
519
|
+
this.state.data,
|
|
520
|
+
h,
|
|
521
|
+
this
|
|
522
|
+
)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
|
|
523
|
+
};
|
|
524
|
+
return m(this, D, us({
|
|
525
|
+
initialPromise: s == null ? void 0 : s.initialPromise,
|
|
526
|
+
fn: l.fetchFn,
|
|
527
|
+
abort: r.abort.bind(r),
|
|
528
|
+
onSuccess: (h) => {
|
|
529
|
+
var y, g, P, 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 (E) {
|
|
537
|
+
u(E);
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
(g = (y = o(this, V).config).onSuccess) == null || g.call(y, h, this), (S = (P = o(this, V).config).onSettled) == null || S.call(
|
|
541
|
+
P,
|
|
542
|
+
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(), Vt = new WeakMap(), gt = new WeakMap(), Z = new WeakSet(), st = function(e) {
|
|
564
|
+
const s = (r) => {
|
|
565
|
+
switch (e.type) {
|
|
566
|
+
case "failed":
|
|
567
|
+
return {
|
|
568
|
+
...r,
|
|
569
|
+
fetchFailureCount: e.failureCount,
|
|
570
|
+
fetchFailureReason: e.error
|
|
571
|
+
};
|
|
572
|
+
case "pause":
|
|
573
|
+
return {
|
|
574
|
+
...r,
|
|
575
|
+
fetchStatus: "paused"
|
|
576
|
+
};
|
|
577
|
+
case "continue":
|
|
578
|
+
return {
|
|
579
|
+
...r,
|
|
580
|
+
fetchStatus: "fetching"
|
|
581
|
+
};
|
|
582
|
+
case "fetch":
|
|
583
|
+
return {
|
|
584
|
+
...r,
|
|
585
|
+
...hs(r.data, this.options),
|
|
586
|
+
fetchMeta: e.meta ?? null
|
|
587
|
+
};
|
|
588
|
+
case "success":
|
|
589
|
+
return {
|
|
590
|
+
...r,
|
|
591
|
+
data: e.data,
|
|
592
|
+
dataUpdateCount: r.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
|
+
...r,
|
|
607
|
+
error: a,
|
|
608
|
+
errorUpdateCount: r.errorUpdateCount + 1,
|
|
609
|
+
errorUpdatedAt: Date.now(),
|
|
610
|
+
fetchFailureCount: r.fetchFailureCount + 1,
|
|
611
|
+
fetchFailureReason: a,
|
|
612
|
+
fetchStatus: "idle",
|
|
613
|
+
status: "error"
|
|
614
|
+
};
|
|
615
|
+
case "invalidate":
|
|
616
|
+
return {
|
|
617
|
+
...r,
|
|
618
|
+
isInvalidated: !0
|
|
619
|
+
};
|
|
620
|
+
case "setState":
|
|
621
|
+
return {
|
|
622
|
+
...r,
|
|
623
|
+
...e.state
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
this.state = s(this.state), z.batch(() => {
|
|
628
|
+
this.observers.forEach((r) => {
|
|
629
|
+
r.onQueryUpdate();
|
|
630
|
+
}), o(this, V).notify({ query: this, type: "updated", action: e });
|
|
631
|
+
});
|
|
632
|
+
}, Ye);
|
|
633
|
+
function hs(t, e) {
|
|
634
|
+
return {
|
|
635
|
+
fetchFailureCount: 0,
|
|
636
|
+
fetchFailureReason: null,
|
|
637
|
+
fetchStatus: ls(e.networkMode) ? "fetching" : "paused",
|
|
638
|
+
...t === void 0 && {
|
|
639
|
+
error: null,
|
|
640
|
+
status: "pending"
|
|
641
|
+
}
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
function ar(t) {
|
|
645
|
+
const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, r = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
|
|
646
|
+
return {
|
|
647
|
+
data: e,
|
|
648
|
+
dataUpdateCount: 0,
|
|
649
|
+
dataUpdatedAt: s ? r ?? 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, Je, or = (Je = 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, r) {
|
|
668
|
+
const a = s.queryKey, c = s.queryHash ?? Se(a, s);
|
|
669
|
+
let l = this.get(c);
|
|
670
|
+
return l || (l = new nr({
|
|
671
|
+
cache: this,
|
|
672
|
+
queryKey: a,
|
|
673
|
+
queryHash: c,
|
|
674
|
+
options: e.defaultQueryOptions(s),
|
|
675
|
+
state: r,
|
|
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
|
+
(r) => Me(s, r)
|
|
706
|
+
);
|
|
707
|
+
}
|
|
708
|
+
findAll(e = {}) {
|
|
709
|
+
const s = this.getAll();
|
|
710
|
+
return Object.keys(e).length > 0 ? s.filter((r) => Me(e, r)) : 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(), Je), I, T, vt, B, nt, Ie, lr = (Ie = class extends ds {
|
|
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 || fs(), 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, P, S, E, x, b, w, F, O, Y, et;
|
|
772
|
+
m(this, vt, us({
|
|
773
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
774
|
+
onFail: (A, $) => {
|
|
775
|
+
j(this, B, nt).call(this, { type: "failed", failureCount: A, 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", r = !o(this, vt).canStart();
|
|
789
|
+
try {
|
|
790
|
+
if (!s) {
|
|
791
|
+
j(this, B, nt).call(this, { type: "pending", variables: e, isPaused: r }), await ((c = (a = o(this, T).config).onMutate) == null ? void 0 : c.call(
|
|
792
|
+
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: r
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
const A = await o(this, vt).start();
|
|
805
|
+
return await ((p = (d = o(this, T).config).onSuccess) == null ? void 0 : p.call(
|
|
806
|
+
d,
|
|
807
|
+
A,
|
|
808
|
+
e,
|
|
809
|
+
this.state.context,
|
|
810
|
+
this
|
|
811
|
+
)), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f, A, e, this.state.context)), await ((g = (y = o(this, T).config).onSettled) == null ? void 0 : g.call(
|
|
812
|
+
y,
|
|
813
|
+
A,
|
|
814
|
+
null,
|
|
815
|
+
this.state.variables,
|
|
816
|
+
this.state.context,
|
|
817
|
+
this
|
|
818
|
+
)), await ((S = (P = this.options).onSettled) == null ? void 0 : S.call(P, A, null, e, this.state.context)), j(this, B, nt).call(this, { type: "success", data: A }), A;
|
|
819
|
+
} catch (A) {
|
|
820
|
+
try {
|
|
821
|
+
throw await ((x = (E = o(this, T).config).onError) == null ? void 0 : x.call(
|
|
822
|
+
E,
|
|
823
|
+
A,
|
|
824
|
+
e,
|
|
825
|
+
this.state.context,
|
|
826
|
+
this
|
|
827
|
+
)), await ((w = (b = this.options).onError) == null ? void 0 : w.call(
|
|
828
|
+
b,
|
|
829
|
+
A,
|
|
830
|
+
e,
|
|
831
|
+
this.state.context
|
|
832
|
+
)), await ((O = (F = o(this, T).config).onSettled) == null ? void 0 : O.call(
|
|
833
|
+
F,
|
|
834
|
+
void 0,
|
|
835
|
+
A,
|
|
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
|
+
A,
|
|
843
|
+
e,
|
|
844
|
+
this.state.context
|
|
845
|
+
)), A;
|
|
846
|
+
} finally {
|
|
847
|
+
j(this, B, nt).call(this, { type: "error", error: A });
|
|
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 = (r) => {
|
|
855
|
+
switch (e.type) {
|
|
856
|
+
case "failed":
|
|
857
|
+
return {
|
|
858
|
+
...r,
|
|
859
|
+
failureCount: e.failureCount,
|
|
860
|
+
failureReason: e.error
|
|
861
|
+
};
|
|
862
|
+
case "pause":
|
|
863
|
+
return {
|
|
864
|
+
...r,
|
|
865
|
+
isPaused: !0
|
|
866
|
+
};
|
|
867
|
+
case "continue":
|
|
868
|
+
return {
|
|
869
|
+
...r,
|
|
870
|
+
isPaused: !1
|
|
871
|
+
};
|
|
872
|
+
case "pending":
|
|
873
|
+
return {
|
|
874
|
+
...r,
|
|
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
|
+
...r,
|
|
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
|
+
...r,
|
|
898
|
+
data: void 0,
|
|
899
|
+
error: e.error,
|
|
900
|
+
failureCount: r.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((r) => {
|
|
909
|
+
r.onMutationUpdate(e);
|
|
910
|
+
}), o(this, T).notify({
|
|
911
|
+
mutation: this,
|
|
912
|
+
type: "updated",
|
|
913
|
+
action: e
|
|
914
|
+
});
|
|
915
|
+
});
|
|
916
|
+
}, Ie);
|
|
917
|
+
function fs() {
|
|
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, qt, Be, cr = (Be = class extends Ht {
|
|
931
|
+
constructor(e = {}) {
|
|
932
|
+
super();
|
|
933
|
+
v(this, W);
|
|
934
|
+
v(this, qt);
|
|
935
|
+
this.config = e, m(this, W, /* @__PURE__ */ new Map()), m(this, qt, Date.now());
|
|
936
|
+
}
|
|
937
|
+
build(e, s, r) {
|
|
938
|
+
const a = new lr({
|
|
939
|
+
mutationCache: this,
|
|
940
|
+
mutationId: ++Yt(this, qt)._,
|
|
941
|
+
options: e.defaultMutationOptions(s),
|
|
942
|
+
state: r
|
|
943
|
+
});
|
|
944
|
+
return this.add(a), a;
|
|
945
|
+
}
|
|
946
|
+
add(e) {
|
|
947
|
+
const s = Jt(e), r = o(this, W).get(s) ?? [];
|
|
948
|
+
r.push(e), o(this, W).set(s, r), this.notify({ type: "added", mutation: e });
|
|
949
|
+
}
|
|
950
|
+
remove(e) {
|
|
951
|
+
var r;
|
|
952
|
+
const s = Jt(e);
|
|
953
|
+
if (o(this, W).has(s)) {
|
|
954
|
+
const a = (r = o(this, W).get(s)) == null ? void 0 : r.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 r;
|
|
961
|
+
const s = (r = o(this, W).get(Jt(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
|
|
962
|
+
return !s || s === e;
|
|
963
|
+
}
|
|
964
|
+
runNext(e) {
|
|
965
|
+
var r;
|
|
966
|
+
const s = (r = o(this, W).get(Jt(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
|
|
967
|
+
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
|
+
(r) => Fe(s, r)
|
|
983
|
+
);
|
|
984
|
+
}
|
|
985
|
+
findAll(e = {}) {
|
|
986
|
+
return this.getAll().filter((s) => Fe(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(), qt = new WeakMap(), Be);
|
|
1004
|
+
function Jt(t) {
|
|
1005
|
+
var e;
|
|
1006
|
+
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
1007
|
+
}
|
|
1008
|
+
function ze(t) {
|
|
1009
|
+
return {
|
|
1010
|
+
onFetch: (e, s) => {
|
|
1011
|
+
var f, h, y, g, P;
|
|
1012
|
+
const r = e.options, a = (y = (h = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : h.fetchMore) == null ? void 0 : y.direction, c = ((g = e.state.data) == null ? void 0 : g.pages) || [], l = ((P = e.state.data) == null ? void 0 : P.pageParams) || [];
|
|
1013
|
+
let u = { pages: [], pageParams: [] }, d = 0;
|
|
1014
|
+
const p = async () => {
|
|
1015
|
+
let S = !1;
|
|
1016
|
+
const E = (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
|
+
}, x = os(e.options, e.fetchOptions), b = async (w, F, O) => {
|
|
1024
|
+
if (S)
|
|
1025
|
+
return Promise.reject();
|
|
1026
|
+
if (F == null && w.pages.length)
|
|
1027
|
+
return Promise.resolve(w);
|
|
1028
|
+
const Y = {
|
|
1029
|
+
queryKey: e.queryKey,
|
|
1030
|
+
pageParam: F,
|
|
1031
|
+
direction: O ? "backward" : "forward",
|
|
1032
|
+
meta: e.options.meta
|
|
1033
|
+
};
|
|
1034
|
+
E(Y);
|
|
1035
|
+
const et = await x(
|
|
1036
|
+
Y
|
|
1037
|
+
), { maxPages: A } = e.options, $ = O ? tr : Bs;
|
|
1038
|
+
return {
|
|
1039
|
+
pages: $(w.pages, et, A),
|
|
1040
|
+
pageParams: $(w.pageParams, F, A)
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
if (a && c.length) {
|
|
1044
|
+
const w = a === "backward", F = w ? ur : De, O = {
|
|
1045
|
+
pages: c,
|
|
1046
|
+
pageParams: l
|
|
1047
|
+
}, Y = F(r, O);
|
|
1048
|
+
u = await b(O, Y, w);
|
|
1049
|
+
} else {
|
|
1050
|
+
const w = t ?? c.length;
|
|
1051
|
+
do {
|
|
1052
|
+
const F = d === 0 ? l[0] ?? r.initialPageParam : De(r, u);
|
|
1053
|
+
if (d > 0 && F == null)
|
|
1054
|
+
break;
|
|
1055
|
+
u = await b(u, F), d++;
|
|
1056
|
+
} while (d < w);
|
|
1057
|
+
}
|
|
1058
|
+
return u;
|
|
1059
|
+
};
|
|
1060
|
+
e.options.persister ? e.fetchFn = () => {
|
|
1061
|
+
var S, E;
|
|
1062
|
+
return (E = (S = e.options).persister) == null ? void 0 : E.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 De(t, { pages: e, pageParams: s }) {
|
|
1077
|
+
const r = e.length - 1;
|
|
1078
|
+
return e.length > 0 ? t.getNextPageParam(
|
|
1079
|
+
e[r],
|
|
1080
|
+
e,
|
|
1081
|
+
s[r],
|
|
1082
|
+
s
|
|
1083
|
+
) : void 0;
|
|
1084
|
+
}
|
|
1085
|
+
function ur(t, { pages: e, pageParams: s }) {
|
|
1086
|
+
var r;
|
|
1087
|
+
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, s[0], s) : void 0;
|
|
1088
|
+
}
|
|
1089
|
+
var R, lt, ct, Mt, Ft, ut, Rt, Ot, ts, ps = (ts = class {
|
|
1090
|
+
constructor(t = {}) {
|
|
1091
|
+
v(this, R);
|
|
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, R, t.queryCache || new or()), m(this, lt, t.mutationCache || new cr()), m(this, ct, t.defaultOptions || {}), m(this, Mt, /* @__PURE__ */ new Map()), m(this, Ft, /* @__PURE__ */ new Map()), m(this, ut, 0);
|
|
1100
|
+
}
|
|
1101
|
+
mount() {
|
|
1102
|
+
Yt(this, ut)._++, o(this, ut) === 1 && (m(this, Rt, _e.subscribe(async (t) => {
|
|
1103
|
+
t && (await this.resumePausedMutations(), o(this, R).onFocus());
|
|
1104
|
+
})), m(this, Ot, ee.subscribe(async (t) => {
|
|
1105
|
+
t && (await this.resumePausedMutations(), o(this, R).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, R).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, R).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), r = o(this, R).build(this, s);
|
|
1129
|
+
return t.revalidateIfStale && r.isStaleByTime(Pt(s.staleTime, r)) && this.prefetchQuery(s), Promise.resolve(e);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
getQueriesData(t) {
|
|
1133
|
+
return o(this, R).findAll(t).map(({ queryKey: e, state: s }) => {
|
|
1134
|
+
const r = s.data;
|
|
1135
|
+
return [e, r];
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
setQueryData(t, e, s) {
|
|
1139
|
+
const r = this.defaultQueryOptions({ queryKey: t }), a = o(this, R).get(
|
|
1140
|
+
r.queryHash
|
|
1141
|
+
), c = a == null ? void 0 : a.state.data, l = Js(e, c);
|
|
1142
|
+
if (l !== void 0)
|
|
1143
|
+
return o(this, R).build(this, r).setData(l, { ...s, manual: !0 });
|
|
1144
|
+
}
|
|
1145
|
+
setQueriesData(t, e, s) {
|
|
1146
|
+
return z.batch(
|
|
1147
|
+
() => o(this, R).findAll(t).map(({ queryKey: r }) => [
|
|
1148
|
+
r,
|
|
1149
|
+
this.setQueryData(r, e, s)
|
|
1150
|
+
])
|
|
1151
|
+
);
|
|
1152
|
+
}
|
|
1153
|
+
getQueryState(t) {
|
|
1154
|
+
var s;
|
|
1155
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
1156
|
+
return (s = o(this, R).get(e.queryHash)) == null ? void 0 : s.state;
|
|
1157
|
+
}
|
|
1158
|
+
removeQueries(t) {
|
|
1159
|
+
const e = o(this, R);
|
|
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, R), r = {
|
|
1168
|
+
type: "active",
|
|
1169
|
+
...t
|
|
1170
|
+
};
|
|
1171
|
+
return z.batch(() => (s.findAll(t).forEach((a) => {
|
|
1172
|
+
a.reset();
|
|
1173
|
+
}), this.refetchQueries(r, e)));
|
|
1174
|
+
}
|
|
1175
|
+
cancelQueries(t = {}, e = {}) {
|
|
1176
|
+
const s = { revert: !0, ...e }, r = z.batch(
|
|
1177
|
+
() => o(this, R).findAll(t).map((a) => a.cancel(s))
|
|
1178
|
+
);
|
|
1179
|
+
return Promise.all(r).then(q).catch(q);
|
|
1180
|
+
}
|
|
1181
|
+
invalidateQueries(t = {}, e = {}) {
|
|
1182
|
+
return z.batch(() => {
|
|
1183
|
+
if (o(this, R).findAll(t).forEach((r) => {
|
|
1184
|
+
r.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
|
+
}, r = z.batch(
|
|
1199
|
+
() => o(this, R).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(r).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, R).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 = ze(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 = ze(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, R);
|
|
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((r) => {
|
|
1251
|
+
Gt(t, r.queryKey) && (s = { ...s, ...r.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((r) => {
|
|
1264
|
+
Gt(t, r.mutationKey) && (s = { ...s, ...r.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 === as && (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, R).clear(), o(this, lt).clear();
|
|
1291
|
+
}
|
|
1292
|
+
}, R = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), Mt = new WeakMap(), Ft = new WeakMap(), ut = new WeakMap(), Rt = new WeakMap(), Ot = new WeakMap(), ts), Q, k, $t, U, Ct, zt, tt, Zt, Dt, Tt, xt, bt, dt, Ut, L, Wt, ue, de, he, fe, pe, me, ye, ms, es, dr = (es = class extends Ht {
|
|
1293
|
+
constructor(e, s) {
|
|
1294
|
+
super();
|
|
1295
|
+
v(this, L);
|
|
1296
|
+
v(this, Q);
|
|
1297
|
+
v(this, k);
|
|
1298
|
+
v(this, $t);
|
|
1299
|
+
v(this, U);
|
|
1300
|
+
v(this, Ct);
|
|
1301
|
+
v(this, zt);
|
|
1302
|
+
v(this, tt);
|
|
1303
|
+
v(this, Zt);
|
|
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, k).addObserver(this), Te(o(this, k), this.options) ? j(this, L, Wt).call(this) : this.updateResult(), j(this, L, fe).call(this));
|
|
1319
|
+
}
|
|
1320
|
+
onUnsubscribe() {
|
|
1321
|
+
this.hasListeners() || this.destroy();
|
|
1322
|
+
}
|
|
1323
|
+
shouldFetchOnReconnect() {
|
|
1324
|
+
return ge(
|
|
1325
|
+
o(this, k),
|
|
1326
|
+
this.options,
|
|
1327
|
+
this.options.refetchOnReconnect
|
|
1328
|
+
);
|
|
1329
|
+
}
|
|
1330
|
+
shouldFetchOnWindowFocus() {
|
|
1331
|
+
return ge(
|
|
1332
|
+
o(this, k),
|
|
1333
|
+
this.options,
|
|
1334
|
+
this.options.refetchOnWindowFocus
|
|
1335
|
+
);
|
|
1336
|
+
}
|
|
1337
|
+
destroy() {
|
|
1338
|
+
this.listeners = /* @__PURE__ */ new Set(), j(this, L, pe).call(this), j(this, L, me).call(this), o(this, k).removeObserver(this);
|
|
1339
|
+
}
|
|
1340
|
+
setOptions(e, s) {
|
|
1341
|
+
const r = this.options, a = o(this, k);
|
|
1342
|
+
if (this.options = o(this, Q).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof X(this.options.enabled, o(this, k)) != "boolean")
|
|
1343
|
+
throw new Error(
|
|
1344
|
+
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
1345
|
+
);
|
|
1346
|
+
j(this, L, ye).call(this), o(this, k).setOptions(this.options), r._defaulted && !te(this.options, r) && o(this, Q).getQueryCache().notify({
|
|
1347
|
+
type: "observerOptionsUpdated",
|
|
1348
|
+
query: o(this, k),
|
|
1349
|
+
observer: this
|
|
1350
|
+
});
|
|
1351
|
+
const c = this.hasListeners();
|
|
1352
|
+
c && Ue(
|
|
1353
|
+
o(this, k),
|
|
1354
|
+
a,
|
|
1355
|
+
this.options,
|
|
1356
|
+
r
|
|
1357
|
+
) && j(this, L, Wt).call(this), this.updateResult(s), c && (o(this, k) !== a || X(this.options.enabled, o(this, k)) !== X(r.enabled, o(this, k)) || Pt(this.options.staleTime, o(this, k)) !== Pt(r.staleTime, o(this, k))) && j(this, L, ue).call(this);
|
|
1358
|
+
const l = j(this, L, de).call(this);
|
|
1359
|
+
c && (o(this, k) !== a || X(this.options.enabled, o(this, k)) !== X(r.enabled, o(this, k)) || l !== o(this, dt)) && j(this, L, he).call(this, l);
|
|
1360
|
+
}
|
|
1361
|
+
getOptimisticResult(e) {
|
|
1362
|
+
const s = o(this, Q).getQueryCache().build(o(this, Q), e), r = this.createResult(s, e);
|
|
1363
|
+
return fr(this, r) && (m(this, U, r), m(this, zt, this.options), m(this, Ct, o(this, k).state)), r;
|
|
1364
|
+
}
|
|
1365
|
+
getCurrentResult() {
|
|
1366
|
+
return o(this, U);
|
|
1367
|
+
}
|
|
1368
|
+
trackResult(e, s) {
|
|
1369
|
+
const r = {};
|
|
1370
|
+
return Object.keys(e).forEach((a) => {
|
|
1371
|
+
Object.defineProperty(r, a, {
|
|
1372
|
+
configurable: !1,
|
|
1373
|
+
enumerable: !0,
|
|
1374
|
+
get: () => (this.trackProp(a), s == null || s(a), e[a])
|
|
1375
|
+
});
|
|
1376
|
+
}), r;
|
|
1377
|
+
}
|
|
1378
|
+
trackProp(e) {
|
|
1379
|
+
o(this, Ut).add(e);
|
|
1380
|
+
}
|
|
1381
|
+
getCurrentQuery() {
|
|
1382
|
+
return o(this, k);
|
|
1383
|
+
}
|
|
1384
|
+
refetch({ ...e } = {}) {
|
|
1385
|
+
return this.fetch({
|
|
1386
|
+
...e
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
fetchOptimistic(e) {
|
|
1390
|
+
const s = o(this, Q).defaultQueryOptions(e), r = o(this, Q).getQueryCache().build(o(this, Q), s);
|
|
1391
|
+
return r.isFetchingOptimistic = !0, r.fetch().then(() => this.createResult(r, s));
|
|
1392
|
+
}
|
|
1393
|
+
fetch(e) {
|
|
1394
|
+
return j(this, L, Wt).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 r = o(this, k), a = this.options, c = o(this, U), l = o(this, Ct), u = o(this, zt), p = e !== r ? e.state : o(this, $t), { state: f } = e;
|
|
1402
|
+
let h = { ...f }, y = !1, g;
|
|
1403
|
+
if (s._optimisticResults) {
|
|
1404
|
+
const A = this.hasListeners(), $ = !A && Te(e, s), Gs = A && Ue(e, r, s, a);
|
|
1405
|
+
($ || Gs) && (h = {
|
|
1406
|
+
...h,
|
|
1407
|
+
...hs(f.data, e.options)
|
|
1408
|
+
}), s._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
|
|
1409
|
+
}
|
|
1410
|
+
let { error: P, errorUpdatedAt: S, status: E } = h;
|
|
1411
|
+
if (s.select && h.data !== void 0)
|
|
1412
|
+
if (c && h.data === (l == null ? void 0 : l.data) && s.select === o(this, Zt))
|
|
1413
|
+
g = o(this, Dt);
|
|
1414
|
+
else
|
|
1415
|
+
try {
|
|
1416
|
+
m(this, Zt, s.select), g = s.select(h.data), g = ce(c == null ? void 0 : c.data, g, s), m(this, Dt, g), m(this, tt, null);
|
|
1417
|
+
} catch (A) {
|
|
1418
|
+
m(this, tt, A);
|
|
1419
|
+
}
|
|
1420
|
+
else
|
|
1421
|
+
g = h.data;
|
|
1422
|
+
if (s.placeholderData !== void 0 && g === void 0 && E === "pending") {
|
|
1423
|
+
let A;
|
|
1424
|
+
if (c != null && c.isPlaceholderData && s.placeholderData === (u == null ? void 0 : u.placeholderData))
|
|
1425
|
+
A = c.data;
|
|
1426
|
+
else if (A = 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 && A !== void 0)
|
|
1430
|
+
try {
|
|
1431
|
+
A = s.select(A), m(this, tt, null);
|
|
1432
|
+
} catch ($) {
|
|
1433
|
+
m(this, tt, $);
|
|
1434
|
+
}
|
|
1435
|
+
A !== void 0 && (E = "success", g = ce(
|
|
1436
|
+
c == null ? void 0 : c.data,
|
|
1437
|
+
A,
|
|
1438
|
+
s
|
|
1439
|
+
), y = !0);
|
|
1440
|
+
}
|
|
1441
|
+
o(this, tt) && (P = o(this, tt), g = o(this, Dt), S = Date.now(), E = "error");
|
|
1442
|
+
const x = h.fetchStatus === "fetching", b = E === "pending", w = E === "error", F = b && x, O = g !== void 0;
|
|
1443
|
+
return {
|
|
1444
|
+
status: E,
|
|
1445
|
+
fetchStatus: h.fetchStatus,
|
|
1446
|
+
isPending: b,
|
|
1447
|
+
isSuccess: E === "success",
|
|
1448
|
+
isError: w,
|
|
1449
|
+
isInitialLoading: F,
|
|
1450
|
+
isLoading: F,
|
|
1451
|
+
data: g,
|
|
1452
|
+
dataUpdatedAt: h.dataUpdatedAt,
|
|
1453
|
+
error: P,
|
|
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: x,
|
|
1461
|
+
isRefetching: x && !b,
|
|
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), r = this.createResult(o(this, k), this.options);
|
|
1472
|
+
if (m(this, Ct, o(this, k).state), m(this, zt, this.options), o(this, Ct).data !== void 0 && m(this, Tt, o(this, k)), te(r, s))
|
|
1473
|
+
return;
|
|
1474
|
+
m(this, U, r);
|
|
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, L, ms).call(this, { ...a, ...e });
|
|
1490
|
+
}
|
|
1491
|
+
onQueryUpdate() {
|
|
1492
|
+
this.updateResult(), this.hasListeners() && j(this, L, fe).call(this);
|
|
1493
|
+
}
|
|
1494
|
+
}, Q = new WeakMap(), k = new WeakMap(), $t = new WeakMap(), U = new WeakMap(), Ct = new WeakMap(), zt = new WeakMap(), tt = new WeakMap(), Zt = new WeakMap(), Dt = new WeakMap(), Tt = new WeakMap(), xt = new WeakMap(), bt = new WeakMap(), dt = new WeakMap(), Ut = new WeakMap(), L = new WeakSet(), Wt = function(e) {
|
|
1495
|
+
j(this, L, ye).call(this);
|
|
1496
|
+
let s = o(this, k).fetch(
|
|
1497
|
+
this.options,
|
|
1498
|
+
e
|
|
1499
|
+
);
|
|
1500
|
+
return e != null && e.throwOnError || (s = s.catch(q)), s;
|
|
1501
|
+
}, ue = function() {
|
|
1502
|
+
j(this, L, pe).call(this);
|
|
1503
|
+
const e = Pt(
|
|
1504
|
+
this.options.staleTime,
|
|
1505
|
+
o(this, k)
|
|
1506
|
+
);
|
|
1507
|
+
if (Qt || o(this, U).isStale || !oe(e))
|
|
1508
|
+
return;
|
|
1509
|
+
const r = is(o(this, U).dataUpdatedAt, e) + 1;
|
|
1510
|
+
m(this, xt, setTimeout(() => {
|
|
1511
|
+
o(this, U).isStale || this.updateResult();
|
|
1512
|
+
}, r));
|
|
1513
|
+
}, de = function() {
|
|
1514
|
+
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(o(this, k)) : this.options.refetchInterval) ?? !1;
|
|
1515
|
+
}, he = function(e) {
|
|
1516
|
+
j(this, L, me).call(this), m(this, dt, e), !(Qt || X(this.options.enabled, o(this, k)) === !1 || !oe(o(this, dt)) || o(this, dt) === 0) && m(this, bt, setInterval(() => {
|
|
1517
|
+
(this.options.refetchIntervalInBackground || _e.isFocused()) && j(this, L, Wt).call(this);
|
|
1518
|
+
}, o(this, dt)));
|
|
1519
|
+
}, fe = function() {
|
|
1520
|
+
j(this, L, ue).call(this), j(this, L, he).call(this, j(this, L, 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, k))
|
|
1528
|
+
return;
|
|
1529
|
+
const s = o(this, k);
|
|
1530
|
+
m(this, k, e), m(this, $t, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
|
|
1531
|
+
}, ms = function(e) {
|
|
1532
|
+
z.batch(() => {
|
|
1533
|
+
e.listeners && this.listeners.forEach((s) => {
|
|
1534
|
+
s(o(this, U));
|
|
1535
|
+
}), o(this, Q).getQueryCache().notify({
|
|
1536
|
+
query: o(this, k),
|
|
1537
|
+
type: "observerResultsUpdated"
|
|
1538
|
+
});
|
|
1539
|
+
});
|
|
1540
|
+
}, es);
|
|
1541
|
+
function hr(t, e) {
|
|
1542
|
+
return X(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
|
|
1543
|
+
}
|
|
1544
|
+
function Te(t, e) {
|
|
1545
|
+
return hr(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 r = typeof s == "function" ? s(t) : s;
|
|
1550
|
+
return r === "always" || r !== !1 && Pe(t, e);
|
|
1551
|
+
}
|
|
1552
|
+
return !1;
|
|
1553
|
+
}
|
|
1554
|
+
function Ue(t, e, s, r) {
|
|
1555
|
+
return (t !== e || X(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && Pe(t, s);
|
|
1556
|
+
}
|
|
1557
|
+
function Pe(t, e) {
|
|
1558
|
+
return X(e.enabled, t) !== !1 && t.isStaleByTime(Pt(e.staleTime, t));
|
|
1559
|
+
}
|
|
1560
|
+
function fr(t, e) {
|
|
1561
|
+
return !te(t.getCurrentResult(), e);
|
|
1562
|
+
}
|
|
1563
|
+
var ht, ft, H, rt, it, Bt, ve, ss, pr = (ss = class extends Ht {
|
|
1564
|
+
constructor(e, s) {
|
|
1565
|
+
super();
|
|
1566
|
+
v(this, it);
|
|
1567
|
+
v(this, ht);
|
|
1568
|
+
v(this, ft);
|
|
1569
|
+
v(this, H);
|
|
1570
|
+
v(this, rt);
|
|
1571
|
+
m(this, ht, e), this.setOptions(s), this.bindMethods(), j(this, it, 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 r;
|
|
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() : ((r = o(this, H)) == null ? void 0 : r.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, it, Bt).call(this), j(this, it, 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, it, Bt).call(this), j(this, it, ve).call(this);
|
|
1598
|
+
}
|
|
1599
|
+
mutate(e, s) {
|
|
1600
|
+
var r;
|
|
1601
|
+
return m(this, rt, s), (r = o(this, H)) == null || r.removeObserver(this), m(this, H, o(this, ht).getMutationCache().build(o(this, ht), this.options)), o(this, H).addObserver(this), o(this, H).execute(e);
|
|
1602
|
+
}
|
|
1603
|
+
}, ht = new WeakMap(), ft = new WeakMap(), H = new WeakMap(), rt = new WeakMap(), it = new WeakSet(), Bt = function() {
|
|
1604
|
+
var s;
|
|
1605
|
+
const e = ((s = o(this, H)) == null ? void 0 : s.state) ?? fs();
|
|
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, r, a, c, l, u, d, p;
|
|
1618
|
+
if (o(this, rt) && this.hasListeners()) {
|
|
1619
|
+
const f = o(this, ft).variables, h = o(this, ft).context;
|
|
1620
|
+
(e == null ? void 0 : e.type) === "success" ? ((r = (s = o(this, rt)).onSuccess) == null || r.call(s, e.data, f, h), (c = (a = o(this, rt)).onSettled) == null || c.call(a, e.data, null, f, h)) : (e == null ? void 0 : e.type) === "error" && ((u = (l = o(this, rt)).onError) == null || u.call(l, e.error, f, h), (p = (d = o(this, rt)).onSettled) == null || p.call(
|
|
1621
|
+
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
|
+
}, ss), ys = i.createContext(
|
|
1633
|
+
void 0
|
|
1634
|
+
), Ee = (t) => {
|
|
1635
|
+
const e = i.useContext(ys);
|
|
1636
|
+
if (!e)
|
|
1637
|
+
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1638
|
+
return e;
|
|
1639
|
+
}, mr = ({
|
|
1640
|
+
client: t,
|
|
1641
|
+
children: e
|
|
1642
|
+
}) => (i.useEffect(() => (t.mount(), () => {
|
|
1643
|
+
t.unmount();
|
|
1644
|
+
}), [t]), /* @__PURE__ */ n.jsx(ys.Provider, { value: t, children: e })), gs = i.createContext(!1), yr = () => i.useContext(gs);
|
|
1645
|
+
gs.Provider;
|
|
1646
|
+
function gr() {
|
|
1647
|
+
let t = !1;
|
|
1648
|
+
return {
|
|
1649
|
+
clearReset: () => {
|
|
1650
|
+
t = !1;
|
|
1651
|
+
},
|
|
1652
|
+
reset: () => {
|
|
1653
|
+
t = !0;
|
|
1654
|
+
},
|
|
1655
|
+
isReset: () => t
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1658
|
+
var vr = i.createContext(gr()), Cr = () => i.useContext(vr);
|
|
1659
|
+
function vs(t, e) {
|
|
1660
|
+
return typeof t == "function" ? t(...e) : !!t;
|
|
1661
|
+
}
|
|
1662
|
+
function xr() {
|
|
1663
|
+
}
|
|
1664
|
+
var br = (t, e) => {
|
|
1665
|
+
(t.suspense || t.throwOnError) && (e.isReset() || (t.retryOnMount = !1));
|
|
1666
|
+
}, wr = (t) => {
|
|
1667
|
+
i.useEffect(() => {
|
|
1668
|
+
t.clearReset();
|
|
1669
|
+
}, [t]);
|
|
1670
|
+
}, jr = ({
|
|
1671
|
+
result: t,
|
|
1672
|
+
errorResetBoundary: e,
|
|
1673
|
+
throwOnError: s,
|
|
1674
|
+
query: r
|
|
1675
|
+
}) => t.isError && !e.isReset() && !t.isFetching && r && vs(s, [t.error, r]), Sr = (t) => {
|
|
1676
|
+
t.suspense && (typeof t.staleTime != "number" && (t.staleTime = 1e3), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3)));
|
|
1677
|
+
}, _r = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, Pr = (t, e, s) => e.fetchOptimistic(t).catch(() => {
|
|
1678
|
+
s.clearReset();
|
|
1679
|
+
});
|
|
1680
|
+
function Er(t, e, s) {
|
|
1681
|
+
var p, f, h, y;
|
|
1682
|
+
const r = Ee(), a = yr(), c = Cr(), l = r.defaultQueryOptions(t);
|
|
1683
|
+
(f = (p = r.getDefaultOptions().queries) == null ? void 0 : p._experimental_beforeQuery) == null || f.call(
|
|
1684
|
+
p,
|
|
1685
|
+
l
|
|
1686
|
+
), l._optimisticResults = a ? "isRestoring" : "optimistic", Sr(l), br(l, c), wr(c);
|
|
1687
|
+
const [u] = i.useState(
|
|
1688
|
+
() => new e(
|
|
1689
|
+
r,
|
|
1690
|
+
l
|
|
1691
|
+
)
|
|
1692
|
+
), d = u.getOptimisticResult(l);
|
|
1693
|
+
if (i.useSyncExternalStore(
|
|
1694
|
+
i.useCallback(
|
|
1695
|
+
(g) => {
|
|
1696
|
+
const P = a ? () => {
|
|
1697
|
+
} : u.subscribe(z.batchCalls(g));
|
|
1698
|
+
return u.updateResult(), P;
|
|
1699
|
+
},
|
|
1700
|
+
[u, a]
|
|
1701
|
+
),
|
|
1702
|
+
() => u.getCurrentResult(),
|
|
1703
|
+
() => u.getCurrentResult()
|
|
1704
|
+
), i.useEffect(() => {
|
|
1705
|
+
u.setOptions(l, { listeners: !1 });
|
|
1706
|
+
}, [l, u]), _r(l, d))
|
|
1707
|
+
throw Pr(l, u, c);
|
|
1708
|
+
if (jr({
|
|
1709
|
+
result: d,
|
|
1710
|
+
errorResetBoundary: c,
|
|
1711
|
+
throwOnError: l.throwOnError,
|
|
1712
|
+
query: r.getQueryCache().get(l.queryHash)
|
|
1713
|
+
}))
|
|
1714
|
+
throw d.error;
|
|
1715
|
+
return (y = (h = r.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 Cs(t, e) {
|
|
1722
|
+
return Er(t, dr);
|
|
1723
|
+
}
|
|
1724
|
+
function kr(t, e) {
|
|
1725
|
+
const s = Ee(), [r] = i.useState(
|
|
1726
|
+
() => new pr(
|
|
1727
|
+
s,
|
|
1728
|
+
t
|
|
1729
|
+
)
|
|
1730
|
+
);
|
|
1731
|
+
i.useEffect(() => {
|
|
1732
|
+
r.setOptions(t);
|
|
1733
|
+
}, [r, t]);
|
|
1734
|
+
const a = i.useSyncExternalStore(
|
|
1735
|
+
i.useCallback(
|
|
1736
|
+
(l) => r.subscribe(z.batchCalls(l)),
|
|
1737
|
+
[r]
|
|
1738
|
+
),
|
|
1739
|
+
() => r.getCurrentResult(),
|
|
1740
|
+
() => r.getCurrentResult()
|
|
1741
|
+
), c = i.useCallback(
|
|
1742
|
+
(l, u) => {
|
|
1743
|
+
r.mutate(l, u).catch(xr);
|
|
1744
|
+
},
|
|
1745
|
+
[r]
|
|
1746
|
+
);
|
|
1747
|
+
if (a.error && vs(r.options.throwOnError, [a.error]))
|
|
1748
|
+
throw a.error;
|
|
1749
|
+
return { ...a, mutate: c, mutateAsync: a.mutate };
|
|
1750
|
+
}
|
|
1751
|
+
function xs(t) {
|
|
1752
|
+
var e, s, r = "";
|
|
1753
|
+
if (typeof t == "string" || typeof t == "number") r += 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 = xs(t[e])) && (r && (r += " "), r += s);
|
|
1757
|
+
} else for (s in t) t[s] && (r && (r += " "), r += s);
|
|
1758
|
+
return r;
|
|
1759
|
+
}
|
|
1760
|
+
function N() {
|
|
1761
|
+
for (var t, e, s = 0, r = "", a = arguments.length; s < a; s++) (t = arguments[s]) && (e = xs(t)) && (r && (r += " "), r += e);
|
|
1762
|
+
return r;
|
|
1763
|
+
}
|
|
1764
|
+
var Ar = Object.defineProperty, Nr = Object.defineProperties, Lr = Object.getOwnPropertyDescriptors, se = Object.getOwnPropertySymbols, bs = Object.prototype.hasOwnProperty, ws = Object.prototype.propertyIsEnumerable, Qe = (t, e, s) => e in t ? Ar(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, C = (t, e) => {
|
|
1765
|
+
for (var s in e || (e = {}))
|
|
1766
|
+
bs.call(e, s) && Qe(t, s, e[s]);
|
|
1767
|
+
if (se)
|
|
1768
|
+
for (var s of se(e))
|
|
1769
|
+
ws.call(e, s) && Qe(t, s, e[s]);
|
|
1770
|
+
return t;
|
|
1771
|
+
}, _ = (t, e) => Nr(t, Lr(e)), M = (t, e) => {
|
|
1772
|
+
var s = {};
|
|
1773
|
+
for (var r in t)
|
|
1774
|
+
bs.call(t, r) && e.indexOf(r) < 0 && (s[r] = t[r]);
|
|
1775
|
+
if (t != null && se)
|
|
1776
|
+
for (var r of se(t))
|
|
1777
|
+
e.indexOf(r) < 0 && ws.call(t, r) && (s[r] = t[r]);
|
|
1778
|
+
return s;
|
|
1779
|
+
};
|
|
1780
|
+
function Mr(t, e) {
|
|
1781
|
+
typeof t == "function" ? t(e) : t != null && (t.current = e);
|
|
1782
|
+
}
|
|
1783
|
+
function Fr(...t) {
|
|
1784
|
+
return (e) => t.forEach((s) => Mr(s, e));
|
|
1785
|
+
}
|
|
1786
|
+
var Rr = i.forwardRef((t, e) => {
|
|
1787
|
+
const s = t, { children: r } = s, a = M(s, ["children"]), c = i.Children.toArray(r), l = c.find(zr);
|
|
1788
|
+
if (l) {
|
|
1789
|
+
const u = l.props.children, d = c.map((p) => p === l ? i.Children.count(u) > 1 ? i.Children.only(null) : i.isValidElement(u) ? u.props.children : null : p);
|
|
1790
|
+
return /* @__PURE__ */ n.jsx(Ce, _(C({}, a), { ref: e, children: i.isValidElement(u) ? i.cloneElement(u, void 0, d) : null }));
|
|
1791
|
+
}
|
|
1792
|
+
return /* @__PURE__ */ n.jsx(Ce, _(C({}, a), { ref: e, children: r }));
|
|
1793
|
+
});
|
|
1794
|
+
Rr.displayName = "Slot";
|
|
1795
|
+
var Ce = i.forwardRef((t, e) => {
|
|
1796
|
+
const s = t, { children: r } = s, a = M(s, ["children"]);
|
|
1797
|
+
if (i.isValidElement(r)) {
|
|
1798
|
+
const c = Tr(r);
|
|
1799
|
+
return i.cloneElement(r, _(C({}, Dr(a, r.props)), {
|
|
1800
|
+
// @ts-ignore
|
|
1801
|
+
ref: e ? Fr(e, c) : c
|
|
1802
|
+
}));
|
|
1803
|
+
}
|
|
1804
|
+
return i.Children.count(r) > 1 ? i.Children.only(null) : null;
|
|
1805
|
+
});
|
|
1806
|
+
Ce.displayName = "SlotClone";
|
|
1807
|
+
var Or = ({ children: t }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
|
|
1808
|
+
function zr(t) {
|
|
1809
|
+
return i.isValidElement(t) && t.type === Or;
|
|
1810
|
+
}
|
|
1811
|
+
function Dr(t, e) {
|
|
1812
|
+
const s = C({}, e);
|
|
1813
|
+
for (const r in e) {
|
|
1814
|
+
const a = t[r], c = e[r];
|
|
1815
|
+
/^on[A-Z]/.test(r) ? a && c ? s[r] = (...u) => {
|
|
1816
|
+
c(...u), a(...u);
|
|
1817
|
+
} : a && (s[r] = a) : r === "style" ? s[r] = C(C({}, a), c) : r === "className" && (s[r] = [a, c].filter(Boolean).join(" "));
|
|
1818
|
+
}
|
|
1819
|
+
return C(C({}, t), s);
|
|
1820
|
+
}
|
|
1821
|
+
function Tr(t) {
|
|
1822
|
+
var e, s;
|
|
1823
|
+
let r = (e = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : e.get, a = r && "isReactWarning" in r && r.isReactWarning;
|
|
1824
|
+
return a ? t.ref : (r = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, a = r && "isReactWarning" in r && r.isReactWarning, a ? t.props.ref : t.props.ref || t.ref);
|
|
1825
|
+
}
|
|
1826
|
+
var Ur = ({ firstName: t, lastName: e, variant: s = "small" }) => {
|
|
1827
|
+
const r = `${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: r })
|
|
1835
|
+
}
|
|
1836
|
+
);
|
|
1837
|
+
}, Kt = i.forwardRef(
|
|
1838
|
+
(t, e) => {
|
|
1839
|
+
var s = t, {
|
|
1840
|
+
iconLeft: r,
|
|
1841
|
+
iconRight: a,
|
|
1842
|
+
isPending: c = !1,
|
|
1843
|
+
isFilled: l = !1,
|
|
1844
|
+
variant: u,
|
|
1845
|
+
className: d,
|
|
1846
|
+
children: p
|
|
1847
|
+
} = s, f = M(s, [
|
|
1848
|
+
"iconLeft",
|
|
1849
|
+
"iconRight",
|
|
1850
|
+
"isPending",
|
|
1851
|
+
"isFilled",
|
|
1852
|
+
"variant",
|
|
1853
|
+
"className",
|
|
1854
|
+
"children"
|
|
1855
|
+
]);
|
|
1856
|
+
const h = !!r || !!a;
|
|
1857
|
+
return /* @__PURE__ */ n.jsxs(
|
|
1858
|
+
"button",
|
|
1859
|
+
_(C({
|
|
1860
|
+
ref: e
|
|
1861
|
+
}, f), {
|
|
1862
|
+
className: N(
|
|
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
|
+
r && /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: r }),
|
|
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
|
+
Kt.displayName = "Button";
|
|
1880
|
+
i.createContext(void 0);
|
|
1881
|
+
var Qr = i.forwardRef(
|
|
1882
|
+
(t, e) => {
|
|
1883
|
+
var s = t, { prefix: r, suffix: a, className: c } = s, l = M(s, ["prefix", "suffix", "className"]);
|
|
1884
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "input__wrapper", children: [
|
|
1885
|
+
r && /* @__PURE__ */ n.jsx("span", { className: "input__prefix", children: r }),
|
|
1886
|
+
/* @__PURE__ */ n.jsx(
|
|
1887
|
+
"input",
|
|
1888
|
+
C({
|
|
1889
|
+
ref: e,
|
|
1890
|
+
className: N(
|
|
1891
|
+
"input",
|
|
1892
|
+
r && "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
|
+
Qr.displayName = "TextField";
|
|
1903
|
+
i.createContext(void 0);
|
|
1904
|
+
var js = i.createContext(null), Ss = i.createContext(null), ke = () => {
|
|
1905
|
+
const t = i.useContext(js);
|
|
1906
|
+
if (!t)
|
|
1907
|
+
throw new Error("This component must be used inside <NotificationBanner>.");
|
|
1908
|
+
return t;
|
|
1909
|
+
}, _s = () => {
|
|
1910
|
+
const t = i.useContext(Ss);
|
|
1911
|
+
if (!t)
|
|
1912
|
+
throw new Error("This component must be used inside <NotificationBanner.Actions>.");
|
|
1913
|
+
return t;
|
|
1914
|
+
}, Ps = (t) => {
|
|
1915
|
+
var e = t, {
|
|
1916
|
+
variant: s = "info",
|
|
1917
|
+
children: r,
|
|
1918
|
+
className: a
|
|
1919
|
+
} = e, c = M(e, [
|
|
1920
|
+
"variant",
|
|
1921
|
+
"children",
|
|
1922
|
+
"className"
|
|
1923
|
+
]);
|
|
1924
|
+
return /* @__PURE__ */ n.jsx(js.Provider, { value: !0, children: /* @__PURE__ */ n.jsx("div", _(C({ className: N("notification-banner", s, a) }, c), { children: r })) });
|
|
1925
|
+
};
|
|
1926
|
+
Ps.displayName = "NotificationBanner";
|
|
1927
|
+
var Hr = (t) => {
|
|
1928
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1929
|
+
return ke(), /* @__PURE__ */ n.jsx("div", _(C({ className: N("banner-content", r) }, a), { children: s }));
|
|
1930
|
+
}, Kr = (t) => {
|
|
1931
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1932
|
+
return ke(), /* @__PURE__ */ n.jsx("p", _(C({ className: N("description", r) }, a), { children: s }));
|
|
1933
|
+
}, Wr = (t) => {
|
|
1934
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1935
|
+
return ke(), /* @__PURE__ */ n.jsx(Ss.Provider, { value: !0, children: /* @__PURE__ */ n.jsx("div", _(C({ className: N("actions", r) }, a), { children: s })) });
|
|
1936
|
+
}, Gr = (t) => {
|
|
1937
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1938
|
+
return _s(), /* @__PURE__ */ n.jsx(Kt, _(C({ type: "button", variant: "icon--secondary", className: N("close", r) }, a), { children: s }));
|
|
1939
|
+
}, Vr = (t) => {
|
|
1940
|
+
var e = t, { href: s, children: r, className: a } = e, c = M(e, ["href", "children", "className"]);
|
|
1941
|
+
return _s(), /* @__PURE__ */ n.jsx("a", _(C({ href: s, className: N("link", a) }, c), { children: r }));
|
|
1942
|
+
};
|
|
1943
|
+
Object.assign(Ps, {
|
|
1944
|
+
Content: Hr,
|
|
1945
|
+
Description: Kr,
|
|
1946
|
+
Actions: Wr,
|
|
1947
|
+
CloseButton: Gr,
|
|
1948
|
+
Link: Vr
|
|
1949
|
+
});
|
|
1950
|
+
var qr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__header__action", children: t }), $r = (t) => {
|
|
1951
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
1952
|
+
return /* @__PURE__ */ n.jsx("div", _(C({ className: N("card__body", r) }, a), { children: s }));
|
|
1953
|
+
}, Zr = (t) => /* @__PURE__ */ n.jsx(
|
|
1954
|
+
"svg",
|
|
1955
|
+
_(C({
|
|
1956
|
+
width: "24",
|
|
1957
|
+
height: "24",
|
|
1958
|
+
viewBox: "0 0 24 24",
|
|
1959
|
+
fill: "none",
|
|
1960
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1961
|
+
}, t), {
|
|
1962
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1963
|
+
"path",
|
|
1964
|
+
{
|
|
1965
|
+
d: "M8 10L12 14L16 10",
|
|
1966
|
+
stroke: "currentColor",
|
|
1967
|
+
strokeWidth: "1.5",
|
|
1968
|
+
strokeLinecap: "round",
|
|
1969
|
+
strokeLinejoin: "round"
|
|
1970
|
+
}
|
|
1971
|
+
)
|
|
1972
|
+
})
|
|
1973
|
+
), Ae = Zr, Xr = (t) => /* @__PURE__ */ n.jsx(
|
|
1974
|
+
"svg",
|
|
1975
|
+
_(C({
|
|
1976
|
+
width: "24",
|
|
1977
|
+
height: "24",
|
|
1978
|
+
viewBox: "0 0 24 24",
|
|
1979
|
+
fill: "none",
|
|
1980
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1981
|
+
}, t), {
|
|
1982
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1983
|
+
"path",
|
|
1984
|
+
{
|
|
1985
|
+
d: "M20 6.5L9 17.5L4 12.5",
|
|
1986
|
+
stroke: "currentColor",
|
|
1987
|
+
strokeWidth: "1.5",
|
|
1988
|
+
strokeLinecap: "round",
|
|
1989
|
+
strokeLinejoin: "round"
|
|
1990
|
+
}
|
|
1991
|
+
)
|
|
1992
|
+
})
|
|
1993
|
+
), Yr = Xr, Jr = (t) => /* @__PURE__ */ n.jsx(
|
|
1994
|
+
"svg",
|
|
1995
|
+
_(C({
|
|
1996
|
+
width: "24",
|
|
1997
|
+
height: "24",
|
|
1998
|
+
viewBox: "0 0 24 24",
|
|
1999
|
+
fill: "none",
|
|
2000
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2001
|
+
}, t), {
|
|
2002
|
+
children: /* @__PURE__ */ n.jsx(
|
|
2003
|
+
"path",
|
|
2004
|
+
{
|
|
2005
|
+
fillRule: "evenodd",
|
|
2006
|
+
clipRule: "evenodd",
|
|
2007
|
+
fill: "currentColor",
|
|
2008
|
+
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"
|
|
2009
|
+
}
|
|
2010
|
+
)
|
|
2011
|
+
})
|
|
2012
|
+
), Ir = Jr, Br = (t) => /* @__PURE__ */ n.jsx(
|
|
2013
|
+
"svg",
|
|
2014
|
+
_(C({
|
|
2015
|
+
width: "24",
|
|
2016
|
+
height: "24",
|
|
2017
|
+
viewBox: "0 0 24 24",
|
|
2018
|
+
fill: "none",
|
|
2019
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2020
|
+
}, t), {
|
|
2021
|
+
children: /* @__PURE__ */ n.jsx(
|
|
2022
|
+
"path",
|
|
2023
|
+
{
|
|
2024
|
+
fillRule: "evenodd",
|
|
2025
|
+
clipRule: "evenodd",
|
|
2026
|
+
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",
|
|
2027
|
+
fill: "#323232"
|
|
2028
|
+
}
|
|
2029
|
+
)
|
|
2030
|
+
})
|
|
2031
|
+
), ti = Br, ei = (t) => /* @__PURE__ */ n.jsx(
|
|
2032
|
+
"svg",
|
|
2033
|
+
_(C({
|
|
2034
|
+
width: "24",
|
|
2035
|
+
height: "24",
|
|
2036
|
+
viewBox: "0 0 24 24",
|
|
2037
|
+
fill: "none",
|
|
2038
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2039
|
+
}, t), {
|
|
2040
|
+
children: /* @__PURE__ */ n.jsx(
|
|
2041
|
+
"path",
|
|
2042
|
+
{
|
|
2043
|
+
fillRule: "evenodd",
|
|
2044
|
+
clipRule: "evenodd",
|
|
2045
|
+
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",
|
|
2046
|
+
fill: "currentColor"
|
|
2047
|
+
}
|
|
2048
|
+
)
|
|
2049
|
+
})
|
|
2050
|
+
), si = ei, ri = (t) => /* @__PURE__ */ n.jsxs(
|
|
2051
|
+
"svg",
|
|
2052
|
+
_(C({
|
|
2053
|
+
width: "24",
|
|
2054
|
+
height: "24",
|
|
2055
|
+
fill: "none",
|
|
2056
|
+
viewBox: "0 0 24 24",
|
|
2057
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2058
|
+
}, t), {
|
|
2059
|
+
children: [
|
|
2060
|
+
/* @__PURE__ */ n.jsxs("g", { clipPath: "url(#clip0_19_444)", children: [
|
|
2061
|
+
/* @__PURE__ */ n.jsx(
|
|
2062
|
+
"path",
|
|
2063
|
+
{
|
|
2064
|
+
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",
|
|
2065
|
+
stroke: "currentColor",
|
|
2066
|
+
strokeWidth: "1.5",
|
|
2067
|
+
strokeLinecap: "round",
|
|
2068
|
+
strokeLinejoin: "round"
|
|
2069
|
+
}
|
|
2070
|
+
),
|
|
2071
|
+
/* @__PURE__ */ n.jsx("circle", { cx: "10.3", cy: "15.5", r: "0.8", fill: "currentColor" }),
|
|
2072
|
+
/* @__PURE__ */ n.jsx("circle", { cx: "13.7", cy: "15.5", r: "0.8", fill: "currentColor" }),
|
|
2073
|
+
/* @__PURE__ */ n.jsx(
|
|
2074
|
+
"path",
|
|
2075
|
+
{
|
|
2076
|
+
d: "M8 10V7V7C8 4.79086 9.79086 3 12 3V3C14.2091 3 16 4.79086 16 7V10",
|
|
2077
|
+
stroke: "currentColor",
|
|
2078
|
+
strokeWidth: "1.5",
|
|
2079
|
+
strokeLinecap: "round",
|
|
2080
|
+
strokeLinejoin: "round"
|
|
2081
|
+
}
|
|
2082
|
+
)
|
|
2083
|
+
] }),
|
|
2084
|
+
/* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsx("clipPath", { id: "clip0_19_444", children: /* @__PURE__ */ n.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
2085
|
+
]
|
|
2086
|
+
})
|
|
2087
|
+
), ii = ri, ni = (t) => /* @__PURE__ */ n.jsxs(
|
|
2088
|
+
"svg",
|
|
2089
|
+
_(C({
|
|
2090
|
+
width: "24",
|
|
2091
|
+
height: "24",
|
|
2092
|
+
viewBox: "0 0 24 24",
|
|
2093
|
+
fill: "none",
|
|
2094
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2095
|
+
}, t), {
|
|
2096
|
+
children: [
|
|
2097
|
+
/* @__PURE__ */ n.jsx(
|
|
2098
|
+
"path",
|
|
2099
|
+
{
|
|
2100
|
+
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",
|
|
2101
|
+
stroke: "currentColor",
|
|
2102
|
+
strokeWidth: "1.5",
|
|
2103
|
+
strokeLinecap: "round",
|
|
2104
|
+
strokeLinejoin: "round"
|
|
2105
|
+
}
|
|
2106
|
+
),
|
|
2107
|
+
/* @__PURE__ */ n.jsx(
|
|
2108
|
+
"path",
|
|
2109
|
+
{
|
|
2110
|
+
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",
|
|
2111
|
+
stroke: "currentColor",
|
|
2112
|
+
strokeWidth: "1.5",
|
|
2113
|
+
strokeLinecap: "round",
|
|
2114
|
+
strokeLinejoin: "round"
|
|
2115
|
+
}
|
|
2116
|
+
)
|
|
2117
|
+
]
|
|
2118
|
+
})
|
|
2119
|
+
), ai = ni, oi = (t) => /* @__PURE__ */ n.jsxs(
|
|
2120
|
+
"svg",
|
|
2121
|
+
_(C({
|
|
2122
|
+
width: "24",
|
|
2123
|
+
height: "24",
|
|
2124
|
+
viewBox: "0 0 24 24",
|
|
2125
|
+
fill: "none",
|
|
2126
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2127
|
+
}, t), {
|
|
2128
|
+
children: [
|
|
2129
|
+
/* @__PURE__ */ n.jsx(
|
|
2130
|
+
"path",
|
|
2131
|
+
{
|
|
2132
|
+
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",
|
|
2133
|
+
stroke: "currentColor",
|
|
2134
|
+
strokeWidth: "1.5",
|
|
2135
|
+
strokeLinecap: "round",
|
|
2136
|
+
strokeLinejoin: "round"
|
|
2137
|
+
}
|
|
2138
|
+
),
|
|
2139
|
+
/* @__PURE__ */ n.jsx(
|
|
2140
|
+
"path",
|
|
2141
|
+
{
|
|
2142
|
+
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",
|
|
2143
|
+
stroke: "currentColor",
|
|
2144
|
+
strokeWidth: "1.5",
|
|
2145
|
+
strokeLinecap: "round",
|
|
2146
|
+
strokeLinejoin: "round"
|
|
2147
|
+
}
|
|
2148
|
+
),
|
|
2149
|
+
/* @__PURE__ */ n.jsx(
|
|
2150
|
+
"path",
|
|
2151
|
+
{
|
|
2152
|
+
d: "M17.5 16V18.0164V20",
|
|
2153
|
+
stroke: "currentColor",
|
|
2154
|
+
strokeWidth: "1.5",
|
|
2155
|
+
strokeLinecap: "round",
|
|
2156
|
+
strokeLinejoin: "round"
|
|
2157
|
+
}
|
|
2158
|
+
),
|
|
2159
|
+
/* @__PURE__ */ n.jsx(
|
|
2160
|
+
"path",
|
|
2161
|
+
{
|
|
2162
|
+
d: "M19.5 18L17.4836 18L15.5 18",
|
|
2163
|
+
stroke: "currentColor",
|
|
2164
|
+
strokeWidth: "1.5",
|
|
2165
|
+
strokeLinecap: "round",
|
|
2166
|
+
strokeLinejoin: "round"
|
|
2167
|
+
}
|
|
2168
|
+
)
|
|
2169
|
+
]
|
|
2170
|
+
})
|
|
2171
|
+
), li = oi, ci = (t) => {
|
|
2172
|
+
var e = t, { className: s } = e, r = M(e, ["className"]);
|
|
2173
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2174
|
+
"svg",
|
|
2175
|
+
_(C({
|
|
2176
|
+
width: "20",
|
|
2177
|
+
height: "20",
|
|
2178
|
+
viewBox: "0 0 20 20",
|
|
2179
|
+
fill: "none",
|
|
2180
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2181
|
+
className: N("spinner", s)
|
|
2182
|
+
}, r), {
|
|
2183
|
+
children: [
|
|
2184
|
+
/* @__PURE__ */ n.jsx("circle", { cx: "10", cy: "10", r: "9", stroke: "currentColor", strokeOpacity: "0.2", strokeWidth: "1.5" }),
|
|
2185
|
+
/* @__PURE__ */ n.jsx(
|
|
2186
|
+
"circle",
|
|
2187
|
+
{
|
|
2188
|
+
cx: "10",
|
|
2189
|
+
cy: "10",
|
|
2190
|
+
r: "9",
|
|
2191
|
+
stroke: "currentColor",
|
|
2192
|
+
strokeWidth: "1.5",
|
|
2193
|
+
strokeLinecap: "round",
|
|
2194
|
+
strokeDasharray: "42.42 14.14"
|
|
2195
|
+
}
|
|
2196
|
+
)
|
|
2197
|
+
]
|
|
2198
|
+
})
|
|
2199
|
+
);
|
|
2200
|
+
}, ui = ci, di = (t) => /* @__PURE__ */ n.jsxs(
|
|
2201
|
+
"svg",
|
|
2202
|
+
_(C({
|
|
2203
|
+
width: "24",
|
|
2204
|
+
height: "24",
|
|
2205
|
+
fill: "none",
|
|
2206
|
+
viewBox: "0 0 24 24",
|
|
2207
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2208
|
+
}, t), {
|
|
2209
|
+
children: [
|
|
2210
|
+
/* @__PURE__ */ n.jsxs("g", { clipPath: "url(#clip0_762_2934)", children: [
|
|
2211
|
+
/* @__PURE__ */ n.jsx(
|
|
2212
|
+
"path",
|
|
2213
|
+
{
|
|
2214
|
+
fillRule: "evenodd",
|
|
2215
|
+
clipRule: "evenodd",
|
|
2216
|
+
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",
|
|
2217
|
+
fill: "currentColor"
|
|
2218
|
+
}
|
|
2219
|
+
),
|
|
2220
|
+
/* @__PURE__ */ n.jsx(
|
|
2221
|
+
"path",
|
|
2222
|
+
{
|
|
2223
|
+
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",
|
|
2224
|
+
stroke: "currentColor",
|
|
2225
|
+
strokeWidth: "1.5",
|
|
2226
|
+
strokeLinecap: "round",
|
|
2227
|
+
strokeLinejoin: "round"
|
|
2228
|
+
}
|
|
2229
|
+
)
|
|
2230
|
+
] }),
|
|
2231
|
+
/* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsx("clipPath", { id: "clip0_762_2934", children: /* @__PURE__ */ n.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
2232
|
+
]
|
|
2233
|
+
})
|
|
2234
|
+
), hi = di, fi = (t) => {
|
|
2235
|
+
const e = (s) => `${s}${t.suffix ? `_${t.suffix}` : ""}`;
|
|
2236
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2237
|
+
"svg",
|
|
2238
|
+
_(C({
|
|
2239
|
+
width: "24",
|
|
2240
|
+
height: "24",
|
|
2241
|
+
viewBox: "0 0 24 24",
|
|
2242
|
+
fill: "none",
|
|
2243
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2244
|
+
}, t), {
|
|
2245
|
+
children: [
|
|
2246
|
+
/* @__PURE__ */ n.jsx(
|
|
2247
|
+
"path",
|
|
2248
|
+
{
|
|
2249
|
+
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",
|
|
2250
|
+
fill: e("url(#paint0")
|
|
2251
|
+
}
|
|
2252
|
+
),
|
|
2253
|
+
/* @__PURE__ */ n.jsx(
|
|
2254
|
+
"path",
|
|
2255
|
+
{
|
|
2256
|
+
opacity: "0.9",
|
|
2257
|
+
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",
|
|
2258
|
+
fill: e("url(#paint1")
|
|
2259
|
+
}
|
|
2260
|
+
),
|
|
2261
|
+
/* @__PURE__ */ n.jsx(
|
|
2262
|
+
"path",
|
|
2263
|
+
{
|
|
2264
|
+
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",
|
|
2265
|
+
fill: e("url(#paint2")
|
|
2266
|
+
}
|
|
2267
|
+
),
|
|
2268
|
+
/* @__PURE__ */ n.jsx(
|
|
2269
|
+
"path",
|
|
2270
|
+
{
|
|
2271
|
+
opacity: "0.85",
|
|
2272
|
+
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",
|
|
2273
|
+
fill: e("url(#paint3")
|
|
2274
|
+
}
|
|
2275
|
+
),
|
|
2276
|
+
/* @__PURE__ */ n.jsx(
|
|
2277
|
+
"path",
|
|
2278
|
+
{
|
|
2279
|
+
opacity: "0.87",
|
|
2280
|
+
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",
|
|
2281
|
+
fill: e("url(#paint4")
|
|
2282
|
+
}
|
|
2283
|
+
),
|
|
2284
|
+
/* @__PURE__ */ n.jsx(
|
|
2285
|
+
"path",
|
|
2286
|
+
{
|
|
2287
|
+
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",
|
|
2288
|
+
fill: e("url(#paint5")
|
|
2289
|
+
}
|
|
2290
|
+
),
|
|
2291
|
+
/* @__PURE__ */ n.jsxs("defs", { children: [
|
|
2292
|
+
/* @__PURE__ */ n.jsxs(
|
|
2293
|
+
"linearGradient",
|
|
2294
|
+
{
|
|
2295
|
+
id: e("paint0"),
|
|
2296
|
+
x1: "10.6862",
|
|
2297
|
+
y1: "11.0225",
|
|
2298
|
+
x2: "14.9751",
|
|
2299
|
+
y2: "0.707188",
|
|
2300
|
+
gradientUnits: "userSpaceOnUse",
|
|
2301
|
+
children: [
|
|
2302
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.413", stopColor: "#90B117" }),
|
|
2303
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.501", stopColor: "#8BAF19" }),
|
|
2304
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.601", stopColor: "#7DAB1E" }),
|
|
2305
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.706", stopColor: "#67A325" }),
|
|
2306
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.815", stopColor: "#479830" }),
|
|
2307
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.925", stopColor: "#1F8A3E" }),
|
|
2308
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#007F48" })
|
|
2309
|
+
]
|
|
2310
|
+
}
|
|
2311
|
+
),
|
|
2312
|
+
/* @__PURE__ */ n.jsxs(
|
|
2313
|
+
"linearGradient",
|
|
2314
|
+
{
|
|
2315
|
+
id: e("paint1"),
|
|
2316
|
+
x1: "11.5281",
|
|
2317
|
+
y1: "8.85339",
|
|
2318
|
+
x2: "12.4519",
|
|
2319
|
+
y2: "1.60772",
|
|
2320
|
+
gradientUnits: "userSpaceOnUse",
|
|
2321
|
+
children: [
|
|
2322
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0", stopColor: "#36BCEE" }),
|
|
2323
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.201", stopColor: "#31ACE3" }),
|
|
2324
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.59", stopColor: "#2583C5" }),
|
|
2325
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#1652A1" })
|
|
2326
|
+
]
|
|
2327
|
+
}
|
|
2328
|
+
),
|
|
2329
|
+
/* @__PURE__ */ n.jsxs(
|
|
2330
|
+
"linearGradient",
|
|
2331
|
+
{
|
|
2332
|
+
id: e("paint2"),
|
|
2333
|
+
x1: "15.0651",
|
|
2334
|
+
y1: "18.7384",
|
|
2335
|
+
x2: "12.9747",
|
|
2336
|
+
y2: "8.0336",
|
|
2337
|
+
gradientUnits: "userSpaceOnUse",
|
|
2338
|
+
children: [
|
|
2339
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0", stopColor: "#E42313" }),
|
|
2340
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.071", stopColor: "#E73611" }),
|
|
2341
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.312", stopColor: "#F0710B" }),
|
|
2342
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.534", stopColor: "#F6A006" }),
|
|
2343
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.73", stopColor: "#FBC103" }),
|
|
2344
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.891", stopColor: "#FED601" }),
|
|
2345
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.999", stopColor: "#FFDD00" })
|
|
2346
|
+
]
|
|
2347
|
+
}
|
|
2348
|
+
),
|
|
2349
|
+
/* @__PURE__ */ n.jsxs(
|
|
2350
|
+
"linearGradient",
|
|
2351
|
+
{
|
|
2352
|
+
id: e("paint3"),
|
|
2353
|
+
x1: "13.9806",
|
|
2354
|
+
y1: "8.29749",
|
|
2355
|
+
x2: "10.8203",
|
|
2356
|
+
y2: "18.1127",
|
|
2357
|
+
gradientUnits: "userSpaceOnUse",
|
|
2358
|
+
children: [
|
|
2359
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0", stopColor: "#FFC832" }),
|
|
2360
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.354", stopColor: "#F8A220" }),
|
|
2361
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.779", stopColor: "#F07A0D" }),
|
|
2362
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#ED6B06" })
|
|
2363
|
+
]
|
|
2364
|
+
}
|
|
2365
|
+
),
|
|
2366
|
+
/* @__PURE__ */ n.jsxs(
|
|
2367
|
+
"linearGradient",
|
|
2368
|
+
{
|
|
2369
|
+
id: e("paint4"),
|
|
2370
|
+
x1: "13.9806",
|
|
2371
|
+
y1: "8.2892",
|
|
2372
|
+
x2: "10.8212",
|
|
2373
|
+
y2: "18.1113",
|
|
2374
|
+
gradientUnits: "userSpaceOnUse",
|
|
2375
|
+
children: [
|
|
2376
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.461", stopColor: "#F3C636", stopOpacity: "0" }),
|
|
2377
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.645", stopColor: "#F1A223", stopOpacity: "0.341" }),
|
|
2378
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.879", stopColor: "#EE7A0E", stopOpacity: "0.776" }),
|
|
2379
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#ED6B06" })
|
|
2380
|
+
]
|
|
2381
|
+
}
|
|
2382
|
+
),
|
|
2383
|
+
/* @__PURE__ */ n.jsxs(
|
|
2384
|
+
"radialGradient",
|
|
2385
|
+
{
|
|
2386
|
+
id: e("paint5"),
|
|
2387
|
+
cx: "0",
|
|
2388
|
+
cy: "0",
|
|
2389
|
+
r: "1",
|
|
2390
|
+
gradientUnits: "userSpaceOnUse",
|
|
2391
|
+
gradientTransform: "translate(11.9404 22.4736) scale(7.73227 0.851796)",
|
|
2392
|
+
children: [
|
|
2393
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0", stopColor: "#C9C9C9" }),
|
|
2394
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.302", stopColor: "#CCCCCC", stopOpacity: "0.698" }),
|
|
2395
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.554", stopColor: "#D7D7D7", stopOpacity: "0.447" }),
|
|
2396
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.787", stopColor: "#E8E8E8", stopOpacity: "0.212" }),
|
|
2397
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
|
|
2398
|
+
]
|
|
2399
|
+
}
|
|
2400
|
+
)
|
|
2401
|
+
] })
|
|
2402
|
+
]
|
|
2403
|
+
})
|
|
2404
|
+
);
|
|
2405
|
+
}, Es = fi, pi = (t) => /* @__PURE__ */ n.jsxs(
|
|
2406
|
+
"svg",
|
|
2407
|
+
_(C({
|
|
2408
|
+
fill: "none",
|
|
2409
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2410
|
+
viewBox: "0 0 24 24",
|
|
2411
|
+
width: "24",
|
|
2412
|
+
height: "24"
|
|
2413
|
+
}, t), {
|
|
2414
|
+
children: [
|
|
2415
|
+
/* @__PURE__ */ n.jsx(
|
|
2416
|
+
"path",
|
|
2417
|
+
{
|
|
2418
|
+
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",
|
|
2419
|
+
stroke: "currentColor",
|
|
2420
|
+
strokeWidth: "1.5",
|
|
2421
|
+
strokeLinecap: "round",
|
|
2422
|
+
strokeLinejoin: "round"
|
|
2423
|
+
}
|
|
2424
|
+
),
|
|
2425
|
+
/* @__PURE__ */ n.jsx(
|
|
2426
|
+
"path",
|
|
2427
|
+
{
|
|
2428
|
+
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",
|
|
2429
|
+
stroke: "currentColor",
|
|
2430
|
+
strokeWidth: "1.5",
|
|
2431
|
+
strokeLinecap: "round",
|
|
2432
|
+
strokeLinejoin: "round"
|
|
2433
|
+
}
|
|
2434
|
+
),
|
|
2435
|
+
/* @__PURE__ */ n.jsx(
|
|
2436
|
+
"path",
|
|
2437
|
+
{
|
|
2438
|
+
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",
|
|
2439
|
+
stroke: "currentColor",
|
|
2440
|
+
strokeWidth: "1.5",
|
|
2441
|
+
strokeLinecap: "round",
|
|
2442
|
+
strokeLinejoin: "round"
|
|
2443
|
+
}
|
|
2444
|
+
),
|
|
2445
|
+
/* @__PURE__ */ n.jsx(
|
|
2446
|
+
"path",
|
|
2447
|
+
{
|
|
2448
|
+
d: "M12 3V21",
|
|
2449
|
+
stroke: "currentColor",
|
|
2450
|
+
strokeWidth: "1.5",
|
|
2451
|
+
strokeLinecap: "round",
|
|
2452
|
+
strokeLinejoin: "round"
|
|
2453
|
+
}
|
|
2454
|
+
),
|
|
2455
|
+
/* @__PURE__ */ n.jsx(
|
|
2456
|
+
"path",
|
|
2457
|
+
{
|
|
2458
|
+
d: "M21 12H3",
|
|
2459
|
+
stroke: "currentColor",
|
|
2460
|
+
strokeWidth: "1.5",
|
|
2461
|
+
strokeLinecap: "round",
|
|
2462
|
+
strokeLinejoin: "round"
|
|
2463
|
+
}
|
|
2464
|
+
)
|
|
2465
|
+
]
|
|
2466
|
+
})
|
|
2467
|
+
), mi = pi, yi = (t) => /* @__PURE__ */ n.jsx(
|
|
2468
|
+
"svg",
|
|
2469
|
+
_(C({
|
|
2470
|
+
fill: "none",
|
|
2471
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2472
|
+
viewBox: "0 0 21 16",
|
|
2473
|
+
width: "21",
|
|
2474
|
+
height: "16"
|
|
2475
|
+
}, t), {
|
|
2476
|
+
children: /* @__PURE__ */ n.jsx(
|
|
2477
|
+
"path",
|
|
2478
|
+
{
|
|
2479
|
+
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",
|
|
2480
|
+
stroke: "currentcolor",
|
|
2481
|
+
strokeWidth: "1.5",
|
|
2482
|
+
strokeLinecap: "round",
|
|
2483
|
+
strokeLinejoin: "round"
|
|
2484
|
+
}
|
|
2485
|
+
)
|
|
2486
|
+
})
|
|
2487
|
+
), gi = yi, vi = (t) => /* @__PURE__ */ n.jsxs(
|
|
2488
|
+
"svg",
|
|
2489
|
+
_(C({
|
|
2490
|
+
width: "24",
|
|
2491
|
+
height: "24",
|
|
2492
|
+
fill: "none",
|
|
2493
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2494
|
+
viewBox: "0 0 24 24"
|
|
2495
|
+
}, t), {
|
|
2496
|
+
children: [
|
|
2497
|
+
/* @__PURE__ */ n.jsx(
|
|
2498
|
+
"path",
|
|
2499
|
+
{
|
|
2500
|
+
d: "M3 3h6v6H3V3ZM2.8 14.8h6v6h-6v-6ZM20.8 8.8h-6v-6h6v6Z",
|
|
2501
|
+
strokeWidth: "1.5",
|
|
2502
|
+
strokeLinecap: "round",
|
|
2503
|
+
strokeLinejoin: "round",
|
|
2504
|
+
stroke: "currentColor"
|
|
2505
|
+
}
|
|
2506
|
+
),
|
|
2507
|
+
/* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 14.8 14.7)", fill: "currentColor" }),
|
|
2508
|
+
/* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 14.7)", fill: "currentColor" }),
|
|
2509
|
+
/* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 17.8 17.7)", fill: "currentColor" }),
|
|
2510
|
+
/* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 14.8 20.7)", fill: "currentColor" }),
|
|
2511
|
+
/* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
|
|
2512
|
+
]
|
|
2513
|
+
})
|
|
2514
|
+
), Ci = vi, xi = (t) => {
|
|
2515
|
+
var e = t, {
|
|
2516
|
+
variant: s,
|
|
2517
|
+
icon: r,
|
|
2518
|
+
isStandalone: a,
|
|
2519
|
+
title: c,
|
|
2520
|
+
description: l,
|
|
2521
|
+
className: u
|
|
2522
|
+
} = e, d = M(e, [
|
|
2523
|
+
"variant",
|
|
2524
|
+
"icon",
|
|
2525
|
+
"isStandalone",
|
|
2526
|
+
"title",
|
|
2527
|
+
"description",
|
|
2528
|
+
"className"
|
|
2529
|
+
]);
|
|
2530
|
+
return /* @__PURE__ */ n.jsx(
|
|
2531
|
+
"div",
|
|
2532
|
+
_(C({}, d), {
|
|
2533
|
+
className: N(
|
|
2534
|
+
"card__empty-state",
|
|
2535
|
+
s === "error" && "card__empty-state--error",
|
|
2536
|
+
a && "card__empty-state--standalone",
|
|
2537
|
+
u
|
|
2538
|
+
),
|
|
2539
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__wrapper", children: [
|
|
2540
|
+
/* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(hi, {}) : r }),
|
|
2541
|
+
/* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__content", children: [
|
|
2542
|
+
/* @__PURE__ */ n.jsx("p", { className: "card__empty-state__title", children: c }),
|
|
2543
|
+
/* @__PURE__ */ n.jsx("p", { className: "card__empty-state__description", children: l })
|
|
2544
|
+
] })
|
|
2545
|
+
] })
|
|
2546
|
+
})
|
|
2547
|
+
);
|
|
2548
|
+
}, bi = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__footer", children: t }), wi = (t) => {
|
|
2549
|
+
var e = t, {
|
|
2550
|
+
variant: s = "default",
|
|
2551
|
+
sticky: r,
|
|
2552
|
+
className: a,
|
|
2553
|
+
children: c
|
|
2554
|
+
} = e, l = M(e, [
|
|
2555
|
+
"variant",
|
|
2556
|
+
"sticky",
|
|
2557
|
+
"className",
|
|
2558
|
+
"children"
|
|
2559
|
+
]);
|
|
2560
|
+
return /* @__PURE__ */ n.jsx(
|
|
2561
|
+
"div",
|
|
2562
|
+
_(C({}, l), {
|
|
2563
|
+
className: N(
|
|
2564
|
+
"card__header",
|
|
2565
|
+
s && `card__header--${s}`,
|
|
2566
|
+
r && "card__header--sticky",
|
|
2567
|
+
a
|
|
2568
|
+
),
|
|
2569
|
+
children: c
|
|
2570
|
+
})
|
|
2571
|
+
);
|
|
2572
|
+
}, ji = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__image", children: t }), Si = ({ children: t, className: e }) => /* @__PURE__ */ n.jsx("div", { className: N("card__body__item", e), children: t }), _i = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__body__subtitle", children: t }), Pi = ({ icon: t, children: e }) => /* @__PURE__ */ n.jsxs("div", { className: "card__header__title", children: [
|
|
2573
|
+
t && /* @__PURE__ */ n.jsx("span", { className: "card__header__title__icon", children: t }),
|
|
2574
|
+
e
|
|
2575
|
+
] }), ks = i.forwardRef(
|
|
2576
|
+
(t, e) => {
|
|
2577
|
+
var s = t, { type: r, children: a, className: c, variant: l = "default", disabled: u = !1 } = s, d = M(s, ["type", "children", "className", "variant", "disabled"]);
|
|
2578
|
+
return i.createElement(
|
|
2579
|
+
r,
|
|
2580
|
+
C({
|
|
2581
|
+
className: N(
|
|
2582
|
+
"card",
|
|
2583
|
+
u && "card--disabled",
|
|
2584
|
+
l && `card--${l}`,
|
|
2585
|
+
c
|
|
2586
|
+
),
|
|
2587
|
+
ref: e
|
|
2588
|
+
}, d),
|
|
2589
|
+
a
|
|
2590
|
+
);
|
|
2591
|
+
}
|
|
2592
|
+
);
|
|
2593
|
+
ks.displayName = "Card";
|
|
2594
|
+
Object.assign(ks, {
|
|
2595
|
+
Header: wi,
|
|
2596
|
+
Action: qr,
|
|
2597
|
+
Title: Pi,
|
|
2598
|
+
Subtitle: _i,
|
|
2599
|
+
Body: $r,
|
|
2600
|
+
Image: ji,
|
|
2601
|
+
Item: Si,
|
|
2602
|
+
Footer: bi,
|
|
2603
|
+
EmptyState: xi
|
|
2604
|
+
});
|
|
2605
|
+
var Ei = (t) => {
|
|
2606
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2607
|
+
return /* @__PURE__ */ n.jsx("div", _(C({ className: N("checkbox__content", s) }, a), { children: r }));
|
|
2608
|
+
}, ki = (t) => {
|
|
2609
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2610
|
+
return /* @__PURE__ */ n.jsx("span", _(C({ className: N("checkbox__hint", s) }, a), { children: r }));
|
|
2611
|
+
}, As = i.createContext(void 0), Ai = ({ id: t, name: e, children: s }) => /* @__PURE__ */ n.jsx(As.Provider, { value: { id: t, name: e }, children: s }), Ni = () => {
|
|
2612
|
+
const t = i.useContext(As);
|
|
2613
|
+
if (!t)
|
|
2614
|
+
throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
|
|
2615
|
+
return t;
|
|
2616
|
+
}, Li = (t) => {
|
|
2617
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2618
|
+
const { id: c } = Ni();
|
|
2619
|
+
return /* @__PURE__ */ n.jsx("label", _(C({ htmlFor: c, className: N("checkbox__label", s) }, a), { children: r }));
|
|
2620
|
+
}, jt = (t) => {
|
|
2621
|
+
var e = t, {
|
|
2622
|
+
id: s,
|
|
2623
|
+
name: r,
|
|
2624
|
+
isPending: a = !1,
|
|
2625
|
+
variant: c = "neutral",
|
|
2626
|
+
hasError: l = !1,
|
|
2627
|
+
single: u,
|
|
2628
|
+
className: d,
|
|
2629
|
+
children: p
|
|
2630
|
+
} = e, f = M(e, [
|
|
2631
|
+
"id",
|
|
2632
|
+
"name",
|
|
2633
|
+
"isPending",
|
|
2634
|
+
"variant",
|
|
2635
|
+
"hasError",
|
|
2636
|
+
"single",
|
|
2637
|
+
"className",
|
|
2638
|
+
"children"
|
|
2639
|
+
]);
|
|
2640
|
+
const h = i.useRef(null);
|
|
2641
|
+
return i.useEffect(() => {
|
|
2642
|
+
h.current && (a ? h.current.indeterminate = !0 : h.current.indeterminate = !1);
|
|
2643
|
+
}, [a]), /* @__PURE__ */ n.jsxs(
|
|
2644
|
+
"div",
|
|
2645
|
+
{
|
|
2646
|
+
className: N("checkbox", c && `checkbox--${c}`, l && "checkbox--error"),
|
|
2647
|
+
children: [
|
|
2648
|
+
/* @__PURE__ */ n.jsx(
|
|
2649
|
+
"input",
|
|
2650
|
+
C({
|
|
2651
|
+
id: s,
|
|
2652
|
+
name: r,
|
|
2653
|
+
type: "checkbox",
|
|
2654
|
+
ref: h,
|
|
2655
|
+
className: N("checkbox__input", d),
|
|
2656
|
+
value: u ? "true" : ""
|
|
2657
|
+
}, f)
|
|
2658
|
+
),
|
|
2659
|
+
a ? /* @__PURE__ */ n.jsx(ui, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ n.jsx(Yr, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
|
|
2660
|
+
/* @__PURE__ */ n.jsx(Ai, { id: s, name: r, children: p })
|
|
2661
|
+
]
|
|
2662
|
+
}
|
|
2663
|
+
);
|
|
2664
|
+
};
|
|
2665
|
+
jt.Content = Ei;
|
|
2666
|
+
jt.Label = Li;
|
|
2667
|
+
jt.Hint = ki;
|
|
2668
|
+
jt.Error = Error;
|
|
2669
|
+
var Mi = (t) => {
|
|
2670
|
+
var e = t, { type: s = "div", className: r, children: a } = e, c = M(e, ["type", "className", "children"]);
|
|
2671
|
+
return i.createElement(s, C({ className: N("dialog__body", r) }, c), a);
|
|
2672
|
+
}, xe = () => document.body.style.removeProperty("overflow"), He = (t) => t.preventDefault(), Fi = 'a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])', Ri = (t) => {
|
|
2673
|
+
var e = t, { className: s, children: r, shouldAnimate: a = !0 } = e, c = M(e, ["className", "children", "shouldAnimate"]);
|
|
2674
|
+
const { ref: l, defaultOpen: u, isModal: d, onClose: p } = Xt();
|
|
2675
|
+
return i.useEffect(() => {
|
|
2676
|
+
const f = l == null ? void 0 : l.current;
|
|
2677
|
+
if (f != null && f.open) {
|
|
2678
|
+
const h = f.querySelectorAll(Fi), y = h[0], g = h[h.length - 1], P = (S) => {
|
|
2679
|
+
if (!(S.key === "Tab"))
|
|
2680
|
+
return;
|
|
2681
|
+
S.shiftKey ? document.activeElement === y && (g.focus(), S.preventDefault()) : document.activeElement === g && (y.focus(), S.preventDefault());
|
|
2682
|
+
};
|
|
2683
|
+
return document.body.style.overflow = "hidden", f.addEventListener("keydown", P), window.addEventListener("popstate", () => xe()), () => {
|
|
2684
|
+
f.removeEventListener("keydown", P), window.removeEventListener("popstate", () => xe());
|
|
2685
|
+
};
|
|
2686
|
+
}
|
|
2687
|
+
}, [l]), i.useEffect(() => {
|
|
2688
|
+
const f = l == null ? void 0 : l.current;
|
|
2689
|
+
if (!f)
|
|
2690
|
+
return;
|
|
2691
|
+
if (u && (f.removeAttribute("open"), f.showModal(), f.focus()), d)
|
|
2692
|
+
return f.addEventListener("cancel", He), () => f.removeEventListener("cancel", He);
|
|
2693
|
+
const h = ({ clientX: y, clientY: g }) => {
|
|
2694
|
+
const { top: P, right: S, bottom: E, left: x } = f.getBoundingClientRect(), b = 0 < g && 0 < y, w = P < g && g < E, F = x < y && y < S;
|
|
2695
|
+
b && !(w && F) && p();
|
|
2696
|
+
};
|
|
2697
|
+
return f.addEventListener("cancel", p), f.addEventListener("mousedown", h), () => {
|
|
2698
|
+
f.removeEventListener("cancel", p), f.removeEventListener("mousedown", h);
|
|
2699
|
+
};
|
|
2700
|
+
}, [l, d, p, u]), /* @__PURE__ */ n.jsx(
|
|
2701
|
+
"dialog",
|
|
2702
|
+
_(C({
|
|
2703
|
+
ref: l,
|
|
2704
|
+
open: u,
|
|
2705
|
+
"aria-modal": !!d,
|
|
2706
|
+
"aria-labelledby": "dialogTitle",
|
|
2707
|
+
className: N("dialog", a && "dialog--animated", s)
|
|
2708
|
+
}, c), {
|
|
2709
|
+
children: r
|
|
2710
|
+
})
|
|
2711
|
+
);
|
|
2712
|
+
}, Ns = i.createContext(void 0), Oi = ({ defaultOpen: t, onClose: e, isModal: s, children: r }) => {
|
|
2713
|
+
const a = i.useRef(null), c = i.useRef(e), l = i.useCallback(() => {
|
|
2714
|
+
var u;
|
|
2715
|
+
xe(), (u = a.current) == null || u.close(), c.current && (c == null || c.current());
|
|
2716
|
+
}, [a]);
|
|
2717
|
+
return /* @__PURE__ */ n.jsx(Ns.Provider, { value: { ref: a, defaultOpen: t, isModal: s, onClose: l }, children: r });
|
|
2718
|
+
}, Xt = () => {
|
|
2719
|
+
const t = i.useContext(Ns);
|
|
2720
|
+
if (!t)
|
|
2721
|
+
throw new Error("Dialog compound components can not be rendered outside of Dialog");
|
|
2722
|
+
return t;
|
|
2723
|
+
}, zi = (t) => {
|
|
2724
|
+
var e = t, { children: s } = e, r = M(e, ["children"]);
|
|
2725
|
+
const { onClose: a } = Xt();
|
|
2726
|
+
return /* @__PURE__ */ n.jsx(Kt, _(C({ onClick: a }, r), { children: s }));
|
|
2727
|
+
}, Ls = i.forwardRef((t, e) => {
|
|
2728
|
+
var s = t, { className: r } = s, a = M(s, ["className"]);
|
|
2729
|
+
const { onClose: c } = Xt();
|
|
2730
|
+
return /* @__PURE__ */ n.jsx(
|
|
2731
|
+
Kt,
|
|
2732
|
+
C({
|
|
2733
|
+
type: "submit",
|
|
2734
|
+
ref: e,
|
|
2735
|
+
formMethod: "dialog",
|
|
2736
|
+
onClick: c,
|
|
2737
|
+
iconLeft: /* @__PURE__ */ n.jsx(Ir, {}),
|
|
2738
|
+
variant: "icon--secondary",
|
|
2739
|
+
className: N("dialog__close button--icon", r)
|
|
2740
|
+
}, a)
|
|
2741
|
+
);
|
|
2742
|
+
});
|
|
2743
|
+
Ls.displayName = "Close";
|
|
2744
|
+
var Di = (t) => {
|
|
2745
|
+
var e = t, { className: s, children: r } = e, a = M(e, ["className", "children"]);
|
|
2746
|
+
return /* @__PURE__ */ n.jsx("div", _(C({ className: N("dialog__footer", s) }, a), { children: r }));
|
|
2747
|
+
}, Ti = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "dialog__header", children: t }), Ui = (t) => {
|
|
2748
|
+
var e = t, { icon: s, children: r, className: a } = e, c = M(e, ["icon", "children", "className"]);
|
|
2749
|
+
const { ref: l } = Xt(), u = i.useRef(null);
|
|
2750
|
+
return i.useEffect(() => {
|
|
2751
|
+
l != null && l.current && l.current.focus();
|
|
2752
|
+
}, [l]), /* @__PURE__ */ n.jsxs(
|
|
2753
|
+
"div",
|
|
2754
|
+
_(C({
|
|
2755
|
+
tabIndex: 0,
|
|
2756
|
+
ref: u,
|
|
2757
|
+
id: "dialogTitle",
|
|
2758
|
+
className: N("dialog__header__title", a)
|
|
2759
|
+
}, c), {
|
|
2760
|
+
children: [
|
|
2761
|
+
s && /* @__PURE__ */ n.jsx("span", { className: "dialog__header__icon", children: s }),
|
|
2762
|
+
r
|
|
2763
|
+
]
|
|
2764
|
+
})
|
|
2765
|
+
);
|
|
2766
|
+
}, Qi = (t) => {
|
|
2767
|
+
var e = t, { children: s } = e, r = M(e, ["children"]);
|
|
2768
|
+
const { ref: a } = Xt();
|
|
2769
|
+
return /* @__PURE__ */ n.jsx(Kt, _(C({ onClick: () => {
|
|
2770
|
+
var c;
|
|
2771
|
+
return (c = a == null ? void 0 : a.current) == null ? void 0 : c.showModal();
|
|
2772
|
+
} }, r), { children: s }));
|
|
2773
|
+
}, K = ({ defaultOpen: t, isModal: e, children: s, onClose: r }) => /* @__PURE__ */ n.jsx(Oi, { defaultOpen: !!t, isModal: e, onClose: r, children: s });
|
|
2774
|
+
K.Trigger = Qi;
|
|
2775
|
+
K.Root = Ri;
|
|
2776
|
+
K.Title = Ui;
|
|
2777
|
+
K.Header = Ti;
|
|
2778
|
+
K.Body = Mi;
|
|
2779
|
+
K.Footer = Di;
|
|
2780
|
+
K.Button = zi;
|
|
2781
|
+
K.Close = Ls;
|
|
2782
|
+
var Ms = i.createContext(void 0), Hi = ({
|
|
2783
|
+
id: t,
|
|
2784
|
+
position: e,
|
|
2785
|
+
isOpen: s,
|
|
2786
|
+
setIsOpen: r,
|
|
2787
|
+
activeItemIndex: a,
|
|
2788
|
+
setActiveItemIndex: c,
|
|
2789
|
+
clearActiveItemIndex: l,
|
|
2790
|
+
triggerRef: u,
|
|
2791
|
+
contentRef: d,
|
|
2792
|
+
children: p
|
|
2793
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
2794
|
+
Ms.Provider,
|
|
2795
|
+
{
|
|
2796
|
+
value: {
|
|
2797
|
+
id: t,
|
|
2798
|
+
position: e,
|
|
2799
|
+
isOpen: s,
|
|
2800
|
+
setIsOpen: r,
|
|
2801
|
+
activeItemIndex: a,
|
|
2802
|
+
setActiveItemIndex: c,
|
|
2803
|
+
clearActiveItemIndex: l,
|
|
2804
|
+
triggerRef: u,
|
|
2805
|
+
contentRef: d
|
|
2806
|
+
},
|
|
2807
|
+
children: p
|
|
2808
|
+
}
|
|
2809
|
+
), Fs = () => {
|
|
2810
|
+
const t = i.useContext(Ms);
|
|
2811
|
+
if (t === void 0)
|
|
2812
|
+
throw new Error("useMenu must be used within a MenuProvider");
|
|
2813
|
+
return t;
|
|
2814
|
+
}, Ki = ({ as: t, children: e }) => {
|
|
2815
|
+
const {
|
|
2816
|
+
id: s,
|
|
2817
|
+
position: r,
|
|
2818
|
+
isOpen: a,
|
|
2819
|
+
setIsOpen: c,
|
|
2820
|
+
activeItemIndex: l,
|
|
2821
|
+
setActiveItemIndex: u,
|
|
2822
|
+
clearActiveItemIndex: d,
|
|
2823
|
+
triggerRef: p,
|
|
2824
|
+
contentRef: f
|
|
2825
|
+
} = Fs(), h = (y) => {
|
|
2826
|
+
var g;
|
|
2827
|
+
if (!a)
|
|
2828
|
+
return;
|
|
2829
|
+
if (y.key === "Escape")
|
|
2830
|
+
return d(), c(!1), (g = p.current) == null ? void 0 : g.focus();
|
|
2831
|
+
const P = y.shiftKey, S = Os(f.current).length - 1;
|
|
2832
|
+
switch (y.key) {
|
|
2833
|
+
case "Tab": {
|
|
2834
|
+
if (P && l !== 0)
|
|
2835
|
+
return y.preventDefault(), u(l ? Math.max(0, l - 1) : 0);
|
|
2836
|
+
if (!P && l !== S) {
|
|
2837
|
+
y.preventDefault();
|
|
2838
|
+
const E = l !== void 0 ? l + 1 : 0;
|
|
2839
|
+
return u(Math.min(S, E));
|
|
2840
|
+
}
|
|
2841
|
+
break;
|
|
2842
|
+
}
|
|
2843
|
+
case "ArrowUp":
|
|
2844
|
+
case "ArrowLeft":
|
|
2845
|
+
return y.preventDefault(), u(l ? Math.max(0, l - 1) : 0);
|
|
2846
|
+
case "ArrowDown":
|
|
2847
|
+
case "ArrowRight": {
|
|
2848
|
+
y.preventDefault();
|
|
2849
|
+
const E = l !== void 0 ? l + 1 : 0;
|
|
2850
|
+
return u(Math.min(S, E));
|
|
2851
|
+
}
|
|
2852
|
+
case "Home":
|
|
2853
|
+
return y.preventDefault(), u(0);
|
|
2854
|
+
case "End":
|
|
2855
|
+
return y.preventDefault(), u(S);
|
|
2856
|
+
}
|
|
2857
|
+
};
|
|
2858
|
+
return t ? i.createElement(
|
|
2859
|
+
t,
|
|
2860
|
+
{
|
|
2861
|
+
id: `${s}-content`,
|
|
2862
|
+
ref: f,
|
|
2863
|
+
className: N("menu__list", `menu__list--${r}`, a && "menu__list--active"),
|
|
2864
|
+
onKeyDown: h
|
|
2865
|
+
},
|
|
2866
|
+
e
|
|
2867
|
+
) : (
|
|
2868
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
2869
|
+
/* @__PURE__ */ n.jsx(
|
|
2870
|
+
"ul",
|
|
2871
|
+
{
|
|
2872
|
+
id: `${s}-content`,
|
|
2873
|
+
ref: f,
|
|
2874
|
+
className: N("menu__list", `menu__list--${r}`, a && "menu__list--active"),
|
|
2875
|
+
onKeyDown: h,
|
|
2876
|
+
children: e
|
|
2877
|
+
}
|
|
2878
|
+
)
|
|
2879
|
+
);
|
|
2880
|
+
}, Wi = (t) => {
|
|
2881
|
+
var e = t, { children: s, className: r } = e, a = M(e, ["children", "className"]);
|
|
2882
|
+
return /* @__PURE__ */ n.jsx("li", _(C({}, a), { className: N("menu__list-item", r), children: s }));
|
|
2883
|
+
}, Rs = ({ children: t, className: e }) => {
|
|
2884
|
+
const { id: s, isOpen: r, setIsOpen: a, clearActiveItemIndex: c, setActiveItemIndex: l, triggerRef: u } = Fs(), d = () => {
|
|
2885
|
+
c(), a((f) => !f), r || l(0);
|
|
2886
|
+
}, p = (f) => {
|
|
2887
|
+
if (r) {
|
|
2888
|
+
if (f.key === "Escape")
|
|
2889
|
+
return c(), a(!1);
|
|
2890
|
+
f.key === "ArrowDown" && (f.preventDefault(), l(0));
|
|
2891
|
+
}
|
|
2892
|
+
};
|
|
2893
|
+
return i.cloneElement(t, {
|
|
2894
|
+
id: `${s}-trigger`,
|
|
2895
|
+
ref: u,
|
|
2896
|
+
className: N("menu__trigger", e),
|
|
2897
|
+
onClick: d,
|
|
2898
|
+
onKeyDown: p,
|
|
2899
|
+
"aria-expanded": r,
|
|
2900
|
+
"aria-controls": `${s}-content`
|
|
2901
|
+
});
|
|
2902
|
+
};
|
|
2903
|
+
Rs.displayName = "Trigger";
|
|
2904
|
+
var Os = (t) => t ? t.tagName === "UL" ? t.children : Array.from(t.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], G = (t) => {
|
|
2905
|
+
var e = t, { type: s, id: r, position: a = "bottom-end", children: c, className: l } = e, u = M(e, ["type", "id", "position", "children", "className"]);
|
|
2906
|
+
const d = i.useRef(null), p = i.useRef(null), f = i.useRef(null), [h, y] = i.useState(!1), [g, P] = i.useState(), [S, E] = i.useState(g);
|
|
2907
|
+
g !== S && g !== void 0 && f.current && (Os(f.current)[g].firstChild.focus(), E(g));
|
|
2908
|
+
const x = () => {
|
|
2909
|
+
P(void 0), E(void 0);
|
|
2910
|
+
}, b = (w) => {
|
|
2911
|
+
var F;
|
|
2912
|
+
((F = d.current) == null ? void 0 : F.contains(w.relatedTarget)) || (x(), y(!1));
|
|
2913
|
+
};
|
|
2914
|
+
return /* @__PURE__ */ n.jsx(
|
|
2915
|
+
Hi,
|
|
2916
|
+
{
|
|
2917
|
+
id: r,
|
|
2918
|
+
position: a,
|
|
2919
|
+
isOpen: h,
|
|
2920
|
+
setIsOpen: y,
|
|
2921
|
+
activeItemIndex: g,
|
|
2922
|
+
setActiveItemIndex: P,
|
|
2923
|
+
clearActiveItemIndex: x,
|
|
2924
|
+
triggerRef: p,
|
|
2925
|
+
contentRef: f,
|
|
2926
|
+
children: i.createElement(
|
|
2927
|
+
s,
|
|
2928
|
+
_(C({}, u), {
|
|
2929
|
+
id: r,
|
|
2930
|
+
ref: d,
|
|
2931
|
+
className: `menu ${l || ""}`,
|
|
2932
|
+
onBlur: b
|
|
2933
|
+
}),
|
|
2934
|
+
c
|
|
2935
|
+
)
|
|
2936
|
+
}
|
|
2937
|
+
);
|
|
2938
|
+
};
|
|
2939
|
+
G.Trigger = Rs;
|
|
2940
|
+
G.Content = Ki;
|
|
2941
|
+
G.Item = Wi;
|
|
2942
|
+
i.createContext(void 0);
|
|
2943
|
+
var Gi = (/* @__PURE__ */ new Map()).set("BE", "32").set("FR", "33").set("NL", "31").set("LU", "352").set("DE", "49").set("CA", "1").set("PR", "1").set("TC", "1").set("US", "1").set("BS", "1242").set("BB", "1246").set("AI", "1264").set("AG", "1268").set("KY", "1345").set("BM", "1441").set("GD", "1473").set("MS", "1664").set("GU", "1671").set("LC", "1758").set("DM", "1767").set("VC", "1784").set("DO", "1809").set("TT", "1868").set("KN", "1869").set("JM", "1876").set("EG", "20").set("SS", "211").set("MA", "212").set("DZ", "213").set("TN", "216").set("LY", "218").set("GM", "220").set("SN", "221").set("MR", "222").set("ML", "223").set("GN", "224").set("CI", "225").set("BF", "226").set("NE", "227").set("TG", "228").set("BJ", "229").set("MU", "230").set("LR", "231").set("SL", "232").set("GH", "233").set("NG", "234").set("TD", "235").set("CF", "236").set("CM", "237").set("CV", "238").set("ST", "239").set("GQ", "240").set("GA", "241").set("CG", "242").set("CD", "243").set("AO", "244").set("GW", "245").set("SC", "248").set("SD", "249").set("RW", "250").set("ET", "251").set("SO", "252").set("DJ", "253").set("KE", "254").set("TZ", "255").set("UG", "256").set("BI", "257").set("MZ", "258").set("ZM", "260").set("MG", "261").set("RE", "262").set("ZW", "263").set("NA", "264").set("MW", "265").set("LS", "266").set("BW", "267").set("SZ", "268").set("KM", "269").set("ZA", "27").set("VG", "284").set("ER", "291").set("AW", "297").set("FO", "298").set("GL", "299").set("GR", "30").set("ES", "34").set("GI", "350").set("PT", "351").set("IE", "353").set("IS", "354").set("AL", "355").set("MT", "356").set("CY", "357").set("FI", "358").set("BG", "359").set("HU", "36").set("LT", "370").set("LV", "371").set("EE", "372").set("MD", "373").set("AM", "374").set("BY", "375").set("AD", "376").set("MC", "377").set("SM", "378").set("UA", "380").set("RS", "381").set("ME", "382").set("HR", "385").set("SI", "386").set("BA", "387").set("MK", "389").set("IT", "39").set("RO", "40").set("CH", "41").set("CZ", "420").set("SK", "421").set("LI", "423").set("AT", "43").set("GB", "44").set("DK", "45").set("SE", "46").set("NO", "47").set("PL", "48").set("FK", "500").set("BZ", "501").set("GT", "502").set("SV", "503").set("HN", "504").set("NI", "505").set("CR", "506").set("PA", "507").set("PM", "508").set("HT", "509").set("PE", "51").set("MX", "52").set("CU", "53").set("AR", "54").set("BR", "55").set("CL", "56").set("CO", "57").set("VE", "58").set("GP", "590").set("BO", "591").set("GY", "592").set("EC", "593").set("FG", "594").set("PY", "595").set("MQ", "596").set("SR", "597").set("UY", "598").set("CW", "599").set("AN", "599").set("MY", "60").set("AU", "61").set("ID", "62").set("PH", "63").set("NZ", "64").set("SG", "65").set("TH", "66").set("TP", "670").set("BN", "673").set("PG", "675").set("TO", "676").set("SB", "677").set("VU", "678").set("FJ", "679").set("PW", "680").set("CK", "682").set("NU", "683").set("AS", "684").set("WS", "685").set("KI", "686").set("NC", "687").set("TV", "688").set("PF", "689").set("FM", "691").set("KZ", "7").set("RU", "7").set("JP", "81").set("KR", "82").set("VN", "84").set("KP", "850").set("HK", "852").set("MO", "853").set("KH", "855").set("LA", "856").set("CN", "86").set("BD", "880").set("TW", "886").set("TR", "90").set("IN", "91").set("PK", "92").set("AF", "93").set("LK", "94").set("MM", "95").set("MV", "960").set("LB", "961").set("JO", "962").set("SY", "963").set("IQ", "964").set("KW", "965").set("SA", "966").set("YE", "967").set("OM", "968").set("PS", "970").set("AE", "971").set("IL", "972").set("BH", "973").set("QA", "974").set("BT", "975").set("MN", "976").set("NP", "977").set("IR", "98").set("TK", "992").set("TM", "993").set("AZ", "994").set("GE", "995").set("KG", "996").set("UZ", "998");
|
|
2944
|
+
[...new Set(Gi.values())].map((t) => ({
|
|
2945
|
+
label: `+${t}`,
|
|
2946
|
+
value: t
|
|
2947
|
+
}));
|
|
2948
|
+
i.createContext(void 0);
|
|
2949
|
+
i.createContext(void 0);
|
|
2950
|
+
var re = /* @__PURE__ */ ((t) => (t[t.categoriesVegetables = 0] = "categoriesVegetables", t[t.categoriesMeat = 1] = "categoriesMeat", t[t.categoriesFish = 2] = "categoriesFish", t[t.categoriesDairy = 3] = "categoriesDairy", t[t.categoriesBreakfast = 4] = "categoriesBreakfast", t[t.categoriesSnacks = 5] = "categoriesSnacks", t[t.categoriesCandy = 6] = "categoriesCandy", t[t.categoriesNonFood = 7] = "categoriesNonFood", t[t.categoriesDryFood = 8] = "categoriesDryFood", t[t.categoriesTins = 9] = "categoriesTins", t[t.categoriesGrid = 10] = "categoriesGrid", t[t.categoriesSoda = 11] = "categoriesSoda", t[t.categoriesBakery = 12] = "categoriesBakery", t[t.categoriesWine = 13] = "categoriesWine", t[t.categoriesBaby = 14] = "categoriesBaby", t[t.categoriesDiet = 15] = "categoriesDiet", t[t.categoriesHygiene = 16] = "categoriesHygiene", t[t.categoriesCleaning = 17] = "categoriesCleaning", t[t.categoriesPets = 18] = "categoriesPets", t[t.categoriesFreezer = 19] = "categoriesFreezer", t[t.categoriesBbq = 20] = "categoriesBbq", t[t.categoriesMealbox = 21] = "categoriesMealbox", t[t.categoriesBrik = 22] = "categoriesBrik", t[t.categoriesGranen = 23] = "categoriesGranen", t[t.categoriesConserve = 24] = "categoriesConserve", t[t.categoriesHome = 25] = "categoriesHome", t[t.categoriesEaster = 26] = "categoriesEaster", t[t.categoriesOnlinePromo = 27] = "categoriesOnlinePromo", t[t.categoriesSportFood = 28] = "categoriesSportFood", t[t.categoriesClothing = 29] = "categoriesClothing", t[t.categoriesEnergy = 30] = "categoriesEnergy", t[t.categoriesDeskAndTravel = 31] = "categoriesDeskAndTravel", t[t.categoriesCigarette = 32] = "categoriesCigarette", t[t.categoriesFood = 33] = "categoriesFood", t[t.categoriesChild = 34] = "categoriesChild", t[t.categoriesPuzzle = 35] = "categoriesPuzzle", t[t.categoriesToys = 36] = "categoriesToys", t[t.categoriesCar = 37] = "categoriesCar", t[t.categoriesPlaceholder = 38] = "categoriesPlaceholder", t[t.categoriesFuel = 39] = "categoriesFuel", t[t.categoriesCarAndBike = 40] = "categoriesCarAndBike", t[t.categoriesToyAndHobby = 41] = "categoriesToyAndHobby", t[t.categoriesMultimedia = 42] = "categoriesMultimedia", t[t.categoriesParty = 43] = "categoriesParty", t[t.toolsPay = 44] = "toolsPay", t[t.toolsReceipt = 45] = "toolsReceipt", t[t.toolsFuel = 46] = "toolsFuel", t[t.toolsStoreLocator = 47] = "toolsStoreLocator", t[t.toolsStats = 48] = "toolsStats", t[t.toolsShowXtraOld = 49] = "toolsShowXtraOld", t[t.toolsShowXtraNew = 50] = "toolsShowXtraNew", t[t.toolsScan2 = 51] = "toolsScan2", t[t.toolsRecipes2 = 52] = "toolsRecipes2", t[t.toolsWarranty = 53] = "toolsWarranty", t[t.toolsCoupons = 54] = "toolsCoupons", t[t.toolsFavoriteInactive = 55] = "toolsFavoriteInactive", t[t.toolsFavoriteActive = 56] = "toolsFavoriteActive", t[t.toolsAssortment = 57] = "toolsAssortment", t[t.toolsPromo = 58] = "toolsPromo", t[t.fuelCng = 59] = "fuelCng", t[t.fuelE5 = 60] = "fuelE5", t[t.fuelAdblue = 61] = "fuelAdblue", t[t.fuelB7 = 62] = "fuelB7", t[t.fuelH2 = 63] = "fuelH2", t[t.fuelE10 = 64] = "fuelE10", t[t.fuelFreeTireInflation = 65] = "fuelFreeTireInflation", t[t.functionalClose = 66] = "functionalClose", t[t.functionalBack = 67] = "functionalBack", t[t.functionalSearch = 68] = "functionalSearch", t[t.functionalEdit = 69] = "functionalEdit", t[t.functionalShare = 70] = "functionalShare", t[t.functionalLocation = 71] = "functionalLocation", t[t.functionalTrash = 72] = "functionalTrash", t[t.functionalCamera = 73] = "functionalCamera", t[t.functionalPhone = 74] = "functionalPhone", t[t.functionalPushNotifications = 75] = "functionalPushNotifications", t[t.functionalMail = 76] = "functionalMail", t[t.functionalGift = 77] = "functionalGift", t[t.functionalPresent = 78] = "functionalPresent", t[t.functionalLoading = 79] = "functionalLoading", t[t.functionalChevronRight = 80] = "functionalChevronRight", t[t.functionalCheck = 81] = "functionalCheck", t[t.functionalChevronDown = 82] = "functionalChevronDown", t[t.functionalChevronUp = 83] = "functionalChevronUp", t[t.functionalPlus = 84] = "functionalPlus", t[t.functionalReset = 85] = "functionalReset", t[t.functionalDownload = 86] = "functionalDownload", t[t.functionalExport = 87] = "functionalExport", t[t.functionalCustomerService = 88] = "functionalCustomerService", t[t.functionalTruck = 89] = "functionalTruck", t[t.functionalBox = 90] = "functionalBox", t[t.functionalEllipsis = 91] = "functionalEllipsis", t[t.functionalLocationHome = 92] = "functionalLocationHome", t[t.functionalLocationPickup = 93] = "functionalLocationPickup", t[t.functionalAccount = 94] = "functionalAccount", t[t.functionalPrivacy = 95] = "functionalPrivacy", t[t.functionalSettings = 96] = "functionalSettings", t[t.functionalUserInfo = 97] = "functionalUserInfo", t[t.functionalPinOutlines = 98] = "functionalPinOutlines", t[t.functionalCalendar = 99] = "functionalCalendar", t[t.functionalMinus = 100] = "functionalMinus", t[t.functionalLifestyle = 101] = "functionalLifestyle", t[t.functionalSms = 102] = "functionalSms", t[t.functionalSwitch = 103] = "functionalSwitch", t[t.functionalSorting = 104] = "functionalSorting", t[t.functionalWarningCircle = 105] = "functionalWarningCircle", t[t.functionalQuestionCircle = 106] = "functionalQuestionCircle", t[t.functionalErrorCircle = 107] = "functionalErrorCircle", t[t.functionalSuccessCircle = 108] = "functionalSuccessCircle", t[t.functionalMessage = 109] = "functionalMessage", t[t.functionalExternalLink = 110] = "functionalExternalLink", t[t.functionalAddToList = 111] = "functionalAddToList", t[t.functionalShoppingcart = 112] = "functionalShoppingcart", t[t.functionalFilter = 113] = "functionalFilter", t[t.functionalLocate = 114] = "functionalLocate", t[t.functionalBarcode = 115] = "functionalBarcode", t[t.functionalClock = 116] = "functionalClock", t[t.functionalHistory = 117] = "functionalHistory", t[t.functionalShops = 118] = "functionalShops", t[t.functionalAddUser = 119] = "functionalAddUser", t[t.functionalOther = 120] = "functionalOther", t[t.functionalInAppNotifications = 121] = "functionalInAppNotifications", t[t.functionalExit = 122] = "functionalExit", t[t.functionalShared = 123] = "functionalShared", t[t.functionalThumbsup = 124] = "functionalThumbsup", t[t.functionalDiscount = 125] = "functionalDiscount", t[t.functionalPercentage = 126] = "functionalPercentage", t[t.functionalList = 127] = "functionalList", t[t.functionalMapLocation = 128] = "functionalMapLocation", t[t.functionalNoConnection = 129] = "functionalNoConnection", t[t.functionalSwap = 130] = "functionalSwap", t[t.functionalPiece = 131] = "functionalPiece", t[t.functionalWeight = 132] = "functionalWeight", t[t.functionalPack = 133] = "functionalPack", t[t.functionalCommunications = 134] = "functionalCommunications", t[t.functionalDeliveryAddresses = 135] = "functionalDeliveryAddresses", t[t["functional18+"] = 136] = "functional18+", t[t.functionalReadtime = 137] = "functionalReadtime", t[t.functionalCopy = 138] = "functionalCopy", t[t.functionalMessageField = 139] = "functionalMessageField", t[t.functionalNext = 140] = "functionalNext", t[t.functionalSave = 141] = "functionalSave", t[t.functionalLogin = 142] = "functionalLogin", t[t.functionalLogout = 143] = "functionalLogout", t[t.functionalWebsite = 144] = "functionalWebsite", t[t.functionalMenu = 145] = "functionalMenu", t[t.functionalRegister = 146] = "functionalRegister", t[t.functionalNews = 147] = "functionalNews", t[t.functionalTimer = 148] = "functionalTimer", t[t.functionalEyeShow = 149] = "functionalEyeShow", t[t.functionalMobilePay = 150] = "functionalMobilePay", t[t.functionalConnectionCable = 151] = "functionalConnectionCable", t[t.functionalDryCleaning = 152] = "functionalDryCleaning", t[t.functionalKiosk = 153] = "functionalKiosk", t[t.functionalConnectedDevice = 154] = "functionalConnectedDevice", t[t.functionalCookies = 155] = "functionalCookies", t[t.functionalViewFile = 156] = "functionalViewFile", t[t.functionalLastAdded = 157] = "functionalLastAdded", t[t.functionalFirstAdded = 158] = "functionalFirstAdded", t[t.functionalStoreLayout = 159] = "functionalStoreLayout", t[t.functionalBlock = 160] = "functionalBlock", t[t.functionalChecklist = 161] = "functionalChecklist", t[t.functionalCartCheckout = 162] = "functionalCartCheckout", t[t.functionalCartEdit = 163] = "functionalCartEdit", t[t.functionalEyeHidden = 164] = "functionalEyeHidden", t[t.functionalWarningCircleFilled = 165] = "functionalWarningCircleFilled", t[t.functionalQuestionCircleFilled = 166] = "functionalQuestionCircleFilled", t[t.functionalErrorCircleFilled = 167] = "functionalErrorCircleFilled", t[t.functionalSuccessCircleFilled = 168] = "functionalSuccessCircleFilled", t[t.functionalPlusCircle = 169] = "functionalPlusCircle", t[t.functionalSpinner = 170] = "functionalSpinner", t[t.functionalEcoEarth = 171] = "functionalEcoEarth", t[t.functionalAlphaBeta = 172] = "functionalAlphaBeta", t[t.functionalEuro = 173] = "functionalEuro", t[t.functionalNumber = 174] = "functionalNumber", t[t.functionalIdea = 175] = "functionalIdea", t[t.functionalMultifactorAuthenticator = 176] = "functionalMultifactorAuthenticator", t[t.functionalPassword = 177] = "functionalPassword", t[t.functionalDiscountCode = 178] = "functionalDiscountCode", t))(re || {});
|
|
2951
|
+
const Vi = {
|
|
2952
|
+
categoriesVegetables: i.lazy(
|
|
2953
|
+
() => import("./Categoriesvegetables-DaKG4WyY.js")
|
|
2954
|
+
),
|
|
2955
|
+
categoriesMeat: i.lazy(() => import("./Categoriesmeat-DDETfqmu.js")),
|
|
2956
|
+
categoriesFish: i.lazy(() => import("./Categoriesfish-B1P-U203.js")),
|
|
2957
|
+
categoriesDairy: i.lazy(() => import("./Categoriesdairy-zA59DtKo.js")),
|
|
2958
|
+
categoriesBreakfast: i.lazy(
|
|
2959
|
+
() => import("./Categoriesbreakfast-Bll-Mi7n.js")
|
|
2960
|
+
),
|
|
2961
|
+
categoriesSnacks: i.lazy(
|
|
2962
|
+
() => import("./Categoriessnacks-9KlAVhfs.js")
|
|
2963
|
+
),
|
|
2964
|
+
categoriesCandy: i.lazy(() => import("./Categoriescandy-s7ExjVVD.js")),
|
|
2965
|
+
categoriesNonFood: i.lazy(
|
|
2966
|
+
() => import("./Categoriesnonfood-B0tE2q3x.js")
|
|
2967
|
+
),
|
|
2968
|
+
categoriesDryFood: i.lazy(
|
|
2969
|
+
() => import("./Categoriesdryfood-Cgp3gROJ.js")
|
|
2970
|
+
),
|
|
2971
|
+
categoriesTins: i.lazy(() => import("./Categoriestins-TYY6cP6b.js")),
|
|
2972
|
+
categoriesGrid: i.lazy(() => import("./Categoriesgrid-C0W01uYu.js")),
|
|
2973
|
+
categoriesSoda: i.lazy(() => import("./Categoriessoda--eBylTkI.js")),
|
|
2974
|
+
categoriesBakery: i.lazy(
|
|
2975
|
+
() => import("./Categoriesbakery-DlKcDPmz.js")
|
|
2976
|
+
),
|
|
2977
|
+
categoriesWine: i.lazy(() => import("./Categorieswine-CM7b6_wY.js")),
|
|
2978
|
+
categoriesBaby: i.lazy(() => import("./Categoriesbaby-DOC_ZuHD.js")),
|
|
2979
|
+
categoriesDiet: i.lazy(() => import("./Categoriesdiet-CVom5yc8.js")),
|
|
2980
|
+
categoriesHygiene: i.lazy(
|
|
2981
|
+
() => import("./Categorieshygiene-ZpQoIN9G.js")
|
|
2982
|
+
),
|
|
2983
|
+
categoriesCleaning: i.lazy(
|
|
2984
|
+
() => import("./Categoriescleaning-Cgk6SII3.js")
|
|
2985
|
+
),
|
|
2986
|
+
categoriesPets: i.lazy(() => import("./Categoriespets-D44FbzNo.js")),
|
|
2987
|
+
categoriesFreezer: i.lazy(
|
|
2988
|
+
() => import("./Categoriesfreezer-wGYA4amT.js")
|
|
2989
|
+
),
|
|
2990
|
+
categoriesBbq: i.lazy(() => import("./Categoriesbbq-Q-bgGly5.js")),
|
|
2991
|
+
categoriesMealbox: i.lazy(
|
|
2992
|
+
() => import("./Categoriesmealbox-BD9Kn9-E.js")
|
|
2993
|
+
),
|
|
2994
|
+
categoriesBrik: i.lazy(() => import("./Categoriesbrik-BqUGdrqy.js")),
|
|
2995
|
+
categoriesGranen: i.lazy(
|
|
2996
|
+
() => import("./Categoriesgranen-CEJ4rlK1.js")
|
|
2997
|
+
),
|
|
2998
|
+
categoriesConserve: i.lazy(
|
|
2999
|
+
() => import("./Categoriesconserve-DAVg_yOJ.js")
|
|
3000
|
+
),
|
|
3001
|
+
categoriesHome: i.lazy(() => import("./Categorieshome-C6vMWaOG.js")),
|
|
3002
|
+
categoriesEaster: i.lazy(
|
|
3003
|
+
() => import("./Categorieseaster-C_hvclRo.js")
|
|
3004
|
+
),
|
|
3005
|
+
categoriesOnlinePromo: i.lazy(
|
|
3006
|
+
() => import("./Categoriesonlinepromo-CGrJ1dFa.js")
|
|
3007
|
+
),
|
|
3008
|
+
categoriesSportFood: i.lazy(
|
|
3009
|
+
() => import("./Categoriessportfood-B5to0ViF.js")
|
|
3010
|
+
),
|
|
3011
|
+
categoriesClothing: i.lazy(
|
|
3012
|
+
() => import("./Categoriesclothing-coxlXs5I.js")
|
|
3013
|
+
),
|
|
3014
|
+
categoriesEnergy: i.lazy(
|
|
3015
|
+
() => import("./Categoriesenergy-C1OLAInr.js")
|
|
3016
|
+
),
|
|
3017
|
+
categoriesDeskAndTravel: i.lazy(
|
|
3018
|
+
() => import("./Categoriesdeskandtravel-Y6qbY73Z.js")
|
|
3019
|
+
),
|
|
3020
|
+
categoriesCigarette: i.lazy(
|
|
3021
|
+
() => import("./Categoriescigarette-Bwsle8MH.js")
|
|
3022
|
+
),
|
|
3023
|
+
categoriesFood: i.lazy(() => import("./Categoriesfood-B7aSTjZ2.js")),
|
|
3024
|
+
categoriesChild: i.lazy(() => import("./Categorieschild-CzSnX2sP.js")),
|
|
3025
|
+
categoriesPuzzle: i.lazy(
|
|
3026
|
+
() => import("./Categoriespuzzle-CU4-hHQf.js")
|
|
3027
|
+
),
|
|
3028
|
+
categoriesToys: i.lazy(() => import("./Categoriestoys-XHM0bIMT.js")),
|
|
3029
|
+
categoriesCar: i.lazy(() => import("./Categoriescar-B9uBCkgM.js")),
|
|
3030
|
+
categoriesPlaceholder: i.lazy(
|
|
3031
|
+
() => import("./Categoriesplaceholder-Du7e9lT9.js")
|
|
3032
|
+
),
|
|
3033
|
+
categoriesFuel: i.lazy(() => import("./Categoriesfuel-DMuPgsYf.js")),
|
|
3034
|
+
categoriesCarAndBike: i.lazy(
|
|
3035
|
+
() => import("./Categoriescarandbike--nmwHcRo.js")
|
|
3036
|
+
),
|
|
3037
|
+
categoriesToyAndHobby: i.lazy(
|
|
3038
|
+
() => import("./Categoriestoyandhobby-O8FK-93I.js")
|
|
3039
|
+
),
|
|
3040
|
+
categoriesMultimedia: i.lazy(
|
|
3041
|
+
() => import("./Categoriesmultimedia-CZFXqlpM.js")
|
|
3042
|
+
),
|
|
3043
|
+
categoriesParty: i.lazy(() => import("./Categoriesparty-COfKidN_.js")),
|
|
3044
|
+
toolsPay: i.lazy(() => import("./Toolspay-C5-Tt34q.js")),
|
|
3045
|
+
toolsReceipt: i.lazy(() => import("./Toolsreceipt-BELd5rem.js")),
|
|
3046
|
+
toolsFuel: i.lazy(() => import("./Toolsfuel-5IAWOkr9.js")),
|
|
3047
|
+
toolsStoreLocator: i.lazy(
|
|
3048
|
+
() => import("./Toolsstorelocator-DCTcA8Ke.js")
|
|
3049
|
+
),
|
|
3050
|
+
toolsStats: i.lazy(() => import("./Toolsstats-Cis7TO3_.js")),
|
|
3051
|
+
toolsShowXtraOld: i.lazy(
|
|
3052
|
+
() => import("./Toolsshowxtraold-Ds2DBUAm.js")
|
|
3053
|
+
),
|
|
3054
|
+
toolsShowXtraNew: i.lazy(
|
|
3055
|
+
() => import("./Toolsshowxtranew-DTEadpWr.js")
|
|
3056
|
+
),
|
|
3057
|
+
toolsScan2: i.lazy(() => import("./Toolsscan2-DWDg-Y0e.js")),
|
|
3058
|
+
toolsRecipes2: i.lazy(() => import("./Toolsrecipes2-BqPmAjd3.js")),
|
|
3059
|
+
toolsWarranty: i.lazy(() => import("./Toolswarranty-CyaGyr9f.js")),
|
|
3060
|
+
toolsCoupons: i.lazy(() => import("./Toolscoupons-BUzx__00.js")),
|
|
3061
|
+
toolsFavoriteInactive: i.lazy(
|
|
3062
|
+
() => import("./Toolsfavoriteinactive-D3sG2g4Z.js")
|
|
3063
|
+
),
|
|
3064
|
+
toolsFavoriteActive: i.lazy(
|
|
3065
|
+
() => import("./Toolsfavoriteactive-CvN5omA7.js")
|
|
3066
|
+
),
|
|
3067
|
+
toolsAssortment: i.lazy(() => import("./Toolsassortment-DGrdhFWU.js")),
|
|
3068
|
+
toolsPromo: i.lazy(() => import("./Toolspromo-DmOGQ70t.js")),
|
|
3069
|
+
fuelCng: i.lazy(() => import("./Fuelcng-Br2q0gYk.js")),
|
|
3070
|
+
fuelE5: i.lazy(() => import("./Fuele5-CMQmD4bT.js")),
|
|
3071
|
+
fuelAdblue: i.lazy(() => import("./Fueladblue-CWKC7nWX.js")),
|
|
3072
|
+
fuelB7: i.lazy(() => import("./Fuelb7-COtNdcwF.js")),
|
|
3073
|
+
fuelH2: i.lazy(() => import("./Fuelh2-C-vqmw6E.js")),
|
|
3074
|
+
fuelE10: i.lazy(() => import("./Fuele10-DMzfbJCG.js")),
|
|
3075
|
+
fuelFreeTireInflation: i.lazy(
|
|
3076
|
+
() => import("./Fuelfreetireinflation-DzBsqU-g.js")
|
|
3077
|
+
),
|
|
3078
|
+
functionalClose: i.lazy(() => import("./Functionalclose-SvauYhlX.js")),
|
|
3079
|
+
functionalBack: i.lazy(() => import("./Functionalback-65zmCDjv.js")),
|
|
3080
|
+
functionalSearch: i.lazy(
|
|
3081
|
+
() => import("./Functionalsearch-BUqLRPrC.js")
|
|
3082
|
+
),
|
|
3083
|
+
functionalEdit: i.lazy(() => import("./Functionaledit-nAKG-jtF.js")),
|
|
3084
|
+
functionalShare: i.lazy(() => import("./Functionalshare-BmrBMkpy.js")),
|
|
3085
|
+
functionalLocation: i.lazy(
|
|
3086
|
+
() => import("./Functionallocation-DWikU6y0.js")
|
|
3087
|
+
),
|
|
3088
|
+
functionalTrash: i.lazy(() => import("./Functionaltrash-PF-S35vQ.js")),
|
|
3089
|
+
functionalCamera: i.lazy(
|
|
3090
|
+
() => import("./Functionalcamera-N-SlPHXY.js")
|
|
3091
|
+
),
|
|
3092
|
+
functionalPhone: i.lazy(() => import("./Functionalphone-9_RSyOs2.js")),
|
|
3093
|
+
functionalPushNotifications: i.lazy(
|
|
3094
|
+
() => import("./Functionalpushnotifications-ZbsCkM4x.js")
|
|
3095
|
+
),
|
|
3096
|
+
functionalMail: i.lazy(() => import("./Functionalmail-B60xLcCZ.js")),
|
|
3097
|
+
functionalGift: i.lazy(() => import("./Functionalgift-ClwjUOOI.js")),
|
|
3098
|
+
functionalPresent: i.lazy(
|
|
3099
|
+
() => import("./Functionalpresent-3FK5CWtG.js")
|
|
3100
|
+
),
|
|
3101
|
+
functionalLoading: i.lazy(
|
|
3102
|
+
() => import("./Functionalloading-CavVSi4g.js")
|
|
3103
|
+
),
|
|
3104
|
+
functionalChevronRight: i.lazy(
|
|
3105
|
+
() => import("./Functionalchevronright-BAgIHLVE.js")
|
|
3106
|
+
),
|
|
3107
|
+
functionalCheck: i.lazy(() => import("./Functionalcheck-DjBNO3ZV.js")),
|
|
3108
|
+
functionalChevronDown: i.lazy(
|
|
3109
|
+
() => import("./Functionalchevrondown-DeSU4dRJ.js")
|
|
3110
|
+
),
|
|
3111
|
+
functionalChevronUp: i.lazy(
|
|
3112
|
+
() => import("./Functionalchevronup-DBO2vYde.js")
|
|
3113
|
+
),
|
|
3114
|
+
functionalPlus: i.lazy(() => import("./Functionalplus-BMLtPBNt.js")),
|
|
3115
|
+
functionalReset: i.lazy(() => import("./Functionalreset-BgaOxpGO.js")),
|
|
3116
|
+
functionalDownload: i.lazy(
|
|
3117
|
+
() => import("./Functionaldownload-DGL6wvbc.js")
|
|
3118
|
+
),
|
|
3119
|
+
functionalExport: i.lazy(
|
|
3120
|
+
() => import("./Functionalexport-NFQBBSsl.js")
|
|
3121
|
+
),
|
|
3122
|
+
functionalCustomerService: i.lazy(
|
|
3123
|
+
() => import("./Functionalcustomerservice-CQI2QALG.js")
|
|
3124
|
+
),
|
|
3125
|
+
functionalTruck: i.lazy(() => import("./Functionaltruck-8WEeF31a.js")),
|
|
3126
|
+
functionalBox: i.lazy(() => import("./Functionalbox-oU3IgVn9.js")),
|
|
3127
|
+
functionalEllipsis: i.lazy(
|
|
3128
|
+
() => import("./Functionalellipsis-rkPSk_7T.js")
|
|
3129
|
+
),
|
|
3130
|
+
functionalLocationHome: i.lazy(
|
|
3131
|
+
() => import("./Functionallocationhome-HAeap-7B.js")
|
|
3132
|
+
),
|
|
3133
|
+
functionalLocationPickup: i.lazy(
|
|
3134
|
+
() => import("./Functionallocationpickup-bMUAciNO.js")
|
|
3135
|
+
),
|
|
3136
|
+
functionalAccount: i.lazy(
|
|
3137
|
+
() => import("./Functionalaccount-DqT61ODm.js")
|
|
3138
|
+
),
|
|
3139
|
+
functionalPrivacy: i.lazy(
|
|
3140
|
+
() => import("./Functionalprivacy-CnxNCyYe.js")
|
|
3141
|
+
),
|
|
3142
|
+
functionalSettings: i.lazy(
|
|
3143
|
+
() => import("./Functionalsettings-Do2O1RWt.js")
|
|
3144
|
+
),
|
|
3145
|
+
functionalUserInfo: i.lazy(
|
|
3146
|
+
() => import("./Functionaluserinfo-DTNeyMuA.js")
|
|
3147
|
+
),
|
|
3148
|
+
functionalPinOutlines: i.lazy(
|
|
3149
|
+
() => import("./Functionalpinoutlines-DbEZE0Er.js")
|
|
3150
|
+
),
|
|
3151
|
+
functionalCalendar: i.lazy(
|
|
3152
|
+
() => import("./Functionalcalendar-Dhh0tAw2.js")
|
|
3153
|
+
),
|
|
3154
|
+
functionalMinus: i.lazy(() => import("./Functionalminus-C5lvaL_b.js")),
|
|
3155
|
+
functionalLifestyle: i.lazy(
|
|
3156
|
+
() => import("./Functionallifestyle-D0zANQKA.js")
|
|
3157
|
+
),
|
|
3158
|
+
functionalSms: i.lazy(() => import("./Functionalsms-DyKuC8x0.js")),
|
|
3159
|
+
functionalSwitch: i.lazy(
|
|
3160
|
+
() => import("./Functionalswitch-BMpBzGz-.js")
|
|
3161
|
+
),
|
|
3162
|
+
functionalSorting: i.lazy(
|
|
3163
|
+
() => import("./Functionalsorting-BUoVYHkd.js")
|
|
3164
|
+
),
|
|
3165
|
+
functionalWarningCircle: i.lazy(
|
|
3166
|
+
() => import("./Functionalwarningcircle-BhHk8Bz7.js")
|
|
3167
|
+
),
|
|
3168
|
+
functionalQuestionCircle: i.lazy(
|
|
3169
|
+
() => import("./Functionalquestioncircle-Cftll_73.js")
|
|
3170
|
+
),
|
|
3171
|
+
functionalErrorCircle: i.lazy(
|
|
3172
|
+
() => import("./Functionalerrorcircle-DwfBkoo9.js")
|
|
3173
|
+
),
|
|
3174
|
+
functionalSuccessCircle: i.lazy(
|
|
3175
|
+
() => import("./Functionalsuccesscircle-B8876_by.js")
|
|
3176
|
+
),
|
|
3177
|
+
functionalMessage: i.lazy(
|
|
3178
|
+
() => import("./Functionalmessage-DilW_ij4.js")
|
|
3179
|
+
),
|
|
3180
|
+
functionalExternalLink: i.lazy(
|
|
3181
|
+
() => import("./Functionalexternallink-Cr7o00YG.js")
|
|
3182
|
+
),
|
|
3183
|
+
functionalAddToList: i.lazy(
|
|
3184
|
+
() => import("./Functionaladdtolist-CZ9Ksc1A.js")
|
|
3185
|
+
),
|
|
3186
|
+
functionalShoppingcart: i.lazy(
|
|
3187
|
+
() => import("./Functionalshoppingcart-DDw_7_qV.js")
|
|
3188
|
+
),
|
|
3189
|
+
functionalFilter: i.lazy(
|
|
3190
|
+
() => import("./Functionalfilter-BEr-iVYT.js")
|
|
3191
|
+
),
|
|
3192
|
+
functionalLocate: i.lazy(
|
|
3193
|
+
() => import("./Functionallocate-DASXvdyv.js")
|
|
3194
|
+
),
|
|
3195
|
+
functionalBarcode: i.lazy(
|
|
3196
|
+
() => import("./Functionalbarcode-BXdG8kp_.js")
|
|
3197
|
+
),
|
|
3198
|
+
functionalClock: i.lazy(() => import("./Functionalclock-DCj8T-TL.js")),
|
|
3199
|
+
functionalHistory: i.lazy(
|
|
3200
|
+
() => import("./Functionalhistory-OGfyFFrW.js")
|
|
3201
|
+
),
|
|
3202
|
+
functionalShops: i.lazy(() => import("./Functionalshops-BG2L4Btd.js")),
|
|
3203
|
+
functionalAddUser: i.lazy(
|
|
3204
|
+
() => import("./Functionaladduser-BzojG3wi.js")
|
|
3205
|
+
),
|
|
3206
|
+
functionalOther: i.lazy(() => import("./Functionalother-bYOLLWCL.js")),
|
|
3207
|
+
functionalInAppNotifications: i.lazy(
|
|
3208
|
+
() => import("./Functionalinappnotifications-Du98xnRa.js")
|
|
3209
|
+
),
|
|
3210
|
+
functionalExit: i.lazy(() => import("./Functionalexit-BeqXCGyO.js")),
|
|
3211
|
+
functionalShared: i.lazy(
|
|
3212
|
+
() => import("./Functionalshared-VfUrrErw.js")
|
|
3213
|
+
),
|
|
3214
|
+
functionalThumbsup: i.lazy(
|
|
3215
|
+
() => import("./Functionalthumbsup-Cp04whsE.js")
|
|
3216
|
+
),
|
|
3217
|
+
functionalDiscount: i.lazy(
|
|
3218
|
+
() => import("./Functionaldiscount-CKUohULp.js")
|
|
3219
|
+
),
|
|
3220
|
+
functionalPercentage: i.lazy(
|
|
3221
|
+
() => import("./Functionalpercentage-3yrkVSoK.js")
|
|
3222
|
+
),
|
|
3223
|
+
functionalList: i.lazy(() => import("./Functionallist-BUDxBJzZ.js")),
|
|
3224
|
+
functionalMapLocation: i.lazy(
|
|
3225
|
+
() => import("./Functionalmaplocation-Ddte5L2w.js")
|
|
3226
|
+
),
|
|
3227
|
+
functionalNoConnection: i.lazy(
|
|
3228
|
+
() => import("./Functionalnoconnection-DSSSbv77.js")
|
|
3229
|
+
),
|
|
3230
|
+
functionalSwap: i.lazy(() => import("./Functionalswap-NnOocHex.js")),
|
|
3231
|
+
functionalPiece: i.lazy(() => import("./Functionalpiece-CgSk4m1N.js")),
|
|
3232
|
+
functionalWeight: i.lazy(
|
|
3233
|
+
() => import("./Functionalweight-BuRYas11.js")
|
|
3234
|
+
),
|
|
3235
|
+
functionalPack: i.lazy(() => import("./Functionalpack-Do-NA_x_.js")),
|
|
3236
|
+
functionalCommunications: i.lazy(
|
|
3237
|
+
() => import("./Functionalcommunications-C8YqPxtA.js")
|
|
3238
|
+
),
|
|
3239
|
+
functionalDeliveryAddresses: i.lazy(
|
|
3240
|
+
() => import("./Functionaldeliveryaddresses-Dqsm7S0r.js")
|
|
3241
|
+
),
|
|
3242
|
+
"functional18+": i.lazy(
|
|
3243
|
+
() => import("./Functional18plus-B81lw15R.js")
|
|
3244
|
+
),
|
|
3245
|
+
functionalReadtime: i.lazy(
|
|
3246
|
+
() => import("./Functionalreadtime-BoaOLxTp.js")
|
|
3247
|
+
),
|
|
3248
|
+
functionalCopy: i.lazy(() => import("./Functionalcopy-qsj6Sd_B.js")),
|
|
3249
|
+
functionalMessageField: i.lazy(
|
|
3250
|
+
() => import("./Functionalmessagefield-B8kLFGcI.js")
|
|
3251
|
+
),
|
|
3252
|
+
functionalNext: i.lazy(() => import("./Functionalnext-Bob1Pr0g.js")),
|
|
3253
|
+
functionalSave: i.lazy(() => import("./Functionalsave-DeVoLFQI.js")),
|
|
3254
|
+
functionalLogin: i.lazy(() => import("./Functionallogin-CmgPHsDj.js")),
|
|
3255
|
+
functionalLogout: i.lazy(
|
|
3256
|
+
() => import("./Functionallogout-WQObFXNd.js")
|
|
3257
|
+
),
|
|
3258
|
+
functionalWebsite: i.lazy(
|
|
3259
|
+
() => import("./Functionalwebsite-IHjtSmP7.js")
|
|
3260
|
+
),
|
|
3261
|
+
functionalMenu: i.lazy(() => import("./Functionalmenu-Bx_SglRU.js")),
|
|
3262
|
+
functionalRegister: i.lazy(
|
|
3263
|
+
() => import("./Functionalregister-BzKRIHjE.js")
|
|
3264
|
+
),
|
|
3265
|
+
functionalNews: i.lazy(() => import("./Functionalnews-DMnYtnSA.js")),
|
|
3266
|
+
functionalTimer: i.lazy(() => import("./Functionaltimer-BOFmpLXr.js")),
|
|
3267
|
+
functionalEyeShow: i.lazy(
|
|
3268
|
+
() => import("./Functionaleyeshow-M5l96mSk.js")
|
|
3269
|
+
),
|
|
3270
|
+
functionalMobilePay: i.lazy(
|
|
3271
|
+
() => import("./Functionalmobilepay-BxlW6L3v.js")
|
|
3272
|
+
),
|
|
3273
|
+
functionalConnectionCable: i.lazy(
|
|
3274
|
+
() => import("./Functionalconnectioncable-w9NoRv6P.js")
|
|
3275
|
+
),
|
|
3276
|
+
functionalDryCleaning: i.lazy(
|
|
3277
|
+
() => import("./Functionaldrycleaning-BmNCIeVg.js")
|
|
3278
|
+
),
|
|
3279
|
+
functionalKiosk: i.lazy(() => import("./Functionalkiosk-DfzJl9fT.js")),
|
|
3280
|
+
functionalConnectedDevice: i.lazy(
|
|
3281
|
+
() => import("./Functionalconnecteddevice-BIOGt9T7.js")
|
|
3282
|
+
),
|
|
3283
|
+
functionalCookies: i.lazy(
|
|
3284
|
+
() => import("./Functionalcookies-DrA35JlA.js")
|
|
3285
|
+
),
|
|
3286
|
+
functionalViewFile: i.lazy(
|
|
3287
|
+
() => import("./Functionalviewfile-BDO_K-MF.js")
|
|
3288
|
+
),
|
|
3289
|
+
functionalLastAdded: i.lazy(
|
|
3290
|
+
() => import("./Functionallastadded-DDfGtuJj.js")
|
|
3291
|
+
),
|
|
3292
|
+
functionalFirstAdded: i.lazy(
|
|
3293
|
+
() => import("./Functionalfirstadded-Vuk8GbmF.js")
|
|
3294
|
+
),
|
|
3295
|
+
functionalStoreLayout: i.lazy(
|
|
3296
|
+
() => import("./Functionalstorelayout-D-nnmpSE.js")
|
|
3297
|
+
),
|
|
3298
|
+
functionalBlock: i.lazy(() => import("./Functionalblock-CRxUyFK_.js")),
|
|
3299
|
+
functionalChecklist: i.lazy(
|
|
3300
|
+
() => import("./Functionalchecklist-B4m95zLI.js")
|
|
3301
|
+
),
|
|
3302
|
+
functionalCartCheckout: i.lazy(
|
|
3303
|
+
() => import("./Functionalcartcheckout-B6YJdY9L.js")
|
|
3304
|
+
),
|
|
3305
|
+
functionalCartEdit: i.lazy(
|
|
3306
|
+
() => import("./Functionalcartedit-Cj1VScM8.js")
|
|
3307
|
+
),
|
|
3308
|
+
functionalEyeHidden: i.lazy(
|
|
3309
|
+
() => import("./Functionaleyehidden-XFztxAqt.js")
|
|
3310
|
+
),
|
|
3311
|
+
functionalWarningCircleFilled: i.lazy(
|
|
3312
|
+
() => import("./Functionalwarningcirclefilled-D94wyNTu.js")
|
|
3313
|
+
),
|
|
3314
|
+
functionalQuestionCircleFilled: i.lazy(
|
|
3315
|
+
() => import("./Functionalquestioncirclefilled-G6C3OXhy.js")
|
|
3316
|
+
),
|
|
3317
|
+
functionalErrorCircleFilled: i.lazy(
|
|
3318
|
+
() => import("./Functionalerrorcirclefilled-De_EU8HW.js")
|
|
3319
|
+
),
|
|
3320
|
+
functionalSuccessCircleFilled: i.lazy(
|
|
3321
|
+
() => import("./Functionalsuccesscirclefilled-CjadKbr-.js")
|
|
3322
|
+
),
|
|
3323
|
+
functionalPlusCircle: i.lazy(
|
|
3324
|
+
() => import("./Functionalpluscircle-D76QYMjT.js")
|
|
3325
|
+
),
|
|
3326
|
+
functionalSpinner: i.lazy(
|
|
3327
|
+
() => import("./Functionalspinner-C8l-CpJr.js")
|
|
3328
|
+
),
|
|
3329
|
+
functionalEcoEarth: i.lazy(
|
|
3330
|
+
() => import("./Functionalecoearth-33syfFhq.js")
|
|
3331
|
+
),
|
|
3332
|
+
functionalAlphaBeta: i.lazy(
|
|
3333
|
+
() => import("./Functionalalphabeta-D3FJdeE_.js")
|
|
3334
|
+
),
|
|
3335
|
+
functionalEuro: i.lazy(() => import("./Functionaleuro-BI6ILaM6.js")),
|
|
3336
|
+
functionalNumber: i.lazy(
|
|
3337
|
+
() => import("./Functionalnumber-8Wrw3uLm.js")
|
|
3338
|
+
),
|
|
3339
|
+
functionalIdea: i.lazy(() => import("./Functionalidea-i0AnV9bM.js")),
|
|
3340
|
+
functionalMultifactorAuthenticator: i.lazy(
|
|
3341
|
+
() => import("./Functionalmultifactorauthenticator-C6Tcg6Qg.js")
|
|
3342
|
+
),
|
|
3343
|
+
functionalPassword: i.lazy(
|
|
3344
|
+
() => import("./Functionalpassword-GcFWOzh2.js")
|
|
3345
|
+
),
|
|
3346
|
+
functionalDiscountCode: i.lazy(
|
|
3347
|
+
() => import("./Functionaldiscountcode-BujJ9fa-.js")
|
|
3348
|
+
)
|
|
3349
|
+
}, qi = ({
|
|
3350
|
+
bouIconId: t,
|
|
3351
|
+
...e
|
|
3352
|
+
}) => {
|
|
3353
|
+
const s = re[t], r = Vi[s];
|
|
3354
|
+
return r ? /* @__PURE__ */ n.jsx(i.Suspense, { fallback: /* @__PURE__ */ n.jsx("div", { children: "..." }), children: /* @__PURE__ */ n.jsx(r, { width: "24", height: "24", ...e, fill: "none", ref: void 0 }) }) : null;
|
|
3355
|
+
}, be = (t) => typeof t.icon == "string" && t.icon in re ? /* @__PURE__ */ n.jsx(qi, { bouIconId: re[t.icon] }) : t.icon, $i = ({
|
|
3356
|
+
label: t,
|
|
3357
|
+
className: e,
|
|
3358
|
+
onClick: s,
|
|
3359
|
+
icon: r
|
|
3360
|
+
}) => /* @__PURE__ */ n.jsx(G.Item, { className: e, children: /* @__PURE__ */ n.jsxs("button", { onClick: s, children: [
|
|
3361
|
+
/* @__PURE__ */ n.jsx(be, { icon: r }),
|
|
3362
|
+
t
|
|
3363
|
+
] }) }), _t = (t) => {
|
|
3364
|
+
const e = Vs(), { className: s, label: r, mobileUrl: a, desktopUrl: c, icon: l } = t;
|
|
3365
|
+
return /* @__PURE__ */ n.jsxs(G.Item, { className: s, children: [
|
|
3366
|
+
(!e || e && !c) && /* @__PURE__ */ n.jsxs("a", { href: a, referrerPolicy: "no-referrer-when-downgrade", children: [
|
|
3367
|
+
/* @__PURE__ */ n.jsx(be, { icon: l }),
|
|
3368
|
+
r
|
|
3369
|
+
] }),
|
|
3370
|
+
!!c && /* @__PURE__ */ n.jsxs("a", { href: c, referrerPolicy: "no-referrer-when-downgrade", children: [
|
|
3371
|
+
/* @__PURE__ */ n.jsx(be, { icon: l }),
|
|
3372
|
+
r
|
|
3373
|
+
] })
|
|
3374
|
+
] });
|
|
3375
|
+
}, zs = i.createContext(void 0), Zi = ({ apiUrl: t, authUrl: e, country: s, redirectUrl: r, bouHeaders: a, children: c }) => /* @__PURE__ */ n.jsx(zs.Provider, { value: { apiUrl: t, authUrl: e, country: s, redirectUrl: r, bouHeaders: a }, children: c }), St = () => {
|
|
3376
|
+
const t = i.useContext(zs);
|
|
3377
|
+
if (!t)
|
|
3378
|
+
throw new Error("Api context can not be rendered outside of Api");
|
|
3379
|
+
return t;
|
|
3380
|
+
}, Ds = i.createContext(void 0), Xi = ({ position: t, bouMenuItems: e, menuItemsToHide: s, children: r }) => /* @__PURE__ */ n.jsx(Ds.Provider, { value: { position: t, bouMenuItems: e, menuItemsToHide: s }, children: r }), Ts = () => {
|
|
3381
|
+
const t = i.useContext(Ds);
|
|
3382
|
+
if (!t)
|
|
3383
|
+
throw new Error("Authentication context can not be rendered outside of Authentication");
|
|
3384
|
+
return t;
|
|
3385
|
+
}, Us = ({ authUrl: t, redirectUrl: e, trackingInfo: s }) => {
|
|
3386
|
+
const r = new URLSearchParams({ redirectUrl: e });
|
|
3387
|
+
s && r.append("trackingInfo", s);
|
|
3388
|
+
const a = `${t}/login?${r.toString()}`, c = `${t}/logout?${r.toString()}`;
|
|
3389
|
+
return { loginUrl: a, logoutUrl: c };
|
|
3390
|
+
}, ie = () => {
|
|
3391
|
+
const { authUrl: t, redirectUrl: e } = St(), s = qs();
|
|
3392
|
+
return Us({ authUrl: t, redirectUrl: e, trackingInfo: s });
|
|
3393
|
+
}, Yi = () => {
|
|
3394
|
+
const { apiUrl: t } = St();
|
|
3395
|
+
return `${`${t}/xtra`}/authentication/v1/user/profile`;
|
|
3396
|
+
}, Ke = (t) => t ? `+${t.countryCode} ${t.number}` : "", We = (t, e) => e == null ? void 0 : e.find((s) => s.type === t), Ge = ({ apiUrl: t, redirectUrl: e }) => {
|
|
3397
|
+
const { loginUrl: s } = Us({ authUrl: t, redirectUrl: e });
|
|
3398
|
+
window.location.replace(s);
|
|
3399
|
+
}, Ve = (t) => {
|
|
3400
|
+
var c;
|
|
3401
|
+
if (!t)
|
|
3402
|
+
return { user: { state: () => "NotAuthenticated" }, tryToLogon: Ge };
|
|
3403
|
+
const e = new Date(t.dateOfBirth), s = We(Le.Mobile, t.phone), r = We(Le.Fixed, t.phone), a = Ke(s) ?? Ke(r) ?? "";
|
|
3404
|
+
return {
|
|
3405
|
+
user: {
|
|
3406
|
+
...(c = window.XTRA) == null ? void 0 : c.user,
|
|
3407
|
+
firstName: () => t.firstName,
|
|
3408
|
+
lastName: () => t.lastName,
|
|
3409
|
+
dob: () => e.getDate(),
|
|
3410
|
+
mob: () => e.getMonth() + 1,
|
|
3411
|
+
yob: () => e.getFullYear(),
|
|
3412
|
+
gender: () => t.genderCode,
|
|
3413
|
+
phone: () => a,
|
|
3414
|
+
streetName: () => {
|
|
3415
|
+
var l;
|
|
3416
|
+
return (l = t.address) == null ? void 0 : l.streetName;
|
|
3417
|
+
},
|
|
3418
|
+
houseNr: () => {
|
|
3419
|
+
var l;
|
|
3420
|
+
return (l = t.address) == null ? void 0 : l.houseNumber;
|
|
3421
|
+
},
|
|
3422
|
+
box: () => {
|
|
3423
|
+
var l;
|
|
3424
|
+
return (l = t.address) == null ? void 0 : l.letterBoxName;
|
|
3425
|
+
},
|
|
3426
|
+
zip: () => {
|
|
3427
|
+
var l;
|
|
3428
|
+
return (l = t.address) == null ? void 0 : l.postalCode;
|
|
3429
|
+
},
|
|
3430
|
+
city: () => {
|
|
3431
|
+
var l;
|
|
3432
|
+
return (l = t.address) == null ? void 0 : l.locationName;
|
|
3433
|
+
},
|
|
3434
|
+
country: () => {
|
|
3435
|
+
var l;
|
|
3436
|
+
return (l = t.address) == null ? void 0 : l.countryCode;
|
|
3437
|
+
},
|
|
3438
|
+
email: () => t.email,
|
|
3439
|
+
cbh: () => t.customerIdentifier,
|
|
3440
|
+
state: () => "Authenticated"
|
|
3441
|
+
},
|
|
3442
|
+
tryToLogon: Ge
|
|
3443
|
+
};
|
|
3444
|
+
}, Qs = ["profile"], Hs = () => {
|
|
3445
|
+
const { i18n: t } = pt(), { country: e, bouHeaders: s } = St(), r = Yi(), a = sessionStorage.getItem("profile"), c = !!a;
|
|
3446
|
+
return Cs({
|
|
3447
|
+
queryKey: Qs,
|
|
3448
|
+
queryFn: async () => {
|
|
3449
|
+
const u = je(t.language, e), d = await fetch(r, {
|
|
3450
|
+
credentials: "include",
|
|
3451
|
+
mode: "cors",
|
|
3452
|
+
headers: { "Accept-Language": u, ...s }
|
|
3453
|
+
});
|
|
3454
|
+
if (!d.ok) {
|
|
3455
|
+
if (d.status === 401)
|
|
3456
|
+
return window.XTRA = { ...window.XTRA, ...Ve() }, window.postMessage(
|
|
3457
|
+
{ source: "xtra-authentication", isAuthenticated: !1 },
|
|
3458
|
+
new URL(window.location.href).origin
|
|
3459
|
+
), sessionStorage.removeItem("profile"), { authenticationStatus: "NotAuthenticated" };
|
|
3460
|
+
if (c)
|
|
3461
|
+
return { authenticationStatus: "Authenticated", profile: JSON.parse(a) };
|
|
3462
|
+
throw new Error("Failed to retrieve profile");
|
|
3463
|
+
}
|
|
3464
|
+
const p = await d.json(), { firstName: f, lastName: h } = p;
|
|
3465
|
+
return sessionStorage.setItem("profile", JSON.stringify({ firstName: f, lastName: h })), window.postMessage(
|
|
3466
|
+
{ source: "xtra-authentication", isAuthenticated: !0 },
|
|
3467
|
+
new URL(window.location.href).origin
|
|
3468
|
+
), window.XTRA = { ...window.XTRA, ...Ve(p) }, {
|
|
3469
|
+
authenticationStatus: "Authenticated",
|
|
3470
|
+
profile: { firstName: p.firstName, lastName: p.lastName }
|
|
3471
|
+
};
|
|
3472
|
+
},
|
|
3473
|
+
initialData: c ? {
|
|
3474
|
+
authenticationStatus: "Authenticated",
|
|
3475
|
+
profile: JSON.parse(a)
|
|
3476
|
+
} : void 0,
|
|
3477
|
+
placeholderData: { authenticationStatus: "Pending" },
|
|
3478
|
+
refetchOnWindowFocus: !1
|
|
3479
|
+
});
|
|
3480
|
+
}, Ji = (t) => {
|
|
3481
|
+
const e = {
|
|
3482
|
+
shouldHidePayments: !1,
|
|
3483
|
+
shouldHideVouchers: !1,
|
|
3484
|
+
shouldHideQrCodes: !1
|
|
3485
|
+
};
|
|
3486
|
+
return Array.isArray(t) && t.forEach((s) => {
|
|
3487
|
+
if (typeof s == "string")
|
|
3488
|
+
switch (s.toLowerCase()) {
|
|
3489
|
+
case "payment":
|
|
3490
|
+
e.shouldHidePayments = !0;
|
|
3491
|
+
break;
|
|
3492
|
+
case "vouchers":
|
|
3493
|
+
e.shouldHideVouchers = !0;
|
|
3494
|
+
break;
|
|
3495
|
+
case "qrcode":
|
|
3496
|
+
e.shouldHideQrCodes = !0;
|
|
3497
|
+
break;
|
|
3498
|
+
default:
|
|
3499
|
+
console.error(
|
|
3500
|
+
`'${s}' is not a valid value for menuItemsToHide. Please refer https://www.npmjs.com/package/@myxtra/authentication-green#configuration`
|
|
3501
|
+
);
|
|
3502
|
+
}
|
|
3503
|
+
else
|
|
3504
|
+
console.error(
|
|
3505
|
+
"Please make sure the Menu Items to hide are strings and the expected values are [Payment, Vouchers, QRCode]"
|
|
3506
|
+
);
|
|
3507
|
+
}), e;
|
|
3508
|
+
}, Ii = () => {
|
|
3509
|
+
const { t } = pt(), { position: e, bouMenuItems: s, menuItemsToHide: r } = Ts(), { country: a } = St(), c = rs({ country: a }), { logoutUrl: l } = ie(), d = Ee().getQueryData(Qs), p = (d == null ? void 0 : d.profile.firstName) ?? "", f = (d == null ? void 0 : d.profile.lastName) ?? "", { shouldHidePayments: h, shouldHideVouchers: y, shouldHideQrCodes: g } = Ji(r), P = () => {
|
|
3510
|
+
sessionStorage.removeItem("profile"), window.location.href = l;
|
|
3511
|
+
};
|
|
3512
|
+
return /* @__PURE__ */ n.jsxs(G, { type: "nav", id: "xtra-menu", position: e, children: [
|
|
3513
|
+
/* @__PURE__ */ n.jsx(
|
|
3514
|
+
G.Trigger,
|
|
3515
|
+
{
|
|
3516
|
+
className: N(
|
|
3517
|
+
"button",
|
|
3518
|
+
"button--neutral",
|
|
3519
|
+
"button--authentication",
|
|
3520
|
+
"button--authentication--authenticated"
|
|
3521
|
+
),
|
|
3522
|
+
children: /* @__PURE__ */ n.jsxs("button", { children: [
|
|
3523
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ur, { variant: "small", firstName: p, lastName: f }) }),
|
|
3524
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: p }),
|
|
3525
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3526
|
+
] })
|
|
3527
|
+
}
|
|
3528
|
+
),
|
|
3529
|
+
/* @__PURE__ */ n.jsxs(G.Content, { as: "div", children: [
|
|
3530
|
+
!!s && s.length > 0 && /* @__PURE__ */ n.jsx("ul", { className: "bou-menu__list", children: s.map(({ label: S, icon: E, url: x }, b) => /* @__PURE__ */ n.jsx(
|
|
3531
|
+
_t,
|
|
3532
|
+
{
|
|
3533
|
+
className: "bou-menu-item",
|
|
3534
|
+
mobileUrl: x,
|
|
3535
|
+
icon: E,
|
|
3536
|
+
label: S
|
|
3537
|
+
},
|
|
3538
|
+
b
|
|
3539
|
+
)) }),
|
|
3540
|
+
/* @__PURE__ */ n.jsxs("ul", { children: [
|
|
3541
|
+
/* @__PURE__ */ n.jsx(
|
|
3542
|
+
_t,
|
|
3543
|
+
{
|
|
3544
|
+
className: "manage-profile",
|
|
3545
|
+
mobileUrl: `${c}/manage-profile`,
|
|
3546
|
+
desktopUrl: `${c}/manage-profile/personal-data`,
|
|
3547
|
+
icon: /* @__PURE__ */ n.jsx(ai, {}),
|
|
3548
|
+
label: t("manageProfile")
|
|
3549
|
+
}
|
|
3550
|
+
),
|
|
3551
|
+
a === "BE" && !h && /* @__PURE__ */ n.jsx(
|
|
3552
|
+
_t,
|
|
3553
|
+
{
|
|
3554
|
+
className: "payment",
|
|
3555
|
+
mobileUrl: `${c}/payment`,
|
|
3556
|
+
icon: /* @__PURE__ */ n.jsx(gi, {}),
|
|
3557
|
+
label: t("payment")
|
|
3558
|
+
}
|
|
3559
|
+
),
|
|
3560
|
+
!y && /* @__PURE__ */ n.jsx(
|
|
3561
|
+
_t,
|
|
3562
|
+
{
|
|
3563
|
+
className: "gift-cards",
|
|
3564
|
+
mobileUrl: `${c}/gift-cards`,
|
|
3565
|
+
icon: /* @__PURE__ */ n.jsx(mi, {}),
|
|
3566
|
+
label: t("giftCards")
|
|
3567
|
+
}
|
|
3568
|
+
),
|
|
3569
|
+
!g && /* @__PURE__ */ n.jsx(
|
|
3570
|
+
_t,
|
|
3571
|
+
{
|
|
3572
|
+
mobileUrl: `${c}/identifiers`,
|
|
3573
|
+
icon: /* @__PURE__ */ n.jsx(Ci, {}),
|
|
3574
|
+
label: t("qrCode")
|
|
3575
|
+
}
|
|
3576
|
+
),
|
|
3577
|
+
/* @__PURE__ */ n.jsx(
|
|
3578
|
+
_t,
|
|
3579
|
+
{
|
|
3580
|
+
className: "manage-privacy",
|
|
3581
|
+
mobileUrl: `${c}/manage-privacy`,
|
|
3582
|
+
desktopUrl: `${c}/manage-privacy/permissions`,
|
|
3583
|
+
icon: /* @__PURE__ */ n.jsx(ii, {}),
|
|
3584
|
+
label: t("privacy")
|
|
3585
|
+
}
|
|
3586
|
+
),
|
|
3587
|
+
/* @__PURE__ */ n.jsx($i, { onClick: P, icon: /* @__PURE__ */ n.jsx(si, {}), label: t("logout") })
|
|
3588
|
+
] })
|
|
3589
|
+
] })
|
|
3590
|
+
] });
|
|
3591
|
+
}, Bi = () => {
|
|
3592
|
+
const { t } = pt();
|
|
3593
|
+
return /* @__PURE__ */ n.jsxs("button", { className: N("button", "button--neutral", "button--authentication"), children: [
|
|
3594
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx("i", { className: "spinner" }) }),
|
|
3595
|
+
/* @__PURE__ */ n.jsxs("span", { className: "button__label", children: [
|
|
3596
|
+
t("loading"),
|
|
3597
|
+
"..."
|
|
3598
|
+
] })
|
|
3599
|
+
] });
|
|
3600
|
+
};
|
|
3601
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
3602
|
+
function It(t) {
|
|
3603
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
3604
|
+
var s = arguments[e];
|
|
3605
|
+
for (var r in s)
|
|
3606
|
+
t[r] = s[r];
|
|
3607
|
+
}
|
|
3608
|
+
return t;
|
|
3609
|
+
}
|
|
3610
|
+
var tn = {
|
|
3611
|
+
read: function(t) {
|
|
3612
|
+
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3613
|
+
},
|
|
3614
|
+
write: function(t) {
|
|
3615
|
+
return encodeURIComponent(t).replace(
|
|
3616
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
3617
|
+
decodeURIComponent
|
|
3618
|
+
);
|
|
3619
|
+
}
|
|
3620
|
+
};
|
|
3621
|
+
function we(t, e) {
|
|
3622
|
+
function s(a, c, l) {
|
|
3623
|
+
if (!(typeof document > "u")) {
|
|
3624
|
+
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);
|
|
3625
|
+
var u = "";
|
|
3626
|
+
for (var d in l)
|
|
3627
|
+
l[d] && (u += "; " + d, l[d] !== !0 && (u += "=" + l[d].split(";")[0]));
|
|
3628
|
+
return document.cookie = a + "=" + t.write(c, a) + u;
|
|
3629
|
+
}
|
|
3630
|
+
}
|
|
3631
|
+
function r(a) {
|
|
3632
|
+
if (!(typeof document > "u" || arguments.length && !a)) {
|
|
3633
|
+
for (var c = document.cookie ? document.cookie.split("; ") : [], l = {}, u = 0; u < c.length; u++) {
|
|
3634
|
+
var d = c[u].split("="), p = d.slice(1).join("=");
|
|
3635
|
+
try {
|
|
3636
|
+
var f = decodeURIComponent(d[0]);
|
|
3637
|
+
if (l[f] = t.read(p, f), a === f)
|
|
3638
|
+
break;
|
|
3639
|
+
} catch {
|
|
3640
|
+
}
|
|
3641
|
+
}
|
|
3642
|
+
return a ? l[a] : l;
|
|
3643
|
+
}
|
|
3644
|
+
}
|
|
3645
|
+
return Object.create(
|
|
3646
|
+
{
|
|
3647
|
+
set: s,
|
|
3648
|
+
get: r,
|
|
3649
|
+
remove: function(a, c) {
|
|
3650
|
+
s(
|
|
3651
|
+
a,
|
|
3652
|
+
"",
|
|
3653
|
+
It({}, c, {
|
|
3654
|
+
expires: -1
|
|
3655
|
+
})
|
|
3656
|
+
);
|
|
3657
|
+
},
|
|
3658
|
+
withAttributes: function(a) {
|
|
3659
|
+
return we(this.converter, It({}, this.attributes, a));
|
|
3660
|
+
},
|
|
3661
|
+
withConverter: function(a) {
|
|
3662
|
+
return we(It({}, this.converter, a), this.attributes);
|
|
3663
|
+
}
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
attributes: { value: Object.freeze(e) },
|
|
3667
|
+
converter: { value: Object.freeze(t) }
|
|
3668
|
+
}
|
|
3669
|
+
);
|
|
3670
|
+
}
|
|
3671
|
+
var qe = we(tn, { path: "/" });
|
|
3672
|
+
const en = ({ className: t }) => {
|
|
3673
|
+
const { t: e } = pt(), { loginUrl: s } = ie(), r = i.useRef(null);
|
|
3674
|
+
return i.useEffect(() => {
|
|
3675
|
+
const a = qe.get("shouldLogin"), c = !!a && !!atob(a);
|
|
3676
|
+
r != null && r.current && c && (qe.remove("shouldLogin"), r.current.click());
|
|
3677
|
+
}, [r]), /* @__PURE__ */ n.jsxs(
|
|
3678
|
+
"a",
|
|
3679
|
+
{
|
|
3680
|
+
ref: r,
|
|
3681
|
+
href: s,
|
|
3682
|
+
className: N(
|
|
3683
|
+
"button",
|
|
3684
|
+
"button--neutral",
|
|
3685
|
+
"button--authentication",
|
|
3686
|
+
"button--authentication--unauthenticated",
|
|
3687
|
+
t
|
|
3688
|
+
),
|
|
3689
|
+
children: [
|
|
3690
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Es, { width: 24, height: 24, suffix: "desktop" }) }),
|
|
3691
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: e("login") }),
|
|
3692
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3693
|
+
]
|
|
3694
|
+
}
|
|
3695
|
+
);
|
|
3696
|
+
}, sn = () => {
|
|
3697
|
+
const { t } = pt(), { loginUrl: e } = ie(), s = rs(), { position: r } = Ts();
|
|
3698
|
+
return /* @__PURE__ */ n.jsxs(
|
|
3699
|
+
G,
|
|
3700
|
+
{
|
|
3701
|
+
type: "nav",
|
|
3702
|
+
id: "xtra-menu",
|
|
3703
|
+
position: r,
|
|
3704
|
+
className: "menu--unauthenticated",
|
|
3705
|
+
"aria-label": t("xtraMenuAriaLabel"),
|
|
3706
|
+
children: [
|
|
3707
|
+
/* @__PURE__ */ n.jsx(G.Trigger, { className: N("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ n.jsxs("button", { children: [
|
|
3708
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Es, { width: 24, height: 24, suffix: "mobile" }) }),
|
|
3709
|
+
/* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Ae, {}) })
|
|
3710
|
+
] }) }),
|
|
3711
|
+
/* @__PURE__ */ n.jsxs(G.Content, { children: [
|
|
3712
|
+
/* @__PURE__ */ n.jsx(G.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: e, className: "button button--with-icon", children: [
|
|
3713
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(ti, {}) }),
|
|
3714
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("login") })
|
|
3715
|
+
] }) }),
|
|
3716
|
+
/* @__PURE__ */ n.jsx(G.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
|
|
3717
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(li, {}) }),
|
|
3718
|
+
/* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("register") })
|
|
3719
|
+
] }) })
|
|
3720
|
+
] })
|
|
3721
|
+
]
|
|
3722
|
+
}
|
|
3723
|
+
);
|
|
3724
|
+
}, rn = () => {
|
|
3725
|
+
var e, s;
|
|
3726
|
+
const t = Hs();
|
|
3727
|
+
return ((e = t.data) == null ? void 0 : e.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ n.jsx(Ii, {}) : ((s = t.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || t.isError ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3728
|
+
/* @__PURE__ */ n.jsx(en, {}),
|
|
3729
|
+
/* @__PURE__ */ n.jsx(sn, {})
|
|
3730
|
+
] }) : /* @__PURE__ */ n.jsx(Bi, {});
|
|
3731
|
+
}, Ks = () => {
|
|
3732
|
+
const { apiUrl: t } = St();
|
|
3733
|
+
return `${`${t}/xtra`}/authentication/v1/gdpr`;
|
|
3734
|
+
}, nn = () => {
|
|
3735
|
+
const { i18n: t } = pt(), e = Ks(), { country: s, bouHeaders: r } = St(), a = new ps();
|
|
3736
|
+
return kr({
|
|
3737
|
+
mutationFn: async (l) => {
|
|
3738
|
+
const u = je(t.language, s), d = await fetch(`${e}/tc`, {
|
|
3739
|
+
body: JSON.stringify({ acceptedTC: l }),
|
|
3740
|
+
credentials: "include",
|
|
3741
|
+
headers: {
|
|
3742
|
+
"Content-Type": "application/json",
|
|
3743
|
+
"Accept-Language": u,
|
|
3744
|
+
...r
|
|
3745
|
+
},
|
|
3746
|
+
method: "POST",
|
|
3747
|
+
mode: "cors"
|
|
3748
|
+
});
|
|
3749
|
+
if (!d.ok)
|
|
3750
|
+
throw new Error("Network response was not ok");
|
|
3751
|
+
return d;
|
|
3752
|
+
},
|
|
3753
|
+
onSuccess: async () => {
|
|
3754
|
+
await a.invalidateQueries({ queryKey: ["gdpr"] });
|
|
3755
|
+
}
|
|
3756
|
+
});
|
|
3757
|
+
}, an = () => {
|
|
3758
|
+
var u;
|
|
3759
|
+
const { i18n: t } = pt(), e = Ks(), { country: s, bouHeaders: r } = St(), c = ((u = Hs().data) == null ? void 0 : u.authenticationStatus) === "Authenticated";
|
|
3760
|
+
return Cs({
|
|
3761
|
+
queryKey: ["gdpr"],
|
|
3762
|
+
queryFn: async () => {
|
|
3763
|
+
const d = je(t.language, s), p = await fetch(`${e}/tc/check`, {
|
|
3764
|
+
credentials: "include",
|
|
3765
|
+
mode: "cors",
|
|
3766
|
+
headers: { "Accept-Language": d, ...r }
|
|
3767
|
+
});
|
|
3768
|
+
if (!p.ok)
|
|
3769
|
+
throw new Error("Network response was not ok");
|
|
3770
|
+
return p.status === 204 ? [] : await p.json();
|
|
3771
|
+
},
|
|
3772
|
+
enabled: c
|
|
3773
|
+
});
|
|
3774
|
+
}, on = () => {
|
|
3775
|
+
var E;
|
|
3776
|
+
const { t } = pt(), { logoutUrl: e } = ie(), [s, r] = i.useState(0), [a, c] = i.useState({}), { AccessibleFormMessage: l, formRef: u } = $s({ submitCount: s, errors: a }), { mutate: d, isError: p } = nn(), f = an(), [h, y] = i.useState(!1);
|
|
3777
|
+
Zs({ element: "xtra-authentication" });
|
|
3778
|
+
const g = t("termsAndConditions.error.required"), P = () => {
|
|
3779
|
+
y(!1), document.body.style.removeProperty("overflow");
|
|
3780
|
+
};
|
|
3781
|
+
i.useEffect(() => {
|
|
3782
|
+
var x;
|
|
3783
|
+
(x = f.data) != null && x.length && !window.showTnCPopup && (y(!0), window.showTnCPopup = !0);
|
|
3784
|
+
}, [(E = f.data) == null ? void 0 : E.length]), i.useEffect(() => {
|
|
3785
|
+
h && document.body.style.setProperty("overflow", "hidden");
|
|
3786
|
+
}, [h]), i.useEffect(() => {
|
|
3787
|
+
p && c({ acceptedTC: g });
|
|
3788
|
+
}, [g, p]);
|
|
3789
|
+
const S = (x) => {
|
|
3790
|
+
x.preventDefault(), r((w) => w + 1);
|
|
3791
|
+
const { acceptedTC: b } = x.target;
|
|
3792
|
+
if (b instanceof RadioNodeList) {
|
|
3793
|
+
const w = Object.values(b);
|
|
3794
|
+
w.every((O) => O.checked) ? (c({}), d(w.map((O) => O.value)), P()) : c({ acceptedTC: g });
|
|
3795
|
+
} else
|
|
3796
|
+
b != null && b.checked ? (c({}), d([b.value]), P()) : c({ acceptedTC: g });
|
|
3797
|
+
};
|
|
3798
|
+
return h ? /* @__PURE__ */ n.jsxs(K, { defaultOpen: h, isModal: !0, children: [
|
|
3799
|
+
l,
|
|
3800
|
+
/* @__PURE__ */ n.jsxs(K.Root, { children: [
|
|
3801
|
+
/* @__PURE__ */ n.jsx(K.Header, { children: /* @__PURE__ */ n.jsx(K.Title, { icon: /* @__PURE__ */ n.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ n.jsx(dn, { children: t("termsAndConditions.title") }) }) }),
|
|
3802
|
+
/* @__PURE__ */ n.jsx(K.Body, { children: /* @__PURE__ */ n.jsxs(Ws, { ref: u, id: "tc-form", onSubmit: S, children: [
|
|
3803
|
+
/* @__PURE__ */ n.jsxs(cn, { children: [
|
|
3804
|
+
t("termsAndConditions.description"),
|
|
3805
|
+
a.acceptedTC && /* @__PURE__ */ n.jsx(hn, { children: g })
|
|
3806
|
+
] }),
|
|
3807
|
+
f.data.map(({ tcCode: x, title: b, URL: w }) => /* @__PURE__ */ n.jsx(
|
|
3808
|
+
jt,
|
|
3809
|
+
{
|
|
3810
|
+
id: x,
|
|
3811
|
+
value: x,
|
|
3812
|
+
name: "acceptedTC",
|
|
3813
|
+
variant: "primary",
|
|
3814
|
+
children: /* @__PURE__ */ n.jsxs(jt.Content, { children: [
|
|
3815
|
+
/* @__PURE__ */ n.jsx(ln, { children: b }),
|
|
3816
|
+
/* @__PURE__ */ n.jsx(un, { href: w, children: t("termsAndConditions.action", { title: b }) })
|
|
3817
|
+
] })
|
|
3818
|
+
},
|
|
3819
|
+
x
|
|
3820
|
+
))
|
|
3821
|
+
] }) }),
|
|
3822
|
+
/* @__PURE__ */ n.jsxs(K.Footer, { children: [
|
|
3823
|
+
/* @__PURE__ */ n.jsx(
|
|
3824
|
+
"a",
|
|
3825
|
+
{
|
|
3826
|
+
className: N("button", "button--secondary", "button--terms-and-conditions"),
|
|
3827
|
+
href: e,
|
|
3828
|
+
children: t("logout")
|
|
3829
|
+
}
|
|
3830
|
+
),
|
|
3831
|
+
/* @__PURE__ */ n.jsx(Kt, { form: "tc-form", type: "submit", variant: "primary", children: t("confirm") })
|
|
3832
|
+
] })
|
|
3833
|
+
] })
|
|
3834
|
+
] }) : null;
|
|
3835
|
+
}, ln = ({
|
|
3836
|
+
children: t,
|
|
3837
|
+
...e
|
|
3838
|
+
}) => /* @__PURE__ */ n.jsx(jt.Label, { className: "form--tc__label", ...e, children: t }), Ws = i.forwardRef(({ children: t, ...e }, s) => /* @__PURE__ */ n.jsx("form", { className: "form--tc", ref: s, ...e, children: t }));
|
|
3839
|
+
Ws.displayName = "TermsAndConditionsForm";
|
|
3840
|
+
const cn = ({
|
|
3841
|
+
children: t,
|
|
3842
|
+
...e
|
|
3843
|
+
}) => /* @__PURE__ */ n.jsx("p", { className: "form--tc__description", ...e, children: t }), un = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx(
|
|
3844
|
+
"a",
|
|
3845
|
+
{
|
|
3846
|
+
className: "form--tc__link",
|
|
3847
|
+
target: "_blank",
|
|
3848
|
+
rel: "noreferrer",
|
|
3849
|
+
role: "button",
|
|
3850
|
+
download: !0,
|
|
3851
|
+
...e,
|
|
3852
|
+
children: t
|
|
3853
|
+
}
|
|
3854
|
+
), dn = ({ children: t }) => /* @__PURE__ */ n.jsx("h1", { className: "form--tc__title", children: t }), hn = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx("span", { className: "form--tc__error", role: "alert", ...e, children: t }), fn = new ps(), yn = ({
|
|
3855
|
+
environment: t,
|
|
3856
|
+
redirectUrl: e,
|
|
3857
|
+
apiUrl: s,
|
|
3858
|
+
authUrl: r,
|
|
3859
|
+
position: a,
|
|
3860
|
+
commerceId: c,
|
|
3861
|
+
bouMenuItems: l,
|
|
3862
|
+
menuItemsToHide: u,
|
|
3863
|
+
bouHeaders: d,
|
|
3864
|
+
country: p
|
|
3865
|
+
}) => /* @__PURE__ */ n.jsx(Xs, { environment: t, children: /* @__PURE__ */ n.jsx(Ys, { commerceId: c, children: /* @__PURE__ */ n.jsx(
|
|
3866
|
+
Zi,
|
|
3867
|
+
{
|
|
3868
|
+
apiUrl: s,
|
|
3869
|
+
authUrl: r,
|
|
3870
|
+
country: p,
|
|
3871
|
+
redirectUrl: e,
|
|
3872
|
+
bouHeaders: d,
|
|
3873
|
+
children: /* @__PURE__ */ n.jsxs(mr, { client: fn, children: [
|
|
3874
|
+
/* @__PURE__ */ n.jsx(
|
|
3875
|
+
Xi,
|
|
3876
|
+
{
|
|
3877
|
+
position: a,
|
|
3878
|
+
bouMenuItems: l,
|
|
3879
|
+
menuItemsToHide: u,
|
|
3880
|
+
children: /* @__PURE__ */ n.jsx(rn, {})
|
|
3881
|
+
}
|
|
3882
|
+
),
|
|
3883
|
+
/* @__PURE__ */ n.jsx(on, {})
|
|
3884
|
+
] })
|
|
3885
|
+
}
|
|
3886
|
+
) }) });
|
|
3887
|
+
export {
|
|
3888
|
+
yn as default
|
|
3889
|
+
};
|