@myxtra/authentication-green 1.15.1 → 1.16.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.
@@ -2,20 +2,20 @@ var bt = (e, t, s) => {
2
2
  if (!t.has(e))
3
3
  throw TypeError("Cannot " + s);
4
4
  };
5
- var n = (e, t, s) => (bt(e, t, "read from private field"), s ? s.call(e) : t.get(e)), p = (e, t, s) => {
5
+ var a = (e, t, s) => (bt(e, t, "read from private field"), s ? s.call(e) : t.get(e)), m = (e, t, s) => {
6
6
  if (t.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(e) : t.set(e, s);
9
9
  }, h = (e, t, s, r) => (bt(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s);
10
10
  var lt = (e, t, s, r) => ({
11
- set _(a) {
12
- h(e, t, a, s);
11
+ set _(n) {
12
+ h(e, t, n, s);
13
13
  },
14
14
  get _() {
15
- return n(e, t, r);
15
+ return a(e, t, r);
16
16
  }
17
- }), x = (e, t, s) => (bt(e, t, "access private method"), s);
18
- import { r as d, j as i, u as Zs, a as zs, b as Ee, c as ps, P as qt, d as Ys, E as Js } from "./index-992b509d.mjs";
17
+ }), b = (e, t, s) => (bt(e, t, "access private method"), s);
18
+ import { r as d, j as i, u as Vs, a as Ws, b as Ee, c as fs, P as qt, d as Zs, E as zs } from "./index-ab1ba154.mjs";
19
19
  var Ge = class {
20
20
  constructor() {
21
21
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
@@ -33,22 +33,22 @@ var Ge = class {
33
33
  onUnsubscribe() {
34
34
  }
35
35
  }, Ke = typeof window > "u" || "Deno" in window;
36
- function z() {
36
+ function Z() {
37
37
  }
38
- function Xs(e, t) {
38
+ function Ys(e, t) {
39
39
  return typeof e == "function" ? e(t) : e;
40
40
  }
41
41
  function jt(e) {
42
42
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
43
43
  }
44
- function ms(e, t) {
44
+ function ps(e, t) {
45
45
  return Math.max(e + (t || 0) - Date.now(), 0);
46
46
  }
47
47
  function Vt(e, t) {
48
48
  const {
49
49
  type: s = "all",
50
50
  exact: r,
51
- fetchStatus: a,
51
+ fetchStatus: n,
52
52
  predicate: o,
53
53
  queryKey: l,
54
54
  stale: c
@@ -57,7 +57,7 @@ function Vt(e, t) {
57
57
  if (r) {
58
58
  if (t.queryHash !== Qt(l, t.options))
59
59
  return !1;
60
- } else if (!Ze(t.queryKey, l))
60
+ } else if (!We(t.queryKey, l))
61
61
  return !1;
62
62
  }
63
63
  if (s !== "all") {
@@ -65,45 +65,45 @@ function Vt(e, t) {
65
65
  if (s === "active" && !f || s === "inactive" && f)
66
66
  return !1;
67
67
  }
68
- return !(typeof c == "boolean" && t.isStale() !== c || typeof a < "u" && a !== t.state.fetchStatus || o && !o(t));
68
+ return !(typeof c == "boolean" && t.isStale() !== c || typeof n < "u" && n !== t.state.fetchStatus || o && !o(t));
69
69
  }
70
70
  function Wt(e, t) {
71
- const { exact: s, status: r, predicate: a, mutationKey: o } = e;
71
+ const { exact: s, status: r, predicate: n, mutationKey: o } = e;
72
72
  if (o) {
73
73
  if (!t.options.mutationKey)
74
74
  return !1;
75
75
  if (s) {
76
- if (We(t.options.mutationKey) !== We(o))
76
+ if (je(t.options.mutationKey) !== je(o))
77
77
  return !1;
78
- } else if (!Ze(t.options.mutationKey, o))
78
+ } else if (!We(t.options.mutationKey, o))
79
79
  return !1;
80
80
  }
81
- return !(r && t.state.status !== r || a && !a(t));
81
+ return !(r && t.state.status !== r || n && !n(t));
82
82
  }
83
83
  function Qt(e, t) {
84
- return ((t == null ? void 0 : t.queryKeyHashFn) || We)(e);
84
+ return ((t == null ? void 0 : t.queryKeyHashFn) || je)(e);
85
85
  }
86
- function We(e) {
86
+ function je(e) {
87
87
  return JSON.stringify(
88
88
  e,
89
- (t, s) => _t(s) ? Object.keys(s).sort().reduce((r, a) => (r[a] = s[a], r), {}) : s
89
+ (t, s) => _t(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
90
90
  );
91
91
  }
92
- function Ze(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) => !Ze(e[s], t[s])) : !1;
92
+ function We(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) => !We(e[s], t[s])) : !1;
94
94
  }
95
- function vs(e, t) {
95
+ function ms(e, t) {
96
96
  if (e === t)
97
97
  return e;
98
98
  const s = Zt(e) && Zt(t);
99
99
  if (s || _t(e) && _t(t)) {
100
- const r = s ? e.length : Object.keys(e).length, a = s ? t : Object.keys(t), o = a.length, l = s ? [] : {};
101
- let c = 0;
102
- for (let f = 0; f < o; f++) {
103
- const g = s ? f : a[f];
104
- l[g] = vs(e[g], t[g]), l[g] === e[g] && c++;
100
+ const r = s ? e : Object.keys(e), n = r.length, o = s ? t : Object.keys(t), l = o.length, c = s ? [] : {};
101
+ let f = 0;
102
+ for (let y = 0; y < l; y++) {
103
+ const u = s ? y : o[y];
104
+ !s && e[u] === void 0 && t[u] === void 0 && r.includes(u) ? (c[u] = void 0, f++) : (c[u] = ms(e[u], t[u]), c[u] === e[u] && e[u] !== void 0 && f++);
105
105
  }
106
- return r === o && c === r ? e : l;
106
+ return n === l && f === n ? e : c;
107
107
  }
108
108
  return t;
109
109
  }
@@ -130,31 +130,28 @@ function _t(e) {
130
130
  function zt(e) {
131
131
  return Object.prototype.toString.call(e) === "[object Object]";
132
132
  }
133
- function gs(e) {
133
+ function Js(e) {
134
134
  return new Promise((t) => {
135
135
  setTimeout(t, e);
136
136
  });
137
137
  }
138
- function Yt(e) {
139
- gs(0).then(e);
140
- }
141
138
  function Et(e, t, s) {
142
- return typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? vs(e, t) : t;
139
+ return typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? ms(e, t) : t;
143
140
  }
144
- function Is(e, t, s = 0) {
141
+ function Xs(e, t, s = 0) {
145
142
  const r = [...e, t];
146
143
  return s && r.length > s ? r.slice(1) : r;
147
144
  }
148
- function Bs(e, t, s = 0) {
145
+ function Is(e, t, s = 0) {
149
146
  const r = [t, ...e];
150
147
  return s && r.length > s ? r.slice(0, -1) : r;
151
148
  }
152
- var me, ae, Ae, is, er = (is = class extends Ge {
149
+ var me, ae, Ae, rs, Bs = (rs = class extends Ge {
153
150
  constructor() {
154
151
  super();
155
- p(this, me, void 0);
156
- p(this, ae, void 0);
157
- p(this, Ae, void 0);
152
+ m(this, me, void 0);
153
+ m(this, ae, void 0);
154
+ m(this, Ae, void 0);
158
155
  h(this, Ae, (t) => {
159
156
  if (!Ke && window.addEventListener) {
160
157
  const s = () => t();
@@ -165,20 +162,20 @@ var me, ae, Ae, is, er = (is = class extends Ge {
165
162
  });
166
163
  }
167
164
  onSubscribe() {
168
- n(this, ae) || this.setEventListener(n(this, Ae));
165
+ a(this, ae) || this.setEventListener(a(this, Ae));
169
166
  }
170
167
  onUnsubscribe() {
171
168
  var t;
172
- this.hasListeners() || ((t = n(this, ae)) == null || t.call(this), h(this, ae, void 0));
169
+ this.hasListeners() || ((t = a(this, ae)) == null || t.call(this), h(this, ae, void 0));
173
170
  }
174
171
  setEventListener(t) {
175
172
  var s;
176
- h(this, Ae, t), (s = n(this, ae)) == null || s.call(this), h(this, ae, t((r) => {
173
+ h(this, Ae, t), (s = a(this, ae)) == null || s.call(this), h(this, ae, t((r) => {
177
174
  typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
178
175
  }));
179
176
  }
180
177
  setFocused(t) {
181
- n(this, me) !== t && (h(this, me, t), this.onFocus());
178
+ a(this, me) !== t && (h(this, me, t), this.onFocus());
182
179
  }
183
180
  onFocus() {
184
181
  this.listeners.forEach((t) => {
@@ -187,14 +184,14 @@ var me, ae, Ae, is, er = (is = class extends Ge {
187
184
  }
188
185
  isFocused() {
189
186
  var t;
190
- return typeof n(this, me) == "boolean" ? n(this, me) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
187
+ return typeof a(this, me) == "boolean" ? a(this, me) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
191
188
  }
192
- }, me = new WeakMap(), ae = new WeakMap(), Ae = new WeakMap(), is), ft = new er(), Se, oe, ke, ns, tr = (ns = class extends Ge {
189
+ }, me = new WeakMap(), ae = new WeakMap(), Ae = new WeakMap(), rs), ft = new Bs(), Se, oe, ke, is, er = (is = class extends Ge {
193
190
  constructor() {
194
191
  super();
195
- p(this, Se, !0);
196
- p(this, oe, void 0);
197
- p(this, ke, void 0);
192
+ m(this, Se, !0);
193
+ m(this, oe, void 0);
194
+ m(this, ke, void 0);
198
195
  h(this, ke, (t) => {
199
196
  if (!Ke && window.addEventListener) {
200
197
  const s = () => t(!0), r = () => t(!1);
@@ -205,147 +202,150 @@ var me, ae, Ae, is, er = (is = class extends Ge {
205
202
  });
206
203
  }
207
204
  onSubscribe() {
208
- n(this, oe) || this.setEventListener(n(this, ke));
205
+ a(this, oe) || this.setEventListener(a(this, ke));
209
206
  }
210
207
  onUnsubscribe() {
211
208
  var t;
212
- this.hasListeners() || ((t = n(this, oe)) == null || t.call(this), h(this, oe, void 0));
209
+ this.hasListeners() || ((t = a(this, oe)) == null || t.call(this), h(this, oe, void 0));
213
210
  }
214
211
  setEventListener(t) {
215
212
  var s;
216
- h(this, ke, t), (s = n(this, oe)) == null || s.call(this), h(this, oe, t(this.setOnline.bind(this)));
213
+ h(this, ke, t), (s = a(this, oe)) == null || s.call(this), h(this, oe, t(this.setOnline.bind(this)));
217
214
  }
218
215
  setOnline(t) {
219
- n(this, Se) !== t && (h(this, Se, t), this.listeners.forEach((r) => {
216
+ a(this, Se) !== t && (h(this, Se, t), this.listeners.forEach((r) => {
220
217
  r(t);
221
218
  }));
222
219
  }
223
220
  isOnline() {
224
- return n(this, Se);
221
+ return a(this, Se);
225
222
  }
226
- }, Se = new WeakMap(), oe = new WeakMap(), ke = new WeakMap(), ns), pt = new tr();
227
- function sr(e) {
223
+ }, Se = new WeakMap(), oe = new WeakMap(), ke = new WeakMap(), is), pt = new er();
224
+ function tr(e) {
228
225
  return Math.min(1e3 * 2 ** e, 3e4);
229
226
  }
230
227
  function xt(e) {
231
228
  return (e ?? "online") === "online" ? pt.isOnline() : !0;
232
229
  }
233
- var ys = class {
230
+ var vs = class {
234
231
  constructor(e) {
235
232
  this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
236
233
  }
237
234
  };
238
235
  function wt(e) {
239
- return e instanceof ys;
236
+ return e instanceof vs;
240
237
  }
241
- function Cs(e) {
242
- let t = !1, s = 0, r = !1, a, o, l;
243
- const c = new Promise((m, y) => {
244
- o = m, l = y;
245
- }), f = (m) => {
246
- var y;
247
- r || (v(new ys(m)), (y = e.abort) == null || y.call(e));
248
- }, g = () => {
238
+ function gs(e) {
239
+ let t = !1, s = 0, r = !1, n, o, l;
240
+ const c = new Promise((v, C) => {
241
+ o = v, l = C;
242
+ }), f = (v) => {
243
+ var C;
244
+ r || (p(new vs(v)), (C = e.abort) == null || C.call(e));
245
+ }, y = () => {
249
246
  t = !0;
250
247
  }, u = () => {
251
248
  t = !1;
252
- }, C = () => !ft.isFocused() || e.networkMode !== "always" && !pt.isOnline(), w = (m) => {
253
- var y;
254
- r || (r = !0, (y = e.onSuccess) == null || y.call(e, m), a == null || a(), o(m));
255
- }, v = (m) => {
256
- var y;
257
- r || (r = !0, (y = e.onError) == null || y.call(e, m), a == null || a(), l(m));
258
- }, b = () => new Promise((m) => {
259
- var y;
260
- a = (S) => {
261
- const E = r || !C();
262
- return E && m(S), E;
263
- }, (y = e.onPause) == null || y.call(e);
249
+ }, x = () => !ft.isFocused() || e.networkMode !== "always" && !pt.isOnline(), g = (v) => {
250
+ var C;
251
+ r || (r = !0, (C = e.onSuccess) == null || C.call(e, v), n == null || n(), o(v));
252
+ }, p = (v) => {
253
+ var C;
254
+ r || (r = !0, (C = e.onError) == null || C.call(e, v), n == null || n(), l(v));
255
+ }, w = () => new Promise((v) => {
256
+ var C;
257
+ n = (S) => {
258
+ const E = r || !x();
259
+ return E && v(S), E;
260
+ }, (C = e.onPause) == null || C.call(e);
264
261
  }).then(() => {
265
- var m;
266
- a = void 0, r || (m = e.onContinue) == null || m.call(e);
262
+ var v;
263
+ n = void 0, r || (v = e.onContinue) == null || v.call(e);
267
264
  }), _ = () => {
268
265
  if (r)
269
266
  return;
270
- let m;
267
+ let v;
271
268
  try {
272
- m = e.fn();
273
- } catch (y) {
274
- m = Promise.reject(y);
269
+ v = e.fn();
270
+ } catch (C) {
271
+ v = Promise.reject(C);
275
272
  }
276
- Promise.resolve(m).then(w).catch((y) => {
277
- var K;
273
+ Promise.resolve(v).then(g).catch((C) => {
274
+ var $;
278
275
  if (r)
279
276
  return;
280
- const S = e.retry ?? (Ke ? 0 : 3), E = e.retryDelay ?? sr, k = typeof E == "function" ? E(s, y) : E, U = S === !0 || typeof S == "number" && s < S || typeof S == "function" && S(s, y);
281
- if (t || !U) {
282
- v(y);
277
+ const S = e.retry ?? (Ke ? 0 : 3), E = e.retryDelay ?? tr, k = typeof E == "function" ? E(s, C) : E, T = S === !0 || typeof S == "number" && s < S || typeof S == "function" && S(s, C);
278
+ if (t || !T) {
279
+ p(C);
283
280
  return;
284
281
  }
285
- s++, (K = e.onFail) == null || K.call(e, s, y), gs(k).then(() => {
286
- if (C())
287
- return b();
282
+ s++, ($ = e.onFail) == null || $.call(e, s, C), Js(k).then(() => {
283
+ if (x())
284
+ return w();
288
285
  }).then(() => {
289
- t ? v(y) : _();
286
+ t ? p(C) : _();
290
287
  });
291
288
  });
292
289
  };
293
- return xt(e.networkMode) ? _() : b().then(_), {
290
+ return xt(e.networkMode) ? _() : w().then(_), {
294
291
  promise: c,
295
292
  cancel: f,
296
- continue: () => (a == null ? void 0 : a()) ? c : Promise.resolve(),
297
- cancelRetry: g,
293
+ continue: () => (n == null ? void 0 : n()) ? c : Promise.resolve(),
294
+ cancelRetry: y,
298
295
  continueRetry: u
299
296
  };
300
297
  }
301
- function rr() {
302
- let e = [], t = 0, s = (u) => {
303
- u();
304
- }, r = (u) => {
305
- u();
306
- };
307
- const a = (u) => {
308
- let C;
298
+ function sr() {
299
+ let e = [], t = 0, s = (g) => {
300
+ g();
301
+ }, r = (g) => {
302
+ g();
303
+ }, n = (g) => setTimeout(g, 0);
304
+ const o = (g) => {
305
+ n = g;
306
+ }, l = (g) => {
307
+ let p;
309
308
  t++;
310
309
  try {
311
- C = u();
310
+ p = g();
312
311
  } finally {
313
- t--, t || c();
312
+ t--, t || y();
314
313
  }
315
- return C;
316
- }, o = (u) => {
317
- t ? e.push(u) : Yt(() => {
318
- s(u);
314
+ return p;
315
+ }, c = (g) => {
316
+ t ? e.push(g) : n(() => {
317
+ s(g);
319
318
  });
320
- }, l = (u) => (...C) => {
321
- o(() => {
322
- u(...C);
319
+ }, f = (g) => (...p) => {
320
+ c(() => {
321
+ g(...p);
323
322
  });
324
- }, c = () => {
325
- const u = e;
326
- e = [], u.length && Yt(() => {
323
+ }, y = () => {
324
+ const g = e;
325
+ e = [], g.length && n(() => {
327
326
  r(() => {
328
- u.forEach((C) => {
329
- s(C);
327
+ g.forEach((p) => {
328
+ s(p);
330
329
  });
331
330
  });
332
331
  });
333
332
  };
334
333
  return {
335
- batch: a,
336
- batchCalls: l,
337
- schedule: o,
338
- setNotifyFunction: (u) => {
339
- s = u;
334
+ batch: l,
335
+ batchCalls: f,
336
+ schedule: c,
337
+ setNotifyFunction: (g) => {
338
+ s = g;
340
339
  },
341
- setBatchNotifyFunction: (u) => {
342
- r = u;
343
- }
340
+ setBatchNotifyFunction: (g) => {
341
+ r = g;
342
+ },
343
+ setScheduler: o
344
344
  };
345
345
  }
346
- var F = rr(), ve, as, xs = (as = class {
346
+ var F = sr(), ve, ns, ys = (ns = class {
347
347
  constructor() {
348
- p(this, ve, void 0);
348
+ m(this, ve, void 0);
349
349
  }
350
350
  destroy() {
351
351
  this.clearGcTimeout();
@@ -362,32 +362,32 @@ var F = rr(), ve, as, xs = (as = class {
362
362
  );
363
363
  }
364
364
  clearGcTimeout() {
365
- n(this, ve) && (clearTimeout(n(this, ve)), h(this, ve, void 0));
365
+ a(this, ve) && (clearTimeout(a(this, ve)), h(this, ve, void 0));
366
366
  }
367
- }, ve = new WeakMap(), as), Pe, Ne, q, le, V, R, ze, ge, Me, ut, X, re, os, ir = (os = class extends xs {
367
+ }, ve = new WeakMap(), ns), Pe, Ne, q, le, V, R, Ze, ge, Me, ut, J, se, as, rr = (as = class extends ys {
368
368
  constructor(t) {
369
369
  super();
370
- p(this, Me);
371
- p(this, X);
372
- p(this, Pe, void 0);
373
- p(this, Ne, void 0);
374
- p(this, q, void 0);
375
- p(this, le, void 0);
376
- p(this, V, void 0);
377
- p(this, R, void 0);
378
- p(this, ze, void 0);
379
- p(this, ge, void 0);
380
- h(this, ge, !1), h(this, ze, t.defaultOptions), x(this, Me, ut).call(this, t.options), h(this, R, []), h(this, q, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, h(this, Pe, t.state || nr(this.options)), this.state = n(this, Pe), this.scheduleGc();
370
+ m(this, Me);
371
+ m(this, J);
372
+ m(this, Pe, void 0);
373
+ m(this, Ne, void 0);
374
+ m(this, q, void 0);
375
+ m(this, le, void 0);
376
+ m(this, V, void 0);
377
+ m(this, R, void 0);
378
+ m(this, Ze, void 0);
379
+ m(this, ge, void 0);
380
+ h(this, ge, !1), h(this, Ze, t.defaultOptions), b(this, Me, ut).call(this, t.options), h(this, R, []), h(this, q, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, h(this, Pe, t.state || ir(this.options)), this.state = a(this, Pe), this.scheduleGc();
381
381
  }
382
382
  get meta() {
383
383
  return this.options.meta;
384
384
  }
385
385
  optionalRemove() {
386
- !n(this, R).length && this.state.fetchStatus === "idle" && n(this, q).remove(this);
386
+ !a(this, R).length && this.state.fetchStatus === "idle" && a(this, q).remove(this);
387
387
  }
388
388
  setData(t, s) {
389
389
  const r = Et(this.state.data, t, this.options);
390
- return x(this, X, re).call(this, {
390
+ return b(this, J, se).call(this, {
391
391
  data: r,
392
392
  type: "success",
393
393
  dataUpdatedAt: s == null ? void 0 : s.updatedAt,
@@ -395,21 +395,21 @@ var F = rr(), ve, as, xs = (as = class {
395
395
  }), r;
396
396
  }
397
397
  setState(t, s) {
398
- x(this, X, re).call(this, { type: "setState", state: t, setStateOptions: s });
398
+ b(this, J, se).call(this, { type: "setState", state: t, setStateOptions: s });
399
399
  }
400
400
  cancel(t) {
401
401
  var r;
402
- const s = n(this, le);
403
- return (r = n(this, V)) == null || r.cancel(t), s ? s.then(z).catch(z) : Promise.resolve();
402
+ const s = a(this, le);
403
+ return (r = a(this, V)) == null || r.cancel(t), s ? s.then(Z).catch(Z) : Promise.resolve();
404
404
  }
405
405
  destroy() {
406
406
  super.destroy(), this.cancel({ silent: !0 });
407
407
  }
408
408
  reset() {
409
- this.destroy(), this.setState(n(this, Pe));
409
+ this.destroy(), this.setState(a(this, Pe));
410
410
  }
411
411
  isActive() {
412
- return n(this, R).some(
412
+ return a(this, R).some(
413
413
  (t) => t.options.enabled !== !1
414
414
  );
415
415
  }
@@ -417,61 +417,61 @@ var F = rr(), ve, as, xs = (as = class {
417
417
  return this.getObserversCount() > 0 && !this.isActive();
418
418
  }
419
419
  isStale() {
420
- return this.state.isInvalidated || !this.state.dataUpdatedAt || n(this, R).some((t) => t.getCurrentResult().isStale);
420
+ return this.state.isInvalidated || !this.state.dataUpdatedAt || a(this, R).some((t) => t.getCurrentResult().isStale);
421
421
  }
422
422
  isStaleByTime(t = 0) {
423
- return this.state.isInvalidated || !this.state.dataUpdatedAt || !ms(this.state.dataUpdatedAt, t);
423
+ return this.state.isInvalidated || !this.state.dataUpdatedAt || !ps(this.state.dataUpdatedAt, t);
424
424
  }
425
425
  onFocus() {
426
426
  var s;
427
- const t = n(this, R).find((r) => r.shouldFetchOnWindowFocus());
428
- t == null || t.refetch({ cancelRefetch: !1 }), (s = n(this, V)) == null || s.continue();
427
+ const t = a(this, R).find((r) => r.shouldFetchOnWindowFocus());
428
+ t == null || t.refetch({ cancelRefetch: !1 }), (s = a(this, V)) == null || s.continue();
429
429
  }
430
430
  onOnline() {
431
431
  var s;
432
- const t = n(this, R).find((r) => r.shouldFetchOnReconnect());
433
- t == null || t.refetch({ cancelRefetch: !1 }), (s = n(this, V)) == null || s.continue();
432
+ const t = a(this, R).find((r) => r.shouldFetchOnReconnect());
433
+ t == null || t.refetch({ cancelRefetch: !1 }), (s = a(this, V)) == null || s.continue();
434
434
  }
435
435
  addObserver(t) {
436
- n(this, R).includes(t) || (n(this, R).push(t), this.clearGcTimeout(), n(this, q).notify({ type: "observerAdded", query: this, observer: t }));
436
+ a(this, R).includes(t) || (a(this, R).push(t), this.clearGcTimeout(), a(this, q).notify({ type: "observerAdded", query: this, observer: t }));
437
437
  }
438
438
  removeObserver(t) {
439
- n(this, R).includes(t) && (h(this, R, n(this, R).filter((s) => s !== t)), n(this, R).length || (n(this, V) && (n(this, ge) ? n(this, V).cancel({ revert: !0 }) : n(this, V).cancelRetry()), this.scheduleGc()), n(this, q).notify({ type: "observerRemoved", query: this, observer: t }));
439
+ a(this, R).includes(t) && (h(this, R, a(this, R).filter((s) => s !== t)), a(this, R).length || (a(this, V) && (a(this, ge) ? a(this, V).cancel({ revert: !0 }) : a(this, V).cancelRetry()), this.scheduleGc()), a(this, q).notify({ type: "observerRemoved", query: this, observer: t }));
440
440
  }
441
441
  getObserversCount() {
442
- return n(this, R).length;
442
+ return a(this, R).length;
443
443
  }
444
444
  invalidate() {
445
- this.state.isInvalidated || x(this, X, re).call(this, { type: "invalidate" });
445
+ this.state.isInvalidated || b(this, J, se).call(this, { type: "invalidate" });
446
446
  }
447
447
  fetch(t, s) {
448
- var g, u, C, w;
448
+ var y, u, x, g;
449
449
  if (this.state.fetchStatus !== "idle") {
450
450
  if (this.state.dataUpdatedAt && (s != null && s.cancelRefetch))
451
451
  this.cancel({ silent: !0 });
452
- else if (n(this, le))
453
- return (g = n(this, V)) == null || g.continueRetry(), n(this, le);
452
+ else if (a(this, le))
453
+ return (y = a(this, V)) == null || y.continueRetry(), a(this, le);
454
454
  }
455
- if (t && x(this, Me, ut).call(this, t), !this.options.queryFn) {
456
- const v = n(this, R).find((b) => b.options.queryFn);
457
- v && x(this, Me, ut).call(this, v.options);
455
+ if (t && b(this, Me, ut).call(this, t), !this.options.queryFn) {
456
+ const p = a(this, R).find((w) => w.options.queryFn);
457
+ p && b(this, Me, ut).call(this, p.options);
458
458
  }
459
- const r = new AbortController(), a = {
459
+ const r = new AbortController(), n = {
460
460
  queryKey: this.queryKey,
461
461
  meta: this.meta
462
- }, o = (v) => {
463
- Object.defineProperty(v, "signal", {
462
+ }, o = (p) => {
463
+ Object.defineProperty(p, "signal", {
464
464
  enumerable: !0,
465
465
  get: () => (h(this, ge, !0), r.signal)
466
466
  });
467
467
  };
468
- o(a);
468
+ o(n);
469
469
  const l = () => this.options.queryFn ? (h(this, ge, !1), this.options.persister ? this.options.persister(
470
470
  this.options.queryFn,
471
- a,
471
+ n,
472
472
  this
473
473
  ) : this.options.queryFn(
474
- a
474
+ n
475
475
  )) : Promise.reject(
476
476
  new Error(`Missing queryFn: '${this.options.queryHash}'`)
477
477
  ), c = {
@@ -484,57 +484,57 @@ var F = rr(), ve, as, xs = (as = class {
484
484
  o(c), (u = this.options.behavior) == null || u.onFetch(
485
485
  c,
486
486
  this
487
- ), h(this, Ne, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((C = c.fetchOptions) == null ? void 0 : C.meta)) && x(this, X, re).call(this, { type: "fetch", meta: (w = c.fetchOptions) == null ? void 0 : w.meta });
488
- const f = (v) => {
489
- var b, _, m, y;
490
- wt(v) && v.silent || x(this, X, re).call(this, {
487
+ ), h(this, Ne, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((x = c.fetchOptions) == null ? void 0 : x.meta)) && b(this, J, se).call(this, { type: "fetch", meta: (g = c.fetchOptions) == null ? void 0 : g.meta });
488
+ const f = (p) => {
489
+ var w, _, v, C;
490
+ wt(p) && p.silent || b(this, J, se).call(this, {
491
491
  type: "error",
492
- error: v
493
- }), wt(v) || ((_ = (b = n(this, q).config).onError) == null || _.call(
494
- b,
495
- v,
492
+ error: p
493
+ }), wt(p) || ((_ = (w = a(this, q).config).onError) == null || _.call(
494
+ w,
495
+ p,
496
496
  this
497
- ), (y = (m = n(this, q).config).onSettled) == null || y.call(
498
- m,
499
- this.state.data,
497
+ ), (C = (v = a(this, q).config).onSettled) == null || C.call(
500
498
  v,
499
+ this.state.data,
500
+ p,
501
501
  this
502
502
  )), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
503
503
  };
504
- return h(this, V, Cs({
504
+ return h(this, V, gs({
505
505
  fn: c.fetchFn,
506
506
  abort: r.abort.bind(r),
507
- onSuccess: (v) => {
508
- var b, _, m, y;
509
- if (typeof v > "u") {
507
+ onSuccess: (p) => {
508
+ var w, _, v, C;
509
+ if (typeof p > "u") {
510
510
  f(new Error(`${this.queryHash} data is undefined`));
511
511
  return;
512
512
  }
513
- this.setData(v), (_ = (b = n(this, q).config).onSuccess) == null || _.call(b, v, this), (y = (m = n(this, q).config).onSettled) == null || y.call(
514
- m,
513
+ this.setData(p), (_ = (w = a(this, q).config).onSuccess) == null || _.call(w, p, this), (C = (v = a(this, q).config).onSettled) == null || C.call(
515
514
  v,
515
+ p,
516
516
  this.state.error,
517
517
  this
518
518
  ), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
519
519
  },
520
520
  onError: f,
521
- onFail: (v, b) => {
522
- x(this, X, re).call(this, { type: "failed", failureCount: v, error: b });
521
+ onFail: (p, w) => {
522
+ b(this, J, se).call(this, { type: "failed", failureCount: p, error: w });
523
523
  },
524
524
  onPause: () => {
525
- x(this, X, re).call(this, { type: "pause" });
525
+ b(this, J, se).call(this, { type: "pause" });
526
526
  },
527
527
  onContinue: () => {
528
- x(this, X, re).call(this, { type: "continue" });
528
+ b(this, J, se).call(this, { type: "continue" });
529
529
  },
530
530
  retry: c.options.retry,
531
531
  retryDelay: c.options.retryDelay,
532
532
  networkMode: c.options.networkMode
533
- })), h(this, le, n(this, V).promise), n(this, le);
533
+ })), h(this, le, a(this, V).promise), a(this, le);
534
534
  }
535
- }, Pe = new WeakMap(), Ne = new WeakMap(), q = new WeakMap(), le = new WeakMap(), V = new WeakMap(), R = new WeakMap(), ze = new WeakMap(), ge = new WeakMap(), Me = new WeakSet(), ut = function(t) {
536
- this.options = { ...n(this, ze), ...t }, this.updateGcTime(this.options.gcTime);
537
- }, X = new WeakSet(), re = function(t) {
535
+ }, Pe = new WeakMap(), Ne = new WeakMap(), q = new WeakMap(), le = new WeakMap(), V = new WeakMap(), R = new WeakMap(), Ze = new WeakMap(), ge = new WeakMap(), Me = new WeakSet(), ut = function(t) {
536
+ this.options = { ...a(this, Ze), ...t }, this.updateGcTime(this.options.gcTime);
537
+ }, J = new WeakSet(), se = function(t) {
538
538
  const s = (r) => {
539
539
  switch (t.type) {
540
540
  case "failed":
@@ -581,14 +581,14 @@ var F = rr(), ve, as, xs = (as = class {
581
581
  }
582
582
  };
583
583
  case "error":
584
- const a = t.error;
585
- return wt(a) && a.revert && n(this, Ne) ? { ...n(this, Ne), fetchStatus: "idle" } : {
584
+ const n = t.error;
585
+ return wt(n) && n.revert && a(this, Ne) ? { ...a(this, Ne), fetchStatus: "idle" } : {
586
586
  ...r,
587
- error: a,
587
+ error: n,
588
588
  errorUpdateCount: r.errorUpdateCount + 1,
589
589
  errorUpdatedAt: Date.now(),
590
590
  fetchFailureCount: r.fetchFailureCount + 1,
591
- fetchFailureReason: a,
591
+ fetchFailureReason: n,
592
592
  fetchStatus: "idle",
593
593
  status: "error"
594
594
  };
@@ -605,12 +605,12 @@ var F = rr(), ve, as, xs = (as = class {
605
605
  }
606
606
  };
607
607
  this.state = s(this.state), F.batch(() => {
608
- n(this, R).forEach((r) => {
608
+ a(this, R).forEach((r) => {
609
609
  r.onQueryUpdate();
610
- }), n(this, q).notify({ query: this, type: "updated", action: t });
610
+ }), a(this, q).notify({ query: this, type: "updated", action: t });
611
611
  });
612
- }, os);
613
- function nr(e) {
612
+ }, as);
613
+ function ir(e) {
614
614
  const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, s = typeof t < "u", r = s ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
615
615
  return {
616
616
  data: t,
@@ -627,33 +627,33 @@ function nr(e) {
627
627
  fetchStatus: "idle"
628
628
  };
629
629
  }
630
- var I, ls, ar = (ls = class extends Ge {
630
+ var X, os, nr = (os = class extends Ge {
631
631
  constructor(t = {}) {
632
632
  super();
633
- p(this, I, void 0);
634
- this.config = t, h(this, I, /* @__PURE__ */ new Map());
633
+ m(this, X, void 0);
634
+ this.config = t, h(this, X, /* @__PURE__ */ new Map());
635
635
  }
636
636
  build(t, s, r) {
637
- const a = s.queryKey, o = s.queryHash ?? Qt(a, s);
637
+ const n = s.queryKey, o = s.queryHash ?? Qt(n, s);
638
638
  let l = this.get(o);
639
- return l || (l = new ir({
639
+ return l || (l = new rr({
640
640
  cache: this,
641
- queryKey: a,
641
+ queryKey: n,
642
642
  queryHash: o,
643
643
  options: t.defaultQueryOptions(s),
644
644
  state: r,
645
- defaultOptions: t.getQueryDefaults(a)
645
+ defaultOptions: t.getQueryDefaults(n)
646
646
  }), this.add(l)), l;
647
647
  }
648
648
  add(t) {
649
- n(this, I).has(t.queryHash) || (n(this, I).set(t.queryHash, t), this.notify({
649
+ a(this, X).has(t.queryHash) || (a(this, X).set(t.queryHash, t), this.notify({
650
650
  type: "added",
651
651
  query: t
652
652
  }));
653
653
  }
654
654
  remove(t) {
655
- const s = n(this, I).get(t.queryHash);
656
- s && (t.destroy(), s === t && n(this, I).delete(t.queryHash), this.notify({ type: "removed", query: t }));
655
+ const s = a(this, X).get(t.queryHash);
656
+ s && (t.destroy(), s === t && a(this, X).delete(t.queryHash), this.notify({ type: "removed", query: t }));
657
657
  }
658
658
  clear() {
659
659
  F.batch(() => {
@@ -663,10 +663,10 @@ var I, ls, ar = (ls = class extends Ge {
663
663
  });
664
664
  }
665
665
  get(t) {
666
- return n(this, I).get(t);
666
+ return a(this, X).get(t);
667
667
  }
668
668
  getAll() {
669
- return [...n(this, I).values()];
669
+ return [...a(this, X).values()];
670
670
  }
671
671
  find(t) {
672
672
  const s = { exact: !0, ...t };
@@ -699,94 +699,94 @@ var I, ls, ar = (ls = class extends Ge {
699
699
  });
700
700
  });
701
701
  }
702
- }, I = new WeakMap(), ls), B, Ye, G, Oe, ee, ne, cs, or = (cs = class extends xs {
702
+ }, X = new WeakMap(), os), I, ze, K, Oe, B, ne, ls, ar = (ls = class extends ys {
703
703
  constructor(t) {
704
704
  super();
705
- p(this, ee);
706
- p(this, B, void 0);
707
- p(this, Ye, void 0);
708
- p(this, G, void 0);
709
- p(this, Oe, void 0);
710
- this.mutationId = t.mutationId, h(this, Ye, t.defaultOptions), h(this, G, t.mutationCache), h(this, B, []), this.state = t.state || bs(), this.setOptions(t.options), this.scheduleGc();
705
+ m(this, B);
706
+ m(this, I, void 0);
707
+ m(this, ze, void 0);
708
+ m(this, K, void 0);
709
+ m(this, Oe, void 0);
710
+ this.mutationId = t.mutationId, h(this, ze, t.defaultOptions), h(this, K, t.mutationCache), h(this, I, []), this.state = t.state || Cs(), this.setOptions(t.options), this.scheduleGc();
711
711
  }
712
712
  setOptions(t) {
713
- this.options = { ...n(this, Ye), ...t }, this.updateGcTime(this.options.gcTime);
713
+ this.options = { ...a(this, ze), ...t }, this.updateGcTime(this.options.gcTime);
714
714
  }
715
715
  get meta() {
716
716
  return this.options.meta;
717
717
  }
718
718
  addObserver(t) {
719
- n(this, B).includes(t) || (n(this, B).push(t), this.clearGcTimeout(), n(this, G).notify({
719
+ a(this, I).includes(t) || (a(this, I).push(t), this.clearGcTimeout(), a(this, K).notify({
720
720
  type: "observerAdded",
721
721
  mutation: this,
722
722
  observer: t
723
723
  }));
724
724
  }
725
725
  removeObserver(t) {
726
- h(this, B, n(this, B).filter((s) => s !== t)), this.scheduleGc(), n(this, G).notify({
726
+ h(this, I, a(this, I).filter((s) => s !== t)), this.scheduleGc(), a(this, K).notify({
727
727
  type: "observerRemoved",
728
728
  mutation: this,
729
729
  observer: t
730
730
  });
731
731
  }
732
732
  optionalRemove() {
733
- n(this, B).length || (this.state.status === "pending" ? this.scheduleGc() : n(this, G).remove(this));
733
+ a(this, I).length || (this.state.status === "pending" ? this.scheduleGc() : a(this, K).remove(this));
734
734
  }
735
735
  continue() {
736
736
  var t;
737
- return ((t = n(this, Oe)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
737
+ return ((t = a(this, Oe)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
738
738
  this.execute(this.state.variables);
739
739
  }
740
740
  async execute(t) {
741
- var a, o, l, c, f, g, u, C, w, v, b, _, m, y, S, E, k, U, K, D;
742
- const s = () => (h(this, Oe, Cs({
741
+ var n, o, l, c, f, y, u, x, g, p, w, _, v, C, S, E, k, T, $, D;
742
+ const s = () => (h(this, Oe, gs({
743
743
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
744
- onFail: (M, se) => {
745
- x(this, ee, ne).call(this, { type: "failed", failureCount: M, error: se });
744
+ onFail: (M, te) => {
745
+ b(this, B, ne).call(this, { type: "failed", failureCount: M, error: te });
746
746
  },
747
747
  onPause: () => {
748
- x(this, ee, ne).call(this, { type: "pause" });
748
+ b(this, B, ne).call(this, { type: "pause" });
749
749
  },
750
750
  onContinue: () => {
751
- x(this, ee, ne).call(this, { type: "continue" });
751
+ b(this, B, ne).call(this, { type: "continue" });
752
752
  },
753
753
  retry: this.options.retry ?? 0,
754
754
  retryDelay: this.options.retryDelay,
755
755
  networkMode: this.options.networkMode
756
- })), n(this, Oe).promise), r = this.state.status === "pending";
756
+ })), a(this, Oe).promise), r = this.state.status === "pending";
757
757
  try {
758
758
  if (!r) {
759
- x(this, ee, ne).call(this, { type: "pending", variables: t }), await ((o = (a = n(this, G).config).onMutate) == null ? void 0 : o.call(
760
- a,
759
+ b(this, B, ne).call(this, { type: "pending", variables: t }), await ((o = (n = a(this, K).config).onMutate) == null ? void 0 : o.call(
760
+ n,
761
761
  t,
762
762
  this
763
763
  ));
764
- const se = await ((c = (l = this.options).onMutate) == null ? void 0 : c.call(l, t));
765
- se !== this.state.context && x(this, ee, ne).call(this, {
764
+ const te = await ((c = (l = this.options).onMutate) == null ? void 0 : c.call(l, t));
765
+ te !== this.state.context && b(this, B, ne).call(this, {
766
766
  type: "pending",
767
- context: se,
767
+ context: te,
768
768
  variables: t
769
769
  });
770
770
  }
771
771
  const M = await s();
772
- return await ((g = (f = n(this, G).config).onSuccess) == null ? void 0 : g.call(
772
+ return await ((y = (f = a(this, K).config).onSuccess) == null ? void 0 : y.call(
773
773
  f,
774
774
  M,
775
775
  t,
776
776
  this.state.context,
777
777
  this
778
- )), await ((C = (u = this.options).onSuccess) == null ? void 0 : C.call(u, M, t, this.state.context)), await ((v = (w = n(this, G).config).onSettled) == null ? void 0 : v.call(
779
- w,
778
+ )), await ((x = (u = this.options).onSuccess) == null ? void 0 : x.call(u, M, t, this.state.context)), await ((p = (g = a(this, K).config).onSettled) == null ? void 0 : p.call(
779
+ g,
780
780
  M,
781
781
  null,
782
782
  this.state.variables,
783
783
  this.state.context,
784
784
  this
785
- )), await ((_ = (b = this.options).onSettled) == null ? void 0 : _.call(b, M, null, t, this.state.context)), x(this, ee, ne).call(this, { type: "success", data: M }), M;
785
+ )), await ((_ = (w = this.options).onSettled) == null ? void 0 : _.call(w, M, null, t, this.state.context)), b(this, B, ne).call(this, { type: "success", data: M }), M;
786
786
  } catch (M) {
787
787
  try {
788
- throw await ((y = (m = n(this, G).config).onError) == null ? void 0 : y.call(
789
- m,
788
+ throw await ((C = (v = a(this, K).config).onError) == null ? void 0 : C.call(
789
+ v,
790
790
  M,
791
791
  t,
792
792
  this.state.context,
@@ -796,26 +796,26 @@ var I, ls, ar = (ls = class extends Ge {
796
796
  M,
797
797
  t,
798
798
  this.state.context
799
- )), await ((U = (k = n(this, G).config).onSettled) == null ? void 0 : U.call(
799
+ )), await ((T = (k = a(this, K).config).onSettled) == null ? void 0 : T.call(
800
800
  k,
801
801
  void 0,
802
802
  M,
803
803
  this.state.variables,
804
804
  this.state.context,
805
805
  this
806
- )), await ((D = (K = this.options).onSettled) == null ? void 0 : D.call(
807
- K,
806
+ )), await ((D = ($ = this.options).onSettled) == null ? void 0 : D.call(
807
+ $,
808
808
  void 0,
809
809
  M,
810
810
  t,
811
811
  this.state.context
812
812
  )), M;
813
813
  } finally {
814
- x(this, ee, ne).call(this, { type: "error", error: M });
814
+ b(this, B, ne).call(this, { type: "error", error: M });
815
815
  }
816
816
  }
817
817
  }
818
- }, B = new WeakMap(), Ye = new WeakMap(), G = new WeakMap(), Oe = new WeakMap(), ee = new WeakSet(), ne = function(t) {
818
+ }, I = new WeakMap(), ze = new WeakMap(), K = new WeakMap(), Oe = new WeakMap(), B = new WeakSet(), ne = function(t) {
819
819
  const s = (r) => {
820
820
  switch (t.type) {
821
821
  case "failed":
@@ -870,16 +870,16 @@ var I, ls, ar = (ls = class extends Ge {
870
870
  }
871
871
  };
872
872
  this.state = s(this.state), F.batch(() => {
873
- n(this, B).forEach((r) => {
873
+ a(this, I).forEach((r) => {
874
874
  r.onMutationUpdate(t);
875
- }), n(this, G).notify({
875
+ }), a(this, K).notify({
876
876
  mutation: this,
877
877
  type: "updated",
878
878
  action: t
879
879
  });
880
880
  });
881
- }, cs);
882
- function bs() {
881
+ }, ls);
882
+ function Cs() {
883
883
  return {
884
884
  context: void 0,
885
885
  data: void 0,
@@ -892,47 +892,47 @@ function bs() {
892
892
  submittedAt: 0
893
893
  };
894
894
  }
895
- var W, Je, ye, us, lr = (us = class extends Ge {
895
+ var W, Ye, ye, cs, or = (cs = class extends Ge {
896
896
  constructor(t = {}) {
897
897
  super();
898
- p(this, W, void 0);
899
- p(this, Je, void 0);
900
- p(this, ye, void 0);
901
- this.config = t, h(this, W, []), h(this, Je, 0);
898
+ m(this, W, void 0);
899
+ m(this, Ye, void 0);
900
+ m(this, ye, void 0);
901
+ this.config = t, h(this, W, []), h(this, Ye, 0);
902
902
  }
903
903
  build(t, s, r) {
904
- const a = new or({
904
+ const n = new ar({
905
905
  mutationCache: this,
906
- mutationId: ++lt(this, Je)._,
906
+ mutationId: ++lt(this, Ye)._,
907
907
  options: t.defaultMutationOptions(s),
908
908
  state: r
909
909
  });
910
- return this.add(a), a;
910
+ return this.add(n), n;
911
911
  }
912
912
  add(t) {
913
- n(this, W).push(t), this.notify({ type: "added", mutation: t });
913
+ a(this, W).push(t), this.notify({ type: "added", mutation: t });
914
914
  }
915
915
  remove(t) {
916
- h(this, W, n(this, W).filter((s) => s !== t)), this.notify({ type: "removed", mutation: t });
916
+ h(this, W, a(this, W).filter((s) => s !== t)), this.notify({ type: "removed", mutation: t });
917
917
  }
918
918
  clear() {
919
919
  F.batch(() => {
920
- n(this, W).forEach((t) => {
920
+ a(this, W).forEach((t) => {
921
921
  this.remove(t);
922
922
  });
923
923
  });
924
924
  }
925
925
  getAll() {
926
- return n(this, W);
926
+ return a(this, W);
927
927
  }
928
928
  find(t) {
929
929
  const s = { exact: !0, ...t };
930
- return n(this, W).find(
930
+ return a(this, W).find(
931
931
  (r) => Wt(s, r)
932
932
  );
933
933
  }
934
934
  findAll(t = {}) {
935
- return n(this, W).filter(
935
+ return a(this, W).filter(
936
936
  (s) => Wt(t, s)
937
937
  );
938
938
  }
@@ -944,79 +944,79 @@ var W, Je, ye, us, lr = (us = class extends Ge {
944
944
  });
945
945
  }
946
946
  resumePausedMutations() {
947
- return h(this, ye, (n(this, ye) ?? Promise.resolve()).then(() => {
948
- const t = n(this, W).filter((s) => s.state.isPaused);
947
+ return h(this, ye, (a(this, ye) ?? Promise.resolve()).then(() => {
948
+ const t = a(this, W).filter((s) => s.state.isPaused);
949
949
  return F.batch(
950
950
  () => t.reduce(
951
- (s, r) => s.then(() => r.continue().catch(z)),
951
+ (s, r) => s.then(() => r.continue().catch(Z)),
952
952
  Promise.resolve()
953
953
  )
954
954
  );
955
955
  }).then(() => {
956
956
  h(this, ye, void 0);
957
- })), n(this, ye);
957
+ })), a(this, ye);
958
958
  }
959
- }, W = new WeakMap(), Je = new WeakMap(), ye = new WeakMap(), us);
960
- function cr(e) {
959
+ }, W = new WeakMap(), Ye = new WeakMap(), ye = new WeakMap(), cs);
960
+ function lr(e) {
961
961
  return {
962
962
  onFetch: (t, s) => {
963
963
  const r = async () => {
964
- var b, _, m, y, S;
965
- const a = t.options, o = (m = (_ = (b = t.fetchOptions) == null ? void 0 : b.meta) == null ? void 0 : _.fetchMore) == null ? void 0 : m.direction, l = ((y = t.state.data) == null ? void 0 : y.pages) || [], c = ((S = t.state.data) == null ? void 0 : S.pageParams) || [], f = { pages: [], pageParams: [] };
966
- let g = !1;
964
+ var w, _, v, C, S;
965
+ const n = t.options, o = (v = (_ = (w = t.fetchOptions) == null ? void 0 : w.meta) == null ? void 0 : _.fetchMore) == null ? void 0 : v.direction, l = ((C = t.state.data) == null ? void 0 : C.pages) || [], c = ((S = t.state.data) == null ? void 0 : S.pageParams) || [], f = { pages: [], pageParams: [] };
966
+ let y = !1;
967
967
  const u = (E) => {
968
968
  Object.defineProperty(E, "signal", {
969
969
  enumerable: !0,
970
- get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
971
- g = !0;
970
+ get: () => (t.signal.aborted ? y = !0 : t.signal.addEventListener("abort", () => {
971
+ y = !0;
972
972
  }), t.signal)
973
973
  });
974
- }, C = t.options.queryFn || (() => Promise.reject(
974
+ }, x = t.options.queryFn || (() => Promise.reject(
975
975
  new Error(`Missing queryFn: '${t.options.queryHash}'`)
976
- )), w = async (E, k, U) => {
977
- if (g)
976
+ )), g = async (E, k, T) => {
977
+ if (y)
978
978
  return Promise.reject();
979
979
  if (k == null && E.pages.length)
980
980
  return Promise.resolve(E);
981
- const K = {
981
+ const $ = {
982
982
  queryKey: t.queryKey,
983
983
  pageParam: k,
984
- direction: U ? "backward" : "forward",
984
+ direction: T ? "backward" : "forward",
985
985
  meta: t.options.meta
986
986
  };
987
- u(K);
988
- const D = await C(
989
- K
990
- ), { maxPages: M } = t.options, se = U ? Bs : Is;
987
+ u($);
988
+ const D = await x(
989
+ $
990
+ ), { maxPages: M } = t.options, te = T ? Is : Xs;
991
991
  return {
992
- pages: se(E.pages, D, M),
993
- pageParams: se(E.pageParams, k, M)
992
+ pages: te(E.pages, D, M),
993
+ pageParams: te(E.pageParams, k, M)
994
994
  };
995
995
  };
996
- let v;
996
+ let p;
997
997
  if (o && l.length) {
998
- const E = o === "backward", k = E ? ur : Jt, U = {
998
+ const E = o === "backward", k = E ? cr : Yt, T = {
999
999
  pages: l,
1000
1000
  pageParams: c
1001
- }, K = k(a, U);
1002
- v = await w(U, K, E);
1001
+ }, $ = k(n, T);
1002
+ p = await g(T, $, E);
1003
1003
  } else {
1004
- v = await w(
1004
+ p = await g(
1005
1005
  f,
1006
- c[0] ?? a.initialPageParam
1006
+ c[0] ?? n.initialPageParam
1007
1007
  );
1008
1008
  const E = e ?? l.length;
1009
1009
  for (let k = 1; k < E; k++) {
1010
- const U = Jt(a, v);
1011
- v = await w(v, U);
1010
+ const T = Yt(n, p);
1011
+ p = await g(p, T);
1012
1012
  }
1013
1013
  }
1014
- return v;
1014
+ return p;
1015
1015
  };
1016
1016
  t.options.persister ? t.fetchFn = () => {
1017
- var a, o;
1018
- return (o = (a = t.options).persister) == null ? void 0 : o.call(
1019
- a,
1017
+ var n, o;
1018
+ return (o = (n = t.options).persister) == null ? void 0 : o.call(
1019
+ n,
1020
1020
  r,
1021
1021
  {
1022
1022
  queryKey: t.queryKey,
@@ -1029,7 +1029,7 @@ function cr(e) {
1029
1029
  }
1030
1030
  };
1031
1031
  }
1032
- function Jt(e, { pages: t, pageParams: s }) {
1032
+ function Yt(e, { pages: t, pageParams: s }) {
1033
1033
  const r = t.length - 1;
1034
1034
  return e.getNextPageParam(
1035
1035
  t[r],
@@ -1038,7 +1038,7 @@ function Jt(e, { pages: t, pageParams: s }) {
1038
1038
  s
1039
1039
  );
1040
1040
  }
1041
- function ur(e, { pages: t, pageParams: s }) {
1041
+ function cr(e, { pages: t, pageParams: s }) {
1042
1042
  var r;
1043
1043
  return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
1044
1044
  e,
@@ -1048,38 +1048,38 @@ function ur(e, { pages: t, pageParams: s }) {
1048
1048
  s
1049
1049
  );
1050
1050
  }
1051
- var L, ce, ue, Le, Fe, de, Re, De, ds, ws = (ds = class {
1051
+ var L, ce, ue, Le, Fe, de, Re, De, us, xs = (us = class {
1052
1052
  constructor(e = {}) {
1053
- p(this, L, void 0);
1054
- p(this, ce, void 0);
1055
- p(this, ue, void 0);
1056
- p(this, Le, void 0);
1057
- p(this, Fe, void 0);
1058
- p(this, de, void 0);
1059
- p(this, Re, void 0);
1060
- p(this, De, void 0);
1061
- h(this, L, e.queryCache || new ar()), h(this, ce, e.mutationCache || new lr()), h(this, ue, e.defaultOptions || {}), h(this, Le, /* @__PURE__ */ new Map()), h(this, Fe, /* @__PURE__ */ new Map()), h(this, de, 0);
1053
+ m(this, L, void 0);
1054
+ m(this, ce, void 0);
1055
+ m(this, ue, void 0);
1056
+ m(this, Le, void 0);
1057
+ m(this, Fe, void 0);
1058
+ m(this, de, void 0);
1059
+ m(this, Re, void 0);
1060
+ m(this, De, void 0);
1061
+ h(this, L, e.queryCache || new nr()), h(this, ce, e.mutationCache || new or()), h(this, ue, e.defaultOptions || {}), h(this, Le, /* @__PURE__ */ new Map()), h(this, Fe, /* @__PURE__ */ new Map()), h(this, de, 0);
1062
1062
  }
1063
1063
  mount() {
1064
- lt(this, de)._++, n(this, de) === 1 && (h(this, Re, ft.subscribe(() => {
1065
- ft.isFocused() && (this.resumePausedMutations(), n(this, L).onFocus());
1064
+ lt(this, de)._++, a(this, de) === 1 && (h(this, Re, ft.subscribe(() => {
1065
+ ft.isFocused() && (this.resumePausedMutations(), a(this, L).onFocus());
1066
1066
  })), h(this, De, pt.subscribe(() => {
1067
- pt.isOnline() && (this.resumePausedMutations(), n(this, L).onOnline());
1067
+ pt.isOnline() && (this.resumePausedMutations(), a(this, L).onOnline());
1068
1068
  })));
1069
1069
  }
1070
1070
  unmount() {
1071
1071
  var e, t;
1072
- lt(this, de)._--, n(this, de) === 0 && ((e = n(this, Re)) == null || e.call(this), h(this, Re, void 0), (t = n(this, De)) == null || t.call(this), h(this, De, void 0));
1072
+ lt(this, de)._--, a(this, de) === 0 && ((e = a(this, Re)) == null || e.call(this), h(this, Re, void 0), (t = a(this, De)) == null || t.call(this), h(this, De, void 0));
1073
1073
  }
1074
1074
  isFetching(e) {
1075
- return n(this, L).findAll({ ...e, fetchStatus: "fetching" }).length;
1075
+ return a(this, L).findAll({ ...e, fetchStatus: "fetching" }).length;
1076
1076
  }
1077
1077
  isMutating(e) {
1078
- return n(this, ce).findAll({ ...e, status: "pending" }).length;
1078
+ return a(this, ce).findAll({ ...e, status: "pending" }).length;
1079
1079
  }
1080
1080
  getQueryData(e) {
1081
1081
  var t;
1082
- return (t = n(this, L).find({ queryKey: e })) == null ? void 0 : t.state.data;
1082
+ return (t = a(this, L).find({ queryKey: e })) == null ? void 0 : t.state.data;
1083
1083
  }
1084
1084
  ensureQueryData(e) {
1085
1085
  const t = this.getQueryData(e.queryKey);
@@ -1092,11 +1092,11 @@ var L, ce, ue, Le, Fe, de, Re, De, ds, ws = (ds = class {
1092
1092
  });
1093
1093
  }
1094
1094
  setQueryData(e, t, s) {
1095
- const r = n(this, L).find({ queryKey: e }), a = r == null ? void 0 : r.state.data, o = Xs(t, a);
1095
+ const r = a(this, L).find({ queryKey: e }), n = r == null ? void 0 : r.state.data, o = Ys(t, n);
1096
1096
  if (typeof o > "u")
1097
1097
  return;
1098
1098
  const l = this.defaultQueryOptions({ queryKey: e });
1099
- return n(this, L).build(this, l).setData(o, { ...s, manual: !0 });
1099
+ return a(this, L).build(this, l).setData(o, { ...s, manual: !0 });
1100
1100
  }
1101
1101
  setQueriesData(e, t, s) {
1102
1102
  return F.batch(
@@ -1108,10 +1108,10 @@ var L, ce, ue, Le, Fe, de, Re, De, ds, ws = (ds = class {
1108
1108
  }
1109
1109
  getQueryState(e) {
1110
1110
  var t;
1111
- return (t = n(this, L).find({ queryKey: e })) == null ? void 0 : t.state;
1111
+ return (t = a(this, L).find({ queryKey: e })) == null ? void 0 : t.state;
1112
1112
  }
1113
1113
  removeQueries(e) {
1114
- const t = n(this, L);
1114
+ const t = a(this, L);
1115
1115
  F.batch(() => {
1116
1116
  t.findAll(e).forEach((s) => {
1117
1117
  t.remove(s);
@@ -1119,23 +1119,23 @@ var L, ce, ue, Le, Fe, de, Re, De, ds, ws = (ds = class {
1119
1119
  });
1120
1120
  }
1121
1121
  resetQueries(e, t) {
1122
- const s = n(this, L), r = {
1122
+ const s = a(this, L), r = {
1123
1123
  type: "active",
1124
1124
  ...e
1125
1125
  };
1126
- return F.batch(() => (s.findAll(e).forEach((a) => {
1127
- a.reset();
1126
+ return F.batch(() => (s.findAll(e).forEach((n) => {
1127
+ n.reset();
1128
1128
  }), this.refetchQueries(r, t)));
1129
1129
  }
1130
1130
  cancelQueries(e = {}, t = {}) {
1131
1131
  const s = { revert: !0, ...t }, r = F.batch(
1132
- () => n(this, L).findAll(e).map((a) => a.cancel(s))
1132
+ () => a(this, L).findAll(e).map((n) => n.cancel(s))
1133
1133
  );
1134
- return Promise.all(r).then(z).catch(z);
1134
+ return Promise.all(r).then(Z).catch(Z);
1135
1135
  }
1136
1136
  invalidateQueries(e = {}, t = {}) {
1137
1137
  return F.batch(() => {
1138
- if (n(this, L).findAll(e).forEach((r) => {
1138
+ if (a(this, L).findAll(e).forEach((r) => {
1139
1139
  r.invalidate();
1140
1140
  }), e.refetchType === "none")
1141
1141
  return Promise.resolve();
@@ -1151,74 +1151,74 @@ var L, ce, ue, Le, Fe, de, Re, De, ds, ws = (ds = class {
1151
1151
  ...t,
1152
1152
  cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
1153
1153
  }, r = F.batch(
1154
- () => n(this, L).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
1155
- let o = a.fetch(void 0, s);
1156
- return s.throwOnError || (o = o.catch(z)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
1154
+ () => a(this, L).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
1155
+ let o = n.fetch(void 0, s);
1156
+ return s.throwOnError || (o = o.catch(Z)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
1157
1157
  })
1158
1158
  );
1159
- return Promise.all(r).then(z);
1159
+ return Promise.all(r).then(Z);
1160
1160
  }
1161
1161
  fetchQuery(e) {
1162
1162
  const t = this.defaultQueryOptions(e);
1163
1163
  typeof t.retry > "u" && (t.retry = !1);
1164
- const s = n(this, L).build(this, t);
1164
+ const s = a(this, L).build(this, t);
1165
1165
  return s.isStaleByTime(t.staleTime) ? s.fetch(t) : Promise.resolve(s.state.data);
1166
1166
  }
1167
1167
  prefetchQuery(e) {
1168
- return this.fetchQuery(e).then(z).catch(z);
1168
+ return this.fetchQuery(e).then(Z).catch(Z);
1169
1169
  }
1170
1170
  fetchInfiniteQuery(e) {
1171
- return e.behavior = cr(e.pages), this.fetchQuery(e);
1171
+ return e.behavior = lr(e.pages), this.fetchQuery(e);
1172
1172
  }
1173
1173
  prefetchInfiniteQuery(e) {
1174
- return this.fetchInfiniteQuery(e).then(z).catch(z);
1174
+ return this.fetchInfiniteQuery(e).then(Z).catch(Z);
1175
1175
  }
1176
1176
  resumePausedMutations() {
1177
- return n(this, ce).resumePausedMutations();
1177
+ return a(this, ce).resumePausedMutations();
1178
1178
  }
1179
1179
  getQueryCache() {
1180
- return n(this, L);
1180
+ return a(this, L);
1181
1181
  }
1182
1182
  getMutationCache() {
1183
- return n(this, ce);
1183
+ return a(this, ce);
1184
1184
  }
1185
1185
  getDefaultOptions() {
1186
- return n(this, ue);
1186
+ return a(this, ue);
1187
1187
  }
1188
1188
  setDefaultOptions(e) {
1189
1189
  h(this, ue, e);
1190
1190
  }
1191
1191
  setQueryDefaults(e, t) {
1192
- n(this, Le).set(We(e), {
1192
+ a(this, Le).set(je(e), {
1193
1193
  queryKey: e,
1194
1194
  defaultOptions: t
1195
1195
  });
1196
1196
  }
1197
1197
  getQueryDefaults(e) {
1198
- const t = [...n(this, Le).values()];
1198
+ const t = [...a(this, Le).values()];
1199
1199
  let s = {};
1200
1200
  return t.forEach((r) => {
1201
- Ze(e, r.queryKey) && (s = { ...s, ...r.defaultOptions });
1201
+ We(e, r.queryKey) && (s = { ...s, ...r.defaultOptions });
1202
1202
  }), s;
1203
1203
  }
1204
1204
  setMutationDefaults(e, t) {
1205
- n(this, Fe).set(We(e), {
1205
+ a(this, Fe).set(je(e), {
1206
1206
  mutationKey: e,
1207
1207
  defaultOptions: t
1208
1208
  });
1209
1209
  }
1210
1210
  getMutationDefaults(e) {
1211
- const t = [...n(this, Fe).values()];
1211
+ const t = [...a(this, Fe).values()];
1212
1212
  let s = {};
1213
1213
  return t.forEach((r) => {
1214
- Ze(e, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
1214
+ We(e, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
1215
1215
  }), s;
1216
1216
  }
1217
1217
  defaultQueryOptions(e) {
1218
1218
  if (e != null && e._defaulted)
1219
1219
  return e;
1220
1220
  const t = {
1221
- ...n(this, ue).queries,
1221
+ ...a(this, ue).queries,
1222
1222
  ...(e == null ? void 0 : e.queryKey) && this.getQueryDefaults(e.queryKey),
1223
1223
  ...e,
1224
1224
  _defaulted: !0
@@ -1230,96 +1230,96 @@ var L, ce, ue, Le, Fe, de, Re, De, ds, ws = (ds = class {
1230
1230
  }
1231
1231
  defaultMutationOptions(e) {
1232
1232
  return e != null && e._defaulted ? e : {
1233
- ...n(this, ue).mutations,
1233
+ ...a(this, ue).mutations,
1234
1234
  ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
1235
1235
  ...e,
1236
1236
  _defaulted: !0
1237
1237
  };
1238
1238
  }
1239
1239
  clear() {
1240
- n(this, L).clear(), n(this, ce).clear();
1240
+ a(this, L).clear(), a(this, ce).clear();
1241
1241
  }
1242
- }, L = new WeakMap(), ce = new WeakMap(), ue = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), de = new WeakMap(), Re = new WeakMap(), De = new WeakMap(), ds), H, P, Te, T, Ce, Ue, te, Xe, Qe, He, xe, be, he, we, je, Ve, Ie, At, Be, St, et, kt, tt, Pt, st, Nt, rt, Mt, it, Ot, Ct, js, hs, dr = (hs = class extends Ge {
1242
+ }, L = new WeakMap(), ce = new WeakMap(), ue = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), de = new WeakMap(), Re = new WeakMap(), De = new WeakMap(), us), Q, N, Je, U, Ce, Te, ee, Xe, Ue, Qe, xe, be, he, He, we, Ve, Ie, At, Be, St, et, kt, tt, Pt, st, Nt, rt, Mt, it, Ot, Ct, bs, ds, ur = (ds = class extends Ge {
1243
1243
  constructor(t, s) {
1244
1244
  super();
1245
- p(this, je);
1246
- p(this, Ie);
1247
- p(this, Be);
1248
- p(this, et);
1249
- p(this, tt);
1250
- p(this, st);
1251
- p(this, rt);
1252
- p(this, it);
1253
- p(this, Ct);
1254
- p(this, H, void 0);
1255
- p(this, P, void 0);
1256
- p(this, Te, void 0);
1257
- p(this, T, void 0);
1258
- p(this, Ce, void 0);
1259
- p(this, Ue, void 0);
1260
- p(this, te, void 0);
1261
- p(this, Xe, void 0);
1262
- p(this, Qe, void 0);
1245
+ m(this, we);
1246
+ m(this, Ie);
1247
+ m(this, Be);
1248
+ m(this, et);
1249
+ m(this, tt);
1250
+ m(this, st);
1251
+ m(this, rt);
1252
+ m(this, it);
1253
+ m(this, Ct);
1254
+ m(this, Q, void 0);
1255
+ m(this, N, void 0);
1256
+ m(this, Je, void 0);
1257
+ m(this, U, void 0);
1258
+ m(this, Ce, void 0);
1259
+ m(this, Te, void 0);
1260
+ m(this, ee, void 0);
1261
+ m(this, Xe, void 0);
1262
+ m(this, Ue, void 0);
1263
1263
  // This property keeps track of the last query with defined data.
1264
1264
  // It will be used to pass the previous data and query to the placeholder function between renders.
1265
- p(this, He, void 0);
1266
- p(this, xe, void 0);
1267
- p(this, be, void 0);
1268
- p(this, he, void 0);
1269
- p(this, we, void 0);
1270
- h(this, P, void 0), h(this, Te, void 0), h(this, T, void 0), h(this, we, /* @__PURE__ */ new Set()), h(this, H, t), this.options = s, h(this, te, null), this.bindMethods(), this.setOptions(s);
1265
+ m(this, Qe, void 0);
1266
+ m(this, xe, void 0);
1267
+ m(this, be, void 0);
1268
+ m(this, he, void 0);
1269
+ m(this, He, /* @__PURE__ */ new Set());
1270
+ this.options = s, h(this, Q, t), h(this, ee, null), this.bindMethods(), this.setOptions(s);
1271
1271
  }
1272
1272
  bindMethods() {
1273
1273
  this.refetch = this.refetch.bind(this);
1274
1274
  }
1275
1275
  onSubscribe() {
1276
- this.listeners.size === 1 && (n(this, P).addObserver(this), Xt(n(this, P), this.options) ? x(this, je, Ve).call(this) : this.updateResult(), x(this, tt, Pt).call(this));
1276
+ this.listeners.size === 1 && (a(this, N).addObserver(this), Jt(a(this, N), this.options) ? b(this, we, Ve).call(this) : this.updateResult(), b(this, tt, Pt).call(this));
1277
1277
  }
1278
1278
  onUnsubscribe() {
1279
1279
  this.hasListeners() || this.destroy();
1280
1280
  }
1281
1281
  shouldFetchOnReconnect() {
1282
1282
  return Lt(
1283
- n(this, P),
1283
+ a(this, N),
1284
1284
  this.options,
1285
1285
  this.options.refetchOnReconnect
1286
1286
  );
1287
1287
  }
1288
1288
  shouldFetchOnWindowFocus() {
1289
1289
  return Lt(
1290
- n(this, P),
1290
+ a(this, N),
1291
1291
  this.options,
1292
1292
  this.options.refetchOnWindowFocus
1293
1293
  );
1294
1294
  }
1295
1295
  destroy() {
1296
- this.listeners = /* @__PURE__ */ new Set(), x(this, st, Nt).call(this), x(this, rt, Mt).call(this), n(this, P).removeObserver(this);
1296
+ this.listeners = /* @__PURE__ */ new Set(), b(this, st, Nt).call(this), b(this, rt, Mt).call(this), a(this, N).removeObserver(this);
1297
1297
  }
1298
1298
  setOptions(t, s) {
1299
- const r = this.options, a = n(this, P);
1300
- if (this.options = n(this, H).defaultQueryOptions(t), ht(r, this.options) || n(this, H).getQueryCache().notify({
1299
+ const r = this.options, n = a(this, N);
1300
+ if (this.options = a(this, Q).defaultQueryOptions(t), ht(r, this.options) || a(this, Q).getQueryCache().notify({
1301
1301
  type: "observerOptionsUpdated",
1302
- query: n(this, P),
1302
+ query: a(this, N),
1303
1303
  observer: this
1304
1304
  }), typeof this.options.enabled < "u" && typeof this.options.enabled != "boolean")
1305
1305
  throw new Error("Expected enabled to be a boolean");
1306
- this.options.queryKey || (this.options.queryKey = r.queryKey), x(this, it, Ot).call(this);
1306
+ this.options.queryKey || (this.options.queryKey = r.queryKey), b(this, it, Ot).call(this);
1307
1307
  const o = this.hasListeners();
1308
- o && It(
1309
- n(this, P),
1310
- a,
1308
+ o && Xt(
1309
+ a(this, N),
1310
+ n,
1311
1311
  this.options,
1312
1312
  r
1313
- ) && x(this, je, Ve).call(this), this.updateResult(s), o && (n(this, P) !== a || this.options.enabled !== r.enabled || this.options.staleTime !== r.staleTime) && x(this, Ie, At).call(this);
1314
- const l = x(this, Be, St).call(this);
1315
- o && (n(this, P) !== a || this.options.enabled !== r.enabled || l !== n(this, he)) && x(this, et, kt).call(this, l);
1313
+ ) && b(this, we, Ve).call(this), this.updateResult(s), o && (a(this, N) !== n || this.options.enabled !== r.enabled || this.options.staleTime !== r.staleTime) && b(this, Ie, At).call(this);
1314
+ const l = b(this, Be, St).call(this);
1315
+ o && (a(this, N) !== n || this.options.enabled !== r.enabled || l !== a(this, he)) && b(this, et, kt).call(this, l);
1316
1316
  }
1317
1317
  getOptimisticResult(t) {
1318
- const s = n(this, H).getQueryCache().build(n(this, H), t), r = this.createResult(s, t);
1319
- return fr(this, r) && (h(this, T, r), h(this, Ue, this.options), h(this, Ce, n(this, P).state)), r;
1318
+ const s = a(this, Q).getQueryCache().build(a(this, Q), t), r = this.createResult(s, t);
1319
+ return hr(this, r) && (h(this, U, r), h(this, Te, this.options), h(this, Ce, a(this, N).state)), r;
1320
1320
  }
1321
1321
  getCurrentResult() {
1322
- return n(this, T);
1322
+ return a(this, U);
1323
1323
  }
1324
1324
  trackResult(t) {
1325
1325
  const s = {};
@@ -1327,12 +1327,12 @@ var L, ce, ue, Le, Fe, de, Re, De, ds, ws = (ds = class {
1327
1327
  Object.defineProperty(s, r, {
1328
1328
  configurable: !1,
1329
1329
  enumerable: !0,
1330
- get: () => (n(this, we).add(r), t[r])
1330
+ get: () => (a(this, He).add(r), t[r])
1331
1331
  });
1332
1332
  }), s;
1333
1333
  }
1334
1334
  getCurrentQuery() {
1335
- return n(this, P);
1335
+ return a(this, N);
1336
1336
  }
1337
1337
  refetch({ ...t } = {}) {
1338
1338
  return this.fetch({
@@ -1340,76 +1340,76 @@ var L, ce, ue, Le, Fe, de, Re, De, ds, ws = (ds = class {
1340
1340
  });
1341
1341
  }
1342
1342
  fetchOptimistic(t) {
1343
- const s = n(this, H).defaultQueryOptions(t), r = n(this, H).getQueryCache().build(n(this, H), s);
1343
+ const s = a(this, Q).defaultQueryOptions(t), r = a(this, Q).getQueryCache().build(a(this, Q), s);
1344
1344
  return r.isFetchingOptimistic = !0, r.fetch().then(() => this.createResult(r, s));
1345
1345
  }
1346
1346
  fetch(t) {
1347
- return x(this, je, Ve).call(this, {
1347
+ return b(this, we, Ve).call(this, {
1348
1348
  ...t,
1349
1349
  cancelRefetch: t.cancelRefetch ?? !0
1350
- }).then(() => (this.updateResult(), n(this, T)));
1350
+ }).then(() => (this.updateResult(), a(this, U)));
1351
1351
  }
1352
1352
  createResult(t, s) {
1353
- var K;
1354
- const r = n(this, P), a = this.options, o = n(this, T), l = n(this, Ce), c = n(this, Ue), g = t !== r ? t.state : n(this, Te), { state: u } = t;
1355
- let { error: C, errorUpdatedAt: w, fetchStatus: v, status: b } = u, _ = !1, m;
1353
+ var $;
1354
+ const r = a(this, N), n = this.options, o = a(this, U), l = a(this, Ce), c = a(this, Te), y = t !== r ? t.state : a(this, Je), { state: u } = t;
1355
+ let { error: x, errorUpdatedAt: g, fetchStatus: p, status: w } = u, _ = !1, v;
1356
1356
  if (s._optimisticResults) {
1357
- const D = this.hasListeners(), M = !D && Xt(t, s), se = D && It(t, r, s, a);
1358
- (M || se) && (v = xt(t.options.networkMode) ? "fetching" : "paused", u.dataUpdatedAt || (b = "pending")), s._optimisticResults === "isRestoring" && (v = "idle");
1357
+ const D = this.hasListeners(), M = !D && Jt(t, s), te = D && Xt(t, r, s, n);
1358
+ (M || te) && (p = xt(t.options.networkMode) ? "fetching" : "paused", u.dataUpdatedAt || (w = "pending")), s._optimisticResults === "isRestoring" && (p = "idle");
1359
1359
  }
1360
1360
  if (s.select && typeof u.data < "u")
1361
- if (o && u.data === (l == null ? void 0 : l.data) && s.select === n(this, Xe))
1362
- m = n(this, Qe);
1361
+ if (o && u.data === (l == null ? void 0 : l.data) && s.select === a(this, Xe))
1362
+ v = a(this, Ue);
1363
1363
  else
1364
1364
  try {
1365
- h(this, Xe, s.select), m = s.select(u.data), m = Et(o == null ? void 0 : o.data, m, s), h(this, Qe, m), h(this, te, null);
1365
+ h(this, Xe, s.select), v = s.select(u.data), v = Et(o == null ? void 0 : o.data, v, s), h(this, Ue, v), h(this, ee, null);
1366
1366
  } catch (D) {
1367
- h(this, te, D);
1367
+ h(this, ee, D);
1368
1368
  }
1369
1369
  else
1370
- m = u.data;
1371
- if (typeof s.placeholderData < "u" && typeof m > "u" && b === "pending") {
1370
+ v = u.data;
1371
+ if (typeof s.placeholderData < "u" && typeof v > "u" && w === "pending") {
1372
1372
  let D;
1373
1373
  if (o != null && o.isPlaceholderData && s.placeholderData === (c == null ? void 0 : c.placeholderData))
1374
1374
  D = o.data;
1375
1375
  else if (D = typeof s.placeholderData == "function" ? s.placeholderData(
1376
- (K = n(this, He)) == null ? void 0 : K.state.data,
1377
- n(this, He)
1376
+ ($ = a(this, Qe)) == null ? void 0 : $.state.data,
1377
+ a(this, Qe)
1378
1378
  ) : s.placeholderData, s.select && typeof D < "u")
1379
1379
  try {
1380
- D = s.select(D), h(this, te, null);
1380
+ D = s.select(D), h(this, ee, null);
1381
1381
  } catch (M) {
1382
- h(this, te, M);
1382
+ h(this, ee, M);
1383
1383
  }
1384
- typeof D < "u" && (b = "success", m = Et(
1384
+ typeof D < "u" && (w = "success", v = Et(
1385
1385
  o == null ? void 0 : o.data,
1386
1386
  D,
1387
1387
  s
1388
1388
  ), _ = !0);
1389
1389
  }
1390
- n(this, te) && (C = n(this, te), m = n(this, Qe), w = Date.now(), b = "error");
1391
- const y = v === "fetching", S = b === "pending", E = b === "error", k = S && y;
1390
+ a(this, ee) && (x = a(this, ee), v = a(this, Ue), g = Date.now(), w = "error");
1391
+ const C = p === "fetching", S = w === "pending", E = w === "error", k = S && C;
1392
1392
  return {
1393
- status: b,
1394
- fetchStatus: v,
1393
+ status: w,
1394
+ fetchStatus: p,
1395
1395
  isPending: S,
1396
- isSuccess: b === "success",
1396
+ isSuccess: w === "success",
1397
1397
  isError: E,
1398
1398
  isInitialLoading: k,
1399
1399
  isLoading: k,
1400
- data: m,
1400
+ data: v,
1401
1401
  dataUpdatedAt: u.dataUpdatedAt,
1402
- error: C,
1403
- errorUpdatedAt: w,
1402
+ error: x,
1403
+ errorUpdatedAt: g,
1404
1404
  failureCount: u.fetchFailureCount,
1405
1405
  failureReason: u.fetchFailureReason,
1406
1406
  errorUpdateCount: u.errorUpdateCount,
1407
1407
  isFetched: u.dataUpdateCount > 0 || u.errorUpdateCount > 0,
1408
- isFetchedAfterMount: u.dataUpdateCount > g.dataUpdateCount || u.errorUpdateCount > g.errorUpdateCount,
1409
- isFetching: y,
1410
- isRefetching: y && !S,
1408
+ isFetchedAfterMount: u.dataUpdateCount > y.dataUpdateCount || u.errorUpdateCount > y.errorUpdateCount,
1409
+ isFetching: C,
1410
+ isRefetching: C && !S,
1411
1411
  isLoadingError: E && u.dataUpdatedAt === 0,
1412
- isPaused: v === "paused",
1412
+ isPaused: p === "paused",
1413
1413
  isPlaceholderData: _,
1414
1414
  isRefetchError: E && u.dataUpdatedAt !== 0,
1415
1415
  isStale: Ht(t, s),
@@ -1417,79 +1417,79 @@ var L, ce, ue, Le, Fe, de, Re, De, ds, ws = (ds = class {
1417
1417
  };
1418
1418
  }
1419
1419
  updateResult(t) {
1420
- const s = n(this, T), r = this.createResult(n(this, P), this.options);
1421
- if (h(this, Ce, n(this, P).state), h(this, Ue, this.options), n(this, Ce).data !== void 0 && h(this, He, n(this, P)), ht(r, s))
1420
+ const s = a(this, U), r = this.createResult(a(this, N), this.options);
1421
+ if (h(this, Ce, a(this, N).state), h(this, Te, this.options), a(this, Ce).data !== void 0 && h(this, Qe, a(this, N)), ht(r, s))
1422
1422
  return;
1423
- h(this, T, r);
1424
- const a = {}, o = () => {
1423
+ h(this, U, r);
1424
+ const n = {}, o = () => {
1425
1425
  if (!s)
1426
1426
  return !0;
1427
1427
  const { notifyOnChangeProps: l } = this.options, c = typeof l == "function" ? l() : l;
1428
- if (c === "all" || !c && !n(this, we).size)
1428
+ if (c === "all" || !c && !a(this, He).size)
1429
1429
  return !0;
1430
1430
  const f = new Set(
1431
- c ?? n(this, we)
1431
+ c ?? a(this, He)
1432
1432
  );
1433
- return this.options.throwOnError && f.add("error"), Object.keys(n(this, T)).some((g) => {
1434
- const u = g;
1435
- return n(this, T)[u] !== s[u] && f.has(u);
1433
+ return this.options.throwOnError && f.add("error"), Object.keys(a(this, U)).some((y) => {
1434
+ const u = y;
1435
+ return a(this, U)[u] !== s[u] && f.has(u);
1436
1436
  });
1437
1437
  };
1438
- (t == null ? void 0 : t.listeners) !== !1 && o() && (a.listeners = !0), x(this, Ct, js).call(this, { ...a, ...t });
1438
+ (t == null ? void 0 : t.listeners) !== !1 && o() && (n.listeners = !0), b(this, Ct, bs).call(this, { ...n, ...t });
1439
1439
  }
1440
1440
  onQueryUpdate() {
1441
- this.updateResult(), this.hasListeners() && x(this, tt, Pt).call(this);
1441
+ this.updateResult(), this.hasListeners() && b(this, tt, Pt).call(this);
1442
1442
  }
1443
- }, H = new WeakMap(), P = new WeakMap(), Te = new WeakMap(), T = new WeakMap(), Ce = new WeakMap(), Ue = new WeakMap(), te = new WeakMap(), Xe = new WeakMap(), Qe = new WeakMap(), He = new WeakMap(), xe = new WeakMap(), be = new WeakMap(), he = new WeakMap(), we = new WeakMap(), je = new WeakSet(), Ve = function(t) {
1444
- x(this, it, Ot).call(this);
1445
- let s = n(this, P).fetch(
1443
+ }, Q = new WeakMap(), N = new WeakMap(), Je = new WeakMap(), U = new WeakMap(), Ce = new WeakMap(), Te = new WeakMap(), ee = new WeakMap(), Xe = new WeakMap(), Ue = new WeakMap(), Qe = new WeakMap(), xe = new WeakMap(), be = new WeakMap(), he = new WeakMap(), He = new WeakMap(), we = new WeakSet(), Ve = function(t) {
1444
+ b(this, it, Ot).call(this);
1445
+ let s = a(this, N).fetch(
1446
1446
  this.options,
1447
1447
  t
1448
1448
  );
1449
- return t != null && t.throwOnError || (s = s.catch(z)), s;
1449
+ return t != null && t.throwOnError || (s = s.catch(Z)), s;
1450
1450
  }, Ie = new WeakSet(), At = function() {
1451
- if (x(this, st, Nt).call(this), Ke || n(this, T).isStale || !jt(this.options.staleTime))
1451
+ if (b(this, st, Nt).call(this), Ke || a(this, U).isStale || !jt(this.options.staleTime))
1452
1452
  return;
1453
- const s = ms(
1454
- n(this, T).dataUpdatedAt,
1453
+ const s = ps(
1454
+ a(this, U).dataUpdatedAt,
1455
1455
  this.options.staleTime
1456
1456
  ) + 1;
1457
1457
  h(this, xe, setTimeout(() => {
1458
- n(this, T).isStale || this.updateResult();
1458
+ a(this, U).isStale || this.updateResult();
1459
1459
  }, s));
1460
1460
  }, Be = new WeakSet(), St = function() {
1461
- return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(n(this, P)) : this.options.refetchInterval) ?? !1;
1461
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(a(this, N)) : this.options.refetchInterval) ?? !1;
1462
1462
  }, et = new WeakSet(), kt = function(t) {
1463
- x(this, rt, Mt).call(this), h(this, he, t), !(Ke || this.options.enabled === !1 || !jt(n(this, he)) || n(this, he) === 0) && h(this, be, setInterval(() => {
1464
- (this.options.refetchIntervalInBackground || ft.isFocused()) && x(this, je, Ve).call(this);
1465
- }, n(this, he)));
1463
+ b(this, rt, Mt).call(this), h(this, he, t), !(Ke || this.options.enabled === !1 || !jt(a(this, he)) || a(this, he) === 0) && h(this, be, setInterval(() => {
1464
+ (this.options.refetchIntervalInBackground || ft.isFocused()) && b(this, we, Ve).call(this);
1465
+ }, a(this, he)));
1466
1466
  }, tt = new WeakSet(), Pt = function() {
1467
- x(this, Ie, At).call(this), x(this, et, kt).call(this, x(this, Be, St).call(this));
1467
+ b(this, Ie, At).call(this), b(this, et, kt).call(this, b(this, Be, St).call(this));
1468
1468
  }, st = new WeakSet(), Nt = function() {
1469
- n(this, xe) && (clearTimeout(n(this, xe)), h(this, xe, void 0));
1469
+ a(this, xe) && (clearTimeout(a(this, xe)), h(this, xe, void 0));
1470
1470
  }, rt = new WeakSet(), Mt = function() {
1471
- n(this, be) && (clearInterval(n(this, be)), h(this, be, void 0));
1471
+ a(this, be) && (clearInterval(a(this, be)), h(this, be, void 0));
1472
1472
  }, it = new WeakSet(), Ot = function() {
1473
- const t = n(this, H).getQueryCache().build(n(this, H), this.options);
1474
- if (t === n(this, P))
1473
+ const t = a(this, Q).getQueryCache().build(a(this, Q), this.options);
1474
+ if (t === a(this, N))
1475
1475
  return;
1476
- const s = n(this, P);
1477
- h(this, P, t), h(this, Te, t.state), this.hasListeners() && (s == null || s.removeObserver(this), t.addObserver(this));
1478
- }, Ct = new WeakSet(), js = function(t) {
1476
+ const s = a(this, N);
1477
+ h(this, N, t), h(this, Je, t.state), this.hasListeners() && (s == null || s.removeObserver(this), t.addObserver(this));
1478
+ }, Ct = new WeakSet(), bs = function(t) {
1479
1479
  F.batch(() => {
1480
1480
  t.listeners && this.listeners.forEach((s) => {
1481
- s(n(this, T));
1482
- }), n(this, H).getQueryCache().notify({
1483
- query: n(this, P),
1481
+ s(a(this, U));
1482
+ }), a(this, Q).getQueryCache().notify({
1483
+ query: a(this, N),
1484
1484
  type: "observerResultsUpdated"
1485
1485
  });
1486
1486
  });
1487
- }, hs);
1488
- function hr(e, t) {
1487
+ }, ds);
1488
+ function dr(e, t) {
1489
1489
  return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === !1);
1490
1490
  }
1491
- function Xt(e, t) {
1492
- return hr(e, t) || e.state.dataUpdatedAt > 0 && Lt(e, t, t.refetchOnMount);
1491
+ function Jt(e, t) {
1492
+ return dr(e, t) || e.state.dataUpdatedAt > 0 && Lt(e, t, t.refetchOnMount);
1493
1493
  }
1494
1494
  function Lt(e, t, s) {
1495
1495
  if (t.enabled !== !1) {
@@ -1498,25 +1498,25 @@ function Lt(e, t, s) {
1498
1498
  }
1499
1499
  return !1;
1500
1500
  }
1501
- function It(e, t, s, r) {
1501
+ function Xt(e, t, s, r) {
1502
1502
  return s.enabled !== !1 && (e !== t || r.enabled === !1) && (!s.suspense || e.state.status !== "error") && Ht(e, s);
1503
1503
  }
1504
1504
  function Ht(e, t) {
1505
1505
  return e.isStaleByTime(t.staleTime);
1506
1506
  }
1507
- function fr(e, t) {
1507
+ function hr(e, t) {
1508
1508
  return !ht(e.getCurrentResult(), t);
1509
1509
  }
1510
- var fe, Q, Z, ie, $e, dt, nt, Ft, fs, pr = (fs = class extends Ge {
1510
+ var fe, re, G, ie, $e, dt, nt, Ft, hs, fr = (hs = class extends Ge {
1511
1511
  constructor(t, s) {
1512
1512
  super();
1513
- p(this, $e);
1514
- p(this, nt);
1515
- p(this, fe, void 0);
1516
- p(this, Q, void 0);
1517
- p(this, Z, void 0);
1518
- p(this, ie, void 0);
1519
- h(this, Q, void 0), h(this, fe, t), this.setOptions(s), this.bindMethods(), x(this, $e, dt).call(this);
1513
+ m(this, $e);
1514
+ m(this, nt);
1515
+ m(this, fe, void 0);
1516
+ m(this, re, void 0);
1517
+ m(this, G, void 0);
1518
+ m(this, ie, void 0);
1519
+ h(this, re, void 0), h(this, fe, t), this.setOptions(s), this.bindMethods(), b(this, $e, dt).call(this);
1520
1520
  }
1521
1521
  bindMethods() {
1522
1522
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
@@ -1524,33 +1524,34 @@ var fe, Q, Z, ie, $e, dt, nt, Ft, fs, pr = (fs = class extends Ge {
1524
1524
  setOptions(t) {
1525
1525
  var r;
1526
1526
  const s = this.options;
1527
- this.options = n(this, fe).defaultMutationOptions(t), ht(s, this.options) || n(this, fe).getMutationCache().notify({
1527
+ this.options = a(this, fe).defaultMutationOptions(t), ht(s, this.options) || a(this, fe).getMutationCache().notify({
1528
1528
  type: "observerOptionsUpdated",
1529
- mutation: n(this, Z),
1529
+ mutation: a(this, G),
1530
1530
  observer: this
1531
- }), (r = n(this, Z)) == null || r.setOptions(this.options);
1531
+ }), (r = a(this, G)) == null || r.setOptions(this.options), s != null && s.mutationKey && this.options.mutationKey && je(s.mutationKey) !== je(this.options.mutationKey) && this.reset();
1532
1532
  }
1533
1533
  onUnsubscribe() {
1534
1534
  var t;
1535
- this.hasListeners() || (t = n(this, Z)) == null || t.removeObserver(this);
1535
+ this.hasListeners() || (t = a(this, G)) == null || t.removeObserver(this);
1536
1536
  }
1537
1537
  onMutationUpdate(t) {
1538
- x(this, $e, dt).call(this), x(this, nt, Ft).call(this, t);
1538
+ b(this, $e, dt).call(this), b(this, nt, Ft).call(this, t);
1539
1539
  }
1540
1540
  getCurrentResult() {
1541
- return n(this, Q);
1541
+ return a(this, re);
1542
1542
  }
1543
1543
  reset() {
1544
- h(this, Z, void 0), x(this, $e, dt).call(this), x(this, nt, Ft).call(this);
1544
+ var t;
1545
+ (t = a(this, G)) == null || t.removeObserver(this), h(this, G, void 0), b(this, $e, dt).call(this), b(this, nt, Ft).call(this);
1545
1546
  }
1546
1547
  mutate(t, s) {
1547
1548
  var r;
1548
- return h(this, ie, s), (r = n(this, Z)) == null || r.removeObserver(this), h(this, Z, n(this, fe).getMutationCache().build(n(this, fe), this.options)), n(this, Z).addObserver(this), n(this, Z).execute(t);
1549
+ return h(this, ie, s), (r = a(this, G)) == null || r.removeObserver(this), h(this, G, a(this, fe).getMutationCache().build(a(this, fe), this.options)), a(this, G).addObserver(this), a(this, G).execute(t);
1549
1550
  }
1550
- }, fe = new WeakMap(), Q = new WeakMap(), Z = new WeakMap(), ie = new WeakMap(), $e = new WeakSet(), dt = function() {
1551
+ }, fe = new WeakMap(), re = new WeakMap(), G = new WeakMap(), ie = new WeakMap(), $e = new WeakSet(), dt = function() {
1551
1552
  var s;
1552
- const t = ((s = n(this, Z)) == null ? void 0 : s.state) ?? bs();
1553
- h(this, Q, {
1553
+ const t = ((s = a(this, G)) == null ? void 0 : s.state) ?? Cs();
1554
+ h(this, re, {
1554
1555
  ...t,
1555
1556
  isPending: t.status === "pending",
1556
1557
  isSuccess: t.status === "success",
@@ -1561,50 +1562,38 @@ var fe, Q, Z, ie, $e, dt, nt, Ft, fs, pr = (fs = class extends Ge {
1561
1562
  });
1562
1563
  }, nt = new WeakSet(), Ft = function(t) {
1563
1564
  F.batch(() => {
1564
- var s, r, a, o, l, c, f, g;
1565
- n(this, ie) && this.hasListeners() && ((t == null ? void 0 : t.type) === "success" ? ((r = (s = n(this, ie)).onSuccess) == null || r.call(
1566
- s,
1567
- t.data,
1568
- n(this, Q).variables,
1569
- n(this, Q).context
1570
- ), (o = (a = n(this, ie)).onSettled) == null || o.call(
1571
- a,
1572
- t.data,
1573
- null,
1574
- n(this, Q).variables,
1575
- n(this, Q).context
1576
- )) : (t == null ? void 0 : t.type) === "error" && ((c = (l = n(this, ie)).onError) == null || c.call(
1577
- l,
1578
- t.error,
1579
- n(this, Q).variables,
1580
- n(this, Q).context
1581
- ), (g = (f = n(this, ie)).onSettled) == null || g.call(
1582
- f,
1583
- void 0,
1584
- t.error,
1585
- n(this, Q).variables,
1586
- n(this, Q).context
1587
- ))), this.listeners.forEach((u) => {
1588
- u(n(this, Q));
1565
+ var s, r, n, o, l, c, f, y;
1566
+ if (a(this, ie) && this.hasListeners()) {
1567
+ const u = a(this, re).variables, x = a(this, re).context;
1568
+ (t == null ? void 0 : t.type) === "success" ? ((r = (s = a(this, ie)).onSuccess) == null || r.call(s, t.data, u, x), (o = (n = a(this, ie)).onSettled) == null || o.call(n, t.data, null, u, x)) : (t == null ? void 0 : t.type) === "error" && ((c = (l = a(this, ie)).onError) == null || c.call(l, t.error, u, x), (y = (f = a(this, ie)).onSettled) == null || y.call(
1569
+ f,
1570
+ void 0,
1571
+ t.error,
1572
+ u,
1573
+ x
1574
+ ));
1575
+ }
1576
+ this.listeners.forEach((u) => {
1577
+ u(a(this, re));
1589
1578
  });
1590
1579
  });
1591
- }, fs), _s = d.createContext(
1580
+ }, hs), ws = d.createContext(
1592
1581
  void 0
1593
- ), Es = (e) => {
1594
- const t = d.useContext(_s);
1582
+ ), js = (e) => {
1583
+ const t = d.useContext(ws);
1595
1584
  if (e)
1596
1585
  return e;
1597
1586
  if (!t)
1598
1587
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1599
1588
  return t;
1600
- }, mr = ({
1589
+ }, pr = ({
1601
1590
  client: e,
1602
1591
  children: t
1603
1592
  }) => (d.useEffect(() => (e.mount(), () => {
1604
1593
  e.unmount();
1605
- }), [e]), /* @__PURE__ */ d.createElement(_s.Provider, { value: e }, t)), As = d.createContext(!1), vr = () => d.useContext(As);
1606
- As.Provider;
1607
- function gr() {
1594
+ }), [e]), /* @__PURE__ */ d.createElement(ws.Provider, { value: e }, t)), _s = d.createContext(!1), mr = () => d.useContext(_s);
1595
+ _s.Provider;
1596
+ function vr() {
1608
1597
  let e = !1;
1609
1598
  return {
1610
1599
  clearReset: () => {
@@ -1616,29 +1605,29 @@ function gr() {
1616
1605
  isReset: () => e
1617
1606
  };
1618
1607
  }
1619
- var yr = d.createContext(gr()), Cr = () => d.useContext(yr);
1620
- function Ss(e, t) {
1608
+ var gr = d.createContext(vr()), yr = () => d.useContext(gr);
1609
+ function Es(e, t) {
1621
1610
  return typeof e == "function" ? e(...t) : !!e;
1622
1611
  }
1623
- var xr = (e, t) => {
1612
+ var Cr = (e, t) => {
1624
1613
  (e.suspense || e.throwOnError) && (t.isReset() || (e.retryOnMount = !1));
1625
- }, br = (e) => {
1614
+ }, xr = (e) => {
1626
1615
  d.useEffect(() => {
1627
1616
  e.clearReset();
1628
1617
  }, [e]);
1629
- }, wr = ({
1618
+ }, br = ({
1630
1619
  result: e,
1631
1620
  errorResetBoundary: t,
1632
1621
  throwOnError: s,
1633
1622
  query: r
1634
- }) => e.isError && !t.isReset() && !e.isFetching && Ss(s, [e.error, r]), jr = (e) => {
1623
+ }) => e.isError && !t.isReset() && !e.isFetching && r && Es(s, [e.error, r]), wr = (e) => {
1635
1624
  e.suspense && typeof e.staleTime != "number" && (e.staleTime = 1e3);
1636
- }, _r = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, Er = (e, t, s) => t.fetchOptimistic(e).catch(() => {
1625
+ }, jr = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, _r = (e, t, s) => t.fetchOptimistic(e).catch(() => {
1637
1626
  s.clearReset();
1638
1627
  });
1639
- function Ar(e, t, s) {
1640
- const r = Es(s), a = vr(), o = Cr(), l = r.defaultQueryOptions(e);
1641
- l._optimisticResults = a ? "isRestoring" : "optimistic", jr(l), xr(l, o), br(o);
1628
+ function Er(e, t, s) {
1629
+ const r = js(s), n = mr(), o = yr(), l = r.defaultQueryOptions(e);
1630
+ l._optimisticResults = n ? "isRestoring" : "optimistic", wr(l), Cr(l, o), xr(o);
1642
1631
  const [c] = d.useState(
1643
1632
  () => new t(
1644
1633
  r,
@@ -1647,34 +1636,34 @@ function Ar(e, t, s) {
1647
1636
  ), f = c.getOptimisticResult(l);
1648
1637
  if (d.useSyncExternalStore(
1649
1638
  d.useCallback(
1650
- (g) => {
1651
- const u = a ? () => {
1652
- } : c.subscribe(F.batchCalls(g));
1639
+ (y) => {
1640
+ const u = n ? () => {
1641
+ } : c.subscribe(F.batchCalls(y));
1653
1642
  return c.updateResult(), u;
1654
1643
  },
1655
- [c, a]
1644
+ [c, n]
1656
1645
  ),
1657
1646
  () => c.getCurrentResult(),
1658
1647
  () => c.getCurrentResult()
1659
1648
  ), d.useEffect(() => {
1660
1649
  c.setOptions(l, { listeners: !1 });
1661
- }, [l, c]), _r(l, f))
1662
- throw c.setOptions(l, { listeners: !1 }), Er(l, c, o);
1663
- if (wr({
1650
+ }, [l, c]), jr(l, f))
1651
+ throw _r(l, c, o);
1652
+ if (br({
1664
1653
  result: f,
1665
1654
  errorResetBoundary: o,
1666
1655
  throwOnError: l.throwOnError,
1667
- query: c.getCurrentQuery()
1656
+ query: r.getQueryCache().get(l.queryHash)
1668
1657
  }))
1669
1658
  throw f.error;
1670
1659
  return l.notifyOnChangeProps ? f : c.trackResult(f);
1671
1660
  }
1672
- function ks(e, t) {
1673
- return Ar(e, dr, t);
1661
+ function As(e, t) {
1662
+ return Er(e, ur, t);
1674
1663
  }
1675
- function Sr(e, t) {
1676
- const s = Es(t), [r] = d.useState(
1677
- () => new pr(
1664
+ function Ar(e, t) {
1665
+ const s = js(t), [r] = d.useState(
1666
+ () => new fr(
1678
1667
  s,
1679
1668
  e
1680
1669
  )
@@ -1682,7 +1671,7 @@ function Sr(e, t) {
1682
1671
  d.useEffect(() => {
1683
1672
  r.setOptions(e);
1684
1673
  }, [r, e]);
1685
- const a = d.useSyncExternalStore(
1674
+ const n = d.useSyncExternalStore(
1686
1675
  d.useCallback(
1687
1676
  (l) => r.subscribe(F.batchCalls(l)),
1688
1677
  [r]
@@ -1691,48 +1680,49 @@ function Sr(e, t) {
1691
1680
  () => r.getCurrentResult()
1692
1681
  ), o = d.useCallback(
1693
1682
  (l, c) => {
1694
- r.mutate(l, c).catch(kr);
1683
+ r.mutate(l, c).catch(Sr);
1695
1684
  },
1696
1685
  [r]
1697
1686
  );
1698
- if (a.error && Ss(r.options.throwOnError, [a.error]))
1699
- throw a.error;
1700
- return { ...a, mutate: o, mutateAsync: a.mutate };
1687
+ if (n.error && Es(r.options.throwOnError, [n.error]))
1688
+ throw n.error;
1689
+ return { ...n, mutate: o, mutateAsync: n.mutate };
1701
1690
  }
1702
- function kr() {
1691
+ function Sr() {
1703
1692
  }
1704
- function Ps(e) {
1693
+ function Ss(e) {
1705
1694
  var t, s, r = "";
1706
1695
  if (typeof e == "string" || typeof e == "number")
1707
1696
  r += e;
1708
1697
  else if (typeof e == "object")
1709
- if (Array.isArray(e))
1710
- for (t = 0; t < e.length; t++)
1711
- e[t] && (s = Ps(e[t])) && (r && (r += " "), r += s);
1712
- else
1713
- for (t in e)
1714
- e[t] && (r && (r += " "), r += t);
1698
+ if (Array.isArray(e)) {
1699
+ var n = e.length;
1700
+ for (t = 0; t < n; t++)
1701
+ e[t] && (s = Ss(e[t])) && (r && (r += " "), r += s);
1702
+ } else
1703
+ for (s in e)
1704
+ e[s] && (r && (r += " "), r += s);
1715
1705
  return r;
1716
1706
  }
1717
- function N() {
1718
- for (var e, t, s = 0, r = ""; s < arguments.length; )
1719
- (e = arguments[s++]) && (t = Ps(e)) && (r && (r += " "), r += t);
1707
+ function P() {
1708
+ for (var e, t, s = 0, r = "", n = arguments.length; s < n; s++)
1709
+ (e = arguments[s]) && (t = Ss(e)) && (r && (r += " "), r += t);
1720
1710
  return r;
1721
1711
  }
1722
- var Pr = Object.defineProperty, Nr = Object.defineProperties, Mr = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, Ns = Object.prototype.hasOwnProperty, Ms = Object.prototype.propertyIsEnumerable, Bt = (e, t, s) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, j = (e, t) => {
1712
+ var kr = Object.defineProperty, Pr = Object.defineProperties, Nr = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, ks = Object.prototype.hasOwnProperty, Ps = Object.prototype.propertyIsEnumerable, It = (e, t, s) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, j = (e, t) => {
1723
1713
  for (var s in t || (t = {}))
1724
- Ns.call(t, s) && Bt(e, s, t[s]);
1714
+ ks.call(t, s) && It(e, s, t[s]);
1725
1715
  if (mt)
1726
1716
  for (var s of mt(t))
1727
- Ms.call(t, s) && Bt(e, s, t[s]);
1717
+ Ps.call(t, s) && It(e, s, t[s]);
1728
1718
  return e;
1729
- }, A = (e, t) => Nr(e, Mr(t)), O = (e, t) => {
1719
+ }, A = (e, t) => Pr(e, Nr(t)), O = (e, t) => {
1730
1720
  var s = {};
1731
1721
  for (var r in e)
1732
- Ns.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
1722
+ ks.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
1733
1723
  if (e != null && mt)
1734
1724
  for (var r of mt(e))
1735
- t.indexOf(r) < 0 && Ms.call(e, r) && (s[r] = e[r]);
1725
+ t.indexOf(r) < 0 && Ps.call(e, r) && (s[r] = e[r]);
1736
1726
  return s;
1737
1727
  };
1738
1728
  function vt() {
@@ -1745,52 +1735,52 @@ function vt() {
1745
1735
  return e;
1746
1736
  }, vt.apply(this, arguments);
1747
1737
  }
1748
- function Or(e, t) {
1738
+ function Mr(e, t) {
1749
1739
  typeof e == "function" ? e(t) : e != null && (e.current = t);
1750
1740
  }
1751
- function Lr(...e) {
1741
+ function Or(...e) {
1752
1742
  return (t) => e.forEach(
1753
- (s) => Or(s, t)
1743
+ (s) => Mr(s, t)
1754
1744
  );
1755
1745
  }
1756
- var Fr = /* @__PURE__ */ d.forwardRef((e, t) => {
1757
- const s = e, { children: r } = s, a = O(s, ["children"]), o = d.Children.toArray(r), l = o.find(Dr);
1746
+ var Lr = /* @__PURE__ */ d.forwardRef((e, t) => {
1747
+ const s = e, { children: r } = s, n = O(s, ["children"]), o = d.Children.toArray(r), l = o.find(Rr);
1758
1748
  if (l) {
1759
- const c = l.props.children, f = o.map((g) => g === l ? d.Children.count(c) > 1 ? d.Children.only(null) : /* @__PURE__ */ d.isValidElement(c) ? c.props.children : null : g);
1760
- return /* @__PURE__ */ d.createElement(Rt, vt({}, a, {
1749
+ const c = l.props.children, f = o.map((y) => y === l ? d.Children.count(c) > 1 ? d.Children.only(null) : /* @__PURE__ */ d.isValidElement(c) ? c.props.children : null : y);
1750
+ return /* @__PURE__ */ d.createElement(Rt, vt({}, n, {
1761
1751
  ref: t
1762
1752
  }), /* @__PURE__ */ d.isValidElement(c) ? /* @__PURE__ */ d.cloneElement(c, void 0, f) : null);
1763
1753
  }
1764
- return /* @__PURE__ */ d.createElement(Rt, vt({}, a, {
1754
+ return /* @__PURE__ */ d.createElement(Rt, vt({}, n, {
1765
1755
  ref: t
1766
1756
  }), r);
1767
1757
  });
1768
- Fr.displayName = "Slot";
1758
+ Lr.displayName = "Slot";
1769
1759
  var Rt = /* @__PURE__ */ d.forwardRef((e, t) => {
1770
- const s = e, { children: r } = s, a = O(s, ["children"]);
1771
- return /* @__PURE__ */ d.isValidElement(r) ? /* @__PURE__ */ d.cloneElement(r, A(j({}, Tr(a, r.props)), {
1772
- ref: t ? Lr(t, r.ref) : r.ref
1760
+ const s = e, { children: r } = s, n = O(s, ["children"]);
1761
+ return /* @__PURE__ */ d.isValidElement(r) ? /* @__PURE__ */ d.cloneElement(r, A(j({}, Dr(n, r.props)), {
1762
+ ref: t ? Or(t, r.ref) : r.ref
1773
1763
  })) : d.Children.count(r) > 1 ? d.Children.only(null) : null;
1774
1764
  });
1775
1765
  Rt.displayName = "SlotClone";
1776
- var Rr = ({ children: e }) => /* @__PURE__ */ d.createElement(d.Fragment, null, e);
1777
- function Dr(e) {
1778
- return /* @__PURE__ */ d.isValidElement(e) && e.type === Rr;
1766
+ var Fr = ({ children: e }) => /* @__PURE__ */ d.createElement(d.Fragment, null, e);
1767
+ function Rr(e) {
1768
+ return /* @__PURE__ */ d.isValidElement(e) && e.type === Fr;
1779
1769
  }
1780
- function Tr(e, t) {
1770
+ function Dr(e, t) {
1781
1771
  const s = j({}, t);
1782
1772
  for (const r in t) {
1783
- const a = e[r], o = t[r];
1784
- /^on[A-Z]/.test(r) ? a && o ? s[r] = (...c) => {
1785
- o(...c), a(...c);
1786
- } : a && (s[r] = a) : r === "style" ? s[r] = j(j({}, a), o) : r === "className" && (s[r] = [
1787
- a,
1773
+ const n = e[r], o = t[r];
1774
+ /^on[A-Z]/.test(r) ? n && o ? s[r] = (...c) => {
1775
+ o(...c), n(...c);
1776
+ } : n && (s[r] = n) : r === "style" ? s[r] = j(j({}, n), o) : r === "className" && (s[r] = [
1777
+ n,
1788
1778
  o
1789
1779
  ].filter(Boolean).join(" "));
1790
1780
  }
1791
1781
  return j(j({}, e), s);
1792
1782
  }
1793
- var Ur = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1783
+ var Tr = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1794
1784
  const r = `${e.charAt(0)}${t.charAt(0)}`;
1795
1785
  return /* @__PURE__ */ i.jsx(
1796
1786
  "span",
@@ -1805,12 +1795,12 @@ var Ur = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1805
1795
  (e, t) => {
1806
1796
  var s = e, {
1807
1797
  iconLeft: r,
1808
- iconRight: a,
1798
+ iconRight: n,
1809
1799
  isPending: o = !1,
1810
1800
  isFilled: l = !1,
1811
1801
  variant: c,
1812
1802
  className: f,
1813
- children: g
1803
+ children: y
1814
1804
  } = s, u = O(s, [
1815
1805
  "iconLeft",
1816
1806
  "iconRight",
@@ -1820,24 +1810,24 @@ var Ur = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1820
1810
  "className",
1821
1811
  "children"
1822
1812
  ]);
1823
- const C = !!r || !!a;
1813
+ const x = !!r || !!n;
1824
1814
  return /* @__PURE__ */ i.jsxs(
1825
1815
  "button",
1826
1816
  A(j({
1827
1817
  ref: t
1828
1818
  }, u), {
1829
- className: N(
1819
+ className: P(
1830
1820
  "button",
1831
1821
  c && `button--${c}`,
1832
1822
  c && l && `button--${c}--filled`,
1833
- C && "button--with-icon",
1823
+ x && "button--with-icon",
1834
1824
  o && "button--pending",
1835
1825
  f
1836
1826
  ),
1837
1827
  children: [
1838
1828
  r && /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: r }),
1839
- !!g && /* @__PURE__ */ i.jsx("span", { className: "button__label", children: g }),
1840
- a && /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: a })
1829
+ !!y && /* @__PURE__ */ i.jsx("span", { className: "button__label", children: y }),
1830
+ n && /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: n })
1841
1831
  ]
1842
1832
  })
1843
1833
  );
@@ -1845,33 +1835,33 @@ var Ur = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1845
1835
  );
1846
1836
  at.displayName = "Button";
1847
1837
  d.createContext(void 0);
1848
- var Qr = d.forwardRef(
1838
+ var Ur = d.forwardRef(
1849
1839
  (e, t) => {
1850
- var s = e, { prefix: r, suffix: a, className: o } = s, l = O(s, ["prefix", "suffix", "className"]);
1840
+ var s = e, { prefix: r, suffix: n, className: o } = s, l = O(s, ["prefix", "suffix", "className"]);
1851
1841
  return /* @__PURE__ */ i.jsxs("div", { className: "input__wrapper", children: [
1852
1842
  r && /* @__PURE__ */ i.jsx("span", { className: "input__prefix", children: r }),
1853
1843
  /* @__PURE__ */ i.jsx(
1854
1844
  "input",
1855
1845
  j({
1856
1846
  ref: t,
1857
- className: N(
1847
+ className: P(
1858
1848
  "input",
1859
1849
  r && "input--with-prefix",
1860
- a && "input--with-suffix",
1850
+ n && "input--with-suffix",
1861
1851
  o
1862
1852
  )
1863
1853
  }, l)
1864
1854
  ),
1865
- a && /* @__PURE__ */ i.jsx("span", { className: "input__suffix", children: a })
1855
+ n && /* @__PURE__ */ i.jsx("span", { className: "input__suffix", children: n })
1866
1856
  ] });
1867
1857
  }
1868
1858
  );
1869
- Qr.displayName = "TextField";
1859
+ Ur.displayName = "TextField";
1870
1860
  d.createContext(void 0);
1871
- var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__header__action", children: e }), $r = (e) => {
1872
- var t = e, { children: s, className: r } = t, a = O(t, ["children", "className"]);
1873
- return /* @__PURE__ */ i.jsx("div", A(j({ className: N("card__body", r) }, a), { children: s }));
1874
- }, Kr = (e) => /* @__PURE__ */ i.jsx(
1861
+ var Qr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__header__action", children: e }), Hr = (e) => {
1862
+ var t = e, { children: s, className: r } = t, n = O(t, ["children", "className"]);
1863
+ return /* @__PURE__ */ i.jsx("div", A(j({ className: P("card__body", r) }, n), { children: s }));
1864
+ }, $r = (e) => /* @__PURE__ */ i.jsx(
1875
1865
  "svg",
1876
1866
  A(j({
1877
1867
  width: "24",
@@ -1891,7 +1881,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1891
1881
  }
1892
1882
  )
1893
1883
  })
1894
- ), $t = Kr, Gr = (e) => /* @__PURE__ */ i.jsx(
1884
+ ), $t = $r, Kr = (e) => /* @__PURE__ */ i.jsx(
1895
1885
  "svg",
1896
1886
  A(j({
1897
1887
  width: "24",
@@ -1911,7 +1901,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1911
1901
  }
1912
1902
  )
1913
1903
  })
1914
- ), qr = Gr, Vr = (e) => /* @__PURE__ */ i.jsx(
1904
+ ), Gr = Kr, qr = (e) => /* @__PURE__ */ i.jsx(
1915
1905
  "svg",
1916
1906
  A(j({
1917
1907
  width: "24",
@@ -1930,7 +1920,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1930
1920
  }
1931
1921
  )
1932
1922
  })
1933
- ), Wr = Vr, Zr = (e) => /* @__PURE__ */ i.jsx(
1923
+ ), Vr = qr, Wr = (e) => /* @__PURE__ */ i.jsx(
1934
1924
  "svg",
1935
1925
  A(j({
1936
1926
  width: "24",
@@ -1949,7 +1939,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1949
1939
  }
1950
1940
  )
1951
1941
  })
1952
- ), zr = Zr, Yr = (e) => /* @__PURE__ */ i.jsx(
1942
+ ), Zr = Wr, zr = (e) => /* @__PURE__ */ i.jsx(
1953
1943
  "svg",
1954
1944
  A(j({
1955
1945
  width: "24",
@@ -1968,7 +1958,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1968
1958
  }
1969
1959
  )
1970
1960
  })
1971
- ), Jr = Yr, Xr = (e) => /* @__PURE__ */ i.jsxs(
1961
+ ), Yr = zr, Jr = (e) => /* @__PURE__ */ i.jsxs(
1972
1962
  "svg",
1973
1963
  A(j({
1974
1964
  width: "24",
@@ -2005,7 +1995,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2005
1995
  /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_19_444", children: /* @__PURE__ */ i.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2006
1996
  ]
2007
1997
  })
2008
- ), Ir = Xr, Br = (e) => /* @__PURE__ */ i.jsxs(
1998
+ ), Xr = Jr, Ir = (e) => /* @__PURE__ */ i.jsxs(
2009
1999
  "svg",
2010
2000
  A(j({
2011
2001
  width: "24",
@@ -2037,7 +2027,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2037
2027
  )
2038
2028
  ]
2039
2029
  })
2040
- ), ei = Br, ti = (e) => /* @__PURE__ */ i.jsxs(
2030
+ ), Br = Ir, ei = (e) => /* @__PURE__ */ i.jsxs(
2041
2031
  "svg",
2042
2032
  A(j({
2043
2033
  width: "24",
@@ -2089,7 +2079,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2089
2079
  )
2090
2080
  ]
2091
2081
  })
2092
- ), si = ti, ri = (e) => /* @__PURE__ */ i.jsxs(
2082
+ ), ti = ei, si = (e) => /* @__PURE__ */ i.jsxs(
2093
2083
  "svg",
2094
2084
  A(j({
2095
2085
  width: "20",
@@ -2113,7 +2103,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2113
2103
  )
2114
2104
  ]
2115
2105
  })
2116
- ), ii = ri, ni = (e) => /* @__PURE__ */ i.jsxs(
2106
+ ), ri = si, ii = (e) => /* @__PURE__ */ i.jsxs(
2117
2107
  "svg",
2118
2108
  A(j({
2119
2109
  width: "24",
@@ -2147,7 +2137,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2147
2137
  /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_762_2934", children: /* @__PURE__ */ i.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2148
2138
  ]
2149
2139
  })
2150
- ), ai = ni, oi = (e) => {
2140
+ ), ni = ii, ai = (e) => {
2151
2141
  const t = (s) => `${s}${e.suffix ? `_${e.suffix}` : ""}`;
2152
2142
  return /* @__PURE__ */ i.jsxs(
2153
2143
  "svg",
@@ -2318,7 +2308,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2318
2308
  ]
2319
2309
  })
2320
2310
  );
2321
- }, Kt = oi, li = (e) => /* @__PURE__ */ i.jsxs(
2311
+ }, Kt = ai, oi = (e) => /* @__PURE__ */ i.jsxs(
2322
2312
  "svg",
2323
2313
  A(j({
2324
2314
  fill: "none",
@@ -2380,7 +2370,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2380
2370
  )
2381
2371
  ]
2382
2372
  })
2383
- ), ci = li, ui = (e) => /* @__PURE__ */ i.jsx(
2373
+ ), li = oi, ci = (e) => /* @__PURE__ */ i.jsx(
2384
2374
  "svg",
2385
2375
  A(j({
2386
2376
  fill: "none",
@@ -2400,7 +2390,7 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2400
2390
  }
2401
2391
  )
2402
2392
  })
2403
- ), di = ui, hi = (e) => /* @__PURE__ */ i.jsxs(
2393
+ ), ui = ci, di = (e) => /* @__PURE__ */ i.jsxs(
2404
2394
  "svg",
2405
2395
  A(j({
2406
2396
  width: "24",
@@ -2427,11 +2417,11 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2427
2417
  /* @__PURE__ */ i.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
2428
2418
  ]
2429
2419
  })
2430
- ), fi = hi, pi = (e) => {
2420
+ ), hi = di, fi = (e) => {
2431
2421
  var t = e, {
2432
2422
  variant: s,
2433
2423
  icon: r,
2434
- isStandalone: a,
2424
+ isStandalone: n,
2435
2425
  title: o,
2436
2426
  description: l,
2437
2427
  className: c
@@ -2446,14 +2436,14 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2446
2436
  return /* @__PURE__ */ i.jsx(
2447
2437
  "div",
2448
2438
  A(j({}, f), {
2449
- className: N(
2439
+ className: P(
2450
2440
  "card__empty-state",
2451
2441
  s === "error" && "card__empty-state--error",
2452
- a && "card__empty-state--standalone",
2442
+ n && "card__empty-state--standalone",
2453
2443
  c
2454
2444
  ),
2455
2445
  children: /* @__PURE__ */ i.jsxs("div", { className: "card__empty-state__wrapper", children: [
2456
- /* @__PURE__ */ i.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ i.jsx(ai, {}) : r }),
2446
+ /* @__PURE__ */ i.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ i.jsx(ni, {}) : r }),
2457
2447
  /* @__PURE__ */ i.jsxs("div", { className: "card__empty-state__content", children: [
2458
2448
  /* @__PURE__ */ i.jsx("p", { className: "card__empty-state__title", children: o }),
2459
2449
  /* @__PURE__ */ i.jsx("p", { className: "card__empty-state__description", children: l })
@@ -2461,11 +2451,11 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2461
2451
  ] })
2462
2452
  })
2463
2453
  );
2464
- }, mi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__footer", children: e }), vi = (e) => {
2454
+ }, pi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__footer", children: e }), mi = (e) => {
2465
2455
  var t = e, {
2466
2456
  variant: s = "default",
2467
2457
  sticky: r,
2468
- className: a,
2458
+ className: n,
2469
2459
  children: o
2470
2460
  } = t, l = O(t, [
2471
2461
  "variant",
@@ -2476,25 +2466,25 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2476
2466
  return /* @__PURE__ */ i.jsx(
2477
2467
  "div",
2478
2468
  A(j({}, l), {
2479
- className: N(
2469
+ className: P(
2480
2470
  "card__header",
2481
2471
  s && `card__header--${s}`,
2482
2472
  r && "card__header--sticky",
2483
- a
2473
+ n
2484
2474
  ),
2485
2475
  children: o
2486
2476
  })
2487
2477
  );
2488
- }, gi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__image", children: e }), yi = ({ children: e, className: t }) => /* @__PURE__ */ i.jsx("div", { className: N("card__body__item", t), children: e }), Ci = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__body__subtitle", children: e }), xi = ({ icon: e, children: t }) => /* @__PURE__ */ i.jsxs("div", { className: "card__header__title", children: [
2478
+ }, vi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__image", children: e }), gi = ({ children: e, className: t }) => /* @__PURE__ */ i.jsx("div", { className: P("card__body__item", t), children: e }), yi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__body__subtitle", children: e }), Ci = ({ icon: e, children: t }) => /* @__PURE__ */ i.jsxs("div", { className: "card__header__title", children: [
2489
2479
  e && /* @__PURE__ */ i.jsx("span", { className: "card__header__title__icon", children: e }),
2490
2480
  t
2491
- ] }), Os = d.forwardRef(
2481
+ ] }), Ns = d.forwardRef(
2492
2482
  (e, t) => {
2493
- var s = e, { type: r, children: a, className: o, variant: l = "default", disabled: c = !1 } = s, f = O(s, ["type", "children", "className", "variant", "disabled"]);
2483
+ var s = e, { type: r, children: n, className: o, variant: l = "default", disabled: c = !1 } = s, f = O(s, ["type", "children", "className", "variant", "disabled"]);
2494
2484
  return d.createElement(
2495
2485
  r,
2496
2486
  j({
2497
- className: N(
2487
+ className: P(
2498
2488
  "card",
2499
2489
  c && "card--disabled",
2500
2490
  l && `card--${l}`,
@@ -2502,47 +2492,47 @@ var Hr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2502
2492
  ),
2503
2493
  ref: t
2504
2494
  }, f),
2505
- a
2495
+ n
2506
2496
  );
2507
2497
  }
2508
2498
  );
2509
- Os.displayName = "Card";
2510
- Object.assign(Os, {
2511
- Header: vi,
2512
- Action: Hr,
2513
- Title: xi,
2514
- Subtitle: Ci,
2515
- Body: $r,
2516
- Image: gi,
2517
- Item: yi,
2518
- Footer: mi,
2519
- EmptyState: pi
2499
+ Ns.displayName = "Card";
2500
+ Object.assign(Ns, {
2501
+ Header: mi,
2502
+ Action: Qr,
2503
+ Title: Ci,
2504
+ Subtitle: yi,
2505
+ Body: Hr,
2506
+ Image: vi,
2507
+ Item: gi,
2508
+ Footer: pi,
2509
+ EmptyState: fi
2520
2510
  });
2521
- var bi = (e) => {
2522
- var t = e, { className: s, children: r } = t, a = O(t, ["className", "children"]);
2523
- return /* @__PURE__ */ i.jsx("div", A(j({ className: N("checkbox__content", s) }, a), { children: r }));
2524
- }, wi = (e) => {
2525
- var t = e, { className: s, children: r } = t, a = O(t, ["className", "children"]);
2526
- return /* @__PURE__ */ i.jsx("span", A(j({ className: N("checkbox__hint", s) }, a), { children: r }));
2527
- }, Ls = d.createContext(void 0), ji = ({ id: e, name: t, children: s }) => /* @__PURE__ */ i.jsx(Ls.Provider, { value: { id: e, name: t }, children: s }), _i = () => {
2528
- const e = d.useContext(Ls);
2511
+ var xi = (e) => {
2512
+ var t = e, { className: s, children: r } = t, n = O(t, ["className", "children"]);
2513
+ return /* @__PURE__ */ i.jsx("div", A(j({ className: P("checkbox__content", s) }, n), { children: r }));
2514
+ }, bi = (e) => {
2515
+ var t = e, { className: s, children: r } = t, n = O(t, ["className", "children"]);
2516
+ return /* @__PURE__ */ i.jsx("span", A(j({ className: P("checkbox__hint", s) }, n), { children: r }));
2517
+ }, Ms = d.createContext(void 0), wi = ({ id: e, name: t, children: s }) => /* @__PURE__ */ i.jsx(Ms.Provider, { value: { id: e, name: t }, children: s }), ji = () => {
2518
+ const e = d.useContext(Ms);
2529
2519
  if (!e)
2530
2520
  throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
2531
2521
  return e;
2532
- }, Ei = (e) => {
2533
- var t = e, { className: s, children: r } = t, a = O(t, ["className", "children"]);
2534
- const { id: o } = _i();
2535
- return /* @__PURE__ */ i.jsx("label", A(j({ htmlFor: o, className: N("checkbox__label", s) }, a), { children: r }));
2522
+ }, _i = (e) => {
2523
+ var t = e, { className: s, children: r } = t, n = O(t, ["className", "children"]);
2524
+ const { id: o } = ji();
2525
+ return /* @__PURE__ */ i.jsx("label", A(j({ htmlFor: o, className: P("checkbox__label", s) }, n), { children: r }));
2536
2526
  }, _e = (e) => {
2537
2527
  var t = e, {
2538
2528
  id: s,
2539
2529
  name: r,
2540
- isPending: a = !1,
2530
+ isPending: n = !1,
2541
2531
  variant: o = "neutral",
2542
2532
  hasError: l = !1,
2543
2533
  single: c,
2544
2534
  className: f,
2545
- children: g
2535
+ children: y
2546
2536
  } = t, u = O(t, [
2547
2537
  "id",
2548
2538
  "name",
@@ -2553,13 +2543,13 @@ var bi = (e) => {
2553
2543
  "className",
2554
2544
  "children"
2555
2545
  ]);
2556
- const C = d.useRef(null);
2546
+ const x = d.useRef(null);
2557
2547
  return d.useEffect(() => {
2558
- C.current && (a ? C.current.indeterminate = !0 : C.current.indeterminate = !1);
2559
- }, [a]), /* @__PURE__ */ i.jsxs(
2548
+ x.current && (n ? x.current.indeterminate = !0 : x.current.indeterminate = !1);
2549
+ }, [n]), /* @__PURE__ */ i.jsxs(
2560
2550
  "div",
2561
2551
  {
2562
- className: N("checkbox", o && `checkbox--${o}`, l && "checkbox--error"),
2552
+ className: P("checkbox", o && `checkbox--${o}`, l && "checkbox--error"),
2563
2553
  children: [
2564
2554
  /* @__PURE__ */ i.jsx(
2565
2555
  "input",
@@ -2567,37 +2557,37 @@ var bi = (e) => {
2567
2557
  id: s,
2568
2558
  name: r,
2569
2559
  type: "checkbox",
2570
- ref: C,
2571
- className: N("checkbox__input", f),
2560
+ ref: x,
2561
+ className: P("checkbox__input", f),
2572
2562
  value: c ? "true" : ""
2573
2563
  }, u)
2574
2564
  ),
2575
- a ? /* @__PURE__ */ i.jsx(ii, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ i.jsx(qr, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2576
- /* @__PURE__ */ i.jsx(ji, { id: s, name: r, children: g })
2565
+ n ? /* @__PURE__ */ i.jsx(ri, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ i.jsx(Gr, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2566
+ /* @__PURE__ */ i.jsx(wi, { id: s, name: r, children: y })
2577
2567
  ]
2578
2568
  }
2579
2569
  );
2580
2570
  };
2581
- _e.Content = bi;
2582
- _e.Label = Ei;
2583
- _e.Hint = wi;
2571
+ _e.Content = xi;
2572
+ _e.Label = _i;
2573
+ _e.Hint = bi;
2584
2574
  _e.Error = Error;
2585
- var Ai = (e) => {
2586
- var t = e, { type: s = "div", className: r, children: a } = t, o = O(t, ["type", "className", "children"]);
2587
- return d.createElement(s, j({ className: N("dialog__body", r) }, o), a);
2588
- }, Dt = () => document.body.style.removeProperty("overflow"), es = (e) => e.preventDefault(), Si = '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])', ki = (e) => {
2589
- var t = e, { className: s, children: r, shouldAnimate: a = !0 } = t, o = O(t, ["className", "children", "shouldAnimate"]);
2590
- const { ref: l, defaultOpen: c, isModal: f, onClose: g } = ot();
2575
+ var Ei = (e) => {
2576
+ var t = e, { type: s = "div", className: r, children: n } = t, o = O(t, ["type", "className", "children"]);
2577
+ return d.createElement(s, j({ className: P("dialog__body", r) }, o), n);
2578
+ }, Dt = () => document.body.style.removeProperty("overflow"), Bt = (e) => e.preventDefault(), Ai = '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) => {
2579
+ var t = e, { className: s, children: r, shouldAnimate: n = !0 } = t, o = O(t, ["className", "children", "shouldAnimate"]);
2580
+ const { ref: l, defaultOpen: c, isModal: f, onClose: y } = ot();
2591
2581
  return d.useEffect(() => {
2592
2582
  const u = l == null ? void 0 : l.current;
2593
2583
  if (u != null && u.open) {
2594
- const C = u.querySelectorAll(Si), w = C[0], v = C[C.length - 1], b = (_) => {
2584
+ const x = u.querySelectorAll(Ai), g = x[0], p = x[x.length - 1], w = (_) => {
2595
2585
  if (!(_.key === "Tab"))
2596
2586
  return;
2597
- _.shiftKey ? document.activeElement === w && (v.focus(), _.preventDefault()) : document.activeElement === v && (w.focus(), _.preventDefault());
2587
+ _.shiftKey ? document.activeElement === g && (p.focus(), _.preventDefault()) : document.activeElement === p && (g.focus(), _.preventDefault());
2598
2588
  };
2599
- return document.body.style.overflow = "hidden", u.addEventListener("keydown", b), window.addEventListener("popstate", () => Dt()), () => {
2600
- u.removeEventListener("keydown", b), window.removeEventListener("popstate", () => Dt());
2589
+ return document.body.style.overflow = "hidden", u.addEventListener("keydown", w), window.addEventListener("popstate", () => Dt()), () => {
2590
+ u.removeEventListener("keydown", w), window.removeEventListener("popstate", () => Dt());
2601
2591
  };
2602
2592
  }
2603
2593
  }, [l]), d.useEffect(() => {
@@ -2605,43 +2595,43 @@ var Ai = (e) => {
2605
2595
  if (!u)
2606
2596
  return;
2607
2597
  if (c && (u.removeAttribute("open"), u.showModal(), u.focus()), f)
2608
- return u.addEventListener("cancel", es), () => u.removeEventListener("cancel", es);
2609
- const C = ({ clientX: w, clientY: v }) => {
2610
- const { top: b, right: _, bottom: m, left: y } = u.getBoundingClientRect(), S = 0 < v && 0 < w, E = b < v && v < m, k = y < w && w < _;
2611
- S && !(E && k) && g();
2598
+ return u.addEventListener("cancel", Bt), () => u.removeEventListener("cancel", Bt);
2599
+ const x = ({ clientX: g, clientY: p }) => {
2600
+ const { top: w, right: _, bottom: v, left: C } = u.getBoundingClientRect(), S = 0 < p && 0 < g, E = w < p && p < v, k = C < g && g < _;
2601
+ S && !(E && k) && y();
2612
2602
  };
2613
- return u.addEventListener("cancel", g), u.addEventListener("mousedown", C), () => {
2614
- u.removeEventListener("cancel", g), u.removeEventListener("mousedown", C);
2603
+ return u.addEventListener("cancel", y), u.addEventListener("mousedown", x), () => {
2604
+ u.removeEventListener("cancel", y), u.removeEventListener("mousedown", x);
2615
2605
  };
2616
- }, [l, f, g, c]), /* @__PURE__ */ i.jsx(
2606
+ }, [l, f, y, c]), /* @__PURE__ */ i.jsx(
2617
2607
  "dialog",
2618
2608
  A(j({
2619
2609
  ref: l,
2620
2610
  open: c,
2621
2611
  "aria-modal": !!f,
2622
2612
  "aria-labelledby": "dialogTitle",
2623
- className: N("dialog", a && "dialog--animated", s)
2613
+ className: P("dialog", n && "dialog--animated", s)
2624
2614
  }, o), {
2625
2615
  children: r
2626
2616
  })
2627
2617
  );
2628
- }, Fs = d.createContext(void 0), Pi = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2629
- const a = d.useRef(null), o = d.useRef(t), l = d.useCallback(() => {
2618
+ }, Os = d.createContext(void 0), ki = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2619
+ const n = d.useRef(null), o = d.useRef(t), l = d.useCallback(() => {
2630
2620
  var c;
2631
- Dt(), (c = a.current) == null || c.close(), o.current && (o == null || o.current());
2632
- }, [a]);
2633
- return /* @__PURE__ */ i.jsx(Fs.Provider, { value: { ref: a, defaultOpen: e, isModal: s, onClose: l }, children: r });
2621
+ Dt(), (c = n.current) == null || c.close(), o.current && (o == null || o.current());
2622
+ }, [n]);
2623
+ return /* @__PURE__ */ i.jsx(Os.Provider, { value: { ref: n, defaultOpen: e, isModal: s, onClose: l }, children: r });
2634
2624
  }, ot = () => {
2635
- const e = d.useContext(Fs);
2625
+ const e = d.useContext(Os);
2636
2626
  if (!e)
2637
2627
  throw new Error("Dialog compound components can not be rendered outside of Dialog");
2638
2628
  return e;
2639
- }, Ni = (e) => {
2629
+ }, Pi = (e) => {
2640
2630
  var t = e, { children: s } = t, r = O(t, ["children"]);
2641
- const { onClose: a } = ot();
2642
- return /* @__PURE__ */ i.jsx(at, A(j({ onClick: a }, r), { children: s }));
2643
- }, Rs = d.forwardRef((e, t) => {
2644
- var s = e, { className: r } = s, a = O(s, ["className"]);
2631
+ const { onClose: n } = ot();
2632
+ return /* @__PURE__ */ i.jsx(at, A(j({ onClick: n }, r), { children: s }));
2633
+ }, Ls = d.forwardRef((e, t) => {
2634
+ var s = e, { className: r } = s, n = O(s, ["className"]);
2645
2635
  const { onClose: o } = ot();
2646
2636
  return /* @__PURE__ */ i.jsx(
2647
2637
  at,
@@ -2650,18 +2640,18 @@ var Ai = (e) => {
2650
2640
  ref: t,
2651
2641
  formMethod: "dialog",
2652
2642
  onClick: o,
2653
- iconLeft: /* @__PURE__ */ i.jsx(Wr, {}),
2643
+ iconLeft: /* @__PURE__ */ i.jsx(Vr, {}),
2654
2644
  variant: "icon--secondary",
2655
- className: N("dialog__close button--icon", r)
2656
- }, a)
2645
+ className: P("dialog__close button--icon", r)
2646
+ }, n)
2657
2647
  );
2658
2648
  });
2659
- Rs.displayName = "Close";
2660
- var Mi = (e) => {
2661
- var t = e, { className: s, children: r } = t, a = O(t, ["className", "children"]);
2662
- return /* @__PURE__ */ i.jsx("div", A(j({ className: N("dialog__footer", s) }, a), { children: r }));
2663
- }, Oi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "dialog__header", children: e }), Li = (e) => {
2664
- var t = e, { icon: s, children: r, className: a } = t, o = O(t, ["icon", "children", "className"]);
2649
+ Ls.displayName = "Close";
2650
+ var Ni = (e) => {
2651
+ var t = e, { className: s, children: r } = t, n = O(t, ["className", "children"]);
2652
+ return /* @__PURE__ */ i.jsx("div", A(j({ className: P("dialog__footer", s) }, n), { children: r }));
2653
+ }, Mi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "dialog__header", children: e }), Oi = (e) => {
2654
+ var t = e, { icon: s, children: r, className: n } = t, o = O(t, ["icon", "children", "className"]);
2665
2655
  const { ref: l } = ot(), c = d.useRef(null);
2666
2656
  return d.useEffect(() => {
2667
2657
  l != null && l.current && l.current.focus();
@@ -2671,7 +2661,7 @@ var Mi = (e) => {
2671
2661
  tabIndex: 0,
2672
2662
  ref: c,
2673
2663
  id: "dialogTitle",
2674
- className: N("dialog__header__title", a)
2664
+ className: P("dialog__header__title", n)
2675
2665
  }, o), {
2676
2666
  children: [
2677
2667
  s && /* @__PURE__ */ i.jsx("span", { className: "dialog__header__icon", children: s }),
@@ -2679,96 +2669,96 @@ var Mi = (e) => {
2679
2669
  ]
2680
2670
  })
2681
2671
  );
2682
- }, Fi = (e) => {
2672
+ }, Li = (e) => {
2683
2673
  var t = e, { children: s } = t, r = O(t, ["children"]);
2684
- const { ref: a } = ot();
2674
+ const { ref: n } = ot();
2685
2675
  return /* @__PURE__ */ i.jsx(at, A(j({ onClick: () => {
2686
2676
  var o;
2687
- return (o = a == null ? void 0 : a.current) == null ? void 0 : o.showModal();
2677
+ return (o = n == null ? void 0 : n.current) == null ? void 0 : o.showModal();
2688
2678
  } }, r), { children: s }));
2689
- }, $ = ({ defaultOpen: e, isModal: t, children: s, onClose: r }) => /* @__PURE__ */ i.jsx(Pi, { defaultOpen: !!e, isModal: t, onClose: r, children: s });
2690
- $.Trigger = Fi;
2691
- $.Root = ki;
2692
- $.Title = Li;
2693
- $.Header = Oi;
2694
- $.Body = Ai;
2695
- $.Footer = Mi;
2696
- $.Button = Ni;
2697
- $.Close = Rs;
2698
- var Ds = d.createContext(void 0), Ri = ({
2679
+ }, H = ({ defaultOpen: e, isModal: t, children: s, onClose: r }) => /* @__PURE__ */ i.jsx(ki, { defaultOpen: !!e, isModal: t, onClose: r, children: s });
2680
+ H.Trigger = Li;
2681
+ H.Root = Si;
2682
+ H.Title = Oi;
2683
+ H.Header = Mi;
2684
+ H.Body = Ei;
2685
+ H.Footer = Ni;
2686
+ H.Button = Pi;
2687
+ H.Close = Ls;
2688
+ var Fs = d.createContext(void 0), Fi = ({
2699
2689
  id: e,
2700
2690
  position: t,
2701
2691
  isOpen: s,
2702
2692
  setIsOpen: r,
2703
- activeItemIndex: a,
2693
+ activeItemIndex: n,
2704
2694
  setActiveItemIndex: o,
2705
2695
  clearActiveItemIndex: l,
2706
2696
  triggerRef: c,
2707
2697
  contentRef: f,
2708
- children: g
2698
+ children: y
2709
2699
  }) => /* @__PURE__ */ i.jsx(
2710
- Ds.Provider,
2700
+ Fs.Provider,
2711
2701
  {
2712
2702
  value: {
2713
2703
  id: e,
2714
2704
  position: t,
2715
2705
  isOpen: s,
2716
2706
  setIsOpen: r,
2717
- activeItemIndex: a,
2707
+ activeItemIndex: n,
2718
2708
  setActiveItemIndex: o,
2719
2709
  clearActiveItemIndex: l,
2720
2710
  triggerRef: c,
2721
2711
  contentRef: f
2722
2712
  },
2723
- children: g
2713
+ children: y
2724
2714
  }
2725
- ), Ts = () => {
2726
- const e = d.useContext(Ds);
2715
+ ), Rs = () => {
2716
+ const e = d.useContext(Fs);
2727
2717
  if (e === void 0)
2728
2718
  throw new Error("useMenu must be used within a MenuProvider");
2729
2719
  return e;
2730
- }, Di = ({ as: e, children: t }) => {
2720
+ }, Ri = ({ as: e, children: t }) => {
2731
2721
  const {
2732
2722
  id: s,
2733
2723
  position: r,
2734
- isOpen: a,
2724
+ isOpen: n,
2735
2725
  setIsOpen: o,
2736
2726
  activeItemIndex: l,
2737
2727
  setActiveItemIndex: c,
2738
2728
  clearActiveItemIndex: f,
2739
- triggerRef: g,
2729
+ triggerRef: y,
2740
2730
  contentRef: u
2741
- } = Ts(), C = (w) => {
2742
- var v;
2743
- if (!a)
2731
+ } = Rs(), x = (g) => {
2732
+ var p;
2733
+ if (!n)
2744
2734
  return;
2745
- if (w.key === "Escape")
2746
- return f(), o(!1), (v = g.current) == null ? void 0 : v.focus();
2747
- const b = w.shiftKey, _ = Qs(u.current).length - 1;
2748
- switch (w.key) {
2735
+ if (g.key === "Escape")
2736
+ return f(), o(!1), (p = y.current) == null ? void 0 : p.focus();
2737
+ const w = g.shiftKey, _ = Ts(u.current).length - 1;
2738
+ switch (g.key) {
2749
2739
  case "Tab": {
2750
- if (b && l !== 0)
2751
- return w.preventDefault(), c(l ? Math.max(0, l - 1) : 0);
2752
- if (!b && l !== _) {
2753
- w.preventDefault();
2754
- const m = l !== void 0 ? l + 1 : 0;
2755
- return c(Math.min(_, m));
2740
+ if (w && l !== 0)
2741
+ return g.preventDefault(), c(l ? Math.max(0, l - 1) : 0);
2742
+ if (!w && l !== _) {
2743
+ g.preventDefault();
2744
+ const v = l !== void 0 ? l + 1 : 0;
2745
+ return c(Math.min(_, v));
2756
2746
  }
2757
2747
  break;
2758
2748
  }
2759
2749
  case "ArrowUp":
2760
2750
  case "ArrowLeft":
2761
- return w.preventDefault(), c(l ? Math.max(0, l - 1) : 0);
2751
+ return g.preventDefault(), c(l ? Math.max(0, l - 1) : 0);
2762
2752
  case "ArrowDown":
2763
2753
  case "ArrowRight": {
2764
- w.preventDefault();
2765
- const m = l !== void 0 ? l + 1 : 0;
2766
- return c(Math.min(_, m));
2754
+ g.preventDefault();
2755
+ const v = l !== void 0 ? l + 1 : 0;
2756
+ return c(Math.min(_, v));
2767
2757
  }
2768
2758
  case "Home":
2769
- return w.preventDefault(), c(0);
2759
+ return g.preventDefault(), c(0);
2770
2760
  case "End":
2771
- return w.preventDefault(), c(_);
2761
+ return g.preventDefault(), c(_);
2772
2762
  }
2773
2763
  };
2774
2764
  return e ? d.createElement(
@@ -2776,8 +2766,8 @@ var Ds = d.createContext(void 0), Ri = ({
2776
2766
  {
2777
2767
  id: `${s}-content`,
2778
2768
  ref: u,
2779
- className: N("menu__list", `menu__list--${r}`, a && "menu__list--active"),
2780
- onKeyDown: C
2769
+ className: P("menu__list", `menu__list--${r}`, n && "menu__list--active"),
2770
+ onKeyDown: x
2781
2771
  },
2782
2772
  t
2783
2773
  ) : (
@@ -2787,57 +2777,57 @@ var Ds = d.createContext(void 0), Ri = ({
2787
2777
  {
2788
2778
  id: `${s}-content`,
2789
2779
  ref: u,
2790
- className: N("menu__list", `menu__list--${r}`, a && "menu__list--active"),
2791
- onKeyDown: C,
2780
+ className: P("menu__list", `menu__list--${r}`, n && "menu__list--active"),
2781
+ onKeyDown: x,
2792
2782
  children: t
2793
2783
  }
2794
2784
  )
2795
2785
  );
2796
- }, Ti = (e) => {
2797
- var t = e, { children: s, className: r } = t, a = O(t, ["children", "className"]);
2798
- return /* @__PURE__ */ i.jsx("li", A(j({}, a), { className: N("menu__list-item", r), children: s }));
2799
- }, Us = ({ children: e, className: t }) => {
2800
- const { id: s, isOpen: r, setIsOpen: a, clearActiveItemIndex: o, setActiveItemIndex: l, triggerRef: c } = Ts(), f = () => {
2801
- o(), a((u) => !u), r || l(0);
2802
- }, g = (u) => {
2786
+ }, Di = (e) => {
2787
+ var t = e, { children: s, className: r } = t, n = O(t, ["children", "className"]);
2788
+ return /* @__PURE__ */ i.jsx("li", A(j({}, n), { className: P("menu__list-item", r), children: s }));
2789
+ }, Ds = ({ children: e, className: t }) => {
2790
+ const { id: s, isOpen: r, setIsOpen: n, clearActiveItemIndex: o, setActiveItemIndex: l, triggerRef: c } = Rs(), f = () => {
2791
+ o(), n((u) => !u), r || l(0);
2792
+ }, y = (u) => {
2803
2793
  if (r) {
2804
2794
  if (u.key === "Escape")
2805
- return o(), a(!1);
2795
+ return o(), n(!1);
2806
2796
  u.key === "ArrowDown" && (u.preventDefault(), l(0));
2807
2797
  }
2808
2798
  };
2809
2799
  return d.cloneElement(e, {
2810
2800
  id: `${s}-trigger`,
2811
2801
  ref: c,
2812
- className: N("menu__trigger", t),
2802
+ className: P("menu__trigger", t),
2813
2803
  onClick: f,
2814
- onKeyDown: g,
2804
+ onKeyDown: y,
2815
2805
  "aria-expanded": r,
2816
2806
  "aria-controls": `${s}-content`
2817
2807
  });
2818
2808
  };
2819
- Us.displayName = "Trigger";
2820
- var Qs = (e) => e ? e.tagName === "UL" ? e.children : Array.from(e.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], J = (e) => {
2821
- var t = e, { type: s, id: r, position: a = "right", children: o, className: l } = t, c = O(t, ["type", "id", "position", "children", "className"]);
2822
- const f = d.useRef(null), g = d.useRef(null), u = d.useRef(null), [C, w] = d.useState(!1), [v, b] = d.useState(), [_, m] = d.useState(v);
2823
- v !== _ && v !== void 0 && u.current && (Qs(u.current)[v].firstChild.focus(), m(v));
2824
- const y = () => {
2825
- b(void 0), m(void 0);
2809
+ Ds.displayName = "Trigger";
2810
+ var Ts = (e) => e ? e.tagName === "UL" ? e.children : Array.from(e.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], Y = (e) => {
2811
+ var t = e, { type: s, id: r, position: n = "right", children: o, className: l } = t, c = O(t, ["type", "id", "position", "children", "className"]);
2812
+ const f = d.useRef(null), y = d.useRef(null), u = d.useRef(null), [x, g] = d.useState(!1), [p, w] = d.useState(), [_, v] = d.useState(p);
2813
+ p !== _ && p !== void 0 && u.current && (Ts(u.current)[p].firstChild.focus(), v(p));
2814
+ const C = () => {
2815
+ w(void 0), v(void 0);
2826
2816
  }, S = (E) => {
2827
2817
  var k;
2828
- ((k = f.current) == null ? void 0 : k.contains(E.relatedTarget)) || (y(), w(!1));
2818
+ ((k = f.current) == null ? void 0 : k.contains(E.relatedTarget)) || (C(), g(!1));
2829
2819
  };
2830
2820
  return /* @__PURE__ */ i.jsx(
2831
- Ri,
2821
+ Fi,
2832
2822
  {
2833
2823
  id: r,
2834
- position: a,
2835
- isOpen: C,
2836
- setIsOpen: w,
2837
- activeItemIndex: v,
2838
- setActiveItemIndex: b,
2839
- clearActiveItemIndex: y,
2840
- triggerRef: g,
2824
+ position: n,
2825
+ isOpen: x,
2826
+ setIsOpen: g,
2827
+ activeItemIndex: p,
2828
+ setActiveItemIndex: w,
2829
+ clearActiveItemIndex: C,
2830
+ triggerRef: y,
2841
2831
  contentRef: u,
2842
2832
  children: d.createElement(
2843
2833
  s,
@@ -2852,30 +2842,30 @@ var Qs = (e) => e ? e.tagName === "UL" ? e.children : Array.from(e.getElementsBy
2852
2842
  }
2853
2843
  );
2854
2844
  };
2855
- J.Trigger = Us;
2856
- J.Content = Di;
2857
- J.Item = Ti;
2845
+ Y.Trigger = Ds;
2846
+ Y.Content = Ri;
2847
+ Y.Item = Di;
2858
2848
  d.createContext(void 0);
2859
- var Ui = (/* @__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");
2860
- [...new Set(Ui.values())].map((e) => ({
2849
+ var Ti = (/* @__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");
2850
+ [...new Set(Ti.values())].map((e) => ({
2861
2851
  label: `+${e}`,
2862
2852
  value: e
2863
2853
  }));
2864
2854
  d.createContext(void 0);
2865
2855
  d.createContext(void 0);
2866
2856
  var gt = /* @__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))(gt || {});
2867
- const Qi = "/icons/bouMenuIcons.svg", Hi = ({
2857
+ const Ui = "/icons/bouMenuIcons.svg", Qi = ({
2868
2858
  bouIconId: e,
2869
2859
  ...t
2870
- }) => /* @__PURE__ */ i.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i.jsx("use", { href: `${Qi}#${gt[e]}` }) }), pe = ({
2860
+ }) => /* @__PURE__ */ i.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i.jsx("use", { href: `${Ui}#${gt[e]}` }) }), pe = ({
2871
2861
  className: e,
2872
2862
  label: t,
2873
2863
  mobileUrl: s,
2874
2864
  desktopUrl: r,
2875
- icon: a
2865
+ icon: n
2876
2866
  }) => {
2877
- const o = Zs(), l = () => typeof a == "string" && a in gt ? /* @__PURE__ */ i.jsx(Hi, { bouIconId: gt[a] }) : a;
2878
- return /* @__PURE__ */ i.jsxs(J.Item, { className: e, children: [
2867
+ const o = Vs(), l = () => typeof n == "string" && n in gt ? /* @__PURE__ */ i.jsx(Qi, { bouIconId: gt[n] }) : n;
2868
+ return /* @__PURE__ */ i.jsxs(Y.Item, { className: e, children: [
2879
2869
  (!o || o && !r) && /* @__PURE__ */ i.jsxs("a", { href: s, referrerPolicy: "no-referrer-when-downgrade", children: [
2880
2870
  l(),
2881
2871
  t
@@ -2885,40 +2875,40 @@ const Qi = "/icons/bouMenuIcons.svg", Hi = ({
2885
2875
  t
2886
2876
  ] })
2887
2877
  ] });
2888
- }, Hs = d.createContext(void 0), $i = ({
2878
+ }, Us = d.createContext(void 0), Hi = ({
2889
2879
  position: e,
2890
2880
  bouMenuItems: t,
2891
2881
  authenticationStatus: s,
2892
2882
  profile: r,
2893
- children: a
2894
- }) => /* @__PURE__ */ i.jsx(Hs.Provider, { value: { position: e, bouMenuItems: t, authenticationStatus: s, profile: r }, children: a }), Gt = () => {
2895
- const e = d.useContext(Hs);
2883
+ children: n
2884
+ }) => /* @__PURE__ */ i.jsx(Us.Provider, { value: { position: e, bouMenuItems: t, authenticationStatus: s, profile: r }, children: n }), Gt = () => {
2885
+ const e = d.useContext(Us);
2896
2886
  if (!e)
2897
2887
  throw new Error("Authentication context can not be rendered outside of Authentication");
2898
2888
  return e;
2899
- }, $s = d.createContext(void 0), Ki = ({ apiUrl: e, redirectUrl: t, children: s }) => /* @__PURE__ */ i.jsx($s.Provider, { value: { apiUrl: e, redirectUrl: t }, children: s }), Ks = () => {
2900
- const e = d.useContext($s);
2889
+ }, Qs = d.createContext(void 0), $i = ({ apiUrl: e, redirectUrl: t, children: s }) => /* @__PURE__ */ i.jsx(Qs.Provider, { value: { apiUrl: e, redirectUrl: t }, children: s }), Hs = () => {
2890
+ const e = d.useContext(Qs);
2901
2891
  if (!e)
2902
2892
  throw new Error("Api context can not be rendered outside of Api");
2903
2893
  return e;
2904
- }, Gs = ({ apiUrl: e, redirectUrl: t, trackingInfo: s }) => {
2894
+ }, $s = ({ apiUrl: e, redirectUrl: t, trackingInfo: s }) => {
2905
2895
  const r = new URLSearchParams({ redirectUrl: t });
2906
2896
  s && r.append("trackingInfo", s);
2907
- const a = `${e}/login?${r.toString()}`, o = `${e}/logout?${r.toString()}`;
2908
- return { loginUrl: a, logoutUrl: o };
2909
- }, qs = () => {
2910
- const { apiUrl: e, redirectUrl: t } = Ks(), s = zs();
2911
- return Gs({ apiUrl: e, redirectUrl: t, trackingInfo: s });
2897
+ const n = `${e}/login?${r.toString()}`, o = `${e}/logout?${r.toString()}`;
2898
+ return { loginUrl: n, logoutUrl: o };
2899
+ }, Ks = () => {
2900
+ const { apiUrl: e, redirectUrl: t } = Hs(), s = Ws();
2901
+ return $s({ apiUrl: e, redirectUrl: t, trackingInfo: s });
2912
2902
  }, qe = () => {
2913
- const { apiUrl: e } = Ks(), { loginUrl: t, logoutUrl: s } = qs(), r = `${e}/user/profile`, a = `${e}/gdpr/tc/check`, o = `${e}/gdpr/tc`;
2903
+ const { apiUrl: e } = Hs(), { loginUrl: t, logoutUrl: s } = Ks(), r = `${e}/user/profile`, n = `${e}/gdpr/tc/check`, o = `${e}/gdpr/tc`;
2914
2904
  return {
2915
2905
  loginUrl: t,
2916
2906
  logoutUrl: s,
2917
2907
  profileEndpoint: r,
2918
- getTermsAndConditionsEndpoint: a,
2908
+ getTermsAndConditionsEndpoint: n,
2919
2909
  postTermsAndConditionsEndpoint: o
2920
2910
  };
2921
- }, Gi = (e) => e != null && e.length ? /* @__PURE__ */ i.jsx("ul", { className: "bou-menu__list", children: e == null ? void 0 : e.map(({ label: t, icon: s, url: r }, a) => /* @__PURE__ */ i.jsx(
2911
+ }, Ki = (e) => e != null && e.length ? /* @__PURE__ */ i.jsx("ul", { className: "bou-menu__list", children: e == null ? void 0 : e.map(({ label: t, icon: s, url: r }, n) => /* @__PURE__ */ i.jsx(
2922
2912
  pe,
2923
2913
  {
2924
2914
  className: "bou-menu-item",
@@ -2926,28 +2916,28 @@ const Qi = "/icons/bouMenuIcons.svg", Hi = ({
2926
2916
  icon: s,
2927
2917
  label: t
2928
2918
  },
2929
- a
2930
- )) }) : null, qi = () => {
2931
- const { t: e } = Ee(), t = ps(), { position: s, profile: r, bouMenuItems: a } = Gt(), { logoutUrl: o } = qe(), l = (r == null ? void 0 : r.firstName) ?? "", c = (r == null ? void 0 : r.lastName) ?? "";
2932
- return /* @__PURE__ */ i.jsxs(J, { type: "nav", id: "xtra-menu", position: s, children: [
2919
+ n
2920
+ )) }) : null, Gi = () => {
2921
+ const { t: e } = Ee(), t = fs(), { position: s, profile: r, bouMenuItems: n } = Gt(), { logoutUrl: o } = qe(), l = (r == null ? void 0 : r.firstName) ?? "", c = (r == null ? void 0 : r.lastName) ?? "";
2922
+ return /* @__PURE__ */ i.jsxs(Y, { type: "nav", id: "xtra-menu", position: s, children: [
2933
2923
  /* @__PURE__ */ i.jsx(
2934
- J.Trigger,
2924
+ Y.Trigger,
2935
2925
  {
2936
- className: N(
2926
+ className: P(
2937
2927
  "button",
2938
2928
  "button--neutral",
2939
2929
  "button--authentication",
2940
2930
  "button--authentication--authenticated"
2941
2931
  ),
2942
2932
  children: /* @__PURE__ */ i.jsxs("button", { children: [
2943
- /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Ur, { variant: "small", firstName: l, lastName: c }) }),
2933
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Tr, { variant: "small", firstName: l, lastName: c }) }),
2944
2934
  /* @__PURE__ */ i.jsx("span", { className: "button__label", children: l }),
2945
2935
  /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx($t, {}) })
2946
2936
  ] })
2947
2937
  }
2948
2938
  ),
2949
- /* @__PURE__ */ i.jsxs(J.Content, { as: "div", children: [
2950
- Gi(a),
2939
+ /* @__PURE__ */ i.jsxs(Y.Content, { as: "div", children: [
2940
+ Ki(n),
2951
2941
  /* @__PURE__ */ i.jsxs("ul", { children: [
2952
2942
  /* @__PURE__ */ i.jsx(
2953
2943
  pe,
@@ -2955,7 +2945,7 @@ const Qi = "/icons/bouMenuIcons.svg", Hi = ({
2955
2945
  className: "manage-profile",
2956
2946
  mobileUrl: `${t}/manage-profile`,
2957
2947
  desktopUrl: `${t}/manage-profile/personal-data`,
2958
- icon: /* @__PURE__ */ i.jsx(ei, {}),
2948
+ icon: /* @__PURE__ */ i.jsx(Br, {}),
2959
2949
  label: e("manageProfile")
2960
2950
  }
2961
2951
  ),
@@ -2964,7 +2954,7 @@ const Qi = "/icons/bouMenuIcons.svg", Hi = ({
2964
2954
  {
2965
2955
  className: "payment",
2966
2956
  mobileUrl: `${t}/payment`,
2967
- icon: /* @__PURE__ */ i.jsx(di, {}),
2957
+ icon: /* @__PURE__ */ i.jsx(ui, {}),
2968
2958
  label: e("payment")
2969
2959
  }
2970
2960
  ),
@@ -2973,7 +2963,7 @@ const Qi = "/icons/bouMenuIcons.svg", Hi = ({
2973
2963
  {
2974
2964
  className: "gift-cards",
2975
2965
  mobileUrl: `${t}/gift-cards`,
2976
- icon: /* @__PURE__ */ i.jsx(ci, {}),
2966
+ icon: /* @__PURE__ */ i.jsx(li, {}),
2977
2967
  label: e("giftCards")
2978
2968
  }
2979
2969
  ),
@@ -2981,7 +2971,7 @@ const Qi = "/icons/bouMenuIcons.svg", Hi = ({
2981
2971
  pe,
2982
2972
  {
2983
2973
  mobileUrl: `${t}/identifiers`,
2984
- icon: /* @__PURE__ */ i.jsx(fi, {}),
2974
+ icon: /* @__PURE__ */ i.jsx(hi, {}),
2985
2975
  label: e("qrCode")
2986
2976
  }
2987
2977
  ),
@@ -2991,30 +2981,30 @@ const Qi = "/icons/bouMenuIcons.svg", Hi = ({
2991
2981
  className: "manage-privacy",
2992
2982
  mobileUrl: `${t}/manage-privacy`,
2993
2983
  desktopUrl: `${t}/manage-privacy/permissions`,
2994
- icon: /* @__PURE__ */ i.jsx(Ir, {}),
2984
+ icon: /* @__PURE__ */ i.jsx(Xr, {}),
2995
2985
  label: e("privacy")
2996
2986
  }
2997
2987
  ),
2998
- /* @__PURE__ */ i.jsx(pe, { mobileUrl: o, icon: /* @__PURE__ */ i.jsx(Jr, {}), label: e("logout") })
2988
+ /* @__PURE__ */ i.jsx(pe, { mobileUrl: o, icon: /* @__PURE__ */ i.jsx(Yr, {}), label: e("logout") })
2999
2989
  ] })
3000
2990
  ] })
3001
2991
  ] });
3002
- }, Vi = () => {
2992
+ }, qi = () => {
3003
2993
  const { t: e } = Ee();
3004
- return /* @__PURE__ */ i.jsxs("button", { className: N("button", "button--neutral", "button--authentication"), children: [
2994
+ return /* @__PURE__ */ i.jsxs("button", { className: P("button", "button--neutral", "button--authentication"), children: [
3005
2995
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx("i", { className: "spinner" }) }),
3006
2996
  /* @__PURE__ */ i.jsxs("span", { className: "button__label", children: [
3007
2997
  e("loading"),
3008
2998
  "..."
3009
2999
  ] })
3010
3000
  ] });
3011
- }, Wi = ({ className: e }) => {
3001
+ }, Vi = ({ className: e }) => {
3012
3002
  const { t } = Ee(), { loginUrl: s } = qe();
3013
3003
  return /* @__PURE__ */ i.jsxs(
3014
3004
  "a",
3015
3005
  {
3016
3006
  href: s,
3017
- className: N(
3007
+ className: P(
3018
3008
  "button",
3019
3009
  "button--neutral",
3020
3010
  "button--authentication",
@@ -3029,10 +3019,10 @@ const Qi = "/icons/bouMenuIcons.svg", Hi = ({
3029
3019
  }
3030
3020
  );
3031
3021
  };
3032
- const Zi = () => {
3033
- const { t: e } = Ee(), { loginUrl: t } = qe(), s = ps(), { position: r } = Gt();
3022
+ const Wi = () => {
3023
+ const { t: e } = Ee(), { loginUrl: t } = qe(), s = fs(), { position: r } = Gt();
3034
3024
  return /* @__PURE__ */ i.jsxs(
3035
- J,
3025
+ Y,
3036
3026
  {
3037
3027
  type: "nav",
3038
3028
  id: "xtra-menu",
@@ -3040,17 +3030,17 @@ const Zi = () => {
3040
3030
  className: "menu--unauthenticated",
3041
3031
  "aria-label": e("xtraMenuAriaLabel"),
3042
3032
  children: [
3043
- /* @__PURE__ */ i.jsx(J.Trigger, { className: N("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ i.jsxs("button", { children: [
3033
+ /* @__PURE__ */ i.jsx(Y.Trigger, { className: P("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ i.jsxs("button", { children: [
3044
3034
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Kt, { width: 24, height: 24, suffix: "mobile" }) }),
3045
3035
  /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx($t, {}) })
3046
3036
  ] }) }),
3047
- /* @__PURE__ */ i.jsxs(J.Content, { children: [
3048
- /* @__PURE__ */ i.jsx(J.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: t, className: "button button--with-icon", children: [
3049
- /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(zr, {}) }),
3037
+ /* @__PURE__ */ i.jsxs(Y.Content, { children: [
3038
+ /* @__PURE__ */ i.jsx(Y.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: t, className: "button button--with-icon", children: [
3039
+ /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Zr, {}) }),
3050
3040
  /* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("login") })
3051
3041
  ] }) }),
3052
- /* @__PURE__ */ i.jsx(J.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
3053
- /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(si, {}) }),
3042
+ /* @__PURE__ */ i.jsx(Y.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
3043
+ /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(ti, {}) }),
3054
3044
  /* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("register") })
3055
3045
  ] }) })
3056
3046
  ] })
@@ -3058,13 +3048,13 @@ const Zi = () => {
3058
3048
  }
3059
3049
  );
3060
3050
  };
3061
- var Y = /* @__PURE__ */ ((e) => (e.Authenticated = "authenticated", e.NotAuthenticated = "notAuthenticated", e.Pending = "pending", e))(Y || {});
3062
- const zi = () => {
3051
+ var z = /* @__PURE__ */ ((e) => (e.Authenticated = "authenticated", e.NotAuthenticated = "notAuthenticated", e.Pending = "pending", e))(z || {});
3052
+ const Zi = () => {
3063
3053
  const { authenticationStatus: e } = Gt();
3064
- return e === Y.NotAuthenticated ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3065
- /* @__PURE__ */ i.jsx(Wi, {}),
3066
- /* @__PURE__ */ i.jsx(Zi, {})
3067
- ] }) : e === Y.Pending ? /* @__PURE__ */ i.jsx(Vi, {}) : /* @__PURE__ */ i.jsx(qi, {});
3054
+ return e === z.NotAuthenticated ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3055
+ /* @__PURE__ */ i.jsx(Vi, {}),
3056
+ /* @__PURE__ */ i.jsx(Wi, {})
3057
+ ] }) : e === z.Pending ? /* @__PURE__ */ i.jsx(qi, {}) : /* @__PURE__ */ i.jsx(Gi, {});
3068
3058
  };
3069
3059
  /*! js-cookie v3.0.5 | MIT */
3070
3060
  function ct(e) {
@@ -3075,7 +3065,7 @@ function ct(e) {
3075
3065
  }
3076
3066
  return e;
3077
3067
  }
3078
- var Yi = {
3068
+ var zi = {
3079
3069
  read: function(e) {
3080
3070
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
3081
3071
  },
@@ -3087,47 +3077,47 @@ var Yi = {
3087
3077
  }
3088
3078
  };
3089
3079
  function Tt(e, t) {
3090
- function s(a, o, l) {
3080
+ function s(n, o, l) {
3091
3081
  if (!(typeof document > "u")) {
3092
- l = ct({}, t, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), a = encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3082
+ l = ct({}, t, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3093
3083
  var c = "";
3094
3084
  for (var f in l)
3095
3085
  l[f] && (c += "; " + f, l[f] !== !0 && (c += "=" + l[f].split(";")[0]));
3096
- return document.cookie = a + "=" + e.write(o, a) + c;
3086
+ return document.cookie = n + "=" + e.write(o, n) + c;
3097
3087
  }
3098
3088
  }
3099
- function r(a) {
3100
- if (!(typeof document > "u" || arguments.length && !a)) {
3089
+ function r(n) {
3090
+ if (!(typeof document > "u" || arguments.length && !n)) {
3101
3091
  for (var o = document.cookie ? document.cookie.split("; ") : [], l = {}, c = 0; c < o.length; c++) {
3102
- var f = o[c].split("="), g = f.slice(1).join("=");
3092
+ var f = o[c].split("="), y = f.slice(1).join("=");
3103
3093
  try {
3104
3094
  var u = decodeURIComponent(f[0]);
3105
- if (l[u] = e.read(g, u), a === u)
3095
+ if (l[u] = e.read(y, u), n === u)
3106
3096
  break;
3107
3097
  } catch {
3108
3098
  }
3109
3099
  }
3110
- return a ? l[a] : l;
3100
+ return n ? l[n] : l;
3111
3101
  }
3112
3102
  }
3113
3103
  return Object.create(
3114
3104
  {
3115
3105
  set: s,
3116
3106
  get: r,
3117
- remove: function(a, o) {
3107
+ remove: function(n, o) {
3118
3108
  s(
3119
- a,
3109
+ n,
3120
3110
  "",
3121
3111
  ct({}, o, {
3122
3112
  expires: -1
3123
3113
  })
3124
3114
  );
3125
3115
  },
3126
- withAttributes: function(a) {
3127
- return Tt(this.converter, ct({}, this.attributes, a));
3116
+ withAttributes: function(n) {
3117
+ return Tt(this.converter, ct({}, this.attributes, n));
3128
3118
  },
3129
- withConverter: function(a) {
3130
- return Tt(ct({}, this.converter, a), this.attributes);
3119
+ withConverter: function(n) {
3120
+ return Tt(ct({}, this.converter, n), this.attributes);
3131
3121
  }
3132
3122
  },
3133
3123
  {
@@ -3136,15 +3126,15 @@ function Tt(e, t) {
3136
3126
  }
3137
3127
  );
3138
3128
  }
3139
- var Ut = Tt(Yi, { path: "/" });
3129
+ var Ut = Tt(zi, { path: "/" });
3140
3130
  class yt extends Error {
3141
3131
  constructor(t) {
3142
3132
  super(t), this.name = "UnauthorizedError";
3143
3133
  }
3144
3134
  }
3145
- const Ji = () => {
3135
+ const Yi = () => {
3146
3136
  const { i18n: e } = Ee(), { profileEndpoint: t } = qe();
3147
- return ks({
3137
+ return As({
3148
3138
  queryKey: ["profile"],
3149
3139
  queryFn: async () => {
3150
3140
  const r = await fetch(t, {
@@ -3156,16 +3146,16 @@ const Ji = () => {
3156
3146
  throw r.status === 401 ? new yt(`${r.status} - ${r.statusText}`) : new Error("Network response was not ok");
3157
3147
  return await r.json();
3158
3148
  },
3159
- retry: (r, a) => a instanceof yt ? !1 : r < 2,
3149
+ retry: (r, n) => n instanceof yt ? !1 : r < 2,
3160
3150
  refetchOnWindowFocus: !1
3161
3151
  });
3162
- }, ts = (e) => e ? `+${e.countryCode} ${e.number}` : "", ss = (e, t) => t == null ? void 0 : t.find((s) => s.type === e), rs = ({ apiUrl: e, redirectUrl: t }) => {
3163
- const { loginUrl: s } = Gs({ apiUrl: e, redirectUrl: t });
3152
+ }, es = (e) => e ? `+${e.countryCode} ${e.number}` : "", ts = (e, t) => t == null ? void 0 : t.find((s) => s.type === e), ss = ({ apiUrl: e, redirectUrl: t }) => {
3153
+ const { loginUrl: s } = $s({ apiUrl: e, redirectUrl: t });
3164
3154
  window.location.replace(s);
3165
- }, Xi = (e) => {
3155
+ }, Ji = (e) => {
3166
3156
  if (!e)
3167
- return { user: { state: () => Y.NotAuthenticated }, tryToLogon: rs };
3168
- const t = new Date(e.dateOfBirth), s = ss(qt.Mobile, e.phone), r = ss(qt.Fixed, e.phone), a = ts(s) ?? ts(r) ?? "";
3157
+ return { user: { state: () => z.NotAuthenticated }, tryToLogon: ss };
3158
+ const t = new Date(e.dateOfBirth), s = ts(qt.Mobile, e.phone), r = ts(qt.Fixed, e.phone), n = es(s) ?? es(r) ?? "";
3169
3159
  return {
3170
3160
  user: {
3171
3161
  firstName: () => e.firstName,
@@ -3174,7 +3164,7 @@ const Ji = () => {
3174
3164
  mob: () => t.getMonth() + 1,
3175
3165
  yob: () => t.getFullYear(),
3176
3166
  gender: () => e.genderCode,
3177
- phone: () => a,
3167
+ phone: () => n,
3178
3168
  streetName: () => {
3179
3169
  var o;
3180
3170
  return (o = e.address) == null ? void 0 : o.streetName;
@@ -3201,23 +3191,26 @@ const Ji = () => {
3201
3191
  },
3202
3192
  email: () => e.email,
3203
3193
  cbh: () => e.customerIdentifier,
3204
- state: () => Y.Authenticated
3194
+ state: () => z.Authenticated
3205
3195
  },
3206
- tryToLogon: rs
3196
+ tryToLogon: ss
3207
3197
  };
3208
- }, Vs = () => {
3209
- const e = Ji(), t = Ut.get("profile"), s = !!t, [r, a] = d.useState(
3210
- s ? Y.Authenticated : Y.Pending
3198
+ }, Gs = () => {
3199
+ const e = Yi(), t = Ut.get("profile"), s = !!t, [r, n] = d.useState(
3200
+ s ? z.Authenticated : z.Pending
3211
3201
  ), [o, l] = d.useState(
3212
3202
  s ? JSON.parse(t) : void 0
3213
3203
  );
3214
3204
  return d.useEffect(() => {
3215
- e.isError && e.error instanceof yt && (Ut.remove("profile"), a(Y.NotAuthenticated)), e.isError && !(e.error instanceof yt) && a(
3216
- s ? Y.Authenticated : Y.NotAuthenticated
3217
- ), e.isSuccess && (a(Y.Authenticated), l(e.data), window.postMessage(
3205
+ e.isError && e.error instanceof yt && (Ut.remove("profile"), n(z.NotAuthenticated)), e.isError && !(e.error instanceof yt) && n(
3206
+ s ? z.Authenticated : z.NotAuthenticated
3207
+ ), e.isSuccess && (n(z.Authenticated), l(e.data), window.postMessage(
3218
3208
  { source: "xtra-authentication", isAuthenticated: !0 },
3219
3209
  new URL(window.location.href).origin
3220
- )), window.XTRA = Xi(e.data);
3210
+ )), window.XTRA = {
3211
+ ...window.XTRA,
3212
+ ...Ji(e.data)
3213
+ };
3221
3214
  }, [
3222
3215
  s,
3223
3216
  e.data,
@@ -3225,39 +3218,39 @@ const Ji = () => {
3225
3218
  e.isError,
3226
3219
  e.isSuccess
3227
3220
  ]), { authenticationStatus: r, profile: o };
3228
- }, Ii = ({ position: e, bouMenuItems: t }) => {
3229
- const { authenticationStatus: s, profile: r } = Vs();
3221
+ }, Xi = ({ position: e, bouMenuItems: t }) => {
3222
+ const { authenticationStatus: s, profile: r } = Gs();
3230
3223
  return /* @__PURE__ */ i.jsx(
3231
- $i,
3224
+ Hi,
3232
3225
  {
3233
3226
  bouMenuItems: t,
3234
3227
  authenticationStatus: s,
3235
3228
  position: e,
3236
3229
  profile: r,
3237
- children: /* @__PURE__ */ i.jsx(zi, {})
3230
+ children: /* @__PURE__ */ i.jsx(Zi, {})
3238
3231
  }
3239
3232
  );
3240
- }, Bi = () => {
3241
- const { postTermsAndConditionsEndpoint: e } = qe(), t = new ws();
3242
- return Sr({
3233
+ }, Ii = () => {
3234
+ const { postTermsAndConditionsEndpoint: e } = qe(), t = new xs();
3235
+ return Ar({
3243
3236
  mutationFn: async (r) => {
3244
- const a = await fetch(e, {
3237
+ const n = await fetch(e, {
3245
3238
  method: "post",
3246
3239
  body: JSON.stringify({ acceptedTC: r }),
3247
3240
  credentials: "include",
3248
3241
  mode: "cors"
3249
3242
  });
3250
- if (!a.ok)
3243
+ if (!n.ok)
3251
3244
  throw new Error("Network response was not ok");
3252
- return a;
3245
+ return n;
3253
3246
  },
3254
3247
  onSuccess: async () => {
3255
3248
  await t.invalidateQueries({ queryKey: ["gdpr"] });
3256
3249
  }
3257
3250
  });
3258
- }, en = () => {
3259
- const { i18n: e } = Ee(), { getTermsAndConditionsEndpoint: t } = qe(), { authenticationStatus: s } = Vs(), r = Ut.get("hasAcceptedLatestTermsAndConditions"), a = [], o = r === "true", l = s === Y.Authenticated;
3260
- return ks({
3251
+ }, Bi = () => {
3252
+ const { i18n: e } = Ee(), { getTermsAndConditionsEndpoint: t } = qe(), { authenticationStatus: s } = Gs(), r = Ut.get("hasAcceptedLatestTermsAndConditions"), n = [], o = r === "true", l = s === z.Authenticated;
3253
+ return As({
3261
3254
  queryKey: ["gdpr"],
3262
3255
  queryFn: async () => {
3263
3256
  const f = await fetch(t, {
@@ -3270,56 +3263,56 @@ const Ji = () => {
3270
3263
  return await f.json();
3271
3264
  },
3272
3265
  enabled: l && !o,
3273
- initialData: a
3266
+ initialData: n
3274
3267
  });
3275
- }, tn = () => {
3276
- const { t: e } = Ee(), { logoutUrl: t } = qs(), s = d.useRef(null), [r, a] = d.useState(0), [o, l] = d.useState({}), { mutate: c, isError: f } = Bi(), { AccessibleFormMessage: g, formRef: u } = Ys({ submitCount: r, errors: o }), { data: C } = en(), w = !!(C != null && C.length), v = e("termsAndConditions.error.required"), b = () => {
3277
- var m;
3278
- (m = s == null ? void 0 : s.current) == null || m.click(), document.body.style.removeProperty("overflow");
3268
+ }, en = () => {
3269
+ const { t: e } = Ee(), { logoutUrl: t } = Ks(), s = d.useRef(null), [r, n] = d.useState(0), [o, l] = d.useState({}), { mutate: c, isError: f } = Ii(), { AccessibleFormMessage: y, formRef: u } = Zs({ submitCount: r, errors: o }), { data: x } = Bi(), g = !!(x != null && x.length), p = e("termsAndConditions.error.required"), w = () => {
3270
+ var v;
3271
+ (v = s == null ? void 0 : s.current) == null || v.click(), document.body.style.removeProperty("overflow");
3279
3272
  };
3280
3273
  d.useEffect(() => {
3281
- w && document.body.style.setProperty("overflow", "hidden");
3282
- }, [w]), d.useEffect(() => {
3283
- f && l({ acceptedTC: v });
3284
- }, [v, f]);
3285
- const _ = (m) => {
3286
- m.preventDefault(), a(r + 1);
3287
- const { acceptedTC: y } = m.target;
3288
- if (y instanceof RadioNodeList) {
3289
- const S = Object.values(y);
3290
- S.every((k) => k.checked) ? (l({}), c(S.map((k) => k.value)), b()) : l({ acceptedTC: v });
3274
+ g && document.body.style.setProperty("overflow", "hidden");
3275
+ }, [g]), d.useEffect(() => {
3276
+ f && l({ acceptedTC: p });
3277
+ }, [p, f]);
3278
+ const _ = (v) => {
3279
+ v.preventDefault(), n(r + 1);
3280
+ const { acceptedTC: C } = v.target;
3281
+ if (C instanceof RadioNodeList) {
3282
+ const S = Object.values(C);
3283
+ S.every((k) => k.checked) ? (l({}), c(S.map((k) => k.value)), w()) : l({ acceptedTC: p });
3291
3284
  } else
3292
- y != null && y.checked ? (l({}), c([y.value]), b()) : l({ acceptedTC: v });
3285
+ C != null && C.checked ? (l({}), c([C.value]), w()) : l({ acceptedTC: p });
3293
3286
  };
3294
- return w ? /* @__PURE__ */ i.jsxs($, { defaultOpen: w, isModal: !0, children: [
3295
- g,
3296
- /* @__PURE__ */ i.jsxs($.Root, { children: [
3297
- /* @__PURE__ */ i.jsx($.Header, { children: /* @__PURE__ */ i.jsx($.Title, { icon: /* @__PURE__ */ i.jsx(Kt, { role: "presentation" }), children: /* @__PURE__ */ i.jsx(an, { children: e("termsAndConditions.title") }) }) }),
3298
- /* @__PURE__ */ i.jsx($.Body, { children: /* @__PURE__ */ i.jsxs(Ws, { ref: u, id: "tc-form", onSubmit: _, children: [
3299
- /* @__PURE__ */ i.jsxs(rn, { children: [
3287
+ return g ? /* @__PURE__ */ i.jsxs(H, { defaultOpen: g, isModal: !0, children: [
3288
+ y,
3289
+ /* @__PURE__ */ i.jsxs(H.Root, { children: [
3290
+ /* @__PURE__ */ i.jsx(H.Header, { children: /* @__PURE__ */ i.jsx(H.Title, { icon: /* @__PURE__ */ i.jsx(Kt, { role: "presentation" }), children: /* @__PURE__ */ i.jsx(nn, { children: e("termsAndConditions.title") }) }) }),
3291
+ /* @__PURE__ */ i.jsx(H.Body, { children: /* @__PURE__ */ i.jsxs(qs, { ref: u, id: "tc-form", onSubmit: _, children: [
3292
+ /* @__PURE__ */ i.jsxs(sn, { children: [
3300
3293
  e("termsAndConditions.description"),
3301
- o.acceptedTC && /* @__PURE__ */ i.jsx(on, { children: v })
3294
+ o.acceptedTC && /* @__PURE__ */ i.jsx(an, { children: p })
3302
3295
  ] }),
3303
- C.map(({ tcCode: m, title: y, URL: S }) => /* @__PURE__ */ i.jsx(
3296
+ x.map(({ tcCode: v, title: C, URL: S }) => /* @__PURE__ */ i.jsx(
3304
3297
  _e,
3305
3298
  {
3306
- id: m,
3307
- value: m,
3299
+ id: v,
3300
+ value: v,
3308
3301
  name: "acceptedTC",
3309
3302
  variant: "primary",
3310
3303
  children: /* @__PURE__ */ i.jsxs(_e.Content, { children: [
3311
- /* @__PURE__ */ i.jsx(sn, { children: y }),
3312
- /* @__PURE__ */ i.jsx(nn, { href: S, children: e("termsAndConditions.action", { title: y }) })
3304
+ /* @__PURE__ */ i.jsx(tn, { children: C }),
3305
+ /* @__PURE__ */ i.jsx(rn, { href: S, children: e("termsAndConditions.action", { title: C }) })
3313
3306
  ] })
3314
3307
  },
3315
- m
3308
+ v
3316
3309
  ))
3317
3310
  ] }) }),
3318
- /* @__PURE__ */ i.jsxs($.Footer, { children: [
3311
+ /* @__PURE__ */ i.jsxs(H.Footer, { children: [
3319
3312
  /* @__PURE__ */ i.jsx(
3320
3313
  "a",
3321
3314
  {
3322
- className: N("button", "button--secondary", "button--terms-and-conditions"),
3315
+ className: P("button", "button--secondary", "button--terms-and-conditions"),
3323
3316
  href: t,
3324
3317
  children: e("logout")
3325
3318
  }
@@ -3328,15 +3321,15 @@ const Ji = () => {
3328
3321
  ] })
3329
3322
  ] })
3330
3323
  ] }) : /* @__PURE__ */ i.jsx(i.Fragment, {});
3331
- }, sn = ({
3324
+ }, tn = ({
3332
3325
  children: e,
3333
3326
  ...t
3334
- }) => /* @__PURE__ */ i.jsx(_e.Label, { className: "form--tc__label", ...t, children: e }), Ws = d.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ i.jsx("form", { className: "form--tc", ref: s, ...t, children: e }));
3335
- Ws.displayName = "TermsAndConditionsForm";
3336
- const rn = ({
3327
+ }) => /* @__PURE__ */ i.jsx(_e.Label, { className: "form--tc__label", ...t, children: e }), qs = d.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ i.jsx("form", { className: "form--tc", ref: s, ...t, children: e }));
3328
+ qs.displayName = "TermsAndConditionsForm";
3329
+ const sn = ({
3337
3330
  children: e,
3338
3331
  ...t
3339
- }) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...t, children: e }), nn = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx(
3332
+ }) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...t, children: e }), rn = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx(
3340
3333
  "a",
3341
3334
  {
3342
3335
  className: "form--tc__link",
@@ -3347,10 +3340,10 @@ const rn = ({
3347
3340
  ...t,
3348
3341
  children: e
3349
3342
  }
3350
- ), an = ({ children: e }) => /* @__PURE__ */ i.jsx("h1", { className: "form--tc__title", children: e }), on = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx("span", { className: "form--tc__error", role: "alert", ...t, children: e }), ln = new ws(), dn = ({ environment: e, redirectUrl: t, apiUrl: s, position: r, bouMenuItems: a }) => /* @__PURE__ */ i.jsx(Js, { environment: e, children: /* @__PURE__ */ i.jsx(Ki, { apiUrl: s, redirectUrl: t, children: /* @__PURE__ */ i.jsxs(mr, { client: ln, children: [
3351
- /* @__PURE__ */ i.jsx(Ii, { position: r, bouMenuItems: a }),
3352
- /* @__PURE__ */ i.jsx(tn, {})
3343
+ ), nn = ({ children: e }) => /* @__PURE__ */ i.jsx("h1", { className: "form--tc__title", children: e }), an = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx("span", { className: "form--tc__error", role: "alert", ...t, children: e }), on = new xs(), un = ({ environment: e, redirectUrl: t, apiUrl: s, position: r, bouMenuItems: n }) => /* @__PURE__ */ i.jsx(zs, { environment: e, children: /* @__PURE__ */ i.jsx($i, { apiUrl: s, redirectUrl: t, children: /* @__PURE__ */ i.jsxs(pr, { client: on, children: [
3344
+ /* @__PURE__ */ i.jsx(Xi, { position: r, bouMenuItems: n }),
3345
+ /* @__PURE__ */ i.jsx(en, {})
3353
3346
  ] }) }) });
3354
3347
  export {
3355
- dn as default
3348
+ un as default
3356
3349
  };