@myxtra/authentication-green 2.4.0 → 2.5.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.
@@ -1,28 +1,28 @@
1
- var he = (t, e, s) => {
2
- if (!e.has(t))
1
+ var ht = (e, t, s) => {
2
+ if (!t.has(e))
3
3
  throw TypeError("Cannot " + s);
4
4
  };
5
- var a = (t, e, s) => (he(t, e, "read from private field"), s ? s.call(t) : e.get(t)), g = (t, e, s) => {
6
- if (e.has(t))
5
+ var a = (e, t, s) => (ht(e, t, "read from private field"), s ? s.call(e) : t.get(e)), g = (e, t, s) => {
6
+ if (t.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- e instanceof WeakSet ? e.add(t) : e.set(t, s);
9
- }, f = (t, e, s, r) => (he(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s);
10
- var ee = (t, e, s, r) => ({
8
+ t instanceof WeakSet ? t.add(e) : t.set(e, s);
9
+ }, f = (e, t, s, r) => (ht(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s);
10
+ var tt = (e, t, s, r) => ({
11
11
  set _(n) {
12
- f(t, e, n, s);
12
+ f(e, t, n, s);
13
13
  },
14
14
  get _() {
15
- return a(t, e, r);
15
+ return a(e, t, r);
16
16
  }
17
- }), b = (t, e, s) => (he(t, e, "access private method"), s);
18
- import { r as h, j as i, u as $s, a as Ks, b as bt, P as Re, c as ns, d as qs, e as Gs, E as Vs, C as Ws } from "./index-d3e6ee05.mjs";
19
- var Ut = class {
17
+ }), b = (e, t, s) => (ht(e, t, "access private method"), s);
18
+ import { r as h, j as i, u as $s, a as Ks, b as be, P as Rt, c as ns, d as qs, e as Gs, E as Vs, C as Ws } from "./index-DibhjQ0Y.mjs";
19
+ var Ue = class {
20
20
  constructor() {
21
21
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
22
22
  }
23
- subscribe(t) {
24
- return this.listeners.add(t), this.onSubscribe(), () => {
25
- this.listeners.delete(t), this.onUnsubscribe();
23
+ subscribe(e) {
24
+ return this.listeners.add(e), this.onSubscribe(), () => {
25
+ this.listeners.delete(e), this.onUnsubscribe();
26
26
  };
27
27
  }
28
28
  hasListeners() {
@@ -32,19 +32,19 @@ var Ut = class {
32
32
  }
33
33
  onUnsubscribe() {
34
34
  }
35
- }, Tt = typeof window > "u" || "Deno" in globalThis;
35
+ }, Te = typeof window > "u" || "Deno" in globalThis;
36
36
  function V() {
37
37
  }
38
- function Zs(t, e) {
39
- return typeof t == "function" ? t(e) : t;
38
+ function Zs(e, t) {
39
+ return typeof e == "function" ? e(t) : e;
40
40
  }
41
- function fe(t) {
42
- return typeof t == "number" && t >= 0 && t !== 1 / 0;
41
+ function ft(e) {
42
+ return typeof e == "number" && e >= 0 && e !== 1 / 0;
43
43
  }
44
- function as(t, e) {
45
- return Math.max(t + (e || 0) - Date.now(), 0);
44
+ function as(e, t) {
45
+ return Math.max(e + (t || 0) - Date.now(), 0);
46
46
  }
47
- function De(t, e) {
47
+ function Dt(e, t) {
48
48
  const {
49
49
  type: s = "all",
50
50
  exact: r,
@@ -52,109 +52,109 @@ function De(t, e) {
52
52
  predicate: l,
53
53
  queryKey: o,
54
54
  stale: c
55
- } = t;
55
+ } = e;
56
56
  if (o) {
57
57
  if (r) {
58
- if (e.queryHash !== Ae(o, e.options))
58
+ if (t.queryHash !== At(o, t.options))
59
59
  return !1;
60
- } else if (!Ht(e.queryKey, o))
60
+ } else if (!He(t.queryKey, o))
61
61
  return !1;
62
62
  }
63
63
  if (s !== "all") {
64
- const m = e.isActive();
64
+ const m = t.isActive();
65
65
  if (s === "active" && !m || s === "inactive" && m)
66
66
  return !1;
67
67
  }
68
- return !(typeof c == "boolean" && e.isStale() !== c || n && n !== e.state.fetchStatus || l && !l(e));
68
+ return !(typeof c == "boolean" && t.isStale() !== c || n && n !== t.state.fetchStatus || l && !l(t));
69
69
  }
70
- function Te(t, e) {
71
- const { exact: s, status: r, predicate: n, mutationKey: l } = t;
70
+ function Tt(e, t) {
71
+ const { exact: s, status: r, predicate: n, mutationKey: l } = e;
72
72
  if (l) {
73
- if (!e.options.mutationKey)
73
+ if (!t.options.mutationKey)
74
74
  return !1;
75
75
  if (s) {
76
- if (Ct(e.options.mutationKey) !== Ct(l))
76
+ if (Ce(t.options.mutationKey) !== Ce(l))
77
77
  return !1;
78
- } else if (!Ht(e.options.mutationKey, l))
78
+ } else if (!He(t.options.mutationKey, l))
79
79
  return !1;
80
80
  }
81
- return !(r && e.state.status !== r || n && !n(e));
81
+ return !(r && t.state.status !== r || n && !n(t));
82
82
  }
83
- function Ae(t, e) {
84
- return ((e == null ? void 0 : e.queryKeyHashFn) || Ct)(t);
83
+ function At(e, t) {
84
+ return ((t == null ? void 0 : t.queryKeyHashFn) || Ce)(e);
85
85
  }
86
- function Ct(t) {
86
+ function Ce(e) {
87
87
  return JSON.stringify(
88
- t,
89
- (e, s) => pe(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
88
+ e,
89
+ (t, s) => pt(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
90
90
  );
91
91
  }
92
- function Ht(t, e) {
93
- return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !Ht(t[s], e[s])) : !1;
92
+ function He(e, t) {
93
+ return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((s) => !He(e[s], t[s])) : !1;
94
94
  }
95
- function os(t, e) {
96
- if (t === e)
97
- return t;
98
- const s = Ue(t) && Ue(e);
99
- if (s || pe(t) && pe(e)) {
100
- const r = s ? t : Object.keys(t), n = r.length, l = s ? e : Object.keys(e), o = l.length, c = s ? [] : {};
95
+ function os(e, t) {
96
+ if (e === t)
97
+ return e;
98
+ const s = Ut(e) && Ut(t);
99
+ if (s || pt(e) && pt(t)) {
100
+ const r = s ? e : Object.keys(e), n = r.length, l = s ? t : Object.keys(t), o = l.length, c = s ? [] : {};
101
101
  let m = 0;
102
102
  for (let y = 0; y < o; y++) {
103
103
  const d = s ? y : l[y];
104
- !s && t[d] === void 0 && e[d] === void 0 && r.includes(d) ? (c[d] = void 0, m++) : (c[d] = os(t[d], e[d]), c[d] === t[d] && t[d] !== void 0 && m++);
104
+ (!s && r.includes(d) || s) && e[d] === void 0 && t[d] === void 0 ? (c[d] = void 0, m++) : (c[d] = os(e[d], t[d]), c[d] === e[d] && e[d] !== void 0 && m++);
105
105
  }
106
- return n === o && m === n ? t : c;
106
+ return n === o && m === n ? e : c;
107
107
  }
108
- return e;
108
+ return t;
109
109
  }
110
- function ie(t, e) {
111
- if (!e || Object.keys(t).length !== Object.keys(e).length)
110
+ function it(e, t) {
111
+ if (!t || Object.keys(e).length !== Object.keys(t).length)
112
112
  return !1;
113
- for (const s in t)
114
- if (t[s] !== e[s])
113
+ for (const s in e)
114
+ if (e[s] !== t[s])
115
115
  return !1;
116
116
  return !0;
117
117
  }
118
- function Ue(t) {
119
- return Array.isArray(t) && t.length === Object.keys(t).length;
118
+ function Ut(e) {
119
+ return Array.isArray(e) && e.length === Object.keys(e).length;
120
120
  }
121
- function pe(t) {
122
- if (!Qe(t))
121
+ function pt(e) {
122
+ if (!Qt(e))
123
123
  return !1;
124
- const e = t.constructor;
125
- if (e === void 0)
124
+ const t = e.constructor;
125
+ if (t === void 0)
126
126
  return !0;
127
- const s = e.prototype;
128
- return !(!Qe(s) || !s.hasOwnProperty("isPrototypeOf"));
127
+ const s = t.prototype;
128
+ return !(!Qt(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
129
129
  }
130
- function Qe(t) {
131
- return Object.prototype.toString.call(t) === "[object Object]";
130
+ function Qt(e) {
131
+ return Object.prototype.toString.call(e) === "[object Object]";
132
132
  }
133
- function Ys(t) {
134
- return new Promise((e) => {
135
- setTimeout(e, t);
133
+ function Ys(e) {
134
+ return new Promise((t) => {
135
+ setTimeout(t, e);
136
136
  });
137
137
  }
138
- function me(t, e, s) {
139
- return typeof s.structuralSharing == "function" ? s.structuralSharing(t, e) : s.structuralSharing !== !1 ? os(t, e) : e;
138
+ function mt(e, t, s) {
139
+ return typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? os(e, t) : t;
140
140
  }
141
- function zs(t, e, s = 0) {
142
- const r = [...t, e];
141
+ function zs(e, t, s = 0) {
142
+ const r = [...e, t];
143
143
  return s && r.length > s ? r.slice(1) : r;
144
144
  }
145
- function Js(t, e, s = 0) {
146
- const r = [e, ...t];
145
+ function Js(e, t, s = 0) {
146
+ const r = [t, ...e];
147
147
  return s && r.length > s ? r.slice(0, -1) : r;
148
148
  }
149
- var Ne = Symbol(), ht, rt, jt, ze, Xs = (ze = class extends Ut {
149
+ var Nt = Symbol(), he, re, je, zt, Xs = (zt = class extends Ue {
150
150
  constructor() {
151
151
  super();
152
- g(this, ht, void 0);
153
- g(this, rt, void 0);
154
- g(this, jt, void 0);
155
- f(this, jt, (e) => {
156
- if (!Tt && window.addEventListener) {
157
- const s = () => e();
152
+ g(this, he, void 0);
153
+ g(this, re, void 0);
154
+ g(this, je, void 0);
155
+ f(this, je, (t) => {
156
+ if (!Te && window.addEventListener) {
157
+ const s = () => t();
158
158
  return window.addEventListener("visibilitychange", s, !1), () => {
159
159
  window.removeEventListener("visibilitychange", s);
160
160
  };
@@ -162,40 +162,40 @@ var Ne = Symbol(), ht, rt, jt, ze, Xs = (ze = class extends Ut {
162
162
  });
163
163
  }
164
164
  onSubscribe() {
165
- a(this, rt) || this.setEventListener(a(this, jt));
165
+ a(this, re) || this.setEventListener(a(this, je));
166
166
  }
167
167
  onUnsubscribe() {
168
- var e;
169
- this.hasListeners() || ((e = a(this, rt)) == null || e.call(this), f(this, rt, void 0));
168
+ var t;
169
+ this.hasListeners() || ((t = a(this, re)) == null || t.call(this), f(this, re, void 0));
170
170
  }
171
- setEventListener(e) {
171
+ setEventListener(t) {
172
172
  var s;
173
- f(this, jt, e), (s = a(this, rt)) == null || s.call(this), f(this, rt, e((r) => {
173
+ f(this, je, t), (s = a(this, re)) == null || s.call(this), f(this, re, t((r) => {
174
174
  typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
175
175
  }));
176
176
  }
177
- setFocused(e) {
178
- a(this, ht) !== e && (f(this, ht, e), this.onFocus());
177
+ setFocused(t) {
178
+ a(this, he) !== t && (f(this, he, t), this.onFocus());
179
179
  }
180
180
  onFocus() {
181
- const e = this.isFocused();
181
+ const t = this.isFocused();
182
182
  this.listeners.forEach((s) => {
183
- s(e);
183
+ s(t);
184
184
  });
185
185
  }
186
186
  isFocused() {
187
- var e;
188
- return typeof a(this, ht) == "boolean" ? a(this, ht) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
187
+ var t;
188
+ return typeof a(this, he) == "boolean" ? a(this, he) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
189
189
  }
190
- }, ht = new WeakMap(), rt = new WeakMap(), jt = new WeakMap(), ze), ke = new Xs(), _t, it, St, Je, Is = (Je = class extends Ut {
190
+ }, he = new WeakMap(), re = new WeakMap(), je = new WeakMap(), zt), kt = new Xs(), _e, ie, Se, Jt, Is = (Jt = class extends Ue {
191
191
  constructor() {
192
192
  super();
193
- g(this, _t, !0);
194
- g(this, it, void 0);
195
- g(this, St, void 0);
196
- f(this, St, (e) => {
197
- if (!Tt && window.addEventListener) {
198
- const s = () => e(!0), r = () => e(!1);
193
+ g(this, _e, !0);
194
+ g(this, ie, void 0);
195
+ g(this, Se, void 0);
196
+ f(this, Se, (t) => {
197
+ if (!Te && window.addEventListener) {
198
+ const s = () => t(!0), r = () => t(!1);
199
199
  return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
200
200
  window.removeEventListener("online", s), window.removeEventListener("offline", r);
201
201
  };
@@ -203,70 +203,70 @@ var Ne = Symbol(), ht, rt, jt, ze, Xs = (ze = class extends Ut {
203
203
  });
204
204
  }
205
205
  onSubscribe() {
206
- a(this, it) || this.setEventListener(a(this, St));
206
+ a(this, ie) || this.setEventListener(a(this, Se));
207
207
  }
208
208
  onUnsubscribe() {
209
- var e;
210
- this.hasListeners() || ((e = a(this, it)) == null || e.call(this), f(this, it, void 0));
209
+ var t;
210
+ this.hasListeners() || ((t = a(this, ie)) == null || t.call(this), f(this, ie, void 0));
211
211
  }
212
- setEventListener(e) {
212
+ setEventListener(t) {
213
213
  var s;
214
- f(this, St, e), (s = a(this, it)) == null || s.call(this), f(this, it, e(this.setOnline.bind(this)));
214
+ f(this, Se, t), (s = a(this, ie)) == null || s.call(this), f(this, ie, t(this.setOnline.bind(this)));
215
215
  }
216
- setOnline(e) {
217
- a(this, _t) !== e && (f(this, _t, e), this.listeners.forEach((r) => {
218
- r(e);
216
+ setOnline(t) {
217
+ a(this, _e) !== t && (f(this, _e, t), this.listeners.forEach((r) => {
218
+ r(t);
219
219
  }));
220
220
  }
221
221
  isOnline() {
222
- return a(this, _t);
222
+ return a(this, _e);
223
223
  }
224
- }, _t = new WeakMap(), it = new WeakMap(), St = new WeakMap(), Je), ne = new Is();
225
- function Bs(t) {
226
- return Math.min(1e3 * 2 ** t, 3e4);
224
+ }, _e = new WeakMap(), ie = new WeakMap(), Se = new WeakMap(), Jt), nt = new Is();
225
+ function Bs(e) {
226
+ return Math.min(1e3 * 2 ** e, 3e4);
227
227
  }
228
- function ls(t) {
229
- return (t ?? "online") === "online" ? ne.isOnline() : !0;
228
+ function ls(e) {
229
+ return (e ?? "online") === "online" ? nt.isOnline() : !0;
230
230
  }
231
231
  var cs = class {
232
- constructor(t) {
233
- this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
232
+ constructor(e) {
233
+ this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
234
234
  }
235
235
  };
236
- function de(t) {
237
- return t instanceof cs;
236
+ function dt(e) {
237
+ return e instanceof cs;
238
238
  }
239
- function us(t) {
240
- let e = !1, s = 0, r = !1, n, l, o;
239
+ function us(e) {
240
+ let t = !1, s = 0, r = !1, n, l, o;
241
241
  const c = new Promise((x, C) => {
242
242
  l = x, o = C;
243
243
  }), m = (x) => {
244
244
  var C;
245
- r || (E(new cs(x)), (C = t.abort) == null || C.call(t));
245
+ r || (E(new cs(x)), (C = e.abort) == null || C.call(e));
246
246
  }, y = () => {
247
- e = !0;
247
+ t = !0;
248
248
  }, d = () => {
249
- e = !1;
250
- }, v = () => ke.isFocused() && (t.networkMode === "always" || ne.isOnline()) && t.canRun(), u = () => ls(t.networkMode) && t.canRun(), p = (x) => {
249
+ t = !1;
250
+ }, v = () => kt.isFocused() && (e.networkMode === "always" || nt.isOnline()) && e.canRun(), u = () => ls(e.networkMode) && e.canRun(), p = (x) => {
251
251
  var C;
252
- r || (r = !0, (C = t.onSuccess) == null || C.call(t, x), n == null || n(), l(x));
252
+ r || (r = !0, (C = e.onSuccess) == null || C.call(e, x), n == null || n(), l(x));
253
253
  }, E = (x) => {
254
254
  var C;
255
- r || (r = !0, (C = t.onError) == null || C.call(t, x), n == null || n(), o(x));
255
+ r || (r = !0, (C = e.onError) == null || C.call(e, x), n == null || n(), o(x));
256
256
  }, S = () => new Promise((x) => {
257
257
  var C;
258
258
  n = (_) => {
259
259
  (r || v()) && x(_);
260
- }, (C = t.onPause) == null || C.call(t);
260
+ }, (C = e.onPause) == null || C.call(e);
261
261
  }).then(() => {
262
262
  var x;
263
- n = void 0, r || (x = t.onContinue) == null || x.call(t);
263
+ n = void 0, r || (x = e.onContinue) == null || x.call(e);
264
264
  }), j = () => {
265
265
  if (r)
266
266
  return;
267
267
  let x;
268
268
  try {
269
- x = t.fn();
269
+ x = e.fn();
270
270
  } catch (C) {
271
271
  x = Promise.reject(C);
272
272
  }
@@ -274,13 +274,13 @@ function us(t) {
274
274
  var z;
275
275
  if (r)
276
276
  return;
277
- const _ = t.retry ?? (Tt ? 0 : 3), O = t.retryDelay ?? Bs, F = typeof O == "function" ? O(s, C) : O, Y = _ === !0 || typeof _ == "number" && s < _ || typeof _ == "function" && _(s, C);
278
- if (e || !Y) {
277
+ const _ = e.retry ?? (Te ? 0 : 3), O = e.retryDelay ?? Bs, F = typeof O == "function" ? O(s, C) : O, Y = _ === !0 || typeof _ == "number" && s < _ || typeof _ == "function" && _(s, C);
278
+ if (t || !Y) {
279
279
  E(C);
280
280
  return;
281
281
  }
282
- s++, (z = t.onFail) == null || z.call(t, s, C), Ys(F).then(() => v() ? void 0 : S()).then(() => {
283
- e ? E(C) : j();
282
+ s++, (z = e.onFail) == null || z.call(e, s, C), Ys(F).then(() => v() ? void 0 : S()).then(() => {
283
+ t ? E(C) : j();
284
284
  });
285
285
  });
286
286
  };
@@ -294,8 +294,8 @@ function us(t) {
294
294
  start: () => (u() ? j() : S().then(j), c)
295
295
  };
296
296
  }
297
- function tr() {
298
- let t = [], e = 0, s = (u) => {
297
+ function er() {
298
+ let e = [], t = 0, s = (u) => {
299
299
  u();
300
300
  }, r = (u) => {
301
301
  u();
@@ -304,15 +304,15 @@ function tr() {
304
304
  n = u;
305
305
  }, o = (u) => {
306
306
  let p;
307
- e++;
307
+ t++;
308
308
  try {
309
309
  p = u();
310
310
  } finally {
311
- e--, e || y();
311
+ t--, t || y();
312
312
  }
313
313
  return p;
314
314
  }, c = (u) => {
315
- e ? t.push(u) : n(() => {
315
+ t ? e.push(u) : n(() => {
316
316
  s(u);
317
317
  });
318
318
  }, m = (u) => (...p) => {
@@ -320,8 +320,8 @@ function tr() {
320
320
  u(...p);
321
321
  });
322
322
  }, y = () => {
323
- const u = t;
324
- t = [], u.length && n(() => {
323
+ const u = e;
324
+ e = [], u.length && n(() => {
325
325
  r(() => {
326
326
  u.forEach((p) => {
327
327
  s(p);
@@ -342,108 +342,108 @@ function tr() {
342
342
  setScheduler: l
343
343
  };
344
344
  }
345
- var R = tr(), dt, Xe, hs = (Xe = class {
345
+ var R = er(), de, Xt, hs = (Xt = class {
346
346
  constructor() {
347
- g(this, dt, void 0);
347
+ g(this, de, void 0);
348
348
  }
349
349
  destroy() {
350
350
  this.clearGcTimeout();
351
351
  }
352
352
  scheduleGc() {
353
- this.clearGcTimeout(), fe(this.gcTime) && f(this, dt, setTimeout(() => {
353
+ this.clearGcTimeout(), ft(this.gcTime) && f(this, de, setTimeout(() => {
354
354
  this.optionalRemove();
355
355
  }, this.gcTime));
356
356
  }
357
- updateGcTime(t) {
357
+ updateGcTime(e) {
358
358
  this.gcTime = Math.max(
359
359
  this.gcTime || 0,
360
- t ?? (Tt ? 1 / 0 : 5 * 60 * 1e3)
360
+ e ?? (Te ? 1 / 0 : 5 * 60 * 1e3)
361
361
  );
362
362
  }
363
363
  clearGcTimeout() {
364
- a(this, dt) && (clearTimeout(a(this, dt)), f(this, dt, void 0));
364
+ a(this, de) && (clearTimeout(a(this, de)), f(this, de, void 0));
365
365
  }
366
- }, dt = new WeakMap(), Xe), Et, Pt, G, D, $t, ft, Z, tt, Ie, er = (Ie = class extends hs {
367
- constructor(e) {
366
+ }, de = new WeakMap(), Xt), Ee, Pe, G, D, $e, fe, Z, ee, It, tr = (It = class extends hs {
367
+ constructor(t) {
368
368
  super();
369
369
  g(this, Z);
370
- g(this, Et, void 0);
371
- g(this, Pt, void 0);
370
+ g(this, Ee, void 0);
371
+ g(this, Pe, void 0);
372
372
  g(this, G, void 0);
373
373
  g(this, D, void 0);
374
- g(this, $t, void 0);
375
- g(this, ft, void 0);
376
- f(this, ft, !1), f(this, $t, e.defaultOptions), this.setOptions(e.options), this.observers = [], f(this, G, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, f(this, Et, e.state || sr(this.options)), this.state = a(this, Et), this.scheduleGc();
374
+ g(this, $e, void 0);
375
+ g(this, fe, void 0);
376
+ f(this, fe, !1), f(this, $e, t.defaultOptions), this.setOptions(t.options), this.observers = [], f(this, G, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, f(this, Ee, t.state || sr(this.options)), this.state = a(this, Ee), this.scheduleGc();
377
377
  }
378
378
  get meta() {
379
379
  return this.options.meta;
380
380
  }
381
- setOptions(e) {
382
- this.options = { ...a(this, $t), ...e }, this.updateGcTime(this.options.gcTime);
381
+ setOptions(t) {
382
+ this.options = { ...a(this, $e), ...t }, this.updateGcTime(this.options.gcTime);
383
383
  }
384
384
  optionalRemove() {
385
385
  !this.observers.length && this.state.fetchStatus === "idle" && a(this, G).remove(this);
386
386
  }
387
- setData(e, s) {
388
- const r = me(this.state.data, e, this.options);
389
- return b(this, Z, tt).call(this, {
387
+ setData(t, s) {
388
+ const r = mt(this.state.data, t, this.options);
389
+ return b(this, Z, ee).call(this, {
390
390
  data: r,
391
391
  type: "success",
392
392
  dataUpdatedAt: s == null ? void 0 : s.updatedAt,
393
393
  manual: s == null ? void 0 : s.manual
394
394
  }), r;
395
395
  }
396
- setState(e, s) {
397
- b(this, Z, tt).call(this, { type: "setState", state: e, setStateOptions: s });
396
+ setState(t, s) {
397
+ b(this, Z, ee).call(this, { type: "setState", state: t, setStateOptions: s });
398
398
  }
399
- cancel(e) {
399
+ cancel(t) {
400
400
  var r, n;
401
401
  const s = (r = a(this, D)) == null ? void 0 : r.promise;
402
- return (n = a(this, D)) == null || n.cancel(e), s ? s.then(V).catch(V) : Promise.resolve();
402
+ return (n = a(this, D)) == null || n.cancel(t), s ? s.then(V).catch(V) : Promise.resolve();
403
403
  }
404
404
  destroy() {
405
405
  super.destroy(), this.cancel({ silent: !0 });
406
406
  }
407
407
  reset() {
408
- this.destroy(), this.setState(a(this, Et));
408
+ this.destroy(), this.setState(a(this, Ee));
409
409
  }
410
410
  isActive() {
411
- return this.observers.some((e) => e.options.enabled !== !1);
411
+ return this.observers.some((t) => t.options.enabled !== !1);
412
412
  }
413
413
  isDisabled() {
414
414
  return this.getObserversCount() > 0 && !this.isActive();
415
415
  }
416
416
  isStale() {
417
417
  return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
418
- (e) => e.getCurrentResult().isStale
418
+ (t) => t.getCurrentResult().isStale
419
419
  ) : this.state.data === void 0;
420
420
  }
421
- isStaleByTime(e = 0) {
422
- return this.state.isInvalidated || this.state.data === void 0 || !as(this.state.dataUpdatedAt, e);
421
+ isStaleByTime(t = 0) {
422
+ return this.state.isInvalidated || this.state.data === void 0 || !as(this.state.dataUpdatedAt, t);
423
423
  }
424
424
  onFocus() {
425
425
  var s;
426
- const e = this.observers.find((r) => r.shouldFetchOnWindowFocus());
427
- e == null || e.refetch({ cancelRefetch: !1 }), (s = a(this, D)) == null || s.continue();
426
+ const t = this.observers.find((r) => r.shouldFetchOnWindowFocus());
427
+ t == null || t.refetch({ cancelRefetch: !1 }), (s = a(this, D)) == null || s.continue();
428
428
  }
429
429
  onOnline() {
430
430
  var s;
431
- const e = this.observers.find((r) => r.shouldFetchOnReconnect());
432
- e == null || e.refetch({ cancelRefetch: !1 }), (s = a(this, D)) == null || s.continue();
431
+ const t = this.observers.find((r) => r.shouldFetchOnReconnect());
432
+ t == null || t.refetch({ cancelRefetch: !1 }), (s = a(this, D)) == null || s.continue();
433
433
  }
434
- addObserver(e) {
435
- this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), a(this, G).notify({ type: "observerAdded", query: this, observer: e }));
434
+ addObserver(t) {
435
+ this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), a(this, G).notify({ type: "observerAdded", query: this, observer: t }));
436
436
  }
437
- removeObserver(e) {
438
- this.observers.includes(e) && (this.observers = this.observers.filter((s) => s !== e), this.observers.length || (a(this, D) && (a(this, ft) ? a(this, D).cancel({ revert: !0 }) : a(this, D).cancelRetry()), this.scheduleGc()), a(this, G).notify({ type: "observerRemoved", query: this, observer: e }));
437
+ removeObserver(t) {
438
+ this.observers.includes(t) && (this.observers = this.observers.filter((s) => s !== t), this.observers.length || (a(this, D) && (a(this, fe) ? a(this, D).cancel({ revert: !0 }) : a(this, D).cancelRetry()), this.scheduleGc()), a(this, G).notify({ type: "observerRemoved", query: this, observer: t }));
439
439
  }
440
440
  getObserversCount() {
441
441
  return this.observers.length;
442
442
  }
443
443
  invalidate() {
444
- this.state.isInvalidated || b(this, Z, tt).call(this, { type: "invalidate" });
444
+ this.state.isInvalidated || b(this, Z, ee).call(this, { type: "invalidate" });
445
445
  }
446
- fetch(e, s) {
446
+ fetch(t, s) {
447
447
  var y, d, v;
448
448
  if (this.state.fetchStatus !== "idle") {
449
449
  if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
@@ -451,7 +451,7 @@ var R = tr(), dt, Xe, hs = (Xe = class {
451
451
  else if (a(this, D))
452
452
  return a(this, D).continueRetry(), a(this, D).promise;
453
453
  }
454
- if (e && this.setOptions(e), !this.options.queryFn) {
454
+ if (t && this.setOptions(t), !this.options.queryFn) {
455
455
  const u = this.observers.find((p) => p.options.queryFn);
456
456
  u && this.setOptions(u.options);
457
457
  }
@@ -461,13 +461,13 @@ var R = tr(), dt, Xe, hs = (Xe = class {
461
461
  }, l = (u) => {
462
462
  Object.defineProperty(u, "signal", {
463
463
  enumerable: !0,
464
- get: () => (f(this, ft, !0), r.signal)
464
+ get: () => (f(this, fe, !0), r.signal)
465
465
  });
466
466
  };
467
467
  l(n);
468
- const o = () => !this.options.queryFn || this.options.queryFn === Ne ? Promise.reject(
468
+ const o = () => !this.options.queryFn || this.options.queryFn === Nt ? Promise.reject(
469
469
  new Error(`Missing queryFn: '${this.options.queryHash}'`)
470
- ) : (f(this, ft, !1), this.options.persister ? this.options.persister(
470
+ ) : (f(this, fe, !1), this.options.persister ? this.options.persister(
471
471
  this.options.queryFn,
472
472
  n,
473
473
  this
@@ -483,13 +483,13 @@ var R = tr(), dt, Xe, hs = (Xe = class {
483
483
  l(c), (y = this.options.behavior) == null || y.onFetch(
484
484
  c,
485
485
  this
486
- ), f(this, Pt, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((d = c.fetchOptions) == null ? void 0 : d.meta)) && b(this, Z, tt).call(this, { type: "fetch", meta: (v = c.fetchOptions) == null ? void 0 : v.meta });
486
+ ), f(this, Pe, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((d = c.fetchOptions) == null ? void 0 : d.meta)) && b(this, Z, ee).call(this, { type: "fetch", meta: (v = c.fetchOptions) == null ? void 0 : v.meta });
487
487
  const m = (u) => {
488
488
  var p, E, S, j;
489
- de(u) && u.silent || b(this, Z, tt).call(this, {
489
+ dt(u) && u.silent || b(this, Z, ee).call(this, {
490
490
  type: "error",
491
491
  error: u
492
- }), de(u) || ((E = (p = a(this, G).config).onError) == null || E.call(
492
+ }), dt(u) || ((E = (p = a(this, G).config).onError) == null || E.call(
493
493
  p,
494
494
  u,
495
495
  this
@@ -518,13 +518,13 @@ var R = tr(), dt, Xe, hs = (Xe = class {
518
518
  },
519
519
  onError: m,
520
520
  onFail: (u, p) => {
521
- b(this, Z, tt).call(this, { type: "failed", failureCount: u, error: p });
521
+ b(this, Z, ee).call(this, { type: "failed", failureCount: u, error: p });
522
522
  },
523
523
  onPause: () => {
524
- b(this, Z, tt).call(this, { type: "pause" });
524
+ b(this, Z, ee).call(this, { type: "pause" });
525
525
  },
526
526
  onContinue: () => {
527
- b(this, Z, tt).call(this, { type: "continue" });
527
+ b(this, Z, ee).call(this, { type: "continue" });
528
528
  },
529
529
  retry: c.options.retry,
530
530
  retryDelay: c.options.retryDelay,
@@ -532,14 +532,14 @@ var R = tr(), dt, Xe, hs = (Xe = class {
532
532
  canRun: () => !0
533
533
  })), a(this, D).start();
534
534
  }
535
- }, Et = new WeakMap(), Pt = new WeakMap(), G = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), ft = new WeakMap(), Z = new WeakSet(), tt = function(e) {
535
+ }, Ee = new WeakMap(), Pe = new WeakMap(), G = new WeakMap(), D = new WeakMap(), $e = new WeakMap(), fe = new WeakMap(), Z = new WeakSet(), ee = function(t) {
536
536
  const s = (r) => {
537
- switch (e.type) {
537
+ switch (t.type) {
538
538
  case "failed":
539
539
  return {
540
540
  ...r,
541
- fetchFailureCount: e.failureCount,
542
- fetchFailureReason: e.error
541
+ fetchFailureCount: t.failureCount,
542
+ fetchFailureReason: t.error
543
543
  };
544
544
  case "pause":
545
545
  return {
@@ -555,26 +555,26 @@ var R = tr(), dt, Xe, hs = (Xe = class {
555
555
  return {
556
556
  ...r,
557
557
  ...ds(r.data, this.options),
558
- fetchMeta: e.meta ?? null
558
+ fetchMeta: t.meta ?? null
559
559
  };
560
560
  case "success":
561
561
  return {
562
562
  ...r,
563
- data: e.data,
563
+ data: t.data,
564
564
  dataUpdateCount: r.dataUpdateCount + 1,
565
- dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
565
+ dataUpdatedAt: t.dataUpdatedAt ?? Date.now(),
566
566
  error: null,
567
567
  isInvalidated: !1,
568
568
  status: "success",
569
- ...!e.manual && {
569
+ ...!t.manual && {
570
570
  fetchStatus: "idle",
571
571
  fetchFailureCount: 0,
572
572
  fetchFailureReason: null
573
573
  }
574
574
  };
575
575
  case "error":
576
- const n = e.error;
577
- return de(n) && n.revert && a(this, Pt) ? { ...a(this, Pt), fetchStatus: "idle" } : {
576
+ const n = t.error;
577
+ return dt(n) && n.revert && a(this, Pe) ? { ...a(this, Pe), fetchStatus: "idle" } : {
578
578
  ...r,
579
579
  error: n,
580
580
  errorUpdateCount: r.errorUpdateCount + 1,
@@ -592,31 +592,31 @@ var R = tr(), dt, Xe, hs = (Xe = class {
592
592
  case "setState":
593
593
  return {
594
594
  ...r,
595
- ...e.state
595
+ ...t.state
596
596
  };
597
597
  }
598
598
  };
599
599
  this.state = s(this.state), R.batch(() => {
600
600
  this.observers.forEach((r) => {
601
601
  r.onQueryUpdate();
602
- }), a(this, G).notify({ query: this, type: "updated", action: e });
602
+ }), a(this, G).notify({ query: this, type: "updated", action: t });
603
603
  });
604
- }, Ie);
605
- function ds(t, e) {
604
+ }, It);
605
+ function ds(e, t) {
606
606
  return {
607
607
  fetchFailureCount: 0,
608
608
  fetchFailureReason: null,
609
- fetchStatus: ls(e.networkMode) ? "fetching" : "paused",
610
- ...t === void 0 && {
609
+ fetchStatus: ls(t.networkMode) ? "fetching" : "paused",
610
+ ...e === void 0 && {
611
611
  error: null,
612
612
  status: "pending"
613
613
  }
614
614
  };
615
615
  }
616
- function sr(t) {
617
- 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;
616
+ function sr(e) {
617
+ const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, s = t !== void 0, r = s ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
618
618
  return {
619
- data: e,
619
+ data: t,
620
620
  dataUpdateCount: 0,
621
621
  dataUpdatedAt: s ? r ?? Date.now() : 0,
622
622
  error: null,
@@ -630,176 +630,176 @@ function sr(t) {
630
630
  fetchStatus: "idle"
631
631
  };
632
632
  }
633
- var J, Be, rr = (Be = class extends Ut {
634
- constructor(e = {}) {
633
+ var J, Bt, rr = (Bt = class extends Ue {
634
+ constructor(t = {}) {
635
635
  super();
636
636
  g(this, J, void 0);
637
- this.config = e, f(this, J, /* @__PURE__ */ new Map());
637
+ this.config = t, f(this, J, /* @__PURE__ */ new Map());
638
638
  }
639
- build(e, s, r) {
640
- const n = s.queryKey, l = s.queryHash ?? Ae(n, s);
639
+ build(t, s, r) {
640
+ const n = s.queryKey, l = s.queryHash ?? At(n, s);
641
641
  let o = this.get(l);
642
- return o || (o = new er({
642
+ return o || (o = new tr({
643
643
  cache: this,
644
644
  queryKey: n,
645
645
  queryHash: l,
646
- options: e.defaultQueryOptions(s),
646
+ options: t.defaultQueryOptions(s),
647
647
  state: r,
648
- defaultOptions: e.getQueryDefaults(n)
648
+ defaultOptions: t.getQueryDefaults(n)
649
649
  }), this.add(o)), o;
650
650
  }
651
- add(e) {
652
- a(this, J).has(e.queryHash) || (a(this, J).set(e.queryHash, e), this.notify({
651
+ add(t) {
652
+ a(this, J).has(t.queryHash) || (a(this, J).set(t.queryHash, t), this.notify({
653
653
  type: "added",
654
- query: e
654
+ query: t
655
655
  }));
656
656
  }
657
- remove(e) {
658
- const s = a(this, J).get(e.queryHash);
659
- s && (e.destroy(), s === e && a(this, J).delete(e.queryHash), this.notify({ type: "removed", query: e }));
657
+ remove(t) {
658
+ const s = a(this, J).get(t.queryHash);
659
+ s && (t.destroy(), s === t && a(this, J).delete(t.queryHash), this.notify({ type: "removed", query: t }));
660
660
  }
661
661
  clear() {
662
662
  R.batch(() => {
663
- this.getAll().forEach((e) => {
664
- this.remove(e);
663
+ this.getAll().forEach((t) => {
664
+ this.remove(t);
665
665
  });
666
666
  });
667
667
  }
668
- get(e) {
669
- return a(this, J).get(e);
668
+ get(t) {
669
+ return a(this, J).get(t);
670
670
  }
671
671
  getAll() {
672
672
  return [...a(this, J).values()];
673
673
  }
674
- find(e) {
675
- const s = { exact: !0, ...e };
674
+ find(t) {
675
+ const s = { exact: !0, ...t };
676
676
  return this.getAll().find(
677
- (r) => De(s, r)
677
+ (r) => Dt(s, r)
678
678
  );
679
679
  }
680
- findAll(e = {}) {
680
+ findAll(t = {}) {
681
681
  const s = this.getAll();
682
- return Object.keys(e).length > 0 ? s.filter((r) => De(e, r)) : s;
682
+ return Object.keys(t).length > 0 ? s.filter((r) => Dt(t, r)) : s;
683
683
  }
684
- notify(e) {
684
+ notify(t) {
685
685
  R.batch(() => {
686
686
  this.listeners.forEach((s) => {
687
- s(e);
687
+ s(t);
688
688
  });
689
689
  });
690
690
  }
691
691
  onFocus() {
692
692
  R.batch(() => {
693
- this.getAll().forEach((e) => {
694
- e.onFocus();
693
+ this.getAll().forEach((t) => {
694
+ t.onFocus();
695
695
  });
696
696
  });
697
697
  }
698
698
  onOnline() {
699
699
  R.batch(() => {
700
- this.getAll().forEach((e) => {
701
- e.onOnline();
700
+ this.getAll().forEach((t) => {
701
+ t.onOnline();
702
702
  });
703
703
  });
704
704
  }
705
- }, J = new WeakMap(), Be), X, T, pt, I, st, ts, ir = (ts = class extends hs {
706
- constructor(e) {
705
+ }, J = new WeakMap(), Bt), X, T, pe, I, se, es, ir = (es = class extends hs {
706
+ constructor(t) {
707
707
  super();
708
708
  g(this, I);
709
709
  g(this, X, void 0);
710
710
  g(this, T, void 0);
711
- g(this, pt, void 0);
712
- this.mutationId = e.mutationId, f(this, T, e.mutationCache), f(this, X, []), this.state = e.state || fs(), this.setOptions(e.options), this.scheduleGc();
711
+ g(this, pe, void 0);
712
+ this.mutationId = t.mutationId, f(this, T, t.mutationCache), f(this, X, []), this.state = t.state || fs(), this.setOptions(t.options), this.scheduleGc();
713
713
  }
714
- setOptions(e) {
715
- this.options = e, this.updateGcTime(this.options.gcTime);
714
+ setOptions(t) {
715
+ this.options = t, this.updateGcTime(this.options.gcTime);
716
716
  }
717
717
  get meta() {
718
718
  return this.options.meta;
719
719
  }
720
- addObserver(e) {
721
- a(this, X).includes(e) || (a(this, X).push(e), this.clearGcTimeout(), a(this, T).notify({
720
+ addObserver(t) {
721
+ a(this, X).includes(t) || (a(this, X).push(t), this.clearGcTimeout(), a(this, T).notify({
722
722
  type: "observerAdded",
723
723
  mutation: this,
724
- observer: e
724
+ observer: t
725
725
  }));
726
726
  }
727
- removeObserver(e) {
728
- f(this, X, a(this, X).filter((s) => s !== e)), this.scheduleGc(), a(this, T).notify({
727
+ removeObserver(t) {
728
+ f(this, X, a(this, X).filter((s) => s !== t)), this.scheduleGc(), a(this, T).notify({
729
729
  type: "observerRemoved",
730
730
  mutation: this,
731
- observer: e
731
+ observer: t
732
732
  });
733
733
  }
734
734
  optionalRemove() {
735
735
  a(this, X).length || (this.state.status === "pending" ? this.scheduleGc() : a(this, T).remove(this));
736
736
  }
737
737
  continue() {
738
- var e;
739
- return ((e = a(this, pt)) == null ? void 0 : e.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
738
+ var t;
739
+ return ((t = a(this, pe)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
740
740
  this.execute(this.state.variables);
741
741
  }
742
- async execute(e) {
742
+ async execute(t) {
743
743
  var n, l, o, c, m, y, d, v, u, p, E, S, j, x, C, _, O, F, Y, z;
744
- f(this, pt, us({
745
- fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
744
+ f(this, pe, us({
745
+ fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
746
746
  onFail: (P, W) => {
747
- b(this, I, st).call(this, { type: "failed", failureCount: P, error: W });
747
+ b(this, I, se).call(this, { type: "failed", failureCount: P, error: W });
748
748
  },
749
749
  onPause: () => {
750
- b(this, I, st).call(this, { type: "pause" });
750
+ b(this, I, se).call(this, { type: "pause" });
751
751
  },
752
752
  onContinue: () => {
753
- b(this, I, st).call(this, { type: "continue" });
753
+ b(this, I, se).call(this, { type: "continue" });
754
754
  },
755
755
  retry: this.options.retry ?? 0,
756
756
  retryDelay: this.options.retryDelay,
757
757
  networkMode: this.options.networkMode,
758
758
  canRun: () => a(this, T).canRun(this)
759
759
  }));
760
- const s = this.state.status === "pending", r = !a(this, pt).canStart();
760
+ const s = this.state.status === "pending", r = !a(this, pe).canStart();
761
761
  try {
762
762
  if (!s) {
763
- b(this, I, st).call(this, { type: "pending", variables: e, isPaused: r }), await ((l = (n = a(this, T).config).onMutate) == null ? void 0 : l.call(
763
+ b(this, I, se).call(this, { type: "pending", variables: t, isPaused: r }), await ((l = (n = a(this, T).config).onMutate) == null ? void 0 : l.call(
764
764
  n,
765
- e,
765
+ t,
766
766
  this
767
767
  ));
768
- const W = await ((c = (o = this.options).onMutate) == null ? void 0 : c.call(o, e));
769
- W !== this.state.context && b(this, I, st).call(this, {
768
+ const W = await ((c = (o = this.options).onMutate) == null ? void 0 : c.call(o, t));
769
+ W !== this.state.context && b(this, I, se).call(this, {
770
770
  type: "pending",
771
771
  context: W,
772
- variables: e,
772
+ variables: t,
773
773
  isPaused: r
774
774
  });
775
775
  }
776
- const P = await a(this, pt).start();
776
+ const P = await a(this, pe).start();
777
777
  return await ((y = (m = a(this, T).config).onSuccess) == null ? void 0 : y.call(
778
778
  m,
779
779
  P,
780
- e,
780
+ t,
781
781
  this.state.context,
782
782
  this
783
- )), await ((v = (d = this.options).onSuccess) == null ? void 0 : v.call(d, P, e, this.state.context)), await ((p = (u = a(this, T).config).onSettled) == null ? void 0 : p.call(
783
+ )), await ((v = (d = this.options).onSuccess) == null ? void 0 : v.call(d, P, t, this.state.context)), await ((p = (u = a(this, T).config).onSettled) == null ? void 0 : p.call(
784
784
  u,
785
785
  P,
786
786
  null,
787
787
  this.state.variables,
788
788
  this.state.context,
789
789
  this
790
- )), await ((S = (E = this.options).onSettled) == null ? void 0 : S.call(E, P, null, e, this.state.context)), b(this, I, st).call(this, { type: "success", data: P }), P;
790
+ )), await ((S = (E = this.options).onSettled) == null ? void 0 : S.call(E, P, null, t, this.state.context)), b(this, I, se).call(this, { type: "success", data: P }), P;
791
791
  } catch (P) {
792
792
  try {
793
793
  throw await ((x = (j = a(this, T).config).onError) == null ? void 0 : x.call(
794
794
  j,
795
795
  P,
796
- e,
796
+ t,
797
797
  this.state.context,
798
798
  this
799
799
  )), await ((_ = (C = this.options).onError) == null ? void 0 : _.call(
800
800
  C,
801
801
  P,
802
- e,
802
+ t,
803
803
  this.state.context
804
804
  )), await ((F = (O = a(this, T).config).onSettled) == null ? void 0 : F.call(
805
805
  O,
@@ -812,24 +812,24 @@ var J, Be, rr = (Be = class extends Ut {
812
812
  Y,
813
813
  void 0,
814
814
  P,
815
- e,
815
+ t,
816
816
  this.state.context
817
817
  )), P;
818
818
  } finally {
819
- b(this, I, st).call(this, { type: "error", error: P });
819
+ b(this, I, se).call(this, { type: "error", error: P });
820
820
  }
821
821
  } finally {
822
822
  a(this, T).runNext(this);
823
823
  }
824
824
  }
825
- }, X = new WeakMap(), T = new WeakMap(), pt = new WeakMap(), I = new WeakSet(), st = function(e) {
825
+ }, X = new WeakMap(), T = new WeakMap(), pe = new WeakMap(), I = new WeakSet(), se = function(t) {
826
826
  const s = (r) => {
827
- switch (e.type) {
827
+ switch (t.type) {
828
828
  case "failed":
829
829
  return {
830
830
  ...r,
831
- failureCount: e.failureCount,
832
- failureReason: e.error
831
+ failureCount: t.failureCount,
832
+ failureReason: t.error
833
833
  };
834
834
  case "pause":
835
835
  return {
@@ -844,20 +844,20 @@ var J, Be, rr = (Be = class extends Ut {
844
844
  case "pending":
845
845
  return {
846
846
  ...r,
847
- context: e.context,
847
+ context: t.context,
848
848
  data: void 0,
849
849
  failureCount: 0,
850
850
  failureReason: null,
851
851
  error: null,
852
- isPaused: e.isPaused,
852
+ isPaused: t.isPaused,
853
853
  status: "pending",
854
- variables: e.variables,
854
+ variables: t.variables,
855
855
  submittedAt: Date.now()
856
856
  };
857
857
  case "success":
858
858
  return {
859
859
  ...r,
860
- data: e.data,
860
+ data: t.data,
861
861
  failureCount: 0,
862
862
  failureReason: null,
863
863
  error: null,
@@ -868,9 +868,9 @@ var J, Be, rr = (Be = class extends Ut {
868
868
  return {
869
869
  ...r,
870
870
  data: void 0,
871
- error: e.error,
871
+ error: t.error,
872
872
  failureCount: r.failureCount + 1,
873
- failureReason: e.error,
873
+ failureReason: t.error,
874
874
  isPaused: !1,
875
875
  status: "error"
876
876
  };
@@ -878,14 +878,14 @@ var J, Be, rr = (Be = class extends Ut {
878
878
  };
879
879
  this.state = s(this.state), R.batch(() => {
880
880
  a(this, X).forEach((r) => {
881
- r.onMutationUpdate(e);
881
+ r.onMutationUpdate(t);
882
882
  }), a(this, T).notify({
883
883
  mutation: this,
884
884
  type: "updated",
885
- action: e
885
+ action: t
886
886
  });
887
887
  });
888
- }, ts);
888
+ }, es);
889
889
  function fs() {
890
890
  return {
891
891
  context: void 0,
@@ -899,115 +899,115 @@ function fs() {
899
899
  submittedAt: 0
900
900
  };
901
901
  }
902
- var K, Kt, es, nr = (es = class extends Ut {
903
- constructor(e = {}) {
902
+ var K, Ke, ts, nr = (ts = class extends Ue {
903
+ constructor(t = {}) {
904
904
  super();
905
905
  g(this, K, void 0);
906
- g(this, Kt, void 0);
907
- this.config = e, f(this, K, /* @__PURE__ */ new Map()), f(this, Kt, Date.now());
906
+ g(this, Ke, void 0);
907
+ this.config = t, f(this, K, /* @__PURE__ */ new Map()), f(this, Ke, Date.now());
908
908
  }
909
- build(e, s, r) {
909
+ build(t, s, r) {
910
910
  const n = new ir({
911
911
  mutationCache: this,
912
- mutationId: ++ee(this, Kt)._,
913
- options: e.defaultMutationOptions(s),
912
+ mutationId: ++tt(this, Ke)._,
913
+ options: t.defaultMutationOptions(s),
914
914
  state: r
915
915
  });
916
916
  return this.add(n), n;
917
917
  }
918
- add(e) {
919
- const s = se(e), r = a(this, K).get(s) ?? [];
920
- r.push(e), a(this, K).set(s, r), this.notify({ type: "added", mutation: e });
918
+ add(t) {
919
+ const s = st(t), r = a(this, K).get(s) ?? [];
920
+ r.push(t), a(this, K).set(s, r), this.notify({ type: "added", mutation: t });
921
921
  }
922
- remove(e) {
922
+ remove(t) {
923
923
  var r;
924
- const s = se(e);
924
+ const s = st(t);
925
925
  if (a(this, K).has(s)) {
926
- const n = (r = a(this, K).get(s)) == null ? void 0 : r.filter((l) => l !== e);
926
+ const n = (r = a(this, K).get(s)) == null ? void 0 : r.filter((l) => l !== t);
927
927
  n && (n.length === 0 ? a(this, K).delete(s) : a(this, K).set(s, n));
928
928
  }
929
- this.notify({ type: "removed", mutation: e });
929
+ this.notify({ type: "removed", mutation: t });
930
930
  }
931
- canRun(e) {
931
+ canRun(t) {
932
932
  var r;
933
- const s = (r = a(this, K).get(se(e))) == null ? void 0 : r.find((n) => n.state.status === "pending");
934
- return !s || s === e;
933
+ const s = (r = a(this, K).get(st(t))) == null ? void 0 : r.find((n) => n.state.status === "pending");
934
+ return !s || s === t;
935
935
  }
936
- runNext(e) {
936
+ runNext(t) {
937
937
  var r;
938
- const s = (r = a(this, K).get(se(e))) == null ? void 0 : r.find((n) => n !== e && n.state.isPaused);
938
+ const s = (r = a(this, K).get(st(t))) == null ? void 0 : r.find((n) => n !== t && n.state.isPaused);
939
939
  return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
940
940
  }
941
941
  clear() {
942
942
  R.batch(() => {
943
- this.getAll().forEach((e) => {
944
- this.remove(e);
943
+ this.getAll().forEach((t) => {
944
+ this.remove(t);
945
945
  });
946
946
  });
947
947
  }
948
948
  getAll() {
949
949
  return [...a(this, K).values()].flat();
950
950
  }
951
- find(e) {
952
- const s = { exact: !0, ...e };
951
+ find(t) {
952
+ const s = { exact: !0, ...t };
953
953
  return this.getAll().find(
954
- (r) => Te(s, r)
954
+ (r) => Tt(s, r)
955
955
  );
956
956
  }
957
- findAll(e = {}) {
958
- return this.getAll().filter((s) => Te(e, s));
957
+ findAll(t = {}) {
958
+ return this.getAll().filter((s) => Tt(t, s));
959
959
  }
960
- notify(e) {
960
+ notify(t) {
961
961
  R.batch(() => {
962
962
  this.listeners.forEach((s) => {
963
- s(e);
963
+ s(t);
964
964
  });
965
965
  });
966
966
  }
967
967
  resumePausedMutations() {
968
- const e = this.getAll().filter((s) => s.state.isPaused);
968
+ const t = this.getAll().filter((s) => s.state.isPaused);
969
969
  return R.batch(
970
970
  () => Promise.all(
971
- e.map((s) => s.continue().catch(V))
971
+ t.map((s) => s.continue().catch(V))
972
972
  )
973
973
  );
974
974
  }
975
- }, K = new WeakMap(), Kt = new WeakMap(), es);
976
- function se(t) {
977
- var e;
978
- return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
975
+ }, K = new WeakMap(), Ke = new WeakMap(), ts);
976
+ function st(e) {
977
+ var t;
978
+ return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
979
979
  }
980
- function ar(t) {
980
+ function ar(e) {
981
981
  return {
982
- onFetch: (e, s) => {
982
+ onFetch: (t, s) => {
983
983
  const r = async () => {
984
984
  var E, S, j, x, C;
985
- const n = e.options, l = (j = (S = (E = e.fetchOptions) == null ? void 0 : E.meta) == null ? void 0 : S.fetchMore) == null ? void 0 : j.direction, o = ((x = e.state.data) == null ? void 0 : x.pages) || [], c = ((C = e.state.data) == null ? void 0 : C.pageParams) || [], m = { pages: [], pageParams: [] };
985
+ const n = t.options, l = (j = (S = (E = t.fetchOptions) == null ? void 0 : E.meta) == null ? void 0 : S.fetchMore) == null ? void 0 : j.direction, o = ((x = t.state.data) == null ? void 0 : x.pages) || [], c = ((C = t.state.data) == null ? void 0 : C.pageParams) || [], m = { pages: [], pageParams: [] };
986
986
  let y = !1;
987
987
  const d = (_) => {
988
988
  Object.defineProperty(_, "signal", {
989
989
  enumerable: !0,
990
- get: () => (e.signal.aborted ? y = !0 : e.signal.addEventListener("abort", () => {
990
+ get: () => (t.signal.aborted ? y = !0 : t.signal.addEventListener("abort", () => {
991
991
  y = !0;
992
- }), e.signal)
992
+ }), t.signal)
993
993
  });
994
- }, v = e.options.queryFn && e.options.queryFn !== Ne ? e.options.queryFn : () => Promise.reject(
995
- new Error(`Missing queryFn: '${e.options.queryHash}'`)
994
+ }, v = t.options.queryFn && t.options.queryFn !== Nt ? t.options.queryFn : () => Promise.reject(
995
+ new Error(`Missing queryFn: '${t.options.queryHash}'`)
996
996
  ), u = async (_, O, F) => {
997
997
  if (y)
998
998
  return Promise.reject();
999
999
  if (O == null && _.pages.length)
1000
1000
  return Promise.resolve(_);
1001
1001
  const Y = {
1002
- queryKey: e.queryKey,
1002
+ queryKey: t.queryKey,
1003
1003
  pageParam: O,
1004
1004
  direction: F ? "backward" : "forward",
1005
- meta: e.options.meta
1005
+ meta: t.options.meta
1006
1006
  };
1007
1007
  d(Y);
1008
1008
  const z = await v(
1009
1009
  Y
1010
- ), { maxPages: P } = e.options, W = F ? Js : zs;
1010
+ ), { maxPages: P } = t.options, W = F ? Js : zs;
1011
1011
  return {
1012
1012
  pages: W(_.pages, z, P),
1013
1013
  pageParams: W(_.pageParams, O, P)
@@ -1015,7 +1015,7 @@ function ar(t) {
1015
1015
  };
1016
1016
  let p;
1017
1017
  if (l && o.length) {
1018
- const _ = l === "backward", O = _ ? or : He, F = {
1018
+ const _ = l === "backward", O = _ ? or : Ht, F = {
1019
1019
  pages: o,
1020
1020
  pageParams: c
1021
1021
  }, Y = O(n, F);
@@ -1025,378 +1025,378 @@ function ar(t) {
1025
1025
  m,
1026
1026
  c[0] ?? n.initialPageParam
1027
1027
  );
1028
- const _ = t ?? o.length;
1028
+ const _ = e ?? o.length;
1029
1029
  for (let O = 1; O < _; O++) {
1030
- const F = He(n, p);
1030
+ const F = Ht(n, p);
1031
1031
  p = await u(p, F);
1032
1032
  }
1033
1033
  }
1034
1034
  return p;
1035
1035
  };
1036
- e.options.persister ? e.fetchFn = () => {
1036
+ t.options.persister ? t.fetchFn = () => {
1037
1037
  var n, l;
1038
- return (l = (n = e.options).persister) == null ? void 0 : l.call(
1038
+ return (l = (n = t.options).persister) == null ? void 0 : l.call(
1039
1039
  n,
1040
1040
  r,
1041
1041
  {
1042
- queryKey: e.queryKey,
1043
- meta: e.options.meta,
1044
- signal: e.signal
1042
+ queryKey: t.queryKey,
1043
+ meta: t.options.meta,
1044
+ signal: t.signal
1045
1045
  },
1046
1046
  s
1047
1047
  );
1048
- } : e.fetchFn = r;
1048
+ } : t.fetchFn = r;
1049
1049
  }
1050
1050
  };
1051
1051
  }
1052
- function He(t, { pages: e, pageParams: s }) {
1053
- const r = e.length - 1;
1054
- return t.getNextPageParam(
1055
- e[r],
1056
- e,
1052
+ function Ht(e, { pages: t, pageParams: s }) {
1053
+ const r = t.length - 1;
1054
+ return e.getNextPageParam(
1055
+ t[r],
1056
+ t,
1057
1057
  s[r],
1058
1058
  s
1059
1059
  );
1060
1060
  }
1061
- function or(t, { pages: e, pageParams: s }) {
1061
+ function or(e, { pages: t, pageParams: s }) {
1062
1062
  var r;
1063
- return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
1064
- t,
1065
- e[0],
1063
+ return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
1066
1064
  e,
1065
+ t[0],
1066
+ t,
1067
1067
  s[0],
1068
1068
  s
1069
1069
  );
1070
1070
  }
1071
- var M, nt, at, At, Nt, ot, kt, Ot, ss, ps = (ss = class {
1072
- constructor(t = {}) {
1071
+ var M, ne, ae, Ae, Ne, oe, ke, Oe, ss, ps = (ss = class {
1072
+ constructor(e = {}) {
1073
1073
  g(this, M, void 0);
1074
- g(this, nt, void 0);
1075
- g(this, at, void 0);
1076
- g(this, At, void 0);
1077
- g(this, Nt, void 0);
1078
- g(this, ot, void 0);
1079
- g(this, kt, void 0);
1080
- g(this, Ot, void 0);
1081
- f(this, M, t.queryCache || new rr()), f(this, nt, t.mutationCache || new nr()), f(this, at, t.defaultOptions || {}), f(this, At, /* @__PURE__ */ new Map()), f(this, Nt, /* @__PURE__ */ new Map()), f(this, ot, 0);
1074
+ g(this, ne, void 0);
1075
+ g(this, ae, void 0);
1076
+ g(this, Ae, void 0);
1077
+ g(this, Ne, void 0);
1078
+ g(this, oe, void 0);
1079
+ g(this, ke, void 0);
1080
+ g(this, Oe, void 0);
1081
+ f(this, M, e.queryCache || new rr()), f(this, ne, e.mutationCache || new nr()), f(this, ae, e.defaultOptions || {}), f(this, Ae, /* @__PURE__ */ new Map()), f(this, Ne, /* @__PURE__ */ new Map()), f(this, oe, 0);
1082
1082
  }
1083
1083
  mount() {
1084
- ee(this, ot)._++, a(this, ot) === 1 && (f(this, kt, ke.subscribe(async (t) => {
1085
- t && (await this.resumePausedMutations(), a(this, M).onFocus());
1086
- })), f(this, Ot, ne.subscribe(async (t) => {
1087
- t && (await this.resumePausedMutations(), a(this, M).onOnline());
1084
+ tt(this, oe)._++, a(this, oe) === 1 && (f(this, ke, kt.subscribe(async (e) => {
1085
+ e && (await this.resumePausedMutations(), a(this, M).onFocus());
1086
+ })), f(this, Oe, nt.subscribe(async (e) => {
1087
+ e && (await this.resumePausedMutations(), a(this, M).onOnline());
1088
1088
  })));
1089
1089
  }
1090
1090
  unmount() {
1091
- var t, e;
1092
- ee(this, ot)._--, a(this, ot) === 0 && ((t = a(this, kt)) == null || t.call(this), f(this, kt, void 0), (e = a(this, Ot)) == null || e.call(this), f(this, Ot, void 0));
1091
+ var e, t;
1092
+ tt(this, oe)._--, a(this, oe) === 0 && ((e = a(this, ke)) == null || e.call(this), f(this, ke, void 0), (t = a(this, Oe)) == null || t.call(this), f(this, Oe, void 0));
1093
1093
  }
1094
- isFetching(t) {
1095
- return a(this, M).findAll({ ...t, fetchStatus: "fetching" }).length;
1094
+ isFetching(e) {
1095
+ return a(this, M).findAll({ ...e, fetchStatus: "fetching" }).length;
1096
1096
  }
1097
- isMutating(t) {
1098
- return a(this, nt).findAll({ ...t, status: "pending" }).length;
1097
+ isMutating(e) {
1098
+ return a(this, ne).findAll({ ...e, status: "pending" }).length;
1099
1099
  }
1100
- getQueryData(t) {
1100
+ getQueryData(e) {
1101
1101
  var s;
1102
- const e = this.defaultQueryOptions({ queryKey: t });
1103
- return (s = a(this, M).get(e.queryHash)) == null ? void 0 : s.state.data;
1102
+ const t = this.defaultQueryOptions({ queryKey: e });
1103
+ return (s = a(this, M).get(t.queryHash)) == null ? void 0 : s.state.data;
1104
1104
  }
1105
- ensureQueryData(t) {
1106
- const e = this.getQueryData(t.queryKey);
1107
- if (e === void 0)
1108
- return this.fetchQuery(t);
1105
+ ensureQueryData(e) {
1106
+ const t = this.getQueryData(e.queryKey);
1107
+ if (t === void 0)
1108
+ return this.fetchQuery(e);
1109
1109
  {
1110
- const s = this.defaultQueryOptions(t), r = a(this, M).build(this, s);
1111
- return t.revalidateIfStale && r.isStaleByTime(s.staleTime) && this.prefetchQuery(s), Promise.resolve(e);
1110
+ const s = this.defaultQueryOptions(e), r = a(this, M).build(this, s);
1111
+ return e.revalidateIfStale && r.isStaleByTime(s.staleTime) && this.prefetchQuery(s), Promise.resolve(t);
1112
1112
  }
1113
1113
  }
1114
- getQueriesData(t) {
1115
- return a(this, M).findAll(t).map(({ queryKey: e, state: s }) => {
1114
+ getQueriesData(e) {
1115
+ return a(this, M).findAll(e).map(({ queryKey: t, state: s }) => {
1116
1116
  const r = s.data;
1117
- return [e, r];
1117
+ return [t, r];
1118
1118
  });
1119
1119
  }
1120
- setQueryData(t, e, s) {
1121
- const r = this.defaultQueryOptions({ queryKey: t }), n = a(this, M).get(
1120
+ setQueryData(e, t, s) {
1121
+ const r = this.defaultQueryOptions({ queryKey: e }), n = a(this, M).get(
1122
1122
  r.queryHash
1123
- ), l = n == null ? void 0 : n.state.data, o = Zs(e, l);
1123
+ ), l = n == null ? void 0 : n.state.data, o = Zs(t, l);
1124
1124
  if (o !== void 0)
1125
1125
  return a(this, M).build(this, r).setData(o, { ...s, manual: !0 });
1126
1126
  }
1127
- setQueriesData(t, e, s) {
1127
+ setQueriesData(e, t, s) {
1128
1128
  return R.batch(
1129
- () => a(this, M).findAll(t).map(({ queryKey: r }) => [
1129
+ () => a(this, M).findAll(e).map(({ queryKey: r }) => [
1130
1130
  r,
1131
- this.setQueryData(r, e, s)
1131
+ this.setQueryData(r, t, s)
1132
1132
  ])
1133
1133
  );
1134
1134
  }
1135
- getQueryState(t) {
1135
+ getQueryState(e) {
1136
1136
  var s;
1137
- const e = this.defaultQueryOptions({ queryKey: t });
1138
- return (s = a(this, M).get(e.queryHash)) == null ? void 0 : s.state;
1137
+ const t = this.defaultQueryOptions({ queryKey: e });
1138
+ return (s = a(this, M).get(t.queryHash)) == null ? void 0 : s.state;
1139
1139
  }
1140
- removeQueries(t) {
1141
- const e = a(this, M);
1140
+ removeQueries(e) {
1141
+ const t = a(this, M);
1142
1142
  R.batch(() => {
1143
- e.findAll(t).forEach((s) => {
1144
- e.remove(s);
1143
+ t.findAll(e).forEach((s) => {
1144
+ t.remove(s);
1145
1145
  });
1146
1146
  });
1147
1147
  }
1148
- resetQueries(t, e) {
1148
+ resetQueries(e, t) {
1149
1149
  const s = a(this, M), r = {
1150
1150
  type: "active",
1151
- ...t
1151
+ ...e
1152
1152
  };
1153
- return R.batch(() => (s.findAll(t).forEach((n) => {
1153
+ return R.batch(() => (s.findAll(e).forEach((n) => {
1154
1154
  n.reset();
1155
- }), this.refetchQueries(r, e)));
1155
+ }), this.refetchQueries(r, t)));
1156
1156
  }
1157
- cancelQueries(t = {}, e = {}) {
1158
- const s = { revert: !0, ...e }, r = R.batch(
1159
- () => a(this, M).findAll(t).map((n) => n.cancel(s))
1157
+ cancelQueries(e = {}, t = {}) {
1158
+ const s = { revert: !0, ...t }, r = R.batch(
1159
+ () => a(this, M).findAll(e).map((n) => n.cancel(s))
1160
1160
  );
1161
1161
  return Promise.all(r).then(V).catch(V);
1162
1162
  }
1163
- invalidateQueries(t = {}, e = {}) {
1163
+ invalidateQueries(e = {}, t = {}) {
1164
1164
  return R.batch(() => {
1165
- if (a(this, M).findAll(t).forEach((r) => {
1165
+ if (a(this, M).findAll(e).forEach((r) => {
1166
1166
  r.invalidate();
1167
- }), t.refetchType === "none")
1167
+ }), e.refetchType === "none")
1168
1168
  return Promise.resolve();
1169
1169
  const s = {
1170
- ...t,
1171
- type: t.refetchType ?? t.type ?? "active"
1170
+ ...e,
1171
+ type: e.refetchType ?? e.type ?? "active"
1172
1172
  };
1173
- return this.refetchQueries(s, e);
1173
+ return this.refetchQueries(s, t);
1174
1174
  });
1175
1175
  }
1176
- refetchQueries(t = {}, e) {
1176
+ refetchQueries(e = {}, t) {
1177
1177
  const s = {
1178
- ...e,
1179
- cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
1178
+ ...t,
1179
+ cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
1180
1180
  }, r = R.batch(
1181
- () => a(this, M).findAll(t).filter((n) => !n.isDisabled()).map((n) => {
1181
+ () => a(this, M).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
1182
1182
  let l = n.fetch(void 0, s);
1183
1183
  return s.throwOnError || (l = l.catch(V)), n.state.fetchStatus === "paused" ? Promise.resolve() : l;
1184
1184
  })
1185
1185
  );
1186
1186
  return Promise.all(r).then(V);
1187
1187
  }
1188
- fetchQuery(t) {
1189
- const e = this.defaultQueryOptions(t);
1190
- e.retry === void 0 && (e.retry = !1);
1191
- const s = a(this, M).build(this, e);
1192
- return s.isStaleByTime(e.staleTime) ? s.fetch(e) : Promise.resolve(s.state.data);
1188
+ fetchQuery(e) {
1189
+ const t = this.defaultQueryOptions(e);
1190
+ t.retry === void 0 && (t.retry = !1);
1191
+ const s = a(this, M).build(this, t);
1192
+ return s.isStaleByTime(t.staleTime) ? s.fetch(t) : Promise.resolve(s.state.data);
1193
1193
  }
1194
- prefetchQuery(t) {
1195
- return this.fetchQuery(t).then(V).catch(V);
1194
+ prefetchQuery(e) {
1195
+ return this.fetchQuery(e).then(V).catch(V);
1196
1196
  }
1197
- fetchInfiniteQuery(t) {
1198
- return t.behavior = ar(t.pages), this.fetchQuery(t);
1197
+ fetchInfiniteQuery(e) {
1198
+ return e.behavior = ar(e.pages), this.fetchQuery(e);
1199
1199
  }
1200
- prefetchInfiniteQuery(t) {
1201
- return this.fetchInfiniteQuery(t).then(V).catch(V);
1200
+ prefetchInfiniteQuery(e) {
1201
+ return this.fetchInfiniteQuery(e).then(V).catch(V);
1202
1202
  }
1203
1203
  resumePausedMutations() {
1204
- return ne.isOnline() ? a(this, nt).resumePausedMutations() : Promise.resolve();
1204
+ return nt.isOnline() ? a(this, ne).resumePausedMutations() : Promise.resolve();
1205
1205
  }
1206
1206
  getQueryCache() {
1207
1207
  return a(this, M);
1208
1208
  }
1209
1209
  getMutationCache() {
1210
- return a(this, nt);
1210
+ return a(this, ne);
1211
1211
  }
1212
1212
  getDefaultOptions() {
1213
- return a(this, at);
1213
+ return a(this, ae);
1214
1214
  }
1215
- setDefaultOptions(t) {
1216
- f(this, at, t);
1215
+ setDefaultOptions(e) {
1216
+ f(this, ae, e);
1217
1217
  }
1218
- setQueryDefaults(t, e) {
1219
- a(this, At).set(Ct(t), {
1220
- queryKey: t,
1221
- defaultOptions: e
1218
+ setQueryDefaults(e, t) {
1219
+ a(this, Ae).set(Ce(e), {
1220
+ queryKey: e,
1221
+ defaultOptions: t
1222
1222
  });
1223
1223
  }
1224
- getQueryDefaults(t) {
1225
- const e = [...a(this, At).values()];
1224
+ getQueryDefaults(e) {
1225
+ const t = [...a(this, Ae).values()];
1226
1226
  let s = {};
1227
- return e.forEach((r) => {
1228
- Ht(t, r.queryKey) && (s = { ...s, ...r.defaultOptions });
1227
+ return t.forEach((r) => {
1228
+ He(e, r.queryKey) && (s = { ...s, ...r.defaultOptions });
1229
1229
  }), s;
1230
1230
  }
1231
- setMutationDefaults(t, e) {
1232
- a(this, Nt).set(Ct(t), {
1233
- mutationKey: t,
1234
- defaultOptions: e
1231
+ setMutationDefaults(e, t) {
1232
+ a(this, Ne).set(Ce(e), {
1233
+ mutationKey: e,
1234
+ defaultOptions: t
1235
1235
  });
1236
1236
  }
1237
- getMutationDefaults(t) {
1238
- const e = [...a(this, Nt).values()];
1237
+ getMutationDefaults(e) {
1238
+ const t = [...a(this, Ne).values()];
1239
1239
  let s = {};
1240
- return e.forEach((r) => {
1241
- Ht(t, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
1240
+ return t.forEach((r) => {
1241
+ He(e, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
1242
1242
  }), s;
1243
1243
  }
1244
- defaultQueryOptions(t) {
1245
- if (t._defaulted)
1246
- return t;
1247
- const e = {
1248
- ...a(this, at).queries,
1249
- ...this.getQueryDefaults(t.queryKey),
1250
- ...t,
1244
+ defaultQueryOptions(e) {
1245
+ if (e._defaulted)
1246
+ return e;
1247
+ const t = {
1248
+ ...a(this, ae).queries,
1249
+ ...this.getQueryDefaults(e.queryKey),
1250
+ ...e,
1251
1251
  _defaulted: !0
1252
1252
  };
1253
- return e.queryHash || (e.queryHash = Ae(
1254
- e.queryKey,
1255
- e
1256
- )), 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 === Ne && (e.enabled = !1), e;
1253
+ return t.queryHash || (t.queryHash = At(
1254
+ t.queryKey,
1255
+ t
1256
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Nt && (t.enabled = !1), t;
1257
1257
  }
1258
- defaultMutationOptions(t) {
1259
- return t != null && t._defaulted ? t : {
1260
- ...a(this, at).mutations,
1261
- ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
1262
- ...t,
1258
+ defaultMutationOptions(e) {
1259
+ return e != null && e._defaulted ? e : {
1260
+ ...a(this, ae).mutations,
1261
+ ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
1262
+ ...e,
1263
1263
  _defaulted: !0
1264
1264
  };
1265
1265
  }
1266
1266
  clear() {
1267
- a(this, M).clear(), a(this, nt).clear();
1267
+ a(this, M).clear(), a(this, ne).clear();
1268
1268
  }
1269
- }, M = new WeakMap(), nt = new WeakMap(), at = new WeakMap(), At = new WeakMap(), Nt = new WeakMap(), ot = new WeakMap(), kt = new WeakMap(), Ot = new WeakMap(), ss), Q, k, qt, U, mt, Mt, B, Gt, Lt, Ft, vt, gt, lt, Rt, yt, Qt, Vt, ve, Wt, ge, Zt, ye, Yt, Ce, zt, xe, Jt, be, Xt, we, ce, ms, rs, lr = (rs = class extends Ut {
1270
- constructor(e, s) {
1269
+ }, M = new WeakMap(), ne = new WeakMap(), ae = new WeakMap(), Ae = new WeakMap(), Ne = new WeakMap(), oe = new WeakMap(), ke = new WeakMap(), Oe = new WeakMap(), ss), Q, k, qe, U, me, Me, B, Ge, Le, Fe, ve, ge, le, Re, ye, Qe, Ve, vt, We, gt, Ze, yt, Ye, Ct, ze, xt, Je, bt, Xe, wt, ct, ms, rs, lr = (rs = class extends Ue {
1270
+ constructor(t, s) {
1271
1271
  super();
1272
- g(this, yt);
1273
- g(this, Vt);
1274
- g(this, Wt);
1275
- g(this, Zt);
1276
- g(this, Yt);
1277
- g(this, zt);
1278
- g(this, Jt);
1279
- g(this, Xt);
1280
- g(this, ce);
1272
+ g(this, ye);
1273
+ g(this, Ve);
1274
+ g(this, We);
1275
+ g(this, Ze);
1276
+ g(this, Ye);
1277
+ g(this, ze);
1278
+ g(this, Je);
1279
+ g(this, Xe);
1280
+ g(this, ct);
1281
1281
  g(this, Q, void 0);
1282
1282
  g(this, k, void 0);
1283
- g(this, qt, void 0);
1283
+ g(this, qe, void 0);
1284
1284
  g(this, U, void 0);
1285
- g(this, mt, void 0);
1286
- g(this, Mt, void 0);
1285
+ g(this, me, void 0);
1286
+ g(this, Me, void 0);
1287
1287
  g(this, B, void 0);
1288
- g(this, Gt, void 0);
1289
- g(this, Lt, void 0);
1288
+ g(this, Ge, void 0);
1289
+ g(this, Le, void 0);
1290
1290
  // This property keeps track of the last query with defined data.
1291
1291
  // It will be used to pass the previous data and query to the placeholder function between renders.
1292
- g(this, Ft, void 0);
1293
- g(this, vt, void 0);
1294
- g(this, gt, void 0);
1295
- g(this, lt, void 0);
1296
- g(this, Rt, /* @__PURE__ */ new Set());
1297
- this.options = s, f(this, Q, e), f(this, B, null), this.bindMethods(), this.setOptions(s);
1292
+ g(this, Fe, void 0);
1293
+ g(this, ve, void 0);
1294
+ g(this, ge, void 0);
1295
+ g(this, le, void 0);
1296
+ g(this, Re, /* @__PURE__ */ new Set());
1297
+ this.options = s, f(this, Q, t), f(this, B, null), this.bindMethods(), this.setOptions(s);
1298
1298
  }
1299
1299
  bindMethods() {
1300
1300
  this.refetch = this.refetch.bind(this);
1301
1301
  }
1302
1302
  onSubscribe() {
1303
- this.listeners.size === 1 && (a(this, k).addObserver(this), $e(a(this, k), this.options) ? b(this, yt, Qt).call(this) : this.updateResult(), b(this, Yt, Ce).call(this));
1303
+ this.listeners.size === 1 && (a(this, k).addObserver(this), $t(a(this, k), this.options) ? b(this, ye, Qe).call(this) : this.updateResult(), b(this, Ye, Ct).call(this));
1304
1304
  }
1305
1305
  onUnsubscribe() {
1306
1306
  this.hasListeners() || this.destroy();
1307
1307
  }
1308
1308
  shouldFetchOnReconnect() {
1309
- return je(
1309
+ return jt(
1310
1310
  a(this, k),
1311
1311
  this.options,
1312
1312
  this.options.refetchOnReconnect
1313
1313
  );
1314
1314
  }
1315
1315
  shouldFetchOnWindowFocus() {
1316
- return je(
1316
+ return jt(
1317
1317
  a(this, k),
1318
1318
  this.options,
1319
1319
  this.options.refetchOnWindowFocus
1320
1320
  );
1321
1321
  }
1322
1322
  destroy() {
1323
- this.listeners = /* @__PURE__ */ new Set(), b(this, zt, xe).call(this), b(this, Jt, be).call(this), a(this, k).removeObserver(this);
1323
+ this.listeners = /* @__PURE__ */ new Set(), b(this, ze, xt).call(this), b(this, Je, bt).call(this), a(this, k).removeObserver(this);
1324
1324
  }
1325
- setOptions(e, s) {
1325
+ setOptions(t, s) {
1326
1326
  const r = this.options, n = a(this, k);
1327
- if (this.options = a(this, Q).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean")
1327
+ if (this.options = a(this, Q).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean")
1328
1328
  throw new Error("Expected enabled to be a boolean");
1329
- b(this, Xt, we).call(this), a(this, k).setOptions(this.options), r._defaulted && !ie(this.options, r) && a(this, Q).getQueryCache().notify({
1329
+ b(this, Xe, wt).call(this), a(this, k).setOptions(this.options), r._defaulted && !it(this.options, r) && a(this, Q).getQueryCache().notify({
1330
1330
  type: "observerOptionsUpdated",
1331
1331
  query: a(this, k),
1332
1332
  observer: this
1333
1333
  });
1334
1334
  const l = this.hasListeners();
1335
- l && Ke(
1335
+ l && Kt(
1336
1336
  a(this, k),
1337
1337
  n,
1338
1338
  this.options,
1339
1339
  r
1340
- ) && b(this, yt, Qt).call(this), this.updateResult(s), l && (a(this, k) !== n || this.options.enabled !== r.enabled || this.options.staleTime !== r.staleTime) && b(this, Vt, ve).call(this);
1341
- const o = b(this, Wt, ge).call(this);
1342
- l && (a(this, k) !== n || this.options.enabled !== r.enabled || o !== a(this, lt)) && b(this, Zt, ye).call(this, o);
1340
+ ) && b(this, ye, Qe).call(this), this.updateResult(s), l && (a(this, k) !== n || this.options.enabled !== r.enabled || this.options.staleTime !== r.staleTime) && b(this, Ve, vt).call(this);
1341
+ const o = b(this, We, gt).call(this);
1342
+ l && (a(this, k) !== n || this.options.enabled !== r.enabled || o !== a(this, le)) && b(this, Ze, yt).call(this, o);
1343
1343
  }
1344
- getOptimisticResult(e) {
1345
- const s = a(this, Q).getQueryCache().build(a(this, Q), e), r = this.createResult(s, e);
1346
- return ur(this, r) && (f(this, U, r), f(this, Mt, this.options), f(this, mt, a(this, k).state)), r;
1344
+ getOptimisticResult(t) {
1345
+ const s = a(this, Q).getQueryCache().build(a(this, Q), t), r = this.createResult(s, t);
1346
+ return ur(this, r) && (f(this, U, r), f(this, Me, this.options), f(this, me, a(this, k).state)), r;
1347
1347
  }
1348
1348
  getCurrentResult() {
1349
1349
  return a(this, U);
1350
1350
  }
1351
- trackResult(e, s) {
1351
+ trackResult(t, s) {
1352
1352
  const r = {};
1353
- return Object.keys(e).forEach((n) => {
1353
+ return Object.keys(t).forEach((n) => {
1354
1354
  Object.defineProperty(r, n, {
1355
1355
  configurable: !1,
1356
1356
  enumerable: !0,
1357
- get: () => (this.trackProp(n), s == null || s(n), e[n])
1357
+ get: () => (this.trackProp(n), s == null || s(n), t[n])
1358
1358
  });
1359
1359
  }), r;
1360
1360
  }
1361
- trackProp(e) {
1362
- a(this, Rt).add(e);
1361
+ trackProp(t) {
1362
+ a(this, Re).add(t);
1363
1363
  }
1364
1364
  getCurrentQuery() {
1365
1365
  return a(this, k);
1366
1366
  }
1367
- refetch({ ...e } = {}) {
1367
+ refetch({ ...t } = {}) {
1368
1368
  return this.fetch({
1369
- ...e
1369
+ ...t
1370
1370
  });
1371
1371
  }
1372
- fetchOptimistic(e) {
1373
- const s = a(this, Q).defaultQueryOptions(e), r = a(this, Q).getQueryCache().build(a(this, Q), s);
1372
+ fetchOptimistic(t) {
1373
+ const s = a(this, Q).defaultQueryOptions(t), r = a(this, Q).getQueryCache().build(a(this, Q), s);
1374
1374
  return r.isFetchingOptimistic = !0, r.fetch().then(() => this.createResult(r, s));
1375
1375
  }
1376
- fetch(e) {
1377
- return b(this, yt, Qt).call(this, {
1378
- ...e,
1379
- cancelRefetch: e.cancelRefetch ?? !0
1376
+ fetch(t) {
1377
+ return b(this, ye, Qe).call(this, {
1378
+ ...t,
1379
+ cancelRefetch: t.cancelRefetch ?? !0
1380
1380
  }).then(() => (this.updateResult(), a(this, U)));
1381
1381
  }
1382
- createResult(e, s) {
1382
+ createResult(t, s) {
1383
1383
  var z;
1384
- const r = a(this, k), n = this.options, l = a(this, U), o = a(this, mt), c = a(this, Mt), y = e !== r ? e.state : a(this, qt), { state: d } = e;
1384
+ const r = a(this, k), n = this.options, l = a(this, U), o = a(this, me), c = a(this, Me), y = t !== r ? t.state : a(this, qe), { state: d } = t;
1385
1385
  let v = { ...d }, u = !1, p;
1386
1386
  if (s._optimisticResults) {
1387
- const P = this.hasListeners(), W = !P && $e(e, s), Hs = P && Ke(e, r, s, n);
1387
+ const P = this.hasListeners(), W = !P && $t(t, s), Hs = P && Kt(t, r, s, n);
1388
1388
  (W || Hs) && (v = {
1389
1389
  ...v,
1390
- ...ds(d.data, e.options)
1390
+ ...ds(d.data, t.options)
1391
1391
  }), s._optimisticResults === "isRestoring" && (v.fetchStatus = "idle");
1392
1392
  }
1393
1393
  let { error: E, errorUpdatedAt: S, status: j } = v;
1394
1394
  if (s.select && v.data !== void 0)
1395
- if (l && v.data === (o == null ? void 0 : o.data) && s.select === a(this, Gt))
1396
- p = a(this, Lt);
1395
+ if (l && v.data === (o == null ? void 0 : o.data) && s.select === a(this, Ge))
1396
+ p = a(this, Le);
1397
1397
  else
1398
1398
  try {
1399
- f(this, Gt, s.select), p = s.select(v.data), p = me(l == null ? void 0 : l.data, p, s), f(this, Lt, p), f(this, B, null);
1399
+ f(this, Ge, s.select), p = s.select(v.data), p = mt(l == null ? void 0 : l.data, p, s), f(this, Le, p), f(this, B, null);
1400
1400
  } catch (P) {
1401
1401
  f(this, B, P);
1402
1402
  }
@@ -1407,21 +1407,21 @@ var M, nt, at, At, Nt, ot, kt, Ot, ss, ps = (ss = class {
1407
1407
  if (l != null && l.isPlaceholderData && s.placeholderData === (c == null ? void 0 : c.placeholderData))
1408
1408
  P = l.data;
1409
1409
  else if (P = typeof s.placeholderData == "function" ? s.placeholderData(
1410
- (z = a(this, Ft)) == null ? void 0 : z.state.data,
1411
- a(this, Ft)
1410
+ (z = a(this, Fe)) == null ? void 0 : z.state.data,
1411
+ a(this, Fe)
1412
1412
  ) : s.placeholderData, s.select && P !== void 0)
1413
1413
  try {
1414
1414
  P = s.select(P), f(this, B, null);
1415
1415
  } catch (W) {
1416
1416
  f(this, B, W);
1417
1417
  }
1418
- P !== void 0 && (j = "success", p = me(
1418
+ P !== void 0 && (j = "success", p = mt(
1419
1419
  l == null ? void 0 : l.data,
1420
1420
  P,
1421
1421
  s
1422
1422
  ), u = !0);
1423
1423
  }
1424
- a(this, B) && (E = a(this, B), p = a(this, Lt), S = Date.now(), j = "error");
1424
+ a(this, B) && (E = a(this, B), p = a(this, Le), S = Date.now(), j = "error");
1425
1425
  const x = v.fetchStatus === "fetching", C = j === "pending", _ = j === "error", O = C && x, F = p !== void 0;
1426
1426
  return {
1427
1427
  status: j,
@@ -1446,72 +1446,72 @@ var M, nt, at, At, Nt, ot, kt, Ot, ss, ps = (ss = class {
1446
1446
  isPaused: v.fetchStatus === "paused",
1447
1447
  isPlaceholderData: u,
1448
1448
  isRefetchError: _ && F,
1449
- isStale: Oe(e, s),
1449
+ isStale: Ot(t, s),
1450
1450
  refetch: this.refetch
1451
1451
  };
1452
1452
  }
1453
- updateResult(e) {
1453
+ updateResult(t) {
1454
1454
  const s = a(this, U), r = this.createResult(a(this, k), this.options);
1455
- if (f(this, mt, a(this, k).state), f(this, Mt, this.options), a(this, mt).data !== void 0 && f(this, Ft, a(this, k)), ie(r, s))
1455
+ if (f(this, me, a(this, k).state), f(this, Me, this.options), a(this, me).data !== void 0 && f(this, Fe, a(this, k)), it(r, s))
1456
1456
  return;
1457
1457
  f(this, U, r);
1458
1458
  const n = {}, l = () => {
1459
1459
  if (!s)
1460
1460
  return !0;
1461
1461
  const { notifyOnChangeProps: o } = this.options, c = typeof o == "function" ? o() : o;
1462
- if (c === "all" || !c && !a(this, Rt).size)
1462
+ if (c === "all" || !c && !a(this, Re).size)
1463
1463
  return !0;
1464
1464
  const m = new Set(
1465
- c ?? a(this, Rt)
1465
+ c ?? a(this, Re)
1466
1466
  );
1467
1467
  return this.options.throwOnError && m.add("error"), Object.keys(a(this, U)).some((y) => {
1468
1468
  const d = y;
1469
1469
  return a(this, U)[d] !== s[d] && m.has(d);
1470
1470
  });
1471
1471
  };
1472
- (e == null ? void 0 : e.listeners) !== !1 && l() && (n.listeners = !0), b(this, ce, ms).call(this, { ...n, ...e });
1472
+ (t == null ? void 0 : t.listeners) !== !1 && l() && (n.listeners = !0), b(this, ct, ms).call(this, { ...n, ...t });
1473
1473
  }
1474
1474
  onQueryUpdate() {
1475
- this.updateResult(), this.hasListeners() && b(this, Yt, Ce).call(this);
1475
+ this.updateResult(), this.hasListeners() && b(this, Ye, Ct).call(this);
1476
1476
  }
1477
- }, Q = new WeakMap(), k = new WeakMap(), qt = new WeakMap(), U = new WeakMap(), mt = new WeakMap(), Mt = new WeakMap(), B = new WeakMap(), Gt = new WeakMap(), Lt = new WeakMap(), Ft = new WeakMap(), vt = new WeakMap(), gt = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), yt = new WeakSet(), Qt = function(e) {
1478
- b(this, Xt, we).call(this);
1477
+ }, Q = new WeakMap(), k = new WeakMap(), qe = new WeakMap(), U = new WeakMap(), me = new WeakMap(), Me = new WeakMap(), B = new WeakMap(), Ge = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), ve = new WeakMap(), ge = new WeakMap(), le = new WeakMap(), Re = new WeakMap(), ye = new WeakSet(), Qe = function(t) {
1478
+ b(this, Xe, wt).call(this);
1479
1479
  let s = a(this, k).fetch(
1480
1480
  this.options,
1481
- e
1481
+ t
1482
1482
  );
1483
- return e != null && e.throwOnError || (s = s.catch(V)), s;
1484
- }, Vt = new WeakSet(), ve = function() {
1485
- if (b(this, zt, xe).call(this), Tt || a(this, U).isStale || !fe(this.options.staleTime))
1483
+ return t != null && t.throwOnError || (s = s.catch(V)), s;
1484
+ }, Ve = new WeakSet(), vt = function() {
1485
+ if (b(this, ze, xt).call(this), Te || a(this, U).isStale || !ft(this.options.staleTime))
1486
1486
  return;
1487
1487
  const s = as(
1488
1488
  a(this, U).dataUpdatedAt,
1489
1489
  this.options.staleTime
1490
1490
  ) + 1;
1491
- f(this, vt, setTimeout(() => {
1491
+ f(this, ve, setTimeout(() => {
1492
1492
  a(this, U).isStale || this.updateResult();
1493
1493
  }, s));
1494
- }, Wt = new WeakSet(), ge = function() {
1494
+ }, We = new WeakSet(), gt = function() {
1495
1495
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(a(this, k)) : this.options.refetchInterval) ?? !1;
1496
- }, Zt = new WeakSet(), ye = function(e) {
1497
- b(this, Jt, be).call(this), f(this, lt, e), !(Tt || this.options.enabled === !1 || !fe(a(this, lt)) || a(this, lt) === 0) && f(this, gt, setInterval(() => {
1498
- (this.options.refetchIntervalInBackground || ke.isFocused()) && b(this, yt, Qt).call(this);
1499
- }, a(this, lt)));
1500
- }, Yt = new WeakSet(), Ce = function() {
1501
- b(this, Vt, ve).call(this), b(this, Zt, ye).call(this, b(this, Wt, ge).call(this));
1502
- }, zt = new WeakSet(), xe = function() {
1503
- a(this, vt) && (clearTimeout(a(this, vt)), f(this, vt, void 0));
1504
- }, Jt = new WeakSet(), be = function() {
1505
- a(this, gt) && (clearInterval(a(this, gt)), f(this, gt, void 0));
1506
- }, Xt = new WeakSet(), we = function() {
1507
- const e = a(this, Q).getQueryCache().build(a(this, Q), this.options);
1508
- if (e === a(this, k))
1496
+ }, Ze = new WeakSet(), yt = function(t) {
1497
+ b(this, Je, bt).call(this), f(this, le, t), !(Te || this.options.enabled === !1 || !ft(a(this, le)) || a(this, le) === 0) && f(this, ge, setInterval(() => {
1498
+ (this.options.refetchIntervalInBackground || kt.isFocused()) && b(this, ye, Qe).call(this);
1499
+ }, a(this, le)));
1500
+ }, Ye = new WeakSet(), Ct = function() {
1501
+ b(this, Ve, vt).call(this), b(this, Ze, yt).call(this, b(this, We, gt).call(this));
1502
+ }, ze = new WeakSet(), xt = function() {
1503
+ a(this, ve) && (clearTimeout(a(this, ve)), f(this, ve, void 0));
1504
+ }, Je = new WeakSet(), bt = function() {
1505
+ a(this, ge) && (clearInterval(a(this, ge)), f(this, ge, void 0));
1506
+ }, Xe = new WeakSet(), wt = function() {
1507
+ const t = a(this, Q).getQueryCache().build(a(this, Q), this.options);
1508
+ if (t === a(this, k))
1509
1509
  return;
1510
1510
  const s = a(this, k);
1511
- f(this, k, e), f(this, qt, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
1512
- }, ce = new WeakSet(), ms = function(e) {
1511
+ f(this, k, t), f(this, qe, t.state), this.hasListeners() && (s == null || s.removeObserver(this), t.addObserver(this));
1512
+ }, ct = new WeakSet(), ms = function(t) {
1513
1513
  R.batch(() => {
1514
- e.listeners && this.listeners.forEach((s) => {
1514
+ t.listeners && this.listeners.forEach((s) => {
1515
1515
  s(a(this, U));
1516
1516
  }), a(this, Q).getQueryCache().notify({
1517
1517
  query: a(this, k),
@@ -1519,153 +1519,151 @@ var M, nt, at, At, Nt, ot, kt, Ot, ss, ps = (ss = class {
1519
1519
  });
1520
1520
  });
1521
1521
  }, rs);
1522
- function cr(t, e) {
1523
- return e.enabled !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
1522
+ function cr(e, t) {
1523
+ return t.enabled !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
1524
1524
  }
1525
- function $e(t, e) {
1526
- return cr(t, e) || t.state.data !== void 0 && je(t, e, e.refetchOnMount);
1525
+ function $t(e, t) {
1526
+ return cr(e, t) || e.state.data !== void 0 && jt(e, t, t.refetchOnMount);
1527
1527
  }
1528
- function je(t, e, s) {
1529
- if (e.enabled !== !1) {
1530
- const r = typeof s == "function" ? s(t) : s;
1531
- return r === "always" || r !== !1 && Oe(t, e);
1528
+ function jt(e, t, s) {
1529
+ if (t.enabled !== !1) {
1530
+ const r = typeof s == "function" ? s(e) : s;
1531
+ return r === "always" || r !== !1 && Ot(e, t);
1532
1532
  }
1533
1533
  return !1;
1534
1534
  }
1535
- function Ke(t, e, s, r) {
1536
- return (t !== e || r.enabled === !1) && (!s.suspense || t.state.status !== "error") && Oe(t, s);
1535
+ function Kt(e, t, s, r) {
1536
+ return (e !== t || r.enabled === !1) && (!s.suspense || e.state.status !== "error") && Ot(e, s);
1537
1537
  }
1538
- function Oe(t, e) {
1539
- return e.enabled !== !1 && t.isStaleByTime(e.staleTime);
1538
+ function Ot(e, t) {
1539
+ return t.enabled !== !1 && e.isStaleByTime(t.staleTime);
1540
1540
  }
1541
- function ur(t, e) {
1542
- return !ie(t.getCurrentResult(), e);
1541
+ function ur(e, t) {
1542
+ return !it(e.getCurrentResult(), t);
1543
1543
  }
1544
- var ct, ut, H, et, Dt, re, It, _e, is, hr = (is = class extends Ut {
1545
- constructor(e, s) {
1544
+ var ce, ue, H, te, De, rt, Ie, _t, is, hr = (is = class extends Ue {
1545
+ constructor(t, s) {
1546
1546
  super();
1547
- g(this, Dt);
1548
- g(this, It);
1549
- g(this, ct, void 0);
1550
- g(this, ut, void 0);
1547
+ g(this, De);
1548
+ g(this, Ie);
1549
+ g(this, ce, void 0);
1550
+ g(this, ue, void 0);
1551
1551
  g(this, H, void 0);
1552
- g(this, et, void 0);
1553
- f(this, ct, e), this.setOptions(s), this.bindMethods(), b(this, Dt, re).call(this);
1552
+ g(this, te, void 0);
1553
+ f(this, ce, t), this.setOptions(s), this.bindMethods(), b(this, De, rt).call(this);
1554
1554
  }
1555
1555
  bindMethods() {
1556
1556
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
1557
1557
  }
1558
- setOptions(e) {
1558
+ setOptions(t) {
1559
1559
  var r;
1560
1560
  const s = this.options;
1561
- this.options = a(this, ct).defaultMutationOptions(e), ie(this.options, s) || a(this, ct).getMutationCache().notify({
1561
+ this.options = a(this, ce).defaultMutationOptions(t), it(this.options, s) || a(this, ce).getMutationCache().notify({
1562
1562
  type: "observerOptionsUpdated",
1563
1563
  mutation: a(this, H),
1564
1564
  observer: this
1565
- }), s != null && s.mutationKey && this.options.mutationKey && Ct(s.mutationKey) !== Ct(this.options.mutationKey) ? this.reset() : ((r = a(this, H)) == null ? void 0 : r.state.status) === "pending" && a(this, H).setOptions(this.options);
1565
+ }), s != null && s.mutationKey && this.options.mutationKey && Ce(s.mutationKey) !== Ce(this.options.mutationKey) ? this.reset() : ((r = a(this, H)) == null ? void 0 : r.state.status) === "pending" && a(this, H).setOptions(this.options);
1566
1566
  }
1567
1567
  onUnsubscribe() {
1568
- var e;
1569
- this.hasListeners() || (e = a(this, H)) == null || e.removeObserver(this);
1568
+ var t;
1569
+ this.hasListeners() || (t = a(this, H)) == null || t.removeObserver(this);
1570
1570
  }
1571
- onMutationUpdate(e) {
1572
- b(this, Dt, re).call(this), b(this, It, _e).call(this, e);
1571
+ onMutationUpdate(t) {
1572
+ b(this, De, rt).call(this), b(this, Ie, _t).call(this, t);
1573
1573
  }
1574
1574
  getCurrentResult() {
1575
- return a(this, ut);
1575
+ return a(this, ue);
1576
1576
  }
1577
1577
  reset() {
1578
- var e;
1579
- (e = a(this, H)) == null || e.removeObserver(this), f(this, H, void 0), b(this, Dt, re).call(this), b(this, It, _e).call(this);
1578
+ var t;
1579
+ (t = a(this, H)) == null || t.removeObserver(this), f(this, H, void 0), b(this, De, rt).call(this), b(this, Ie, _t).call(this);
1580
1580
  }
1581
- mutate(e, s) {
1581
+ mutate(t, s) {
1582
1582
  var r;
1583
- return f(this, et, s), (r = a(this, H)) == null || r.removeObserver(this), f(this, H, a(this, ct).getMutationCache().build(a(this, ct), this.options)), a(this, H).addObserver(this), a(this, H).execute(e);
1583
+ return f(this, te, s), (r = a(this, H)) == null || r.removeObserver(this), f(this, H, a(this, ce).getMutationCache().build(a(this, ce), this.options)), a(this, H).addObserver(this), a(this, H).execute(t);
1584
1584
  }
1585
- }, ct = new WeakMap(), ut = new WeakMap(), H = new WeakMap(), et = new WeakMap(), Dt = new WeakSet(), re = function() {
1585
+ }, ce = new WeakMap(), ue = new WeakMap(), H = new WeakMap(), te = new WeakMap(), De = new WeakSet(), rt = function() {
1586
1586
  var s;
1587
- const e = ((s = a(this, H)) == null ? void 0 : s.state) ?? fs();
1588
- f(this, ut, {
1589
- ...e,
1590
- isPending: e.status === "pending",
1591
- isSuccess: e.status === "success",
1592
- isError: e.status === "error",
1593
- isIdle: e.status === "idle",
1587
+ const t = ((s = a(this, H)) == null ? void 0 : s.state) ?? fs();
1588
+ f(this, ue, {
1589
+ ...t,
1590
+ isPending: t.status === "pending",
1591
+ isSuccess: t.status === "success",
1592
+ isError: t.status === "error",
1593
+ isIdle: t.status === "idle",
1594
1594
  mutate: this.mutate,
1595
1595
  reset: this.reset
1596
1596
  });
1597
- }, It = new WeakSet(), _e = function(e) {
1597
+ }, Ie = new WeakSet(), _t = function(t) {
1598
1598
  R.batch(() => {
1599
1599
  var s, r, n, l, o, c, m, y;
1600
- if (a(this, et) && this.hasListeners()) {
1601
- const d = a(this, ut).variables, v = a(this, ut).context;
1602
- (e == null ? void 0 : e.type) === "success" ? ((r = (s = a(this, et)).onSuccess) == null || r.call(s, e.data, d, v), (l = (n = a(this, et)).onSettled) == null || l.call(n, e.data, null, d, v)) : (e == null ? void 0 : e.type) === "error" && ((c = (o = a(this, et)).onError) == null || c.call(o, e.error, d, v), (y = (m = a(this, et)).onSettled) == null || y.call(
1600
+ if (a(this, te) && this.hasListeners()) {
1601
+ const d = a(this, ue).variables, v = a(this, ue).context;
1602
+ (t == null ? void 0 : t.type) === "success" ? ((r = (s = a(this, te)).onSuccess) == null || r.call(s, t.data, d, v), (l = (n = a(this, te)).onSettled) == null || l.call(n, t.data, null, d, v)) : (t == null ? void 0 : t.type) === "error" && ((c = (o = a(this, te)).onError) == null || c.call(o, t.error, d, v), (y = (m = a(this, te)).onSettled) == null || y.call(
1603
1603
  m,
1604
1604
  void 0,
1605
- e.error,
1605
+ t.error,
1606
1606
  d,
1607
1607
  v
1608
1608
  ));
1609
1609
  }
1610
1610
  this.listeners.forEach((d) => {
1611
- d(a(this, ut));
1611
+ d(a(this, ue));
1612
1612
  });
1613
1613
  });
1614
1614
  }, is), vs = h.createContext(
1615
1615
  void 0
1616
- ), Me = (t) => {
1617
- const e = h.useContext(vs);
1618
- if (t)
1619
- return t;
1620
- if (!e)
1616
+ ), Mt = (e) => {
1617
+ const t = h.useContext(vs);
1618
+ if (!t)
1621
1619
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1622
- return e;
1620
+ return t;
1623
1621
  }, dr = ({
1624
- client: t,
1625
- children: e
1626
- }) => (h.useEffect(() => (t.mount(), () => {
1627
- t.unmount();
1628
- }), [t]), /* @__PURE__ */ i.jsx(vs.Provider, { value: t, children: e })), gs = h.createContext(!1), fr = () => h.useContext(gs);
1622
+ client: e,
1623
+ children: t
1624
+ }) => (h.useEffect(() => (e.mount(), () => {
1625
+ e.unmount();
1626
+ }), [e]), /* @__PURE__ */ i.jsx(vs.Provider, { value: e, children: t })), gs = h.createContext(!1), fr = () => h.useContext(gs);
1629
1627
  gs.Provider;
1630
1628
  function pr() {
1631
- let t = !1;
1629
+ let e = !1;
1632
1630
  return {
1633
1631
  clearReset: () => {
1634
- t = !1;
1632
+ e = !1;
1635
1633
  },
1636
1634
  reset: () => {
1637
- t = !0;
1635
+ e = !0;
1638
1636
  },
1639
- isReset: () => t
1637
+ isReset: () => e
1640
1638
  };
1641
1639
  }
1642
1640
  var mr = h.createContext(pr()), vr = () => h.useContext(mr);
1643
- function ys(t, e) {
1644
- return typeof t == "function" ? t(...e) : !!t;
1641
+ function ys(e, t) {
1642
+ return typeof e == "function" ? e(...t) : !!e;
1645
1643
  }
1646
1644
  function gr() {
1647
1645
  }
1648
- var yr = (t, e) => {
1649
- (t.suspense || t.throwOnError) && (e.isReset() || (t.retryOnMount = !1));
1650
- }, Cr = (t) => {
1646
+ var yr = (e, t) => {
1647
+ (e.suspense || e.throwOnError) && (t.isReset() || (e.retryOnMount = !1));
1648
+ }, Cr = (e) => {
1651
1649
  h.useEffect(() => {
1652
- t.clearReset();
1653
- }, [t]);
1650
+ e.clearReset();
1651
+ }, [e]);
1654
1652
  }, xr = ({
1655
- result: t,
1656
- errorResetBoundary: e,
1653
+ result: e,
1654
+ errorResetBoundary: t,
1657
1655
  throwOnError: s,
1658
1656
  query: r
1659
- }) => t.isError && !e.isReset() && !t.isFetching && r && ys(s, [t.error, r]), br = (t) => {
1660
- t.suspense && typeof t.staleTime != "number" && (t.staleTime = 1e3);
1661
- }, wr = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, jr = (t, e, s) => e.fetchOptimistic(t).catch(() => {
1657
+ }) => e.isError && !t.isReset() && !e.isFetching && r && ys(s, [e.error, r]), br = (e) => {
1658
+ e.suspense && typeof e.staleTime != "number" && (e.staleTime = 1e3);
1659
+ }, wr = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, jr = (e, t, s) => t.fetchOptimistic(e).catch(() => {
1662
1660
  s.clearReset();
1663
1661
  });
1664
- function _r(t, e, s) {
1665
- const r = Me(s), n = fr(), l = vr(), o = r.defaultQueryOptions(t);
1662
+ function _r(e, t, s) {
1663
+ const r = Mt(), n = fr(), l = vr(), o = r.defaultQueryOptions(e);
1666
1664
  o._optimisticResults = n ? "isRestoring" : "optimistic", br(o), yr(o, l), Cr(l);
1667
1665
  const [c] = h.useState(
1668
- () => new e(
1666
+ () => new t(
1669
1667
  r,
1670
1668
  o
1671
1669
  )
@@ -1694,19 +1692,19 @@ function _r(t, e, s) {
1694
1692
  throw m.error;
1695
1693
  return o.notifyOnChangeProps ? m : c.trackResult(m);
1696
1694
  }
1697
- function Cs(t, e) {
1698
- return _r(t, lr, e);
1695
+ function Cs(e, t) {
1696
+ return _r(e, lr);
1699
1697
  }
1700
- function Sr(t, e) {
1701
- const s = Me(e), [r] = h.useState(
1698
+ function Sr(e, t) {
1699
+ const s = Mt(), [r] = h.useState(
1702
1700
  () => new hr(
1703
1701
  s,
1704
- t
1702
+ e
1705
1703
  )
1706
1704
  );
1707
1705
  h.useEffect(() => {
1708
- r.setOptions(t);
1709
- }, [r, t]);
1706
+ r.setOptions(e);
1707
+ }, [r, e]);
1710
1708
  const n = h.useSyncExternalStore(
1711
1709
  h.useCallback(
1712
1710
  (o) => r.subscribe(R.batchCalls(o)),
@@ -1724,87 +1722,87 @@ function Sr(t, e) {
1724
1722
  throw n.error;
1725
1723
  return { ...n, mutate: l, mutateAsync: n.mutate };
1726
1724
  }
1727
- function xs(t) {
1728
- var e, s, r = "";
1729
- if (typeof t == "string" || typeof t == "number")
1730
- r += t;
1731
- else if (typeof t == "object")
1732
- if (Array.isArray(t)) {
1733
- var n = t.length;
1734
- for (e = 0; e < n; e++)
1735
- t[e] && (s = xs(t[e])) && (r && (r += " "), r += s);
1725
+ function xs(e) {
1726
+ var t, s, r = "";
1727
+ if (typeof e == "string" || typeof e == "number")
1728
+ r += e;
1729
+ else if (typeof e == "object")
1730
+ if (Array.isArray(e)) {
1731
+ var n = e.length;
1732
+ for (t = 0; t < n; t++)
1733
+ e[t] && (s = xs(e[t])) && (r && (r += " "), r += s);
1736
1734
  } else
1737
- for (s in t)
1738
- t[s] && (r && (r += " "), r += s);
1735
+ for (s in e)
1736
+ e[s] && (r && (r += " "), r += s);
1739
1737
  return r;
1740
1738
  }
1741
1739
  function N() {
1742
- for (var t, e, s = 0, r = "", n = arguments.length; s < n; s++)
1743
- (t = arguments[s]) && (e = xs(t)) && (r && (r += " "), r += e);
1740
+ for (var e, t, s = 0, r = "", n = arguments.length; s < n; s++)
1741
+ (e = arguments[s]) && (t = xs(e)) && (r && (r += " "), r += t);
1744
1742
  return r;
1745
1743
  }
1746
- var Er = Object.defineProperty, Pr = Object.defineProperties, Ar = Object.getOwnPropertyDescriptors, ae = Object.getOwnPropertySymbols, bs = Object.prototype.hasOwnProperty, ws = Object.prototype.propertyIsEnumerable, qe = (t, e, s) => e in t ? Er(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, w = (t, e) => {
1747
- for (var s in e || (e = {}))
1748
- bs.call(e, s) && qe(t, s, e[s]);
1749
- if (ae)
1750
- for (var s of ae(e))
1751
- ws.call(e, s) && qe(t, s, e[s]);
1752
- return t;
1753
- }, A = (t, e) => Pr(t, Ar(e)), L = (t, e) => {
1744
+ var Er = Object.defineProperty, Pr = Object.defineProperties, Ar = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, bs = Object.prototype.hasOwnProperty, ws = Object.prototype.propertyIsEnumerable, qt = (e, t, s) => t in e ? Er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, w = (e, t) => {
1745
+ for (var s in t || (t = {}))
1746
+ bs.call(t, s) && qt(e, s, t[s]);
1747
+ if (at)
1748
+ for (var s of at(t))
1749
+ ws.call(t, s) && qt(e, s, t[s]);
1750
+ return e;
1751
+ }, A = (e, t) => Pr(e, Ar(t)), L = (e, t) => {
1754
1752
  var s = {};
1755
- for (var r in t)
1756
- bs.call(t, r) && e.indexOf(r) < 0 && (s[r] = t[r]);
1757
- if (t != null && ae)
1758
- for (var r of ae(t))
1759
- e.indexOf(r) < 0 && ws.call(t, r) && (s[r] = t[r]);
1753
+ for (var r in e)
1754
+ bs.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
1755
+ if (e != null && at)
1756
+ for (var r of at(e))
1757
+ t.indexOf(r) < 0 && ws.call(e, r) && (s[r] = e[r]);
1760
1758
  return s;
1761
1759
  };
1762
- function oe() {
1763
- return oe = Object.assign ? Object.assign.bind() : function(t) {
1764
- for (var e = 1; e < arguments.length; e++) {
1765
- var s = arguments[e];
1760
+ function ot() {
1761
+ return ot = Object.assign ? Object.assign.bind() : function(e) {
1762
+ for (var t = 1; t < arguments.length; t++) {
1763
+ var s = arguments[t];
1766
1764
  for (var r in s)
1767
- Object.prototype.hasOwnProperty.call(s, r) && (t[r] = s[r]);
1765
+ Object.prototype.hasOwnProperty.call(s, r) && (e[r] = s[r]);
1768
1766
  }
1769
- return t;
1770
- }, oe.apply(this, arguments);
1767
+ return e;
1768
+ }, ot.apply(this, arguments);
1771
1769
  }
1772
- function Nr(t, e) {
1773
- typeof t == "function" ? t(e) : t != null && (t.current = e);
1770
+ function Nr(e, t) {
1771
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
1774
1772
  }
1775
- function kr(...t) {
1776
- return (e) => t.forEach(
1777
- (s) => Nr(s, e)
1773
+ function kr(...e) {
1774
+ return (t) => e.forEach(
1775
+ (s) => Nr(s, t)
1778
1776
  );
1779
1777
  }
1780
- var Or = /* @__PURE__ */ h.forwardRef((t, e) => {
1781
- const s = t, { children: r } = s, n = L(s, ["children"]), l = h.Children.toArray(r), o = l.find(Lr);
1778
+ var Or = /* @__PURE__ */ h.forwardRef((e, t) => {
1779
+ const s = e, { children: r } = s, n = L(s, ["children"]), l = h.Children.toArray(r), o = l.find(Lr);
1782
1780
  if (o) {
1783
1781
  const c = o.props.children, m = l.map((y) => y === o ? h.Children.count(c) > 1 ? h.Children.only(null) : /* @__PURE__ */ h.isValidElement(c) ? c.props.children : null : y);
1784
- return /* @__PURE__ */ h.createElement(Se, oe({}, n, {
1785
- ref: e
1782
+ return /* @__PURE__ */ h.createElement(St, ot({}, n, {
1783
+ ref: t
1786
1784
  }), /* @__PURE__ */ h.isValidElement(c) ? /* @__PURE__ */ h.cloneElement(c, void 0, m) : null);
1787
1785
  }
1788
- return /* @__PURE__ */ h.createElement(Se, oe({}, n, {
1789
- ref: e
1786
+ return /* @__PURE__ */ h.createElement(St, ot({}, n, {
1787
+ ref: t
1790
1788
  }), r);
1791
1789
  });
1792
1790
  Or.displayName = "Slot";
1793
- var Se = /* @__PURE__ */ h.forwardRef((t, e) => {
1794
- const s = t, { children: r } = s, n = L(s, ["children"]);
1791
+ var St = /* @__PURE__ */ h.forwardRef((e, t) => {
1792
+ const s = e, { children: r } = s, n = L(s, ["children"]);
1795
1793
  return /* @__PURE__ */ h.isValidElement(r) ? /* @__PURE__ */ h.cloneElement(r, A(w({}, Fr(n, r.props)), {
1796
- ref: e ? kr(e, r.ref) : r.ref
1794
+ ref: t ? kr(t, r.ref) : r.ref
1797
1795
  })) : h.Children.count(r) > 1 ? h.Children.only(null) : null;
1798
1796
  });
1799
- Se.displayName = "SlotClone";
1800
- var Mr = ({ children: t }) => /* @__PURE__ */ h.createElement(h.Fragment, null, t);
1801
- function Lr(t) {
1802
- return /* @__PURE__ */ h.isValidElement(t) && t.type === Mr;
1797
+ St.displayName = "SlotClone";
1798
+ var Mr = ({ children: e }) => /* @__PURE__ */ h.createElement(h.Fragment, null, e);
1799
+ function Lr(e) {
1800
+ return /* @__PURE__ */ h.isValidElement(e) && e.type === Mr;
1803
1801
  }
1804
- function Fr(t, e) {
1805
- const s = w({}, e);
1806
- for (const r in e) {
1807
- const n = t[r], l = e[r];
1802
+ function Fr(e, t) {
1803
+ const s = w({}, t);
1804
+ for (const r in t) {
1805
+ const n = e[r], l = t[r];
1808
1806
  /^on[A-Z]/.test(r) ? n && l ? s[r] = (...c) => {
1809
1807
  l(...c), n(...c);
1810
1808
  } : n && (s[r] = n) : r === "style" ? s[r] = w(w({}, n), l) : r === "className" && (s[r] = [
@@ -1812,22 +1810,22 @@ function Fr(t, e) {
1812
1810
  l
1813
1811
  ].filter(Boolean).join(" "));
1814
1812
  }
1815
- return w(w({}, t), s);
1813
+ return w(w({}, e), s);
1816
1814
  }
1817
- var Rr = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1818
- const r = `${t.charAt(0)}${e.charAt(0)}`;
1815
+ var Rr = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1816
+ const r = `${e.charAt(0)}${t.charAt(0)}`;
1819
1817
  return /* @__PURE__ */ i.jsx(
1820
1818
  "span",
1821
1819
  {
1822
1820
  className: `avatar avatar--${s}`,
1823
- "aria-label": `${t} ${e}`,
1821
+ "aria-label": `${e} ${t}`,
1824
1822
  role: "img",
1825
1823
  children: /* @__PURE__ */ i.jsx("span", { className: "avatar__initials", children: r })
1826
1824
  }
1827
1825
  );
1828
- }, Bt = h.forwardRef(
1829
- (t, e) => {
1830
- var s = t, {
1826
+ }, Be = h.forwardRef(
1827
+ (e, t) => {
1828
+ var s = e, {
1831
1829
  iconLeft: r,
1832
1830
  iconRight: n,
1833
1831
  isPending: l = !1,
@@ -1848,7 +1846,7 @@ var Rr = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1848
1846
  return /* @__PURE__ */ i.jsxs(
1849
1847
  "button",
1850
1848
  A(w({
1851
- ref: e
1849
+ ref: t
1852
1850
  }, d), {
1853
1851
  className: N(
1854
1852
  "button",
@@ -1867,17 +1865,17 @@ var Rr = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1867
1865
  );
1868
1866
  }
1869
1867
  );
1870
- Bt.displayName = "Button";
1868
+ Be.displayName = "Button";
1871
1869
  h.createContext(void 0);
1872
1870
  var Dr = h.forwardRef(
1873
- (t, e) => {
1874
- var s = t, { prefix: r, suffix: n, className: l } = s, o = L(s, ["prefix", "suffix", "className"]);
1871
+ (e, t) => {
1872
+ var s = e, { prefix: r, suffix: n, className: l } = s, o = L(s, ["prefix", "suffix", "className"]);
1875
1873
  return /* @__PURE__ */ i.jsxs("div", { className: "input__wrapper", children: [
1876
1874
  r && /* @__PURE__ */ i.jsx("span", { className: "input__prefix", children: r }),
1877
1875
  /* @__PURE__ */ i.jsx(
1878
1876
  "input",
1879
1877
  w({
1880
- ref: e,
1878
+ ref: t,
1881
1879
  className: N(
1882
1880
  "input",
1883
1881
  r && "input--with-prefix",
@@ -1892,10 +1890,10 @@ var Dr = h.forwardRef(
1892
1890
  );
1893
1891
  Dr.displayName = "TextField";
1894
1892
  h.createContext(void 0);
1895
- var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__header__action", children: t }), Ur = (t) => {
1896
- var e = t, { children: s, className: r } = e, n = L(e, ["children", "className"]);
1893
+ var Tr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__header__action", children: e }), Ur = (e) => {
1894
+ var t = e, { children: s, className: r } = t, n = L(t, ["children", "className"]);
1897
1895
  return /* @__PURE__ */ i.jsx("div", A(w({ className: N("card__body", r) }, n), { children: s }));
1898
- }, Qr = (t) => /* @__PURE__ */ i.jsx(
1896
+ }, Qr = (e) => /* @__PURE__ */ i.jsx(
1899
1897
  "svg",
1900
1898
  A(w({
1901
1899
  width: "24",
@@ -1903,7 +1901,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1903
1901
  viewBox: "0 0 24 24",
1904
1902
  fill: "none",
1905
1903
  xmlns: "http://www.w3.org/2000/svg"
1906
- }, t), {
1904
+ }, e), {
1907
1905
  children: /* @__PURE__ */ i.jsx(
1908
1906
  "path",
1909
1907
  {
@@ -1915,7 +1913,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1915
1913
  }
1916
1914
  )
1917
1915
  })
1918
- ), Le = Qr, Hr = (t) => /* @__PURE__ */ i.jsx(
1916
+ ), Lt = Qr, Hr = (e) => /* @__PURE__ */ i.jsx(
1919
1917
  "svg",
1920
1918
  A(w({
1921
1919
  width: "24",
@@ -1923,7 +1921,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1923
1921
  viewBox: "0 0 24 24",
1924
1922
  fill: "none",
1925
1923
  xmlns: "http://www.w3.org/2000/svg"
1926
- }, t), {
1924
+ }, e), {
1927
1925
  children: /* @__PURE__ */ i.jsx(
1928
1926
  "path",
1929
1927
  {
@@ -1935,7 +1933,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1935
1933
  }
1936
1934
  )
1937
1935
  })
1938
- ), $r = Hr, Kr = (t) => /* @__PURE__ */ i.jsx(
1936
+ ), $r = Hr, Kr = (e) => /* @__PURE__ */ i.jsx(
1939
1937
  "svg",
1940
1938
  A(w({
1941
1939
  width: "24",
@@ -1943,7 +1941,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1943
1941
  viewBox: "0 0 24 24",
1944
1942
  fill: "none",
1945
1943
  xmlns: "http://www.w3.org/2000/svg"
1946
- }, t), {
1944
+ }, e), {
1947
1945
  children: /* @__PURE__ */ i.jsx(
1948
1946
  "path",
1949
1947
  {
@@ -1954,7 +1952,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1954
1952
  }
1955
1953
  )
1956
1954
  })
1957
- ), qr = Kr, Gr = (t) => /* @__PURE__ */ i.jsx(
1955
+ ), qr = Kr, Gr = (e) => /* @__PURE__ */ i.jsx(
1958
1956
  "svg",
1959
1957
  A(w({
1960
1958
  width: "24",
@@ -1962,7 +1960,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1962
1960
  viewBox: "0 0 24 24",
1963
1961
  fill: "none",
1964
1962
  xmlns: "http://www.w3.org/2000/svg"
1965
- }, t), {
1963
+ }, e), {
1966
1964
  children: /* @__PURE__ */ i.jsx(
1967
1965
  "path",
1968
1966
  {
@@ -1973,7 +1971,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1973
1971
  }
1974
1972
  )
1975
1973
  })
1976
- ), Vr = Gr, Wr = (t) => /* @__PURE__ */ i.jsx(
1974
+ ), Vr = Gr, Wr = (e) => /* @__PURE__ */ i.jsx(
1977
1975
  "svg",
1978
1976
  A(w({
1979
1977
  width: "24",
@@ -1981,7 +1979,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1981
1979
  viewBox: "0 0 24 24",
1982
1980
  fill: "none",
1983
1981
  xmlns: "http://www.w3.org/2000/svg"
1984
- }, t), {
1982
+ }, e), {
1985
1983
  children: /* @__PURE__ */ i.jsx(
1986
1984
  "path",
1987
1985
  {
@@ -1992,7 +1990,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1992
1990
  }
1993
1991
  )
1994
1992
  })
1995
- ), Zr = Wr, Yr = (t) => /* @__PURE__ */ i.jsxs(
1993
+ ), Zr = Wr, Yr = (e) => /* @__PURE__ */ i.jsxs(
1996
1994
  "svg",
1997
1995
  A(w({
1998
1996
  width: "24",
@@ -2000,7 +1998,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2000
1998
  fill: "none",
2001
1999
  viewBox: "0 0 24 24",
2002
2000
  xmlns: "http://www.w3.org/2000/svg"
2003
- }, t), {
2001
+ }, e), {
2004
2002
  children: [
2005
2003
  /* @__PURE__ */ i.jsxs("g", { clipPath: "url(#clip0_19_444)", children: [
2006
2004
  /* @__PURE__ */ i.jsx(
@@ -2029,7 +2027,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2029
2027
  /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_19_444", children: /* @__PURE__ */ i.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2030
2028
  ]
2031
2029
  })
2032
- ), zr = Yr, Jr = (t) => /* @__PURE__ */ i.jsxs(
2030
+ ), zr = Yr, Jr = (e) => /* @__PURE__ */ i.jsxs(
2033
2031
  "svg",
2034
2032
  A(w({
2035
2033
  width: "24",
@@ -2037,7 +2035,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2037
2035
  viewBox: "0 0 24 24",
2038
2036
  fill: "none",
2039
2037
  xmlns: "http://www.w3.org/2000/svg"
2040
- }, t), {
2038
+ }, e), {
2041
2039
  children: [
2042
2040
  /* @__PURE__ */ i.jsx(
2043
2041
  "path",
@@ -2061,7 +2059,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2061
2059
  )
2062
2060
  ]
2063
2061
  })
2064
- ), Xr = Jr, Ir = (t) => /* @__PURE__ */ i.jsxs(
2062
+ ), Xr = Jr, Ir = (e) => /* @__PURE__ */ i.jsxs(
2065
2063
  "svg",
2066
2064
  A(w({
2067
2065
  width: "24",
@@ -2069,7 +2067,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2069
2067
  viewBox: "0 0 24 24",
2070
2068
  fill: "none",
2071
2069
  xmlns: "http://www.w3.org/2000/svg"
2072
- }, t), {
2070
+ }, e), {
2073
2071
  children: [
2074
2072
  /* @__PURE__ */ i.jsx(
2075
2073
  "path",
@@ -2113,8 +2111,8 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2113
2111
  )
2114
2112
  ]
2115
2113
  })
2116
- ), Br = Ir, ti = (t) => {
2117
- var e = t, { className: s } = e, r = L(e, ["className"]);
2114
+ ), Br = Ir, ei = (e) => {
2115
+ var t = e, { className: s } = t, r = L(t, ["className"]);
2118
2116
  return /* @__PURE__ */ i.jsxs(
2119
2117
  "svg",
2120
2118
  A(w({
@@ -2142,7 +2140,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2142
2140
  ]
2143
2141
  })
2144
2142
  );
2145
- }, ei = ti, si = (t) => /* @__PURE__ */ i.jsxs(
2143
+ }, ti = ei, si = (e) => /* @__PURE__ */ i.jsxs(
2146
2144
  "svg",
2147
2145
  A(w({
2148
2146
  width: "24",
@@ -2150,7 +2148,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2150
2148
  fill: "none",
2151
2149
  viewBox: "0 0 24 24",
2152
2150
  xmlns: "http://www.w3.org/2000/svg"
2153
- }, t), {
2151
+ }, e), {
2154
2152
  children: [
2155
2153
  /* @__PURE__ */ i.jsxs("g", { clipPath: "url(#clip0_762_2934)", children: [
2156
2154
  /* @__PURE__ */ i.jsx(
@@ -2176,8 +2174,8 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2176
2174
  /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_762_2934", children: /* @__PURE__ */ i.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2177
2175
  ]
2178
2176
  })
2179
- ), ri = si, ii = (t) => {
2180
- const e = (s) => `${s}${t.suffix ? `_${t.suffix}` : ""}`;
2177
+ ), ri = si, ii = (e) => {
2178
+ const t = (s) => `${s}${e.suffix ? `_${e.suffix}` : ""}`;
2181
2179
  return /* @__PURE__ */ i.jsxs(
2182
2180
  "svg",
2183
2181
  A(w({
@@ -2186,13 +2184,13 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2186
2184
  viewBox: "0 0 24 24",
2187
2185
  fill: "none",
2188
2186
  xmlns: "http://www.w3.org/2000/svg"
2189
- }, t), {
2187
+ }, e), {
2190
2188
  children: [
2191
2189
  /* @__PURE__ */ i.jsx(
2192
2190
  "path",
2193
2191
  {
2194
2192
  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",
2195
- fill: e("url(#paint0")
2193
+ fill: t("url(#paint0")
2196
2194
  }
2197
2195
  ),
2198
2196
  /* @__PURE__ */ i.jsx(
@@ -2200,14 +2198,14 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2200
2198
  {
2201
2199
  opacity: "0.9",
2202
2200
  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",
2203
- fill: e("url(#paint1")
2201
+ fill: t("url(#paint1")
2204
2202
  }
2205
2203
  ),
2206
2204
  /* @__PURE__ */ i.jsx(
2207
2205
  "path",
2208
2206
  {
2209
2207
  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",
2210
- fill: e("url(#paint2")
2208
+ fill: t("url(#paint2")
2211
2209
  }
2212
2210
  ),
2213
2211
  /* @__PURE__ */ i.jsx(
@@ -2215,7 +2213,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2215
2213
  {
2216
2214
  opacity: "0.85",
2217
2215
  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",
2218
- fill: e("url(#paint3")
2216
+ fill: t("url(#paint3")
2219
2217
  }
2220
2218
  ),
2221
2219
  /* @__PURE__ */ i.jsx(
@@ -2223,21 +2221,21 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2223
2221
  {
2224
2222
  opacity: "0.87",
2225
2223
  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",
2226
- fill: e("url(#paint4")
2224
+ fill: t("url(#paint4")
2227
2225
  }
2228
2226
  ),
2229
2227
  /* @__PURE__ */ i.jsx(
2230
2228
  "path",
2231
2229
  {
2232
2230
  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",
2233
- fill: e("url(#paint5")
2231
+ fill: t("url(#paint5")
2234
2232
  }
2235
2233
  ),
2236
2234
  /* @__PURE__ */ i.jsxs("defs", { children: [
2237
2235
  /* @__PURE__ */ i.jsxs(
2238
2236
  "linearGradient",
2239
2237
  {
2240
- id: e("paint0"),
2238
+ id: t("paint0"),
2241
2239
  x1: "10.6862",
2242
2240
  y1: "11.0225",
2243
2241
  x2: "14.9751",
@@ -2257,7 +2255,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2257
2255
  /* @__PURE__ */ i.jsxs(
2258
2256
  "linearGradient",
2259
2257
  {
2260
- id: e("paint1"),
2258
+ id: t("paint1"),
2261
2259
  x1: "11.5281",
2262
2260
  y1: "8.85339",
2263
2261
  x2: "12.4519",
@@ -2274,7 +2272,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2274
2272
  /* @__PURE__ */ i.jsxs(
2275
2273
  "linearGradient",
2276
2274
  {
2277
- id: e("paint2"),
2275
+ id: t("paint2"),
2278
2276
  x1: "15.0651",
2279
2277
  y1: "18.7384",
2280
2278
  x2: "12.9747",
@@ -2294,7 +2292,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2294
2292
  /* @__PURE__ */ i.jsxs(
2295
2293
  "linearGradient",
2296
2294
  {
2297
- id: e("paint3"),
2295
+ id: t("paint3"),
2298
2296
  x1: "13.9806",
2299
2297
  y1: "8.29749",
2300
2298
  x2: "10.8203",
@@ -2311,7 +2309,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2311
2309
  /* @__PURE__ */ i.jsxs(
2312
2310
  "linearGradient",
2313
2311
  {
2314
- id: e("paint4"),
2312
+ id: t("paint4"),
2315
2313
  x1: "13.9806",
2316
2314
  y1: "8.2892",
2317
2315
  x2: "10.8212",
@@ -2328,7 +2326,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2328
2326
  /* @__PURE__ */ i.jsxs(
2329
2327
  "radialGradient",
2330
2328
  {
2331
- id: e("paint5"),
2329
+ id: t("paint5"),
2332
2330
  cx: "0",
2333
2331
  cy: "0",
2334
2332
  r: "1",
@@ -2347,7 +2345,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2347
2345
  ]
2348
2346
  })
2349
2347
  );
2350
- }, js = ii, ni = (t) => /* @__PURE__ */ i.jsxs(
2348
+ }, js = ii, ni = (e) => /* @__PURE__ */ i.jsxs(
2351
2349
  "svg",
2352
2350
  A(w({
2353
2351
  fill: "none",
@@ -2355,7 +2353,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2355
2353
  viewBox: "0 0 24 24",
2356
2354
  width: "24",
2357
2355
  height: "24"
2358
- }, t), {
2356
+ }, e), {
2359
2357
  children: [
2360
2358
  /* @__PURE__ */ i.jsx(
2361
2359
  "path",
@@ -2409,7 +2407,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2409
2407
  )
2410
2408
  ]
2411
2409
  })
2412
- ), ai = ni, oi = (t) => /* @__PURE__ */ i.jsx(
2410
+ ), ai = ni, oi = (e) => /* @__PURE__ */ i.jsx(
2413
2411
  "svg",
2414
2412
  A(w({
2415
2413
  fill: "none",
@@ -2417,7 +2415,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2417
2415
  viewBox: "0 0 21 16",
2418
2416
  width: "21",
2419
2417
  height: "16"
2420
- }, t), {
2418
+ }, e), {
2421
2419
  children: /* @__PURE__ */ i.jsx(
2422
2420
  "path",
2423
2421
  {
@@ -2429,7 +2427,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2429
2427
  }
2430
2428
  )
2431
2429
  })
2432
- ), li = oi, ci = (t) => /* @__PURE__ */ i.jsxs(
2430
+ ), li = oi, ci = (e) => /* @__PURE__ */ i.jsxs(
2433
2431
  "svg",
2434
2432
  A(w({
2435
2433
  width: "24",
@@ -2437,7 +2435,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2437
2435
  fill: "none",
2438
2436
  xmlns: "http://www.w3.org/2000/svg",
2439
2437
  viewBox: "0 0 24 24"
2440
- }, t), {
2438
+ }, e), {
2441
2439
  children: [
2442
2440
  /* @__PURE__ */ i.jsx(
2443
2441
  "path",
@@ -2456,15 +2454,15 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2456
2454
  /* @__PURE__ */ i.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
2457
2455
  ]
2458
2456
  })
2459
- ), ui = ci, hi = (t) => {
2460
- var e = t, {
2457
+ ), ui = ci, hi = (e) => {
2458
+ var t = e, {
2461
2459
  variant: s,
2462
2460
  icon: r,
2463
2461
  isStandalone: n,
2464
2462
  title: l,
2465
2463
  description: o,
2466
2464
  className: c
2467
- } = e, m = L(e, [
2465
+ } = t, m = L(t, [
2468
2466
  "variant",
2469
2467
  "icon",
2470
2468
  "isStandalone",
@@ -2490,13 +2488,13 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2490
2488
  ] })
2491
2489
  })
2492
2490
  );
2493
- }, di = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__footer", children: t }), fi = (t) => {
2494
- var e = t, {
2491
+ }, di = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__footer", children: e }), fi = (e) => {
2492
+ var t = e, {
2495
2493
  variant: s = "default",
2496
2494
  sticky: r,
2497
2495
  className: n,
2498
2496
  children: l
2499
- } = e, o = L(e, [
2497
+ } = t, o = L(t, [
2500
2498
  "variant",
2501
2499
  "sticky",
2502
2500
  "className",
@@ -2514,12 +2512,12 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2514
2512
  children: l
2515
2513
  })
2516
2514
  );
2517
- }, pi = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__image", children: t }), mi = ({ children: t, className: e }) => /* @__PURE__ */ i.jsx("div", { className: N("card__body__item", e), children: t }), vi = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__body__subtitle", children: t }), gi = ({ icon: t, children: e }) => /* @__PURE__ */ i.jsxs("div", { className: "card__header__title", children: [
2518
- t && /* @__PURE__ */ i.jsx("span", { className: "card__header__title__icon", children: t }),
2519
- e
2515
+ }, pi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__image", children: e }), mi = ({ children: e, className: t }) => /* @__PURE__ */ i.jsx("div", { className: N("card__body__item", t), children: e }), vi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__body__subtitle", children: e }), gi = ({ icon: e, children: t }) => /* @__PURE__ */ i.jsxs("div", { className: "card__header__title", children: [
2516
+ e && /* @__PURE__ */ i.jsx("span", { className: "card__header__title__icon", children: e }),
2517
+ t
2520
2518
  ] }), _s = h.forwardRef(
2521
- (t, e) => {
2522
- var s = t, { type: r, children: n, className: l, variant: o = "default", disabled: c = !1 } = s, m = L(s, ["type", "children", "className", "variant", "disabled"]);
2519
+ (e, t) => {
2520
+ var s = e, { type: r, children: n, className: l, variant: o = "default", disabled: c = !1 } = s, m = L(s, ["type", "children", "className", "variant", "disabled"]);
2523
2521
  return h.createElement(
2524
2522
  r,
2525
2523
  w({
@@ -2529,7 +2527,7 @@ var Tr = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2529
2527
  o && `card--${o}`,
2530
2528
  l
2531
2529
  ),
2532
- ref: e
2530
+ ref: t
2533
2531
  }, m),
2534
2532
  n
2535
2533
  );
@@ -2547,23 +2545,23 @@ Object.assign(_s, {
2547
2545
  Footer: di,
2548
2546
  EmptyState: hi
2549
2547
  });
2550
- var yi = (t) => {
2551
- var e = t, { className: s, children: r } = e, n = L(e, ["className", "children"]);
2548
+ var yi = (e) => {
2549
+ var t = e, { className: s, children: r } = t, n = L(t, ["className", "children"]);
2552
2550
  return /* @__PURE__ */ i.jsx("div", A(w({ className: N("checkbox__content", s) }, n), { children: r }));
2553
- }, Ci = (t) => {
2554
- var e = t, { className: s, children: r } = e, n = L(e, ["className", "children"]);
2551
+ }, Ci = (e) => {
2552
+ var t = e, { className: s, children: r } = t, n = L(t, ["className", "children"]);
2555
2553
  return /* @__PURE__ */ i.jsx("span", A(w({ className: N("checkbox__hint", s) }, n), { children: r }));
2556
- }, Ss = h.createContext(void 0), xi = ({ id: t, name: e, children: s }) => /* @__PURE__ */ i.jsx(Ss.Provider, { value: { id: t, name: e }, children: s }), bi = () => {
2557
- const t = h.useContext(Ss);
2558
- if (!t)
2554
+ }, Ss = h.createContext(void 0), xi = ({ id: e, name: t, children: s }) => /* @__PURE__ */ i.jsx(Ss.Provider, { value: { id: e, name: t }, children: s }), bi = () => {
2555
+ const e = h.useContext(Ss);
2556
+ if (!e)
2559
2557
  throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
2560
- return t;
2561
- }, wi = (t) => {
2562
- var e = t, { className: s, children: r } = e, n = L(e, ["className", "children"]);
2558
+ return e;
2559
+ }, wi = (e) => {
2560
+ var t = e, { className: s, children: r } = t, n = L(t, ["className", "children"]);
2563
2561
  const { id: l } = bi();
2564
2562
  return /* @__PURE__ */ i.jsx("label", A(w({ htmlFor: l, className: N("checkbox__label", s) }, n), { children: r }));
2565
- }, xt = (t) => {
2566
- var e = t, {
2563
+ }, xe = (e) => {
2564
+ var t = e, {
2567
2565
  id: s,
2568
2566
  name: r,
2569
2567
  isPending: n = !1,
@@ -2572,7 +2570,7 @@ var yi = (t) => {
2572
2570
  single: c,
2573
2571
  className: m,
2574
2572
  children: y
2575
- } = e, d = L(e, [
2573
+ } = t, d = L(t, [
2576
2574
  "id",
2577
2575
  "name",
2578
2576
  "isPending",
@@ -2601,22 +2599,22 @@ var yi = (t) => {
2601
2599
  value: c ? "true" : ""
2602
2600
  }, d)
2603
2601
  ),
2604
- n ? /* @__PURE__ */ i.jsx(ei, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ i.jsx($r, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2602
+ n ? /* @__PURE__ */ i.jsx(ti, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ i.jsx($r, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2605
2603
  /* @__PURE__ */ i.jsx(xi, { id: s, name: r, children: y })
2606
2604
  ]
2607
2605
  }
2608
2606
  );
2609
2607
  };
2610
- xt.Content = yi;
2611
- xt.Label = wi;
2612
- xt.Hint = Ci;
2613
- xt.Error = Error;
2614
- var ji = (t) => {
2615
- var e = t, { type: s = "div", className: r, children: n } = e, l = L(e, ["type", "className", "children"]);
2608
+ xe.Content = yi;
2609
+ xe.Label = wi;
2610
+ xe.Hint = Ci;
2611
+ xe.Error = Error;
2612
+ var ji = (e) => {
2613
+ var t = e, { type: s = "div", className: r, children: n } = t, l = L(t, ["type", "className", "children"]);
2616
2614
  return h.createElement(s, w({ className: N("dialog__body", r) }, l), n);
2617
- }, Ee = () => document.body.style.removeProperty("overflow"), Ge = (t) => t.preventDefault(), _i = '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])', Si = (t) => {
2618
- var e = t, { className: s, children: r, shouldAnimate: n = !0 } = e, l = L(e, ["className", "children", "shouldAnimate"]);
2619
- const { ref: o, defaultOpen: c, isModal: m, onClose: y } = te();
2615
+ }, Et = () => document.body.style.removeProperty("overflow"), Gt = (e) => e.preventDefault(), _i = '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])', Si = (e) => {
2616
+ var t = e, { className: s, children: r, shouldAnimate: n = !0 } = t, l = L(t, ["className", "children", "shouldAnimate"]);
2617
+ const { ref: o, defaultOpen: c, isModal: m, onClose: y } = et();
2620
2618
  return h.useEffect(() => {
2621
2619
  const d = o == null ? void 0 : o.current;
2622
2620
  if (d != null && d.open) {
@@ -2625,8 +2623,8 @@ var ji = (t) => {
2625
2623
  return;
2626
2624
  S.shiftKey ? document.activeElement === u && (p.focus(), S.preventDefault()) : document.activeElement === p && (u.focus(), S.preventDefault());
2627
2625
  };
2628
- return document.body.style.overflow = "hidden", d.addEventListener("keydown", E), window.addEventListener("popstate", () => Ee()), () => {
2629
- d.removeEventListener("keydown", E), window.removeEventListener("popstate", () => Ee());
2626
+ return document.body.style.overflow = "hidden", d.addEventListener("keydown", E), window.addEventListener("popstate", () => Et()), () => {
2627
+ d.removeEventListener("keydown", E), window.removeEventListener("popstate", () => Et());
2630
2628
  };
2631
2629
  }
2632
2630
  }, [o]), h.useEffect(() => {
@@ -2634,7 +2632,7 @@ var ji = (t) => {
2634
2632
  if (!d)
2635
2633
  return;
2636
2634
  if (c && (d.removeAttribute("open"), d.showModal(), d.focus()), m)
2637
- return d.addEventListener("cancel", Ge), () => d.removeEventListener("cancel", Ge);
2635
+ return d.addEventListener("cancel", Gt), () => d.removeEventListener("cancel", Gt);
2638
2636
  const v = ({ clientX: u, clientY: p }) => {
2639
2637
  const { top: E, right: S, bottom: j, left: x } = d.getBoundingClientRect(), C = 0 < p && 0 < u, _ = E < p && p < j, O = x < u && u < S;
2640
2638
  C && !(_ && O) && y();
@@ -2654,29 +2652,29 @@ var ji = (t) => {
2654
2652
  children: r
2655
2653
  })
2656
2654
  );
2657
- }, Es = h.createContext(void 0), Ei = ({ defaultOpen: t, onClose: e, isModal: s, children: r }) => {
2658
- const n = h.useRef(null), l = h.useRef(e), o = h.useCallback(() => {
2655
+ }, Es = h.createContext(void 0), Ei = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2656
+ const n = h.useRef(null), l = h.useRef(t), o = h.useCallback(() => {
2659
2657
  var c;
2660
- Ee(), (c = n.current) == null || c.close(), l.current && (l == null || l.current());
2658
+ Et(), (c = n.current) == null || c.close(), l.current && (l == null || l.current());
2661
2659
  }, [n]);
2662
- return /* @__PURE__ */ i.jsx(Es.Provider, { value: { ref: n, defaultOpen: t, isModal: s, onClose: o }, children: r });
2663
- }, te = () => {
2664
- const t = h.useContext(Es);
2665
- if (!t)
2660
+ return /* @__PURE__ */ i.jsx(Es.Provider, { value: { ref: n, defaultOpen: e, isModal: s, onClose: o }, children: r });
2661
+ }, et = () => {
2662
+ const e = h.useContext(Es);
2663
+ if (!e)
2666
2664
  throw new Error("Dialog compound components can not be rendered outside of Dialog");
2667
- return t;
2668
- }, Pi = (t) => {
2669
- var e = t, { children: s } = e, r = L(e, ["children"]);
2670
- const { onClose: n } = te();
2671
- return /* @__PURE__ */ i.jsx(Bt, A(w({ onClick: n }, r), { children: s }));
2672
- }, Ps = h.forwardRef((t, e) => {
2673
- var s = t, { className: r } = s, n = L(s, ["className"]);
2674
- const { onClose: l } = te();
2665
+ return e;
2666
+ }, Pi = (e) => {
2667
+ var t = e, { children: s } = t, r = L(t, ["children"]);
2668
+ const { onClose: n } = et();
2669
+ return /* @__PURE__ */ i.jsx(Be, A(w({ onClick: n }, r), { children: s }));
2670
+ }, Ps = h.forwardRef((e, t) => {
2671
+ var s = e, { className: r } = s, n = L(s, ["className"]);
2672
+ const { onClose: l } = et();
2675
2673
  return /* @__PURE__ */ i.jsx(
2676
- Bt,
2674
+ Be,
2677
2675
  w({
2678
2676
  type: "submit",
2679
- ref: e,
2677
+ ref: t,
2680
2678
  formMethod: "dialog",
2681
2679
  onClick: l,
2682
2680
  iconLeft: /* @__PURE__ */ i.jsx(qr, {}),
@@ -2686,12 +2684,12 @@ var ji = (t) => {
2686
2684
  );
2687
2685
  });
2688
2686
  Ps.displayName = "Close";
2689
- var Ai = (t) => {
2690
- var e = t, { className: s, children: r } = e, n = L(e, ["className", "children"]);
2687
+ var Ai = (e) => {
2688
+ var t = e, { className: s, children: r } = t, n = L(t, ["className", "children"]);
2691
2689
  return /* @__PURE__ */ i.jsx("div", A(w({ className: N("dialog__footer", s) }, n), { children: r }));
2692
- }, Ni = ({ children: t }) => /* @__PURE__ */ i.jsx("div", { className: "dialog__header", children: t }), ki = (t) => {
2693
- var e = t, { icon: s, children: r, className: n } = e, l = L(e, ["icon", "children", "className"]);
2694
- const { ref: o } = te(), c = h.useRef(null);
2690
+ }, Ni = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "dialog__header", children: e }), ki = (e) => {
2691
+ var t = e, { icon: s, children: r, className: n } = t, l = L(t, ["icon", "children", "className"]);
2692
+ const { ref: o } = et(), c = h.useRef(null);
2695
2693
  return h.useEffect(() => {
2696
2694
  o != null && o.current && o.current.focus();
2697
2695
  }, [o]), /* @__PURE__ */ i.jsxs(
@@ -2708,14 +2706,14 @@ var Ai = (t) => {
2708
2706
  ]
2709
2707
  })
2710
2708
  );
2711
- }, Oi = (t) => {
2712
- var e = t, { children: s } = e, r = L(e, ["children"]);
2713
- const { ref: n } = te();
2714
- return /* @__PURE__ */ i.jsx(Bt, A(w({ onClick: () => {
2709
+ }, Oi = (e) => {
2710
+ var t = e, { children: s } = t, r = L(t, ["children"]);
2711
+ const { ref: n } = et();
2712
+ return /* @__PURE__ */ i.jsx(Be, A(w({ onClick: () => {
2715
2713
  var l;
2716
2714
  return (l = n == null ? void 0 : n.current) == null ? void 0 : l.showModal();
2717
2715
  } }, r), { children: s }));
2718
- }, $ = ({ defaultOpen: t, isModal: e, children: s, onClose: r }) => /* @__PURE__ */ i.jsx(Ei, { defaultOpen: !!t, isModal: e, onClose: r, children: s });
2716
+ }, $ = ({ defaultOpen: e, isModal: t, children: s, onClose: r }) => /* @__PURE__ */ i.jsx(Ei, { defaultOpen: !!e, isModal: t, onClose: r, children: s });
2719
2717
  $.Trigger = Oi;
2720
2718
  $.Root = Si;
2721
2719
  $.Title = ki;
@@ -2725,8 +2723,8 @@ $.Footer = Ai;
2725
2723
  $.Button = Pi;
2726
2724
  $.Close = Ps;
2727
2725
  var As = h.createContext(void 0), Mi = ({
2728
- id: t,
2729
- position: e,
2726
+ id: e,
2727
+ position: t,
2730
2728
  isOpen: s,
2731
2729
  setIsOpen: r,
2732
2730
  activeItemIndex: n,
@@ -2739,8 +2737,8 @@ var As = h.createContext(void 0), Mi = ({
2739
2737
  As.Provider,
2740
2738
  {
2741
2739
  value: {
2742
- id: t,
2743
- position: e,
2740
+ id: e,
2741
+ position: t,
2744
2742
  isOpen: s,
2745
2743
  setIsOpen: r,
2746
2744
  activeItemIndex: n,
@@ -2752,11 +2750,11 @@ var As = h.createContext(void 0), Mi = ({
2752
2750
  children: y
2753
2751
  }
2754
2752
  ), Ns = () => {
2755
- const t = h.useContext(As);
2756
- if (t === void 0)
2753
+ const e = h.useContext(As);
2754
+ if (e === void 0)
2757
2755
  throw new Error("useMenu must be used within a MenuProvider");
2758
- return t;
2759
- }, Li = ({ as: t, children: e }) => {
2756
+ return e;
2757
+ }, Li = ({ as: e, children: t }) => {
2760
2758
  const {
2761
2759
  id: s,
2762
2760
  position: r,
@@ -2800,15 +2798,15 @@ var As = h.createContext(void 0), Mi = ({
2800
2798
  return u.preventDefault(), c(S);
2801
2799
  }
2802
2800
  };
2803
- return t ? h.createElement(
2804
- t,
2801
+ return e ? h.createElement(
2802
+ e,
2805
2803
  {
2806
2804
  id: `${s}-content`,
2807
2805
  ref: d,
2808
2806
  className: N("menu__list", `menu__list--${r}`, n && "menu__list--active"),
2809
2807
  onKeyDown: v
2810
2808
  },
2811
- e
2809
+ t
2812
2810
  ) : (
2813
2811
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
2814
2812
  /* @__PURE__ */ i.jsx(
@@ -2818,14 +2816,14 @@ var As = h.createContext(void 0), Mi = ({
2818
2816
  ref: d,
2819
2817
  className: N("menu__list", `menu__list--${r}`, n && "menu__list--active"),
2820
2818
  onKeyDown: v,
2821
- children: e
2819
+ children: t
2822
2820
  }
2823
2821
  )
2824
2822
  );
2825
- }, Fi = (t) => {
2826
- var e = t, { children: s, className: r } = e, n = L(e, ["children", "className"]);
2823
+ }, Fi = (e) => {
2824
+ var t = e, { children: s, className: r } = t, n = L(t, ["children", "className"]);
2827
2825
  return /* @__PURE__ */ i.jsx("li", A(w({}, n), { className: N("menu__list-item", r), children: s }));
2828
- }, ks = ({ children: t, className: e }) => {
2826
+ }, ks = ({ children: e, className: t }) => {
2829
2827
  const { id: s, isOpen: r, setIsOpen: n, clearActiveItemIndex: l, setActiveItemIndex: o, triggerRef: c } = Ns(), m = () => {
2830
2828
  l(), n((d) => !d), r || o(0);
2831
2829
  }, y = (d) => {
@@ -2835,10 +2833,10 @@ var As = h.createContext(void 0), Mi = ({
2835
2833
  d.key === "ArrowDown" && (d.preventDefault(), o(0));
2836
2834
  }
2837
2835
  };
2838
- return h.cloneElement(t, {
2836
+ return h.cloneElement(e, {
2839
2837
  id: `${s}-trigger`,
2840
2838
  ref: c,
2841
- className: N("menu__trigger", e),
2839
+ className: N("menu__trigger", t),
2842
2840
  onClick: m,
2843
2841
  onKeyDown: y,
2844
2842
  "aria-expanded": r,
@@ -2846,8 +2844,8 @@ var As = h.createContext(void 0), Mi = ({
2846
2844
  });
2847
2845
  };
2848
2846
  ks.displayName = "Trigger";
2849
- var Os = (t) => t ? t.tagName === "UL" ? t.children : Array.from(t.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], q = (t) => {
2850
- var e = t, { type: s, id: r, position: n = "bottom-end", children: l, className: o } = e, c = L(e, ["type", "id", "position", "children", "className"]);
2847
+ var Os = (e) => e ? e.tagName === "UL" ? e.children : Array.from(e.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], q = (e) => {
2848
+ var t = e, { type: s, id: r, position: n = "bottom-end", children: l, className: o } = t, c = L(t, ["type", "id", "position", "children", "className"]);
2851
2849
  const m = h.useRef(null), y = h.useRef(null), d = h.useRef(null), [v, u] = h.useState(!1), [p, E] = h.useState(), [S, j] = h.useState(p);
2852
2850
  p !== S && p !== void 0 && d.current && (Os(d.current)[p].firstChild.focus(), j(p));
2853
2851
  const x = () => {
@@ -2886,118 +2884,118 @@ q.Content = Li;
2886
2884
  q.Item = Fi;
2887
2885
  h.createContext(void 0);
2888
2886
  var Ri = (/* @__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");
2889
- [...new Set(Ri.values())].map((t) => ({
2890
- label: `+${t}`,
2891
- value: t
2887
+ [...new Set(Ri.values())].map((e) => ({
2888
+ label: `+${e}`,
2889
+ value: e
2892
2890
  }));
2893
2891
  h.createContext(void 0);
2894
2892
  h.createContext(void 0);
2895
- var le = /* @__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.functionalErrorCircleFilled = 166] = "functionalErrorCircleFilled", t[t.functionalSuccessCircleFilled = 167] = "functionalSuccessCircleFilled", t[t.functionalPlusCircle = 168] = "functionalPlusCircle", t[t.functionalSpinner = 169] = "functionalSpinner", t[t.functionalEcoEarth = 170] = "functionalEcoEarth", t[t.functionalAlphaBeta = 171] = "functionalAlphaBeta", t[t.functionalEuro = 172] = "functionalEuro", t[t.functionalNumber = 173] = "functionalNumber", t[t.functionalIdea = 174] = "functionalIdea", t[t.functionalMultifactorAuthenticator = 175] = "functionalMultifactorAuthenticator", t[t.functionalPassword = 176] = "functionalPassword", t[t.functionalDiscountCode = 177] = "functionalDiscountCode", t))(le || {});
2893
+ var lt = /* @__PURE__ */ ((e) => (e[e.categoriesVegetables = 0] = "categoriesVegetables", e[e.categoriesMeat = 1] = "categoriesMeat", e[e.categoriesFish = 2] = "categoriesFish", e[e.categoriesDairy = 3] = "categoriesDairy", e[e.categoriesBreakfast = 4] = "categoriesBreakfast", e[e.categoriesSnacks = 5] = "categoriesSnacks", e[e.categoriesCandy = 6] = "categoriesCandy", e[e.categoriesNonFood = 7] = "categoriesNonFood", e[e.categoriesDryFood = 8] = "categoriesDryFood", e[e.categoriesTins = 9] = "categoriesTins", e[e.categoriesGrid = 10] = "categoriesGrid", e[e.categoriesSoda = 11] = "categoriesSoda", e[e.categoriesBakery = 12] = "categoriesBakery", e[e.categoriesWine = 13] = "categoriesWine", e[e.categoriesBaby = 14] = "categoriesBaby", e[e.categoriesDiet = 15] = "categoriesDiet", e[e.categoriesHygiene = 16] = "categoriesHygiene", e[e.categoriesCleaning = 17] = "categoriesCleaning", e[e.categoriesPets = 18] = "categoriesPets", e[e.categoriesFreezer = 19] = "categoriesFreezer", e[e.categoriesBbq = 20] = "categoriesBbq", e[e.categoriesMealbox = 21] = "categoriesMealbox", e[e.categoriesBrik = 22] = "categoriesBrik", e[e.categoriesGranen = 23] = "categoriesGranen", e[e.categoriesConserve = 24] = "categoriesConserve", e[e.categoriesHome = 25] = "categoriesHome", e[e.categoriesEaster = 26] = "categoriesEaster", e[e.categoriesOnlinePromo = 27] = "categoriesOnlinePromo", e[e.categoriesSportFood = 28] = "categoriesSportFood", e[e.categoriesClothing = 29] = "categoriesClothing", e[e.categoriesEnergy = 30] = "categoriesEnergy", e[e.categoriesDeskAndTravel = 31] = "categoriesDeskAndTravel", e[e.categoriesCigarette = 32] = "categoriesCigarette", e[e.categoriesFood = 33] = "categoriesFood", e[e.categoriesChild = 34] = "categoriesChild", e[e.categoriesPuzzle = 35] = "categoriesPuzzle", e[e.categoriesToys = 36] = "categoriesToys", e[e.categoriesCar = 37] = "categoriesCar", e[e.categoriesPlaceholder = 38] = "categoriesPlaceholder", e[e.categoriesFuel = 39] = "categoriesFuel", e[e.categoriesCarAndBike = 40] = "categoriesCarAndBike", e[e.categoriesToyAndHobby = 41] = "categoriesToyAndHobby", e[e.categoriesMultimedia = 42] = "categoriesMultimedia", e[e.categoriesParty = 43] = "categoriesParty", e[e.toolsPay = 44] = "toolsPay", e[e.toolsReceipt = 45] = "toolsReceipt", e[e.toolsFuel = 46] = "toolsFuel", e[e.toolsStoreLocator = 47] = "toolsStoreLocator", e[e.toolsStats = 48] = "toolsStats", e[e.toolsShowXtraOld = 49] = "toolsShowXtraOld", e[e.toolsShowXtraNew = 50] = "toolsShowXtraNew", e[e.toolsScan2 = 51] = "toolsScan2", e[e.toolsRecipes2 = 52] = "toolsRecipes2", e[e.toolsWarranty = 53] = "toolsWarranty", e[e.toolsCoupons = 54] = "toolsCoupons", e[e.toolsFavoriteInactive = 55] = "toolsFavoriteInactive", e[e.toolsFavoriteActive = 56] = "toolsFavoriteActive", e[e.toolsAssortment = 57] = "toolsAssortment", e[e.toolsPromo = 58] = "toolsPromo", e[e.fuelCng = 59] = "fuelCng", e[e.fuelE5 = 60] = "fuelE5", e[e.fuelAdblue = 61] = "fuelAdblue", e[e.fuelB7 = 62] = "fuelB7", e[e.fuelH2 = 63] = "fuelH2", e[e.fuelE10 = 64] = "fuelE10", e[e.fuelFreeTireInflation = 65] = "fuelFreeTireInflation", e[e.functionalClose = 66] = "functionalClose", e[e.functionalBack = 67] = "functionalBack", e[e.functionalSearch = 68] = "functionalSearch", e[e.functionalEdit = 69] = "functionalEdit", e[e.functionalShare = 70] = "functionalShare", e[e.functionalLocation = 71] = "functionalLocation", e[e.functionalTrash = 72] = "functionalTrash", e[e.functionalCamera = 73] = "functionalCamera", e[e.functionalPhone = 74] = "functionalPhone", e[e.functionalPushNotifications = 75] = "functionalPushNotifications", e[e.functionalMail = 76] = "functionalMail", e[e.functionalGift = 77] = "functionalGift", e[e.functionalPresent = 78] = "functionalPresent", e[e.functionalLoading = 79] = "functionalLoading", e[e.functionalChevronRight = 80] = "functionalChevronRight", e[e.functionalCheck = 81] = "functionalCheck", e[e.functionalChevronDown = 82] = "functionalChevronDown", e[e.functionalChevronUp = 83] = "functionalChevronUp", e[e.functionalPlus = 84] = "functionalPlus", e[e.functionalReset = 85] = "functionalReset", e[e.functionalDownload = 86] = "functionalDownload", e[e.functionalExport = 87] = "functionalExport", e[e.functionalCustomerService = 88] = "functionalCustomerService", e[e.functionalTruck = 89] = "functionalTruck", e[e.functionalBox = 90] = "functionalBox", e[e.functionalEllipsis = 91] = "functionalEllipsis", e[e.functionalLocationHome = 92] = "functionalLocationHome", e[e.functionalLocationPickup = 93] = "functionalLocationPickup", e[e.functionalAccount = 94] = "functionalAccount", e[e.functionalPrivacy = 95] = "functionalPrivacy", e[e.functionalSettings = 96] = "functionalSettings", e[e.functionalUserInfo = 97] = "functionalUserInfo", e[e.functionalPinOutlines = 98] = "functionalPinOutlines", e[e.functionalCalendar = 99] = "functionalCalendar", e[e.functionalMinus = 100] = "functionalMinus", e[e.functionalLifestyle = 101] = "functionalLifestyle", e[e.functionalSms = 102] = "functionalSms", e[e.functionalSwitch = 103] = "functionalSwitch", e[e.functionalSorting = 104] = "functionalSorting", e[e.functionalWarningCircle = 105] = "functionalWarningCircle", e[e.functionalQuestionCircle = 106] = "functionalQuestionCircle", e[e.functionalErrorCircle = 107] = "functionalErrorCircle", e[e.functionalSuccessCircle = 108] = "functionalSuccessCircle", e[e.functionalMessage = 109] = "functionalMessage", e[e.functionalExternalLink = 110] = "functionalExternalLink", e[e.functionalAddToList = 111] = "functionalAddToList", e[e.functionalShoppingcart = 112] = "functionalShoppingcart", e[e.functionalFilter = 113] = "functionalFilter", e[e.functionalLocate = 114] = "functionalLocate", e[e.functionalBarcode = 115] = "functionalBarcode", e[e.functionalClock = 116] = "functionalClock", e[e.functionalHistory = 117] = "functionalHistory", e[e.functionalShops = 118] = "functionalShops", e[e.functionalAddUser = 119] = "functionalAddUser", e[e.functionalOther = 120] = "functionalOther", e[e.functionalInAppNotifications = 121] = "functionalInAppNotifications", e[e.functionalExit = 122] = "functionalExit", e[e.functionalShared = 123] = "functionalShared", e[e.functionalThumbsup = 124] = "functionalThumbsup", e[e.functionalDiscount = 125] = "functionalDiscount", e[e.functionalPercentage = 126] = "functionalPercentage", e[e.functionalList = 127] = "functionalList", e[e.functionalMapLocation = 128] = "functionalMapLocation", e[e.functionalNoConnection = 129] = "functionalNoConnection", e[e.functionalSwap = 130] = "functionalSwap", e[e.functionalPiece = 131] = "functionalPiece", e[e.functionalWeight = 132] = "functionalWeight", e[e.functionalPack = 133] = "functionalPack", e[e.functionalCommunications = 134] = "functionalCommunications", e[e.functionalDeliveryAddresses = 135] = "functionalDeliveryAddresses", e[e["functional18+"] = 136] = "functional18+", e[e.functionalReadtime = 137] = "functionalReadtime", e[e.functionalCopy = 138] = "functionalCopy", e[e.functionalMessageField = 139] = "functionalMessageField", e[e.functionalNext = 140] = "functionalNext", e[e.functionalSave = 141] = "functionalSave", e[e.functionalLogin = 142] = "functionalLogin", e[e.functionalLogout = 143] = "functionalLogout", e[e.functionalWebsite = 144] = "functionalWebsite", e[e.functionalMenu = 145] = "functionalMenu", e[e.functionalRegister = 146] = "functionalRegister", e[e.functionalNews = 147] = "functionalNews", e[e.functionalTimer = 148] = "functionalTimer", e[e.functionalEyeShow = 149] = "functionalEyeShow", e[e.functionalMobilePay = 150] = "functionalMobilePay", e[e.functionalConnectionCable = 151] = "functionalConnectionCable", e[e.functionalDryCleaning = 152] = "functionalDryCleaning", e[e.functionalKiosk = 153] = "functionalKiosk", e[e.functionalConnectedDevice = 154] = "functionalConnectedDevice", e[e.functionalCookies = 155] = "functionalCookies", e[e.functionalViewFile = 156] = "functionalViewFile", e[e.functionalLastAdded = 157] = "functionalLastAdded", e[e.functionalFirstAdded = 158] = "functionalFirstAdded", e[e.functionalStoreLayout = 159] = "functionalStoreLayout", e[e.functionalBlock = 160] = "functionalBlock", e[e.functionalChecklist = 161] = "functionalChecklist", e[e.functionalCartCheckout = 162] = "functionalCartCheckout", e[e.functionalCartEdit = 163] = "functionalCartEdit", e[e.functionalEyeHidden = 164] = "functionalEyeHidden", e[e.functionalWarningCircleFilled = 165] = "functionalWarningCircleFilled", e[e.functionalErrorCircleFilled = 166] = "functionalErrorCircleFilled", e[e.functionalSuccessCircleFilled = 167] = "functionalSuccessCircleFilled", e[e.functionalPlusCircle = 168] = "functionalPlusCircle", e[e.functionalSpinner = 169] = "functionalSpinner", e[e.functionalEcoEarth = 170] = "functionalEcoEarth", e[e.functionalAlphaBeta = 171] = "functionalAlphaBeta", e[e.functionalEuro = 172] = "functionalEuro", e[e.functionalNumber = 173] = "functionalNumber", e[e.functionalIdea = 174] = "functionalIdea", e[e.functionalMultifactorAuthenticator = 175] = "functionalMultifactorAuthenticator", e[e.functionalPassword = 176] = "functionalPassword", e[e.functionalDiscountCode = 177] = "functionalDiscountCode", e))(lt || {});
2896
2894
  const Di = "/icons/bouMenuIcons.svg", Ti = ({
2897
- bouIconId: t,
2898
- ...e
2899
- }) => /* @__PURE__ */ i.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i.jsx("use", { href: `${Di}#${le[t]}` }) }), Pe = (t) => typeof t.icon == "string" && t.icon in le ? /* @__PURE__ */ i.jsx(Ti, { bouIconId: le[t.icon] }) : t.icon, Ui = ({
2900
- label: t,
2901
- className: e,
2895
+ bouIconId: e,
2896
+ ...t
2897
+ }) => /* @__PURE__ */ i.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i.jsx("use", { href: `${Di}#${lt[e]}` }) }), Pt = (e) => typeof e.icon == "string" && e.icon in lt ? /* @__PURE__ */ i.jsx(Ti, { bouIconId: lt[e.icon] }) : e.icon, Ui = ({
2898
+ label: e,
2899
+ className: t,
2902
2900
  onClick: s,
2903
2901
  icon: r
2904
- }) => /* @__PURE__ */ i.jsx(q.Item, { className: e, children: /* @__PURE__ */ i.jsxs("button", { onClick: s, children: [
2905
- /* @__PURE__ */ i.jsx(Pe, { icon: r }),
2906
- t
2907
- ] }) }), wt = (t) => {
2908
- const e = $s(), { className: s, label: r, mobileUrl: n, desktopUrl: l, icon: o } = t;
2902
+ }) => /* @__PURE__ */ i.jsx(q.Item, { className: t, children: /* @__PURE__ */ i.jsxs("button", { onClick: s, children: [
2903
+ /* @__PURE__ */ i.jsx(Pt, { icon: r }),
2904
+ e
2905
+ ] }) }), we = (e) => {
2906
+ const t = $s(), { className: s, label: r, mobileUrl: n, desktopUrl: l, icon: o } = e;
2909
2907
  return /* @__PURE__ */ i.jsxs(q.Item, { className: s, children: [
2910
- (!e || e && !l) && /* @__PURE__ */ i.jsxs("a", { href: n, referrerPolicy: "no-referrer-when-downgrade", children: [
2911
- /* @__PURE__ */ i.jsx(Pe, { icon: o }),
2908
+ (!t || t && !l) && /* @__PURE__ */ i.jsxs("a", { href: n, referrerPolicy: "no-referrer-when-downgrade", children: [
2909
+ /* @__PURE__ */ i.jsx(Pt, { icon: o }),
2912
2910
  r
2913
2911
  ] }),
2914
2912
  !!l && /* @__PURE__ */ i.jsxs("a", { href: l, referrerPolicy: "no-referrer-when-downgrade", children: [
2915
- /* @__PURE__ */ i.jsx(Pe, { icon: o }),
2913
+ /* @__PURE__ */ i.jsx(Pt, { icon: o }),
2916
2914
  r
2917
2915
  ] })
2918
2916
  ] });
2919
- }, Ms = h.createContext(void 0), Qi = ({ position: t, bouMenuItems: e, children: s }) => /* @__PURE__ */ i.jsx(Ms.Provider, { value: { position: t, bouMenuItems: e }, children: s }), Ls = () => {
2920
- const t = h.useContext(Ms);
2921
- if (!t)
2917
+ }, Ms = h.createContext(void 0), Qi = ({ position: e, bouMenuItems: t, children: s }) => /* @__PURE__ */ i.jsx(Ms.Provider, { value: { position: e, bouMenuItems: t }, children: s }), Ls = () => {
2918
+ const e = h.useContext(Ms);
2919
+ if (!e)
2922
2920
  throw new Error("Authentication context can not be rendered outside of Authentication");
2923
- return t;
2924
- }, Fs = h.createContext(void 0), Hi = ({ apiUrl: t, redirectUrl: e, children: s }) => /* @__PURE__ */ i.jsx(Fs.Provider, { value: { apiUrl: t, redirectUrl: e }, children: s }), Fe = () => {
2925
- const t = h.useContext(Fs);
2926
- if (!t)
2921
+ return e;
2922
+ }, Fs = h.createContext(void 0), Hi = ({ apiUrl: e, redirectUrl: t, children: s }) => /* @__PURE__ */ i.jsx(Fs.Provider, { value: { apiUrl: e, redirectUrl: t }, children: s }), Ft = () => {
2923
+ const e = h.useContext(Fs);
2924
+ if (!e)
2927
2925
  throw new Error("Api context can not be rendered outside of Api");
2928
- return t;
2929
- }, Rs = ({ apiUrl: t, redirectUrl: e, trackingInfo: s }) => {
2930
- const r = new URLSearchParams({ redirectUrl: e });
2926
+ return e;
2927
+ }, Rs = ({ apiUrl: e, redirectUrl: t, trackingInfo: s }) => {
2928
+ const r = new URLSearchParams({ redirectUrl: t });
2931
2929
  s && r.append("trackingInfo", s);
2932
- const n = `${t}/login?${r.toString()}`, l = `${t}/logout?${r.toString()}`;
2930
+ const n = `${e}/login?${r.toString()}`, l = `${e}/logout?${r.toString()}`;
2933
2931
  return { loginUrl: n, logoutUrl: l };
2934
- }, ue = () => {
2935
- const { apiUrl: t, redirectUrl: e } = Fe(), s = Ks();
2936
- return Rs({ apiUrl: t, redirectUrl: e, trackingInfo: s });
2932
+ }, ut = () => {
2933
+ const { apiUrl: e, redirectUrl: t } = Ft(), s = Ks();
2934
+ return Rs({ apiUrl: e, redirectUrl: t, trackingInfo: s });
2937
2935
  }, $i = () => {
2938
- const { apiUrl: t } = Fe();
2939
- return `${`${t}/xtra`}/authentication/v1/user/profile`;
2940
- }, Ve = (t) => t ? `+${t.countryCode} ${t.number}` : "", We = (t, e) => e == null ? void 0 : e.find((s) => s.type === t), Ze = ({ apiUrl: t, redirectUrl: e }) => {
2941
- const { loginUrl: s } = Rs({ apiUrl: t, redirectUrl: e });
2936
+ const { apiUrl: e } = Ft();
2937
+ return `${`${e}/xtra`}/authentication/v1/user/profile`;
2938
+ }, Vt = (e) => e ? `+${e.countryCode} ${e.number}` : "", Wt = (e, t) => t == null ? void 0 : t.find((s) => s.type === e), Zt = ({ apiUrl: e, redirectUrl: t }) => {
2939
+ const { loginUrl: s } = Rs({ apiUrl: e, redirectUrl: t });
2942
2940
  window.location.replace(s);
2943
- }, Ye = (t) => {
2941
+ }, Yt = (e) => {
2944
2942
  var l;
2945
- if (!t)
2946
- return { user: { state: () => "NotAuthenticated" }, tryToLogon: Ze };
2947
- const e = new Date(t.dateOfBirth), s = We(Re.Mobile, t.phone), r = We(Re.Fixed, t.phone), n = Ve(s) ?? Ve(r) ?? "";
2943
+ if (!e)
2944
+ return { user: { state: () => "NotAuthenticated" }, tryToLogon: Zt };
2945
+ const t = new Date(e.dateOfBirth), s = Wt(Rt.Mobile, e.phone), r = Wt(Rt.Fixed, e.phone), n = Vt(s) ?? Vt(r) ?? "";
2948
2946
  return {
2949
2947
  user: {
2950
2948
  ...(l = window.XTRA) == null ? void 0 : l.user,
2951
- firstName: () => t.firstName,
2952
- lastName: () => t.lastName,
2953
- dob: () => e.getDate(),
2954
- mob: () => e.getMonth() + 1,
2955
- yob: () => e.getFullYear(),
2956
- gender: () => t.genderCode,
2949
+ firstName: () => e.firstName,
2950
+ lastName: () => e.lastName,
2951
+ dob: () => t.getDate(),
2952
+ mob: () => t.getMonth() + 1,
2953
+ yob: () => t.getFullYear(),
2954
+ gender: () => e.genderCode,
2957
2955
  phone: () => n,
2958
2956
  streetName: () => {
2959
2957
  var o;
2960
- return (o = t.address) == null ? void 0 : o.streetName;
2958
+ return (o = e.address) == null ? void 0 : o.streetName;
2961
2959
  },
2962
2960
  houseNr: () => {
2963
2961
  var o;
2964
- return (o = t.address) == null ? void 0 : o.houseNumber;
2962
+ return (o = e.address) == null ? void 0 : o.houseNumber;
2965
2963
  },
2966
2964
  box: () => {
2967
2965
  var o;
2968
- return (o = t.address) == null ? void 0 : o.letterBoxName;
2966
+ return (o = e.address) == null ? void 0 : o.letterBoxName;
2969
2967
  },
2970
2968
  zip: () => {
2971
2969
  var o;
2972
- return (o = t.address) == null ? void 0 : o.postalCode;
2970
+ return (o = e.address) == null ? void 0 : o.postalCode;
2973
2971
  },
2974
2972
  city: () => {
2975
2973
  var o;
2976
- return (o = t.address) == null ? void 0 : o.locationName;
2974
+ return (o = e.address) == null ? void 0 : o.locationName;
2977
2975
  },
2978
2976
  country: () => {
2979
2977
  var o;
2980
- return (o = t.address) == null ? void 0 : o.countryCode;
2978
+ return (o = e.address) == null ? void 0 : o.countryCode;
2981
2979
  },
2982
- email: () => t.email,
2983
- cbh: () => t.customerIdentifier,
2980
+ email: () => e.email,
2981
+ cbh: () => e.customerIdentifier,
2984
2982
  state: () => "Authenticated"
2985
2983
  },
2986
- tryToLogon: Ze
2984
+ tryToLogon: Zt
2987
2985
  };
2988
2986
  }, Ds = ["profile"], Ts = () => {
2989
- const { i18n: t } = bt(), e = $i(), s = sessionStorage.getItem("profile"), r = !!s;
2987
+ const { i18n: e } = be(), t = $i(), s = sessionStorage.getItem("profile"), r = !!s;
2990
2988
  return Cs({
2991
2989
  queryKey: Ds,
2992
2990
  queryFn: async () => {
2993
- const l = await fetch(e, {
2991
+ const l = await fetch(t, {
2994
2992
  credentials: "include",
2995
2993
  mode: "cors",
2996
- headers: { "Accept-Language": t.language }
2994
+ headers: { "Accept-Language": e.language }
2997
2995
  });
2998
2996
  if (!l.ok) {
2999
2997
  if (l.status === 401)
3000
- return window.XTRA = { ...window.XTRA, ...Ye() }, window.postMessage(
2998
+ return window.XTRA = { ...window.XTRA, ...Yt() }, window.postMessage(
3001
2999
  { source: "xtra-authentication", isAuthenticated: !1 },
3002
3000
  new URL(window.location.href).origin
3003
3001
  ), sessionStorage.removeItem("profile"), { authenticationStatus: "NotAuthenticated" };
@@ -3009,7 +3007,7 @@ const Di = "/icons/bouMenuIcons.svg", Ti = ({
3009
3007
  return sessionStorage.setItem("profile", JSON.stringify({ firstName: c, lastName: m })), window.postMessage(
3010
3008
  { source: "xtra-authentication", isAuthenticated: !0 },
3011
3009
  new URL(window.location.href).origin
3012
- ), window.XTRA = { ...window.XTRA, ...Ye(o) }, {
3010
+ ), window.XTRA = { ...window.XTRA, ...Yt(o) }, {
3013
3011
  authenticationStatus: "Authenticated",
3014
3012
  profile: { firstName: o.firstName, lastName: o.lastName }
3015
3013
  };
@@ -3022,7 +3020,7 @@ const Di = "/icons/bouMenuIcons.svg", Ti = ({
3022
3020
  refetchOnWindowFocus: !1
3023
3021
  });
3024
3022
  }, Ki = () => {
3025
- const { t } = bt(), e = ns(), { position: s, bouMenuItems: r } = Ls(), { logoutUrl: n } = ue(), o = Me().getQueryData(Ds), c = (o == null ? void 0 : o.profile.firstName) ?? "", m = (o == null ? void 0 : o.profile.lastName) ?? "", y = () => {
3023
+ const { t: e } = be(), t = ns(), { position: s, bouMenuItems: r } = Ls(), { logoutUrl: n } = ut(), o = Mt().getQueryData(Ds), c = (o == null ? void 0 : o.profile.firstName) ?? "", m = (o == null ? void 0 : o.profile.lastName) ?? "", y = () => {
3026
3024
  sessionStorage.removeItem("profile"), window.location.href = n;
3027
3025
  };
3028
3026
  return /* @__PURE__ */ i.jsxs(q, { type: "nav", id: "xtra-menu", position: s, children: [
@@ -3038,13 +3036,13 @@ const Di = "/icons/bouMenuIcons.svg", Ti = ({
3038
3036
  children: /* @__PURE__ */ i.jsxs("button", { children: [
3039
3037
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Rr, { variant: "small", firstName: c, lastName: m }) }),
3040
3038
  /* @__PURE__ */ i.jsx("span", { className: "button__label", children: c }),
3041
- /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Le, {}) })
3039
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Lt, {}) })
3042
3040
  ] })
3043
3041
  }
3044
3042
  ),
3045
3043
  /* @__PURE__ */ i.jsxs(q.Content, { as: "div", children: [
3046
3044
  !!r && r.length > 0 && /* @__PURE__ */ i.jsx("ul", { className: "bou-menu__list", children: r.map(({ label: d, icon: v, url: u }, p) => /* @__PURE__ */ i.jsx(
3047
- wt,
3045
+ we,
3048
3046
  {
3049
3047
  className: "bou-menu-item",
3050
3048
  mobileUrl: u,
@@ -3055,66 +3053,66 @@ const Di = "/icons/bouMenuIcons.svg", Ti = ({
3055
3053
  )) }),
3056
3054
  /* @__PURE__ */ i.jsxs("ul", { children: [
3057
3055
  /* @__PURE__ */ i.jsx(
3058
- wt,
3056
+ we,
3059
3057
  {
3060
3058
  className: "manage-profile",
3061
- mobileUrl: `${e}/manage-profile`,
3062
- desktopUrl: `${e}/manage-profile/personal-data`,
3059
+ mobileUrl: `${t}/manage-profile`,
3060
+ desktopUrl: `${t}/manage-profile/personal-data`,
3063
3061
  icon: /* @__PURE__ */ i.jsx(Xr, {}),
3064
- label: t("manageProfile")
3062
+ label: e("manageProfile")
3065
3063
  }
3066
3064
  ),
3067
3065
  /* @__PURE__ */ i.jsx(
3068
- wt,
3066
+ we,
3069
3067
  {
3070
3068
  className: "payment",
3071
- mobileUrl: `${e}/payment`,
3069
+ mobileUrl: `${t}/payment`,
3072
3070
  icon: /* @__PURE__ */ i.jsx(li, {}),
3073
- label: t("payment")
3071
+ label: e("payment")
3074
3072
  }
3075
3073
  ),
3076
3074
  /* @__PURE__ */ i.jsx(
3077
- wt,
3075
+ we,
3078
3076
  {
3079
3077
  className: "gift-cards",
3080
- mobileUrl: `${e}/gift-cards`,
3078
+ mobileUrl: `${t}/gift-cards`,
3081
3079
  icon: /* @__PURE__ */ i.jsx(ai, {}),
3082
- label: t("giftCards")
3080
+ label: e("giftCards")
3083
3081
  }
3084
3082
  ),
3085
3083
  /* @__PURE__ */ i.jsx(
3086
- wt,
3084
+ we,
3087
3085
  {
3088
- mobileUrl: `${e}/identifiers`,
3086
+ mobileUrl: `${t}/identifiers`,
3089
3087
  icon: /* @__PURE__ */ i.jsx(ui, {}),
3090
- label: t("qrCode")
3088
+ label: e("qrCode")
3091
3089
  }
3092
3090
  ),
3093
3091
  /* @__PURE__ */ i.jsx(
3094
- wt,
3092
+ we,
3095
3093
  {
3096
3094
  className: "manage-privacy",
3097
- mobileUrl: `${e}/manage-privacy`,
3098
- desktopUrl: `${e}/manage-privacy/permissions`,
3095
+ mobileUrl: `${t}/manage-privacy`,
3096
+ desktopUrl: `${t}/manage-privacy/permissions`,
3099
3097
  icon: /* @__PURE__ */ i.jsx(zr, {}),
3100
- label: t("privacy")
3098
+ label: e("privacy")
3101
3099
  }
3102
3100
  ),
3103
- /* @__PURE__ */ i.jsx(Ui, { onClick: y, icon: /* @__PURE__ */ i.jsx(Zr, {}), label: t("logout") })
3101
+ /* @__PURE__ */ i.jsx(Ui, { onClick: y, icon: /* @__PURE__ */ i.jsx(Zr, {}), label: e("logout") })
3104
3102
  ] })
3105
3103
  ] })
3106
3104
  ] });
3107
3105
  }, qi = () => {
3108
- const { t } = bt();
3106
+ const { t: e } = be();
3109
3107
  return /* @__PURE__ */ i.jsxs("button", { className: N("button", "button--neutral", "button--authentication"), children: [
3110
3108
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx("i", { className: "spinner" }) }),
3111
3109
  /* @__PURE__ */ i.jsxs("span", { className: "button__label", children: [
3112
- t("loading"),
3110
+ e("loading"),
3113
3111
  "..."
3114
3112
  ] })
3115
3113
  ] });
3116
- }, Gi = ({ className: t }) => {
3117
- const { t: e } = bt(), { loginUrl: s } = ue();
3114
+ }, Gi = ({ className: e }) => {
3115
+ const { t } = be(), { loginUrl: s } = ut();
3118
3116
  return /* @__PURE__ */ i.jsxs(
3119
3117
  "a",
3120
3118
  {
@@ -3124,18 +3122,17 @@ const Di = "/icons/bouMenuIcons.svg", Ti = ({
3124
3122
  "button--neutral",
3125
3123
  "button--authentication",
3126
3124
  "button--authentication--unauthenticated",
3127
- t
3125
+ e
3128
3126
  ),
3129
3127
  children: [
3130
3128
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(js, { width: 24, height: 24, suffix: "desktop" }) }),
3131
- /* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("login") }),
3132
- /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Le, {}) })
3129
+ /* @__PURE__ */ i.jsx("span", { className: "button__label", children: t("login") }),
3130
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Lt, {}) })
3133
3131
  ]
3134
3132
  }
3135
3133
  );
3136
- };
3137
- const Vi = () => {
3138
- const { t } = bt(), { loginUrl: e } = ue(), s = ns(), { position: r } = Ls();
3134
+ }, Vi = () => {
3135
+ const { t: e } = be(), { loginUrl: t } = ut(), s = ns(), { position: r } = Ls();
3139
3136
  return /* @__PURE__ */ i.jsxs(
3140
3137
  q,
3141
3138
  {
@@ -3143,40 +3140,40 @@ const Vi = () => {
3143
3140
  id: "xtra-menu",
3144
3141
  position: r,
3145
3142
  className: "menu--unauthenticated",
3146
- "aria-label": t("xtraMenuAriaLabel"),
3143
+ "aria-label": e("xtraMenuAriaLabel"),
3147
3144
  children: [
3148
3145
  /* @__PURE__ */ i.jsx(q.Trigger, { className: N("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ i.jsxs("button", { children: [
3149
3146
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(js, { width: 24, height: 24, suffix: "mobile" }) }),
3150
- /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Le, {}) })
3147
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Lt, {}) })
3151
3148
  ] }) }),
3152
3149
  /* @__PURE__ */ i.jsxs(q.Content, { children: [
3153
- /* @__PURE__ */ i.jsx(q.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: e, className: "button button--with-icon", children: [
3150
+ /* @__PURE__ */ i.jsx(q.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: t, className: "button button--with-icon", children: [
3154
3151
  /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Vr, {}) }),
3155
- /* @__PURE__ */ i.jsx("span", { className: "button__label", children: t("login") })
3152
+ /* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("login") })
3156
3153
  ] }) }),
3157
3154
  /* @__PURE__ */ i.jsx(q.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
3158
3155
  /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Br, {}) }),
3159
- /* @__PURE__ */ i.jsx("span", { className: "button__label", children: t("register") })
3156
+ /* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("register") })
3160
3157
  ] }) })
3161
3158
  ] })
3162
3159
  ]
3163
3160
  }
3164
3161
  );
3165
3162
  }, Wi = () => {
3166
- var e, s;
3167
- const t = Ts();
3168
- return ((e = t.data) == null ? void 0 : e.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ i.jsx(Ki, {}) : ((s = t.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || t.isError ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3163
+ var t, s;
3164
+ const e = Ts();
3165
+ return ((t = e.data) == null ? void 0 : t.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ i.jsx(Ki, {}) : ((s = e.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || e.isError ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3169
3166
  /* @__PURE__ */ i.jsx(Gi, {}),
3170
3167
  /* @__PURE__ */ i.jsx(Vi, {})
3171
3168
  ] }) : /* @__PURE__ */ i.jsx(qi, {});
3172
3169
  }, Us = () => {
3173
- const { apiUrl: t } = Fe();
3174
- return `${`${t}/xtra`}/authentication/v1/gdpr`;
3170
+ const { apiUrl: e } = Ft();
3171
+ return `${`${e}/xtra`}/authentication/v1/gdpr`;
3175
3172
  }, Zi = () => {
3176
- const t = Us(), e = new ps();
3173
+ const e = Us(), t = new ps();
3177
3174
  return Sr({
3178
3175
  mutationFn: async (r) => {
3179
- const n = await fetch(`${t}/tc`, {
3176
+ const n = await fetch(`${e}/tc`, {
3180
3177
  body: JSON.stringify({ acceptedTC: r }),
3181
3178
  credentials: "include",
3182
3179
  method: "POST",
@@ -3187,19 +3184,19 @@ const Vi = () => {
3187
3184
  return n;
3188
3185
  },
3189
3186
  onSuccess: async () => {
3190
- await e.invalidateQueries({ queryKey: ["gdpr"] });
3187
+ await t.invalidateQueries({ queryKey: ["gdpr"] });
3191
3188
  }
3192
3189
  });
3193
3190
  }, Yi = () => {
3194
3191
  var l;
3195
- const { i18n: t } = bt(), e = Us(), r = ((l = Ts().data) == null ? void 0 : l.authenticationStatus) === "Authenticated";
3192
+ const { i18n: e } = be(), t = Us(), r = ((l = Ts().data) == null ? void 0 : l.authenticationStatus) === "Authenticated";
3196
3193
  return Cs({
3197
3194
  queryKey: ["gdpr"],
3198
3195
  queryFn: async () => {
3199
- const o = await fetch(`${e}/tc/check`, {
3196
+ const o = await fetch(`${t}/tc/check`, {
3200
3197
  credentials: "include",
3201
3198
  mode: "cors",
3202
- headers: { "Accept-Language": t.language }
3199
+ headers: { "Accept-Language": e.language }
3203
3200
  });
3204
3201
  if (!o.ok)
3205
3202
  throw new Error("Network response was not ok");
@@ -3209,9 +3206,9 @@ const Vi = () => {
3209
3206
  });
3210
3207
  }, zi = () => {
3211
3208
  var j;
3212
- const { t } = bt();
3209
+ const { t: e } = be();
3213
3210
  qs({ element: "xtra-authentication" });
3214
- const { logoutUrl: e } = ue(), s = h.useRef(null), [r, n] = h.useState(0), [l, o] = h.useState({}), { mutate: c, isError: m } = Zi(), { AccessibleFormMessage: y, formRef: d } = Gs({ submitCount: r, errors: l }), v = Yi(), u = !!((j = v.data) != null && j.length), p = t("termsAndConditions.error.required"), E = () => {
3211
+ const { logoutUrl: t } = ut(), s = h.useRef(null), [r, n] = h.useState(0), [l, o] = h.useState({}), { mutate: c, isError: m } = Zi(), { AccessibleFormMessage: y, formRef: d } = Gs({ submitCount: r, errors: l }), v = Yi(), u = !!((j = v.data) != null && j.length), p = e("termsAndConditions.error.required"), E = () => {
3215
3212
  var x;
3216
3213
  (x = s == null ? void 0 : s.current) == null || x.click(), document.body.style.removeProperty("overflow");
3217
3214
  };
@@ -3232,22 +3229,22 @@ const Vi = () => {
3232
3229
  return u ? /* @__PURE__ */ i.jsxs($, { defaultOpen: u, isModal: !0, children: [
3233
3230
  y,
3234
3231
  /* @__PURE__ */ i.jsxs($.Root, { children: [
3235
- /* @__PURE__ */ i.jsx($.Header, { children: /* @__PURE__ */ i.jsx($.Title, { icon: /* @__PURE__ */ i.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ i.jsx(Bi, { children: t("termsAndConditions.title") }) }) }),
3232
+ /* @__PURE__ */ i.jsx($.Header, { children: /* @__PURE__ */ i.jsx($.Title, { icon: /* @__PURE__ */ i.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ i.jsx(Bi, { children: e("termsAndConditions.title") }) }) }),
3236
3233
  /* @__PURE__ */ i.jsx($.Body, { children: /* @__PURE__ */ i.jsxs(Qs, { ref: d, id: "tc-form", onSubmit: S, children: [
3237
3234
  /* @__PURE__ */ i.jsxs(Xi, { children: [
3238
- t("termsAndConditions.description"),
3239
- l.acceptedTC && /* @__PURE__ */ i.jsx(tn, { children: p })
3235
+ e("termsAndConditions.description"),
3236
+ l.acceptedTC && /* @__PURE__ */ i.jsx(en, { children: p })
3240
3237
  ] }),
3241
3238
  v.data.map(({ tcCode: x, title: C, URL: _ }) => /* @__PURE__ */ i.jsx(
3242
- xt,
3239
+ xe,
3243
3240
  {
3244
3241
  id: x,
3245
3242
  value: x,
3246
3243
  name: "acceptedTC",
3247
3244
  variant: "primary",
3248
- children: /* @__PURE__ */ i.jsxs(xt.Content, { children: [
3245
+ children: /* @__PURE__ */ i.jsxs(xe.Content, { children: [
3249
3246
  /* @__PURE__ */ i.jsx(Ji, { children: C }),
3250
- /* @__PURE__ */ i.jsx(Ii, { href: _, children: t("termsAndConditions.action", { title: C }) })
3247
+ /* @__PURE__ */ i.jsx(Ii, { href: _, children: e("termsAndConditions.action", { title: C }) })
3251
3248
  ] })
3252
3249
  },
3253
3250
  x
@@ -3258,23 +3255,23 @@ const Vi = () => {
3258
3255
  "a",
3259
3256
  {
3260
3257
  className: N("button", "button--secondary", "button--terms-and-conditions"),
3261
- href: e,
3262
- children: t("logout")
3258
+ href: t,
3259
+ children: e("logout")
3263
3260
  }
3264
3261
  ),
3265
- /* @__PURE__ */ i.jsx(Bt, { form: "tc-form", type: "submit", variant: "primary", children: t("confirm") })
3262
+ /* @__PURE__ */ i.jsx(Be, { form: "tc-form", type: "submit", variant: "primary", children: e("confirm") })
3266
3263
  ] })
3267
3264
  ] })
3268
3265
  ] }) : /* @__PURE__ */ i.jsx(i.Fragment, {});
3269
3266
  }, Ji = ({
3270
- children: t,
3271
- ...e
3272
- }) => /* @__PURE__ */ i.jsx(xt.Label, { className: "form--tc__label", ...e, children: t }), Qs = h.forwardRef(({ children: t, ...e }, s) => /* @__PURE__ */ i.jsx("form", { className: "form--tc", ref: s, ...e, children: t }));
3267
+ children: e,
3268
+ ...t
3269
+ }) => /* @__PURE__ */ i.jsx(xe.Label, { className: "form--tc__label", ...t, children: e }), Qs = h.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ i.jsx("form", { className: "form--tc", ref: s, ...t, children: e }));
3273
3270
  Qs.displayName = "TermsAndConditionsForm";
3274
3271
  const Xi = ({
3275
- children: t,
3276
- ...e
3277
- }) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...e, children: t }), Ii = ({ children: t, ...e }) => /* @__PURE__ */ i.jsx(
3272
+ children: e,
3273
+ ...t
3274
+ }) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...t, children: e }), Ii = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx(
3278
3275
  "a",
3279
3276
  {
3280
3277
  className: "form--tc__link",
@@ -3282,10 +3279,10 @@ const Xi = ({
3282
3279
  rel: "noreferrer",
3283
3280
  role: "button",
3284
3281
  download: !0,
3285
- ...e,
3286
- children: t
3282
+ ...t,
3283
+ children: e
3287
3284
  }
3288
- ), Bi = ({ children: t }) => /* @__PURE__ */ i.jsx("h1", { className: "form--tc__title", children: t }), tn = ({ children: t, ...e }) => /* @__PURE__ */ i.jsx("span", { className: "form--tc__error", role: "alert", ...e, children: t }), en = new ps(), nn = ({ environment: t, redirectUrl: e, apiUrl: s, position: r, commerceId: n, bouMenuItems: l }) => /* @__PURE__ */ i.jsx(Vs, { environment: t, children: /* @__PURE__ */ i.jsx(Ws, { commerceId: n, children: /* @__PURE__ */ i.jsx(Hi, { apiUrl: s, redirectUrl: e, children: /* @__PURE__ */ i.jsxs(dr, { client: en, children: [
3285
+ ), Bi = ({ children: e }) => /* @__PURE__ */ i.jsx("h1", { className: "form--tc__title", children: e }), en = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx("span", { className: "form--tc__error", role: "alert", ...t, children: e }), tn = new ps(), nn = ({ environment: e, redirectUrl: t, apiUrl: s, position: r, commerceId: n, bouMenuItems: l }) => /* @__PURE__ */ i.jsx(Vs, { environment: e, children: /* @__PURE__ */ i.jsx(Ws, { commerceId: n, children: /* @__PURE__ */ i.jsx(Hi, { apiUrl: s, redirectUrl: t, children: /* @__PURE__ */ i.jsxs(dr, { client: tn, children: [
3289
3286
  /* @__PURE__ */ i.jsx(Qi, { position: r, bouMenuItems: l, children: /* @__PURE__ */ i.jsx(Wi, {}) }),
3290
3287
  /* @__PURE__ */ i.jsx(zi, {})
3291
3288
  ] }) }) }) });