@myxtra/authentication-green 2.1.0 → 2.2.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.
@@ -14,8 +14,8 @@ var at = (e, t, s, r) => ({
14
14
  get _() {
15
15
  return n(e, t, r);
16
16
  }
17
- }), x = (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-c468a93b.mjs";
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";
19
19
  var Ke = class {
20
20
  constructor() {
21
21
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
@@ -49,33 +49,33 @@ function Ht(e, t) {
49
49
  type: s = "all",
50
50
  exact: r,
51
51
  fetchStatus: a,
52
- predicate: o,
53
- queryKey: l,
52
+ predicate: l,
53
+ queryKey: o,
54
54
  stale: c
55
55
  } = e;
56
- if (l) {
56
+ if (o) {
57
57
  if (r) {
58
- if (t.queryHash !== Ft(l, t.options))
58
+ if (t.queryHash !== Ft(o, t.options))
59
59
  return !1;
60
- } else if (!Ve(t.queryKey, l))
60
+ } else if (!Ve(t.queryKey, o))
61
61
  return !1;
62
62
  }
63
63
  if (s !== "all") {
64
- const m = t.isActive();
65
- if (s === "active" && !m || s === "inactive" && m)
64
+ const v = t.isActive();
65
+ if (s === "active" && !v || s === "inactive" && v)
66
66
  return !1;
67
67
  }
68
- return !(typeof c == "boolean" && t.isStale() !== c || typeof a < "u" && a !== t.state.fetchStatus || o && !o(t));
68
+ return !(typeof c == "boolean" && t.isStale() !== c || typeof a < "u" && a !== t.state.fetchStatus || l && !l(t));
69
69
  }
70
70
  function $t(e, t) {
71
- const { exact: s, status: r, predicate: a, mutationKey: o } = e;
72
- if (o) {
71
+ const { exact: s, status: r, predicate: a, mutationKey: l } = e;
72
+ if (l) {
73
73
  if (!t.options.mutationKey)
74
74
  return !1;
75
75
  if (s) {
76
- if (we(t.options.mutationKey) !== we(o))
76
+ if (we(t.options.mutationKey) !== we(l))
77
77
  return !1;
78
- } else if (!Ve(t.options.mutationKey, o))
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));
@@ -97,13 +97,13 @@ function ds(e, t) {
97
97
  return e;
98
98
  const s = Kt(e) && Kt(t);
99
99
  if (s || bt(e) && bt(t)) {
100
- const r = s ? e : Object.keys(e), a = r.length, o = s ? t : Object.keys(t), l = o.length, c = s ? [] : {};
101
- let m = 0;
102
- for (let C = 0; C < l; C++) {
103
- const u = s ? C : o[C];
104
- !s && e[u] === void 0 && t[u] === void 0 && r.includes(u) ? (c[u] = void 0, m++) : (c[u] = ds(e[u], t[u]), c[u] === e[u] && e[u] !== void 0 && m++);
100
+ const r = s ? e : Object.keys(e), a = r.length, l = s ? t : Object.keys(t), o = l.length, c = s ? [] : {};
101
+ let v = 0;
102
+ for (let g = 0; g < o; g++) {
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++);
105
105
  }
106
- return a === l && m === a ? e : c;
106
+ return a === o && v === a ? e : c;
107
107
  }
108
108
  return t;
109
109
  }
@@ -236,28 +236,28 @@ function Ct(e) {
236
236
  return e instanceof hs;
237
237
  }
238
238
  function fs(e) {
239
- let t = !1, s = 0, r = !1, a, o, l;
240
- const c = new Promise((y, g) => {
241
- o = y, l = g;
242
- }), m = (y) => {
243
- var g;
244
- r || (f(new hs(y)), (g = e.abort) == null || g.call(e));
245
- }, C = () => {
239
+ let t = !1, s = 0, r = !1, a, l, o;
240
+ const c = new Promise((y, C) => {
241
+ l = y, o = C;
242
+ }), v = (y) => {
243
+ var C;
244
+ r || (f(new hs(y)), (C = e.abort) == null || C.call(e));
245
+ }, g = () => {
246
246
  t = !0;
247
247
  }, u = () => {
248
248
  t = !1;
249
- }, b = () => !ut.isFocused() || e.networkMode !== "always" && !dt.isOnline(), v = (y) => {
250
- var g;
251
- r || (r = !0, (g = e.onSuccess) == null || g.call(e, y), a == null || a(), o(y));
249
+ }, x = () => !ut.isFocused() || e.networkMode !== "always" && !dt.isOnline(), m = (y) => {
250
+ var C;
251
+ r || (r = !0, (C = e.onSuccess) == null || C.call(e, y), a == null || a(), l(y));
252
252
  }, f = (y) => {
253
- var g;
254
- r || (r = !0, (g = e.onError) == null || g.call(e, y), a == null || a(), l(y));
253
+ var C;
254
+ r || (r = !0, (C = e.onError) == null || C.call(e, y), a == null || a(), o(y));
255
255
  }, w = () => new Promise((y) => {
256
- var g;
256
+ var C;
257
257
  a = (S) => {
258
- const _ = r || !b();
258
+ const _ = r || !x();
259
259
  return _ && y(S), _;
260
- }, (g = e.onPause) == null || g.call(e);
260
+ }, (C = e.onPause) == null || C.call(e);
261
261
  }).then(() => {
262
262
  var y;
263
263
  a = void 0, r || (y = e.onContinue) == null || y.call(e);
@@ -267,80 +267,80 @@ function fs(e) {
267
267
  let y;
268
268
  try {
269
269
  y = e.fn();
270
- } catch (g) {
271
- y = Promise.reject(g);
270
+ } catch (C) {
271
+ y = Promise.reject(C);
272
272
  }
273
- Promise.resolve(y).then(v).catch((g) => {
273
+ Promise.resolve(y).then(m).catch((C) => {
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, g) : _, L = S === !0 || typeof S == "number" && s < S || typeof S == "function" && S(s, g);
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);
278
278
  if (t || !L) {
279
- f(g);
279
+ f(C);
280
280
  return;
281
281
  }
282
- s++, ($ = e.onFail) == null || $.call(e, s, g), zs(k).then(() => {
283
- if (b())
282
+ s++, ($ = e.onFail) == null || $.call(e, s, C), zs(k).then(() => {
283
+ if (x())
284
284
  return w();
285
285
  }).then(() => {
286
- t ? f(g) : E();
286
+ t ? f(C) : E();
287
287
  });
288
288
  });
289
289
  };
290
290
  return vt(e.networkMode) ? E() : w().then(E), {
291
291
  promise: c,
292
- cancel: m,
292
+ cancel: v,
293
293
  continue: () => (a == null ? void 0 : a()) ? c : Promise.resolve(),
294
- cancelRetry: C,
294
+ cancelRetry: g,
295
295
  continueRetry: u
296
296
  };
297
297
  }
298
298
  function tr() {
299
- let e = [], t = 0, s = (v) => {
300
- v();
301
- }, r = (v) => {
302
- v();
303
- }, a = (v) => setTimeout(v, 0);
304
- const o = (v) => {
305
- a = v;
306
- }, l = (v) => {
299
+ let e = [], t = 0, s = (m) => {
300
+ m();
301
+ }, r = (m) => {
302
+ m();
303
+ }, a = (m) => setTimeout(m, 0);
304
+ const l = (m) => {
305
+ a = m;
306
+ }, o = (m) => {
307
307
  let f;
308
308
  t++;
309
309
  try {
310
- f = v();
310
+ f = m();
311
311
  } finally {
312
- t--, t || C();
312
+ t--, t || g();
313
313
  }
314
314
  return f;
315
- }, c = (v) => {
316
- t ? e.push(v) : a(() => {
317
- s(v);
315
+ }, c = (m) => {
316
+ t ? e.push(m) : a(() => {
317
+ s(m);
318
318
  });
319
- }, m = (v) => (...f) => {
319
+ }, v = (m) => (...f) => {
320
320
  c(() => {
321
- v(...f);
321
+ m(...f);
322
322
  });
323
- }, C = () => {
324
- const v = e;
325
- e = [], v.length && a(() => {
323
+ }, g = () => {
324
+ const m = e;
325
+ e = [], m.length && a(() => {
326
326
  r(() => {
327
- v.forEach((f) => {
327
+ m.forEach((f) => {
328
328
  s(f);
329
329
  });
330
330
  });
331
331
  });
332
332
  };
333
333
  return {
334
- batch: l,
335
- batchCalls: m,
334
+ batch: o,
335
+ batchCalls: v,
336
336
  schedule: c,
337
- setNotifyFunction: (v) => {
338
- s = v;
337
+ setNotifyFunction: (m) => {
338
+ s = m;
339
339
  },
340
- setBatchNotifyFunction: (v) => {
341
- r = v;
340
+ setBatchNotifyFunction: (m) => {
341
+ r = m;
342
342
  },
343
- setScheduler: o
343
+ setScheduler: l
344
344
  };
345
345
  }
346
346
  var R = tr(), me, ts, ps = (ts = class {
@@ -377,7 +377,7 @@ var R = tr(), me, ts, ps = (ts = class {
377
377
  p(this, D, void 0);
378
378
  p(this, qe, void 0);
379
379
  p(this, ve, void 0);
380
- h(this, ve, !1), h(this, qe, t.defaultOptions), x(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();
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();
381
381
  }
382
382
  get meta() {
383
383
  return this.options.meta;
@@ -387,7 +387,7 @@ var R = tr(), me, ts, ps = (ts = class {
387
387
  }
388
388
  setData(t, s) {
389
389
  const r = wt(this.state.data, t, this.options);
390
- return x(this, z, te).call(this, {
390
+ return b(this, z, te).call(this, {
391
391
  data: r,
392
392
  type: "success",
393
393
  dataUpdatedAt: s == null ? void 0 : s.updatedAt,
@@ -395,7 +395,7 @@ var R = tr(), me, ts, ps = (ts = class {
395
395
  }), r;
396
396
  }
397
397
  setState(t, s) {
398
- x(this, z, te).call(this, { type: "setState", state: t, setStateOptions: s });
398
+ b(this, z, te).call(this, { type: "setState", state: t, setStateOptions: s });
399
399
  }
400
400
  cancel(t) {
401
401
  var r;
@@ -442,31 +442,31 @@ var R = tr(), me, ts, ps = (ts = class {
442
442
  return n(this, D).length;
443
443
  }
444
444
  invalidate() {
445
- this.state.isInvalidated || x(this, z, te).call(this, { type: "invalidate" });
445
+ this.state.isInvalidated || b(this, z, te).call(this, { type: "invalidate" });
446
446
  }
447
447
  fetch(t, s) {
448
- var C, u, b, v;
448
+ var g, u, x, m;
449
449
  if (this.state.fetchStatus !== "idle") {
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 (C = n(this, q)) == null || C.continueRetry(), n(this, oe);
453
+ return (g = n(this, q)) == null || g.continueRetry(), n(this, oe);
454
454
  }
455
- if (t && x(this, ke, ot).call(this, t), !this.options.queryFn) {
455
+ if (t && b(this, ke, ot).call(this, t), !this.options.queryFn) {
456
456
  const f = n(this, D).find((w) => w.options.queryFn);
457
- f && x(this, ke, ot).call(this, f.options);
457
+ f && b(this, ke, ot).call(this, f.options);
458
458
  }
459
459
  const r = new AbortController(), a = {
460
460
  queryKey: this.queryKey,
461
461
  meta: this.meta
462
- }, o = (f) => {
462
+ }, l = (f) => {
463
463
  Object.defineProperty(f, "signal", {
464
464
  enumerable: !0,
465
465
  get: () => (h(this, ve, !0), r.signal)
466
466
  });
467
467
  };
468
- o(a);
469
- const l = () => this.options.queryFn ? (h(this, ve, !1), this.options.persister ? this.options.persister(
468
+ l(a);
469
+ const o = () => this.options.queryFn ? (h(this, ve, !1), this.options.persister ? this.options.persister(
470
470
  this.options.queryFn,
471
471
  a,
472
472
  this
@@ -479,22 +479,22 @@ var R = tr(), me, ts, ps = (ts = class {
479
479
  options: this.options,
480
480
  queryKey: this.queryKey,
481
481
  state: this.state,
482
- fetchFn: l
482
+ fetchFn: o
483
483
  };
484
- o(c), (u = this.options.behavior) == null || u.onFetch(
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 !== ((b = c.fetchOptions) == null ? void 0 : b.meta)) && x(this, z, te).call(this, { type: "fetch", meta: (v = c.fetchOptions) == null ? void 0 : v.meta });
488
- const m = (f) => {
489
- var w, E, y, g;
490
- Ct(f) && f.silent || x(this, z, te).call(this, {
487
+ ), h(this, Ne, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((x = c.fetchOptions) == null ? void 0 : x.meta)) && b(this, z, te).call(this, { type: "fetch", meta: (m = c.fetchOptions) == null ? void 0 : m.meta });
488
+ const v = (f) => {
489
+ var w, E, y, C;
490
+ Ct(f) && f.silent || b(this, z, te).call(this, {
491
491
  type: "error",
492
492
  error: f
493
493
  }), Ct(f) || ((E = (w = n(this, V).config).onError) == null || E.call(
494
494
  w,
495
495
  f,
496
496
  this
497
- ), (g = (y = n(this, V).config).onSettled) == null || g.call(
497
+ ), (C = (y = n(this, V).config).onSettled) == null || C.call(
498
498
  y,
499
499
  this.state.data,
500
500
  f,
@@ -505,27 +505,27 @@ var R = tr(), me, ts, ps = (ts = class {
505
505
  fn: c.fetchFn,
506
506
  abort: r.abort.bind(r),
507
507
  onSuccess: (f) => {
508
- var w, E, y, g;
508
+ var w, E, y, C;
509
509
  if (typeof f > "u") {
510
- m(new Error(`${this.queryHash} data is undefined`));
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), (g = (y = n(this, V).config).onSettled) == null || g.call(
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(
514
514
  y,
515
515
  f,
516
516
  this.state.error,
517
517
  this
518
518
  ), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
519
519
  },
520
- onError: m,
520
+ onError: v,
521
521
  onFail: (f, w) => {
522
- x(this, z, te).call(this, { type: "failed", failureCount: f, error: w });
522
+ b(this, z, te).call(this, { type: "failed", failureCount: f, error: w });
523
523
  },
524
524
  onPause: () => {
525
- x(this, z, te).call(this, { type: "pause" });
525
+ b(this, z, te).call(this, { type: "pause" });
526
526
  },
527
527
  onContinue: () => {
528
- x(this, z, te).call(this, { type: "continue" });
528
+ b(this, z, te).call(this, { type: "continue" });
529
529
  },
530
530
  retry: c.options.retry,
531
531
  retryDelay: c.options.retryDelay,
@@ -634,16 +634,16 @@ var J, rs, ir = (rs = class extends Ke {
634
634
  this.config = t, h(this, J, /* @__PURE__ */ new Map());
635
635
  }
636
636
  build(t, s, r) {
637
- const a = s.queryKey, o = s.queryHash ?? Ft(a, s);
638
- let l = this.get(o);
639
- return l || (l = new sr({
637
+ const a = s.queryKey, l = s.queryHash ?? Ft(a, s);
638
+ let o = this.get(l);
639
+ return o || (o = new sr({
640
640
  cache: this,
641
641
  queryKey: a,
642
- queryHash: o,
642
+ queryHash: l,
643
643
  options: t.defaultQueryOptions(s),
644
644
  state: r,
645
645
  defaultOptions: t.getQueryDefaults(a)
646
- }), this.add(l)), l;
646
+ }), this.add(o)), o;
647
647
  }
648
648
  add(t) {
649
649
  n(this, J).has(t.queryHash) || (n(this, J).set(t.queryHash, t), this.notify({
@@ -738,17 +738,17 @@ 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, o, l, c, m, C, u, b, v, f, w, E, y, g, S, _, k, L, $, T;
741
+ var a, l, o, c, v, g, u, x, m, f, w, E, y, C, S, _, k, L, $, T;
742
742
  const s = () => (h(this, Me, fs({
743
743
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
744
744
  onFail: (M, ee) => {
745
- x(this, I, ie).call(this, { type: "failed", failureCount: M, error: ee });
745
+ b(this, I, ie).call(this, { type: "failed", failureCount: M, error: ee });
746
746
  },
747
747
  onPause: () => {
748
- x(this, I, ie).call(this, { type: "pause" });
748
+ b(this, I, ie).call(this, { type: "pause" });
749
749
  },
750
750
  onContinue: () => {
751
- x(this, I, ie).call(this, { type: "continue" });
751
+ b(this, I, ie).call(this, { type: "continue" });
752
752
  },
753
753
  retry: this.options.retry ?? 0,
754
754
  retryDelay: this.options.retryDelay,
@@ -756,36 +756,36 @@ var J, rs, ir = (rs = class extends Ke {
756
756
  })), n(this, Me).promise), r = this.state.status === "pending";
757
757
  try {
758
758
  if (!r) {
759
- x(this, I, ie).call(this, { type: "pending", variables: t }), await ((o = (a = n(this, K).config).onMutate) == null ? void 0 : o.call(
759
+ b(this, I, ie).call(this, { type: "pending", variables: t }), await ((l = (a = n(this, K).config).onMutate) == null ? void 0 : l.call(
760
760
  a,
761
761
  t,
762
762
  this
763
763
  ));
764
- const ee = await ((c = (l = this.options).onMutate) == null ? void 0 : c.call(l, t));
765
- ee !== this.state.context && x(this, I, ie).call(this, {
764
+ const ee = await ((c = (o = this.options).onMutate) == null ? void 0 : c.call(o, t));
765
+ ee !== this.state.context && b(this, I, ie).call(this, {
766
766
  type: "pending",
767
767
  context: ee,
768
768
  variables: t
769
769
  });
770
770
  }
771
771
  const M = await s();
772
- return await ((C = (m = n(this, K).config).onSuccess) == null ? void 0 : C.call(
773
- m,
772
+ return await ((g = (v = n(this, K).config).onSuccess) == null ? void 0 : g.call(
773
+ v,
774
774
  M,
775
775
  t,
776
776
  this.state.context,
777
777
  this
778
- )), await ((b = (u = this.options).onSuccess) == null ? void 0 : b.call(u, M, t, this.state.context)), await ((f = (v = n(this, K).config).onSettled) == null ? void 0 : f.call(
779
- v,
778
+ )), await ((x = (u = this.options).onSuccess) == null ? void 0 : x.call(u, M, t, this.state.context)), await ((f = (m = n(this, K).config).onSettled) == null ? void 0 : f.call(
779
+ m,
780
780
  M,
781
781
  null,
782
782
  this.state.variables,
783
783
  this.state.context,
784
784
  this
785
- )), await ((E = (w = this.options).onSettled) == null ? void 0 : E.call(w, M, null, t, this.state.context)), x(this, I, ie).call(this, { type: "success", data: M }), M;
785
+ )), await ((E = (w = this.options).onSettled) == null ? void 0 : E.call(w, M, null, t, this.state.context)), b(this, I, ie).call(this, { type: "success", data: M }), M;
786
786
  } catch (M) {
787
787
  try {
788
- throw await ((g = (y = n(this, K).config).onError) == null ? void 0 : g.call(
788
+ throw await ((C = (y = n(this, K).config).onError) == null ? void 0 : C.call(
789
789
  y,
790
790
  M,
791
791
  t,
@@ -811,7 +811,7 @@ var J, rs, ir = (rs = class extends Ke {
811
811
  this.state.context
812
812
  )), M;
813
813
  } finally {
814
- x(this, I, ie).call(this, { type: "error", error: M });
814
+ b(this, I, ie).call(this, { type: "error", error: M });
815
815
  }
816
816
  }
817
817
  }
@@ -961,20 +961,20 @@ function or(e) {
961
961
  return {
962
962
  onFetch: (t, s) => {
963
963
  const r = async () => {
964
- var w, E, y, g, S;
965
- const a = t.options, o = (y = (E = (w = t.fetchOptions) == null ? void 0 : w.meta) == null ? void 0 : E.fetchMore) == null ? void 0 : y.direction, l = ((g = t.state.data) == null ? void 0 : g.pages) || [], c = ((S = t.state.data) == null ? void 0 : S.pageParams) || [], m = { pages: [], pageParams: [] };
966
- let C = !1;
964
+ var w, E, y, C, S;
965
+ const a = t.options, l = (y = (E = (w = t.fetchOptions) == null ? void 0 : w.meta) == null ? void 0 : E.fetchMore) == null ? void 0 : y.direction, o = ((C = t.state.data) == null ? void 0 : C.pages) || [], c = ((S = t.state.data) == null ? void 0 : S.pageParams) || [], v = { pages: [], pageParams: [] };
966
+ let g = !1;
967
967
  const u = (_) => {
968
968
  Object.defineProperty(_, "signal", {
969
969
  enumerable: !0,
970
- get: () => (t.signal.aborted ? C = !0 : t.signal.addEventListener("abort", () => {
971
- C = !0;
970
+ get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
971
+ g = !0;
972
972
  }), t.signal)
973
973
  });
974
- }, b = t.options.queryFn || (() => Promise.reject(
974
+ }, x = t.options.queryFn || (() => Promise.reject(
975
975
  new Error(`Missing queryFn: '${t.options.queryHash}'`)
976
- )), v = async (_, k, L) => {
977
- if (C)
976
+ )), m = async (_, k, L) => {
977
+ if (g)
978
978
  return Promise.reject();
979
979
  if (k == null && _.pages.length)
980
980
  return Promise.resolve(_);
@@ -985,7 +985,7 @@ function or(e) {
985
985
  meta: t.options.meta
986
986
  };
987
987
  u($);
988
- const T = await b(
988
+ const T = await x(
989
989
  $
990
990
  ), { maxPages: M } = t.options, ee = L ? Xs : Js;
991
991
  return {
@@ -994,28 +994,28 @@ function or(e) {
994
994
  };
995
995
  };
996
996
  let f;
997
- if (o && l.length) {
998
- const _ = o === "backward", k = _ ? lr : Vt, L = {
999
- pages: l,
997
+ if (l && o.length) {
998
+ const _ = l === "backward", k = _ ? lr : Vt, L = {
999
+ pages: o,
1000
1000
  pageParams: c
1001
1001
  }, $ = k(a, L);
1002
- f = await v(L, $, _);
1002
+ f = await m(L, $, _);
1003
1003
  } else {
1004
- f = await v(
1005
- m,
1004
+ f = await m(
1005
+ v,
1006
1006
  c[0] ?? a.initialPageParam
1007
1007
  );
1008
- const _ = e ?? l.length;
1008
+ const _ = e ?? o.length;
1009
1009
  for (let k = 1; k < _; k++) {
1010
1010
  const L = Vt(a, f);
1011
- f = await v(f, L);
1011
+ f = await m(f, L);
1012
1012
  }
1013
1013
  }
1014
1014
  return f;
1015
1015
  };
1016
1016
  t.options.persister ? t.fetchFn = () => {
1017
- var a, o;
1018
- return (o = (a = t.options).persister) == null ? void 0 : o.call(
1017
+ var a, l;
1018
+ return (l = (a = t.options).persister) == null ? void 0 : l.call(
1019
1019
  a,
1020
1020
  r,
1021
1021
  {
@@ -1092,11 +1092,11 @@ 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, o = Ys(t, a);
1096
- if (typeof o > "u")
1095
+ const r = n(this, F).find({ queryKey: e }), a = r == null ? void 0 : r.state.data, l = Ys(t, a);
1096
+ if (typeof l > "u")
1097
1097
  return;
1098
- const l = this.defaultQueryOptions({ queryKey: e });
1099
- return n(this, F).build(this, l).setData(o, { ...s, manual: !0 });
1098
+ const o = this.defaultQueryOptions({ queryKey: e });
1099
+ return n(this, F).build(this, o).setData(l, { ...s, manual: !0 });
1100
1100
  }
1101
1101
  setQueriesData(e, t, s) {
1102
1102
  return R.batch(
@@ -1152,8 +1152,8 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1152
1152
  cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
1153
1153
  }, r = R.batch(
1154
1154
  () => n(this, F).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
1155
- let o = a.fetch(void 0, s);
1156
- return s.throwOnError || (o = o.catch(Z)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
1155
+ let l = a.fetch(void 0, s);
1156
+ return s.throwOnError || (l = l.catch(Z)), a.state.fetchStatus === "paused" ? Promise.resolve() : l;
1157
1157
  })
1158
1158
  );
1159
1159
  return Promise.all(r).then(Z);
@@ -1273,7 +1273,7 @@ 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) ? x(this, be, Ge).call(this) : this.updateResult(), x(this, Be, St).call(this));
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));
1277
1277
  }
1278
1278
  onUnsubscribe() {
1279
1279
  this.hasListeners() || this.destroy();
@@ -1293,7 +1293,7 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1293
1293
  );
1294
1294
  }
1295
1295
  destroy() {
1296
- this.listeners = /* @__PURE__ */ new Set(), x(this, et, At).call(this), x(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, N).removeObserver(this);
1297
1297
  }
1298
1298
  setOptions(t, s) {
1299
1299
  const r = this.options, a = n(this, N);
@@ -1303,16 +1303,16 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1303
1303
  observer: this
1304
1304
  }), typeof this.options.enabled < "u" && typeof this.options.enabled != "boolean")
1305
1305
  throw new Error("Expected enabled to be a boolean");
1306
- this.options.queryKey || (this.options.queryKey = r.queryKey), x(this, st, Nt).call(this);
1307
- const o = this.hasListeners();
1308
- o && Wt(
1306
+ this.options.queryKey || (this.options.queryKey = r.queryKey), b(this, st, Nt).call(this);
1307
+ const l = this.hasListeners();
1308
+ l && Wt(
1309
1309
  n(this, N),
1310
1310
  a,
1311
1311
  this.options,
1312
1312
  r
1313
- ) && x(this, be, Ge).call(this), this.updateResult(s), o && (n(this, N) !== a || this.options.enabled !== r.enabled || this.options.staleTime !== r.staleTime) && x(this, Je, jt).call(this);
1314
- const l = x(this, Xe, _t).call(this);
1315
- o && (n(this, N) !== a || this.options.enabled !== r.enabled || l !== n(this, de)) && x(this, Ie, Et).call(this, l);
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);
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);
1316
1316
  }
1317
1317
  getOptimisticResult(t) {
1318
1318
  const s = n(this, Q).getQueryCache().build(n(this, Q), t), r = this.createResult(s, t);
@@ -1344,25 +1344,25 @@ 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 x(this, be, Ge).call(this, {
1347
+ return b(this, be, 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, o = n(this, U), l = n(this, ge), c = n(this, De), C = t !== r ? t.state : n(this, Ye), { state: u } = t;
1355
- let { error: b, errorUpdatedAt: v, fetchStatus: f, status: w } = u, E = !1, y;
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;
1355
+ let { error: x, errorUpdatedAt: m, fetchStatus: f, status: w } = u, E = !1, y;
1356
1356
  if (s._optimisticResults) {
1357
1357
  const T = this.hasListeners(), M = !T && qt(t, s), ee = T && Wt(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")
1361
- if (o && u.data === (l == null ? void 0 : l.data) && s.select === n(this, ze))
1361
+ if (l && u.data === (o == null ? void 0 : o.data) && s.select === n(this, ze))
1362
1362
  y = n(this, Te);
1363
1363
  else
1364
1364
  try {
1365
- h(this, ze, s.select), y = s.select(u.data), y = wt(o == null ? void 0 : o.data, y, s), h(this, Te, y), h(this, B, null);
1365
+ h(this, ze, s.select), y = s.select(u.data), y = wt(l == null ? void 0 : l.data, y, s), h(this, Te, y), h(this, B, null);
1366
1366
  } catch (T) {
1367
1367
  h(this, B, T);
1368
1368
  }
@@ -1370,8 +1370,8 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1370
1370
  y = u.data;
1371
1371
  if (typeof s.placeholderData < "u" && typeof y > "u" && w === "pending") {
1372
1372
  let T;
1373
- if (o != null && o.isPlaceholderData && s.placeholderData === (c == null ? void 0 : c.placeholderData))
1374
- T = o.data;
1373
+ if (l != null && l.isPlaceholderData && s.placeholderData === (c == null ? void 0 : c.placeholderData))
1374
+ T = l.data;
1375
1375
  else if (T = typeof s.placeholderData == "function" ? s.placeholderData(
1376
1376
  ($ = n(this, Ue)) == null ? void 0 : $.state.data,
1377
1377
  n(this, Ue)
@@ -1382,13 +1382,13 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1382
1382
  h(this, B, M);
1383
1383
  }
1384
1384
  typeof T < "u" && (w = "success", y = wt(
1385
- o == null ? void 0 : o.data,
1385
+ l == null ? void 0 : l.data,
1386
1386
  T,
1387
1387
  s
1388
1388
  ), E = !0);
1389
1389
  }
1390
- n(this, B) && (b = n(this, B), y = n(this, Te), v = Date.now(), w = "error");
1391
- const g = f === "fetching", S = w === "pending", _ = w === "error", k = S && g;
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;
1392
1392
  return {
1393
1393
  status: w,
1394
1394
  fetchStatus: f,
@@ -1399,15 +1399,15 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1399
1399
  isLoading: k,
1400
1400
  data: y,
1401
1401
  dataUpdatedAt: u.dataUpdatedAt,
1402
- error: b,
1403
- errorUpdatedAt: v,
1402
+ error: x,
1403
+ errorUpdatedAt: m,
1404
1404
  failureCount: u.fetchFailureCount,
1405
1405
  failureReason: u.fetchFailureReason,
1406
1406
  errorUpdateCount: u.errorUpdateCount,
1407
1407
  isFetched: u.dataUpdateCount > 0 || u.errorUpdateCount > 0,
1408
- isFetchedAfterMount: u.dataUpdateCount > C.dataUpdateCount || u.errorUpdateCount > C.errorUpdateCount,
1409
- isFetching: g,
1410
- isRefetching: g && !S,
1408
+ isFetchedAfterMount: u.dataUpdateCount > g.dataUpdateCount || u.errorUpdateCount > g.errorUpdateCount,
1409
+ isFetching: C,
1410
+ isRefetching: C && !S,
1411
1411
  isLoadingError: _ && u.dataUpdatedAt === 0,
1412
1412
  isPaused: f === "paused",
1413
1413
  isPlaceholderData: E,
@@ -1421,34 +1421,34 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1421
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))
1422
1422
  return;
1423
1423
  h(this, U, r);
1424
- const a = {}, o = () => {
1424
+ const a = {}, l = () => {
1425
1425
  if (!s)
1426
1426
  return !0;
1427
- const { notifyOnChangeProps: l } = this.options, c = typeof l == "function" ? l() : l;
1427
+ const { notifyOnChangeProps: o } = this.options, c = typeof o == "function" ? o() : o;
1428
1428
  if (c === "all" || !c && !n(this, Qe).size)
1429
1429
  return !0;
1430
- const m = new Set(
1430
+ const v = new Set(
1431
1431
  c ?? n(this, Qe)
1432
1432
  );
1433
- return this.options.throwOnError && m.add("error"), Object.keys(n(this, U)).some((C) => {
1434
- const u = C;
1435
- return n(this, U)[u] !== s[u] && m.has(u);
1433
+ return this.options.throwOnError && v.add("error"), Object.keys(n(this, U)).some((g) => {
1434
+ const u = g;
1435
+ return n(this, U)[u] !== s[u] && v.has(u);
1436
1436
  });
1437
1437
  };
1438
- (t == null ? void 0 : t.listeners) !== !1 && o() && (a.listeners = !0), x(this, mt, ys).call(this, { ...a, ...t });
1438
+ (t == null ? void 0 : t.listeners) !== !1 && l() && (a.listeners = !0), b(this, mt, ys).call(this, { ...a, ...t });
1439
1439
  }
1440
1440
  onQueryUpdate() {
1441
- this.updateResult(), this.hasListeners() && x(this, Be, St).call(this);
1441
+ this.updateResult(), this.hasListeners() && b(this, Be, St).call(this);
1442
1442
  }
1443
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
- x(this, st, Nt).call(this);
1444
+ b(this, st, Nt).call(this);
1445
1445
  let s = n(this, N).fetch(
1446
1446
  this.options,
1447
1447
  t
1448
1448
  );
1449
1449
  return t != null && t.throwOnError || (s = s.catch(Z)), s;
1450
1450
  }, Je = new WeakSet(), jt = function() {
1451
- if (x(this, et, At).call(this), $e || n(this, U).isStale || !xt(this.options.staleTime))
1451
+ if (b(this, et, At).call(this), $e || n(this, U).isStale || !xt(this.options.staleTime))
1452
1452
  return;
1453
1453
  const s = us(
1454
1454
  n(this, U).dataUpdatedAt,
@@ -1460,11 +1460,11 @@ var F, le, ce, Oe, Le, ue, Fe, Re, as, vs = (as = class {
1460
1460
  }, Xe = new WeakSet(), _t = function() {
1461
1461
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(n(this, N)) : this.options.refetchInterval) ?? !1;
1462
1462
  }, Ie = new WeakSet(), Et = function(t) {
1463
- x(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()) && x(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, xe, setInterval(() => {
1464
+ (this.options.refetchIntervalInBackground || ut.isFocused()) && b(this, be, Ge).call(this);
1465
1465
  }, n(this, de)));
1466
1466
  }, Be = new WeakSet(), St = function() {
1467
- x(this, Je, jt).call(this), x(this, Ie, Et).call(this, x(this, Xe, _t).call(this));
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
1469
  n(this, Ce) && (clearTimeout(n(this, Ce)), h(this, Ce, void 0));
1470
1470
  }, tt = new WeakSet(), Pt = function() {
@@ -1516,7 +1516,7 @@ var he, se, G, re, He, lt, rt, Mt, ls, hr = (ls = class extends Ke {
1516
1516
  p(this, se, void 0);
1517
1517
  p(this, G, void 0);
1518
1518
  p(this, re, void 0);
1519
- h(this, se, void 0), h(this, he, t), this.setOptions(s), this.bindMethods(), x(this, He, lt).call(this);
1519
+ h(this, se, void 0), h(this, he, t), this.setOptions(s), this.bindMethods(), b(this, He, lt).call(this);
1520
1520
  }
1521
1521
  bindMethods() {
1522
1522
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
@@ -1535,14 +1535,14 @@ var he, se, G, re, He, lt, rt, Mt, ls, hr = (ls = class extends Ke {
1535
1535
  this.hasListeners() || (t = n(this, G)) == null || t.removeObserver(this);
1536
1536
  }
1537
1537
  onMutationUpdate(t) {
1538
- x(this, He, lt).call(this), x(this, rt, Mt).call(this, t);
1538
+ b(this, He, lt).call(this), b(this, rt, Mt).call(this, t);
1539
1539
  }
1540
1540
  getCurrentResult() {
1541
1541
  return n(this, se);
1542
1542
  }
1543
1543
  reset() {
1544
1544
  var t;
1545
- (t = n(this, G)) == null || t.removeObserver(this), h(this, G, void 0), x(this, He, lt).call(this), x(this, rt, Mt).call(this);
1545
+ (t = n(this, G)) == null || t.removeObserver(this), h(this, G, void 0), b(this, He, lt).call(this), b(this, rt, Mt).call(this);
1546
1546
  }
1547
1547
  mutate(t, s) {
1548
1548
  var r;
@@ -1562,15 +1562,15 @@ var he, se, G, re, He, lt, rt, Mt, ls, hr = (ls = class extends Ke {
1562
1562
  });
1563
1563
  }, rt = new WeakSet(), Mt = function(t) {
1564
1564
  R.batch(() => {
1565
- var s, r, a, o, l, c, m, C;
1565
+ var s, r, a, l, o, c, v, g;
1566
1566
  if (n(this, re) && this.hasListeners()) {
1567
- const u = n(this, se).variables, b = n(this, se).context;
1568
- (t == null ? void 0 : t.type) === "success" ? ((r = (s = n(this, re)).onSuccess) == null || r.call(s, t.data, u, b), (o = (a = n(this, re)).onSettled) == null || o.call(a, t.data, null, u, b)) : (t == null ? void 0 : t.type) === "error" && ((c = (l = n(this, re)).onError) == null || c.call(l, t.error, u, b), (C = (m = n(this, re)).onSettled) == null || C.call(
1569
- m,
1567
+ const u = n(this, se).variables, x = n(this, se).context;
1568
+ (t == null ? void 0 : t.type) === "success" ? ((r = (s = n(this, re)).onSuccess) == null || r.call(s, t.data, u, x), (l = (a = n(this, re)).onSettled) == null || l.call(a, t.data, null, u, x)) : (t == null ? void 0 : t.type) === "error" && ((c = (o = n(this, re)).onError) == null || c.call(o, t.error, u, x), (g = (v = n(this, re)).onSettled) == null || g.call(
1569
+ v,
1570
1570
  void 0,
1571
1571
  t.error,
1572
1572
  u,
1573
- b
1573
+ x
1574
1574
  ));
1575
1575
  }
1576
1576
  this.listeners.forEach((u) => {
@@ -1626,19 +1626,19 @@ var gr = (e, t) => {
1626
1626
  s.clearReset();
1627
1627
  });
1628
1628
  function _r(e, t, s) {
1629
- const r = Dt(s), a = pr(), o = yr(), l = r.defaultQueryOptions(e);
1630
- l._optimisticResults = a ? "isRestoring" : "optimistic", br(l), gr(l, o), Cr(o);
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);
1631
1631
  const [c] = d.useState(
1632
1632
  () => new t(
1633
1633
  r,
1634
- l
1634
+ o
1635
1635
  )
1636
- ), m = c.getOptimisticResult(l);
1636
+ ), v = c.getOptimisticResult(o);
1637
1637
  if (d.useSyncExternalStore(
1638
1638
  d.useCallback(
1639
- (C) => {
1639
+ (g) => {
1640
1640
  const u = a ? () => {
1641
- } : c.subscribe(R.batchCalls(C));
1641
+ } : c.subscribe(R.batchCalls(g));
1642
1642
  return c.updateResult(), u;
1643
1643
  },
1644
1644
  [c, a]
@@ -1646,17 +1646,17 @@ function _r(e, t, s) {
1646
1646
  () => c.getCurrentResult(),
1647
1647
  () => c.getCurrentResult()
1648
1648
  ), d.useEffect(() => {
1649
- c.setOptions(l, { listeners: !1 });
1650
- }, [l, c]), wr(l, m))
1651
- throw jr(l, c, o);
1649
+ c.setOptions(o, { listeners: !1 });
1650
+ }, [o, c]), wr(o, v))
1651
+ throw jr(o, c, l);
1652
1652
  if (xr({
1653
- result: m,
1654
- errorResetBoundary: o,
1655
- throwOnError: l.throwOnError,
1656
- query: r.getQueryCache().get(l.queryHash)
1653
+ result: v,
1654
+ errorResetBoundary: l,
1655
+ throwOnError: o.throwOnError,
1656
+ query: r.getQueryCache().get(o.queryHash)
1657
1657
  }))
1658
- throw m.error;
1659
- return l.notifyOnChangeProps ? m : c.trackResult(m);
1658
+ throw v.error;
1659
+ return o.notifyOnChangeProps ? v : c.trackResult(v);
1660
1660
  }
1661
1661
  function bs(e, t) {
1662
1662
  return _r(e, cr, t);
@@ -1673,20 +1673,20 @@ function Er(e, t) {
1673
1673
  }, [r, e]);
1674
1674
  const a = d.useSyncExternalStore(
1675
1675
  d.useCallback(
1676
- (l) => r.subscribe(R.batchCalls(l)),
1676
+ (o) => r.subscribe(R.batchCalls(o)),
1677
1677
  [r]
1678
1678
  ),
1679
1679
  () => r.getCurrentResult(),
1680
1680
  () => r.getCurrentResult()
1681
- ), o = d.useCallback(
1682
- (l, c) => {
1683
- r.mutate(l, c).catch(Sr);
1681
+ ), l = d.useCallback(
1682
+ (o, c) => {
1683
+ r.mutate(o, c).catch(Sr);
1684
1684
  },
1685
1685
  [r]
1686
1686
  );
1687
1687
  if (a.error && xs(r.options.throwOnError, [a.error]))
1688
1688
  throw a.error;
1689
- return { ...a, mutate: o, mutateAsync: a.mutate };
1689
+ return { ...a, mutate: l, mutateAsync: a.mutate };
1690
1690
  }
1691
1691
  function Sr() {
1692
1692
  }
@@ -1744,12 +1744,12 @@ function Mr(...e) {
1744
1744
  );
1745
1745
  }
1746
1746
  var Or = /* @__PURE__ */ d.forwardRef((e, t) => {
1747
- const s = e, { children: r } = s, a = O(s, ["children"]), o = d.Children.toArray(r), l = o.find(Fr);
1748
- if (l) {
1749
- const c = l.props.children, m = o.map((C) => C === l ? d.Children.count(c) > 1 ? d.Children.only(null) : /* @__PURE__ */ d.isValidElement(c) ? c.props.children : null : C);
1747
+ const s = e, { children: r } = s, a = O(s, ["children"]), l = d.Children.toArray(r), o = l.find(Fr);
1748
+ if (o) {
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, {
1751
1751
  ref: t
1752
- }), /* @__PURE__ */ d.isValidElement(c) ? /* @__PURE__ */ d.cloneElement(c, void 0, m) : null);
1752
+ }), /* @__PURE__ */ d.isValidElement(c) ? /* @__PURE__ */ d.cloneElement(c, void 0, v) : null);
1753
1753
  }
1754
1754
  return /* @__PURE__ */ d.createElement(Ot, ft({}, a, {
1755
1755
  ref: t
@@ -1770,12 +1770,12 @@ function Fr(e) {
1770
1770
  function Rr(e, t) {
1771
1771
  const s = j({}, t);
1772
1772
  for (const r in t) {
1773
- const a = e[r], o = t[r];
1774
- /^on[A-Z]/.test(r) ? a && o ? s[r] = (...c) => {
1775
- o(...c), a(...c);
1776
- } : a && (s[r] = a) : r === "style" ? s[r] = j(j({}, a), o) : r === "className" && (s[r] = [
1773
+ const a = e[r], l = t[r];
1774
+ /^on[A-Z]/.test(r) ? a && l ? s[r] = (...c) => {
1775
+ l(...c), a(...c);
1776
+ } : a && (s[r] = a) : r === "style" ? s[r] = j(j({}, a), l) : r === "className" && (s[r] = [
1777
1777
  a,
1778
- o
1778
+ l
1779
1779
  ].filter(Boolean).join(" "));
1780
1780
  }
1781
1781
  return j(j({}, e), s);
@@ -1796,11 +1796,11 @@ var Dr = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1796
1796
  var s = e, {
1797
1797
  iconLeft: r,
1798
1798
  iconRight: a,
1799
- isPending: o = !1,
1800
- isFilled: l = !1,
1799
+ isPending: l = !1,
1800
+ isFilled: o = !1,
1801
1801
  variant: c,
1802
- className: m,
1803
- children: C
1802
+ className: v,
1803
+ children: g
1804
1804
  } = s, u = O(s, [
1805
1805
  "iconLeft",
1806
1806
  "iconRight",
@@ -1810,7 +1810,7 @@ var Dr = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1810
1810
  "className",
1811
1811
  "children"
1812
1812
  ]);
1813
- const b = !!r || !!a;
1813
+ const x = !!r || !!a;
1814
1814
  return /* @__PURE__ */ i.jsxs(
1815
1815
  "button",
1816
1816
  A(j({
@@ -1819,14 +1819,14 @@ var Dr = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1819
1819
  className: P(
1820
1820
  "button",
1821
1821
  c && `button--${c}`,
1822
- c && l && `button--${c}--filled`,
1823
- b && "button--with-icon",
1824
- o && "button--pending",
1825
- m
1822
+ c && o && `button--${c}--filled`,
1823
+ x && "button--with-icon",
1824
+ l && "button--pending",
1825
+ v
1826
1826
  ),
1827
1827
  children: [
1828
1828
  r && /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: r }),
1829
- !!C && /* @__PURE__ */ i.jsx("span", { className: "button__label", children: C }),
1829
+ !!g && /* @__PURE__ */ i.jsx("span", { className: "button__label", children: g }),
1830
1830
  a && /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: a })
1831
1831
  ]
1832
1832
  })
@@ -1837,7 +1837,7 @@ it.displayName = "Button";
1837
1837
  d.createContext(void 0);
1838
1838
  var Tr = d.forwardRef(
1839
1839
  (e, t) => {
1840
- var s = e, { prefix: r, suffix: a, className: o } = s, l = O(s, ["prefix", "suffix", "className"]);
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: [
1842
1842
  r && /* @__PURE__ */ i.jsx("span", { className: "input__prefix", children: r }),
1843
1843
  /* @__PURE__ */ i.jsx(
@@ -1848,9 +1848,9 @@ var Tr = d.forwardRef(
1848
1848
  "input",
1849
1849
  r && "input--with-prefix",
1850
1850
  a && "input--with-suffix",
1851
- o
1851
+ l
1852
1852
  )
1853
- }, l)
1853
+ }, o)
1854
1854
  ),
1855
1855
  a && /* @__PURE__ */ i.jsx("span", { className: "input__suffix", children: a })
1856
1856
  ] });
@@ -2427,10 +2427,10 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2427
2427
  variant: s,
2428
2428
  icon: r,
2429
2429
  isStandalone: a,
2430
- title: o,
2431
- description: l,
2430
+ title: l,
2431
+ description: o,
2432
2432
  className: c
2433
- } = t, m = O(t, [
2433
+ } = t, v = O(t, [
2434
2434
  "variant",
2435
2435
  "icon",
2436
2436
  "isStandalone",
@@ -2440,7 +2440,7 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2440
2440
  ]);
2441
2441
  return /* @__PURE__ */ i.jsx(
2442
2442
  "div",
2443
- A(j({}, m), {
2443
+ A(j({}, v), {
2444
2444
  className: P(
2445
2445
  "card__empty-state",
2446
2446
  s === "error" && "card__empty-state--error",
@@ -2450,8 +2450,8 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2450
2450
  children: /* @__PURE__ */ i.jsxs("div", { className: "card__empty-state__wrapper", children: [
2451
2451
  /* @__PURE__ */ i.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ i.jsx(ii, {}) : r }),
2452
2452
  /* @__PURE__ */ i.jsxs("div", { className: "card__empty-state__content", children: [
2453
- /* @__PURE__ */ i.jsx("p", { className: "card__empty-state__title", children: o }),
2454
- /* @__PURE__ */ i.jsx("p", { className: "card__empty-state__description", children: l })
2453
+ /* @__PURE__ */ i.jsx("p", { className: "card__empty-state__title", children: l }),
2454
+ /* @__PURE__ */ i.jsx("p", { className: "card__empty-state__description", children: o })
2455
2455
  ] })
2456
2456
  ] })
2457
2457
  })
@@ -2461,8 +2461,8 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2461
2461
  variant: s = "default",
2462
2462
  sticky: r,
2463
2463
  className: a,
2464
- children: o
2465
- } = t, l = O(t, [
2464
+ children: l
2465
+ } = t, o = O(t, [
2466
2466
  "variant",
2467
2467
  "sticky",
2468
2468
  "className",
@@ -2470,14 +2470,14 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2470
2470
  ]);
2471
2471
  return /* @__PURE__ */ i.jsx(
2472
2472
  "div",
2473
- A(j({}, l), {
2473
+ A(j({}, o), {
2474
2474
  className: P(
2475
2475
  "card__header",
2476
2476
  s && `card__header--${s}`,
2477
2477
  r && "card__header--sticky",
2478
2478
  a
2479
2479
  ),
2480
- children: o
2480
+ children: l
2481
2481
  })
2482
2482
  );
2483
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: [
@@ -2485,18 +2485,18 @@ var Ur = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "card__h
2485
2485
  t
2486
2486
  ] }), Ss = d.forwardRef(
2487
2487
  (e, t) => {
2488
- var s = e, { type: r, children: a, className: o, variant: l = "default", disabled: c = !1 } = s, m = O(s, ["type", "children", "className", "variant", "disabled"]);
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(
2490
2490
  r,
2491
2491
  j({
2492
2492
  className: P(
2493
2493
  "card",
2494
2494
  c && "card--disabled",
2495
- l && `card--${l}`,
2496
- o
2495
+ o && `card--${o}`,
2496
+ l
2497
2497
  ),
2498
2498
  ref: t
2499
- }, m),
2499
+ }, v),
2500
2500
  a
2501
2501
  );
2502
2502
  }
@@ -2526,18 +2526,18 @@ var Ci = (e) => {
2526
2526
  return e;
2527
2527
  }, ji = (e) => {
2528
2528
  var t = e, { className: s, children: r } = t, a = O(t, ["className", "children"]);
2529
- const { id: o } = wi();
2530
- return /* @__PURE__ */ i.jsx("label", A(j({ htmlFor: o, className: P("checkbox__label", s) }, a), { children: r }));
2529
+ const { id: l } = wi();
2530
+ return /* @__PURE__ */ i.jsx("label", A(j({ htmlFor: l, className: P("checkbox__label", s) }, a), { children: r }));
2531
2531
  }, je = (e) => {
2532
2532
  var t = e, {
2533
2533
  id: s,
2534
2534
  name: r,
2535
2535
  isPending: a = !1,
2536
- variant: o = "neutral",
2537
- hasError: l = !1,
2536
+ variant: l = "neutral",
2537
+ hasError: o = !1,
2538
2538
  single: c,
2539
- className: m,
2540
- children: C
2539
+ className: v,
2540
+ children: g
2541
2541
  } = t, u = O(t, [
2542
2542
  "id",
2543
2543
  "name",
@@ -2548,13 +2548,13 @@ var Ci = (e) => {
2548
2548
  "className",
2549
2549
  "children"
2550
2550
  ]);
2551
- const b = d.useRef(null);
2551
+ const x = d.useRef(null);
2552
2552
  return d.useEffect(() => {
2553
- b.current && (a ? b.current.indeterminate = !0 : b.current.indeterminate = !1);
2553
+ x.current && (a ? x.current.indeterminate = !0 : x.current.indeterminate = !1);
2554
2554
  }, [a]), /* @__PURE__ */ i.jsxs(
2555
2555
  "div",
2556
2556
  {
2557
- className: P("checkbox", o && `checkbox--${o}`, l && "checkbox--error"),
2557
+ className: P("checkbox", l && `checkbox--${l}`, o && "checkbox--error"),
2558
2558
  children: [
2559
2559
  /* @__PURE__ */ i.jsx(
2560
2560
  "input",
@@ -2562,13 +2562,13 @@ var Ci = (e) => {
2562
2562
  id: s,
2563
2563
  name: r,
2564
2564
  type: "checkbox",
2565
- ref: b,
2566
- className: P("checkbox__input", m),
2565
+ ref: x,
2566
+ className: P("checkbox__input", v),
2567
2567
  value: c ? "true" : ""
2568
2568
  }, u)
2569
2569
  ),
2570
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: C })
2571
+ /* @__PURE__ */ i.jsx(bi, { id: s, name: r, children: g })
2572
2572
  ]
2573
2573
  }
2574
2574
  );
@@ -2578,54 +2578,54 @@ je.Label = ji;
2578
2578
  je.Hint = xi;
2579
2579
  je.Error = Error;
2580
2580
  var _i = (e) => {
2581
- var t = e, { type: s = "div", className: r, children: a } = t, o = O(t, ["type", "className", "children"]);
2582
- return d.createElement(s, j({ className: P("dialog__body", r) }, o), a);
2581
+ var t = e, { type: s = "div", className: r, children: a } = t, l = O(t, ["type", "className", "children"]);
2582
+ return d.createElement(s, j({ className: P("dialog__body", r) }, l), a);
2583
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) => {
2584
- var t = e, { className: s, children: r, shouldAnimate: a = !0 } = t, o = O(t, ["className", "children", "shouldAnimate"]);
2585
- const { ref: l, defaultOpen: c, isModal: m, onClose: C } = nt();
2584
+ var t = e, { className: s, children: r, shouldAnimate: a = !0 } = t, l = O(t, ["className", "children", "shouldAnimate"]);
2585
+ const { ref: o, defaultOpen: c, isModal: v, onClose: g } = nt();
2586
2586
  return d.useEffect(() => {
2587
- const u = l == null ? void 0 : l.current;
2587
+ const u = o == null ? void 0 : o.current;
2588
2588
  if (u != null && u.open) {
2589
- const b = u.querySelectorAll(Ei), v = b[0], f = b[b.length - 1], w = (E) => {
2589
+ const x = u.querySelectorAll(Ei), m = x[0], f = x[x.length - 1], w = (E) => {
2590
2590
  if (!(E.key === "Tab"))
2591
2591
  return;
2592
- E.shiftKey ? document.activeElement === v && (f.focus(), E.preventDefault()) : document.activeElement === f && (v.focus(), E.preventDefault());
2592
+ E.shiftKey ? document.activeElement === m && (f.focus(), E.preventDefault()) : document.activeElement === f && (m.focus(), E.preventDefault());
2593
2593
  };
2594
2594
  return document.body.style.overflow = "hidden", u.addEventListener("keydown", w), window.addEventListener("popstate", () => Lt()), () => {
2595
2595
  u.removeEventListener("keydown", w), window.removeEventListener("popstate", () => Lt());
2596
2596
  };
2597
2597
  }
2598
- }, [l]), d.useEffect(() => {
2599
- const u = l == null ? void 0 : l.current;
2598
+ }, [o]), d.useEffect(() => {
2599
+ const u = o == null ? void 0 : o.current;
2600
2600
  if (!u)
2601
2601
  return;
2602
- if (c && (u.removeAttribute("open"), u.showModal(), u.focus()), m)
2602
+ if (c && (u.removeAttribute("open"), u.showModal(), u.focus()), v)
2603
2603
  return u.addEventListener("cancel", Yt), () => u.removeEventListener("cancel", Yt);
2604
- const b = ({ clientX: v, clientY: f }) => {
2605
- const { top: w, right: E, bottom: y, left: g } = u.getBoundingClientRect(), S = 0 < f && 0 < v, _ = w < f && f < y, k = g < v && v < E;
2606
- S && !(_ && k) && C();
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();
2607
2607
  };
2608
- return u.addEventListener("cancel", C), u.addEventListener("mousedown", b), () => {
2609
- u.removeEventListener("cancel", C), u.removeEventListener("mousedown", b);
2608
+ return u.addEventListener("cancel", g), u.addEventListener("mousedown", x), () => {
2609
+ u.removeEventListener("cancel", g), u.removeEventListener("mousedown", x);
2610
2610
  };
2611
- }, [l, m, C, c]), /* @__PURE__ */ i.jsx(
2611
+ }, [o, v, g, c]), /* @__PURE__ */ i.jsx(
2612
2612
  "dialog",
2613
2613
  A(j({
2614
- ref: l,
2614
+ ref: o,
2615
2615
  open: c,
2616
- "aria-modal": !!m,
2616
+ "aria-modal": !!v,
2617
2617
  "aria-labelledby": "dialogTitle",
2618
2618
  className: P("dialog", a && "dialog--animated", s)
2619
- }, o), {
2619
+ }, l), {
2620
2620
  children: r
2621
2621
  })
2622
2622
  );
2623
2623
  }, Ps = d.createContext(void 0), Ai = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2624
- const a = d.useRef(null), o = d.useRef(t), l = d.useCallback(() => {
2624
+ const a = d.useRef(null), l = d.useRef(t), o = d.useCallback(() => {
2625
2625
  var c;
2626
- Lt(), (c = a.current) == null || c.close(), o.current && (o == null || o.current());
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: l }, children: r });
2628
+ return /* @__PURE__ */ i.jsx(Ps.Provider, { value: { ref: a, defaultOpen: e, isModal: s, onClose: o }, children: r });
2629
2629
  }, nt = () => {
2630
2630
  const e = d.useContext(Ps);
2631
2631
  if (!e)
@@ -2637,14 +2637,14 @@ var _i = (e) => {
2637
2637
  return /* @__PURE__ */ i.jsx(it, A(j({ onClick: a }, r), { children: s }));
2638
2638
  }, Ns = d.forwardRef((e, t) => {
2639
2639
  var s = e, { className: r } = s, a = O(s, ["className"]);
2640
- const { onClose: o } = nt();
2640
+ const { onClose: l } = nt();
2641
2641
  return /* @__PURE__ */ i.jsx(
2642
2642
  it,
2643
2643
  j({
2644
2644
  type: "submit",
2645
2645
  ref: t,
2646
2646
  formMethod: "dialog",
2647
- onClick: o,
2647
+ onClick: l,
2648
2648
  iconLeft: /* @__PURE__ */ i.jsx(Vr, {}),
2649
2649
  variant: "icon--secondary",
2650
2650
  className: P("dialog__close button--icon", r)
@@ -2656,18 +2656,18 @@ 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
2658
  }, ki = ({ children: e }) => /* @__PURE__ */ i.jsx("div", { className: "dialog__header", children: e }), Mi = (e) => {
2659
- var t = e, { icon: s, children: r, className: a } = t, o = O(t, ["icon", "children", "className"]);
2660
- const { ref: l } = nt(), c = d.useRef(null);
2659
+ var t = e, { icon: s, children: r, className: a } = t, l = O(t, ["icon", "children", "className"]);
2660
+ const { ref: o } = nt(), c = d.useRef(null);
2661
2661
  return d.useEffect(() => {
2662
- l != null && l.current && l.current.focus();
2663
- }, [l]), /* @__PURE__ */ i.jsxs(
2662
+ o != null && o.current && o.current.focus();
2663
+ }, [o]), /* @__PURE__ */ i.jsxs(
2664
2664
  "div",
2665
2665
  A(j({
2666
2666
  tabIndex: 0,
2667
2667
  ref: c,
2668
2668
  id: "dialogTitle",
2669
2669
  className: P("dialog__header__title", a)
2670
- }, o), {
2670
+ }, l), {
2671
2671
  children: [
2672
2672
  s && /* @__PURE__ */ i.jsx("span", { className: "dialog__header__icon", children: s }),
2673
2673
  r
@@ -2678,8 +2678,8 @@ var Ni = (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
- var o;
2682
- return (o = a == null ? void 0 : a.current) == null ? void 0 : o.showModal();
2681
+ var l;
2682
+ return (l = a == null ? void 0 : a.current) == null ? void 0 : l.showModal();
2683
2683
  } }, r), { children: s }));
2684
2684
  }, H = ({ defaultOpen: e, isModal: t, children: s, onClose: r }) => /* @__PURE__ */ i.jsx(Ai, { defaultOpen: !!e, isModal: t, onClose: r, children: s });
2685
2685
  H.Trigger = Oi;
@@ -2696,11 +2696,11 @@ var ks = d.createContext(void 0), Li = ({
2696
2696
  isOpen: s,
2697
2697
  setIsOpen: r,
2698
2698
  activeItemIndex: a,
2699
- setActiveItemIndex: o,
2700
- clearActiveItemIndex: l,
2699
+ setActiveItemIndex: l,
2700
+ clearActiveItemIndex: o,
2701
2701
  triggerRef: c,
2702
- contentRef: m,
2703
- children: C
2702
+ contentRef: v,
2703
+ children: g
2704
2704
  }) => /* @__PURE__ */ i.jsx(
2705
2705
  ks.Provider,
2706
2706
  {
@@ -2710,12 +2710,12 @@ var ks = d.createContext(void 0), Li = ({
2710
2710
  isOpen: s,
2711
2711
  setIsOpen: r,
2712
2712
  activeItemIndex: a,
2713
- setActiveItemIndex: o,
2714
- clearActiveItemIndex: l,
2713
+ setActiveItemIndex: l,
2714
+ clearActiveItemIndex: o,
2715
2715
  triggerRef: c,
2716
- contentRef: m
2716
+ contentRef: v
2717
2717
  },
2718
- children: C
2718
+ children: g
2719
2719
  }
2720
2720
  ), Ms = () => {
2721
2721
  const e = d.useContext(ks);
@@ -2727,43 +2727,43 @@ var ks = d.createContext(void 0), Li = ({
2727
2727
  id: s,
2728
2728
  position: r,
2729
2729
  isOpen: a,
2730
- setIsOpen: o,
2731
- activeItemIndex: l,
2730
+ setIsOpen: l,
2731
+ activeItemIndex: o,
2732
2732
  setActiveItemIndex: c,
2733
- clearActiveItemIndex: m,
2734
- triggerRef: C,
2733
+ clearActiveItemIndex: v,
2734
+ triggerRef: g,
2735
2735
  contentRef: u
2736
- } = Ms(), b = (v) => {
2736
+ } = Ms(), x = (m) => {
2737
2737
  var f;
2738
2738
  if (!a)
2739
2739
  return;
2740
- if (v.key === "Escape")
2741
- return m(), o(!1), (f = C.current) == null ? void 0 : f.focus();
2742
- const w = v.shiftKey, E = Ls(u.current).length - 1;
2743
- switch (v.key) {
2740
+ if (m.key === "Escape")
2741
+ return v(), l(!1), (f = g.current) == null ? void 0 : f.focus();
2742
+ const w = m.shiftKey, E = Ls(u.current).length - 1;
2743
+ switch (m.key) {
2744
2744
  case "Tab": {
2745
- if (w && l !== 0)
2746
- return v.preventDefault(), c(l ? Math.max(0, l - 1) : 0);
2747
- if (!w && l !== E) {
2748
- v.preventDefault();
2749
- const y = l !== void 0 ? l + 1 : 0;
2745
+ if (w && o !== 0)
2746
+ return m.preventDefault(), c(o ? Math.max(0, o - 1) : 0);
2747
+ if (!w && o !== E) {
2748
+ m.preventDefault();
2749
+ const y = o !== void 0 ? o + 1 : 0;
2750
2750
  return c(Math.min(E, y));
2751
2751
  }
2752
2752
  break;
2753
2753
  }
2754
2754
  case "ArrowUp":
2755
2755
  case "ArrowLeft":
2756
- return v.preventDefault(), c(l ? Math.max(0, l - 1) : 0);
2756
+ return m.preventDefault(), c(o ? Math.max(0, o - 1) : 0);
2757
2757
  case "ArrowDown":
2758
2758
  case "ArrowRight": {
2759
- v.preventDefault();
2760
- const y = l !== void 0 ? l + 1 : 0;
2759
+ m.preventDefault();
2760
+ const y = o !== void 0 ? o + 1 : 0;
2761
2761
  return c(Math.min(E, y));
2762
2762
  }
2763
2763
  case "Home":
2764
- return v.preventDefault(), c(0);
2764
+ return m.preventDefault(), c(0);
2765
2765
  case "End":
2766
- return v.preventDefault(), c(E);
2766
+ return m.preventDefault(), c(E);
2767
2767
  }
2768
2768
  };
2769
2769
  return e ? d.createElement(
@@ -2772,7 +2772,7 @@ var ks = d.createContext(void 0), Li = ({
2772
2772
  id: `${s}-content`,
2773
2773
  ref: u,
2774
2774
  className: P("menu__list", `menu__list--${r}`, a && "menu__list--active"),
2775
- onKeyDown: b
2775
+ onKeyDown: x
2776
2776
  },
2777
2777
  t
2778
2778
  ) : (
@@ -2783,7 +2783,7 @@ var ks = d.createContext(void 0), Li = ({
2783
2783
  id: `${s}-content`,
2784
2784
  ref: u,
2785
2785
  className: P("menu__list", `menu__list--${r}`, a && "menu__list--active"),
2786
- onKeyDown: b,
2786
+ onKeyDown: x,
2787
2787
  children: t
2788
2788
  }
2789
2789
  )
@@ -2792,57 +2792,57 @@ var ks = d.createContext(void 0), Li = ({
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
2794
  }, Os = ({ children: e, className: t }) => {
2795
- const { id: s, isOpen: r, setIsOpen: a, clearActiveItemIndex: o, setActiveItemIndex: l, triggerRef: c } = Ms(), m = () => {
2796
- o(), a((u) => !u), r || l(0);
2797
- }, C = (u) => {
2795
+ const { id: s, isOpen: r, setIsOpen: a, clearActiveItemIndex: l, setActiveItemIndex: o, triggerRef: c } = Ms(), v = () => {
2796
+ l(), a((u) => !u), r || o(0);
2797
+ }, g = (u) => {
2798
2798
  if (r) {
2799
2799
  if (u.key === "Escape")
2800
- return o(), a(!1);
2801
- u.key === "ArrowDown" && (u.preventDefault(), l(0));
2800
+ return l(), a(!1);
2801
+ u.key === "ArrowDown" && (u.preventDefault(), o(0));
2802
2802
  }
2803
2803
  };
2804
2804
  return d.cloneElement(e, {
2805
2805
  id: `${s}-trigger`,
2806
2806
  ref: c,
2807
2807
  className: P("menu__trigger", t),
2808
- onClick: m,
2809
- onKeyDown: C,
2808
+ onClick: v,
2809
+ onKeyDown: g,
2810
2810
  "aria-expanded": r,
2811
2811
  "aria-controls": `${s}-content`
2812
2812
  });
2813
2813
  };
2814
2814
  Os.displayName = "Trigger";
2815
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: o, className: l } = t, c = O(t, ["type", "id", "position", "children", "className"]);
2817
- const m = d.useRef(null), C = d.useRef(null), u = d.useRef(null), [b, v] = d.useState(!1), [f, w] = d.useState(), [E, y] = d.useState(f);
2816
+ var t = e, { type: s, id: r, position: a = "right", children: l, className: o } = t, c = O(t, ["type", "id", "position", "children", "className"]);
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
2818
  f !== E && f !== void 0 && u.current && (Ls(u.current)[f].firstChild.focus(), y(f));
2819
- const g = () => {
2819
+ const C = () => {
2820
2820
  w(void 0), y(void 0);
2821
2821
  }, S = (_) => {
2822
2822
  var k;
2823
- ((k = m.current) == null ? void 0 : k.contains(_.relatedTarget)) || (g(), v(!1));
2823
+ ((k = v.current) == null ? void 0 : k.contains(_.relatedTarget)) || (C(), m(!1));
2824
2824
  };
2825
2825
  return /* @__PURE__ */ i.jsx(
2826
2826
  Li,
2827
2827
  {
2828
2828
  id: r,
2829
2829
  position: a,
2830
- isOpen: b,
2831
- setIsOpen: v,
2830
+ isOpen: x,
2831
+ setIsOpen: m,
2832
2832
  activeItemIndex: f,
2833
2833
  setActiveItemIndex: w,
2834
- clearActiveItemIndex: g,
2835
- triggerRef: C,
2834
+ clearActiveItemIndex: C,
2835
+ triggerRef: g,
2836
2836
  contentRef: u,
2837
2837
  children: d.createElement(
2838
2838
  s,
2839
2839
  A(j({}, c), {
2840
2840
  id: r,
2841
- ref: m,
2842
- className: `menu ${l || ""}`,
2841
+ ref: v,
2842
+ className: `menu ${o || ""}`,
2843
2843
  onBlur: S
2844
2844
  }),
2845
- o
2845
+ l
2846
2846
  )
2847
2847
  }
2848
2848
  );
@@ -2869,14 +2869,14 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2869
2869
  desktopUrl: r,
2870
2870
  icon: a
2871
2871
  }) => {
2872
- const o = Ks(), l = () => typeof a == "string" && a in pt ? /* @__PURE__ */ i.jsx(Ui, { bouIconId: pt[a] }) : a;
2872
+ const l = Ks(), o = () => typeof a == "string" && a in pt ? /* @__PURE__ */ i.jsx(Ui, { bouIconId: pt[a] }) : a;
2873
2873
  return /* @__PURE__ */ i.jsxs(Y.Item, { className: e, children: [
2874
- (!o || o && !r) && /* @__PURE__ */ i.jsxs("a", { href: s, referrerPolicy: "no-referrer-when-downgrade", children: [
2875
- l(),
2874
+ (!l || l && !r) && /* @__PURE__ */ i.jsxs("a", { href: s, referrerPolicy: "no-referrer-when-downgrade", children: [
2875
+ o(),
2876
2876
  t
2877
2877
  ] }),
2878
2878
  !!r && /* @__PURE__ */ i.jsxs("a", { href: r, referrerPolicy: "no-referrer-when-downgrade", children: [
2879
- l(),
2879
+ o(),
2880
2880
  t
2881
2881
  ] })
2882
2882
  ] });
@@ -2893,8 +2893,8 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2893
2893
  }, Ts = ({ apiUrl: e, redirectUrl: t, trackingInfo: s }) => {
2894
2894
  const r = new URLSearchParams({ redirectUrl: t });
2895
2895
  s && r.append("trackingInfo", s);
2896
- const a = `${e}/login?${r.toString()}`, o = `${e}/logout?${r.toString()}`;
2897
- return { loginUrl: a, logoutUrl: o };
2896
+ const a = `${e}/login?${r.toString()}`, l = `${e}/logout?${r.toString()}`;
2897
+ return { loginUrl: a, logoutUrl: l };
2898
2898
  }, yt = () => {
2899
2899
  const { apiUrl: e, redirectUrl: t } = Ut(), s = Gs();
2900
2900
  return Ts({ apiUrl: e, redirectUrl: t, trackingInfo: s });
@@ -2905,11 +2905,13 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2905
2905
  const { loginUrl: s } = Ts({ apiUrl: e, redirectUrl: t });
2906
2906
  window.location.replace(s);
2907
2907
  }, It = (e) => {
2908
+ var l;
2908
2909
  if (!e)
2909
2910
  return { user: { state: () => "NotAuthenticated" }, tryToLogon: Xt };
2910
2911
  const t = new Date(e.dateOfBirth), s = Jt(Qt.Mobile, e.phone), r = Jt(Qt.Fixed, e.phone), a = zt(s) ?? zt(r) ?? "";
2911
2912
  return {
2912
2913
  user: {
2914
+ ...(l = window.XTRA) == null ? void 0 : l.user,
2913
2915
  firstName: () => e.firstName,
2914
2916
  lastName: () => e.lastName,
2915
2917
  dob: () => t.getDate(),
@@ -2952,13 +2954,13 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2952
2954
  return bs({
2953
2955
  queryKey: Us,
2954
2956
  queryFn: async () => {
2955
- const o = await fetch(t, {
2957
+ const l = await fetch(t, {
2956
2958
  credentials: "include",
2957
2959
  mode: "cors",
2958
2960
  headers: { "Accept-Language": e.language }
2959
2961
  });
2960
- if (!o.ok) {
2961
- if (o.status === 401)
2962
+ if (!l.ok) {
2963
+ if (l.status === 401)
2962
2964
  return window.XTRA = { ...window.XTRA, ...It() }, window.postMessage(
2963
2965
  { source: "xtra-authentication", isAuthenticated: !1 },
2964
2966
  new URL(window.location.href).origin
@@ -2967,13 +2969,13 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2967
2969
  return { authenticationStatus: "Authenticated", profile: JSON.parse(s) };
2968
2970
  throw new Error("Failed to retrieve profile");
2969
2971
  }
2970
- const l = await o.json(), { firstName: c, lastName: m } = l;
2971
- return sessionStorage.setItem("profile", JSON.stringify({ firstName: c, lastName: m })), window.postMessage(
2972
+ const o = await l.json(), { firstName: c, lastName: v } = o;
2973
+ return sessionStorage.setItem("profile", JSON.stringify({ firstName: c, lastName: v })), window.postMessage(
2972
2974
  { source: "xtra-authentication", isAuthenticated: !0 },
2973
2975
  new URL(window.location.href).origin
2974
- ), window.XTRA = { ...window.XTRA, ...It(l) }, {
2976
+ ), window.XTRA = { ...window.XTRA, ...It(o) }, {
2975
2977
  authenticationStatus: "Authenticated",
2976
- profile: { firstName: l.firstName, lastName: l.lastName }
2978
+ profile: { firstName: o.firstName, lastName: o.lastName }
2977
2979
  };
2978
2980
  },
2979
2981
  initialData: r ? {
@@ -2983,17 +2985,8 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
2983
2985
  placeholderData: { authenticationStatus: "Pending" },
2984
2986
  refetchOnWindowFocus: !1
2985
2987
  });
2986
- }, Ki = (e) => e != null && e.length ? /* @__PURE__ */ i.jsx("ul", { className: "bou-menu__list", children: e == null ? void 0 : e.map(({ label: t, icon: s, url: r }, a) => /* @__PURE__ */ i.jsx(
2987
- fe,
2988
- {
2989
- className: "bou-menu-item",
2990
- mobileUrl: r,
2991
- icon: s,
2992
- label: t
2993
- },
2994
- a
2995
- )) }) : null, Gi = () => {
2996
- const { t: e } = _e(), t = cs(), { position: s, bouMenuItems: r } = Rs(), { logoutUrl: a } = yt(), l = Dt().getQueryData(Us), c = (l == null ? void 0 : l.profile.firstName) ?? "", m = (l == null ? void 0 : l.profile.lastName) ?? "";
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) ?? "";
2997
2990
  return /* @__PURE__ */ i.jsxs(Y, { type: "nav", id: "xtra-menu", position: s, children: [
2998
2991
  /* @__PURE__ */ i.jsx(
2999
2992
  Y.Trigger,
@@ -3005,14 +2998,23 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
3005
2998
  "button--authentication--authenticated"
3006
2999
  ),
3007
3000
  children: /* @__PURE__ */ i.jsxs("button", { children: [
3008
- /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Dr, { variant: "small", firstName: c, lastName: m }) }),
3001
+ /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx(Dr, { variant: "small", firstName: c, lastName: v }) }),
3009
3002
  /* @__PURE__ */ i.jsx("span", { className: "button__label", children: c }),
3010
3003
  /* @__PURE__ */ i.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ i.jsx(Tt, {}) })
3011
3004
  ] })
3012
3005
  }
3013
3006
  ),
3014
3007
  /* @__PURE__ */ i.jsxs(Y.Content, { as: "div", children: [
3015
- Ki(r),
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,
3010
+ {
3011
+ className: "bou-menu-item",
3012
+ mobileUrl: x,
3013
+ icon: u,
3014
+ label: g
3015
+ },
3016
+ m
3017
+ )) }),
3016
3018
  /* @__PURE__ */ i.jsxs("ul", { children: [
3017
3019
  /* @__PURE__ */ i.jsx(
3018
3020
  fe,
@@ -3064,7 +3066,7 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
3064
3066
  ] })
3065
3067
  ] })
3066
3068
  ] });
3067
- }, Vi = () => {
3069
+ }, Gi = () => {
3068
3070
  const { t: e } = _e();
3069
3071
  return /* @__PURE__ */ i.jsxs("button", { className: P("button", "button--neutral", "button--authentication"), children: [
3070
3072
  /* @__PURE__ */ i.jsx("div", { className: "button__icon", children: /* @__PURE__ */ i.jsx("i", { className: "spinner" }) }),
@@ -3073,7 +3075,7 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
3073
3075
  "..."
3074
3076
  ] })
3075
3077
  ] });
3076
- }, qi = ({ className: e }) => {
3078
+ }, Vi = ({ className: e }) => {
3077
3079
  const { t } = _e(), { loginUrl: s } = yt();
3078
3080
  return /* @__PURE__ */ i.jsxs(
3079
3081
  "a",
@@ -3094,7 +3096,7 @@ const Ti = "/icons/bouMenuIcons.svg", Ui = ({
3094
3096
  }
3095
3097
  );
3096
3098
  };
3097
- const Wi = () => {
3099
+ const qi = () => {
3098
3100
  const { t: e } = _e(), { loginUrl: t } = yt(), s = cs(), { position: r } = Rs();
3099
3101
  return /* @__PURE__ */ i.jsxs(
3100
3102
  Y,
@@ -3122,17 +3124,17 @@ const Wi = () => {
3122
3124
  ]
3123
3125
  }
3124
3126
  );
3125
- }, Zi = () => {
3127
+ }, Wi = () => {
3126
3128
  var t, s;
3127
3129
  const e = Qs();
3128
- return ((t = e.data) == null ? void 0 : t.authenticationStatus) === "Authenticated" ? /* @__PURE__ */ i.jsx(Gi, {}) : ((s = e.data) == null ? void 0 : s.authenticationStatus) === "NotAuthenticated" || e.isError ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3129
- /* @__PURE__ */ i.jsx(qi, {}),
3130
- /* @__PURE__ */ i.jsx(Wi, {})
3131
- ] }) : /* @__PURE__ */ i.jsx(Vi, {});
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, {});
3132
3134
  }, Hs = () => {
3133
3135
  const { apiUrl: e } = Ut();
3134
3136
  return `${`${e}/xtra`}/authentication/v1/gdpr`;
3135
- }, Yi = () => {
3137
+ }, Zi = () => {
3136
3138
  const e = Hs(), t = new vs();
3137
3139
  return Er({
3138
3140
  mutationFn: async (r) => {
@@ -3150,67 +3152,67 @@ const Wi = () => {
3150
3152
  await t.invalidateQueries({ queryKey: ["gdpr"] });
3151
3153
  }
3152
3154
  });
3153
- }, zi = () => {
3154
- var o;
3155
- const { i18n: e } = _e(), t = Hs(), r = ((o = Qs().data) == null ? void 0 : o.authenticationStatus) === "Authenticated";
3155
+ }, Yi = () => {
3156
+ var l;
3157
+ const { i18n: e } = _e(), t = Hs(), r = ((l = Qs().data) == null ? void 0 : l.authenticationStatus) === "Authenticated";
3156
3158
  return bs({
3157
3159
  queryKey: ["gdpr"],
3158
3160
  queryFn: async () => {
3159
- const l = await fetch(`${t}/tc/check`, {
3161
+ const o = await fetch(`${t}/tc/check`, {
3160
3162
  credentials: "include",
3161
3163
  mode: "cors",
3162
3164
  headers: { "Accept-Language": e.language }
3163
3165
  });
3164
- if (!l.ok)
3166
+ if (!o.ok)
3165
3167
  throw new Error("Network response was not ok");
3166
- return l.status === 204 ? [] : await l.json();
3168
+ return o.status === 204 ? [] : await o.json();
3167
3169
  },
3168
3170
  enabled: r
3169
3171
  });
3170
- }, Ji = () => {
3172
+ }, zi = () => {
3171
3173
  var y;
3172
3174
  const { t: e } = _e();
3173
3175
  Vs({ element: "xtra-authentication" });
3174
- const { logoutUrl: t } = yt(), s = d.useRef(null), [r, a] = d.useState(0), [o, l] = d.useState({}), { mutate: c, isError: m } = Yi(), { AccessibleFormMessage: C, formRef: u } = qs({ submitCount: r, errors: o }), b = zi(), v = !!((y = b.data) != null && y.length), f = e("termsAndConditions.error.required"), w = () => {
3175
- var g;
3176
- (g = s == null ? void 0 : s.current) == null || g.click(), document.body.style.removeProperty("overflow");
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 = () => {
3177
+ var C;
3178
+ (C = s == null ? void 0 : s.current) == null || C.click(), document.body.style.removeProperty("overflow");
3177
3179
  };
3178
3180
  d.useEffect(() => {
3179
- v && document.body.style.setProperty("overflow", "hidden");
3180
- }, [v]), d.useEffect(() => {
3181
- m && l({ acceptedTC: f });
3182
- }, [f, m]);
3183
- const E = (g) => {
3184
- g.preventDefault(), a(r + 1);
3185
- const { acceptedTC: S } = g.target;
3181
+ m && document.body.style.setProperty("overflow", "hidden");
3182
+ }, [m]), d.useEffect(() => {
3183
+ v && o({ acceptedTC: f });
3184
+ }, [f, v]);
3185
+ const E = (C) => {
3186
+ C.preventDefault(), a(r + 1);
3187
+ const { acceptedTC: S } = C.target;
3186
3188
  if (S instanceof RadioNodeList) {
3187
3189
  const _ = Object.values(S);
3188
- _.every((L) => L.checked) ? (l({}), c(_.map((L) => L.value)), w()) : l({ acceptedTC: f });
3190
+ _.every((L) => L.checked) ? (o({}), c(_.map((L) => L.value)), w()) : o({ acceptedTC: f });
3189
3191
  } else
3190
- S != null && S.checked ? (l({}), c([S.value]), w()) : l({ acceptedTC: f });
3192
+ S != null && S.checked ? (o({}), c([S.value]), w()) : o({ acceptedTC: f });
3191
3193
  };
3192
- return v ? /* @__PURE__ */ i.jsxs(H, { defaultOpen: v, isModal: !0, children: [
3193
- C,
3194
+ return m ? /* @__PURE__ */ i.jsxs(H, { defaultOpen: m, isModal: !0, children: [
3195
+ g,
3194
3196
  /* @__PURE__ */ i.jsxs(H.Root, { children: [
3195
- /* @__PURE__ */ i.jsx(H.Header, { children: /* @__PURE__ */ i.jsx(H.Title, { icon: /* @__PURE__ */ i.jsx("i", { className: "commerce__icon" }), children: /* @__PURE__ */ i.jsx(en, { children: e("termsAndConditions.title") }) }) }),
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") }) }) }),
3196
3198
  /* @__PURE__ */ i.jsx(H.Body, { children: /* @__PURE__ */ i.jsxs($s, { ref: u, id: "tc-form", onSubmit: E, children: [
3197
- /* @__PURE__ */ i.jsxs(Ii, { children: [
3199
+ /* @__PURE__ */ i.jsxs(Xi, { children: [
3198
3200
  e("termsAndConditions.description"),
3199
- o.acceptedTC && /* @__PURE__ */ i.jsx(tn, { children: f })
3201
+ l.acceptedTC && /* @__PURE__ */ i.jsx(en, { children: f })
3200
3202
  ] }),
3201
- b.data.map(({ tcCode: g, title: S, URL: _ }) => /* @__PURE__ */ i.jsx(
3203
+ x.data.map(({ tcCode: C, title: S, URL: _ }) => /* @__PURE__ */ i.jsx(
3202
3204
  je,
3203
3205
  {
3204
- id: g,
3205
- value: g,
3206
+ id: C,
3207
+ value: C,
3206
3208
  name: "acceptedTC",
3207
3209
  variant: "primary",
3208
3210
  children: /* @__PURE__ */ i.jsxs(je.Content, { children: [
3209
- /* @__PURE__ */ i.jsx(Xi, { children: S }),
3210
- /* @__PURE__ */ i.jsx(Bi, { href: _, children: e("termsAndConditions.action", { title: S }) })
3211
+ /* @__PURE__ */ i.jsx(Ji, { children: S }),
3212
+ /* @__PURE__ */ i.jsx(Ii, { href: _, children: e("termsAndConditions.action", { title: S }) })
3211
3213
  ] })
3212
3214
  },
3213
- g
3215
+ C
3214
3216
  ))
3215
3217
  ] }) }),
3216
3218
  /* @__PURE__ */ i.jsxs(H.Footer, { children: [
@@ -3226,15 +3228,15 @@ const Wi = () => {
3226
3228
  ] })
3227
3229
  ] })
3228
3230
  ] }) : /* @__PURE__ */ i.jsx(i.Fragment, {});
3229
- }, Xi = ({
3231
+ }, Ji = ({
3230
3232
  children: e,
3231
3233
  ...t
3232
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 }));
3233
3235
  $s.displayName = "TermsAndConditionsForm";
3234
- const Ii = ({
3236
+ const Xi = ({
3235
3237
  children: e,
3236
3238
  ...t
3237
- }) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...t, children: e }), Bi = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx(
3239
+ }) => /* @__PURE__ */ i.jsx("p", { className: "form--tc__description", ...t, children: e }), Ii = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx(
3238
3240
  "a",
3239
3241
  {
3240
3242
  className: "form--tc__link",
@@ -3245,10 +3247,10 @@ const Ii = ({
3245
3247
  ...t,
3246
3248
  children: e
3247
3249
  }
3248
- ), en = ({ children: e }) => /* @__PURE__ */ i.jsx("h1", { className: "form--tc__title", children: e }), tn = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx("span", { className: "form--tc__error", role: "alert", ...t, children: e }), sn = new vs(), an = ({ environment: e, redirectUrl: t, apiUrl: s, position: r, commerceId: a, bouMenuItems: o }) => /* @__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: sn, children: [
3249
- /* @__PURE__ */ i.jsx(Qi, { position: r, bouMenuItems: o, children: /* @__PURE__ */ i.jsx(Zi, {}) }),
3250
- /* @__PURE__ */ i.jsx(Ji, {})
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, {})
3251
3253
  ] }) }) }) });
3252
3254
  export {
3253
- an as default
3255
+ nn as default
3254
3256
  };