@myxtra/authentication-green 1.9.4 → 1.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { r as d, j as n, g as _t, u as q, a as Ke, b as St, E as Et } from "./index-405906b4.mjs";
2
- class V {
1
+ import { r as d, j as n, g as _t, u as H, a as He, b as St, E as Et } from "./index-379e9807.mjs";
2
+ class G {
3
3
  constructor() {
4
4
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
5
5
  }
@@ -28,7 +28,7 @@ function Pt(e, t) {
28
28
  function fe(e) {
29
29
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
30
30
  }
31
- function He(e, t) {
31
+ function Ke(e, t) {
32
32
  return Math.max(e + (t || 0) - Date.now(), 0);
33
33
  }
34
34
  function J(e, t, s) {
@@ -85,7 +85,7 @@ function Re(e, t) {
85
85
  }
86
86
  return !(typeof l == "boolean" && t.isStale() !== l || typeof i < "u" && i !== t.state.fetchStatus || a && !a(t));
87
87
  }
88
- function Ae(e, t) {
88
+ function Oe(e, t) {
89
89
  const {
90
90
  exact: s,
91
91
  fetching: r,
@@ -96,7 +96,7 @@ function Ae(e, t) {
96
96
  if (!t.options.mutationKey)
97
97
  return !1;
98
98
  if (s) {
99
- if (U(t.options.mutationKey) !== U(a))
99
+ if (Q(t.options.mutationKey) !== Q(a))
100
100
  return !1;
101
101
  } else if (!se(t.options.mutationKey, a))
102
102
  return !1;
@@ -104,27 +104,27 @@ function Ae(e, t) {
104
104
  return !(typeof r == "boolean" && t.state.status === "loading" !== r || i && !i(t));
105
105
  }
106
106
  function we(e, t) {
107
- return ((t == null ? void 0 : t.queryKeyHashFn) || U)(e);
107
+ return ((t == null ? void 0 : t.queryKeyHashFn) || Q)(e);
108
108
  }
109
- function U(e) {
109
+ function Q(e) {
110
110
  return JSON.stringify(e, (t, s) => pe(s) ? Object.keys(s).sort().reduce((r, i) => (r[i] = s[i], r), {}) : s);
111
111
  }
112
112
  function se(e, t) {
113
- return Ge(e, t);
114
- }
115
- function Ge(e, t) {
116
- return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((s) => !Ge(e[s], t[s])) : !1;
113
+ return Ve(e, t);
117
114
  }
118
115
  function Ve(e, t) {
116
+ 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;
117
+ }
118
+ function Ge(e, t) {
119
119
  if (e === t)
120
120
  return e;
121
- const s = Oe(e) && Oe(t);
121
+ const s = Ae(e) && Ae(t);
122
122
  if (s || pe(e) && pe(t)) {
123
123
  const r = s ? e.length : Object.keys(e).length, i = s ? t : Object.keys(t), a = i.length, o = s ? [] : {};
124
124
  let l = 0;
125
125
  for (let c = 0; c < a; c++) {
126
126
  const h = s ? c : i[c];
127
- o[h] = Ve(e[h], t[h]), o[h] === e[h] && l++;
127
+ o[h] = Ge(e[h], t[h]), o[h] === e[h] && l++;
128
128
  }
129
129
  return r === a && l === r ? e : o;
130
130
  }
@@ -138,19 +138,19 @@ function re(e, t) {
138
138
  return !1;
139
139
  return !0;
140
140
  }
141
- function Oe(e) {
141
+ function Ae(e) {
142
142
  return Array.isArray(e) && e.length === Object.keys(e).length;
143
143
  }
144
144
  function pe(e) {
145
- if (!Ne(e))
145
+ if (!ke(e))
146
146
  return !1;
147
147
  const t = e.constructor;
148
148
  if (typeof t > "u")
149
149
  return !0;
150
150
  const s = t.prototype;
151
- return !(!Ne(s) || !s.hasOwnProperty("isPrototypeOf"));
151
+ return !(!ke(s) || !s.hasOwnProperty("isPrototypeOf"));
152
152
  }
153
- function Ne(e) {
153
+ function ke(e) {
154
154
  return Object.prototype.toString.call(e) === "[object Object]";
155
155
  }
156
156
  function I(e) {
@@ -164,14 +164,14 @@ function $e(e) {
164
164
  function Fe(e) {
165
165
  $e(0).then(e);
166
166
  }
167
- function At() {
167
+ function Ot() {
168
168
  if (typeof AbortController == "function")
169
169
  return new AbortController();
170
170
  }
171
171
  function ve(e, t, s) {
172
- return s.isDataEqual != null && s.isDataEqual(e, t) ? e : typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? Ve(e, t) : t;
172
+ return s.isDataEqual != null && s.isDataEqual(e, t) ? e : typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? Ge(e, t) : t;
173
173
  }
174
- class Ot extends V {
174
+ class At extends G {
175
175
  constructor() {
176
176
  super(), this.setup = (t) => {
177
177
  if (!X && window.addEventListener) {
@@ -211,16 +211,16 @@ class Ot extends V {
211
211
  return typeof this.focused == "boolean" ? this.focused : typeof document > "u" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
212
212
  }
213
213
  }
214
- const ne = new Ot(), ke = ["online", "offline"];
215
- class Nt extends V {
214
+ const ne = new At(), Ne = ["online", "offline"];
215
+ class kt extends G {
216
216
  constructor() {
217
217
  super(), this.setup = (t) => {
218
218
  if (!X && window.addEventListener) {
219
219
  const s = () => t();
220
- return ke.forEach((r) => {
220
+ return Ne.forEach((r) => {
221
221
  window.addEventListener(r, s, !1);
222
222
  }), () => {
223
- ke.forEach((r) => {
223
+ Ne.forEach((r) => {
224
224
  window.removeEventListener(r, s);
225
225
  });
226
226
  };
@@ -256,7 +256,7 @@ class Nt extends V {
256
256
  return typeof this.online == "boolean" ? this.online : typeof navigator > "u" || typeof navigator.onLine > "u" ? !0 : navigator.onLine;
257
257
  }
258
258
  }
259
- const ie = new Nt();
259
+ const ie = new kt();
260
260
  function Ft(e) {
261
261
  return Math.min(1e3 * 2 ** e, 3e4);
262
262
  }
@@ -276,18 +276,18 @@ function Ze(e) {
276
276
  const l = new Promise((m, C) => {
277
277
  a = m, o = C;
278
278
  }), c = (m) => {
279
- r || (f(new We(m)), e.abort == null || e.abort());
279
+ r || (p(new We(m)), e.abort == null || e.abort());
280
280
  }, h = () => {
281
281
  t = !0;
282
282
  }, u = () => {
283
283
  t = !1;
284
- }, p = () => !ne.isFocused() || e.networkMode !== "always" && !ie.isOnline(), v = (m) => {
284
+ }, f = () => !ne.isFocused() || e.networkMode !== "always" && !ie.isOnline(), v = (m) => {
285
285
  r || (r = !0, e.onSuccess == null || e.onSuccess(m), i == null || i(), a(m));
286
- }, f = (m) => {
286
+ }, p = (m) => {
287
287
  r || (r = !0, e.onError == null || e.onError(m), i == null || i(), o(m));
288
288
  }, y = () => new Promise((m) => {
289
289
  i = (C) => {
290
- const _ = r || !p();
290
+ const _ = r || !f();
291
291
  return _ && m(C), _;
292
292
  }, e.onPause == null || e.onPause();
293
293
  }).then(() => {
@@ -305,16 +305,16 @@ function Ze(e) {
305
305
  var _, w;
306
306
  if (r)
307
307
  return;
308
- const R = (_ = e.retry) != null ? _ : 3, N = (w = e.retryDelay) != null ? w : Ft, S = typeof N == "function" ? N(s, C) : N, j = R === !0 || typeof R == "number" && s < R || typeof R == "function" && R(s, C);
308
+ const P = (_ = e.retry) != null ? _ : 3, k = (w = e.retryDelay) != null ? w : Ft, S = typeof k == "function" ? k(s, C) : k, j = P === !0 || typeof P == "number" && s < P || typeof P == "function" && P(s, C);
309
309
  if (t || !j) {
310
- f(C);
310
+ p(C);
311
311
  return;
312
312
  }
313
313
  s++, e.onFail == null || e.onFail(s, C), $e(S).then(() => {
314
- if (p())
314
+ if (f())
315
315
  return y();
316
316
  }).then(() => {
317
- t ? f(C) : x();
317
+ t ? p(C) : x();
318
318
  });
319
319
  });
320
320
  };
@@ -327,35 +327,35 @@ function Ze(e) {
327
327
  };
328
328
  }
329
329
  const je = console;
330
- function kt() {
330
+ function Nt() {
331
331
  let e = [], t = 0, s = (u) => {
332
332
  u();
333
333
  }, r = (u) => {
334
334
  u();
335
335
  };
336
336
  const i = (u) => {
337
- let p;
337
+ let f;
338
338
  t++;
339
339
  try {
340
- p = u();
340
+ f = u();
341
341
  } finally {
342
342
  t--, t || l();
343
343
  }
344
- return p;
344
+ return f;
345
345
  }, a = (u) => {
346
346
  t ? e.push(u) : Fe(() => {
347
347
  s(u);
348
348
  });
349
- }, o = (u) => (...p) => {
349
+ }, o = (u) => (...f) => {
350
350
  a(() => {
351
- u(...p);
351
+ u(...f);
352
352
  });
353
353
  }, l = () => {
354
354
  const u = e;
355
355
  e = [], u.length && Fe(() => {
356
356
  r(() => {
357
- u.forEach((p) => {
358
- s(p);
357
+ u.forEach((f) => {
358
+ s(f);
359
359
  });
360
360
  });
361
361
  });
@@ -372,7 +372,7 @@ function kt() {
372
372
  }
373
373
  };
374
374
  }
375
- const A = kt();
375
+ const O = Nt();
376
376
  class ze {
377
377
  destroy() {
378
378
  this.clearGcTimeout();
@@ -444,7 +444,7 @@ class Mt extends ze {
444
444
  return this.state.isInvalidated || !this.state.dataUpdatedAt || this.observers.some((t) => t.getCurrentResult().isStale);
445
445
  }
446
446
  isStaleByTime(t = 0) {
447
- return this.state.isInvalidated || !this.state.dataUpdatedAt || !He(this.state.dataUpdatedAt, t);
447
+ return this.state.isInvalidated || !this.state.dataUpdatedAt || !Ke(this.state.dataUpdatedAt, t);
448
448
  }
449
449
  onFocus() {
450
450
  var t;
@@ -497,16 +497,15 @@ class Mt extends ze {
497
497
  }
498
498
  }
499
499
  if (t && this.setOptions(t), !this.options.queryFn) {
500
- const f = this.observers.find((y) => y.options.queryFn);
501
- f && this.setOptions(f.options);
500
+ const p = this.observers.find((y) => y.options.queryFn);
501
+ p && this.setOptions(p.options);
502
502
  }
503
- Array.isArray(this.options.queryKey);
504
- const o = At(), l = {
503
+ const o = Ot(), l = {
505
504
  queryKey: this.queryKey,
506
505
  pageParam: void 0,
507
506
  meta: this.meta
508
- }, c = (f) => {
509
- Object.defineProperty(f, "signal", {
507
+ }, c = (p) => {
508
+ Object.defineProperty(p, "signal", {
510
509
  enumerable: !0,
511
510
  get: () => {
512
511
  if (o)
@@ -523,38 +522,38 @@ class Mt extends ze {
523
522
  fetchFn: h
524
523
  };
525
524
  if (c(u), (r = this.options.behavior) == null || r.onFetch(u), this.revertState = this.state, this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((i = u.fetchOptions) == null ? void 0 : i.meta)) {
526
- var p;
525
+ var f;
527
526
  this.dispatch({
528
527
  type: "fetch",
529
- meta: (p = u.fetchOptions) == null ? void 0 : p.meta
528
+ meta: (f = u.fetchOptions) == null ? void 0 : f.meta
530
529
  });
531
530
  }
532
- const v = (f) => {
533
- if (te(f) && f.silent || this.dispatch({
531
+ const v = (p) => {
532
+ if (te(p) && p.silent || this.dispatch({
534
533
  type: "error",
535
- error: f
536
- }), !te(f)) {
534
+ error: p
535
+ }), !te(p)) {
537
536
  var y, x, m, C;
538
- (y = (x = this.cache.config).onError) == null || y.call(x, f, this), (m = (C = this.cache.config).onSettled) == null || m.call(C, this.state.data, f, this);
537
+ (y = (x = this.cache.config).onError) == null || y.call(x, p, this), (m = (C = this.cache.config).onSettled) == null || m.call(C, this.state.data, p, this);
539
538
  }
540
539
  this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
541
540
  };
542
541
  return this.retryer = Ze({
543
542
  fn: u.fetchFn,
544
543
  abort: o == null ? void 0 : o.abort.bind(o),
545
- onSuccess: (f) => {
544
+ onSuccess: (p) => {
546
545
  var y, x, m, C;
547
- if (typeof f > "u") {
546
+ if (typeof p > "u") {
548
547
  v(new Error(this.queryHash + " data is undefined"));
549
548
  return;
550
549
  }
551
- this.setData(f), (y = (x = this.cache.config).onSuccess) == null || y.call(x, f, this), (m = (C = this.cache.config).onSettled) == null || m.call(C, f, this.state.error, this), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
550
+ this.setData(p), (y = (x = this.cache.config).onSuccess) == null || y.call(x, p, this), (m = (C = this.cache.config).onSettled) == null || m.call(C, p, this.state.error, this), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
552
551
  },
553
552
  onError: v,
554
- onFail: (f, y) => {
553
+ onFail: (p, y) => {
555
554
  this.dispatch({
556
555
  type: "failed",
557
- failureCount: f,
556
+ failureCount: p,
558
557
  error: y
559
558
  });
560
559
  },
@@ -623,7 +622,8 @@ class Mt extends ze {
623
622
  case "error":
624
623
  const o = t.error;
625
624
  return te(o) && o.revert && this.revertState ? {
626
- ...this.revertState
625
+ ...this.revertState,
626
+ fetchStatus: "idle"
627
627
  } : {
628
628
  ...r,
629
629
  error: o,
@@ -646,7 +646,7 @@ class Mt extends ze {
646
646
  };
647
647
  }
648
648
  };
649
- this.state = s(this.state), A.batch(() => {
649
+ this.state = s(this.state), O.batch(() => {
650
650
  this.observers.forEach((r) => {
651
651
  r.onQueryUpdate(t);
652
652
  }), this.cache.notify({
@@ -674,7 +674,7 @@ function Lt(e) {
674
674
  fetchStatus: "idle"
675
675
  };
676
676
  }
677
- class Dt extends V {
677
+ class Dt extends G {
678
678
  constructor(t) {
679
679
  super(), this.config = t || {}, this.queries = [], this.queriesMap = {};
680
680
  }
@@ -706,7 +706,7 @@ class Dt extends V {
706
706
  }));
707
707
  }
708
708
  clear() {
709
- A.batch(() => {
709
+ O.batch(() => {
710
710
  this.queries.forEach((t) => {
711
711
  this.remove(t);
712
712
  });
@@ -727,7 +727,7 @@ class Dt extends V {
727
727
  return Object.keys(r).length > 0 ? this.queries.filter((i) => Re(r, i)) : this.queries;
728
728
  }
729
729
  notify(t) {
730
- A.batch(() => {
730
+ O.batch(() => {
731
731
  this.listeners.forEach(({
732
732
  listener: s
733
733
  }) => {
@@ -736,14 +736,14 @@ class Dt extends V {
736
736
  });
737
737
  }
738
738
  onFocus() {
739
- A.batch(() => {
739
+ O.batch(() => {
740
740
  this.queries.forEach((t) => {
741
741
  t.onFocus();
742
742
  });
743
743
  });
744
744
  }
745
745
  onOnline() {
746
- A.batch(() => {
746
+ O.batch(() => {
747
747
  this.queries.forEach((t) => {
748
748
  t.onOnline();
749
749
  });
@@ -795,11 +795,11 @@ class Tt extends ze {
795
795
  var j;
796
796
  return this.retryer = Ze({
797
797
  fn: () => this.options.mutationFn ? this.options.mutationFn(this.state.variables) : Promise.reject("No mutationFn found"),
798
- onFail: (b, k) => {
798
+ onFail: (b, N) => {
799
799
  this.dispatch({
800
800
  type: "failed",
801
801
  failureCount: b,
802
- error: k
802
+ error: N
803
803
  });
804
804
  },
805
805
  onPause: () => {
@@ -820,12 +820,12 @@ class Tt extends ze {
820
820
  try {
821
821
  var r, i, a, o, l, c, h, u;
822
822
  if (!s) {
823
- var p, v, f, y;
823
+ var f, v, p, y;
824
824
  this.dispatch({
825
825
  type: "loading",
826
826
  variables: this.options.variables
827
- }), await ((p = (v = this.mutationCache.config).onMutate) == null ? void 0 : p.call(v, this.state.variables, this));
828
- const b = await ((f = (y = this.options).onMutate) == null ? void 0 : f.call(y, this.state.variables));
827
+ }), await ((f = (v = this.mutationCache.config).onMutate) == null ? void 0 : f.call(v, this.state.variables, this));
828
+ const b = await ((p = (y = this.options).onMutate) == null ? void 0 : p.call(y, this.state.variables));
829
829
  b !== this.state.context && this.dispatch({
830
830
  type: "loading",
831
831
  context: b,
@@ -839,8 +839,8 @@ class Tt extends ze {
839
839
  }), j;
840
840
  } catch (j) {
841
841
  try {
842
- var x, m, C, _, w, R, N, S;
843
- throw await ((x = (m = this.mutationCache.config).onError) == null ? void 0 : x.call(m, j, this.state.variables, this.state.context, this)), await ((C = (_ = this.options).onError) == null ? void 0 : C.call(_, j, this.state.variables, this.state.context)), await ((w = (R = this.mutationCache.config).onSettled) == null ? void 0 : w.call(R, void 0, j, this.state.variables, this.state.context, this)), await ((N = (S = this.options).onSettled) == null ? void 0 : N.call(S, void 0, j, this.state.variables, this.state.context)), j;
842
+ var x, m, C, _, w, P, k, S;
843
+ throw await ((x = (m = this.mutationCache.config).onError) == null ? void 0 : x.call(m, j, this.state.variables, this.state.context, this)), await ((C = (_ = this.options).onError) == null ? void 0 : C.call(_, j, this.state.variables, this.state.context)), await ((w = (P = this.mutationCache.config).onSettled) == null ? void 0 : w.call(P, void 0, j, this.state.variables, this.state.context, this)), await ((k = (S = this.options).onSettled) == null ? void 0 : k.call(S, void 0, j, this.state.variables, this.state.context)), j;
844
844
  } finally {
845
845
  this.dispatch({
846
846
  type: "error",
@@ -907,7 +907,7 @@ class Tt extends ze {
907
907
  };
908
908
  }
909
909
  };
910
- this.state = s(this.state), A.batch(() => {
910
+ this.state = s(this.state), O.batch(() => {
911
911
  this.observers.forEach((r) => {
912
912
  r.onMutationUpdate(t);
913
913
  }), this.mutationCache.notify({
@@ -930,7 +930,7 @@ function Ye() {
930
930
  variables: void 0
931
931
  };
932
932
  }
933
- class Ut extends V {
933
+ class Ut extends G {
934
934
  constructor(t) {
935
935
  super(), this.config = t || {}, this.mutations = [], this.mutationId = 0;
936
936
  }
@@ -958,7 +958,7 @@ class Ut extends V {
958
958
  });
959
959
  }
960
960
  clear() {
961
- A.batch(() => {
961
+ O.batch(() => {
962
962
  this.mutations.forEach((t) => {
963
963
  this.remove(t);
964
964
  });
@@ -968,13 +968,13 @@ class Ut extends V {
968
968
  return this.mutations;
969
969
  }
970
970
  find(t) {
971
- return typeof t.exact > "u" && (t.exact = !0), this.mutations.find((s) => Ae(t, s));
971
+ return typeof t.exact > "u" && (t.exact = !0), this.mutations.find((s) => Oe(t, s));
972
972
  }
973
973
  findAll(t) {
974
- return this.mutations.filter((s) => Ae(t, s));
974
+ return this.mutations.filter((s) => Oe(t, s));
975
975
  }
976
976
  notify(t) {
977
- A.batch(() => {
977
+ O.batch(() => {
978
978
  this.listeners.forEach(({
979
979
  listener: s
980
980
  }) => {
@@ -986,7 +986,7 @@ class Ut extends V {
986
986
  var t;
987
987
  return this.resuming = ((t = this.resuming) != null ? t : Promise.resolve()).then(() => {
988
988
  const s = this.mutations.filter((r) => r.state.isPaused);
989
- return A.batch(() => s.reduce((r, i) => r.then(() => i.continue().catch(M)), Promise.resolve()));
989
+ return O.batch(() => s.reduce((r, i) => r.then(() => i.continue().catch(M)), Promise.resolve()));
990
990
  }).then(() => {
991
991
  this.resuming = void 0;
992
992
  }), this.resuming;
@@ -997,8 +997,8 @@ function Qt() {
997
997
  onFetch: (e) => {
998
998
  e.fetchFn = () => {
999
999
  var t, s, r, i, a, o;
1000
- const l = (t = e.fetchOptions) == null || (s = t.meta) == null ? void 0 : s.refetchPage, c = (r = e.fetchOptions) == null || (i = r.meta) == null ? void 0 : i.fetchMore, h = c == null ? void 0 : c.pageParam, u = (c == null ? void 0 : c.direction) === "forward", p = (c == null ? void 0 : c.direction) === "backward", v = ((a = e.state.data) == null ? void 0 : a.pages) || [], f = ((o = e.state.data) == null ? void 0 : o.pageParams) || [];
1001
- let y = f, x = !1;
1000
+ const l = (t = e.fetchOptions) == null || (s = t.meta) == null ? void 0 : s.refetchPage, c = (r = e.fetchOptions) == null || (i = r.meta) == null ? void 0 : i.fetchMore, h = c == null ? void 0 : c.pageParam, u = (c == null ? void 0 : c.direction) === "forward", f = (c == null ? void 0 : c.direction) === "backward", v = ((a = e.state.data) == null ? void 0 : a.pages) || [], p = ((o = e.state.data) == null ? void 0 : o.pageParams) || [];
1001
+ let y = p, x = !1;
1002
1002
  const m = (S) => {
1003
1003
  Object.defineProperty(S, "signal", {
1004
1004
  enumerable: !0,
@@ -1015,7 +1015,7 @@ function Qt() {
1015
1015
  return e.signal;
1016
1016
  }
1017
1017
  });
1018
- }, C = e.options.queryFn || (() => Promise.reject("Missing queryFn for queryKey '" + e.options.queryHash + "'")), _ = (S, j, b, k) => (y = k ? [j, ...y] : [...y, j], k ? [b, ...S] : [...S, b]), w = (S, j, b, k) => {
1018
+ }, C = e.options.queryFn || (() => Promise.reject("Missing queryFn for queryKey '" + e.options.queryHash + "'")), _ = (S, j, b, N) => (y = N ? [j, ...y] : [...y, j], N ? [b, ...S] : [...S, b]), w = (S, j, b, N) => {
1019
1019
  if (x)
1020
1020
  return Promise.reject("Cancelled");
1021
1021
  if (typeof b > "u" && !j && S.length)
@@ -1027,31 +1027,31 @@ function Qt() {
1027
1027
  };
1028
1028
  m(Y);
1029
1029
  const de = C(Y);
1030
- return Promise.resolve(de).then((jt) => _(S, b, jt, k));
1030
+ return Promise.resolve(de).then((jt) => _(S, b, jt, N));
1031
1031
  };
1032
- let R;
1032
+ let P;
1033
1033
  if (!v.length)
1034
- R = w([]);
1034
+ P = w([]);
1035
1035
  else if (u) {
1036
1036
  const S = typeof h < "u", j = S ? h : Me(e.options, v);
1037
- R = w(v, S, j);
1038
- } else if (p) {
1037
+ P = w(v, S, j);
1038
+ } else if (f) {
1039
1039
  const S = typeof h < "u", j = S ? h : qt(e.options, v);
1040
- R = w(v, S, j, !0);
1040
+ P = w(v, S, j, !0);
1041
1041
  } else {
1042
1042
  y = [];
1043
1043
  const S = typeof e.options.getNextPageParam > "u";
1044
- R = (l && v[0] ? l(v[0], 0, v) : !0) ? w([], S, f[0]) : Promise.resolve(_([], f[0], v[0]));
1044
+ P = (l && v[0] ? l(v[0], 0, v) : !0) ? w([], S, p[0]) : Promise.resolve(_([], p[0], v[0]));
1045
1045
  for (let b = 1; b < v.length; b++)
1046
- R = R.then((k) => {
1046
+ P = P.then((N) => {
1047
1047
  if (l && v[b] ? l(v[b], b, v) : !0) {
1048
- const de = S ? f[b] : Me(e.options, k);
1049
- return w(k, S, de);
1048
+ const de = S ? p[b] : Me(e.options, N);
1049
+ return w(N, S, de);
1050
1050
  }
1051
- return Promise.resolve(_(k, f[b], v[b]));
1051
+ return Promise.resolve(_(N, p[b], v[b]));
1052
1052
  });
1053
1053
  }
1054
- return R.then((S) => ({
1054
+ return P.then((S) => ({
1055
1055
  pages: S,
1056
1056
  pageParams: y
1057
1057
  }));
@@ -1118,7 +1118,7 @@ class Je {
1118
1118
  });
1119
1119
  }
1120
1120
  setQueriesData(t, s, r) {
1121
- return A.batch(() => this.getQueryCache().findAll(t).map(({
1121
+ return O.batch(() => this.getQueryCache().findAll(t).map(({
1122
1122
  queryKey: i
1123
1123
  }) => [i, this.setQueryData(i, s, r)]));
1124
1124
  }
@@ -1128,7 +1128,7 @@ class Je {
1128
1128
  }
1129
1129
  removeQueries(t, s) {
1130
1130
  const [r] = T(t, s), i = this.queryCache;
1131
- A.batch(() => {
1131
+ O.batch(() => {
1132
1132
  i.findAll(r).forEach((a) => {
1133
1133
  i.remove(a);
1134
1134
  });
@@ -1139,19 +1139,19 @@ class Je {
1139
1139
  type: "active",
1140
1140
  ...i
1141
1141
  };
1142
- return A.batch(() => (o.findAll(i).forEach((c) => {
1142
+ return O.batch(() => (o.findAll(i).forEach((c) => {
1143
1143
  c.reset();
1144
1144
  }), this.refetchQueries(l, a)));
1145
1145
  }
1146
1146
  cancelQueries(t, s, r) {
1147
1147
  const [i, a = {}] = T(t, s, r);
1148
1148
  typeof a.revert > "u" && (a.revert = !0);
1149
- const o = A.batch(() => this.queryCache.findAll(i).map((l) => l.cancel(a)));
1149
+ const o = O.batch(() => this.queryCache.findAll(i).map((l) => l.cancel(a)));
1150
1150
  return Promise.all(o).then(M).catch(M);
1151
1151
  }
1152
1152
  invalidateQueries(t, s, r) {
1153
1153
  const [i, a] = T(t, s, r);
1154
- return A.batch(() => {
1154
+ return O.batch(() => {
1155
1155
  var o, l;
1156
1156
  if (this.queryCache.findAll(i).forEach((h) => {
1157
1157
  h.invalidate();
@@ -1165,7 +1165,7 @@ class Je {
1165
1165
  });
1166
1166
  }
1167
1167
  refetchQueries(t, s, r) {
1168
- const [i, a] = T(t, s, r), o = A.batch(() => this.queryCache.findAll(i).filter((c) => !c.isDisabled()).map((c) => {
1168
+ const [i, a] = T(t, s, r), o = O.batch(() => this.queryCache.findAll(i).filter((c) => !c.isDisabled()).map((c) => {
1169
1169
  var h;
1170
1170
  return c.fetch(void 0, {
1171
1171
  ...a,
@@ -1213,7 +1213,7 @@ class Je {
1213
1213
  this.defaultOptions = t;
1214
1214
  }
1215
1215
  setQueryDefaults(t, s) {
1216
- const r = this.queryDefaults.find((i) => U(t) === U(i.queryKey));
1216
+ const r = this.queryDefaults.find((i) => Q(t) === Q(i.queryKey));
1217
1217
  r ? r.defaultOptions = s : this.queryDefaults.push({
1218
1218
  queryKey: t,
1219
1219
  defaultOptions: s
@@ -1226,7 +1226,7 @@ class Je {
1226
1226
  return s == null ? void 0 : s.defaultOptions;
1227
1227
  }
1228
1228
  setMutationDefaults(t, s) {
1229
- const r = this.mutationDefaults.find((i) => U(t) === U(i.mutationKey));
1229
+ const r = this.mutationDefaults.find((i) => Q(t) === Q(i.mutationKey));
1230
1230
  r ? r.defaultOptions = s : this.mutationDefaults.push({
1231
1231
  mutationKey: t,
1232
1232
  defaultOptions: s
@@ -1261,7 +1261,7 @@ class Je {
1261
1261
  this.queryCache.clear(), this.mutationCache.clear();
1262
1262
  }
1263
1263
  }
1264
- class Kt extends V {
1264
+ class Ht extends G {
1265
1265
  constructor(t, s) {
1266
1266
  super(), this.client = t, this.options = s, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(s);
1267
1267
  }
@@ -1299,7 +1299,7 @@ class Kt extends V {
1299
1299
  }
1300
1300
  getOptimisticResult(t) {
1301
1301
  const s = this.client.getQueryCache().build(this.client, t), r = this.createResult(s, t);
1302
- return Gt(this, r, t) && (this.currentResult = r, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), r;
1302
+ return Vt(this, r, t) && (this.currentResult = r, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), r;
1303
1303
  }
1304
1304
  getCurrentResult() {
1305
1305
  return this.currentResult;
@@ -1350,7 +1350,7 @@ class Kt extends V {
1350
1350
  updateStaleTimeout() {
1351
1351
  if (this.clearStaleTimeout(), X || this.currentResult.isStale || !fe(this.options.staleTime))
1352
1352
  return;
1353
- const s = He(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1353
+ const s = Ke(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1354
1354
  this.staleTimeoutId = setTimeout(() => {
1355
1355
  this.currentResult.isStale || this.updateResult();
1356
1356
  }, s);
@@ -1375,32 +1375,32 @@ class Kt extends V {
1375
1375
  }
1376
1376
  createResult(t, s) {
1377
1377
  const r = this.currentQuery, i = this.options, a = this.currentResult, o = this.currentResultState, l = this.currentResultOptions, c = t !== r, h = c ? t.state : this.currentQueryInitialState, u = c ? this.currentResult : this.previousQueryResult, {
1378
- state: p
1378
+ state: f
1379
1379
  } = t;
1380
1380
  let {
1381
1381
  dataUpdatedAt: v,
1382
- error: f,
1382
+ error: p,
1383
1383
  errorUpdatedAt: y,
1384
1384
  fetchStatus: x,
1385
1385
  status: m
1386
- } = p, C = !1, _ = !1, w;
1386
+ } = f, C = !1, _ = !1, w;
1387
1387
  if (s._optimisticResults) {
1388
- const b = this.hasListeners(), k = !b && Le(t, s), Y = b && De(t, r, s, i);
1389
- (k || Y) && (x = ue(t.options.networkMode) ? "fetching" : "paused", v || (m = "loading")), s._optimisticResults === "isRestoring" && (x = "idle");
1388
+ const b = this.hasListeners(), N = !b && Le(t, s), Y = b && De(t, r, s, i);
1389
+ (N || Y) && (x = ue(t.options.networkMode) ? "fetching" : "paused", v || (m = "loading")), s._optimisticResults === "isRestoring" && (x = "idle");
1390
1390
  }
1391
- if (s.keepPreviousData && !p.dataUpdatedAt && u != null && u.isSuccess && m !== "error")
1391
+ if (s.keepPreviousData && !f.dataUpdatedAt && u != null && u.isSuccess && m !== "error")
1392
1392
  w = u.data, v = u.dataUpdatedAt, m = u.status, C = !0;
1393
- else if (s.select && typeof p.data < "u")
1394
- if (a && p.data === (o == null ? void 0 : o.data) && s.select === this.selectFn)
1393
+ else if (s.select && typeof f.data < "u")
1394
+ if (a && f.data === (o == null ? void 0 : o.data) && s.select === this.selectFn)
1395
1395
  w = this.selectResult;
1396
1396
  else
1397
1397
  try {
1398
- this.selectFn = s.select, w = s.select(p.data), w = ve(a == null ? void 0 : a.data, w, s), this.selectResult = w, this.selectError = null;
1398
+ this.selectFn = s.select, w = s.select(f.data), w = ve(a == null ? void 0 : a.data, w, s), this.selectResult = w, this.selectError = null;
1399
1399
  } catch (b) {
1400
1400
  this.selectError = b;
1401
1401
  }
1402
1402
  else
1403
- w = p.data;
1403
+ w = f.data;
1404
1404
  if (typeof s.placeholderData < "u" && typeof w > "u" && m === "loading") {
1405
1405
  let b;
1406
1406
  if (a != null && a.isPlaceholderData && s.placeholderData === (l == null ? void 0 : l.placeholderData))
@@ -1408,36 +1408,36 @@ class Kt extends V {
1408
1408
  else if (b = typeof s.placeholderData == "function" ? s.placeholderData() : s.placeholderData, s.select && typeof b < "u")
1409
1409
  try {
1410
1410
  b = s.select(b), this.selectError = null;
1411
- } catch (k) {
1412
- this.selectError = k;
1411
+ } catch (N) {
1412
+ this.selectError = N;
1413
1413
  }
1414
1414
  typeof b < "u" && (m = "success", w = ve(a == null ? void 0 : a.data, b, s), _ = !0);
1415
1415
  }
1416
- this.selectError && (f = this.selectError, w = this.selectResult, y = Date.now(), m = "error");
1417
- const R = x === "fetching", N = m === "loading", S = m === "error";
1416
+ this.selectError && (p = this.selectError, w = this.selectResult, y = Date.now(), m = "error");
1417
+ const P = x === "fetching", k = m === "loading", S = m === "error";
1418
1418
  return {
1419
1419
  status: m,
1420
1420
  fetchStatus: x,
1421
- isLoading: N,
1421
+ isLoading: k,
1422
1422
  isSuccess: m === "success",
1423
1423
  isError: S,
1424
- isInitialLoading: N && R,
1424
+ isInitialLoading: k && P,
1425
1425
  data: w,
1426
1426
  dataUpdatedAt: v,
1427
- error: f,
1427
+ error: p,
1428
1428
  errorUpdatedAt: y,
1429
- failureCount: p.fetchFailureCount,
1430
- failureReason: p.fetchFailureReason,
1431
- errorUpdateCount: p.errorUpdateCount,
1432
- isFetched: p.dataUpdateCount > 0 || p.errorUpdateCount > 0,
1433
- isFetchedAfterMount: p.dataUpdateCount > h.dataUpdateCount || p.errorUpdateCount > h.errorUpdateCount,
1434
- isFetching: R,
1435
- isRefetching: R && !N,
1436
- isLoadingError: S && p.dataUpdatedAt === 0,
1429
+ failureCount: f.fetchFailureCount,
1430
+ failureReason: f.fetchFailureReason,
1431
+ errorUpdateCount: f.errorUpdateCount,
1432
+ isFetched: f.dataUpdateCount > 0 || f.errorUpdateCount > 0,
1433
+ isFetchedAfterMount: f.dataUpdateCount > h.dataUpdateCount || f.errorUpdateCount > h.errorUpdateCount,
1434
+ isFetching: P,
1435
+ isRefetching: P && !k,
1436
+ isLoadingError: S && f.dataUpdatedAt === 0,
1437
1437
  isPaused: x === "paused",
1438
1438
  isPlaceholderData: _,
1439
1439
  isPreviousData: C,
1440
- isRefetchError: S && p.dataUpdatedAt !== 0,
1440
+ isRefetchError: S && f.dataUpdatedAt !== 0,
1441
1441
  isStale: _e(t, s),
1442
1442
  refetch: this.refetch,
1443
1443
  remove: this.remove
@@ -1481,7 +1481,7 @@ class Kt extends V {
1481
1481
  t.type === "success" ? s.onSuccess = !t.manual : t.type === "error" && !te(t.error) && (s.onError = !0), this.updateResult(s), this.hasListeners() && this.updateTimers();
1482
1482
  }
1483
1483
  notify(t) {
1484
- A.batch(() => {
1484
+ O.batch(() => {
1485
1485
  if (t.onSuccess) {
1486
1486
  var s, r, i, a;
1487
1487
  (s = (r = this.options).onSuccess) == null || s.call(r, this.currentResult.data), (i = (a = this.options).onSettled) == null || i.call(a, this.currentResult.data, null);
@@ -1500,11 +1500,11 @@ class Kt extends V {
1500
1500
  });
1501
1501
  }
1502
1502
  }
1503
- function Ht(e, t) {
1503
+ function Kt(e, t) {
1504
1504
  return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === !1);
1505
1505
  }
1506
1506
  function Le(e, t) {
1507
- return Ht(e, t) || e.state.dataUpdatedAt > 0 && me(e, t, t.refetchOnMount);
1507
+ return Kt(e, t) || e.state.dataUpdatedAt > 0 && me(e, t, t.refetchOnMount);
1508
1508
  }
1509
1509
  function me(e, t, s) {
1510
1510
  if (t.enabled !== !1) {
@@ -1519,10 +1519,10 @@ function De(e, t, s, r) {
1519
1519
  function _e(e, t) {
1520
1520
  return e.isStaleByTime(t.staleTime);
1521
1521
  }
1522
- function Gt(e, t, s) {
1522
+ function Vt(e, t, s) {
1523
1523
  return s.keepPreviousData ? !1 : s.placeholderData !== void 0 ? t.isPlaceholderData : !re(e.getCurrentResult(), t);
1524
1524
  }
1525
- class Vt extends V {
1525
+ class Gt extends G {
1526
1526
  constructor(t, s) {
1527
1527
  super(), this.client = t, this.setOptions(s), this.bindMethods(), this.updateResult();
1528
1528
  }
@@ -1578,7 +1578,7 @@ class Vt extends V {
1578
1578
  this.currentResult = s;
1579
1579
  }
1580
1580
  notify(t) {
1581
- A.batch(() => {
1581
+ O.batch(() => {
1582
1582
  if (this.mutateOptions && this.hasListeners()) {
1583
1583
  if (t.onSuccess) {
1584
1584
  var s, r, i, a;
@@ -1606,11 +1606,11 @@ var Xe = { exports: {} }, Ie = {};
1606
1606
  * This source code is licensed under the MIT license found in the
1607
1607
  * LICENSE file in the root directory of this source tree.
1608
1608
  */
1609
- var G = d;
1609
+ var V = d;
1610
1610
  function $t(e, t) {
1611
1611
  return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
1612
1612
  }
1613
- var Wt = typeof Object.is == "function" ? Object.is : $t, Zt = G.useState, zt = G.useEffect, Yt = G.useLayoutEffect, Jt = G.useDebugValue;
1613
+ var Wt = typeof Object.is == "function" ? Object.is : $t, Zt = V.useState, zt = V.useEffect, Yt = V.useLayoutEffect, Jt = V.useDebugValue;
1614
1614
  function Xt(e, t) {
1615
1615
  var s = t(), r = Zt({ inst: { value: s, getSnapshot: t } }), i = r[0].inst, a = r[1];
1616
1616
  return Yt(function() {
@@ -1635,7 +1635,7 @@ function It(e, t) {
1635
1635
  return t();
1636
1636
  }
1637
1637
  var Bt = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? It : Xt;
1638
- Ie.useSyncExternalStore = G.useSyncExternalStore !== void 0 ? G.useSyncExternalStore : Bt;
1638
+ Ie.useSyncExternalStore = V.useSyncExternalStore !== void 0 ? V.useSyncExternalStore : Bt;
1639
1639
  Xe.exports = Ie;
1640
1640
  var es = Xe.exports;
1641
1641
  const Be = es.useSyncExternalStore, Te = /* @__PURE__ */ d.createContext(void 0), et = /* @__PURE__ */ d.createContext(!1);
@@ -1706,11 +1706,11 @@ function fs(e, t) {
1706
1706
  const s = st({
1707
1707
  context: e.context
1708
1708
  }), r = ss(), i = is(), a = s.defaultQueryOptions(e);
1709
- a._optimisticResults = r ? "isRestoring" : "optimistic", a.onError && (a.onError = A.batchCalls(a.onError)), a.onSuccess && (a.onSuccess = A.batchCalls(a.onSuccess)), a.onSettled && (a.onSettled = A.batchCalls(a.onSettled)), cs(a), as(a, i), os(i);
1709
+ a._optimisticResults = r ? "isRestoring" : "optimistic", a.onError && (a.onError = O.batchCalls(a.onError)), a.onSuccess && (a.onSuccess = O.batchCalls(a.onSuccess)), a.onSettled && (a.onSettled = O.batchCalls(a.onSettled)), cs(a), as(a, i), os(i);
1710
1710
  const [o] = d.useState(() => new t(s, a)), l = o.getOptimisticResult(a);
1711
1711
  if (Be(d.useCallback((c) => {
1712
1712
  const h = r ? () => {
1713
- } : o.subscribe(A.batchCalls(c));
1713
+ } : o.subscribe(O.batchCalls(c));
1714
1714
  return o.updateResult(), h;
1715
1715
  }, [o, r]), () => o.getCurrentResult(), () => o.getCurrentResult()), d.useEffect(() => {
1716
1716
  o.setOptions(a, {
@@ -1729,16 +1729,16 @@ function fs(e, t) {
1729
1729
  }
1730
1730
  function it(e, t, s) {
1731
1731
  const r = J(e, t, s);
1732
- return fs(r, Kt);
1732
+ return fs(r, Ht);
1733
1733
  }
1734
1734
  function ps(e, t, s) {
1735
1735
  const r = Rt(e, t, s), i = st({
1736
1736
  context: r.context
1737
- }), [a] = d.useState(() => new Vt(i, r));
1737
+ }), [a] = d.useState(() => new Gt(i, r));
1738
1738
  d.useEffect(() => {
1739
1739
  a.setOptions(r);
1740
1740
  }, [a, r]);
1741
- const o = Be(d.useCallback((c) => a.subscribe(A.batchCalls(c)), [a]), () => a.getCurrentResult(), () => a.getCurrentResult()), l = d.useCallback((c, h) => {
1741
+ const o = Be(d.useCallback((c) => a.subscribe(O.batchCalls(c)), [a]), () => a.getCurrentResult(), () => a.getCurrentResult()), l = d.useCallback((c, h) => {
1742
1742
  a.mutate(c, h).catch(vs);
1743
1743
  }, [a]);
1744
1744
  if (o.error && nt(a.options.useErrorBoundary, [o.error]))
@@ -1764,7 +1764,7 @@ function at(e) {
1764
1764
  e[t] && (r && (r += " "), r += t);
1765
1765
  return r;
1766
1766
  }
1767
- function P() {
1767
+ function R() {
1768
1768
  for (var e, t, s = 0, r = ""; s < arguments.length; )
1769
1769
  (e = arguments[s++]) && (t = at(e)) && (r && (r += " "), r += t);
1770
1770
  return r;
@@ -1776,7 +1776,7 @@ var ms = Object.defineProperty, ys = Object.defineProperties, Cs = Object.getOwn
1776
1776
  for (var s of ae(t))
1777
1777
  lt.call(t, s) && Ue(e, s, t[s]);
1778
1778
  return e;
1779
- }, E = (e, t) => ys(e, Cs(t)), O = (e, t) => {
1779
+ }, E = (e, t) => ys(e, Cs(t)), A = (e, t) => {
1780
1780
  var s = {};
1781
1781
  for (var r in e)
1782
1782
  ot.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
@@ -1804,7 +1804,7 @@ function xs(...e) {
1804
1804
  );
1805
1805
  }
1806
1806
  var bs = /* @__PURE__ */ d.forwardRef((e, t) => {
1807
- const s = e, { children: r } = s, i = O(s, ["children"]), a = d.Children.toArray(r), o = a.find(js);
1807
+ const s = e, { children: r } = s, i = A(s, ["children"]), a = d.Children.toArray(r), o = a.find(js);
1808
1808
  if (o) {
1809
1809
  const l = o.props.children, c = a.map((h) => h === o ? d.Children.count(l) > 1 ? d.Children.only(null) : /* @__PURE__ */ d.isValidElement(l) ? l.props.children : null : h);
1810
1810
  return /* @__PURE__ */ d.createElement(ye, oe({}, i, {
@@ -1817,7 +1817,7 @@ var bs = /* @__PURE__ */ d.forwardRef((e, t) => {
1817
1817
  });
1818
1818
  bs.displayName = "Slot";
1819
1819
  var ye = /* @__PURE__ */ d.forwardRef((e, t) => {
1820
- const s = e, { children: r } = s, i = O(s, ["children"]);
1820
+ const s = e, { children: r } = s, i = A(s, ["children"]);
1821
1821
  return /* @__PURE__ */ d.isValidElement(r) ? /* @__PURE__ */ d.cloneElement(r, E(g({}, _s(i, r.props)), {
1822
1822
  ref: t ? xs(t, r.ref) : r.ref
1823
1823
  })) : d.Children.count(r) > 1 ? d.Children.only(null) : null;
@@ -1861,7 +1861,7 @@ var Ss = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1861
1861
  variant: l,
1862
1862
  className: c,
1863
1863
  children: h
1864
- } = s, u = O(s, [
1864
+ } = s, u = A(s, [
1865
1865
  "iconLeft",
1866
1866
  "iconRight",
1867
1867
  "isPending",
@@ -1870,17 +1870,17 @@ var Ss = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1870
1870
  "className",
1871
1871
  "children"
1872
1872
  ]);
1873
- const p = !!r || !!i;
1873
+ const f = !!r || !!i;
1874
1874
  return /* @__PURE__ */ n.jsxs(
1875
1875
  "button",
1876
1876
  E(g({
1877
1877
  ref: t
1878
1878
  }, u), {
1879
- className: P(
1879
+ className: R(
1880
1880
  "button",
1881
1881
  l && `button--${l}`,
1882
1882
  l && o && `button--${l}--filled`,
1883
- p && "button--with-icon",
1883
+ f && "button--with-icon",
1884
1884
  a && "button--pending",
1885
1885
  c
1886
1886
  ),
@@ -1897,14 +1897,14 @@ $.displayName = "Button";
1897
1897
  d.createContext(void 0);
1898
1898
  var Es = d.forwardRef(
1899
1899
  (e, t) => {
1900
- var s = e, { prefix: r, suffix: i, className: a } = s, o = O(s, ["prefix", "suffix", "className"]);
1900
+ var s = e, { prefix: r, suffix: i, className: a } = s, o = A(s, ["prefix", "suffix", "className"]);
1901
1901
  return /* @__PURE__ */ n.jsxs("div", { className: "input__wrapper", children: [
1902
1902
  r && /* @__PURE__ */ n.jsx("span", { className: "input__prefix", children: r }),
1903
1903
  /* @__PURE__ */ n.jsx(
1904
1904
  "input",
1905
1905
  g({
1906
1906
  ref: t,
1907
- className: P(
1907
+ className: R(
1908
1908
  "input",
1909
1909
  r && "input--with-prefix",
1910
1910
  i && "input--with-suffix",
@@ -1919,9 +1919,9 @@ var Es = d.forwardRef(
1919
1919
  Es.displayName = "TextField";
1920
1920
  d.createContext(void 0);
1921
1921
  var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__header__action", children: e }), Rs = (e) => {
1922
- var t = e, { children: s } = t, r = O(t, ["children"]);
1922
+ var t = e, { children: s } = t, r = A(t, ["children"]);
1923
1923
  return /* @__PURE__ */ n.jsx("div", E(g({ className: "card__body" }, r), { children: s }));
1924
- }, As = (e) => /* @__PURE__ */ n.jsx(
1924
+ }, Os = (e) => /* @__PURE__ */ n.jsx(
1925
1925
  "svg",
1926
1926
  E(g({
1927
1927
  width: "24",
@@ -1941,7 +1941,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
1941
1941
  }
1942
1942
  )
1943
1943
  })
1944
- ), Se = As, Os = (e) => /* @__PURE__ */ n.jsx(
1944
+ ), Se = Os, As = (e) => /* @__PURE__ */ n.jsx(
1945
1945
  "svg",
1946
1946
  E(g({
1947
1947
  width: "24",
@@ -1961,7 +1961,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
1961
1961
  }
1962
1962
  )
1963
1963
  })
1964
- ), Ns = Os, Fs = (e) => /* @__PURE__ */ n.jsx(
1964
+ ), ks = As, Fs = (e) => /* @__PURE__ */ n.jsx(
1965
1965
  "svg",
1966
1966
  E(g({
1967
1967
  width: "24",
@@ -1980,7 +1980,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
1980
1980
  }
1981
1981
  )
1982
1982
  })
1983
- ), ks = Fs, Ms = (e) => /* @__PURE__ */ n.jsx(
1983
+ ), Ns = Fs, Ms = (e) => /* @__PURE__ */ n.jsx(
1984
1984
  "svg",
1985
1985
  E(g({
1986
1986
  width: "24",
@@ -2087,7 +2087,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2087
2087
  )
2088
2088
  ]
2089
2089
  })
2090
- ), Ks = qs, Hs = (e) => /* @__PURE__ */ n.jsxs(
2090
+ ), Hs = qs, Ks = (e) => /* @__PURE__ */ n.jsxs(
2091
2091
  "svg",
2092
2092
  E(g({
2093
2093
  width: "24",
@@ -2139,7 +2139,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2139
2139
  )
2140
2140
  ]
2141
2141
  })
2142
- ), Gs = Hs, Vs = (e) => /* @__PURE__ */ n.jsxs(
2142
+ ), Vs = Ks, Gs = (e) => /* @__PURE__ */ n.jsxs(
2143
2143
  "svg",
2144
2144
  E(g({
2145
2145
  width: "20",
@@ -2163,7 +2163,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2163
2163
  )
2164
2164
  ]
2165
2165
  })
2166
- ), $s = Vs, Ws = (e) => /* @__PURE__ */ n.jsxs(
2166
+ ), $s = Gs, Ws = (e) => /* @__PURE__ */ n.jsxs(
2167
2167
  "svg",
2168
2168
  E(g({
2169
2169
  width: "24",
@@ -2368,7 +2368,69 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2368
2368
  ]
2369
2369
  })
2370
2370
  );
2371
- }, Ee = zs, Ys = (e) => /* @__PURE__ */ n.jsx(
2371
+ }, Ee = zs, Ys = (e) => /* @__PURE__ */ n.jsxs(
2372
+ "svg",
2373
+ E(g({
2374
+ fill: "none",
2375
+ xmlns: "http://www.w3.org/2000/svg",
2376
+ viewBox: "0 0 24 24",
2377
+ width: "24",
2378
+ height: "24"
2379
+ }, e), {
2380
+ children: [
2381
+ /* @__PURE__ */ n.jsx(
2382
+ "path",
2383
+ {
2384
+ d: "M16 3H8C5.23858 3 3 5.23858 3 8V16C3 18.7614 5.23858 21 8 21H16C18.7614 21 21 18.7614 21 16V8C21 5.23858 18.7614 3 16 3Z",
2385
+ stroke: "currentColor",
2386
+ strokeWidth: "1.5",
2387
+ strokeLinecap: "round",
2388
+ strokeLinejoin: "round"
2389
+ }
2390
+ ),
2391
+ /* @__PURE__ */ n.jsx(
2392
+ "path",
2393
+ {
2394
+ d: "M12.001 11.258C12.001 8.906 13.634 7 15.648 7C16.515 7 17.218 7.703 17.218 8.57C17.218 10.464 14.881 12 11.999 12C9.117 12 6.78 10.465 6.78 8.57C6.78 7.703 7.483 7 8.351 7C10.365 7 11.998 8.906 11.998 11.258",
2395
+ stroke: "currentColor",
2396
+ strokeWidth: "1.5",
2397
+ strokeLinecap: "round",
2398
+ strokeLinejoin: "round"
2399
+ }
2400
+ ),
2401
+ /* @__PURE__ */ n.jsx(
2402
+ "path",
2403
+ {
2404
+ d: "M8 15.854C10.208 15.854 11.998 13.764 11.998 11.186L12.002 11.2C12.002 13.778 13.792 15.868 16 15.868",
2405
+ stroke: "currentColor",
2406
+ strokeWidth: "1.5",
2407
+ strokeLinecap: "round",
2408
+ strokeLinejoin: "round"
2409
+ }
2410
+ ),
2411
+ /* @__PURE__ */ n.jsx(
2412
+ "path",
2413
+ {
2414
+ d: "M12 3V21",
2415
+ stroke: "currentColor",
2416
+ strokeWidth: "1.5",
2417
+ strokeLinecap: "round",
2418
+ strokeLinejoin: "round"
2419
+ }
2420
+ ),
2421
+ /* @__PURE__ */ n.jsx(
2422
+ "path",
2423
+ {
2424
+ d: "M21 12H3",
2425
+ stroke: "currentColor",
2426
+ strokeWidth: "1.5",
2427
+ strokeLinecap: "round",
2428
+ strokeLinejoin: "round"
2429
+ }
2430
+ )
2431
+ ]
2432
+ })
2433
+ ), Js = Ys, Xs = (e) => /* @__PURE__ */ n.jsx(
2372
2434
  "svg",
2373
2435
  E(g({
2374
2436
  fill: "none",
@@ -2388,7 +2450,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2388
2450
  }
2389
2451
  )
2390
2452
  })
2391
- ), Js = Ys, Xs = (e) => /* @__PURE__ */ n.jsxs(
2453
+ ), Is = Xs, Bs = (e) => /* @__PURE__ */ n.jsxs(
2392
2454
  "svg",
2393
2455
  E(g({
2394
2456
  width: "24",
@@ -2415,7 +2477,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2415
2477
  /* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
2416
2478
  ]
2417
2479
  })
2418
- ), Is = Xs, Bs = (e) => {
2480
+ ), er = Bs, tr = (e) => {
2419
2481
  var t = e, {
2420
2482
  variant: s,
2421
2483
  icon: r,
@@ -2423,7 +2485,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2423
2485
  title: a,
2424
2486
  description: o,
2425
2487
  className: l
2426
- } = t, c = O(t, [
2488
+ } = t, c = A(t, [
2427
2489
  "variant",
2428
2490
  "icon",
2429
2491
  "isStandalone",
@@ -2434,7 +2496,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2434
2496
  return /* @__PURE__ */ n.jsx(
2435
2497
  "div",
2436
2498
  E(g({}, c), {
2437
- className: P(
2499
+ className: R(
2438
2500
  "card__empty-state",
2439
2501
  s === "error" && "card__empty-state--error",
2440
2502
  i && "card__empty-state--standalone",
@@ -2449,13 +2511,13 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2449
2511
  ] })
2450
2512
  })
2451
2513
  );
2452
- }, er = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__footer", children: e }), tr = (e) => {
2514
+ }, sr = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__footer", children: e }), rr = (e) => {
2453
2515
  var t = e, {
2454
2516
  variant: s = "default",
2455
2517
  sticky: r,
2456
2518
  className: i,
2457
2519
  children: a
2458
- } = t, o = O(t, [
2520
+ } = t, o = A(t, [
2459
2521
  "variant",
2460
2522
  "sticky",
2461
2523
  "className",
@@ -2464,7 +2526,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2464
2526
  return /* @__PURE__ */ n.jsx(
2465
2527
  "div",
2466
2528
  E(g({}, o), {
2467
- className: P(
2529
+ className: R(
2468
2530
  "card__header",
2469
2531
  s && `card__header--${s}`,
2470
2532
  r && "card__header--sticky",
@@ -2473,16 +2535,16 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2473
2535
  children: a
2474
2536
  })
2475
2537
  );
2476
- }, sr = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__image", children: e }), rr = ({ children: e, className: t }) => /* @__PURE__ */ n.jsx("div", { className: P("card__body__item", t), children: e }), nr = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__body__subtitle", children: e }), ir = ({ icon: e, children: t }) => /* @__PURE__ */ n.jsxs("div", { className: "card__header__title", children: [
2538
+ }, nr = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__image", children: e }), ir = ({ children: e, className: t }) => /* @__PURE__ */ n.jsx("div", { className: R("card__body__item", t), children: e }), ar = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__body__subtitle", children: e }), or = ({ icon: e, children: t }) => /* @__PURE__ */ n.jsxs("div", { className: "card__header__title", children: [
2477
2539
  e && /* @__PURE__ */ n.jsx("span", { className: "card__header__title__icon", children: e }),
2478
2540
  t
2479
2541
  ] }), ct = d.forwardRef(
2480
2542
  (e, t) => {
2481
- var s = e, { type: r, children: i, className: a, variant: o = "default", disabled: l = !1 } = s, c = O(s, ["type", "children", "className", "variant", "disabled"]);
2543
+ var s = e, { type: r, children: i, className: a, variant: o = "default", disabled: l = !1 } = s, c = A(s, ["type", "children", "className", "variant", "disabled"]);
2482
2544
  return d.createElement(
2483
2545
  r,
2484
2546
  g({
2485
- className: P(
2547
+ className: R(
2486
2548
  "card",
2487
2549
  l && "card--disabled",
2488
2550
  o && `card--${o}`,
@@ -2496,59 +2558,58 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2496
2558
  );
2497
2559
  ct.displayName = "Card";
2498
2560
  Object.assign(ct, {
2499
- Header: tr,
2561
+ Header: rr,
2500
2562
  Action: Ps,
2501
- Title: ir,
2502
- Subtitle: nr,
2563
+ Title: or,
2564
+ Subtitle: ar,
2503
2565
  Body: Rs,
2504
- Image: sr,
2505
- Item: rr,
2506
- Footer: er,
2507
- EmptyState: Bs
2566
+ Image: nr,
2567
+ Item: ir,
2568
+ Footer: sr,
2569
+ EmptyState: tr
2508
2570
  });
2509
- var ar = (e) => {
2510
- var t = e, { className: s, children: r } = t, i = O(t, ["className", "children"]);
2511
- return /* @__PURE__ */ n.jsx("div", E(g({ className: P("checkbox__content", s) }, i), { children: r }));
2512
- }, or = (e) => {
2513
- var t = e, { className: s, children: r } = t, i = O(t, ["className", "children"]);
2514
- return /* @__PURE__ */ n.jsx("span", E(g({ className: P("checkbox__error", s) }, i), { children: r }));
2515
- }, lr = (e) => {
2516
- var t = e, { className: s, children: r } = t, i = O(t, ["className", "children"]);
2517
- return /* @__PURE__ */ n.jsx("span", E(g({ className: P("checkbox__hint", s) }, i), { children: r }));
2518
- }, ut = d.createContext(void 0), cr = ({ id: e, name: t, children: s }) => /* @__PURE__ */ n.jsx(ut.Provider, { value: { id: e, name: t }, children: s }), ur = () => {
2571
+ var lr = (e) => {
2572
+ var t = e, { className: s, children: r } = t, i = A(t, ["className", "children"]);
2573
+ return /* @__PURE__ */ n.jsx("div", E(g({ className: R("checkbox__content", s) }, i), { children: r }));
2574
+ }, cr = (e) => {
2575
+ var t = e, { className: s, children: r } = t, i = A(t, ["className", "children"]);
2576
+ return /* @__PURE__ */ n.jsx("span", E(g({ className: R("checkbox__hint", s) }, i), { children: r }));
2577
+ }, ut = d.createContext(void 0), ur = ({ id: e, name: t, children: s }) => /* @__PURE__ */ n.jsx(ut.Provider, { value: { id: e, name: t }, children: s }), dr = () => {
2519
2578
  const e = d.useContext(ut);
2520
2579
  if (!e)
2521
2580
  throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
2522
2581
  return e;
2523
- }, dr = (e) => {
2524
- var t = e, { className: s, children: r } = t, i = O(t, ["className", "children"]);
2525
- const { id: a } = ur();
2526
- return /* @__PURE__ */ n.jsx("label", E(g({ htmlFor: a, className: P("checkbox__label", s) }, i), { children: r }));
2527
- }, Q = (e) => {
2582
+ }, hr = (e) => {
2583
+ var t = e, { className: s, children: r } = t, i = A(t, ["className", "children"]);
2584
+ const { id: a } = dr();
2585
+ return /* @__PURE__ */ n.jsx("label", E(g({ htmlFor: a, className: R("checkbox__label", s) }, i), { children: r }));
2586
+ }, q = (e) => {
2528
2587
  var t = e, {
2529
2588
  id: s,
2530
2589
  name: r,
2531
2590
  isPending: i = !1,
2532
2591
  variant: a = "neutral",
2533
2592
  hasError: o = !1,
2534
- className: l,
2535
- children: c
2536
- } = t, h = O(t, [
2593
+ single: l,
2594
+ className: c,
2595
+ children: h
2596
+ } = t, u = A(t, [
2537
2597
  "id",
2538
2598
  "name",
2539
2599
  "isPending",
2540
2600
  "variant",
2541
2601
  "hasError",
2602
+ "single",
2542
2603
  "className",
2543
2604
  "children"
2544
2605
  ]);
2545
- const u = d.useRef(null);
2606
+ const f = d.useRef(null);
2546
2607
  return d.useEffect(() => {
2547
- u.current && (i ? u.current.indeterminate = !0 : u.current.indeterminate = !1);
2608
+ f.current && (i ? f.current.indeterminate = !0 : f.current.indeterminate = !1);
2548
2609
  }, [i]), /* @__PURE__ */ n.jsxs(
2549
2610
  "div",
2550
2611
  {
2551
- className: P("checkbox", a && `checkbox--${a}`, o && "checkbox--error"),
2612
+ className: R("checkbox", a && `checkbox--${a}`, o && "checkbox--error"),
2552
2613
  children: [
2553
2614
  /* @__PURE__ */ n.jsx(
2554
2615
  "input",
@@ -2556,33 +2617,34 @@ var ar = (e) => {
2556
2617
  id: s,
2557
2618
  name: r,
2558
2619
  type: "checkbox",
2559
- ref: u,
2560
- className: P("checkbox__input", l)
2561
- }, h)
2620
+ ref: f,
2621
+ className: R("checkbox__input", c),
2622
+ value: l ? "true" : ""
2623
+ }, u)
2562
2624
  ),
2563
- i ? /* @__PURE__ */ n.jsx($s, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ n.jsx(Ns, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2564
- /* @__PURE__ */ n.jsx(cr, { id: s, name: r, children: c })
2625
+ i ? /* @__PURE__ */ n.jsx($s, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ n.jsx(ks, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2626
+ /* @__PURE__ */ n.jsx(ur, { id: s, name: r, children: h })
2565
2627
  ]
2566
2628
  }
2567
2629
  );
2568
2630
  };
2569
- Q.Content = ar;
2570
- Q.Label = dr;
2571
- Q.Hint = lr;
2572
- Q.Error = or;
2573
- var hr = (e) => {
2574
- var t = e, { type: s = "div", className: r, children: i } = t, a = O(t, ["type", "className", "children"]);
2575
- return d.createElement(s, g({ className: P("dialog__body", r) }, a), i);
2576
- }, Ce = () => document.body.style.removeProperty("overflow"), Qe = (e) => e.preventDefault(), fr = '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])', pr = (e) => {
2577
- var t = e, { className: s, children: r, shouldAnimate: i = !0 } = t, a = O(t, ["className", "children", "shouldAnimate"]);
2631
+ q.Content = lr;
2632
+ q.Label = hr;
2633
+ q.Hint = cr;
2634
+ q.Error = Error;
2635
+ var fr = (e) => {
2636
+ var t = e, { type: s = "div", className: r, children: i } = t, a = A(t, ["type", "className", "children"]);
2637
+ return d.createElement(s, g({ className: R("dialog__body", r) }, a), i);
2638
+ }, Ce = () => document.body.style.removeProperty("overflow"), Qe = (e) => e.preventDefault(), pr = '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])', vr = (e) => {
2639
+ var t = e, { className: s, children: r, shouldAnimate: i = !0 } = t, a = A(t, ["className", "children", "shouldAnimate"]);
2578
2640
  const { ref: o, defaultOpen: l, isModal: c, onClose: h } = B();
2579
2641
  return d.useEffect(() => {
2580
2642
  const u = o == null ? void 0 : o.current;
2581
2643
  if (u != null && u.open) {
2582
- const p = u.querySelectorAll(fr), v = p[0], f = p[p.length - 1], y = (x) => {
2644
+ const f = u.querySelectorAll(pr), v = f[0], p = f[f.length - 1], y = (x) => {
2583
2645
  if (!(x.key === "Tab"))
2584
2646
  return;
2585
- x.shiftKey ? document.activeElement === v && (f.focus(), x.preventDefault()) : document.activeElement === f && (v.focus(), x.preventDefault());
2647
+ x.shiftKey ? document.activeElement === v && (p.focus(), x.preventDefault()) : document.activeElement === p && (v.focus(), x.preventDefault());
2586
2648
  };
2587
2649
  return document.body.style.overflow = "hidden", u.addEventListener("keydown", y), window.addEventListener("popstate", () => Ce()), () => {
2588
2650
  u.removeEventListener("keydown", y), window.removeEventListener("popstate", () => Ce());
@@ -2594,12 +2656,12 @@ var hr = (e) => {
2594
2656
  return;
2595
2657
  if (l && (u.removeAttribute("open"), u.showModal(), u.focus()), c)
2596
2658
  return u.addEventListener("cancel", Qe), () => u.removeEventListener("cancel", Qe);
2597
- const p = ({ clientX: v, clientY: f }) => {
2598
- const { top: y, right: x, bottom: m, left: C } = u.getBoundingClientRect(), _ = 0 < f && 0 < v, w = y < f && f < m, R = C < v && v < x;
2599
- _ && !(w && R) && h();
2659
+ const f = ({ clientX: v, clientY: p }) => {
2660
+ const { top: y, right: x, bottom: m, left: C } = u.getBoundingClientRect(), _ = 0 < p && 0 < v, w = y < p && p < m, P = C < v && v < x;
2661
+ _ && !(w && P) && h();
2600
2662
  };
2601
- return u.addEventListener("cancel", h), u.addEventListener("mousedown", p), () => {
2602
- u.removeEventListener("cancel", h), u.removeEventListener("mousedown", p);
2663
+ return u.addEventListener("cancel", h), u.addEventListener("mousedown", f), () => {
2664
+ u.removeEventListener("cancel", h), u.removeEventListener("mousedown", f);
2603
2665
  };
2604
2666
  }, [o, c, h, l]), /* @__PURE__ */ n.jsx(
2605
2667
  "dialog",
@@ -2608,12 +2670,12 @@ var hr = (e) => {
2608
2670
  open: l,
2609
2671
  "aria-modal": !!c,
2610
2672
  "aria-labelledby": "dialogTitle",
2611
- className: P("dialog", i && "dialog--animated", s)
2673
+ className: R("dialog", i && "dialog--animated", s)
2612
2674
  }, a), {
2613
2675
  children: r
2614
2676
  })
2615
2677
  );
2616
- }, dt = d.createContext(void 0), vr = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2678
+ }, dt = d.createContext(void 0), mr = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2617
2679
  const i = d.useRef(null), a = d.useRef(t), o = d.useCallback(() => {
2618
2680
  var l;
2619
2681
  Ce(), (l = i.current) == null || l.close(), a.current && (a == null || a.current());
@@ -2624,12 +2686,12 @@ var hr = (e) => {
2624
2686
  if (!e)
2625
2687
  throw new Error("Dialog compound components can not be rendered outside of Dialog");
2626
2688
  return e;
2627
- }, mr = (e) => {
2628
- var t = e, { children: s } = t, r = O(t, ["children"]);
2689
+ }, yr = (e) => {
2690
+ var t = e, { children: s } = t, r = A(t, ["children"]);
2629
2691
  const { onClose: i } = B();
2630
2692
  return /* @__PURE__ */ n.jsx($, E(g({ onClick: i }, r), { children: s }));
2631
2693
  }, ht = d.forwardRef((e, t) => {
2632
- var s = e, { className: r } = s, i = O(s, ["className"]);
2694
+ var s = e, { className: r } = s, i = A(s, ["className"]);
2633
2695
  const { onClose: a } = B();
2634
2696
  return /* @__PURE__ */ n.jsx(
2635
2697
  $,
@@ -2638,18 +2700,18 @@ var hr = (e) => {
2638
2700
  ref: t,
2639
2701
  formMethod: "dialog",
2640
2702
  onClick: a,
2641
- iconLeft: /* @__PURE__ */ n.jsx(ks, {}),
2703
+ iconLeft: /* @__PURE__ */ n.jsx(Ns, {}),
2642
2704
  variant: "icon--secondary",
2643
- className: P("dialog__close button--icon", r)
2705
+ className: R("dialog__close button--icon", r)
2644
2706
  }, i)
2645
2707
  );
2646
2708
  });
2647
2709
  ht.displayName = "Close";
2648
- var yr = (e) => {
2649
- var t = e, { className: s, children: r } = t, i = O(t, ["className", "children"]);
2650
- return /* @__PURE__ */ n.jsx("div", E(g({ className: P("dialog__footer", s) }, i), { children: r }));
2651
- }, Cr = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "dialog__header", children: e }), gr = (e) => {
2652
- var t = e, { icon: s, children: r, className: i } = t, a = O(t, ["icon", "children", "className"]);
2710
+ var Cr = (e) => {
2711
+ var t = e, { className: s, children: r } = t, i = A(t, ["className", "children"]);
2712
+ return /* @__PURE__ */ n.jsx("div", E(g({ className: R("dialog__footer", s) }, i), { children: r }));
2713
+ }, gr = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "dialog__header", children: e }), xr = (e) => {
2714
+ var t = e, { icon: s, children: r, className: i } = t, a = A(t, ["icon", "children", "className"]);
2653
2715
  const { ref: o } = B(), l = d.useRef(null);
2654
2716
  return d.useEffect(() => {
2655
2717
  o != null && o.current && o.current.focus();
@@ -2659,7 +2721,7 @@ var yr = (e) => {
2659
2721
  tabIndex: 0,
2660
2722
  ref: l,
2661
2723
  id: "dialogTitle",
2662
- className: P("dialog__header__title", i)
2724
+ className: R("dialog__header__title", i)
2663
2725
  }, a), {
2664
2726
  children: [
2665
2727
  s && /* @__PURE__ */ n.jsx("span", { className: "dialog__header__icon", children: s }),
@@ -2667,23 +2729,23 @@ var yr = (e) => {
2667
2729
  ]
2668
2730
  })
2669
2731
  );
2670
- }, xr = (e) => {
2671
- var t = e, { children: s } = t, r = O(t, ["children"]);
2732
+ }, br = (e) => {
2733
+ var t = e, { children: s } = t, r = A(t, ["children"]);
2672
2734
  const { ref: i } = B();
2673
2735
  return /* @__PURE__ */ n.jsx($, E(g({ onClick: () => {
2674
2736
  var a;
2675
2737
  return (a = i == null ? void 0 : i.current) == null ? void 0 : a.showModal();
2676
2738
  } }, r), { children: s }));
2677
- }, F = ({ defaultOpen: e, isModal: t, children: s, onClose: r }) => /* @__PURE__ */ n.jsx(vr, { defaultOpen: !!e, isModal: t, onClose: r, children: s });
2678
- F.Trigger = xr;
2679
- F.Root = pr;
2680
- F.Title = gr;
2681
- F.Header = Cr;
2682
- F.Body = hr;
2683
- F.Footer = yr;
2684
- F.Button = mr;
2739
+ }, F = ({ defaultOpen: e, isModal: t, children: s, onClose: r }) => /* @__PURE__ */ n.jsx(mr, { defaultOpen: !!e, isModal: t, onClose: r, children: s });
2740
+ F.Trigger = br;
2741
+ F.Root = vr;
2742
+ F.Title = xr;
2743
+ F.Header = gr;
2744
+ F.Body = fr;
2745
+ F.Footer = Cr;
2746
+ F.Button = yr;
2685
2747
  F.Close = ht;
2686
- var ft = d.createContext(void 0), br = ({
2748
+ var ft = d.createContext(void 0), wr = ({
2687
2749
  id: e,
2688
2750
  position: t,
2689
2751
  isOpen: s,
@@ -2715,7 +2777,7 @@ var ft = d.createContext(void 0), br = ({
2715
2777
  if (e === void 0)
2716
2778
  throw new Error("useMenu must be used within a MenuProvider");
2717
2779
  return e;
2718
- }, wr = ({ as: e, children: t }) => {
2780
+ }, jr = ({ as: e, children: t }) => {
2719
2781
  const {
2720
2782
  id: s,
2721
2783
  position: r,
@@ -2726,12 +2788,12 @@ var ft = d.createContext(void 0), br = ({
2726
2788
  clearActiveItemIndex: c,
2727
2789
  triggerRef: h,
2728
2790
  contentRef: u
2729
- } = pt(), p = (v) => {
2730
- var f;
2791
+ } = pt(), f = (v) => {
2792
+ var p;
2731
2793
  if (!i)
2732
2794
  return;
2733
2795
  if (v.key === "Escape")
2734
- return c(), a(!1), (f = h.current) == null ? void 0 : f.focus();
2796
+ return c(), a(!1), (p = h.current) == null ? void 0 : p.focus();
2735
2797
  const y = u.current.childElementCount - 1;
2736
2798
  switch (v.key) {
2737
2799
  case "ArrowUp":
@@ -2753,8 +2815,8 @@ var ft = d.createContext(void 0), br = ({
2753
2815
  {
2754
2816
  id: `${s}-content`,
2755
2817
  ref: u,
2756
- className: P("menu__list", `menu__list--${r}`, i && "menu__list--active"),
2757
- onKeyDown: p
2818
+ className: R("menu__list", `menu__list--${r}`, i && "menu__list--active"),
2819
+ onKeyDown: f
2758
2820
  },
2759
2821
  t
2760
2822
  ) : (
@@ -2764,15 +2826,15 @@ var ft = d.createContext(void 0), br = ({
2764
2826
  {
2765
2827
  id: `${s}-content`,
2766
2828
  ref: u,
2767
- className: P("menu__list", `menu__list--${r}`, i && "menu__list--active"),
2768
- onKeyDown: p,
2829
+ className: R("menu__list", `menu__list--${r}`, i && "menu__list--active"),
2830
+ onKeyDown: f,
2769
2831
  children: t
2770
2832
  }
2771
2833
  )
2772
2834
  );
2773
- }, jr = (e) => {
2774
- var t = e, { children: s, className: r } = t, i = O(t, ["children", "className"]);
2775
- return /* @__PURE__ */ n.jsx("li", E(g({}, i), { className: P("menu__list-item", r), children: s }));
2835
+ }, _r = (e) => {
2836
+ var t = e, { children: s, className: r } = t, i = A(t, ["children", "className"]);
2837
+ return /* @__PURE__ */ n.jsx("li", E(g({}, i), { className: R("menu__list-item", r), children: s }));
2776
2838
  }, vt = ({ children: e, className: t }) => {
2777
2839
  const { id: s, isOpen: r, setIsOpen: i, clearActiveItemIndex: a, setActiveItemIndex: o, triggerRef: l } = pt(), c = () => {
2778
2840
  a(), i((u) => !u);
@@ -2786,7 +2848,7 @@ var ft = d.createContext(void 0), br = ({
2786
2848
  return d.cloneElement(e, {
2787
2849
  id: `${s}-trigger`,
2788
2850
  ref: l,
2789
- className: P("menu__trigger", t),
2851
+ className: R("menu__trigger", t),
2790
2852
  onClick: c,
2791
2853
  onKeyDown: h,
2792
2854
  "aria-expanded": r,
@@ -2795,23 +2857,23 @@ var ft = d.createContext(void 0), br = ({
2795
2857
  };
2796
2858
  vt.displayName = "Trigger";
2797
2859
  var L = (e) => {
2798
- var t = e, { type: s, id: r, position: i = "right", children: a, className: o } = t, l = O(t, ["type", "id", "position", "children", "className"]);
2799
- const c = d.useRef(null), h = d.useRef(null), u = d.useRef(null), [p, v] = d.useState(!1), [f, y] = d.useState(), [x, m] = d.useState(f);
2800
- f !== x && f !== void 0 && (u.current.children[f].firstChild.focus(), m(f));
2860
+ var t = e, { type: s, id: r, position: i = "right", children: a, className: o } = t, l = A(t, ["type", "id", "position", "children", "className"]);
2861
+ const c = d.useRef(null), h = d.useRef(null), u = d.useRef(null), [f, v] = d.useState(!1), [p, y] = d.useState(), [x, m] = d.useState(p);
2862
+ p !== x && p !== void 0 && (u.current.children[p].firstChild.focus(), m(p));
2801
2863
  const C = () => {
2802
2864
  y(void 0), m(void 0);
2803
2865
  }, _ = (w) => {
2804
- var R;
2805
- ((R = c.current) == null ? void 0 : R.contains(w.relatedTarget)) || (C(), v(!1));
2866
+ var P;
2867
+ ((P = c.current) == null ? void 0 : P.contains(w.relatedTarget)) || (C(), v(!1));
2806
2868
  };
2807
2869
  return /* @__PURE__ */ n.jsx(
2808
- br,
2870
+ wr,
2809
2871
  {
2810
2872
  id: r,
2811
2873
  position: i,
2812
- isOpen: p,
2874
+ isOpen: f,
2813
2875
  setIsOpen: v,
2814
- activeItemIndex: f,
2876
+ activeItemIndex: p,
2815
2877
  setActiveItemIndex: y,
2816
2878
  clearActiveItemIndex: C,
2817
2879
  triggerRef: h,
@@ -2830,28 +2892,28 @@ var L = (e) => {
2830
2892
  );
2831
2893
  };
2832
2894
  L.Trigger = vt;
2833
- L.Content = wr;
2834
- L.Item = jr;
2895
+ L.Content = jr;
2896
+ L.Item = _r;
2835
2897
  d.createContext(void 0);
2836
- var _r = (/* @__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");
2837
- [...new Set(_r.values())].map((e) => ({
2898
+ var Sr = (/* @__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");
2899
+ [...new Set(Sr.values())].map((e) => ({
2838
2900
  label: `+${e}`,
2839
2901
  value: e
2840
2902
  }));
2841
2903
  d.createContext(void 0);
2842
2904
  d.createContext(void 0);
2843
2905
  var le = /* @__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))(le || {});
2844
- const Sr = "/icons/bouMenuIcons.svg", Er = ({
2906
+ const Er = "/icons/bouMenuIcons.svg", Pr = ({
2845
2907
  bouIconId: e,
2846
2908
  ...t
2847
- }) => /* @__PURE__ */ n.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ n.jsx("use", { href: `${Sr}#${le[e]}` }) }), H = ({
2909
+ }) => /* @__PURE__ */ n.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ n.jsx("use", { href: `${Er}#${le[e]}` }) }), U = ({
2848
2910
  className: e,
2849
2911
  label: t,
2850
2912
  mobileUrl: s,
2851
2913
  desktopUrl: r,
2852
2914
  icon: i
2853
2915
  }) => {
2854
- const a = () => typeof i == "string" && i in le ? /* @__PURE__ */ n.jsx(Er, { bouIconId: le[i] }) : i;
2916
+ const a = () => typeof i == "string" && i in le ? /* @__PURE__ */ n.jsx(Pr, { bouIconId: le[i] }) : i;
2855
2917
  return /* @__PURE__ */ n.jsxs(L.Item, { className: e, children: [
2856
2918
  /* @__PURE__ */ n.jsxs("a", { href: s, referrerPolicy: "no-referrer-when-downgrade", children: [
2857
2919
  a(),
@@ -2862,7 +2924,7 @@ const Sr = "/icons/bouMenuIcons.svg", Er = ({
2862
2924
  t
2863
2925
  ] })
2864
2926
  ] });
2865
- }, mt = d.createContext(void 0), Pr = ({
2927
+ }, mt = d.createContext(void 0), Rr = ({
2866
2928
  position: e,
2867
2929
  bouMenuItems: t,
2868
2930
  authenticationStatus: s,
@@ -2873,7 +2935,7 @@ const Sr = "/icons/bouMenuIcons.svg", Er = ({
2873
2935
  if (!e)
2874
2936
  throw new Error("Authentication context can not be rendered outside of Authentication");
2875
2937
  return e;
2876
- }, yt = d.createContext(void 0), Rr = ({ apiUrl: e, redirectUrl: t, children: s }) => /* @__PURE__ */ n.jsx(yt.Provider, { value: { apiUrl: e, redirectUrl: t }, children: s }), Ct = () => {
2938
+ }, yt = d.createContext(void 0), Or = ({ apiUrl: e, redirectUrl: t, children: s }) => /* @__PURE__ */ n.jsx(yt.Provider, { value: { apiUrl: e, redirectUrl: t }, children: s }), Ct = () => {
2877
2939
  const e = d.useContext(yt);
2878
2940
  if (!e)
2879
2941
  throw new Error("Api context can not be rendered outside of Api");
@@ -2888,7 +2950,7 @@ const Sr = "/icons/bouMenuIcons.svg", Er = ({
2888
2950
  postTermsAndConditionsEndpoint: o
2889
2951
  };
2890
2952
  }, Ar = (e) => e != null && e.length ? /* @__PURE__ */ n.jsx("ul", { className: "bou-menu__list", children: e == null ? void 0 : e.map(({ label: t, icon: s, url: r }, i) => /* @__PURE__ */ n.jsx(
2891
- H,
2953
+ U,
2892
2954
  {
2893
2955
  className: "bou-menu-item",
2894
2956
  mobileUrl: r,
@@ -2897,13 +2959,13 @@ const Sr = "/icons/bouMenuIcons.svg", Er = ({
2897
2959
  label: t
2898
2960
  },
2899
2961
  i
2900
- )) }) : null, Or = () => {
2901
- const { t: e } = q(), t = Ke(), { position: s, profile: r, bouMenuItems: i } = Pe(), { logoutUrl: a } = W(), o = (r == null ? void 0 : r.firstName) ?? "", l = (r == null ? void 0 : r.lastName) ?? "";
2962
+ )) }) : null, kr = () => {
2963
+ const { t: e } = H(), t = He(), { position: s, profile: r, bouMenuItems: i } = Pe(), { logoutUrl: a } = W(), o = (r == null ? void 0 : r.firstName) ?? "", l = (r == null ? void 0 : r.lastName) ?? "";
2902
2964
  return /* @__PURE__ */ n.jsxs(L, { type: "nav", id: "xtra-menu", position: s, children: [
2903
2965
  /* @__PURE__ */ n.jsx(
2904
2966
  L.Trigger,
2905
2967
  {
2906
- className: P(
2968
+ className: R(
2907
2969
  "button",
2908
2970
  "button--neutral",
2909
2971
  "button--authentication",
@@ -2920,34 +2982,43 @@ const Sr = "/icons/bouMenuIcons.svg", Er = ({
2920
2982
  Ar(i),
2921
2983
  /* @__PURE__ */ n.jsxs("ul", { children: [
2922
2984
  /* @__PURE__ */ n.jsx(
2923
- H,
2985
+ U,
2924
2986
  {
2925
2987
  className: "manage-profile",
2926
2988
  mobileUrl: `${t}/manage-profile`,
2927
2989
  desktopUrl: `${t}/manage-profile/personal-data`,
2928
- icon: /* @__PURE__ */ n.jsx(Ks, {}),
2990
+ icon: /* @__PURE__ */ n.jsx(Hs, {}),
2929
2991
  label: e("manageProfile")
2930
2992
  }
2931
2993
  ),
2932
2994
  /* @__PURE__ */ n.jsx(
2933
- H,
2995
+ U,
2934
2996
  {
2935
2997
  className: "payment",
2936
2998
  mobileUrl: `${t}/payment`,
2937
- icon: /* @__PURE__ */ n.jsx(Js, {}),
2999
+ icon: /* @__PURE__ */ n.jsx(Is, {}),
2938
3000
  label: e("payment")
2939
3001
  }
2940
3002
  ),
2941
3003
  /* @__PURE__ */ n.jsx(
2942
- H,
3004
+ U,
3005
+ {
3006
+ className: "gift-cards",
3007
+ mobileUrl: `${t}/gift-cards`,
3008
+ icon: /* @__PURE__ */ n.jsx(Js, {}),
3009
+ label: e("giftCards")
3010
+ }
3011
+ ),
3012
+ /* @__PURE__ */ n.jsx(
3013
+ U,
2943
3014
  {
2944
3015
  mobileUrl: `${t}/identifiers`,
2945
- icon: /* @__PURE__ */ n.jsx(Is, {}),
3016
+ icon: /* @__PURE__ */ n.jsx(er, {}),
2946
3017
  label: e("qrCode")
2947
3018
  }
2948
3019
  ),
2949
3020
  /* @__PURE__ */ n.jsx(
2950
- H,
3021
+ U,
2951
3022
  {
2952
3023
  className: "manage-privacy",
2953
3024
  mobileUrl: `${t}/manage-privacy`,
@@ -2956,26 +3027,26 @@ const Sr = "/icons/bouMenuIcons.svg", Er = ({
2956
3027
  label: e("privacy")
2957
3028
  }
2958
3029
  ),
2959
- /* @__PURE__ */ n.jsx(H, { mobileUrl: a, icon: /* @__PURE__ */ n.jsx(Ts, {}), label: e("logout") })
3030
+ /* @__PURE__ */ n.jsx(U, { mobileUrl: a, icon: /* @__PURE__ */ n.jsx(Ts, {}), label: e("logout") })
2960
3031
  ] })
2961
3032
  ] })
2962
3033
  ] });
2963
- }, Nr = () => {
2964
- const { t: e } = q();
2965
- return /* @__PURE__ */ n.jsxs("button", { className: P("button", "button--neutral", "button--authentication"), children: [
3034
+ }, Fr = () => {
3035
+ const { t: e } = H();
3036
+ return /* @__PURE__ */ n.jsxs("button", { className: R("button", "button--neutral", "button--authentication"), children: [
2966
3037
  /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx("i", { className: "spinner" }) }),
2967
3038
  /* @__PURE__ */ n.jsxs("span", { className: "button__label", children: [
2968
3039
  e("loading"),
2969
3040
  "..."
2970
3041
  ] })
2971
3042
  ] });
2972
- }, Fr = ({ className: e }) => {
2973
- const { t } = q(), { loginUrl: s } = W();
3043
+ }, Nr = ({ className: e }) => {
3044
+ const { t } = H(), { loginUrl: s } = W();
2974
3045
  return /* @__PURE__ */ n.jsxs(
2975
3046
  "a",
2976
3047
  {
2977
3048
  href: s,
2978
- className: P(
3049
+ className: R(
2979
3050
  "button",
2980
3051
  "button--neutral",
2981
3052
  "button--authentication",
@@ -2990,8 +3061,8 @@ const Sr = "/icons/bouMenuIcons.svg", Er = ({
2990
3061
  }
2991
3062
  );
2992
3063
  };
2993
- const kr = () => {
2994
- const { t: e } = q(), { loginUrl: t } = W(), s = Ke(), { position: r } = Pe();
3064
+ const Mr = () => {
3065
+ const { t: e } = H(), { loginUrl: t } = W(), s = He(), { position: r } = Pe();
2995
3066
  return /* @__PURE__ */ n.jsxs(
2996
3067
  L,
2997
3068
  {
@@ -3001,7 +3072,7 @@ const kr = () => {
3001
3072
  className: "menu--unauthenticated",
3002
3073
  "aria-label": e("xtraMenuAriaLabel"),
3003
3074
  children: [
3004
- /* @__PURE__ */ n.jsx(L.Trigger, { className: P("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ n.jsxs("button", { children: [
3075
+ /* @__PURE__ */ n.jsx(L.Trigger, { className: R("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ n.jsxs("button", { children: [
3005
3076
  /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ee, { width: 24, height: 24, suffix: "mobile" }) }),
3006
3077
  /* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Se, {}) })
3007
3078
  ] }) }),
@@ -3011,7 +3082,7 @@ const kr = () => {
3011
3082
  /* @__PURE__ */ n.jsx("span", { className: "button__label", children: e("login") })
3012
3083
  ] }) }),
3013
3084
  /* @__PURE__ */ n.jsx(L.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
3014
- /* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Gs, {}) }),
3085
+ /* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Vs, {}) }),
3015
3086
  /* @__PURE__ */ n.jsx("span", { className: "button__label", children: e("register") })
3016
3087
  ] }) })
3017
3088
  ] })
@@ -3020,12 +3091,12 @@ const kr = () => {
3020
3091
  );
3021
3092
  };
3022
3093
  var D = /* @__PURE__ */ ((e) => (e.Authenticated = "authenticated", e.NotAuthenticated = "notAuthenticated", e.Pending = "pending", e))(D || {});
3023
- const Mr = () => {
3094
+ const Lr = () => {
3024
3095
  const { authenticationStatus: e } = Pe();
3025
3096
  return e === D.NotAuthenticated ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3026
- /* @__PURE__ */ n.jsx(Fr, {}),
3027
- /* @__PURE__ */ n.jsx(kr, {})
3028
- ] }) : e === D.Pending ? /* @__PURE__ */ n.jsx(Nr, {}) : /* @__PURE__ */ n.jsx(Or, {});
3097
+ /* @__PURE__ */ n.jsx(Nr, {}),
3098
+ /* @__PURE__ */ n.jsx(Mr, {})
3099
+ ] }) : e === D.Pending ? /* @__PURE__ */ n.jsx(Fr, {}) : /* @__PURE__ */ n.jsx(kr, {});
3029
3100
  };
3030
3101
  /*! js-cookie v3.0.5 | MIT */
3031
3102
  function ee(e) {
@@ -3036,7 +3107,7 @@ function ee(e) {
3036
3107
  }
3037
3108
  return e;
3038
3109
  }
3039
- var Lr = {
3110
+ var Dr = {
3040
3111
  read: function(e) {
3041
3112
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
3042
3113
  },
@@ -3097,14 +3168,14 @@ function ge(e, t) {
3097
3168
  }
3098
3169
  );
3099
3170
  }
3100
- var xe = ge(Lr, { path: "/" });
3171
+ var xe = ge(Dr, { path: "/" });
3101
3172
  class be extends Error {
3102
3173
  constructor(t) {
3103
3174
  super(t), this.name = "UnauthorizedError";
3104
3175
  }
3105
3176
  }
3106
- const Dr = () => {
3107
- const { i18n: e } = q(), { profileEndpoint: t } = W();
3177
+ const Tr = () => {
3178
+ const { i18n: e } = H(), { profileEndpoint: t } = W();
3108
3179
  return it({
3109
3180
  queryKey: ["profile"],
3110
3181
  queryFn: async () => {
@@ -3126,7 +3197,7 @@ const Dr = () => {
3126
3197
  t ? D.Authenticated : D.Pending
3127
3198
  ), [i, a] = d.useState(
3128
3199
  t ? JSON.parse(e) : void 0
3129
- ), o = Dr();
3200
+ ), o = Tr();
3130
3201
  return d.useEffect(() => {
3131
3202
  if (o.isError && o.error instanceof be && (xe.remove("profile"), r(D.NotAuthenticated)), o.isError && r(
3132
3203
  t ? D.Authenticated : D.NotAuthenticated
@@ -3146,27 +3217,27 @@ const Dr = () => {
3146
3217
  o.isError,
3147
3218
  o.isSuccess
3148
3219
  ]), { authenticationStatus: s, profile: i };
3149
- }, Tr = ({ position: e, bouMenuItems: t }) => {
3220
+ }, Ur = ({ position: e, bouMenuItems: t }) => {
3150
3221
  const { authenticationStatus: s, profile: r } = gt();
3151
3222
  return /* @__PURE__ */ n.jsx(
3152
- Pr,
3223
+ Rr,
3153
3224
  {
3154
3225
  bouMenuItems: t,
3155
3226
  authenticationStatus: s,
3156
3227
  position: e,
3157
3228
  profile: r,
3158
- children: /* @__PURE__ */ n.jsx(Mr, {})
3229
+ children: /* @__PURE__ */ n.jsx(Lr, {})
3159
3230
  }
3160
3231
  );
3161
3232
  };
3162
- var Ur = Object.defineProperty, Qr = Object.defineProperties, qr = Object.getOwnPropertyDescriptors, ce = Object.getOwnPropertySymbols, xt = Object.prototype.hasOwnProperty, bt = Object.prototype.propertyIsEnumerable, qe = (e, t, s) => t in e ? Ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, K = (e, t) => {
3233
+ var Qr = Object.defineProperty, qr = Object.defineProperties, Hr = Object.getOwnPropertyDescriptors, ce = Object.getOwnPropertySymbols, xt = Object.prototype.hasOwnProperty, bt = Object.prototype.propertyIsEnumerable, qe = (e, t, s) => t in e ? Qr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, K = (e, t) => {
3163
3234
  for (var s in t || (t = {}))
3164
3235
  xt.call(t, s) && qe(e, s, t[s]);
3165
3236
  if (ce)
3166
3237
  for (var s of ce(t))
3167
3238
  bt.call(t, s) && qe(e, s, t[s]);
3168
3239
  return e;
3169
- }, Z = (e, t) => Qr(e, qr(t)), z = (e, t) => {
3240
+ }, Z = (e, t) => qr(e, Hr(t)), z = (e, t) => {
3170
3241
  var s = {};
3171
3242
  for (var r in e)
3172
3243
  xt.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
@@ -3181,7 +3252,7 @@ var Ur = Object.defineProperty, Qr = Object.defineProperties, qr = Object.getOwn
3181
3252
  K({
3182
3253
  type: "button",
3183
3254
  ref: t,
3184
- className: P(
3255
+ className: R(
3185
3256
  "button--neutral",
3186
3257
  "button--authentication",
3187
3258
  r && "button--authentication--authenticated",
@@ -3191,13 +3262,13 @@ var Ur = Object.defineProperty, Qr = Object.defineProperties, qr = Object.getOwn
3191
3262
  );
3192
3263
  });
3193
3264
  Kr.displayName = "AuthenticationButton";
3194
- var Hr = (e) => {
3265
+ var Vr = (e) => {
3195
3266
  var t = e, {
3196
3267
  children: s
3197
3268
  } = t, r = z(t, [
3198
3269
  "children"
3199
3270
  ]);
3200
- return /* @__PURE__ */ n.jsx(Q.Label, Z(K({ className: "form--tc__label" }, r), { children: s }));
3271
+ return /* @__PURE__ */ n.jsx(q.Label, Z(K({ className: "form--tc__label" }, r), { children: s }));
3201
3272
  }, wt = d.forwardRef(
3202
3273
  (e, t) => {
3203
3274
  var s = e, { children: r } = s, i = z(s, ["children"]);
@@ -3212,7 +3283,7 @@ var Gr = (e) => {
3212
3283
  "children"
3213
3284
  ]);
3214
3285
  return /* @__PURE__ */ n.jsx("p", Z(K({ className: "form--tc__description" }, r), { children: s }));
3215
- }, Vr = (e) => {
3286
+ }, $r = (e) => {
3216
3287
  var t = e, { children: s } = t, r = z(t, ["children"]);
3217
3288
  return /* @__PURE__ */ n.jsx(
3218
3289
  "a",
@@ -3226,15 +3297,15 @@ var Gr = (e) => {
3226
3297
  children: s
3227
3298
  })
3228
3299
  );
3229
- }, $r = ({ children: e }) => /* @__PURE__ */ n.jsx("h1", { className: "form--tc__title", children: e }), Wr = d.forwardRef(
3300
+ }, Wr = ({ children: e }) => /* @__PURE__ */ n.jsx("h1", { className: "form--tc__title", children: e }), Zr = d.forwardRef(
3230
3301
  (e, t) => /* @__PURE__ */ n.jsx(F.Close, Z(K({ className: "hidden" }, e), { ref: t }))
3231
3302
  );
3232
- Wr.displayName = "TermsAndConditionsClose";
3233
- var Zr = (e) => {
3303
+ Zr.displayName = "TermsAndConditionsClose";
3304
+ var zr = (e) => {
3234
3305
  var t = e, { children: s } = t, r = z(t, ["children"]);
3235
3306
  return /* @__PURE__ */ n.jsx("span", Z(K({ className: "form--tc__error", role: "alert" }, r), { children: s }));
3236
3307
  };
3237
- const zr = () => {
3308
+ const Yr = () => {
3238
3309
  const { postTermsAndConditionsEndpoint: e } = W(), t = new Je();
3239
3310
  return ps({
3240
3311
  mutationFn: async (r) => {
@@ -3252,8 +3323,8 @@ const zr = () => {
3252
3323
  await t.invalidateQueries({ queryKey: ["gdpr"] });
3253
3324
  }
3254
3325
  });
3255
- }, Yr = () => {
3256
- const { i18n: e } = q(), { getTermsAndConditionsEndpoint: t } = W(), { authenticationStatus: s } = gt(), r = xe.get("hasAcceptedLatestTermsAndConditions"), i = [], a = r === "true", o = s === D.Authenticated;
3326
+ }, Jr = () => {
3327
+ const { i18n: e } = H(), { getTermsAndConditionsEndpoint: t } = W(), { authenticationStatus: s } = gt(), r = xe.get("hasAcceptedLatestTermsAndConditions"), i = [], a = r === "true", o = s === D.Authenticated;
3257
3328
  return it({
3258
3329
  queryKey: ["gdpr"],
3259
3330
  queryFn: async () => {
@@ -3269,14 +3340,14 @@ const zr = () => {
3269
3340
  enabled: o && !a,
3270
3341
  initialData: i
3271
3342
  });
3272
- }, Jr = ({ redirectUrl: e }) => {
3273
- const { t } = q(), { apiUrl: s } = Ct(), r = d.useRef(null), [i, a] = d.useState(0), [o, l] = d.useState({}), { mutate: c, isError: h } = zr(), { AccessibleFormMessage: u, formRef: p } = St({ submitCount: i, errors: o }), { data: v } = Yr(), f = !!(v != null && v.length), y = t("termsAndConditions.error.required"), x = () => {
3343
+ }, Xr = ({ redirectUrl: e }) => {
3344
+ const { t } = H(), { apiUrl: s } = Ct(), r = d.useRef(null), [i, a] = d.useState(0), [o, l] = d.useState({}), { mutate: c, isError: h } = Yr(), { AccessibleFormMessage: u, formRef: f } = St({ submitCount: i, errors: o }), { data: v } = Jr(), p = !!(v != null && v.length), y = t("termsAndConditions.error.required"), x = () => {
3274
3345
  var C;
3275
3346
  (C = r == null ? void 0 : r.current) == null || C.click(), document.body.style.removeProperty("overflow");
3276
3347
  };
3277
3348
  d.useEffect(() => {
3278
- f && document.body.style.setProperty("overflow", "hidden");
3279
- }, [f]), d.useEffect(() => {
3349
+ p && document.body.style.setProperty("overflow", "hidden");
3350
+ }, [p]), d.useEffect(() => {
3280
3351
  h && l({ acceptedTC: y });
3281
3352
  }, [y, h]);
3282
3353
  const m = (C) => {
@@ -3284,29 +3355,29 @@ const zr = () => {
3284
3355
  const { acceptedTC: _ } = C.target;
3285
3356
  if (_ instanceof RadioNodeList) {
3286
3357
  const w = Object.values(_);
3287
- w.every((N) => N.checked) ? (l({}), c(w.map((N) => N.value)), x()) : l({ acceptedTC: y });
3358
+ w.every((k) => k.checked) ? (l({}), c(w.map((k) => k.value)), x()) : l({ acceptedTC: y });
3288
3359
  } else
3289
3360
  _ != null && _.checked ? (l({}), c([_.value]), x()) : l({ acceptedTC: y });
3290
3361
  };
3291
- return f ? /* @__PURE__ */ n.jsxs(F, { defaultOpen: f, isModal: !0, children: [
3362
+ return p ? /* @__PURE__ */ n.jsxs(F, { defaultOpen: p, isModal: !0, children: [
3292
3363
  u,
3293
3364
  /* @__PURE__ */ n.jsxs(F.Root, { children: [
3294
- /* @__PURE__ */ n.jsx(F.Header, { children: /* @__PURE__ */ n.jsx(F.Title, { icon: /* @__PURE__ */ n.jsx(Ee, { role: "presentation" }), children: /* @__PURE__ */ n.jsx($r, { children: t("termsAndConditions.title") }) }) }),
3295
- /* @__PURE__ */ n.jsx(F.Body, { children: /* @__PURE__ */ n.jsxs(wt, { ref: p, id: "tc-form", onSubmit: m, children: [
3365
+ /* @__PURE__ */ n.jsx(F.Header, { children: /* @__PURE__ */ n.jsx(F.Title, { icon: /* @__PURE__ */ n.jsx(Ee, { role: "presentation" }), children: /* @__PURE__ */ n.jsx(Wr, { children: t("termsAndConditions.title") }) }) }),
3366
+ /* @__PURE__ */ n.jsx(F.Body, { children: /* @__PURE__ */ n.jsxs(wt, { ref: f, id: "tc-form", onSubmit: m, children: [
3296
3367
  /* @__PURE__ */ n.jsxs(Gr, { children: [
3297
3368
  t("termsAndConditions.description"),
3298
- o.acceptedTC && /* @__PURE__ */ n.jsx(Zr, { children: y })
3369
+ o.acceptedTC && /* @__PURE__ */ n.jsx(zr, { children: y })
3299
3370
  ] }),
3300
3371
  v.map(({ tcCode: C, title: _, URL: w }) => /* @__PURE__ */ n.jsx(
3301
- Q,
3372
+ q,
3302
3373
  {
3303
3374
  id: C,
3304
3375
  value: C,
3305
3376
  name: "acceptedTC",
3306
3377
  variant: "primary",
3307
- children: /* @__PURE__ */ n.jsxs(Q.Content, { children: [
3308
- /* @__PURE__ */ n.jsx(Hr, { children: _ }),
3309
- /* @__PURE__ */ n.jsx(Vr, { href: w, children: t("termsAndConditions.action", { title: _ }) })
3378
+ children: /* @__PURE__ */ n.jsxs(q.Content, { children: [
3379
+ /* @__PURE__ */ n.jsx(Vr, { children: _ }),
3380
+ /* @__PURE__ */ n.jsx($r, { href: w, children: t("termsAndConditions.action", { title: _ }) })
3310
3381
  ] })
3311
3382
  },
3312
3383
  C
@@ -3316,7 +3387,7 @@ const zr = () => {
3316
3387
  /* @__PURE__ */ n.jsx(
3317
3388
  "a",
3318
3389
  {
3319
- className: P("button", "button--secondary", "button--terms-and-conditions"),
3390
+ className: R("button", "button--secondary", "button--terms-and-conditions"),
3320
3391
  href: `${s}/logout?redirectUrl=${e}`,
3321
3392
  children: t("logout")
3322
3393
  }
@@ -3325,12 +3396,12 @@ const zr = () => {
3325
3396
  ] })
3326
3397
  ] })
3327
3398
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {});
3328
- }, Xr = d.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ n.jsx("form", { className: "form--tc", ref: s, ...t, children: e }));
3329
- Xr.displayName = "TermsAndConditionsForm";
3330
- const Ir = new Je(), tn = ({ environment: e, redirectUrl: t, apiUrl: s, position: r, bouMenuItems: i }) => /* @__PURE__ */ n.jsx(Et, { environment: e, children: /* @__PURE__ */ n.jsx(Rr, { apiUrl: s, redirectUrl: t, children: /* @__PURE__ */ n.jsxs(ts, { client: Ir, children: [
3331
- /* @__PURE__ */ n.jsx(Tr, { position: r, bouMenuItems: i }),
3332
- /* @__PURE__ */ n.jsx(Jr, { redirectUrl: t })
3399
+ }, Ir = d.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ n.jsx("form", { className: "form--tc", ref: s, ...t, children: e }));
3400
+ Ir.displayName = "TermsAndConditionsForm";
3401
+ const Br = new Je(), sn = ({ environment: e, redirectUrl: t, apiUrl: s, position: r, bouMenuItems: i }) => /* @__PURE__ */ n.jsx(Et, { environment: e, children: /* @__PURE__ */ n.jsx(Or, { apiUrl: s, redirectUrl: t, children: /* @__PURE__ */ n.jsxs(ts, { client: Br, children: [
3402
+ /* @__PURE__ */ n.jsx(Ur, { position: r, bouMenuItems: i }),
3403
+ /* @__PURE__ */ n.jsx(Xr, { redirectUrl: t })
3333
3404
  ] }) }) });
3334
3405
  export {
3335
- tn as default
3406
+ sn as default
3336
3407
  };