@myxtra/authentication-green 2.2.0 → 2.3.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.
@@ -15,7 +15,7 @@ var at = (e, t, s, r) => ({
15
15
  return n(e, t, r);
16
16
  }
17
17
  }), b = (e, t, s) => (gt(e, t, "access private method"), s);
18
- import { r as d, j as i, u as Ks, a as Gs, b as _e, P as Qt, c as cs, d as Vs, e as qs, E as Ws, C as Zs } from "./index-3eecbdf9.mjs";
18
+ import { r as d, j as i, u as Gs, a as Vs, b as je, P as Ht, c as us, d as qs, e as Ws, E as Zs, C as Ys } from "./index-97a2898d.mjs";
19
19
  var Ke = class {
20
20
  constructor() {
21
21
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
@@ -33,18 +33,18 @@ var Ke = class {
33
33
  onUnsubscribe() {
34
34
  }
35
35
  }, $e = typeof window > "u" || "Deno" in window;
36
- function Z() {
36
+ function Y() {
37
37
  }
38
- function Ys(e, t) {
38
+ function zs(e, t) {
39
39
  return typeof e == "function" ? e(t) : e;
40
40
  }
41
41
  function xt(e) {
42
42
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
43
43
  }
44
- function us(e, t) {
44
+ function ds(e, t) {
45
45
  return Math.max(e + (t || 0) - Date.now(), 0);
46
46
  }
47
- function Ht(e, t) {
47
+ function $t(e, t) {
48
48
  const {
49
49
  type: s = "all",
50
50
  exact: r,
@@ -55,7 +55,7 @@ function Ht(e, t) {
55
55
  } = e;
56
56
  if (o) {
57
57
  if (r) {
58
- if (t.queryHash !== Ft(o, t.options))
58
+ if (t.queryHash !== Rt(o, t.options))
59
59
  return !1;
60
60
  } else if (!Ve(t.queryKey, o))
61
61
  return !1;
@@ -67,23 +67,23 @@ function Ht(e, t) {
67
67
  }
68
68
  return !(typeof c == "boolean" && t.isStale() !== c || typeof a < "u" && a !== t.state.fetchStatus || l && !l(t));
69
69
  }
70
- function $t(e, t) {
70
+ function Kt(e, t) {
71
71
  const { exact: s, status: r, predicate: a, mutationKey: l } = e;
72
72
  if (l) {
73
73
  if (!t.options.mutationKey)
74
74
  return !1;
75
75
  if (s) {
76
- if (we(t.options.mutationKey) !== we(l))
76
+ if (be(t.options.mutationKey) !== be(l))
77
77
  return !1;
78
78
  } else if (!Ve(t.options.mutationKey, l))
79
79
  return !1;
80
80
  }
81
81
  return !(r && t.state.status !== r || a && !a(t));
82
82
  }
83
- function Ft(e, t) {
84
- return ((t == null ? void 0 : t.queryKeyHashFn) || we)(e);
83
+ function Rt(e, t) {
84
+ return ((t == null ? void 0 : t.queryKeyHashFn) || be)(e);
85
85
  }
86
- function we(e) {
86
+ function be(e) {
87
87
  return JSON.stringify(
88
88
  e,
89
89
  (t, s) => bt(s) ? Object.keys(s).sort().reduce((r, a) => (r[a] = s[a], r), {}) : s
@@ -92,16 +92,16 @@ function we(e) {
92
92
  function Ve(e, t) {
93
93
  return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((s) => !Ve(e[s], t[s])) : !1;
94
94
  }
95
- function ds(e, t) {
95
+ function hs(e, t) {
96
96
  if (e === t)
97
97
  return e;
98
- const s = Kt(e) && Kt(t);
98
+ const s = Gt(e) && Gt(t);
99
99
  if (s || bt(e) && bt(t)) {
100
100
  const r = s ? e : Object.keys(e), a = r.length, l = s ? t : Object.keys(t), o = l.length, c = s ? [] : {};
101
101
  let v = 0;
102
102
  for (let g = 0; g < o; g++) {
103
103
  const u = s ? g : l[g];
104
- !s && e[u] === void 0 && t[u] === void 0 && r.includes(u) ? (c[u] = void 0, v++) : (c[u] = ds(e[u], t[u]), c[u] === e[u] && e[u] !== void 0 && v++);
104
+ !s && e[u] === void 0 && t[u] === void 0 && r.includes(u) ? (c[u] = void 0, v++) : (c[u] = hs(e[u], t[u]), c[u] === e[u] && e[u] !== void 0 && v++);
105
105
  }
106
106
  return a === o && v === a ? e : c;
107
107
  }
@@ -115,41 +115,41 @@ function ct(e, t) {
115
115
  return !1;
116
116
  return !0;
117
117
  }
118
- function Kt(e) {
118
+ function Gt(e) {
119
119
  return Array.isArray(e) && e.length === Object.keys(e).length;
120
120
  }
121
121
  function bt(e) {
122
- if (!Gt(e))
122
+ if (!Vt(e))
123
123
  return !1;
124
124
  const t = e.constructor;
125
125
  if (typeof t > "u")
126
126
  return !0;
127
127
  const s = t.prototype;
128
- return !(!Gt(s) || !s.hasOwnProperty("isPrototypeOf"));
128
+ return !(!Vt(s) || !s.hasOwnProperty("isPrototypeOf"));
129
129
  }
130
- function Gt(e) {
130
+ function Vt(e) {
131
131
  return Object.prototype.toString.call(e) === "[object Object]";
132
132
  }
133
- function zs(e) {
133
+ function Js(e) {
134
134
  return new Promise((t) => {
135
135
  setTimeout(t, e);
136
136
  });
137
137
  }
138
138
  function wt(e, t, s) {
139
- return typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? ds(e, t) : t;
139
+ return typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? hs(e, t) : t;
140
140
  }
141
- function Js(e, t, s = 0) {
141
+ function Xs(e, t, s = 0) {
142
142
  const r = [...e, t];
143
143
  return s && r.length > s ? r.slice(1) : r;
144
144
  }
145
- function Xs(e, t, s = 0) {
145
+ function Is(e, t, s = 0) {
146
146
  const r = [t, ...e];
147
147
  return s && r.length > s ? r.slice(0, -1) : r;
148
148
  }
149
- var pe, ne, Ee, Bt, Is = (Bt = class extends Ke {
149
+ var fe, ne, Ee, es, Bs = (es = class extends Ke {
150
150
  constructor() {
151
151
  super();
152
- p(this, pe, void 0);
152
+ p(this, fe, void 0);
153
153
  p(this, ne, void 0);
154
154
  p(this, Ee, void 0);
155
155
  h(this, Ee, (t) => {
@@ -175,7 +175,7 @@ var pe, ne, Ee, Bt, Is = (Bt = class extends Ke {
175
175
  }));
176
176
  }
177
177
  setFocused(t) {
178
- n(this, pe) !== t && (h(this, pe, t), this.onFocus());
178
+ n(this, fe) !== t && (h(this, fe, t), this.onFocus());
179
179
  }
180
180
  onFocus() {
181
181
  this.listeners.forEach((t) => {
@@ -184,9 +184,9 @@ var pe, ne, Ee, Bt, Is = (Bt = class extends Ke {
184
184
  }
185
185
  isFocused() {
186
186
  var t;
187
- return typeof n(this, pe) == "boolean" ? n(this, pe) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
187
+ return typeof n(this, fe) == "boolean" ? n(this, fe) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
188
188
  }
189
- }, pe = new WeakMap(), ne = new WeakMap(), Ee = new WeakMap(), Bt), ut = new Is(), Se, ae, Ae, es, Bs = (es = class extends Ke {
189
+ }, fe = new WeakMap(), ne = new WeakMap(), Ee = new WeakMap(), es), ut = new Bs(), Se, ae, Ae, ts, er = (ts = class extends Ke {
190
190
  constructor() {
191
191
  super();
192
192
  p(this, Se, !0);
@@ -220,28 +220,28 @@ var pe, ne, Ee, Bt, Is = (Bt = class extends Ke {
220
220
  isOnline() {
221
221
  return n(this, Se);
222
222
  }
223
- }, Se = new WeakMap(), ae = new WeakMap(), Ae = new WeakMap(), es), dt = new Bs();
224
- function er(e) {
223
+ }, Se = new WeakMap(), ae = new WeakMap(), Ae = new WeakMap(), ts), dt = new er();
224
+ function tr(e) {
225
225
  return Math.min(1e3 * 2 ** e, 3e4);
226
226
  }
227
227
  function vt(e) {
228
228
  return (e ?? "online") === "online" ? dt.isOnline() : !0;
229
229
  }
230
- var hs = class {
230
+ var fs = class {
231
231
  constructor(e) {
232
232
  this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
233
233
  }
234
234
  };
235
235
  function Ct(e) {
236
- return e instanceof hs;
236
+ return e instanceof fs;
237
237
  }
238
- function fs(e) {
238
+ function ps(e) {
239
239
  let t = !1, s = 0, r = !1, a, l, o;
240
240
  const c = new Promise((y, C) => {
241
241
  l = y, o = C;
242
242
  }), v = (y) => {
243
243
  var C;
244
- r || (f(new hs(y)), (C = e.abort) == null || C.call(e));
244
+ r || (f(new fs(y)), (C = e.abort) == null || C.call(e));
245
245
  }, g = () => {
246
246
  t = !0;
247
247
  }, u = () => {
@@ -274,12 +274,12 @@ function fs(e) {
274
274
  var $;
275
275
  if (r)
276
276
  return;
277
- const S = e.retry ?? ($e ? 0 : 3), _ = e.retryDelay ?? er, k = typeof _ == "function" ? _(s, C) : _, L = S === !0 || typeof S == "number" && s < S || typeof S == "function" && S(s, C);
277
+ const S = e.retry ?? ($e ? 0 : 3), _ = e.retryDelay ?? tr, N = typeof _ == "function" ? _(s, C) : _, L = S === !0 || typeof S == "number" && s < S || typeof S == "function" && S(s, C);
278
278
  if (t || !L) {
279
279
  f(C);
280
280
  return;
281
281
  }
282
- s++, ($ = e.onFail) == null || $.call(e, s, C), zs(k).then(() => {
282
+ s++, ($ = e.onFail) == null || $.call(e, s, C), Js(N).then(() => {
283
283
  if (x())
284
284
  return w();
285
285
  }).then(() => {
@@ -295,7 +295,7 @@ function fs(e) {
295
295
  continueRetry: u
296
296
  };
297
297
  }
298
- function tr() {
298
+ function sr() {
299
299
  let e = [], t = 0, s = (m) => {
300
300
  m();
301
301
  }, r = (m) => {
@@ -343,15 +343,15 @@ function tr() {
343
343
  setScheduler: l
344
344
  };
345
345
  }
346
- var R = tr(), me, ts, ps = (ts = class {
346
+ var R = sr(), pe, ss, ms = (ss = class {
347
347
  constructor() {
348
- p(this, me, void 0);
348
+ p(this, pe, void 0);
349
349
  }
350
350
  destroy() {
351
351
  this.clearGcTimeout();
352
352
  }
353
353
  scheduleGc() {
354
- this.clearGcTimeout(), xt(this.gcTime) && h(this, me, setTimeout(() => {
354
+ this.clearGcTimeout(), xt(this.gcTime) && h(this, pe, setTimeout(() => {
355
355
  this.optionalRemove();
356
356
  }, this.gcTime));
357
357
  }
@@ -362,28 +362,28 @@ var R = tr(), me, ts, ps = (ts = class {
362
362
  );
363
363
  }
364
364
  clearGcTimeout() {
365
- n(this, me) && (clearTimeout(n(this, me)), h(this, me, void 0));
365
+ n(this, pe) && (clearTimeout(n(this, pe)), h(this, pe, void 0));
366
366
  }
367
- }, me = new WeakMap(), ts), Pe, Ne, V, oe, q, D, qe, ve, ke, ot, z, te, ss, sr = (ss = class extends ps {
367
+ }, pe = new WeakMap(), ss), Pe, ke, q, oe, W, D, qe, me, Ne, ot, z, te, rs, rr = (rs = class extends ms {
368
368
  constructor(t) {
369
369
  super();
370
- p(this, ke);
370
+ p(this, Ne);
371
371
  p(this, z);
372
372
  p(this, Pe, void 0);
373
- p(this, Ne, void 0);
374
- p(this, V, void 0);
375
- p(this, oe, void 0);
373
+ p(this, ke, void 0);
376
374
  p(this, q, void 0);
375
+ p(this, oe, void 0);
376
+ p(this, W, void 0);
377
377
  p(this, D, void 0);
378
378
  p(this, qe, void 0);
379
- p(this, ve, void 0);
380
- h(this, ve, !1), h(this, qe, t.defaultOptions), b(this, ke, ot).call(this, t.options), h(this, D, []), h(this, V, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, h(this, Pe, t.state || rr(this.options)), this.state = n(this, Pe), this.scheduleGc();
379
+ p(this, me, void 0);
380
+ h(this, me, !1), h(this, qe, t.defaultOptions), b(this, Ne, ot).call(this, t.options), h(this, D, []), h(this, q, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, h(this, Pe, t.state || ir(this.options)), this.state = n(this, Pe), this.scheduleGc();
381
381
  }
382
382
  get meta() {
383
383
  return this.options.meta;
384
384
  }
385
385
  optionalRemove() {
386
- !n(this, D).length && this.state.fetchStatus === "idle" && n(this, V).remove(this);
386
+ !n(this, D).length && this.state.fetchStatus === "idle" && n(this, q).remove(this);
387
387
  }
388
388
  setData(t, s) {
389
389
  const r = wt(this.state.data, t, this.options);
@@ -400,7 +400,7 @@ var R = tr(), me, ts, ps = (ts = class {
400
400
  cancel(t) {
401
401
  var r;
402
402
  const s = n(this, oe);
403
- return (r = n(this, q)) == null || r.cancel(t), s ? s.then(Z).catch(Z) : Promise.resolve();
403
+ return (r = n(this, W)) == null || r.cancel(t), s ? s.then(Y).catch(Y) : Promise.resolve();
404
404
  }
405
405
  destroy() {
406
406
  super.destroy(), this.cancel({ silent: !0 });
@@ -420,23 +420,23 @@ var R = tr(), me, ts, ps = (ts = class {
420
420
  return this.state.isInvalidated || !this.state.dataUpdatedAt || n(this, D).some((t) => t.getCurrentResult().isStale);
421
421
  }
422
422
  isStaleByTime(t = 0) {
423
- return this.state.isInvalidated || !this.state.dataUpdatedAt || !us(this.state.dataUpdatedAt, t);
423
+ return this.state.isInvalidated || !this.state.dataUpdatedAt || !ds(this.state.dataUpdatedAt, t);
424
424
  }
425
425
  onFocus() {
426
426
  var s;
427
427
  const t = n(this, D).find((r) => r.shouldFetchOnWindowFocus());
428
- t == null || t.refetch({ cancelRefetch: !1 }), (s = n(this, q)) == null || s.continue();
428
+ t == null || t.refetch({ cancelRefetch: !1 }), (s = n(this, W)) == null || s.continue();
429
429
  }
430
430
  onOnline() {
431
431
  var s;
432
432
  const t = n(this, D).find((r) => r.shouldFetchOnReconnect());
433
- t == null || t.refetch({ cancelRefetch: !1 }), (s = n(this, q)) == null || s.continue();
433
+ t == null || t.refetch({ cancelRefetch: !1 }), (s = n(this, W)) == null || s.continue();
434
434
  }
435
435
  addObserver(t) {
436
- n(this, D).includes(t) || (n(this, D).push(t), this.clearGcTimeout(), n(this, V).notify({ type: "observerAdded", query: this, observer: t }));
436
+ n(this, D).includes(t) || (n(this, D).push(t), this.clearGcTimeout(), n(this, q).notify({ type: "observerAdded", query: this, observer: t }));
437
437
  }
438
438
  removeObserver(t) {
439
- n(this, D).includes(t) && (h(this, D, n(this, D).filter((s) => s !== t)), n(this, D).length || (n(this, q) && (n(this, ve) ? n(this, q).cancel({ revert: !0 }) : n(this, q).cancelRetry()), this.scheduleGc()), n(this, V).notify({ type: "observerRemoved", query: this, observer: t }));
439
+ n(this, D).includes(t) && (h(this, D, n(this, D).filter((s) => s !== t)), n(this, D).length || (n(this, W) && (n(this, me) ? n(this, W).cancel({ revert: !0 }) : n(this, W).cancelRetry()), this.scheduleGc()), n(this, q).notify({ type: "observerRemoved", query: this, observer: t }));
440
440
  }
441
441
  getObserversCount() {
442
442
  return n(this, D).length;
@@ -450,11 +450,11 @@ var R = tr(), me, ts, ps = (ts = class {
450
450
  if (this.state.dataUpdatedAt && (s != null && s.cancelRefetch))
451
451
  this.cancel({ silent: !0 });
452
452
  else if (n(this, oe))
453
- return (g = n(this, q)) == null || g.continueRetry(), n(this, oe);
453
+ return (g = n(this, W)) == null || g.continueRetry(), n(this, oe);
454
454
  }
455
- if (t && b(this, ke, ot).call(this, t), !this.options.queryFn) {
455
+ if (t && b(this, Ne, ot).call(this, t), !this.options.queryFn) {
456
456
  const f = n(this, D).find((w) => w.options.queryFn);
457
- f && b(this, ke, ot).call(this, f.options);
457
+ f && b(this, Ne, ot).call(this, f.options);
458
458
  }
459
459
  const r = new AbortController(), a = {
460
460
  queryKey: this.queryKey,
@@ -462,11 +462,11 @@ var R = tr(), me, ts, ps = (ts = class {
462
462
  }, l = (f) => {
463
463
  Object.defineProperty(f, "signal", {
464
464
  enumerable: !0,
465
- get: () => (h(this, ve, !0), r.signal)
465
+ get: () => (h(this, me, !0), r.signal)
466
466
  });
467
467
  };
468
468
  l(a);
469
- const o = () => this.options.queryFn ? (h(this, ve, !1), this.options.persister ? this.options.persister(
469
+ const o = () => this.options.queryFn ? (h(this, me, !1), this.options.persister ? this.options.persister(
470
470
  this.options.queryFn,
471
471
  a,
472
472
  this
@@ -484,24 +484,24 @@ var R = tr(), me, ts, ps = (ts = class {
484
484
  l(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 !== ((x = c.fetchOptions) == null ? void 0 : x.meta)) && b(this, z, te).call(this, { type: "fetch", meta: (m = c.fetchOptions) == null ? void 0 : m.meta });
487
+ ), h(this, ke, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((x = c.fetchOptions) == null ? void 0 : x.meta)) && b(this, z, te).call(this, { type: "fetch", meta: (m = c.fetchOptions) == null ? void 0 : m.meta });
488
488
  const v = (f) => {
489
489
  var w, E, y, C;
490
490
  Ct(f) && f.silent || b(this, z, te).call(this, {
491
491
  type: "error",
492
492
  error: f
493
- }), Ct(f) || ((E = (w = n(this, V).config).onError) == null || E.call(
493
+ }), Ct(f) || ((E = (w = n(this, q).config).onError) == null || E.call(
494
494
  w,
495
495
  f,
496
496
  this
497
- ), (C = (y = n(this, V).config).onSettled) == null || C.call(
497
+ ), (C = (y = n(this, q).config).onSettled) == null || C.call(
498
498
  y,
499
499
  this.state.data,
500
500
  f,
501
501
  this
502
502
  )), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
503
503
  };
504
- return h(this, q, fs({
504
+ return h(this, W, ps({
505
505
  fn: c.fetchFn,
506
506
  abort: r.abort.bind(r),
507
507
  onSuccess: (f) => {
@@ -510,7 +510,7 @@ var R = tr(), me, ts, ps = (ts = class {
510
510
  v(new Error(`${this.queryHash} data is undefined`));
511
511
  return;
512
512
  }
513
- this.setData(f), (E = (w = n(this, V).config).onSuccess) == null || E.call(w, f, this), (C = (y = n(this, V).config).onSettled) == null || C.call(
513
+ this.setData(f), (E = (w = n(this, q).config).onSuccess) == null || E.call(w, f, this), (C = (y = n(this, q).config).onSettled) == null || C.call(
514
514
  y,
515
515
  f,
516
516
  this.state.error,
@@ -530,9 +530,9 @@ var R = tr(), me, ts, ps = (ts = class {
530
530
  retry: c.options.retry,
531
531
  retryDelay: c.options.retryDelay,
532
532
  networkMode: c.options.networkMode
533
- })), h(this, oe, n(this, q).promise), n(this, oe);
533
+ })), h(this, oe, n(this, W).promise), n(this, oe);
534
534
  }
535
- }, Pe = new WeakMap(), Ne = new WeakMap(), V = new WeakMap(), oe = new WeakMap(), q = new WeakMap(), D = new WeakMap(), qe = new WeakMap(), ve = new WeakMap(), ke = new WeakSet(), ot = function(t) {
535
+ }, Pe = new WeakMap(), ke = new WeakMap(), q = new WeakMap(), oe = new WeakMap(), W = new WeakMap(), D = new WeakMap(), qe = new WeakMap(), me = new WeakMap(), Ne = new WeakSet(), ot = function(t) {
536
536
  this.options = { ...n(this, qe), ...t }, this.updateGcTime(this.options.gcTime);
537
537
  }, z = new WeakSet(), te = function(t) {
538
538
  const s = (r) => {
@@ -582,7 +582,7 @@ var R = tr(), me, ts, ps = (ts = class {
582
582
  };
583
583
  case "error":
584
584
  const a = t.error;
585
- return Ct(a) && a.revert && n(this, Ne) ? { ...n(this, Ne), fetchStatus: "idle" } : {
585
+ return Ct(a) && a.revert && n(this, ke) ? { ...n(this, ke), fetchStatus: "idle" } : {
586
586
  ...r,
587
587
  error: a,
588
588
  errorUpdateCount: r.errorUpdateCount + 1,
@@ -607,10 +607,10 @@ var R = tr(), me, ts, ps = (ts = class {
607
607
  this.state = s(this.state), R.batch(() => {
608
608
  n(this, D).forEach((r) => {
609
609
  r.onQueryUpdate();
610
- }), n(this, V).notify({ query: this, type: "updated", action: t });
610
+ }), n(this, q).notify({ query: this, type: "updated", action: t });
611
611
  });
612
- }, ss);
613
- function rr(e) {
612
+ }, rs);
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,16 +627,16 @@ function rr(e) {
627
627
  fetchStatus: "idle"
628
628
  };
629
629
  }
630
- var J, rs, ir = (rs = class extends Ke {
630
+ var J, is, nr = (is = class extends Ke {
631
631
  constructor(t = {}) {
632
632
  super();
633
633
  p(this, J, void 0);
634
634
  this.config = t, h(this, J, /* @__PURE__ */ new Map());
635
635
  }
636
636
  build(t, s, r) {
637
- const a = s.queryKey, l = s.queryHash ?? Ft(a, s);
637
+ const a = s.queryKey, l = s.queryHash ?? Rt(a, s);
638
638
  let o = this.get(l);
639
- return o || (o = new sr({
639
+ return o || (o = new rr({
640
640
  cache: this,
641
641
  queryKey: a,
642
642
  queryHash: l,
@@ -671,12 +671,12 @@ var J, rs, ir = (rs = class extends Ke {
671
671
  find(t) {
672
672
  const s = { exact: !0, ...t };
673
673
  return this.getAll().find(
674
- (r) => Ht(s, r)
674
+ (r) => $t(s, r)
675
675
  );
676
676
  }
677
677
  findAll(t = {}) {
678
678
  const s = this.getAll();
679
- return Object.keys(t).length > 0 ? s.filter((r) => Ht(t, r)) : s;
679
+ return Object.keys(t).length > 0 ? s.filter((r) => $t(t, r)) : s;
680
680
  }
681
681
  notify(t) {
682
682
  R.batch(() => {
@@ -699,7 +699,7 @@ var J, rs, ir = (rs = class extends Ke {
699
699
  });
700
700
  });
701
701
  }
702
- }, J = new WeakMap(), rs), X, We, K, Me, I, ie, is, nr = (is = class extends ps {
702
+ }, J = new WeakMap(), is), X, We, K, Me, I, ie, ns, ar = (ns = class extends ms {
703
703
  constructor(t) {
704
704
  super();
705
705
  p(this, I);
@@ -707,7 +707,7 @@ var J, rs, ir = (rs = class extends Ke {
707
707
  p(this, We, void 0);
708
708
  p(this, K, void 0);
709
709
  p(this, Me, void 0);
710
- this.mutationId = t.mutationId, h(this, We, t.defaultOptions), h(this, K, t.mutationCache), h(this, X, []), this.state = t.state || ms(), this.setOptions(t.options), this.scheduleGc();
710
+ this.mutationId = t.mutationId, h(this, We, t.defaultOptions), h(this, K, t.mutationCache), h(this, X, []), this.state = t.state || vs(), this.setOptions(t.options), this.scheduleGc();
711
711
  }
712
712
  setOptions(t) {
713
713
  this.options = { ...n(this, We), ...t }, this.updateGcTime(this.options.gcTime);
@@ -738,8 +738,8 @@ var J, rs, ir = (rs = class extends Ke {
738
738
  this.execute(this.state.variables);
739
739
  }
740
740
  async execute(t) {
741
- var a, l, o, c, v, g, u, x, m, f, w, E, y, C, S, _, k, L, $, T;
742
- const s = () => (h(this, Me, fs({
741
+ var a, l, o, c, v, g, u, x, m, f, w, E, y, C, S, _, N, L, $, T;
742
+ const s = () => (h(this, Me, ps({
743
743
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
744
744
  onFail: (M, ee) => {
745
745
  b(this, I, ie).call(this, { type: "failed", failureCount: M, error: ee });
@@ -796,8 +796,8 @@ var J, rs, ir = (rs = class extends Ke {
796
796
  M,
797
797
  t,
798
798
  this.state.context
799
- )), await ((L = (k = n(this, K).config).onSettled) == null ? void 0 : L.call(
800
- k,
799
+ )), await ((L = (N = n(this, K).config).onSettled) == null ? void 0 : L.call(
800
+ N,
801
801
  void 0,
802
802
  M,
803
803
  this.state.variables,
@@ -878,8 +878,8 @@ var J, rs, ir = (rs = class extends Ke {
878
878
  action: t
879
879
  });
880
880
  });
881
- }, is);
882
- function ms() {
881
+ }, ns);
882
+ function vs() {
883
883
  return {
884
884
  context: void 0,
885
885
  data: void 0,
@@ -892,16 +892,16 @@ function ms() {
892
892
  submittedAt: 0
893
893
  };
894
894
  }
895
- var W, Ze, ye, ns, ar = (ns = class extends Ke {
895
+ var Z, Ze, ve, as, or = (as = class extends Ke {
896
896
  constructor(t = {}) {
897
897
  super();
898
- p(this, W, void 0);
898
+ p(this, Z, void 0);
899
899
  p(this, Ze, void 0);
900
- p(this, ye, void 0);
901
- this.config = t, h(this, W, []), h(this, Ze, 0);
900
+ p(this, ve, void 0);
901
+ this.config = t, h(this, Z, []), h(this, Ze, 0);
902
902
  }
903
903
  build(t, s, r) {
904
- const a = new nr({
904
+ const a = new ar({
905
905
  mutationCache: this,
906
906
  mutationId: ++at(this, Ze)._,
907
907
  options: t.defaultMutationOptions(s),
@@ -910,30 +910,30 @@ var W, Ze, ye, ns, ar = (ns = class extends Ke {
910
910
  return this.add(a), a;
911
911
  }
912
912
  add(t) {
913
- n(this, W).push(t), this.notify({ type: "added", mutation: t });
913
+ n(this, Z).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, Z, n(this, Z).filter((s) => s !== t)), this.notify({ type: "removed", mutation: t });
917
917
  }
918
918
  clear() {
919
919
  R.batch(() => {
920
- n(this, W).forEach((t) => {
920
+ n(this, Z).forEach((t) => {
921
921
  this.remove(t);
922
922
  });
923
923
  });
924
924
  }
925
925
  getAll() {
926
- return n(this, W);
926
+ return n(this, Z);
927
927
  }
928
928
  find(t) {
929
929
  const s = { exact: !0, ...t };
930
- return n(this, W).find(
931
- (r) => $t(s, r)
930
+ return n(this, Z).find(
931
+ (r) => Kt(s, r)
932
932
  );
933
933
  }
934
934
  findAll(t = {}) {
935
- return n(this, W).filter(
936
- (s) => $t(t, s)
935
+ return n(this, Z).filter(
936
+ (s) => Kt(t, s)
937
937
  );
938
938
  }
939
939
  notify(t) {
@@ -944,20 +944,20 @@ var W, Ze, ye, ns, ar = (ns = class extends Ke {
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, ve, (n(this, ve) ?? Promise.resolve()).then(() => {
948
+ const t = n(this, Z).filter((s) => s.state.isPaused);
949
949
  return R.batch(
950
950
  () => t.reduce(
951
- (s, r) => s.then(() => r.continue().catch(Z)),
951
+ (s, r) => s.then(() => r.continue().catch(Y)),
952
952
  Promise.resolve()
953
953
  )
954
954
  );
955
955
  }).then(() => {
956
- h(this, ye, void 0);
957
- })), n(this, ye);
956
+ h(this, ve, void 0);
957
+ })), n(this, ve);
958
958
  }
959
- }, W = new WeakMap(), Ze = new WeakMap(), ye = new WeakMap(), ns);
960
- function or(e) {
959
+ }, Z = new WeakMap(), Ze = new WeakMap(), ve = new WeakMap(), as);
960
+ function lr(e) {
961
961
  return {
962
962
  onFetch: (t, s) => {
963
963
  const r = async () => {
@@ -973,32 +973,32 @@ function or(e) {
973
973
  });
974
974
  }, x = t.options.queryFn || (() => Promise.reject(
975
975
  new Error(`Missing queryFn: '${t.options.queryHash}'`)
976
- )), m = async (_, k, L) => {
976
+ )), m = async (_, N, L) => {
977
977
  if (g)
978
978
  return Promise.reject();
979
- if (k == null && _.pages.length)
979
+ if (N == null && _.pages.length)
980
980
  return Promise.resolve(_);
981
981
  const $ = {
982
982
  queryKey: t.queryKey,
983
- pageParam: k,
983
+ pageParam: N,
984
984
  direction: L ? "backward" : "forward",
985
985
  meta: t.options.meta
986
986
  };
987
987
  u($);
988
988
  const T = await x(
989
989
  $
990
- ), { maxPages: M } = t.options, ee = L ? Xs : Js;
990
+ ), { maxPages: M } = t.options, ee = L ? Is : Xs;
991
991
  return {
992
992
  pages: ee(_.pages, T, M),
993
- pageParams: ee(_.pageParams, k, M)
993
+ pageParams: ee(_.pageParams, N, M)
994
994
  };
995
995
  };
996
996
  let f;
997
997
  if (l && o.length) {
998
- const _ = l === "backward", k = _ ? lr : Vt, L = {
998
+ const _ = l === "backward", N = _ ? cr : qt, L = {
999
999
  pages: o,
1000
1000
  pageParams: c
1001
- }, $ = k(a, L);
1001
+ }, $ = N(a, L);
1002
1002
  f = await m(L, $, _);
1003
1003
  } else {
1004
1004
  f = await m(
@@ -1006,8 +1006,8 @@ function or(e) {
1006
1006
  c[0] ?? a.initialPageParam
1007
1007
  );
1008
1008
  const _ = e ?? o.length;
1009
- for (let k = 1; k < _; k++) {
1010
- const L = Vt(a, f);
1009
+ for (let N = 1; N < _; N++) {
1010
+ const L = qt(a, f);
1011
1011
  f = await m(f, L);
1012
1012
  }
1013
1013
  }
@@ -1029,7 +1029,7 @@ function or(e) {
1029
1029
  }
1030
1030
  };
1031
1031
  }
1032
- function Vt(e, { pages: t, pageParams: s }) {
1032
+ function qt(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 Vt(e, { pages: t, pageParams: s }) {
1038
1038
  s
1039
1039
  );
1040
1040
  }
1041
- function lr(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,7 +1048,7 @@ function lr(e, { pages: t, pageParams: s }) {
1048
1048
  s
1049
1049
  );
1050
1050
  }
1051
- var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1051
+ var F, le, ce, Oe, Le, ue, Fe, Re, os, ys = (os = class {
1052
1052
  constructor(e = {}) {
1053
1053
  p(this, F, void 0);
1054
1054
  p(this, le, void 0);
@@ -1058,7 +1058,7 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1058
1058
  p(this, ue, void 0);
1059
1059
  p(this, Fe, void 0);
1060
1060
  p(this, Re, void 0);
1061
- h(this, F, e.queryCache || new ir()), h(this, le, e.mutationCache || new ar()), h(this, ce, e.defaultOptions || {}), h(this, Oe, /* @__PURE__ */ new Map()), h(this, Le, /* @__PURE__ */ new Map()), h(this, ue, 0);
1061
+ h(this, F, e.queryCache || new nr()), h(this, le, e.mutationCache || new or()), h(this, ce, e.defaultOptions || {}), h(this, Oe, /* @__PURE__ */ new Map()), h(this, Le, /* @__PURE__ */ new Map()), h(this, ue, 0);
1062
1062
  }
1063
1063
  mount() {
1064
1064
  at(this, ue)._++, n(this, ue) === 1 && (h(this, Fe, ut.subscribe(() => {
@@ -1092,7 +1092,7 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1092
1092
  });
1093
1093
  }
1094
1094
  setQueryData(e, t, s) {
1095
- const r = n(this, F).find({ queryKey: e }), a = r == null ? void 0 : r.state.data, l = Ys(t, a);
1095
+ const r = n(this, F).find({ queryKey: e }), a = r == null ? void 0 : r.state.data, l = zs(t, a);
1096
1096
  if (typeof l > "u")
1097
1097
  return;
1098
1098
  const o = this.defaultQueryOptions({ queryKey: e });
@@ -1131,7 +1131,7 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1131
1131
  const s = { revert: !0, ...t }, r = R.batch(
1132
1132
  () => n(this, F).findAll(e).map((a) => a.cancel(s))
1133
1133
  );
1134
- return Promise.all(r).then(Z).catch(Z);
1134
+ return Promise.all(r).then(Y).catch(Y);
1135
1135
  }
1136
1136
  invalidateQueries(e = {}, t = {}) {
1137
1137
  return R.batch(() => {
@@ -1153,10 +1153,10 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1153
1153
  }, r = R.batch(
1154
1154
  () => n(this, F).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
1155
1155
  let l = a.fetch(void 0, s);
1156
- return s.throwOnError || (l = l.catch(Z)), a.state.fetchStatus === "paused" ? Promise.resolve() : l;
1156
+ return s.throwOnError || (l = l.catch(Y)), a.state.fetchStatus === "paused" ? Promise.resolve() : l;
1157
1157
  })
1158
1158
  );
1159
- return Promise.all(r).then(Z);
1159
+ return Promise.all(r).then(Y);
1160
1160
  }
1161
1161
  fetchQuery(e) {
1162
1162
  const t = this.defaultQueryOptions(e);
@@ -1165,13 +1165,13 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
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(Y).catch(Y);
1169
1169
  }
1170
1170
  fetchInfiniteQuery(e) {
1171
- return e.behavior = or(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(Y).catch(Y);
1175
1175
  }
1176
1176
  resumePausedMutations() {
1177
1177
  return n(this, le).resumePausedMutations();
@@ -1189,7 +1189,7 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1189
1189
  h(this, ce, e);
1190
1190
  }
1191
1191
  setQueryDefaults(e, t) {
1192
- n(this, Oe).set(we(e), {
1192
+ n(this, Oe).set(be(e), {
1193
1193
  queryKey: e,
1194
1194
  defaultOptions: t
1195
1195
  });
@@ -1202,7 +1202,7 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1202
1202
  }), s;
1203
1203
  }
1204
1204
  setMutationDefaults(e, t) {
1205
- n(this, Le).set(we(e), {
1205
+ n(this, Le).set(be(e), {
1206
1206
  mutationKey: e,
1207
1207
  defaultOptions: t
1208
1208
  });
@@ -1223,7 +1223,7 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1223
1223
  ...e,
1224
1224
  _defaulted: !0
1225
1225
  };
1226
- return t.queryHash || (t.queryHash = Ft(
1226
+ return t.queryHash || (t.queryHash = Rt(
1227
1227
  t.queryKey,
1228
1228
  t
1229
1229
  )), typeof t.refetchOnReconnect > "u" && (t.refetchOnReconnect = t.networkMode !== "always"), typeof t.throwOnError > "u" && (t.throwOnError = !!t.suspense), typeof t.networkMode > "u" && t.persister && (t.networkMode = "offlineFirst"), t;
@@ -1239,10 +1239,10 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1239
1239
  clear() {
1240
1240
  n(this, F).clear(), n(this, le).clear();
1241
1241
  }
1242
- }, F = new WeakMap(), le = new WeakMap(), ce = new WeakMap(), Oe = new WeakMap(), Le = new WeakMap(), ue = new WeakMap(), Fe = new WeakMap(), Re = new WeakMap(), as), Q, N, Ye, U, ge, De, B, ze, Te, Ue, Ce, xe, de, Qe, be, Ge, Je, jt, Xe, _t, Ie, Et, Be, St, et, At, tt, Pt, st, Nt, mt, ys, os, cr = (os = class extends Ke {
1242
+ }, F = new WeakMap(), le = new WeakMap(), ce = new WeakMap(), Oe = new WeakMap(), Le = new WeakMap(), ue = new WeakMap(), Fe = new WeakMap(), Re = new WeakMap(), os), Q, k, Ye, U, ye, De, B, ze, Te, Ue, ge, Ce, de, Qe, xe, Ge, Je, jt, Xe, _t, Ie, Et, Be, St, et, At, tt, Pt, st, kt, mt, gs, ls, ur = (ls = class extends Ke {
1243
1243
  constructor(t, s) {
1244
1244
  super();
1245
- p(this, be);
1245
+ p(this, xe);
1246
1246
  p(this, Je);
1247
1247
  p(this, Xe);
1248
1248
  p(this, Ie);
@@ -1252,10 +1252,10 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1252
1252
  p(this, st);
1253
1253
  p(this, mt);
1254
1254
  p(this, Q, void 0);
1255
- p(this, N, void 0);
1255
+ p(this, k, void 0);
1256
1256
  p(this, Ye, void 0);
1257
1257
  p(this, U, void 0);
1258
- p(this, ge, void 0);
1258
+ p(this, ye, void 0);
1259
1259
  p(this, De, void 0);
1260
1260
  p(this, B, void 0);
1261
1261
  p(this, ze, void 0);
@@ -1263,8 +1263,8 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
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
1265
  p(this, Ue, void 0);
1266
+ p(this, ge, void 0);
1266
1267
  p(this, Ce, void 0);
1267
- p(this, xe, void 0);
1268
1268
  p(this, de, void 0);
1269
1269
  p(this, Qe, /* @__PURE__ */ new Set());
1270
1270
  this.options = s, h(this, Q, t), h(this, B, null), this.bindMethods(), this.setOptions(s);
@@ -1273,50 +1273,50 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1273
1273
  this.refetch = this.refetch.bind(this);
1274
1274
  }
1275
1275
  onSubscribe() {
1276
- this.listeners.size === 1 && (n(this, N).addObserver(this), qt(n(this, N), this.options) ? b(this, be, Ge).call(this) : this.updateResult(), b(this, Be, St).call(this));
1276
+ this.listeners.size === 1 && (n(this, k).addObserver(this), Wt(n(this, k), this.options) ? b(this, xe, Ge).call(this) : this.updateResult(), b(this, Be, St).call(this));
1277
1277
  }
1278
1278
  onUnsubscribe() {
1279
1279
  this.hasListeners() || this.destroy();
1280
1280
  }
1281
1281
  shouldFetchOnReconnect() {
1282
- return kt(
1283
- n(this, N),
1282
+ return Nt(
1283
+ n(this, k),
1284
1284
  this.options,
1285
1285
  this.options.refetchOnReconnect
1286
1286
  );
1287
1287
  }
1288
1288
  shouldFetchOnWindowFocus() {
1289
- return kt(
1290
- n(this, N),
1289
+ return Nt(
1290
+ n(this, k),
1291
1291
  this.options,
1292
1292
  this.options.refetchOnWindowFocus
1293
1293
  );
1294
1294
  }
1295
1295
  destroy() {
1296
- this.listeners = /* @__PURE__ */ new Set(), b(this, et, At).call(this), b(this, tt, Pt).call(this), n(this, N).removeObserver(this);
1296
+ this.listeners = /* @__PURE__ */ new Set(), b(this, et, At).call(this), b(this, tt, Pt).call(this), n(this, k).removeObserver(this);
1297
1297
  }
1298
1298
  setOptions(t, s) {
1299
- const r = this.options, a = n(this, N);
1299
+ const r = this.options, a = n(this, k);
1300
1300
  if (this.options = n(this, Q).defaultQueryOptions(t), ct(r, this.options) || n(this, Q).getQueryCache().notify({
1301
1301
  type: "observerOptionsUpdated",
1302
- query: n(this, N),
1302
+ query: n(this, k),
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), b(this, st, Nt).call(this);
1306
+ this.options.queryKey || (this.options.queryKey = r.queryKey), b(this, st, kt).call(this);
1307
1307
  const l = this.hasListeners();
1308
- l && Wt(
1309
- n(this, N),
1308
+ l && Zt(
1309
+ n(this, k),
1310
1310
  a,
1311
1311
  this.options,
1312
1312
  r
1313
- ) && b(this, be, Ge).call(this), this.updateResult(s), l && (n(this, N) !== a || this.options.enabled !== r.enabled || this.options.staleTime !== r.staleTime) && b(this, Je, jt).call(this);
1313
+ ) && b(this, xe, Ge).call(this), this.updateResult(s), l && (n(this, k) !== a || this.options.enabled !== r.enabled || this.options.staleTime !== r.staleTime) && b(this, Je, jt).call(this);
1314
1314
  const o = b(this, Xe, _t).call(this);
1315
- l && (n(this, N) !== a || this.options.enabled !== r.enabled || o !== n(this, de)) && b(this, Ie, Et).call(this, o);
1315
+ l && (n(this, k) !== a || this.options.enabled !== r.enabled || o !== n(this, de)) && b(this, Ie, Et).call(this, o);
1316
1316
  }
1317
1317
  getOptimisticResult(t) {
1318
1318
  const s = n(this, Q).getQueryCache().build(n(this, Q), t), r = this.createResult(s, t);
1319
- return dr(this, r) && (h(this, U, r), h(this, De, this.options), h(this, ge, n(this, N).state)), r;
1319
+ return hr(this, r) && (h(this, U, r), h(this, De, this.options), h(this, ye, n(this, k).state)), r;
1320
1320
  }
1321
1321
  getCurrentResult() {
1322
1322
  return n(this, U);
@@ -1332,7 +1332,7 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1332
1332
  }), s;
1333
1333
  }
1334
1334
  getCurrentQuery() {
1335
- return n(this, N);
1335
+ return n(this, k);
1336
1336
  }
1337
1337
  refetch({ ...t } = {}) {
1338
1338
  return this.fetch({
@@ -1344,17 +1344,17 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1344
1344
  return r.isFetchingOptimistic = !0, r.fetch().then(() => this.createResult(r, s));
1345
1345
  }
1346
1346
  fetch(t) {
1347
- return b(this, be, Ge).call(this, {
1347
+ return b(this, xe, Ge).call(this, {
1348
1348
  ...t,
1349
1349
  cancelRefetch: t.cancelRefetch ?? !0
1350
1350
  }).then(() => (this.updateResult(), n(this, U)));
1351
1351
  }
1352
1352
  createResult(t, s) {
1353
1353
  var $;
1354
- const r = n(this, N), a = this.options, l = n(this, U), o = n(this, ge), c = n(this, De), g = t !== r ? t.state : n(this, Ye), { state: u } = t;
1354
+ const r = n(this, k), a = this.options, l = n(this, U), o = n(this, ye), c = n(this, De), g = t !== r ? t.state : n(this, Ye), { state: u } = t;
1355
1355
  let { error: x, errorUpdatedAt: m, fetchStatus: f, status: w } = u, E = !1, y;
1356
1356
  if (s._optimisticResults) {
1357
- const T = this.hasListeners(), M = !T && qt(t, s), ee = T && Wt(t, r, s, a);
1357
+ const T = this.hasListeners(), M = !T && Wt(t, s), ee = T && Zt(t, r, s, a);
1358
1358
  (M || ee) && (f = vt(t.options.networkMode) ? "fetching" : "paused", u.dataUpdatedAt || (w = "pending")), s._optimisticResults === "isRestoring" && (f = "idle");
1359
1359
  }
1360
1360
  if (s.select && typeof u.data < "u")
@@ -1388,15 +1388,15 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1388
1388
  ), E = !0);
1389
1389
  }
1390
1390
  n(this, B) && (x = n(this, B), y = n(this, Te), m = Date.now(), w = "error");
1391
- const C = f === "fetching", S = w === "pending", _ = w === "error", k = S && C;
1391
+ const C = f === "fetching", S = w === "pending", _ = w === "error", N = S && C;
1392
1392
  return {
1393
1393
  status: w,
1394
1394
  fetchStatus: f,
1395
1395
  isPending: S,
1396
1396
  isSuccess: w === "success",
1397
1397
  isError: _,
1398
- isInitialLoading: k,
1399
- isLoading: k,
1398
+ isInitialLoading: N,
1399
+ isLoading: N,
1400
1400
  data: y,
1401
1401
  dataUpdatedAt: u.dataUpdatedAt,
1402
1402
  error: x,
@@ -1412,13 +1412,13 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1412
1412
  isPaused: f === "paused",
1413
1413
  isPlaceholderData: E,
1414
1414
  isRefetchError: _ && u.dataUpdatedAt !== 0,
1415
- isStale: Rt(t, s),
1415
+ isStale: Dt(t, s),
1416
1416
  refetch: this.refetch
1417
1417
  };
1418
1418
  }
1419
1419
  updateResult(t) {
1420
- const s = n(this, U), r = this.createResult(n(this, N), this.options);
1421
- if (h(this, ge, n(this, N).state), h(this, De, this.options), n(this, ge).data !== void 0 && h(this, Ue, n(this, N)), ct(r, s))
1420
+ const s = n(this, U), r = this.createResult(n(this, k), this.options);
1421
+ if (h(this, ye, n(this, k).state), h(this, De, this.options), n(this, ye).data !== void 0 && h(this, Ue, n(this, k)), ct(r, s))
1422
1422
  return;
1423
1423
  h(this, U, r);
1424
1424
  const a = {}, l = () => {
@@ -1435,79 +1435,79 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1435
1435
  return n(this, U)[u] !== s[u] && v.has(u);
1436
1436
  });
1437
1437
  };
1438
- (t == null ? void 0 : t.listeners) !== !1 && l() && (a.listeners = !0), b(this, mt, ys).call(this, { ...a, ...t });
1438
+ (t == null ? void 0 : t.listeners) !== !1 && l() && (a.listeners = !0), b(this, mt, gs).call(this, { ...a, ...t });
1439
1439
  }
1440
1440
  onQueryUpdate() {
1441
1441
  this.updateResult(), this.hasListeners() && b(this, Be, St).call(this);
1442
1442
  }
1443
- }, Q = new WeakMap(), N = new WeakMap(), Ye = new WeakMap(), U = new WeakMap(), ge = new WeakMap(), De = new WeakMap(), B = new WeakMap(), ze = new WeakMap(), Te = new WeakMap(), Ue = new WeakMap(), Ce = new WeakMap(), xe = new WeakMap(), de = new WeakMap(), Qe = new WeakMap(), be = new WeakSet(), Ge = function(t) {
1444
- b(this, st, Nt).call(this);
1445
- let s = n(this, N).fetch(
1443
+ }, Q = new WeakMap(), k = new WeakMap(), Ye = new WeakMap(), U = new WeakMap(), ye = new WeakMap(), De = new WeakMap(), B = new WeakMap(), ze = new WeakMap(), Te = new WeakMap(), Ue = new WeakMap(), ge = new WeakMap(), Ce = new WeakMap(), de = new WeakMap(), Qe = new WeakMap(), xe = new WeakSet(), Ge = function(t) {
1444
+ b(this, st, kt).call(this);
1445
+ let s = n(this, k).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(Y)), s;
1450
1450
  }, Je = new WeakSet(), jt = function() {
1451
1451
  if (b(this, et, At).call(this), $e || n(this, U).isStale || !xt(this.options.staleTime))
1452
1452
  return;
1453
- const s = us(
1453
+ const s = ds(
1454
1454
  n(this, U).dataUpdatedAt,
1455
1455
  this.options.staleTime
1456
1456
  ) + 1;
1457
- h(this, Ce, setTimeout(() => {
1457
+ h(this, ge, setTimeout(() => {
1458
1458
  n(this, U).isStale || this.updateResult();
1459
1459
  }, s));
1460
1460
  }, Xe = new WeakSet(), _t = function() {
1461
- return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(n(this, N)) : this.options.refetchInterval) ?? !1;
1461
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(n(this, k)) : this.options.refetchInterval) ?? !1;
1462
1462
  }, Ie = new WeakSet(), Et = function(t) {
1463
- b(this, tt, Pt).call(this), h(this, de, t), !($e || this.options.enabled === !1 || !xt(n(this, de)) || n(this, de) === 0) && h(this, xe, setInterval(() => {
1464
- (this.options.refetchIntervalInBackground || ut.isFocused()) && b(this, be, Ge).call(this);
1463
+ b(this, tt, Pt).call(this), h(this, de, t), !($e || this.options.enabled === !1 || !xt(n(this, de)) || n(this, de) === 0) && h(this, Ce, setInterval(() => {
1464
+ (this.options.refetchIntervalInBackground || ut.isFocused()) && b(this, xe, Ge).call(this);
1465
1465
  }, n(this, de)));
1466
1466
  }, Be = new WeakSet(), St = function() {
1467
1467
  b(this, Je, jt).call(this), b(this, Ie, Et).call(this, b(this, Xe, _t).call(this));
1468
1468
  }, et = new WeakSet(), At = function() {
1469
- n(this, Ce) && (clearTimeout(n(this, Ce)), h(this, Ce, void 0));
1469
+ n(this, ge) && (clearTimeout(n(this, ge)), h(this, ge, void 0));
1470
1470
  }, tt = new WeakSet(), Pt = function() {
1471
- n(this, xe) && (clearInterval(n(this, xe)), h(this, xe, void 0));
1472
- }, st = new WeakSet(), Nt = function() {
1471
+ n(this, Ce) && (clearInterval(n(this, Ce)), h(this, Ce, void 0));
1472
+ }, st = new WeakSet(), kt = function() {
1473
1473
  const t = n(this, Q).getQueryCache().build(n(this, Q), this.options);
1474
- if (t === n(this, N))
1474
+ if (t === n(this, k))
1475
1475
  return;
1476
- const s = n(this, N);
1477
- h(this, N, t), h(this, Ye, t.state), this.hasListeners() && (s == null || s.removeObserver(this), t.addObserver(this));
1478
- }, mt = new WeakSet(), ys = function(t) {
1476
+ const s = n(this, k);
1477
+ h(this, k, t), h(this, Ye, t.state), this.hasListeners() && (s == null || s.removeObserver(this), t.addObserver(this));
1478
+ }, mt = new WeakSet(), gs = function(t) {
1479
1479
  R.batch(() => {
1480
1480
  t.listeners && this.listeners.forEach((s) => {
1481
1481
  s(n(this, U));
1482
1482
  }), n(this, Q).getQueryCache().notify({
1483
- query: n(this, N),
1483
+ query: n(this, k),
1484
1484
  type: "observerResultsUpdated"
1485
1485
  });
1486
1486
  });
1487
- }, os);
1488
- function ur(e, t) {
1487
+ }, ls);
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 qt(e, t) {
1492
- return ur(e, t) || e.state.dataUpdatedAt > 0 && kt(e, t, t.refetchOnMount);
1491
+ function Wt(e, t) {
1492
+ return dr(e, t) || e.state.dataUpdatedAt > 0 && Nt(e, t, t.refetchOnMount);
1493
1493
  }
1494
- function kt(e, t, s) {
1494
+ function Nt(e, t, s) {
1495
1495
  if (t.enabled !== !1) {
1496
1496
  const r = typeof s == "function" ? s(e) : s;
1497
- return r === "always" || r !== !1 && Rt(e, t);
1497
+ return r === "always" || r !== !1 && Dt(e, t);
1498
1498
  }
1499
1499
  return !1;
1500
1500
  }
1501
- function Wt(e, t, s, r) {
1502
- return s.enabled !== !1 && (e !== t || r.enabled === !1) && (!s.suspense || e.state.status !== "error") && Rt(e, s);
1501
+ function Zt(e, t, s, r) {
1502
+ return s.enabled !== !1 && (e !== t || r.enabled === !1) && (!s.suspense || e.state.status !== "error") && Dt(e, s);
1503
1503
  }
1504
- function Rt(e, t) {
1504
+ function Dt(e, t) {
1505
1505
  return e.isStaleByTime(t.staleTime);
1506
1506
  }
1507
- function dr(e, t) {
1507
+ function hr(e, t) {
1508
1508
  return !ct(e.getCurrentResult(), t);
1509
1509
  }
1510
- var he, se, G, re, He, lt, rt, Mt, ls, hr = (ls = class extends Ke {
1510
+ var he, se, G, re, He, lt, rt, Mt, cs, fr = (cs = class extends Ke {
1511
1511
  constructor(t, s) {
1512
1512
  super();
1513
1513
  p(this, He);
@@ -1528,7 +1528,7 @@ var he, se, G, re, He, lt, rt, Mt, ls, hr = (ls = class extends Ke {
1528
1528
  type: "observerOptionsUpdated",
1529
1529
  mutation: n(this, G),
1530
1530
  observer: this
1531
- }), (r = n(this, G)) == null || r.setOptions(this.options), s != null && s.mutationKey && this.options.mutationKey && we(s.mutationKey) !== we(this.options.mutationKey) && this.reset();
1531
+ }), (r = n(this, G)) == null || r.setOptions(this.options), s != null && s.mutationKey && this.options.mutationKey && be(s.mutationKey) !== be(this.options.mutationKey) && this.reset();
1532
1532
  }
1533
1533
  onUnsubscribe() {
1534
1534
  var t;
@@ -1550,7 +1550,7 @@ var he, se, G, re, He, lt, rt, Mt, ls, hr = (ls = class extends Ke {
1550
1550
  }
1551
1551
  }, he = new WeakMap(), se = new WeakMap(), G = new WeakMap(), re = new WeakMap(), He = new WeakSet(), lt = function() {
1552
1552
  var s;
1553
- const t = ((s = n(this, G)) == null ? void 0 : s.state) ?? ms();
1553
+ const t = ((s = n(this, G)) == null ? void 0 : s.state) ?? vs();
1554
1554
  h(this, se, {
1555
1555
  ...t,
1556
1556
  isPending: t.status === "pending",
@@ -1577,23 +1577,23 @@ var he, se, G, re, He, lt, rt, Mt, ls, hr = (ls = class extends Ke {
1577
1577
  u(n(this, se));
1578
1578
  });
1579
1579
  });
1580
- }, ls), gs = d.createContext(
1580
+ }, cs), Cs = d.createContext(
1581
1581
  void 0
1582
- ), Dt = (e) => {
1583
- const t = d.useContext(gs);
1582
+ ), Tt = (e) => {
1583
+ const t = d.useContext(Cs);
1584
1584
  if (e)
1585
1585
  return e;
1586
1586
  if (!t)
1587
1587
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1588
1588
  return t;
1589
- }, fr = ({
1589
+ }, pr = ({
1590
1590
  client: e,
1591
1591
  children: t
1592
1592
  }) => (d.useEffect(() => (e.mount(), () => {
1593
1593
  e.unmount();
1594
- }), [e]), /* @__PURE__ */ d.createElement(gs.Provider, { value: e }, t)), Cs = d.createContext(!1), pr = () => d.useContext(Cs);
1595
- Cs.Provider;
1596
- function mr() {
1594
+ }), [e]), /* @__PURE__ */ d.createElement(Cs.Provider, { value: e }, t)), xs = d.createContext(!1), mr = () => d.useContext(xs);
1595
+ xs.Provider;
1596
+ function vr() {
1597
1597
  let e = !1;
1598
1598
  return {
1599
1599
  clearReset: () => {
@@ -1605,29 +1605,29 @@ function mr() {
1605
1605
  isReset: () => e
1606
1606
  };
1607
1607
  }
1608
- var vr = d.createContext(mr()), yr = () => d.useContext(vr);
1609
- function xs(e, t) {
1608
+ var yr = d.createContext(vr()), gr = () => d.useContext(yr);
1609
+ function bs(e, t) {
1610
1610
  return typeof e == "function" ? e(...t) : !!e;
1611
1611
  }
1612
- var gr = (e, t) => {
1612
+ var Cr = (e, t) => {
1613
1613
  (e.suspense || e.throwOnError) && (t.isReset() || (e.retryOnMount = !1));
1614
- }, Cr = (e) => {
1614
+ }, xr = (e) => {
1615
1615
  d.useEffect(() => {
1616
1616
  e.clearReset();
1617
1617
  }, [e]);
1618
- }, xr = ({
1618
+ }, br = ({
1619
1619
  result: e,
1620
1620
  errorResetBoundary: t,
1621
1621
  throwOnError: s,
1622
1622
  query: r
1623
- }) => e.isError && !t.isReset() && !e.isFetching && r && xs(s, [e.error, r]), br = (e) => {
1623
+ }) => e.isError && !t.isReset() && !e.isFetching && r && bs(s, [e.error, r]), wr = (e) => {
1624
1624
  e.suspense && typeof e.staleTime != "number" && (e.staleTime = 1e3);
1625
- }, wr = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, jr = (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(() => {
1626
1626
  s.clearReset();
1627
1627
  });
1628
- function _r(e, t, s) {
1629
- const r = Dt(s), a = pr(), l = yr(), o = r.defaultQueryOptions(e);
1630
- o._optimisticResults = a ? "isRestoring" : "optimistic", br(o), gr(o, l), Cr(l);
1628
+ function Er(e, t, s) {
1629
+ const r = Tt(s), a = mr(), l = gr(), o = r.defaultQueryOptions(e);
1630
+ o._optimisticResults = a ? "isRestoring" : "optimistic", wr(o), Cr(o, l), xr(l);
1631
1631
  const [c] = d.useState(
1632
1632
  () => new t(
1633
1633
  r,
@@ -1647,9 +1647,9 @@ function _r(e, t, s) {
1647
1647
  () => c.getCurrentResult()
1648
1648
  ), d.useEffect(() => {
1649
1649
  c.setOptions(o, { listeners: !1 });
1650
- }, [o, c]), wr(o, v))
1651
- throw jr(o, c, l);
1652
- if (xr({
1650
+ }, [o, c]), jr(o, v))
1651
+ throw _r(o, c, l);
1652
+ if (br({
1653
1653
  result: v,
1654
1654
  errorResetBoundary: l,
1655
1655
  throwOnError: o.throwOnError,
@@ -1658,12 +1658,12 @@ function _r(e, t, s) {
1658
1658
  throw v.error;
1659
1659
  return o.notifyOnChangeProps ? v : c.trackResult(v);
1660
1660
  }
1661
- function bs(e, t) {
1662
- return _r(e, cr, t);
1661
+ function ws(e, t) {
1662
+ return Er(e, ur, t);
1663
1663
  }
1664
- function Er(e, t) {
1665
- const s = Dt(t), [r] = d.useState(
1666
- () => new hr(
1664
+ function Sr(e, t) {
1665
+ const s = Tt(t), [r] = d.useState(
1666
+ () => new fr(
1667
1667
  s,
1668
1668
  e
1669
1669
  )
@@ -1680,17 +1680,17 @@ function Er(e, t) {
1680
1680
  () => r.getCurrentResult()
1681
1681
  ), l = d.useCallback(
1682
1682
  (o, c) => {
1683
- r.mutate(o, c).catch(Sr);
1683
+ r.mutate(o, c).catch(Ar);
1684
1684
  },
1685
1685
  [r]
1686
1686
  );
1687
- if (a.error && xs(r.options.throwOnError, [a.error]))
1687
+ if (a.error && bs(r.options.throwOnError, [a.error]))
1688
1688
  throw a.error;
1689
1689
  return { ...a, mutate: l, mutateAsync: a.mutate };
1690
1690
  }
1691
- function Sr() {
1691
+ function Ar() {
1692
1692
  }
1693
- function ws(e) {
1693
+ function js(e) {
1694
1694
  var t, s, r = "";
1695
1695
  if (typeof e == "string" || typeof e == "number")
1696
1696
  r += e;
@@ -1698,7 +1698,7 @@ function ws(e) {
1698
1698
  if (Array.isArray(e)) {
1699
1699
  var a = e.length;
1700
1700
  for (t = 0; t < a; t++)
1701
- e[t] && (s = ws(e[t])) && (r && (r += " "), r += s);
1701
+ e[t] && (s = js(e[t])) && (r && (r += " "), r += s);
1702
1702
  } else
1703
1703
  for (s in e)
1704
1704
  e[s] && (r && (r += " "), r += s);
@@ -1706,23 +1706,23 @@ function ws(e) {
1706
1706
  }
1707
1707
  function P() {
1708
1708
  for (var e, t, s = 0, r = "", a = arguments.length; s < a; s++)
1709
- (e = arguments[s]) && (t = ws(e)) && (r && (r += " "), r += t);
1709
+ (e = arguments[s]) && (t = js(e)) && (r && (r += " "), r += t);
1710
1710
  return r;
1711
1711
  }
1712
- var Ar = Object.defineProperty, Pr = Object.defineProperties, Nr = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, js = Object.prototype.hasOwnProperty, _s = Object.prototype.propertyIsEnumerable, Zt = (e, t, s) => t in e ? Ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, j = (e, t) => {
1712
+ var Pr = Object.defineProperty, kr = Object.defineProperties, Nr = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, _s = Object.prototype.hasOwnProperty, Es = Object.prototype.propertyIsEnumerable, Yt = (e, t, s) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, j = (e, t) => {
1713
1713
  for (var s in t || (t = {}))
1714
- js.call(t, s) && Zt(e, s, t[s]);
1714
+ _s.call(t, s) && Yt(e, s, t[s]);
1715
1715
  if (ht)
1716
1716
  for (var s of ht(t))
1717
- _s.call(t, s) && Zt(e, s, t[s]);
1717
+ Es.call(t, s) && Yt(e, s, t[s]);
1718
1718
  return e;
1719
- }, A = (e, t) => Pr(e, Nr(t)), O = (e, t) => {
1719
+ }, A = (e, t) => kr(e, Nr(t)), O = (e, t) => {
1720
1720
  var s = {};
1721
1721
  for (var r in e)
1722
- js.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
1722
+ _s.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
1723
1723
  if (e != null && ht)
1724
1724
  for (var r of ht(e))
1725
- t.indexOf(r) < 0 && _s.call(e, r) && (s[r] = e[r]);
1725
+ t.indexOf(r) < 0 && Es.call(e, r) && (s[r] = e[r]);
1726
1726
  return s;
1727
1727
  };
1728
1728
  function ft() {
@@ -1735,16 +1735,16 @@ function ft() {
1735
1735
  return e;
1736
1736
  }, ft.apply(this, arguments);
1737
1737
  }
1738
- function kr(e, t) {
1738
+ function Mr(e, t) {
1739
1739
  typeof e == "function" ? e(t) : e != null && (e.current = t);
1740
1740
  }
1741
- function Mr(...e) {
1741
+ function Or(...e) {
1742
1742
  return (t) => e.forEach(
1743
- (s) => kr(s, t)
1743
+ (s) => Mr(s, t)
1744
1744
  );
1745
1745
  }
1746
- var Or = /* @__PURE__ */ d.forwardRef((e, t) => {
1747
- const s = e, { children: r } = s, a = O(s, ["children"]), l = d.Children.toArray(r), o = l.find(Fr);
1746
+ var Lr = /* @__PURE__ */ d.forwardRef((e, t) => {
1747
+ const s = e, { children: r } = s, a = O(s, ["children"]), l = d.Children.toArray(r), o = l.find(Rr);
1748
1748
  if (o) {
1749
1749
  const c = o.props.children, v = l.map((g) => g === o ? d.Children.count(c) > 1 ? d.Children.only(null) : /* @__PURE__ */ d.isValidElement(c) ? c.props.children : null : g);
1750
1750
  return /* @__PURE__ */ d.createElement(Ot, ft({}, a, {
@@ -1755,19 +1755,19 @@ var Or = /* @__PURE__ */ d.forwardRef((e, t) => {
1755
1755
  ref: t
1756
1756
  }), r);
1757
1757
  });
1758
- Or.displayName = "Slot";
1758
+ Lr.displayName = "Slot";
1759
1759
  var Ot = /* @__PURE__ */ d.forwardRef((e, t) => {
1760
1760
  const s = e, { children: r } = s, a = O(s, ["children"]);
1761
- return /* @__PURE__ */ d.isValidElement(r) ? /* @__PURE__ */ d.cloneElement(r, A(j({}, Rr(a, r.props)), {
1762
- ref: t ? Mr(t, r.ref) : r.ref
1761
+ return /* @__PURE__ */ d.isValidElement(r) ? /* @__PURE__ */ d.cloneElement(r, A(j({}, Dr(a, r.props)), {
1762
+ ref: t ? Or(t, r.ref) : r.ref
1763
1763
  })) : d.Children.count(r) > 1 ? d.Children.only(null) : null;
1764
1764
  });
1765
1765
  Ot.displayName = "SlotClone";
1766
- var Lr = ({ children: e }) => /* @__PURE__ */ d.createElement(d.Fragment, null, e);
1767
- function Fr(e) {
1768
- return /* @__PURE__ */ d.isValidElement(e) && e.type === Lr;
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;
1769
1769
  }
1770
- function Rr(e, t) {
1770
+ function Dr(e, t) {
1771
1771
  const s = j({}, t);
1772
1772
  for (const r in t) {
1773
1773
  const a = e[r], l = t[r];
@@ -1780,7 +1780,7 @@ function Rr(e, t) {
1780
1780
  }
1781
1781
  return j(j({}, e), s);
1782
1782
  }
1783
- var Dr = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1783
+ var Tr = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1784
1784
  const r = `${e.charAt(0)}${t.charAt(0)}`;
1785
1785
  return /* @__PURE__ */ i.jsx(
1786
1786
  "span",
@@ -1835,7 +1835,7 @@ var Dr = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1835
1835
  );
1836
1836
  it.displayName = "Button";
1837
1837
  d.createContext(void 0);
1838
- var Tr = d.forwardRef(
1838
+ var Ur = d.forwardRef(
1839
1839
  (e, t) => {
1840
1840
  var s = e, { prefix: r, suffix: a, className: l } = s, o = O(s, ["prefix", "suffix", "className"]);
1841
1841
  return /* @__PURE__ */ i.jsxs("div", { className: "input__wrapper", children: [
@@ -1856,12 +1856,12 @@ var Tr = d.forwardRef(
1856
1856
  ] });
1857
1857
  }
1858
1858
  );
1859
- Tr.displayName = "TextField";
1859
+ Ur.displayName = "TextField";
1860
1860
  d.createContext(void 0);
1861
- var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__header__action", children: e }), Qr = (e) => {
1861
+ var Qr = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__header__action", children: e }), Hr = (e) => {
1862
1862
  var t = e, { children: s, className: r } = t, a = O(t, ["children", "className"]);
1863
1863
  return /* @__PURE__ */ i.jsx("div", A(j({ className: P("card__body", r) }, a), { children: s }));
1864
- }, Hr = (e) => /* @__PURE__ */ i.jsx(
1864
+ }, $r = (e) => /* @__PURE__ */ i.jsx(
1865
1865
  "svg",
1866
1866
  A(j({
1867
1867
  width: "24",
@@ -1881,7 +1881,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1881
1881
  }
1882
1882
  )
1883
1883
  })
1884
- ), Tt = Hr, $r = (e) => /* @__PURE__ */ i.jsx(
1884
+ ), Ut = $r, Kr = (e) => /* @__PURE__ */ i.jsx(
1885
1885
  "svg",
1886
1886
  A(j({
1887
1887
  width: "24",
@@ -1901,7 +1901,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1901
1901
  }
1902
1902
  )
1903
1903
  })
1904
- ), Kr = $r, Gr = (e) => /* @__PURE__ */ i.jsx(
1904
+ ), Gr = Kr, Vr = (e) => /* @__PURE__ */ i.jsx(
1905
1905
  "svg",
1906
1906
  A(j({
1907
1907
  width: "24",
@@ -1920,7 +1920,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1920
1920
  }
1921
1921
  )
1922
1922
  })
1923
- ), Vr = Gr, qr = (e) => /* @__PURE__ */ i.jsx(
1923
+ ), qr = Vr, Wr = (e) => /* @__PURE__ */ i.jsx(
1924
1924
  "svg",
1925
1925
  A(j({
1926
1926
  width: "24",
@@ -1939,7 +1939,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1939
1939
  }
1940
1940
  )
1941
1941
  })
1942
- ), Wr = qr, Zr = (e) => /* @__PURE__ */ i.jsx(
1942
+ ), Zr = Wr, Yr = (e) => /* @__PURE__ */ i.jsx(
1943
1943
  "svg",
1944
1944
  A(j({
1945
1945
  width: "24",
@@ -1958,7 +1958,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1958
1958
  }
1959
1959
  )
1960
1960
  })
1961
- ), Yr = Zr, zr = (e) => /* @__PURE__ */ i.jsxs(
1961
+ ), zr = Yr, Jr = (e) => /* @__PURE__ */ i.jsxs(
1962
1962
  "svg",
1963
1963
  A(j({
1964
1964
  width: "24",
@@ -1995,7 +1995,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
1995
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" }) }) })
1996
1996
  ]
1997
1997
  })
1998
- ), Jr = zr, Xr = (e) => /* @__PURE__ */ i.jsxs(
1998
+ ), Xr = Jr, Ir = (e) => /* @__PURE__ */ i.jsxs(
1999
1999
  "svg",
2000
2000
  A(j({
2001
2001
  width: "24",
@@ -2027,7 +2027,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2027
2027
  )
2028
2028
  ]
2029
2029
  })
2030
- ), Ir = Xr, Br = (e) => /* @__PURE__ */ i.jsxs(
2030
+ ), Br = Ir, ei = (e) => /* @__PURE__ */ i.jsxs(
2031
2031
  "svg",
2032
2032
  A(j({
2033
2033
  width: "24",
@@ -2079,7 +2079,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2079
2079
  )
2080
2080
  ]
2081
2081
  })
2082
- ), ei = Br, ti = (e) => {
2082
+ ), ti = ei, si = (e) => {
2083
2083
  var t = e, { className: s } = t, r = O(t, ["className"]);
2084
2084
  return /* @__PURE__ */ i.jsxs(
2085
2085
  "svg",
@@ -2108,7 +2108,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2108
2108
  ]
2109
2109
  })
2110
2110
  );
2111
- }, si = ti, ri = (e) => /* @__PURE__ */ i.jsxs(
2111
+ }, ri = si, ii = (e) => /* @__PURE__ */ i.jsxs(
2112
2112
  "svg",
2113
2113
  A(j({
2114
2114
  width: "24",
@@ -2142,7 +2142,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2142
2142
  /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_762_2934", children: /* @__PURE__ */ i.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2143
2143
  ]
2144
2144
  })
2145
- ), ii = ri, ni = (e) => {
2145
+ ), ni = ii, ai = (e) => {
2146
2146
  const t = (s) => `${s}${e.suffix ? `_${e.suffix}` : ""}`;
2147
2147
  return /* @__PURE__ */ i.jsxs(
2148
2148
  "svg",
@@ -2313,7 +2313,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2313
2313
  ]
2314
2314
  })
2315
2315
  );
2316
- }, Es = ni, ai = (e) => /* @__PURE__ */ i.jsxs(
2316
+ }, Ss = ai, oi = (e) => /* @__PURE__ */ i.jsxs(
2317
2317
  "svg",
2318
2318
  A(j({
2319
2319
  fill: "none",
@@ -2375,7 +2375,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2375
2375
  )
2376
2376
  ]
2377
2377
  })
2378
- ), oi = ai, li = (e) => /* @__PURE__ */ i.jsx(
2378
+ ), li = oi, ci = (e) => /* @__PURE__ */ i.jsx(
2379
2379
  "svg",
2380
2380
  A(j({
2381
2381
  fill: "none",
@@ -2395,7 +2395,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2395
2395
  }
2396
2396
  )
2397
2397
  })
2398
- ), ci = li, ui = (e) => /* @__PURE__ */ i.jsxs(
2398
+ ), ui = ci, di = (e) => /* @__PURE__ */ i.jsxs(
2399
2399
  "svg",
2400
2400
  A(j({
2401
2401
  width: "24",
@@ -2422,7 +2422,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2422
2422
  /* @__PURE__ */ i.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
2423
2423
  ]
2424
2424
  })
2425
- ), di = ui, hi = (e) => {
2425
+ ), hi = di, fi = (e) => {
2426
2426
  var t = e, {
2427
2427
  variant: s,
2428
2428
  icon: r,
@@ -2448,7 +2448,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2448
2448
  c
2449
2449
  ),
2450
2450
  children: /* @__PURE__ */ i.jsxs("div", { className: "card__empty-state__wrapper", children: [
2451
- /* @__PURE__ */ i.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ i.jsx(ii, {}) : r }),
2451
+ /* @__PURE__ */ i.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ i.jsx(ni, {}) : r }),
2452
2452
  /* @__PURE__ */ i.jsxs("div", { className: "card__empty-state__content", children: [
2453
2453
  /* @__PURE__ */ i.jsx("p", { className: "card__empty-state__title", children: l }),
2454
2454
  /* @__PURE__ */ i.jsx("p", { className: "card__empty-state__description", children: o })
@@ -2456,7 +2456,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2456
2456
  ] })
2457
2457
  })
2458
2458
  );
2459
- }, fi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__footer", children: e }), pi = (e) => {
2459
+ }, pi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__footer", children: e }), mi = (e) => {
2460
2460
  var t = e, {
2461
2461
  variant: s = "default",
2462
2462
  sticky: r,
@@ -2480,10 +2480,10 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2480
2480
  children: l
2481
2481
  })
2482
2482
  );
2483
- }, mi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__image", children: e }), vi = ({ 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 }), gi = ({ icon: e, children: t }) => /* @__PURE__ */ i.jsxs("div", { className: "card__header__title", children: [
2483
+ }, vi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__image", children: e }), yi = ({ children: e, className: t }) => /* @__PURE__ */ i.jsx("div", { className: P("card__body__item", t), children: e }), gi = ({ 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: [
2484
2484
  e && /* @__PURE__ */ i.jsx("span", { className: "card__header__title__icon", children: e }),
2485
2485
  t
2486
- ] }), Ss = d.forwardRef(
2486
+ ] }), As = d.forwardRef(
2487
2487
  (e, t) => {
2488
2488
  var s = e, { type: r, children: a, className: l, variant: o = "default", disabled: c = !1 } = s, v = O(s, ["type", "children", "className", "variant", "disabled"]);
2489
2489
  return d.createElement(
@@ -2501,34 +2501,34 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2501
2501
  );
2502
2502
  }
2503
2503
  );
2504
- Ss.displayName = "Card";
2505
- Object.assign(Ss, {
2506
- Header: pi,
2507
- Action: Ur,
2508
- Title: gi,
2509
- Subtitle: yi,
2510
- Body: Qr,
2511
- Image: mi,
2512
- Item: vi,
2513
- Footer: fi,
2514
- EmptyState: hi
2504
+ As.displayName = "Card";
2505
+ Object.assign(As, {
2506
+ Header: mi,
2507
+ Action: Qr,
2508
+ Title: Ci,
2509
+ Subtitle: gi,
2510
+ Body: Hr,
2511
+ Image: vi,
2512
+ Item: yi,
2513
+ Footer: pi,
2514
+ EmptyState: fi
2515
2515
  });
2516
- var Ci = (e) => {
2516
+ var xi = (e) => {
2517
2517
  var t = e, { className: s, children: r } = t, a = O(t, ["className", "children"]);
2518
2518
  return /* @__PURE__ */ i.jsx("div", A(j({ className: P("checkbox__content", s) }, a), { children: r }));
2519
- }, xi = (e) => {
2519
+ }, bi = (e) => {
2520
2520
  var t = e, { className: s, children: r } = t, a = O(t, ["className", "children"]);
2521
2521
  return /* @__PURE__ */ i.jsx("span", A(j({ className: P("checkbox__hint", s) }, a), { children: r }));
2522
- }, As = d.createContext(void 0), bi = ({ id: e, name: t, children: s }) => /* @__PURE__ */ i.jsx(As.Provider, { value: { id: e, name: t }, children: s }), wi = () => {
2523
- const e = d.useContext(As);
2522
+ }, Ps = d.createContext(void 0), wi = ({ id: e, name: t, children: s }) => /* @__PURE__ */ i.jsx(Ps.Provider, { value: { id: e, name: t }, children: s }), ji = () => {
2523
+ const e = d.useContext(Ps);
2524
2524
  if (!e)
2525
2525
  throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
2526
2526
  return e;
2527
- }, ji = (e) => {
2527
+ }, _i = (e) => {
2528
2528
  var t = e, { className: s, children: r } = t, a = O(t, ["className", "children"]);
2529
- const { id: l } = wi();
2529
+ const { id: l } = ji();
2530
2530
  return /* @__PURE__ */ i.jsx("label", A(j({ htmlFor: l, className: P("checkbox__label", s) }, a), { children: r }));
2531
- }, je = (e) => {
2531
+ }, we = (e) => {
2532
2532
  var t = e, {
2533
2533
  id: s,
2534
2534
  name: r,
@@ -2567,26 +2567,26 @@ var Ci = (e) => {
2567
2567
  value: c ? "true" : ""
2568
2568
  }, u)
2569
2569
  ),
2570
- a ? /* @__PURE__ */ i.jsx(si, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ i.jsx(Kr, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2571
- /* @__PURE__ */ i.jsx(bi, { id: s, name: r, children: g })
2570
+ a ? /* @__PURE__ */ i.jsx(ri, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ i.jsx(Gr, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2571
+ /* @__PURE__ */ i.jsx(wi, { id: s, name: r, children: g })
2572
2572
  ]
2573
2573
  }
2574
2574
  );
2575
2575
  };
2576
- je.Content = Ci;
2577
- je.Label = ji;
2578
- je.Hint = xi;
2579
- je.Error = Error;
2580
- var _i = (e) => {
2576
+ we.Content = xi;
2577
+ we.Label = _i;
2578
+ we.Hint = bi;
2579
+ we.Error = Error;
2580
+ var Ei = (e) => {
2581
2581
  var t = e, { type: s = "div", className: r, children: a } = t, l = O(t, ["type", "className", "children"]);
2582
2582
  return d.createElement(s, j({ className: P("dialog__body", r) }, l), a);
2583
- }, Lt = () => document.body.style.removeProperty("overflow"), Yt = (e) => e.preventDefault(), Ei = '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) => {
2583
+ }, Lt = () => document.body.style.removeProperty("overflow"), zt = (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])', Ai = (e) => {
2584
2584
  var t = e, { className: s, children: r, shouldAnimate: a = !0 } = t, l = O(t, ["className", "children", "shouldAnimate"]);
2585
2585
  const { ref: o, defaultOpen: c, isModal: v, onClose: g } = nt();
2586
2586
  return d.useEffect(() => {
2587
2587
  const u = o == null ? void 0 : o.current;
2588
2588
  if (u != null && u.open) {
2589
- const x = u.querySelectorAll(Ei), m = x[0], f = x[x.length - 1], w = (E) => {
2589
+ const x = u.querySelectorAll(Si), m = x[0], f = x[x.length - 1], w = (E) => {
2590
2590
  if (!(E.key === "Tab"))
2591
2591
  return;
2592
2592
  E.shiftKey ? document.activeElement === m && (f.focus(), E.preventDefault()) : document.activeElement === f && (m.focus(), E.preventDefault());
@@ -2600,10 +2600,10 @@ var _i = (e) => {
2600
2600
  if (!u)
2601
2601
  return;
2602
2602
  if (c && (u.removeAttribute("open"), u.showModal(), u.focus()), v)
2603
- return u.addEventListener("cancel", Yt), () => u.removeEventListener("cancel", Yt);
2603
+ return u.addEventListener("cancel", zt), () => u.removeEventListener("cancel", zt);
2604
2604
  const x = ({ clientX: m, clientY: f }) => {
2605
- const { top: w, right: E, bottom: y, left: C } = u.getBoundingClientRect(), S = 0 < f && 0 < m, _ = w < f && f < y, k = C < m && m < E;
2606
- S && !(_ && k) && g();
2605
+ const { top: w, right: E, bottom: y, left: C } = u.getBoundingClientRect(), S = 0 < f && 0 < m, _ = w < f && f < y, N = C < m && m < E;
2606
+ S && !(_ && N) && g();
2607
2607
  };
2608
2608
  return u.addEventListener("cancel", g), u.addEventListener("mousedown", x), () => {
2609
2609
  u.removeEventListener("cancel", g), u.removeEventListener("mousedown", x);
@@ -2620,18 +2620,18 @@ var _i = (e) => {
2620
2620
  children: r
2621
2621
  })
2622
2622
  );
2623
- }, Ps = d.createContext(void 0), Ai = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2623
+ }, ks = d.createContext(void 0), Pi = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2624
2624
  const a = d.useRef(null), l = d.useRef(t), o = d.useCallback(() => {
2625
2625
  var c;
2626
2626
  Lt(), (c = a.current) == null || c.close(), l.current && (l == null || l.current());
2627
2627
  }, [a]);
2628
- return /* @__PURE__ */ i.jsx(Ps.Provider, { value: { ref: a, defaultOpen: e, isModal: s, onClose: o }, children: r });
2628
+ return /* @__PURE__ */ i.jsx(ks.Provider, { value: { ref: a, defaultOpen: e, isModal: s, onClose: o }, children: r });
2629
2629
  }, nt = () => {
2630
- const e = d.useContext(Ps);
2630
+ const e = d.useContext(ks);
2631
2631
  if (!e)
2632
2632
  throw new Error("Dialog compound components can not be rendered outside of Dialog");
2633
2633
  return e;
2634
- }, Pi = (e) => {
2634
+ }, ki = (e) => {
2635
2635
  var t = e, { children: s } = t, r = O(t, ["children"]);
2636
2636
  const { onClose: a } = nt();
2637
2637
  return /* @__PURE__ */ i.jsx(it, A(j({ onClick: a }, r), { children: s }));
@@ -2645,7 +2645,7 @@ var _i = (e) => {
2645
2645
  ref: t,
2646
2646
  formMethod: "dialog",
2647
2647
  onClick: l,
2648
- iconLeft: /* @__PURE__ */ i.jsx(Vr, {}),
2648
+ iconLeft: /* @__PURE__ */ i.jsx(qr, {}),
2649
2649
  variant: "icon--secondary",
2650
2650
  className: P("dialog__close button--icon", r)
2651
2651
  }, a)
@@ -2655,7 +2655,7 @@ Ns.displayName = "Close";
2655
2655
  var Ni = (e) => {
2656
2656
  var t = e, { className: s, children: r } = t, a = O(t, ["className", "children"]);
2657
2657
  return /* @__PURE__ */ i.jsx("div", A(j({ className: P("dialog__footer", s) }, a), { children: r }));
2658
- }, ki = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "dialog__header", children: e }), Mi = (e) => {
2658
+ }, Mi = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "dialog__header", children: e }), Oi = (e) => {
2659
2659
  var t = e, { icon: s, children: r, className: a } = t, l = O(t, ["icon", "children", "className"]);
2660
2660
  const { ref: o } = nt(), c = d.useRef(null);
2661
2661
  return d.useEffect(() => {
@@ -2674,23 +2674,23 @@ var Ni = (e) => {
2674
2674
  ]
2675
2675
  })
2676
2676
  );
2677
- }, Oi = (e) => {
2677
+ }, Li = (e) => {
2678
2678
  var t = e, { children: s } = t, r = O(t, ["children"]);
2679
2679
  const { ref: a } = nt();
2680
2680
  return /* @__PURE__ */ i.jsx(it, A(j({ onClick: () => {
2681
2681
  var l;
2682
2682
  return (l = a == null ? void 0 : a.current) == null ? void 0 : l.showModal();
2683
2683
  } }, r), { children: s }));
2684
- }, H = ({ defaultOpen: e, isModal: t, children: s, onClose: r }) => /* @__PURE__ */ i.jsx(Ai, { defaultOpen: !!e, isModal: t, onClose: r, children: s });
2685
- H.Trigger = Oi;
2686
- H.Root = Si;
2687
- H.Title = Mi;
2688
- H.Header = ki;
2689
- H.Body = _i;
2684
+ }, H = ({ defaultOpen: e, isModal: t, children: s, onClose: r }) => /* @__PURE__ */ i.jsx(Pi, { defaultOpen: !!e, isModal: t, onClose: r, children: s });
2685
+ H.Trigger = Li;
2686
+ H.Root = Ai;
2687
+ H.Title = Oi;
2688
+ H.Header = Mi;
2689
+ H.Body = Ei;
2690
2690
  H.Footer = Ni;
2691
- H.Button = Pi;
2691
+ H.Button = ki;
2692
2692
  H.Close = Ns;
2693
- var ks = d.createContext(void 0), Li = ({
2693
+ var Ms = d.createContext(void 0), Fi = ({
2694
2694
  id: e,
2695
2695
  position: t,
2696
2696
  isOpen: s,
@@ -2702,7 +2702,7 @@ var ks = d.createContext(void 0), Li = ({
2702
2702
  contentRef: v,
2703
2703
  children: g
2704
2704
  }) => /* @__PURE__ */ i.jsx(
2705
- ks.Provider,
2705
+ Ms.Provider,
2706
2706
  {
2707
2707
  value: {
2708
2708
  id: e,
@@ -2717,12 +2717,12 @@ var ks = d.createContext(void 0), Li = ({
2717
2717
  },
2718
2718
  children: g
2719
2719
  }
2720
- ), Ms = () => {
2721
- const e = d.useContext(ks);
2720
+ ), Os = () => {
2721
+ const e = d.useContext(Ms);
2722
2722
  if (e === void 0)
2723
2723
  throw new Error("useMenu must be used within a MenuProvider");
2724
2724
  return e;
2725
- }, Fi = ({ as: e, children: t }) => {
2725
+ }, Ri = ({ as: e, children: t }) => {
2726
2726
  const {
2727
2727
  id: s,
2728
2728
  position: r,
@@ -2733,13 +2733,13 @@ var ks = d.createContext(void 0), Li = ({
2733
2733
  clearActiveItemIndex: v,
2734
2734
  triggerRef: g,
2735
2735
  contentRef: u
2736
- } = Ms(), x = (m) => {
2736
+ } = Os(), x = (m) => {
2737
2737
  var f;
2738
2738
  if (!a)
2739
2739
  return;
2740
2740
  if (m.key === "Escape")
2741
2741
  return v(), l(!1), (f = g.current) == null ? void 0 : f.focus();
2742
- const w = m.shiftKey, E = Ls(u.current).length - 1;
2742
+ const w = m.shiftKey, E = Fs(u.current).length - 1;
2743
2743
  switch (m.key) {
2744
2744
  case "Tab": {
2745
2745
  if (w && o !== 0)
@@ -2788,11 +2788,11 @@ var ks = d.createContext(void 0), Li = ({
2788
2788
  }
2789
2789
  )
2790
2790
  );
2791
- }, Ri = (e) => {
2791
+ }, Di = (e) => {
2792
2792
  var t = e, { children: s, className: r } = t, a = O(t, ["children", "className"]);
2793
2793
  return /* @__PURE__ */ i.jsx("li", A(j({}, a), { className: P("menu__list-item", r), children: s }));
2794
- }, Os = ({ children: e, className: t }) => {
2795
- const { id: s, isOpen: r, setIsOpen: a, clearActiveItemIndex: l, setActiveItemIndex: o, triggerRef: c } = Ms(), v = () => {
2794
+ }, Ls = ({ children: e, className: t }) => {
2795
+ const { id: s, isOpen: r, setIsOpen: a, clearActiveItemIndex: l, setActiveItemIndex: o, triggerRef: c } = Os(), v = () => {
2796
2796
  l(), a((u) => !u), r || o(0);
2797
2797
  }, g = (u) => {
2798
2798
  if (r) {
@@ -2811,19 +2811,19 @@ var ks = d.createContext(void 0), Li = ({
2811
2811
  "aria-controls": `${s}-content`
2812
2812
  });
2813
2813
  };
2814
- Os.displayName = "Trigger";
2815
- var Ls = (e) => e ? e.tagName === "UL" ? e.children : Array.from(e.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], Y = (e) => {
2816
- var t = e, { type: s, id: r, position: a = "right", children: l, className: o } = t, c = O(t, ["type", "id", "position", "children", "className"]);
2814
+ Ls.displayName = "Trigger";
2815
+ var Fs = (e) => e ? e.tagName === "UL" ? e.children : Array.from(e.getElementsByTagName("ul")).reduce((s, r) => [...s, ...Array.from(r.getElementsByTagName("li"))], []) : [], V = (e) => {
2816
+ var t = e, { type: s, id: r, position: a = "bottom-end", children: l, className: o } = t, c = O(t, ["type", "id", "position", "children", "className"]);
2817
2817
  const v = d.useRef(null), g = d.useRef(null), u = d.useRef(null), [x, m] = d.useState(!1), [f, w] = d.useState(), [E, y] = d.useState(f);
2818
- f !== E && f !== void 0 && u.current && (Ls(u.current)[f].firstChild.focus(), y(f));
2818
+ f !== E && f !== void 0 && u.current && (Fs(u.current)[f].firstChild.focus(), y(f));
2819
2819
  const C = () => {
2820
2820
  w(void 0), y(void 0);
2821
2821
  }, S = (_) => {
2822
- var k;
2823
- ((k = v.current) == null ? void 0 : k.contains(_.relatedTarget)) || (C(), m(!1));
2822
+ var N;
2823
+ ((N = v.current) == null ? void 0 : N.contains(_.relatedTarget)) || (C(), m(!1));
2824
2824
  };
2825
2825
  return /* @__PURE__ */ i.jsx(
2826
- Li,
2826
+ Fi,
2827
2827
  {
2828
2828
  id: r,
2829
2829
  position: a,
@@ -2847,68 +2847,70 @@ var Ls = (e) => e ? e.tagName === "UL" ? e.children : Array.from(e.getElementsBy
2847
2847
  }
2848
2848
  );
2849
2849
  };
2850
- Y.Trigger = Os;
2851
- Y.Content = Fi;
2852
- Y.Item = Ri;
2850
+ V.Trigger = Ls;
2851
+ V.Content = Ri;
2852
+ V.Item = Di;
2853
2853
  d.createContext(void 0);
2854
- var Di = (/* @__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");
2855
- [...new Set(Di.values())].map((e) => ({
2854
+ 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");
2855
+ [...new Set(Ti.values())].map((e) => ({
2856
2856
  label: `+${e}`,
2857
2857
  value: e
2858
2858
  }));
2859
2859
  d.createContext(void 0);
2860
2860
  d.createContext(void 0);
2861
2861
  var pt = /* @__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))(pt || {});
2862
- const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2862
+ const Ui = "/icons/bouMenuIcons.svg", Qi = ({
2863
2863
  bouIconId: e,
2864
2864
  ...t
2865
- }) => /* @__PURE__ */ i.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i.jsx("use", { href: `${Ti}#${pt[e]}` }) }), fe = ({
2866
- className: e,
2867
- label: t,
2868
- mobileUrl: s,
2869
- desktopUrl: r,
2870
- icon: a
2871
- }) => {
2872
- const l = Ks(), o = () => typeof a == "string" && a in pt ? /* @__PURE__ */ i.jsx(Ui, { bouIconId: pt[a] }) : a;
2873
- return /* @__PURE__ */ i.jsxs(Y.Item, { className: e, children: [
2874
- (!l || l && !r) && /* @__PURE__ */ i.jsxs("a", { href: s, referrerPolicy: "no-referrer-when-downgrade", children: [
2875
- o(),
2876
- t
2865
+ }) => /* @__PURE__ */ i.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i.jsx("use", { href: `${Ui}#${pt[e]}` }) }), Ft = (e) => typeof e.icon == "string" && e.icon in pt ? /* @__PURE__ */ i.jsx(Qi, { bouIconId: pt[e.icon] }) : e.icon, Hi = ({
2866
+ label: e,
2867
+ className: t,
2868
+ onClick: s,
2869
+ icon: r
2870
+ }) => /* @__PURE__ */ i.jsx(V.Item, { className: t, children: /* @__PURE__ */ i.jsxs("button", { onClick: s, children: [
2871
+ /* @__PURE__ */ i.jsx(Ft, { icon: r }),
2872
+ e
2873
+ ] }) }), _e = (e) => {
2874
+ const t = Gs(), { className: s, label: r, mobileUrl: a, desktopUrl: l, icon: o } = e;
2875
+ return /* @__PURE__ */ i.jsxs(V.Item, { className: s, children: [
2876
+ (!t || t && !l) && /* @__PURE__ */ i.jsxs("a", { href: a, referrerPolicy: "no-referrer-when-downgrade", children: [
2877
+ /* @__PURE__ */ i.jsx(Ft, { icon: o }),
2878
+ r
2877
2879
  ] }),
2878
- !!r && /* @__PURE__ */ i.jsxs("a", { href: r, referrerPolicy: "no-referrer-when-downgrade", children: [
2879
- o(),
2880
- t
2880
+ !!l && /* @__PURE__ */ i.jsxs("a", { href: l, referrerPolicy: "no-referrer-when-downgrade", children: [
2881
+ /* @__PURE__ */ i.jsx(Ft, { icon: o }),
2882
+ r
2881
2883
  ] })
2882
2884
  ] });
2883
- }, Fs = d.createContext(void 0), Qi = ({ position: e, bouMenuItems: t, children: s }) => /* @__PURE__ */ i.jsx(Fs.Provider, { value: { position: e, bouMenuItems: t }, children: s }), Rs = () => {
2884
- const e = d.useContext(Fs);
2885
+ }, Rs = d.createContext(void 0), $i = ({ position: e, bouMenuItems: t, children: s }) => /* @__PURE__ */ i.jsx(Rs.Provider, { value: { position: e, bouMenuItems: t }, children: s }), Ds = () => {
2886
+ const e = d.useContext(Rs);
2885
2887
  if (!e)
2886
2888
  throw new Error("Authentication context can not be rendered outside of Authentication");
2887
2889
  return e;
2888
- }, Ds = d.createContext(void 0), Hi = ({ apiUrl: e, redirectUrl: t, children: s }) => /* @__PURE__ */ i.jsx(Ds.Provider, { value: { apiUrl: e, redirectUrl: t }, children: s }), Ut = () => {
2889
- const e = d.useContext(Ds);
2890
+ }, Ts = d.createContext(void 0), Ki = ({ apiUrl: e, redirectUrl: t, children: s }) => /* @__PURE__ */ i.jsx(Ts.Provider, { value: { apiUrl: e, redirectUrl: t }, children: s }), Qt = () => {
2891
+ const e = d.useContext(Ts);
2890
2892
  if (!e)
2891
2893
  throw new Error("Api context can not be rendered outside of Api");
2892
2894
  return e;
2893
- }, Ts = ({ apiUrl: e, redirectUrl: t, trackingInfo: s }) => {
2895
+ }, Us = ({ apiUrl: e, redirectUrl: t, trackingInfo: s }) => {
2894
2896
  const r = new URLSearchParams({ redirectUrl: t });
2895
2897
  s && r.append("trackingInfo", s);
2896
2898
  const a = `${e}/login?${r.toString()}`, l = `${e}/logout?${r.toString()}`;
2897
2899
  return { loginUrl: a, logoutUrl: l };
2898
2900
  }, yt = () => {
2899
- const { apiUrl: e, redirectUrl: t } = Ut(), s = Gs();
2900
- return Ts({ apiUrl: e, redirectUrl: t, trackingInfo: s });
2901
- }, $i = () => {
2902
- const { apiUrl: e } = Ut();
2901
+ const { apiUrl: e, redirectUrl: t } = Qt(), s = Vs();
2902
+ return Us({ apiUrl: e, redirectUrl: t, trackingInfo: s });
2903
+ }, Gi = () => {
2904
+ const { apiUrl: e } = Qt();
2903
2905
  return `${`${e}/xtra`}/authentication/v1/user/profile`;
2904
- }, zt = (e) => e ? `+${e.countryCode} ${e.number}` : "", Jt = (e, t) => t == null ? void 0 : t.find((s) => s.type === e), Xt = ({ apiUrl: e, redirectUrl: t }) => {
2905
- const { loginUrl: s } = Ts({ apiUrl: e, redirectUrl: t });
2906
+ }, Jt = (e) => e ? `+${e.countryCode} ${e.number}` : "", Xt = (e, t) => t == null ? void 0 : t.find((s) => s.type === e), It = ({ apiUrl: e, redirectUrl: t }) => {
2907
+ const { loginUrl: s } = Us({ apiUrl: e, redirectUrl: t });
2906
2908
  window.location.replace(s);
2907
- }, It = (e) => {
2909
+ }, Bt = (e) => {
2908
2910
  var l;
2909
2911
  if (!e)
2910
- return { user: { state: () => "NotAuthenticated" }, tryToLogon: Xt };
2911
- const t = new Date(e.dateOfBirth), s = Jt(Qt.Mobile, e.phone), r = Jt(Qt.Fixed, e.phone), a = zt(s) ?? zt(r) ?? "";
2912
+ return { user: { state: () => "NotAuthenticated" }, tryToLogon: It };
2913
+ const t = new Date(e.dateOfBirth), s = Xt(Ht.Mobile, e.phone), r = Xt(Ht.Fixed, e.phone), a = Jt(s) ?? Jt(r) ?? "";
2912
2914
  return {
2913
2915
  user: {
2914
2916
  ...(l = window.XTRA) == null ? void 0 : l.user,
@@ -2947,12 +2949,12 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2947
2949
  cbh: () => e.customerIdentifier,
2948
2950
  state: () => "Authenticated"
2949
2951
  },
2950
- tryToLogon: Xt
2952
+ tryToLogon: It
2951
2953
  };
2952
- }, Us = ["profile"], Qs = () => {
2953
- const { i18n: e } = _e(), t = $i(), s = sessionStorage.getItem("profile"), r = !!s;
2954
- return bs({
2955
- queryKey: Us,
2954
+ }, Qs = ["profile"], Hs = () => {
2955
+ const { i18n: e } = je(), t = Gi(), s = sessionStorage.getItem("profile"), r = !!s;
2956
+ return ws({
2957
+ queryKey: Qs,
2956
2958
  queryFn: async () => {
2957
2959
  const l = await fetch(t, {
2958
2960
  credentials: "include",
@@ -2961,7 +2963,7 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2961
2963
  });
2962
2964
  if (!l.ok) {
2963
2965
  if (l.status === 401)
2964
- return window.XTRA = { ...window.XTRA, ...It() }, window.postMessage(
2966
+ return window.XTRA = { ...window.XTRA, ...Bt() }, window.postMessage(
2965
2967
  { source: "xtra-authentication", isAuthenticated: !1 },
2966
2968
  new URL(window.location.href).origin
2967
2969
  ), sessionStorage.removeItem("profile"), { authenticationStatus: "NotAuthenticated" };
@@ -2973,7 +2975,7 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2973
2975
  return sessionStorage.setItem("profile", JSON.stringify({ firstName: c, lastName: v })), window.postMessage(
2974
2976
  { source: "xtra-authentication", isAuthenticated: !0 },
2975
2977
  new URL(window.location.href).origin
2976
- ), window.XTRA = { ...window.XTRA, ...It(o) }, {
2978
+ ), window.XTRA = { ...window.XTRA, ...Bt(o) }, {
2977
2979
  authenticationStatus: "Authenticated",
2978
2980
  profile: { firstName: o.firstName, lastName: o.lastName }
2979
2981
  };
@@ -2985,11 +2987,13 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2985
2987
  placeholderData: { authenticationStatus: "Pending" },
2986
2988
  refetchOnWindowFocus: !1
2987
2989
  });
2988
- }, Ki = () => {
2989
- const { t: e } = _e(), t = cs(), { position: s, bouMenuItems: r } = Rs(), { logoutUrl: a } = yt(), o = Dt().getQueryData(Us), c = (o == null ? void 0 : o.profile.firstName) ?? "", v = (o == null ? void 0 : o.profile.lastName) ?? "";
2990
- return /* @__PURE__ */ i.jsxs(Y, { type: "nav", id: "xtra-menu", position: s, children: [
2990
+ }, Vi = () => {
2991
+ const { t: e } = je(), t = us(), { position: s, bouMenuItems: r } = Ds(), { logoutUrl: a } = yt(), o = Tt().getQueryData(Qs), c = (o == null ? void 0 : o.profile.firstName) ?? "", v = (o == null ? void 0 : o.profile.lastName) ?? "", g = () => {
2992
+ sessionStorage.removeItem("profile"), window.location.href = a;
2993
+ };
2994
+ return /* @__PURE__ */ i.jsxs(V, { type: "nav", id: "xtra-menu", position: s, children: [
2991
2995
  /* @__PURE__ */ i.jsx(
2992
- Y.Trigger,
2996
+ V.Trigger,
2993
2997
  {
2994
2998
  className: P(
2995
2999
  "button",
@@ -2998,76 +3002,76 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2998
3002
  "button--authentication--authenticated"
2999
3003
  ),
3000
3004
  children: /* @__PURE__ */ i.jsxs("button", { children: [
3001
- /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Dr, { variant: "small", firstName: c, lastName: v }) }),
3005
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Tr, { variant: "small", firstName: c, lastName: v }) }),
3002
3006
  /* @__PURE__ */ i.jsx("span", { className: "button__label", children: c }),
3003
- /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Tt, {}) })
3007
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Ut, {}) })
3004
3008
  ] })
3005
3009
  }
3006
3010
  ),
3007
- /* @__PURE__ */ i.jsxs(Y.Content, { as: "div", children: [
3008
- !!r && r.length > 0 && /* @__PURE__ */ i.jsx("ul", { className: "bou-menu__list", children: r.map(({ label: g, icon: u, url: x }, m) => /* @__PURE__ */ i.jsx(
3009
- fe,
3011
+ /* @__PURE__ */ i.jsxs(V.Content, { as: "div", children: [
3012
+ !!r && r.length > 0 && /* @__PURE__ */ i.jsx("ul", { className: "bou-menu__list", children: r.map(({ label: u, icon: x, url: m }, f) => /* @__PURE__ */ i.jsx(
3013
+ _e,
3010
3014
  {
3011
3015
  className: "bou-menu-item",
3012
- mobileUrl: x,
3013
- icon: u,
3014
- label: g
3016
+ mobileUrl: m,
3017
+ icon: x,
3018
+ label: u
3015
3019
  },
3016
- m
3020
+ f
3017
3021
  )) }),
3018
3022
  /* @__PURE__ */ i.jsxs("ul", { children: [
3019
3023
  /* @__PURE__ */ i.jsx(
3020
- fe,
3024
+ _e,
3021
3025
  {
3022
3026
  className: "manage-profile",
3023
3027
  mobileUrl: `${t}/manage-profile`,
3024
3028
  desktopUrl: `${t}/manage-profile/personal-data`,
3025
- icon: /* @__PURE__ */ i.jsx(Ir, {}),
3029
+ icon: /* @__PURE__ */ i.jsx(Br, {}),
3026
3030
  label: e("manageProfile")
3027
3031
  }
3028
3032
  ),
3029
3033
  /* @__PURE__ */ i.jsx(
3030
- fe,
3034
+ _e,
3031
3035
  {
3032
3036
  className: "payment",
3033
3037
  mobileUrl: `${t}/payment`,
3034
- icon: /* @__PURE__ */ i.jsx(ci, {}),
3038
+ icon: /* @__PURE__ */ i.jsx(ui, {}),
3035
3039
  label: e("payment")
3036
3040
  }
3037
3041
  ),
3038
3042
  /* @__PURE__ */ i.jsx(
3039
- fe,
3043
+ _e,
3040
3044
  {
3041
3045
  className: "gift-cards",
3042
3046
  mobileUrl: `${t}/gift-cards`,
3043
- icon: /* @__PURE__ */ i.jsx(oi, {}),
3047
+ icon: /* @__PURE__ */ i.jsx(li, {}),
3044
3048
  label: e("giftCards")
3045
3049
  }
3046
3050
  ),
3047
3051
  /* @__PURE__ */ i.jsx(
3048
- fe,
3052
+ _e,
3049
3053
  {
3050
3054
  mobileUrl: `${t}/identifiers`,
3051
- icon: /* @__PURE__ */ i.jsx(di, {}),
3055
+ icon: /* @__PURE__ */ i.jsx(hi, {}),
3052
3056
  label: e("qrCode")
3053
3057
  }
3054
3058
  ),
3055
3059
  /* @__PURE__ */ i.jsx(
3056
- fe,
3060
+ _e,
3057
3061
  {
3058
3062
  className: "manage-privacy",
3059
3063
  mobileUrl: `${t}/manage-privacy`,
3060
3064
  desktopUrl: `${t}/manage-privacy/permissions`,
3061
- icon: /* @__PURE__ */ i.jsx(Jr, {}),
3065
+ icon: /* @__PURE__ */ i.jsx(Xr, {}),
3062
3066
  label: e("privacy")
3063
3067
  }
3064
3068
  ),
3065
- /* @__PURE__ */ i.jsx(fe, { mobileUrl: a, icon: /* @__PURE__ */ i.jsx(Yr, {}), label: e("logout") })
3069
+ /* @__PURE__ */ i.jsx(Hi, { onClick: g, icon: /* @__PURE__ */ i.jsx(zr, {}), label: e("logout") })
3066
3070
  ] })
3067
3071
  ] })
3068
3072
  ] });
3069
- }, Gi = () => {
3070
- const { t: e } = _e();
3073
+ }, qi = () => {
3074
+ const { t: e } = je();
3071
3075
  return /* @__PURE__ */ i.jsxs("button", { className: P("button", "button--neutral", "button--authentication"), children: [
3072
3076
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx("i", { className: "spinner" }) }),
3073
3077
  /* @__PURE__ */ i.jsxs("span", { className: "button__label", children: [
@@ -3075,8 +3079,8 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
3075
3079
  "..."
3076
3080
  ] })
3077
3081
  ] });
3078
- }, Vi = ({ className: e }) => {
3079
- const { t } = _e(), { loginUrl: s } = yt();
3082
+ }, Wi = ({ className: e }) => {
3083
+ const { t } = je(), { loginUrl: s } = yt();
3080
3084
  return /* @__PURE__ */ i.jsxs(
3081
3085
  "a",
3082
3086
  {
@@ -3089,17 +3093,17 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
3089
3093
  e
3090
3094
  ),
3091
3095
  children: [
3092
- /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Es, { width: 24, height: 24, suffix: "desktop" }) }),
3096
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Ss, { width: 24, height: 24, suffix: "desktop" }) }),
3093
3097
  /* @__PURE__ */ i.jsx("span", { className: "button__label", children: t("login") }),
3094
- /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Tt, {}) })
3098
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Ut, {}) })
3095
3099
  ]
3096
3100
  }
3097
3101
  );
3098
3102
  };
3099
- const qi = () => {
3100
- const { t: e } = _e(), { loginUrl: t } = yt(), s = cs(), { position: r } = Rs();
3103
+ const Zi = () => {
3104
+ const { t: e } = je(), { loginUrl: t } = yt(), s = us(), { position: r } = Ds();
3101
3105
  return /* @__PURE__ */ i.jsxs(
3102
- Y,
3106
+ V,
3103
3107
  {
3104
3108
  type: "nav",
3105
3109
  id: "xtra-menu",
@@ -3107,36 +3111,36 @@ const qi = () => {
3107
3111
  className: "menu--unauthenticated",
3108
3112
  "aria-label": e("xtraMenuAriaLabel"),
3109
3113
  children: [
3110
- /* @__PURE__ */ i.jsx(Y.Trigger, { className: P("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ i.jsxs("button", { children: [
3111
- /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Es, { width: 24, height: 24, suffix: "mobile" }) }),
3112
- /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Tt, {}) })
3114
+ /* @__PURE__ */ i.jsx(V.Trigger, { className: P("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ i.jsxs("button", { children: [
3115
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Ss, { width: 24, height: 24, suffix: "mobile" }) }),
3116
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Ut, {}) })
3113
3117
  ] }) }),
3114
- /* @__PURE__ */ i.jsxs(Y.Content, { children: [
3115
- /* @__PURE__ */ i.jsx(Y.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: t, className: "button button--with-icon", children: [
3116
- /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Wr, {}) }),
3118
+ /* @__PURE__ */ i.jsxs(V.Content, { children: [
3119
+ /* @__PURE__ */ i.jsx(V.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: t, className: "button button--with-icon", children: [
3120
+ /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Zr, {}) }),
3117
3121
  /* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("login") })
3118
3122
  ] }) }),
3119
- /* @__PURE__ */ i.jsx(Y.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
3120
- /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(ei, {}) }),
3123
+ /* @__PURE__ */ i.jsx(V.Item, { children: /* @__PURE__ */ i.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
3124
+ /* @__PURE__ */ i.jsx("span", { className: "button__icon", children: /* @__PURE__ */ i.jsx(ti, {}) }),
3121
3125
  /* @__PURE__ */ i.jsx("span", { className: "button__label", children: e("register") })
3122
3126
  ] }) })
3123
3127
  ] })
3124
3128
  ]
3125
3129
  }
3126
3130
  );
3127
- }, Wi = () => {
3131
+ }, Yi = () => {
3128
3132
  var t, s;
3129
- const e = Qs();
3130
- return ((t = e.data) == null ? void 0 : t.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ i.jsx(Ki, {}) : ((s = e.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || e.isError ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3131
- /* @__PURE__ */ i.jsx(Vi, {}),
3132
- /* @__PURE__ */ i.jsx(qi, {})
3133
- ] }) : /* @__PURE__ */ i.jsx(Gi, {});
3134
- }, Hs = () => {
3135
- const { apiUrl: e } = Ut();
3133
+ const e = Hs();
3134
+ return ((t = e.data) == null ? void 0 : t.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ i.jsx(Vi, {}) : ((s = e.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || e.isError ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3135
+ /* @__PURE__ */ i.jsx(Wi, {}),
3136
+ /* @__PURE__ */ i.jsx(Zi, {})
3137
+ ] }) : /* @__PURE__ */ i.jsx(qi, {});
3138
+ }, $s = () => {
3139
+ const { apiUrl: e } = Qt();
3136
3140
  return `${`${e}/xtra`}/authentication/v1/gdpr`;
3137
- }, Zi = () => {
3138
- const e = Hs(), t = new vs();
3139
- return Er({
3141
+ }, zi = () => {
3142
+ const e = $s(), t = new ys();
3143
+ return Sr({
3140
3144
  mutationFn: async (r) => {
3141
3145
  const a = await fetch(`${e}/tc`, {
3142
3146
  body: JSON.stringify({ acceptedTC: r }),
@@ -3152,10 +3156,10 @@ const qi = () => {
3152
3156
  await t.invalidateQueries({ queryKey: ["gdpr"] });
3153
3157
  }
3154
3158
  });
3155
- }, Yi = () => {
3159
+ }, Ji = () => {
3156
3160
  var l;
3157
- const { i18n: e } = _e(), t = Hs(), r = ((l = Qs().data) == null ? void 0 : l.authenticationStatus) === "Authenticated";
3158
- return bs({
3161
+ const { i18n: e } = je(), t = $s(), r = ((l = Hs().data) == null ? void 0 : l.authenticationStatus) === "Authenticated";
3162
+ return ws({
3159
3163
  queryKey: ["gdpr"],
3160
3164
  queryFn: async () => {
3161
3165
  const o = await fetch(`${t}/tc/check`, {
@@ -3169,11 +3173,11 @@ const qi = () => {
3169
3173
  },
3170
3174
  enabled: r
3171
3175
  });
3172
- }, zi = () => {
3176
+ }, Xi = () => {
3173
3177
  var y;
3174
- const { t: e } = _e();
3175
- Vs({ element: "xtra-authentication" });
3176
- const { logoutUrl: t } = yt(), s = d.useRef(null), [r, a] = d.useState(0), [l, o] = d.useState({}), { mutate: c, isError: v } = Zi(), { AccessibleFormMessage: g, formRef: u } = qs({ submitCount: r, errors: l }), x = Yi(), m = !!((y = x.data) != null && y.length), f = e("termsAndConditions.error.required"), w = () => {
3178
+ const { t: e } = je();
3179
+ qs({ element: "xtra-authentication" });
3180
+ const { logoutUrl: t } = yt(), s = d.useRef(null), [r, a] = d.useState(0), [l, o] = d.useState({}), { mutate: c, isError: v } = zi(), { AccessibleFormMessage: g, formRef: u } = Ws({ submitCount: r, errors: l }), x = Ji(), m = !!((y = x.data) != null && y.length), f = e("termsAndConditions.error.required"), w = () => {
3177
3181
  var C;
3178
3182
  (C = s == null ? void 0 : s.current) == null || C.click(), document.body.style.removeProperty("overflow");
3179
3183
  };
@@ -3194,22 +3198,22 @@ const qi = () => {
3194
3198
  return m ? /* @__PURE__ */ i.jsxs(H, { defaultOpen: m, isModal: !0, children: [
3195
3199
  g,
3196
3200
  /* @__PURE__ */ i.jsxs(H.Root, { children: [
3197
- /* @__PURE__ */ i.jsx(H.Header, { children: /* @__PURE__ */ i.jsx(H.Title, { icon: /* @__PURE__ */ i.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ i.jsx(Bi, { children: e("termsAndConditions.title") }) }) }),
3198
- /* @__PURE__ */ i.jsx(H.Body, { children: /* @__PURE__ */ i.jsxs($s, { ref: u, id: "tc-form", onSubmit: E, children: [
3199
- /* @__PURE__ */ i.jsxs(Xi, { children: [
3201
+ /* @__PURE__ */ i.jsx(H.Header, { children: /* @__PURE__ */ i.jsx(H.Title, { icon: /* @__PURE__ */ i.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ i.jsx(tn, { children: e("termsAndConditions.title") }) }) }),
3202
+ /* @__PURE__ */ i.jsx(H.Body, { children: /* @__PURE__ */ i.jsxs(Ks, { ref: u, id: "tc-form", onSubmit: E, children: [
3203
+ /* @__PURE__ */ i.jsxs(Bi, { children: [
3200
3204
  e("termsAndConditions.description"),
3201
- l.acceptedTC && /* @__PURE__ */ i.jsx(en, { children: f })
3205
+ l.acceptedTC && /* @__PURE__ */ i.jsx(sn, { children: f })
3202
3206
  ] }),
3203
3207
  x.data.map(({ tcCode: C, title: S, URL: _ }) => /* @__PURE__ */ i.jsx(
3204
- je,
3208
+ we,
3205
3209
  {
3206
3210
  id: C,
3207
3211
  value: C,
3208
3212
  name: "acceptedTC",
3209
3213
  variant: "primary",
3210
- children: /* @__PURE__ */ i.jsxs(je.Content, { children: [
3211
- /* @__PURE__ */ i.jsx(Ji, { children: S }),
3212
- /* @__PURE__ */ i.jsx(Ii, { href: _, children: e("termsAndConditions.action", { title: S }) })
3214
+ children: /* @__PURE__ */ i.jsxs(we.Content, { children: [
3215
+ /* @__PURE__ */ i.jsx(Ii, { children: S }),
3216
+ /* @__PURE__ */ i.jsx(en, { href: _, children: e("termsAndConditions.action", { title: S }) })
3213
3217
  ] })
3214
3218
  },
3215
3219
  C
@@ -3228,15 +3232,15 @@ const qi = () => {
3228
3232
  ] })
3229
3233
  ] })
3230
3234
  ] }) : /* @__PURE__ */ i.jsx(i.Fragment, {});
3231
- }, Ji = ({
3235
+ }, Ii = ({
3232
3236
  children: e,
3233
3237
  ...t
3234
- }) => /* @__PURE__ */ i.jsx(je.Label, { className: "form--tc__label", ...t, children: e }), $s = d.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ i.jsx("form", { className: "form--tc", ref: s, ...t, children: e }));
3235
- $s.displayName = "TermsAndConditionsForm";
3236
- const Xi = ({
3238
+ }) => /* @__PURE__ */ i.jsx(we.Label, { className: "form--tc__label", ...t, children: e }), Ks = d.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ i.jsx("form", { className: "form--tc", ref: s, ...t, children: e }));
3239
+ Ks.displayName = "TermsAndConditionsForm";
3240
+ const Bi = ({
3237
3241
  children: e,
3238
3242
  ...t
3239
- }) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...t, children: e }), Ii = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx(
3243
+ }) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...t, children: e }), en = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx(
3240
3244
  "a",
3241
3245
  {
3242
3246
  className: "form--tc__link",
@@ -3247,10 +3251,10 @@ const Xi = ({
3247
3251
  ...t,
3248
3252
  children: e
3249
3253
  }
3250
- ), Bi = ({ children: e }) => /* @__PURE__ */ i.jsx("h1", { className: "form--tc__title", children: e }), en = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx("span", { className: "form--tc__error", role: "alert", ...t, children: e }), tn = new vs(), nn = ({ environment: e, redirectUrl: t, apiUrl: s, position: r, commerceId: a, bouMenuItems: l }) => /* @__PURE__ */ i.jsx(Ws, { environment: e, children: /* @__PURE__ */ i.jsx(Zs, { commerceId: a, children: /* @__PURE__ */ i.jsx(Hi, { apiUrl: s, redirectUrl: t, children: /* @__PURE__ */ i.jsxs(fr, { client: tn, children: [
3251
- /* @__PURE__ */ i.jsx(Qi, { position: r, bouMenuItems: l, children: /* @__PURE__ */ i.jsx(Wi, {}) }),
3252
- /* @__PURE__ */ i.jsx(zi, {})
3254
+ ), tn = ({ children: e }) => /* @__PURE__ */ i.jsx("h1", { className: "form--tc__title", children: e }), sn = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx("span", { className: "form--tc__error", role: "alert", ...t, children: e }), rn = new ys(), on = ({ environment: e, redirectUrl: t, apiUrl: s, position: r, commerceId: a, bouMenuItems: l }) => /* @__PURE__ */ i.jsx(Zs, { environment: e, children: /* @__PURE__ */ i.jsx(Ys, { commerceId: a, children: /* @__PURE__ */ i.jsx(Ki, { apiUrl: s, redirectUrl: t, children: /* @__PURE__ */ i.jsxs(pr, { client: rn, children: [
3255
+ /* @__PURE__ */ i.jsx($i, { position: r, bouMenuItems: l, children: /* @__PURE__ */ i.jsx(Yi, {}) }),
3256
+ /* @__PURE__ */ i.jsx(Xi, {})
3253
3257
  ] }) }) }) });
3254
3258
  export {
3255
- nn as default
3259
+ on as default
3256
3260
  };