@myxtra/authentication-green 1.10.1 → 1.11.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
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-66467a79.mjs";
2
- class G {
1
+ import { r as d, j as n, g as yt, u as H, a as De, b as Ct, E as gt } from "./index-197cbc09.mjs";
2
+ class V {
3
3
  constructor() {
4
4
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
5
5
  }
@@ -19,20 +19,20 @@ class G {
19
19
  onUnsubscribe() {
20
20
  }
21
21
  }
22
- const X = typeof window > "u" || "Deno" in window;
23
- function M() {
22
+ const Z = typeof window > "u" || "Deno" in window;
23
+ function N() {
24
24
  }
25
- function Pt(e, t) {
25
+ function xt(e, t) {
26
26
  return typeof e == "function" ? e(t) : e;
27
27
  }
28
- function fe(e) {
28
+ function ce(e) {
29
29
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
30
30
  }
31
- function Ke(e, t) {
31
+ function Te(e, t) {
32
32
  return Math.max(e + (t || 0) - Date.now(), 0);
33
33
  }
34
- function J(e, t, s) {
35
- return I(e) ? typeof t == "function" ? {
34
+ function $(e, t, s) {
35
+ return z(e) ? typeof t == "function" ? {
36
36
  ...s,
37
37
  queryKey: e,
38
38
  queryFn: t
@@ -41,8 +41,8 @@ function J(e, t, s) {
41
41
  queryKey: e
42
42
  } : e;
43
43
  }
44
- function Rt(e, t, s) {
45
- return I(e) ? typeof t == "function" ? {
44
+ function bt(e, t, s) {
45
+ return z(e) ? typeof t == "function" ? {
46
46
  ...s,
47
47
  mutationKey: e,
48
48
  mutationFn: t
@@ -57,12 +57,12 @@ function Rt(e, t, s) {
57
57
  };
58
58
  }
59
59
  function T(e, t, s) {
60
- return I(e) ? [{
60
+ return z(e) ? [{
61
61
  ...t,
62
62
  queryKey: e
63
63
  }, s] : [e || {}, t];
64
64
  }
65
- function Re(e, t) {
65
+ function Se(e, t) {
66
66
  const {
67
67
  type: s = "all",
68
68
  exact: r,
@@ -71,11 +71,11 @@ function Re(e, t) {
71
71
  queryKey: o,
72
72
  stale: l
73
73
  } = e;
74
- if (I(o)) {
74
+ if (z(o)) {
75
75
  if (r) {
76
- if (t.queryHash !== we(o, t.options))
76
+ if (t.queryHash !== Ce(o, t.options))
77
77
  return !1;
78
- } else if (!se(t.queryKey, o))
78
+ } else if (!B(t.queryKey, o))
79
79
  return !1;
80
80
  }
81
81
  if (s !== "all") {
@@ -85,52 +85,52 @@ 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 Oe(e, t) {
88
+ function Ee(e, t) {
89
89
  const {
90
90
  exact: s,
91
91
  fetching: r,
92
92
  predicate: i,
93
93
  mutationKey: a
94
94
  } = e;
95
- if (I(a)) {
95
+ if (z(a)) {
96
96
  if (!t.options.mutationKey)
97
97
  return !1;
98
98
  if (s) {
99
99
  if (Q(t.options.mutationKey) !== Q(a))
100
100
  return !1;
101
- } else if (!se(t.options.mutationKey, a))
101
+ } else if (!B(t.options.mutationKey, a))
102
102
  return !1;
103
103
  }
104
104
  return !(typeof r == "boolean" && t.state.status === "loading" !== r || i && !i(t));
105
105
  }
106
- function we(e, t) {
106
+ function Ce(e, t) {
107
107
  return ((t == null ? void 0 : t.queryKeyHashFn) || Q)(e);
108
108
  }
109
109
  function Q(e) {
110
- return JSON.stringify(e, (t, s) => pe(s) ? Object.keys(s).sort().reduce((r, i) => (r[i] = s[i], r), {}) : s);
110
+ return JSON.stringify(e, (t, s) => ue(s) ? Object.keys(s).sort().reduce((r, i) => (r[i] = s[i], r), {}) : s);
111
111
  }
112
- function se(e, t) {
113
- return Ve(e, t);
112
+ function B(e, t) {
113
+ return Ue(e, t);
114
114
  }
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;
115
+ function Ue(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) => !Ue(e[s], t[s])) : !1;
117
117
  }
118
- function Ge(e, t) {
118
+ function Qe(e, t) {
119
119
  if (e === t)
120
120
  return e;
121
- const s = Ae(e) && Ae(t);
122
- if (s || pe(e) && pe(t)) {
121
+ const s = Re(e) && Re(t);
122
+ if (s || ue(e) && ue(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] = Ge(e[h], t[h]), o[h] === e[h] && l++;
127
+ o[h] = Qe(e[h], t[h]), o[h] === e[h] && l++;
128
128
  }
129
129
  return r === a && l === r ? e : o;
130
130
  }
131
131
  return t;
132
132
  }
133
- function re(e, t) {
133
+ function ee(e, t) {
134
134
  if (e && !t || t && !e)
135
135
  return !1;
136
136
  for (const s in e)
@@ -138,43 +138,43 @@ function re(e, t) {
138
138
  return !1;
139
139
  return !0;
140
140
  }
141
- function Ae(e) {
141
+ function Re(e) {
142
142
  return Array.isArray(e) && e.length === Object.keys(e).length;
143
143
  }
144
- function pe(e) {
145
- if (!ke(e))
144
+ function ue(e) {
145
+ if (!_e(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 !(!ke(s) || !s.hasOwnProperty("isPrototypeOf"));
151
+ return !(!_e(s) || !s.hasOwnProperty("isPrototypeOf"));
152
152
  }
153
- function ke(e) {
153
+ function _e(e) {
154
154
  return Object.prototype.toString.call(e) === "[object Object]";
155
155
  }
156
- function I(e) {
156
+ function z(e) {
157
157
  return Array.isArray(e);
158
158
  }
159
- function $e(e) {
159
+ function qe(e) {
160
160
  return new Promise((t) => {
161
161
  setTimeout(t, e);
162
162
  });
163
163
  }
164
- function Fe(e) {
165
- $e(0).then(e);
164
+ function Pe(e) {
165
+ qe(0).then(e);
166
166
  }
167
- function Ot() {
167
+ function wt() {
168
168
  if (typeof AbortController == "function")
169
169
  return new AbortController();
170
170
  }
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 ? Ge(e, t) : t;
171
+ function de(e, t, s) {
172
+ return s.isDataEqual != null && s.isDataEqual(e, t) ? e : typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? Qe(e, t) : t;
173
173
  }
174
- class At extends G {
174
+ class jt extends V {
175
175
  constructor() {
176
176
  super(), this.setup = (t) => {
177
- if (!X && window.addEventListener) {
177
+ if (!Z && window.addEventListener) {
178
178
  const s = () => t();
179
179
  return window.addEventListener("visibilitychange", s, !1), window.addEventListener("focus", s, !1), () => {
180
180
  window.removeEventListener("visibilitychange", s), window.removeEventListener("focus", s);
@@ -211,16 +211,16 @@ class At extends G {
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 At(), Ne = ["online", "offline"];
215
- class kt extends G {
214
+ const te = new jt(), Ae = ["online", "offline"];
215
+ class St extends V {
216
216
  constructor() {
217
217
  super(), this.setup = (t) => {
218
- if (!X && window.addEventListener) {
218
+ if (!Z && window.addEventListener) {
219
219
  const s = () => t();
220
- return Ne.forEach((r) => {
220
+ return Ae.forEach((r) => {
221
221
  window.addEventListener(r, s, !1);
222
222
  }), () => {
223
- Ne.forEach((r) => {
223
+ Ae.forEach((r) => {
224
224
  window.removeEventListener(r, s);
225
225
  });
226
226
  };
@@ -256,39 +256,39 @@ class kt extends G {
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 kt();
260
- function Ft(e) {
259
+ const se = new St();
260
+ function Et(e) {
261
261
  return Math.min(1e3 * 2 ** e, 3e4);
262
262
  }
263
- function ue(e) {
264
- return (e ?? "online") === "online" ? ie.isOnline() : !0;
263
+ function ae(e) {
264
+ return (e ?? "online") === "online" ? se.isOnline() : !0;
265
265
  }
266
- class We {
266
+ class He {
267
267
  constructor(t) {
268
268
  this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
269
269
  }
270
270
  }
271
- function te(e) {
272
- return e instanceof We;
271
+ function I(e) {
272
+ return e instanceof He;
273
273
  }
274
- function Ze(e) {
274
+ function Ke(e) {
275
275
  let t = !1, s = 0, r = !1, i, a, o;
276
276
  const l = new Promise((m, C) => {
277
277
  a = m, o = C;
278
278
  }), c = (m) => {
279
- r || (p(new We(m)), e.abort == null || e.abort());
279
+ r || (p(new He(m)), e.abort == null || e.abort());
280
280
  }, h = () => {
281
281
  t = !0;
282
282
  }, u = () => {
283
283
  t = !1;
284
- }, f = () => !ne.isFocused() || e.networkMode !== "always" && !ie.isOnline(), v = (m) => {
284
+ }, f = () => !te.isFocused() || e.networkMode !== "always" && !se.isOnline(), v = (m) => {
285
285
  r || (r = !0, e.onSuccess == null || e.onSuccess(m), i == null || i(), a(m));
286
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 || !f();
291
- return _ && m(C), _;
290
+ const S = r || !f();
291
+ return S && m(C), S;
292
292
  }, e.onPause == null || e.onPause();
293
293
  }).then(() => {
294
294
  i = void 0, r || e.onContinue == null || e.onContinue();
@@ -302,15 +302,15 @@ function Ze(e) {
302
302
  m = Promise.reject(C);
303
303
  }
304
304
  Promise.resolve(m).then(v).catch((C) => {
305
- var _, w;
305
+ var S, w;
306
306
  if (r)
307
307
  return;
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);
308
+ const _ = (S = e.retry) != null ? S : 3, O = (w = e.retryDelay) != null ? w : Et, E = typeof O == "function" ? O(s, C) : O, j = _ === !0 || typeof _ == "number" && s < _ || typeof _ == "function" && _(s, C);
309
309
  if (t || !j) {
310
310
  p(C);
311
311
  return;
312
312
  }
313
- s++, e.onFail == null || e.onFail(s, C), $e(S).then(() => {
313
+ s++, e.onFail == null || e.onFail(s, C), qe(E).then(() => {
314
314
  if (f())
315
315
  return y();
316
316
  }).then(() => {
@@ -318,7 +318,7 @@ function Ze(e) {
318
318
  });
319
319
  });
320
320
  };
321
- return ue(e.networkMode) ? x() : y().then(x), {
321
+ return ae(e.networkMode) ? x() : y().then(x), {
322
322
  promise: l,
323
323
  cancel: c,
324
324
  continue: () => (i == null ? void 0 : i()) ? l : Promise.resolve(),
@@ -326,8 +326,8 @@ function Ze(e) {
326
326
  continueRetry: u
327
327
  };
328
328
  }
329
- const je = console;
330
- function Nt() {
329
+ const ge = console;
330
+ function Rt() {
331
331
  let e = [], t = 0, s = (u) => {
332
332
  u();
333
333
  }, r = (u) => {
@@ -343,7 +343,7 @@ function Nt() {
343
343
  }
344
344
  return f;
345
345
  }, a = (u) => {
346
- t ? e.push(u) : Fe(() => {
346
+ t ? e.push(u) : Pe(() => {
347
347
  s(u);
348
348
  });
349
349
  }, o = (u) => (...f) => {
@@ -352,7 +352,7 @@ function Nt() {
352
352
  });
353
353
  }, l = () => {
354
354
  const u = e;
355
- e = [], u.length && Fe(() => {
355
+ e = [], u.length && Pe(() => {
356
356
  r(() => {
357
357
  u.forEach((f) => {
358
358
  s(f);
@@ -372,26 +372,26 @@ function Nt() {
372
372
  }
373
373
  };
374
374
  }
375
- const O = Nt();
376
- class ze {
375
+ const A = Rt();
376
+ class Ve {
377
377
  destroy() {
378
378
  this.clearGcTimeout();
379
379
  }
380
380
  scheduleGc() {
381
- this.clearGcTimeout(), fe(this.cacheTime) && (this.gcTimeout = setTimeout(() => {
381
+ this.clearGcTimeout(), ce(this.cacheTime) && (this.gcTimeout = setTimeout(() => {
382
382
  this.optionalRemove();
383
383
  }, this.cacheTime));
384
384
  }
385
385
  updateCacheTime(t) {
386
- this.cacheTime = Math.max(this.cacheTime || 0, t ?? (X ? 1 / 0 : 5 * 60 * 1e3));
386
+ this.cacheTime = Math.max(this.cacheTime || 0, t ?? (Z ? 1 / 0 : 5 * 60 * 1e3));
387
387
  }
388
388
  clearGcTimeout() {
389
389
  this.gcTimeout && (clearTimeout(this.gcTimeout), this.gcTimeout = void 0);
390
390
  }
391
391
  }
392
- class Mt extends ze {
392
+ class _t extends Ve {
393
393
  constructor(t) {
394
- super(), this.abortSignalConsumed = !1, this.defaultOptions = t.defaultOptions, this.setOptions(t.options), this.observers = [], this.cache = t.cache, this.logger = t.logger || je, this.queryKey = t.queryKey, this.queryHash = t.queryHash, this.initialState = t.state || Lt(this.options), this.state = this.initialState, this.scheduleGc();
394
+ super(), this.abortSignalConsumed = !1, this.defaultOptions = t.defaultOptions, this.setOptions(t.options), this.observers = [], this.cache = t.cache, this.logger = t.logger || ge, this.queryKey = t.queryKey, this.queryHash = t.queryHash, this.initialState = t.state || Pt(this.options), this.state = this.initialState, this.scheduleGc();
395
395
  }
396
396
  get meta() {
397
397
  return this.options.meta;
@@ -406,7 +406,7 @@ class Mt extends ze {
406
406
  !this.observers.length && this.state.fetchStatus === "idle" && this.cache.remove(this);
407
407
  }
408
408
  setData(t, s) {
409
- const r = ve(this.state.data, t, this.options);
409
+ const r = de(this.state.data, t, this.options);
410
410
  return this.dispatch({
411
411
  data: r,
412
412
  type: "success",
@@ -424,7 +424,7 @@ class Mt extends ze {
424
424
  cancel(t) {
425
425
  var s;
426
426
  const r = this.promise;
427
- return (s = this.retryer) == null || s.cancel(t), r ? r.then(M).catch(M) : Promise.resolve();
427
+ return (s = this.retryer) == null || s.cancel(t), r ? r.then(N).catch(N) : Promise.resolve();
428
428
  }
429
429
  destroy() {
430
430
  super.destroy(), this.cancel({
@@ -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 || !Ke(this.state.dataUpdatedAt, t);
447
+ return this.state.isInvalidated || !this.state.dataUpdatedAt || !Te(this.state.dataUpdatedAt, t);
448
448
  }
449
449
  onFocus() {
450
450
  var t;
@@ -500,7 +500,7 @@ class Mt extends ze {
500
500
  const p = this.observers.find((y) => y.options.queryFn);
501
501
  p && this.setOptions(p.options);
502
502
  }
503
- const o = Ot(), l = {
503
+ const o = wt(), l = {
504
504
  queryKey: this.queryKey,
505
505
  pageParam: void 0,
506
506
  meta: this.meta
@@ -529,16 +529,16 @@ class Mt extends ze {
529
529
  });
530
530
  }
531
531
  const v = (p) => {
532
- if (te(p) && p.silent || this.dispatch({
532
+ if (I(p) && p.silent || this.dispatch({
533
533
  type: "error",
534
534
  error: p
535
- }), !te(p)) {
535
+ }), !I(p)) {
536
536
  var y, x, m, C;
537
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);
538
538
  }
539
539
  this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
540
540
  };
541
- return this.retryer = Ze({
541
+ return this.retryer = Ke({
542
542
  fn: u.fetchFn,
543
543
  abort: o == null ? void 0 : o.abort.bind(o),
544
544
  onSuccess: (p) => {
@@ -598,7 +598,7 @@ class Mt extends ze {
598
598
  fetchFailureCount: 0,
599
599
  fetchFailureReason: null,
600
600
  fetchMeta: (i = t.meta) != null ? i : null,
601
- fetchStatus: ue(this.options.networkMode) ? "fetching" : "paused",
601
+ fetchStatus: ae(this.options.networkMode) ? "fetching" : "paused",
602
602
  ...!r.dataUpdatedAt && {
603
603
  error: null,
604
604
  status: "loading"
@@ -621,7 +621,7 @@ class Mt extends ze {
621
621
  };
622
622
  case "error":
623
623
  const o = t.error;
624
- return te(o) && o.revert && this.revertState ? {
624
+ return I(o) && o.revert && this.revertState ? {
625
625
  ...this.revertState,
626
626
  fetchStatus: "idle"
627
627
  } : {
@@ -646,7 +646,7 @@ class Mt extends ze {
646
646
  };
647
647
  }
648
648
  };
649
- this.state = s(this.state), O.batch(() => {
649
+ this.state = s(this.state), A.batch(() => {
650
650
  this.observers.forEach((r) => {
651
651
  r.onQueryUpdate(t);
652
652
  }), this.cache.notify({
@@ -657,7 +657,7 @@ class Mt extends ze {
657
657
  });
658
658
  }
659
659
  }
660
- function Lt(e) {
660
+ function Pt(e) {
661
661
  const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, s = typeof t < "u", r = s ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
662
662
  return {
663
663
  data: t,
@@ -674,15 +674,15 @@ function Lt(e) {
674
674
  fetchStatus: "idle"
675
675
  };
676
676
  }
677
- class Dt extends G {
677
+ class At extends V {
678
678
  constructor(t) {
679
679
  super(), this.config = t || {}, this.queries = [], this.queriesMap = {};
680
680
  }
681
681
  build(t, s, r) {
682
682
  var i;
683
- const a = s.queryKey, o = (i = s.queryHash) != null ? i : we(a, s);
683
+ const a = s.queryKey, o = (i = s.queryHash) != null ? i : Ce(a, s);
684
684
  let l = this.get(o);
685
- return l || (l = new Mt({
685
+ return l || (l = new _t({
686
686
  cache: this,
687
687
  logger: t.getLogger(),
688
688
  queryKey: a,
@@ -706,7 +706,7 @@ class Dt extends G {
706
706
  }));
707
707
  }
708
708
  clear() {
709
- O.batch(() => {
709
+ A.batch(() => {
710
710
  this.queries.forEach((t) => {
711
711
  this.remove(t);
712
712
  });
@@ -720,14 +720,14 @@ class Dt extends G {
720
720
  }
721
721
  find(t, s) {
722
722
  const [r] = T(t, s);
723
- return typeof r.exact > "u" && (r.exact = !0), this.queries.find((i) => Re(r, i));
723
+ return typeof r.exact > "u" && (r.exact = !0), this.queries.find((i) => Se(r, i));
724
724
  }
725
725
  findAll(t, s) {
726
726
  const [r] = T(t, s);
727
- return Object.keys(r).length > 0 ? this.queries.filter((i) => Re(r, i)) : this.queries;
727
+ return Object.keys(r).length > 0 ? this.queries.filter((i) => Se(r, i)) : this.queries;
728
728
  }
729
729
  notify(t) {
730
- O.batch(() => {
730
+ A.batch(() => {
731
731
  this.listeners.forEach(({
732
732
  listener: s
733
733
  }) => {
@@ -736,23 +736,23 @@ class Dt extends G {
736
736
  });
737
737
  }
738
738
  onFocus() {
739
- O.batch(() => {
739
+ A.batch(() => {
740
740
  this.queries.forEach((t) => {
741
741
  t.onFocus();
742
742
  });
743
743
  });
744
744
  }
745
745
  onOnline() {
746
- O.batch(() => {
746
+ A.batch(() => {
747
747
  this.queries.forEach((t) => {
748
748
  t.onOnline();
749
749
  });
750
750
  });
751
751
  }
752
752
  }
753
- class Tt extends ze {
753
+ class kt extends Ve {
754
754
  constructor(t) {
755
- super(), this.defaultOptions = t.defaultOptions, this.mutationId = t.mutationId, this.mutationCache = t.mutationCache, this.logger = t.logger || je, this.observers = [], this.state = t.state || Ye(), this.setOptions(t.options), this.scheduleGc();
755
+ super(), this.defaultOptions = t.defaultOptions, this.mutationId = t.mutationId, this.mutationCache = t.mutationCache, this.logger = t.logger || ge, this.observers = [], this.state = t.state || Ge(), this.setOptions(t.options), this.scheduleGc();
756
756
  }
757
757
  setOptions(t) {
758
758
  this.options = {
@@ -793,13 +793,13 @@ class Tt extends ze {
793
793
  async execute() {
794
794
  const t = () => {
795
795
  var j;
796
- return this.retryer = Ze({
796
+ return this.retryer = Ke({
797
797
  fn: () => this.options.mutationFn ? this.options.mutationFn(this.state.variables) : Promise.reject("No mutationFn found"),
798
- onFail: (b, N) => {
798
+ onFail: (b, F) => {
799
799
  this.dispatch({
800
800
  type: "failed",
801
801
  failureCount: b,
802
- error: N
802
+ error: F
803
803
  });
804
804
  },
805
805
  onPause: () => {
@@ -839,8 +839,8 @@ class Tt extends ze {
839
839
  }), j;
840
840
  } catch (j) {
841
841
  try {
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;
842
+ var x, m, C, S, w, _, O, E;
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 = (S = this.options).onError) == null ? void 0 : C.call(S, j, this.state.variables, this.state.context)), await ((w = (_ = this.mutationCache.config).onSettled) == null ? void 0 : w.call(_, void 0, j, this.state.variables, this.state.context, this)), await ((O = (E = this.options).onSettled) == null ? void 0 : O.call(E, void 0, j, this.state.variables, this.state.context)), j;
844
844
  } finally {
845
845
  this.dispatch({
846
846
  type: "error",
@@ -876,7 +876,7 @@ class Tt extends ze {
876
876
  failureCount: 0,
877
877
  failureReason: null,
878
878
  error: null,
879
- isPaused: !ue(this.options.networkMode),
879
+ isPaused: !ae(this.options.networkMode),
880
880
  status: "loading",
881
881
  variables: t.variables
882
882
  };
@@ -907,7 +907,7 @@ class Tt extends ze {
907
907
  };
908
908
  }
909
909
  };
910
- this.state = s(this.state), O.batch(() => {
910
+ this.state = s(this.state), A.batch(() => {
911
911
  this.observers.forEach((r) => {
912
912
  r.onMutationUpdate(t);
913
913
  }), this.mutationCache.notify({
@@ -918,7 +918,7 @@ class Tt extends ze {
918
918
  });
919
919
  }
920
920
  }
921
- function Ye() {
921
+ function Ge() {
922
922
  return {
923
923
  context: void 0,
924
924
  data: void 0,
@@ -930,12 +930,12 @@ function Ye() {
930
930
  variables: void 0
931
931
  };
932
932
  }
933
- class Ut extends G {
933
+ class Ot extends V {
934
934
  constructor(t) {
935
935
  super(), this.config = t || {}, this.mutations = [], this.mutationId = 0;
936
936
  }
937
937
  build(t, s, r) {
938
- const i = new Tt({
938
+ const i = new kt({
939
939
  mutationCache: this,
940
940
  logger: t.getLogger(),
941
941
  mutationId: ++this.mutationId,
@@ -958,7 +958,7 @@ class Ut extends G {
958
958
  });
959
959
  }
960
960
  clear() {
961
- O.batch(() => {
961
+ A.batch(() => {
962
962
  this.mutations.forEach((t) => {
963
963
  this.remove(t);
964
964
  });
@@ -968,13 +968,13 @@ class Ut extends G {
968
968
  return this.mutations;
969
969
  }
970
970
  find(t) {
971
- return typeof t.exact > "u" && (t.exact = !0), this.mutations.find((s) => Oe(t, s));
971
+ return typeof t.exact > "u" && (t.exact = !0), this.mutations.find((s) => Ee(t, s));
972
972
  }
973
973
  findAll(t) {
974
- return this.mutations.filter((s) => Oe(t, s));
974
+ return this.mutations.filter((s) => Ee(t, s));
975
975
  }
976
976
  notify(t) {
977
- O.batch(() => {
977
+ A.batch(() => {
978
978
  this.listeners.forEach(({
979
979
  listener: s
980
980
  }) => {
@@ -986,21 +986,21 @@ class Ut extends G {
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 O.batch(() => s.reduce((r, i) => r.then(() => i.continue().catch(M)), Promise.resolve()));
989
+ return A.batch(() => s.reduce((r, i) => r.then(() => i.continue().catch(N)), Promise.resolve()));
990
990
  }).then(() => {
991
991
  this.resuming = void 0;
992
992
  }), this.resuming;
993
993
  }
994
994
  }
995
- function Qt() {
995
+ function Ft() {
996
996
  return {
997
997
  onFetch: (e) => {
998
998
  e.fetchFn = () => {
999
999
  var t, s, r, i, a, o;
1000
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
1001
  let y = p, x = !1;
1002
- const m = (S) => {
1003
- Object.defineProperty(S, "signal", {
1002
+ const m = (E) => {
1003
+ Object.defineProperty(E, "signal", {
1004
1004
  enumerable: !0,
1005
1005
  get: () => {
1006
1006
  var j;
@@ -1015,65 +1015,65 @@ 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, N) => (y = N ? [j, ...y] : [...y, j], N ? [b, ...S] : [...S, b]), w = (S, j, b, N) => {
1018
+ }, C = e.options.queryFn || (() => Promise.reject("Missing queryFn for queryKey '" + e.options.queryHash + "'")), S = (E, j, b, F) => (y = F ? [j, ...y] : [...y, j], F ? [b, ...E] : [...E, b]), w = (E, j, b, F) => {
1019
1019
  if (x)
1020
1020
  return Promise.reject("Cancelled");
1021
- if (typeof b > "u" && !j && S.length)
1022
- return Promise.resolve(S);
1023
- const Y = {
1021
+ if (typeof b > "u" && !j && E.length)
1022
+ return Promise.resolve(E);
1023
+ const W = {
1024
1024
  queryKey: e.queryKey,
1025
1025
  pageParam: b,
1026
1026
  meta: e.options.meta
1027
1027
  };
1028
- m(Y);
1029
- const de = C(Y);
1030
- return Promise.resolve(de).then((jt) => _(S, b, jt, N));
1028
+ m(W);
1029
+ const oe = C(W);
1030
+ return Promise.resolve(oe).then((mt) => S(E, b, mt, F));
1031
1031
  };
1032
- let P;
1032
+ let _;
1033
1033
  if (!v.length)
1034
- P = w([]);
1034
+ _ = w([]);
1035
1035
  else if (u) {
1036
- const S = typeof h < "u", j = S ? h : Me(e.options, v);
1037
- P = w(v, S, j);
1036
+ const E = typeof h < "u", j = E ? h : ke(e.options, v);
1037
+ _ = w(v, E, j);
1038
1038
  } else if (f) {
1039
- const S = typeof h < "u", j = S ? h : qt(e.options, v);
1040
- P = w(v, S, j, !0);
1039
+ const E = typeof h < "u", j = E ? h : Mt(e.options, v);
1040
+ _ = w(v, E, j, !0);
1041
1041
  } else {
1042
1042
  y = [];
1043
- const S = typeof e.options.getNextPageParam > "u";
1044
- P = (l && v[0] ? l(v[0], 0, v) : !0) ? w([], S, p[0]) : Promise.resolve(_([], p[0], v[0]));
1043
+ const E = typeof e.options.getNextPageParam > "u";
1044
+ _ = (l && v[0] ? l(v[0], 0, v) : !0) ? w([], E, p[0]) : Promise.resolve(S([], p[0], v[0]));
1045
1045
  for (let b = 1; b < v.length; b++)
1046
- P = P.then((N) => {
1046
+ _ = _.then((F) => {
1047
1047
  if (l && v[b] ? l(v[b], b, v) : !0) {
1048
- const de = S ? p[b] : Me(e.options, N);
1049
- return w(N, S, de);
1048
+ const oe = E ? p[b] : ke(e.options, F);
1049
+ return w(F, E, oe);
1050
1050
  }
1051
- return Promise.resolve(_(N, p[b], v[b]));
1051
+ return Promise.resolve(S(F, p[b], v[b]));
1052
1052
  });
1053
1053
  }
1054
- return P.then((S) => ({
1055
- pages: S,
1054
+ return _.then((E) => ({
1055
+ pages: E,
1056
1056
  pageParams: y
1057
1057
  }));
1058
1058
  };
1059
1059
  }
1060
1060
  };
1061
1061
  }
1062
- function Me(e, t) {
1062
+ function ke(e, t) {
1063
1063
  return e.getNextPageParam == null ? void 0 : e.getNextPageParam(t[t.length - 1], t);
1064
1064
  }
1065
- function qt(e, t) {
1065
+ function Mt(e, t) {
1066
1066
  return e.getPreviousPageParam == null ? void 0 : e.getPreviousPageParam(t[0], t);
1067
1067
  }
1068
- class Je {
1068
+ class We {
1069
1069
  constructor(t = {}) {
1070
- this.queryCache = t.queryCache || new Dt(), this.mutationCache = t.mutationCache || new Ut(), this.logger = t.logger || je, this.defaultOptions = t.defaultOptions || {}, this.queryDefaults = [], this.mutationDefaults = [], this.mountCount = 0;
1070
+ this.queryCache = t.queryCache || new At(), this.mutationCache = t.mutationCache || new Ot(), this.logger = t.logger || ge, this.defaultOptions = t.defaultOptions || {}, this.queryDefaults = [], this.mutationDefaults = [], this.mountCount = 0;
1071
1071
  }
1072
1072
  mount() {
1073
- this.mountCount++, this.mountCount === 1 && (this.unsubscribeFocus = ne.subscribe(() => {
1074
- ne.isFocused() && (this.resumePausedMutations(), this.queryCache.onFocus());
1075
- }), this.unsubscribeOnline = ie.subscribe(() => {
1076
- ie.isOnline() && (this.resumePausedMutations(), this.queryCache.onOnline());
1073
+ this.mountCount++, this.mountCount === 1 && (this.unsubscribeFocus = te.subscribe(() => {
1074
+ te.isFocused() && (this.resumePausedMutations(), this.queryCache.onFocus());
1075
+ }), this.unsubscribeOnline = se.subscribe(() => {
1076
+ se.isOnline() && (this.resumePausedMutations(), this.queryCache.onOnline());
1077
1077
  }));
1078
1078
  }
1079
1079
  unmount() {
@@ -1095,7 +1095,7 @@ class Je {
1095
1095
  return (r = this.queryCache.find(t, s)) == null ? void 0 : r.state.data;
1096
1096
  }
1097
1097
  ensureQueryData(t, s, r) {
1098
- const i = J(t, s, r), a = this.getQueryData(i.queryKey);
1098
+ const i = $(t, s, r), a = this.getQueryData(i.queryKey);
1099
1099
  return a ? Promise.resolve(a) : this.fetchQuery(i);
1100
1100
  }
1101
1101
  getQueriesData(t) {
@@ -1108,17 +1108,17 @@ class Je {
1108
1108
  });
1109
1109
  }
1110
1110
  setQueryData(t, s, r) {
1111
- const i = this.queryCache.find(t), a = i == null ? void 0 : i.state.data, o = Pt(s, a);
1111
+ const i = this.queryCache.find(t), a = i == null ? void 0 : i.state.data, o = xt(s, a);
1112
1112
  if (typeof o > "u")
1113
1113
  return;
1114
- const l = J(t), c = this.defaultQueryOptions(l);
1114
+ const l = $(t), c = this.defaultQueryOptions(l);
1115
1115
  return this.queryCache.build(this, c).setData(o, {
1116
1116
  ...r,
1117
1117
  manual: !0
1118
1118
  });
1119
1119
  }
1120
1120
  setQueriesData(t, s, r) {
1121
- return O.batch(() => this.getQueryCache().findAll(t).map(({
1121
+ return A.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
- O.batch(() => {
1131
+ A.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 O.batch(() => (o.findAll(i).forEach((c) => {
1142
+ return A.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 = O.batch(() => this.queryCache.findAll(i).map((l) => l.cancel(a)));
1150
- return Promise.all(o).then(M).catch(M);
1149
+ const o = A.batch(() => this.queryCache.findAll(i).map((l) => l.cancel(a)));
1150
+ return Promise.all(o).then(N).catch(N);
1151
1151
  }
1152
1152
  invalidateQueries(t, s, r) {
1153
1153
  const [i, a] = T(t, s, r);
1154
- return O.batch(() => {
1154
+ return A.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 = O.batch(() => this.queryCache.findAll(i).filter((c) => !c.isDisabled()).map((c) => {
1168
+ const [i, a] = T(t, s, r), o = A.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,
@@ -1175,24 +1175,24 @@ class Je {
1175
1175
  }
1176
1176
  });
1177
1177
  }));
1178
- let l = Promise.all(o).then(M);
1179
- return a != null && a.throwOnError || (l = l.catch(M)), l;
1178
+ let l = Promise.all(o).then(N);
1179
+ return a != null && a.throwOnError || (l = l.catch(N)), l;
1180
1180
  }
1181
1181
  fetchQuery(t, s, r) {
1182
- const i = J(t, s, r), a = this.defaultQueryOptions(i);
1182
+ const i = $(t, s, r), a = this.defaultQueryOptions(i);
1183
1183
  typeof a.retry > "u" && (a.retry = !1);
1184
1184
  const o = this.queryCache.build(this, a);
1185
1185
  return o.isStaleByTime(a.staleTime) ? o.fetch(a) : Promise.resolve(o.state.data);
1186
1186
  }
1187
1187
  prefetchQuery(t, s, r) {
1188
- return this.fetchQuery(t, s, r).then(M).catch(M);
1188
+ return this.fetchQuery(t, s, r).then(N).catch(N);
1189
1189
  }
1190
1190
  fetchInfiniteQuery(t, s, r) {
1191
- const i = J(t, s, r);
1192
- return i.behavior = Qt(), this.fetchQuery(i);
1191
+ const i = $(t, s, r);
1192
+ return i.behavior = Ft(), this.fetchQuery(i);
1193
1193
  }
1194
1194
  prefetchInfiniteQuery(t, s, r) {
1195
- return this.fetchInfiniteQuery(t, s, r).then(M).catch(M);
1195
+ return this.fetchInfiniteQuery(t, s, r).then(N).catch(N);
1196
1196
  }
1197
1197
  resumePausedMutations() {
1198
1198
  return this.mutationCache.resumePausedMutations();
@@ -1222,7 +1222,7 @@ class Je {
1222
1222
  getQueryDefaults(t) {
1223
1223
  if (!t)
1224
1224
  return;
1225
- const s = this.queryDefaults.find((r) => se(t, r.queryKey));
1225
+ const s = this.queryDefaults.find((r) => B(t, r.queryKey));
1226
1226
  return s == null ? void 0 : s.defaultOptions;
1227
1227
  }
1228
1228
  setMutationDefaults(t, s) {
@@ -1235,7 +1235,7 @@ class Je {
1235
1235
  getMutationDefaults(t) {
1236
1236
  if (!t)
1237
1237
  return;
1238
- const s = this.mutationDefaults.find((r) => se(t, r.mutationKey));
1238
+ const s = this.mutationDefaults.find((r) => B(t, r.mutationKey));
1239
1239
  return s == null ? void 0 : s.defaultOptions;
1240
1240
  }
1241
1241
  defaultQueryOptions(t) {
@@ -1247,7 +1247,7 @@ class Je {
1247
1247
  ...t,
1248
1248
  _defaulted: !0
1249
1249
  };
1250
- return !s.queryHash && s.queryKey && (s.queryHash = we(s.queryKey, s)), typeof s.refetchOnReconnect > "u" && (s.refetchOnReconnect = s.networkMode !== "always"), typeof s.useErrorBoundary > "u" && (s.useErrorBoundary = !!s.suspense), s;
1250
+ return !s.queryHash && s.queryKey && (s.queryHash = Ce(s.queryKey, s)), typeof s.refetchOnReconnect > "u" && (s.refetchOnReconnect = s.networkMode !== "always"), typeof s.useErrorBoundary > "u" && (s.useErrorBoundary = !!s.suspense), s;
1251
1251
  }
1252
1252
  defaultMutationOptions(t) {
1253
1253
  return t != null && t._defaulted ? t : {
@@ -1261,7 +1261,7 @@ class Je {
1261
1261
  this.queryCache.clear(), this.mutationCache.clear();
1262
1262
  }
1263
1263
  }
1264
- class Ht extends G {
1264
+ class Nt extends V {
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
  }
@@ -1269,23 +1269,23 @@ class Ht extends G {
1269
1269
  this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
1270
1270
  }
1271
1271
  onSubscribe() {
1272
- this.listeners.size === 1 && (this.currentQuery.addObserver(this), Le(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1272
+ this.listeners.size === 1 && (this.currentQuery.addObserver(this), Oe(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1273
1273
  }
1274
1274
  onUnsubscribe() {
1275
1275
  this.hasListeners() || this.destroy();
1276
1276
  }
1277
1277
  shouldFetchOnReconnect() {
1278
- return me(this.currentQuery, this.options, this.options.refetchOnReconnect);
1278
+ return he(this.currentQuery, this.options, this.options.refetchOnReconnect);
1279
1279
  }
1280
1280
  shouldFetchOnWindowFocus() {
1281
- return me(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1281
+ return he(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1282
1282
  }
1283
1283
  destroy() {
1284
1284
  this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
1285
1285
  }
1286
1286
  setOptions(t, s) {
1287
1287
  const r = this.options, i = this.currentQuery;
1288
- if (this.options = this.client.defaultQueryOptions(t), re(r, this.options) || this.client.getQueryCache().notify({
1288
+ if (this.options = this.client.defaultQueryOptions(t), ee(r, this.options) || this.client.getQueryCache().notify({
1289
1289
  type: "observerOptionsUpdated",
1290
1290
  query: this.currentQuery,
1291
1291
  observer: this
@@ -1293,13 +1293,13 @@ class Ht extends G {
1293
1293
  throw new Error("Expected enabled to be a boolean");
1294
1294
  this.options.queryKey || (this.options.queryKey = r.queryKey), this.updateQuery();
1295
1295
  const a = this.hasListeners();
1296
- a && De(this.currentQuery, i, this.options, r) && this.executeFetch(), this.updateResult(s), a && (this.currentQuery !== i || this.options.enabled !== r.enabled || this.options.staleTime !== r.staleTime) && this.updateStaleTimeout();
1296
+ a && Fe(this.currentQuery, i, this.options, r) && this.executeFetch(), this.updateResult(s), a && (this.currentQuery !== i || this.options.enabled !== r.enabled || this.options.staleTime !== r.staleTime) && this.updateStaleTimeout();
1297
1297
  const o = this.computeRefetchInterval();
1298
1298
  a && (this.currentQuery !== i || this.options.enabled !== r.enabled || o !== this.currentRefetchInterval) && this.updateRefetchInterval(o);
1299
1299
  }
1300
1300
  getOptimisticResult(t) {
1301
1301
  const s = this.client.getQueryCache().build(this.client, t), r = this.createResult(s, t);
1302
- return Vt(this, r, t) && (this.currentResult = r, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), r;
1302
+ return Dt(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;
@@ -1345,12 +1345,12 @@ class Ht extends G {
1345
1345
  executeFetch(t) {
1346
1346
  this.updateQuery();
1347
1347
  let s = this.currentQuery.fetch(this.options, t);
1348
- return t != null && t.throwOnError || (s = s.catch(M)), s;
1348
+ return t != null && t.throwOnError || (s = s.catch(N)), s;
1349
1349
  }
1350
1350
  updateStaleTimeout() {
1351
- if (this.clearStaleTimeout(), X || this.currentResult.isStale || !fe(this.options.staleTime))
1351
+ if (this.clearStaleTimeout(), Z || this.currentResult.isStale || !ce(this.options.staleTime))
1352
1352
  return;
1353
- const s = Ke(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1353
+ const s = Te(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1354
1354
  this.staleTimeoutId = setTimeout(() => {
1355
1355
  this.currentResult.isStale || this.updateResult();
1356
1356
  }, s);
@@ -1360,8 +1360,8 @@ class Ht extends G {
1360
1360
  return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (t = this.options.refetchInterval) != null ? t : !1;
1361
1361
  }
1362
1362
  updateRefetchInterval(t) {
1363
- this.clearRefetchInterval(), this.currentRefetchInterval = t, !(X || this.options.enabled === !1 || !fe(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1364
- (this.options.refetchIntervalInBackground || ne.isFocused()) && this.executeFetch();
1363
+ this.clearRefetchInterval(), this.currentRefetchInterval = t, !(Z || this.options.enabled === !1 || !ce(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1364
+ (this.options.refetchIntervalInBackground || te.isFocused()) && this.executeFetch();
1365
1365
  }, this.currentRefetchInterval));
1366
1366
  }
1367
1367
  updateTimers() {
@@ -1383,10 +1383,10 @@ class Ht extends G {
1383
1383
  errorUpdatedAt: y,
1384
1384
  fetchStatus: x,
1385
1385
  status: m
1386
- } = f, C = !1, _ = !1, w;
1386
+ } = f, C = !1, S = !1, w;
1387
1387
  if (s._optimisticResults) {
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");
1388
+ const b = this.hasListeners(), F = !b && Oe(t, s), W = b && Fe(t, r, s, i);
1389
+ (F || W) && (x = ae(t.options.networkMode) ? "fetching" : "paused", v || (m = "loading")), s._optimisticResults === "isRestoring" && (x = "idle");
1390
1390
  }
1391
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;
@@ -1395,7 +1395,7 @@ class Ht extends G {
1395
1395
  w = this.selectResult;
1396
1396
  else
1397
1397
  try {
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;
1398
+ this.selectFn = s.select, w = s.select(f.data), w = de(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
  }
@@ -1408,20 +1408,20 @@ class Ht extends G {
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 (N) {
1412
- this.selectError = N;
1411
+ } catch (F) {
1412
+ this.selectError = F;
1413
1413
  }
1414
- typeof b < "u" && (m = "success", w = ve(a == null ? void 0 : a.data, b, s), _ = !0);
1414
+ typeof b < "u" && (m = "success", w = de(a == null ? void 0 : a.data, b, s), S = !0);
1415
1415
  }
1416
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";
1417
+ const _ = x === "fetching", O = m === "loading", E = m === "error";
1418
1418
  return {
1419
1419
  status: m,
1420
1420
  fetchStatus: x,
1421
- isLoading: k,
1421
+ isLoading: O,
1422
1422
  isSuccess: m === "success",
1423
- isError: S,
1424
- isInitialLoading: k && P,
1423
+ isError: E,
1424
+ isInitialLoading: O && _,
1425
1425
  data: w,
1426
1426
  dataUpdatedAt: v,
1427
1427
  error: p,
@@ -1431,21 +1431,21 @@ class Ht extends G {
1431
1431
  errorUpdateCount: f.errorUpdateCount,
1432
1432
  isFetched: f.dataUpdateCount > 0 || f.errorUpdateCount > 0,
1433
1433
  isFetchedAfterMount: f.dataUpdateCount > h.dataUpdateCount || f.errorUpdateCount > h.errorUpdateCount,
1434
- isFetching: P,
1435
- isRefetching: P && !k,
1436
- isLoadingError: S && f.dataUpdatedAt === 0,
1434
+ isFetching: _,
1435
+ isRefetching: _ && !O,
1436
+ isLoadingError: E && f.dataUpdatedAt === 0,
1437
1437
  isPaused: x === "paused",
1438
- isPlaceholderData: _,
1438
+ isPlaceholderData: S,
1439
1439
  isPreviousData: C,
1440
- isRefetchError: S && f.dataUpdatedAt !== 0,
1441
- isStale: _e(t, s),
1440
+ isRefetchError: E && f.dataUpdatedAt !== 0,
1441
+ isStale: xe(t, s),
1442
1442
  refetch: this.refetch,
1443
1443
  remove: this.remove
1444
1444
  };
1445
1445
  }
1446
1446
  updateResult(t) {
1447
1447
  const s = this.currentResult, r = this.createResult(this.currentQuery, this.options);
1448
- if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, re(r, s))
1448
+ if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, ee(r, s))
1449
1449
  return;
1450
1450
  this.currentResult = r;
1451
1451
  const i = {
@@ -1478,10 +1478,10 @@ class Ht extends G {
1478
1478
  }
1479
1479
  onQueryUpdate(t) {
1480
1480
  const s = {};
1481
- t.type === "success" ? s.onSuccess = !t.manual : t.type === "error" && !te(t.error) && (s.onError = !0), this.updateResult(s), this.hasListeners() && this.updateTimers();
1481
+ t.type === "success" ? s.onSuccess = !t.manual : t.type === "error" && !I(t.error) && (s.onError = !0), this.updateResult(s), this.hasListeners() && this.updateTimers();
1482
1482
  }
1483
1483
  notify(t) {
1484
- O.batch(() => {
1484
+ A.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,29 +1500,29 @@ class Ht extends G {
1500
1500
  });
1501
1501
  }
1502
1502
  }
1503
- function Kt(e, t) {
1503
+ function Lt(e, t) {
1504
1504
  return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === !1);
1505
1505
  }
1506
- function Le(e, t) {
1507
- return Kt(e, t) || e.state.dataUpdatedAt > 0 && me(e, t, t.refetchOnMount);
1506
+ function Oe(e, t) {
1507
+ return Lt(e, t) || e.state.dataUpdatedAt > 0 && he(e, t, t.refetchOnMount);
1508
1508
  }
1509
- function me(e, t, s) {
1509
+ function he(e, t, s) {
1510
1510
  if (t.enabled !== !1) {
1511
1511
  const r = typeof s == "function" ? s(e) : s;
1512
- return r === "always" || r !== !1 && _e(e, t);
1512
+ return r === "always" || r !== !1 && xe(e, t);
1513
1513
  }
1514
1514
  return !1;
1515
1515
  }
1516
- function De(e, t, s, r) {
1517
- return s.enabled !== !1 && (e !== t || r.enabled === !1) && (!s.suspense || e.state.status !== "error") && _e(e, s);
1516
+ function Fe(e, t, s, r) {
1517
+ return s.enabled !== !1 && (e !== t || r.enabled === !1) && (!s.suspense || e.state.status !== "error") && xe(e, s);
1518
1518
  }
1519
- function _e(e, t) {
1519
+ function xe(e, t) {
1520
1520
  return e.isStaleByTime(t.staleTime);
1521
1521
  }
1522
- function Vt(e, t, s) {
1523
- return s.keepPreviousData ? !1 : s.placeholderData !== void 0 ? t.isPlaceholderData : !re(e.getCurrentResult(), t);
1522
+ function Dt(e, t, s) {
1523
+ return s.keepPreviousData ? !1 : s.placeholderData !== void 0 ? t.isPlaceholderData : !ee(e.getCurrentResult(), t);
1524
1524
  }
1525
- class Gt extends G {
1525
+ class Tt extends V {
1526
1526
  constructor(t, s) {
1527
1527
  super(), this.client = t, this.setOptions(s), this.bindMethods(), this.updateResult();
1528
1528
  }
@@ -1532,7 +1532,7 @@ class Gt extends G {
1532
1532
  setOptions(t) {
1533
1533
  var s;
1534
1534
  const r = this.options;
1535
- this.options = this.client.defaultMutationOptions(t), re(r, this.options) || this.client.getMutationCache().notify({
1535
+ this.options = this.client.defaultMutationOptions(t), ee(r, this.options) || this.client.getMutationCache().notify({
1536
1536
  type: "observerOptionsUpdated",
1537
1537
  mutation: this.currentMutation,
1538
1538
  observer: this
@@ -1566,7 +1566,7 @@ class Gt extends G {
1566
1566
  }), this.currentMutation.addObserver(this), this.currentMutation.execute();
1567
1567
  }
1568
1568
  updateResult() {
1569
- const t = this.currentMutation ? this.currentMutation.state : Ye(), s = {
1569
+ const t = this.currentMutation ? this.currentMutation.state : Ge(), s = {
1570
1570
  ...t,
1571
1571
  isLoading: t.status === "loading",
1572
1572
  isSuccess: t.status === "success",
@@ -1578,7 +1578,7 @@ class Gt extends G {
1578
1578
  this.currentResult = s;
1579
1579
  }
1580
1580
  notify(t) {
1581
- O.batch(() => {
1581
+ A.batch(() => {
1582
1582
  if (this.mutateOptions && this.hasListeners()) {
1583
1583
  if (t.onSuccess) {
1584
1584
  var s, r, i, a;
@@ -1596,7 +1596,7 @@ class Gt extends G {
1596
1596
  });
1597
1597
  }
1598
1598
  }
1599
- var Xe = { exports: {} }, Ie = {};
1599
+ var $e = { exports: {} }, Ze = {};
1600
1600
  /**
1601
1601
  * @license React
1602
1602
  * use-sync-external-store-shim.production.min.js
@@ -1606,50 +1606,50 @@ 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 V = d;
1610
- function $t(e, t) {
1609
+ var K = d;
1610
+ function Ut(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 = V.useState, zt = V.useEffect, Yt = V.useLayoutEffect, Jt = V.useDebugValue;
1614
- function Xt(e, t) {
1615
- var s = t(), r = Zt({ inst: { value: s, getSnapshot: t } }), i = r[0].inst, a = r[1];
1616
- return Yt(function() {
1617
- i.value = s, i.getSnapshot = t, he(i) && a({ inst: i });
1618
- }, [e, s, t]), zt(function() {
1619
- return he(i) && a({ inst: i }), e(function() {
1620
- he(i) && a({ inst: i });
1613
+ var Qt = typeof Object.is == "function" ? Object.is : Ut, qt = K.useState, Ht = K.useEffect, Kt = K.useLayoutEffect, Vt = K.useDebugValue;
1614
+ function Gt(e, t) {
1615
+ var s = t(), r = qt({ inst: { value: s, getSnapshot: t } }), i = r[0].inst, a = r[1];
1616
+ return Kt(function() {
1617
+ i.value = s, i.getSnapshot = t, le(i) && a({ inst: i });
1618
+ }, [e, s, t]), Ht(function() {
1619
+ return le(i) && a({ inst: i }), e(function() {
1620
+ le(i) && a({ inst: i });
1621
1621
  });
1622
- }, [e]), Jt(s), s;
1622
+ }, [e]), Vt(s), s;
1623
1623
  }
1624
- function he(e) {
1624
+ function le(e) {
1625
1625
  var t = e.getSnapshot;
1626
1626
  e = e.value;
1627
1627
  try {
1628
1628
  var s = t();
1629
- return !Wt(e, s);
1629
+ return !Qt(e, s);
1630
1630
  } catch {
1631
1631
  return !0;
1632
1632
  }
1633
1633
  }
1634
- function It(e, t) {
1634
+ function Wt(e, t) {
1635
1635
  return t();
1636
1636
  }
1637
- var Bt = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? It : Xt;
1638
- Ie.useSyncExternalStore = V.useSyncExternalStore !== void 0 ? V.useSyncExternalStore : Bt;
1639
- Xe.exports = Ie;
1640
- var es = Xe.exports;
1641
- const Be = es.useSyncExternalStore, Te = /* @__PURE__ */ d.createContext(void 0), et = /* @__PURE__ */ d.createContext(!1);
1642
- function tt(e, t) {
1643
- return e || (t && typeof window < "u" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Te), window.ReactQueryClientContext) : Te);
1637
+ var $t = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? Wt : Gt;
1638
+ Ze.useSyncExternalStore = K.useSyncExternalStore !== void 0 ? K.useSyncExternalStore : $t;
1639
+ $e.exports = Ze;
1640
+ var Zt = $e.exports;
1641
+ const ze = Zt.useSyncExternalStore, Me = /* @__PURE__ */ d.createContext(void 0), Ye = /* @__PURE__ */ d.createContext(!1);
1642
+ function Je(e, t) {
1643
+ return e || (t && typeof window < "u" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Me), window.ReactQueryClientContext) : Me);
1644
1644
  }
1645
- const st = ({
1645
+ const Xe = ({
1646
1646
  context: e
1647
1647
  } = {}) => {
1648
- const t = d.useContext(tt(e, d.useContext(et)));
1648
+ const t = d.useContext(Je(e, d.useContext(Ye)));
1649
1649
  if (!t)
1650
1650
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1651
1651
  return t;
1652
- }, ts = ({
1652
+ }, zt = ({
1653
1653
  client: e,
1654
1654
  children: t,
1655
1655
  context: s,
@@ -1658,15 +1658,15 @@ const st = ({
1658
1658
  d.useEffect(() => (e.mount(), () => {
1659
1659
  e.unmount();
1660
1660
  }), [e]);
1661
- const i = tt(s, r);
1662
- return /* @__PURE__ */ d.createElement(et.Provider, {
1661
+ const i = Je(s, r);
1662
+ return /* @__PURE__ */ d.createElement(Ye.Provider, {
1663
1663
  value: !s && r
1664
1664
  }, /* @__PURE__ */ d.createElement(i.Provider, {
1665
1665
  value: e
1666
1666
  }, t));
1667
- }, rt = /* @__PURE__ */ d.createContext(!1), ss = () => d.useContext(rt);
1668
- rt.Provider;
1669
- function rs() {
1667
+ }, Ie = /* @__PURE__ */ d.createContext(!1), Yt = () => d.useContext(Ie);
1668
+ Ie.Provider;
1669
+ function Jt() {
1670
1670
  let e = !1;
1671
1671
  return {
1672
1672
  clearReset: () => {
@@ -1678,47 +1678,47 @@ function rs() {
1678
1678
  isReset: () => e
1679
1679
  };
1680
1680
  }
1681
- const ns = /* @__PURE__ */ d.createContext(rs()), is = () => d.useContext(ns);
1682
- function nt(e, t) {
1681
+ const Xt = /* @__PURE__ */ d.createContext(Jt()), It = () => d.useContext(Xt);
1682
+ function Be(e, t) {
1683
1683
  return typeof e == "function" ? e(...t) : !!e;
1684
1684
  }
1685
- const as = (e, t) => {
1685
+ const Bt = (e, t) => {
1686
1686
  (e.suspense || e.useErrorBoundary) && (t.isReset() || (e.retryOnMount = !1));
1687
- }, os = (e) => {
1687
+ }, es = (e) => {
1688
1688
  d.useEffect(() => {
1689
1689
  e.clearReset();
1690
1690
  }, [e]);
1691
- }, ls = ({
1691
+ }, ts = ({
1692
1692
  result: e,
1693
1693
  errorResetBoundary: t,
1694
1694
  useErrorBoundary: s,
1695
1695
  query: r
1696
- }) => e.isError && !t.isReset() && !e.isFetching && nt(s, [e.error, r]), cs = (e) => {
1696
+ }) => e.isError && !t.isReset() && !e.isFetching && Be(s, [e.error, r]), ss = (e) => {
1697
1697
  e.suspense && typeof e.staleTime != "number" && (e.staleTime = 1e3);
1698
- }, us = (e, t) => e.isLoading && e.isFetching && !t, ds = (e, t, s) => (e == null ? void 0 : e.suspense) && us(t, s), hs = (e, t, s) => t.fetchOptimistic(e).then(({
1698
+ }, rs = (e, t) => e.isLoading && e.isFetching && !t, ns = (e, t, s) => (e == null ? void 0 : e.suspense) && rs(t, s), is = (e, t, s) => t.fetchOptimistic(e).then(({
1699
1699
  data: r
1700
1700
  }) => {
1701
1701
  e.onSuccess == null || e.onSuccess(r), e.onSettled == null || e.onSettled(r, null);
1702
1702
  }).catch((r) => {
1703
1703
  s.clearReset(), e.onError == null || e.onError(r), e.onSettled == null || e.onSettled(void 0, r);
1704
1704
  });
1705
- function fs(e, t) {
1706
- const s = st({
1705
+ function as(e, t) {
1706
+ const s = Xe({
1707
1707
  context: e.context
1708
- }), r = ss(), i = is(), a = s.defaultQueryOptions(e);
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);
1708
+ }), r = Yt(), i = It(), 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)), ss(a), Bt(a, i), es(i);
1710
1710
  const [o] = d.useState(() => new t(s, a)), l = o.getOptimisticResult(a);
1711
- if (Be(d.useCallback((c) => {
1711
+ if (ze(d.useCallback((c) => {
1712
1712
  const h = r ? () => {
1713
- } : o.subscribe(O.batchCalls(c));
1713
+ } : o.subscribe(A.batchCalls(c));
1714
1714
  return o.updateResult(), h;
1715
1715
  }, [o, r]), () => o.getCurrentResult(), () => o.getCurrentResult()), d.useEffect(() => {
1716
1716
  o.setOptions(a, {
1717
1717
  listeners: !1
1718
1718
  });
1719
- }, [a, o]), ds(a, l, r))
1720
- throw hs(a, o, i);
1721
- if (ls({
1719
+ }, [a, o]), ns(a, l, r))
1720
+ throw is(a, o, i);
1721
+ if (ts({
1722
1722
  result: l,
1723
1723
  errorResetBoundary: i,
1724
1724
  useErrorBoundary: a.useErrorBoundary,
@@ -1727,21 +1727,21 @@ function fs(e, t) {
1727
1727
  throw l.error;
1728
1728
  return a.notifyOnChangeProps ? l : o.trackResult(l);
1729
1729
  }
1730
- function it(e, t, s) {
1731
- const r = J(e, t, s);
1732
- return fs(r, Ht);
1730
+ function et(e, t, s) {
1731
+ const r = $(e, t, s);
1732
+ return as(r, Nt);
1733
1733
  }
1734
- function ps(e, t, s) {
1735
- const r = Rt(e, t, s), i = st({
1734
+ function os(e, t, s) {
1735
+ const r = bt(e, t, s), i = Xe({
1736
1736
  context: r.context
1737
- }), [a] = d.useState(() => new Gt(i, r));
1737
+ }), [a] = d.useState(() => new Tt(i, r));
1738
1738
  d.useEffect(() => {
1739
1739
  a.setOptions(r);
1740
1740
  }, [a, r]);
1741
- const o = Be(d.useCallback((c) => a.subscribe(O.batchCalls(c)), [a]), () => a.getCurrentResult(), () => a.getCurrentResult()), l = d.useCallback((c, h) => {
1742
- a.mutate(c, h).catch(vs);
1741
+ const o = ze(d.useCallback((c) => a.subscribe(A.batchCalls(c)), [a]), () => a.getCurrentResult(), () => a.getCurrentResult()), l = d.useCallback((c, h) => {
1742
+ a.mutate(c, h).catch(ls);
1743
1743
  }, [a]);
1744
- if (o.error && nt(a.options.useErrorBoundary, [o.error]))
1744
+ if (o.error && Be(a.options.useErrorBoundary, [o.error]))
1745
1745
  throw o.error;
1746
1746
  return {
1747
1747
  ...o,
@@ -1749,85 +1749,85 @@ function ps(e, t, s) {
1749
1749
  mutateAsync: o.mutate
1750
1750
  };
1751
1751
  }
1752
- function vs() {
1752
+ function ls() {
1753
1753
  }
1754
- function at(e) {
1754
+ function tt(e) {
1755
1755
  var t, s, r = "";
1756
1756
  if (typeof e == "string" || typeof e == "number")
1757
1757
  r += e;
1758
1758
  else if (typeof e == "object")
1759
1759
  if (Array.isArray(e))
1760
1760
  for (t = 0; t < e.length; t++)
1761
- e[t] && (s = at(e[t])) && (r && (r += " "), r += s);
1761
+ e[t] && (s = tt(e[t])) && (r && (r += " "), r += s);
1762
1762
  else
1763
1763
  for (t in e)
1764
1764
  e[t] && (r && (r += " "), r += t);
1765
1765
  return r;
1766
1766
  }
1767
- function R() {
1767
+ function P() {
1768
1768
  for (var e, t, s = 0, r = ""; s < arguments.length; )
1769
- (e = arguments[s++]) && (t = at(e)) && (r && (r += " "), r += t);
1769
+ (e = arguments[s++]) && (t = tt(e)) && (r && (r += " "), r += t);
1770
1770
  return r;
1771
1771
  }
1772
- var ms = Object.defineProperty, ys = Object.defineProperties, Cs = Object.getOwnPropertyDescriptors, ae = Object.getOwnPropertySymbols, ot = Object.prototype.hasOwnProperty, lt = Object.prototype.propertyIsEnumerable, Ue = (e, t, s) => t in e ? ms(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, g = (e, t) => {
1772
+ var cs = Object.defineProperty, us = Object.defineProperties, ds = Object.getOwnPropertyDescriptors, re = Object.getOwnPropertySymbols, st = Object.prototype.hasOwnProperty, rt = Object.prototype.propertyIsEnumerable, Ne = (e, t, s) => t in e ? cs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, g = (e, t) => {
1773
1773
  for (var s in t || (t = {}))
1774
- ot.call(t, s) && Ue(e, s, t[s]);
1775
- if (ae)
1776
- for (var s of ae(t))
1777
- lt.call(t, s) && Ue(e, s, t[s]);
1774
+ st.call(t, s) && Ne(e, s, t[s]);
1775
+ if (re)
1776
+ for (var s of re(t))
1777
+ rt.call(t, s) && Ne(e, s, t[s]);
1778
1778
  return e;
1779
- }, E = (e, t) => ys(e, Cs(t)), A = (e, t) => {
1779
+ }, R = (e, t) => us(e, ds(t)), k = (e, t) => {
1780
1780
  var s = {};
1781
1781
  for (var r in e)
1782
- ot.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
1783
- if (e != null && ae)
1784
- for (var r of ae(e))
1785
- t.indexOf(r) < 0 && lt.call(e, r) && (s[r] = e[r]);
1782
+ st.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
1783
+ if (e != null && re)
1784
+ for (var r of re(e))
1785
+ t.indexOf(r) < 0 && rt.call(e, r) && (s[r] = e[r]);
1786
1786
  return s;
1787
1787
  };
1788
- function oe() {
1789
- return oe = Object.assign ? Object.assign.bind() : function(e) {
1788
+ function ne() {
1789
+ return ne = Object.assign ? Object.assign.bind() : function(e) {
1790
1790
  for (var t = 1; t < arguments.length; t++) {
1791
1791
  var s = arguments[t];
1792
1792
  for (var r in s)
1793
1793
  Object.prototype.hasOwnProperty.call(s, r) && (e[r] = s[r]);
1794
1794
  }
1795
1795
  return e;
1796
- }, oe.apply(this, arguments);
1796
+ }, ne.apply(this, arguments);
1797
1797
  }
1798
- function gs(e, t) {
1798
+ function hs(e, t) {
1799
1799
  typeof e == "function" ? e(t) : e != null && (e.current = t);
1800
1800
  }
1801
- function xs(...e) {
1801
+ function fs(...e) {
1802
1802
  return (t) => e.forEach(
1803
- (s) => gs(s, t)
1803
+ (s) => hs(s, t)
1804
1804
  );
1805
1805
  }
1806
- var bs = /* @__PURE__ */ d.forwardRef((e, t) => {
1807
- const s = e, { children: r } = s, i = A(s, ["children"]), a = d.Children.toArray(r), o = a.find(js);
1806
+ var ps = /* @__PURE__ */ d.forwardRef((e, t) => {
1807
+ const s = e, { children: r } = s, i = k(s, ["children"]), a = d.Children.toArray(r), o = a.find(ms);
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
- return /* @__PURE__ */ d.createElement(ye, oe({}, i, {
1810
+ return /* @__PURE__ */ d.createElement(fe, ne({}, i, {
1811
1811
  ref: t
1812
1812
  }), /* @__PURE__ */ d.isValidElement(l) ? /* @__PURE__ */ d.cloneElement(l, void 0, c) : null);
1813
1813
  }
1814
- return /* @__PURE__ */ d.createElement(ye, oe({}, i, {
1814
+ return /* @__PURE__ */ d.createElement(fe, ne({}, i, {
1815
1815
  ref: t
1816
1816
  }), r);
1817
1817
  });
1818
- bs.displayName = "Slot";
1819
- var ye = /* @__PURE__ */ d.forwardRef((e, t) => {
1820
- const s = e, { children: r } = s, i = A(s, ["children"]);
1821
- return /* @__PURE__ */ d.isValidElement(r) ? /* @__PURE__ */ d.cloneElement(r, E(g({}, _s(i, r.props)), {
1822
- ref: t ? xs(t, r.ref) : r.ref
1818
+ ps.displayName = "Slot";
1819
+ var fe = /* @__PURE__ */ d.forwardRef((e, t) => {
1820
+ const s = e, { children: r } = s, i = k(s, ["children"]);
1821
+ return /* @__PURE__ */ d.isValidElement(r) ? /* @__PURE__ */ d.cloneElement(r, R(g({}, ys(i, r.props)), {
1822
+ ref: t ? fs(t, r.ref) : r.ref
1823
1823
  })) : d.Children.count(r) > 1 ? d.Children.only(null) : null;
1824
1824
  });
1825
- ye.displayName = "SlotClone";
1826
- var ws = ({ children: e }) => /* @__PURE__ */ d.createElement(d.Fragment, null, e);
1827
- function js(e) {
1828
- return /* @__PURE__ */ d.isValidElement(e) && e.type === ws;
1825
+ fe.displayName = "SlotClone";
1826
+ var vs = ({ children: e }) => /* @__PURE__ */ d.createElement(d.Fragment, null, e);
1827
+ function ms(e) {
1828
+ return /* @__PURE__ */ d.isValidElement(e) && e.type === vs;
1829
1829
  }
1830
- function _s(e, t) {
1830
+ function ys(e, t) {
1831
1831
  const s = g({}, t);
1832
1832
  for (const r in t) {
1833
1833
  const i = e[r], a = t[r];
@@ -1840,7 +1840,7 @@ function _s(e, t) {
1840
1840
  }
1841
1841
  return g(g({}, e), s);
1842
1842
  }
1843
- var Ss = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1843
+ var Cs = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1844
1844
  const r = `${e.charAt(0)}${t.charAt(0)}`;
1845
1845
  return /* @__PURE__ */ n.jsx(
1846
1846
  "span",
@@ -1851,7 +1851,7 @@ var Ss = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1851
1851
  children: /* @__PURE__ */ n.jsx("span", { className: "avatar__initials", children: r })
1852
1852
  }
1853
1853
  );
1854
- }, $ = d.forwardRef(
1854
+ }, Y = d.forwardRef(
1855
1855
  (e, t) => {
1856
1856
  var s = e, {
1857
1857
  iconLeft: r,
@@ -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 = A(s, [
1864
+ } = s, u = k(s, [
1865
1865
  "iconLeft",
1866
1866
  "iconRight",
1867
1867
  "isPending",
@@ -1873,10 +1873,10 @@ var Ss = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1873
1873
  const f = !!r || !!i;
1874
1874
  return /* @__PURE__ */ n.jsxs(
1875
1875
  "button",
1876
- E(g({
1876
+ R(g({
1877
1877
  ref: t
1878
1878
  }, u), {
1879
- className: R(
1879
+ className: P(
1880
1880
  "button",
1881
1881
  l && `button--${l}`,
1882
1882
  l && o && `button--${l}--filled`,
@@ -1893,18 +1893,18 @@ var Ss = ({ firstName: e, lastName: t, variant: s = "small" }) => {
1893
1893
  );
1894
1894
  }
1895
1895
  );
1896
- $.displayName = "Button";
1896
+ Y.displayName = "Button";
1897
1897
  d.createContext(void 0);
1898
- var Es = d.forwardRef(
1898
+ var gs = d.forwardRef(
1899
1899
  (e, t) => {
1900
- var s = e, { prefix: r, suffix: i, className: a } = s, o = A(s, ["prefix", "suffix", "className"]);
1900
+ var s = e, { prefix: r, suffix: i, className: a } = s, o = k(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: R(
1907
+ className: P(
1908
1908
  "input",
1909
1909
  r && "input--with-prefix",
1910
1910
  i && "input--with-suffix",
@@ -1916,14 +1916,14 @@ var Es = d.forwardRef(
1916
1916
  ] });
1917
1917
  }
1918
1918
  );
1919
- Es.displayName = "TextField";
1919
+ gs.displayName = "TextField";
1920
1920
  d.createContext(void 0);
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 = A(t, ["children"]);
1923
- return /* @__PURE__ */ n.jsx("div", E(g({ className: "card__body" }, r), { children: s }));
1924
- }, Os = (e) => /* @__PURE__ */ n.jsx(
1921
+ var xs = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__header__action", children: e }), bs = (e) => {
1922
+ var t = e, { children: s } = t, r = k(t, ["children"]);
1923
+ return /* @__PURE__ */ n.jsx("div", R(g({ className: "card__body" }, r), { children: s }));
1924
+ }, ws = (e) => /* @__PURE__ */ n.jsx(
1925
1925
  "svg",
1926
- E(g({
1926
+ R(g({
1927
1927
  width: "24",
1928
1928
  height: "24",
1929
1929
  viewBox: "0 0 24 24",
@@ -1941,9 +1941,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
1941
1941
  }
1942
1942
  )
1943
1943
  })
1944
- ), Se = Os, As = (e) => /* @__PURE__ */ n.jsx(
1944
+ ), be = ws, js = (e) => /* @__PURE__ */ n.jsx(
1945
1945
  "svg",
1946
- E(g({
1946
+ R(g({
1947
1947
  width: "24",
1948
1948
  height: "24",
1949
1949
  viewBox: "0 0 24 24",
@@ -1961,9 +1961,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
1961
1961
  }
1962
1962
  )
1963
1963
  })
1964
- ), ks = As, Fs = (e) => /* @__PURE__ */ n.jsx(
1964
+ ), Ss = js, Es = (e) => /* @__PURE__ */ n.jsx(
1965
1965
  "svg",
1966
- E(g({
1966
+ R(g({
1967
1967
  width: "24",
1968
1968
  height: "24",
1969
1969
  viewBox: "0 0 24 24",
@@ -1980,9 +1980,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
1980
1980
  }
1981
1981
  )
1982
1982
  })
1983
- ), Ns = Fs, Ms = (e) => /* @__PURE__ */ n.jsx(
1983
+ ), Rs = Es, _s = (e) => /* @__PURE__ */ n.jsx(
1984
1984
  "svg",
1985
- E(g({
1985
+ R(g({
1986
1986
  width: "24",
1987
1987
  height: "24",
1988
1988
  viewBox: "0 0 24 24",
@@ -1999,9 +1999,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
1999
1999
  }
2000
2000
  )
2001
2001
  })
2002
- ), Ls = Ms, Ds = (e) => /* @__PURE__ */ n.jsx(
2002
+ ), Ps = _s, As = (e) => /* @__PURE__ */ n.jsx(
2003
2003
  "svg",
2004
- E(g({
2004
+ R(g({
2005
2005
  width: "24",
2006
2006
  height: "24",
2007
2007
  viewBox: "0 0 24 24",
@@ -2018,9 +2018,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2018
2018
  }
2019
2019
  )
2020
2020
  })
2021
- ), Ts = Ds, Us = (e) => /* @__PURE__ */ n.jsxs(
2021
+ ), ks = As, Os = (e) => /* @__PURE__ */ n.jsxs(
2022
2022
  "svg",
2023
- E(g({
2023
+ R(g({
2024
2024
  width: "24",
2025
2025
  height: "24",
2026
2026
  fill: "none",
@@ -2055,9 +2055,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2055
2055
  /* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsx("clipPath", { id: "clip0_19_444", children: /* @__PURE__ */ n.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2056
2056
  ]
2057
2057
  })
2058
- ), Qs = Us, qs = (e) => /* @__PURE__ */ n.jsxs(
2058
+ ), Fs = Os, Ms = (e) => /* @__PURE__ */ n.jsxs(
2059
2059
  "svg",
2060
- E(g({
2060
+ R(g({
2061
2061
  width: "24",
2062
2062
  height: "24",
2063
2063
  viewBox: "0 0 24 24",
@@ -2087,9 +2087,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2087
2087
  )
2088
2088
  ]
2089
2089
  })
2090
- ), Hs = qs, Ks = (e) => /* @__PURE__ */ n.jsxs(
2090
+ ), Ns = Ms, Ls = (e) => /* @__PURE__ */ n.jsxs(
2091
2091
  "svg",
2092
- E(g({
2092
+ R(g({
2093
2093
  width: "24",
2094
2094
  height: "24",
2095
2095
  viewBox: "0 0 24 24",
@@ -2139,9 +2139,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2139
2139
  )
2140
2140
  ]
2141
2141
  })
2142
- ), Vs = Ks, Gs = (e) => /* @__PURE__ */ n.jsxs(
2142
+ ), Ds = Ls, Ts = (e) => /* @__PURE__ */ n.jsxs(
2143
2143
  "svg",
2144
- E(g({
2144
+ R(g({
2145
2145
  width: "20",
2146
2146
  height: "21",
2147
2147
  fill: "none",
@@ -2163,9 +2163,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2163
2163
  )
2164
2164
  ]
2165
2165
  })
2166
- ), $s = Gs, Ws = (e) => /* @__PURE__ */ n.jsxs(
2166
+ ), Us = Ts, Qs = (e) => /* @__PURE__ */ n.jsxs(
2167
2167
  "svg",
2168
- E(g({
2168
+ R(g({
2169
2169
  width: "24",
2170
2170
  height: "24",
2171
2171
  fill: "none",
@@ -2197,11 +2197,11 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2197
2197
  /* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsx("clipPath", { id: "clip0_762_2934", children: /* @__PURE__ */ n.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2198
2198
  ]
2199
2199
  })
2200
- ), Zs = Ws, zs = (e) => {
2200
+ ), qs = Qs, Hs = (e) => {
2201
2201
  const t = (s) => `${s}${e.suffix ? `_${e.suffix}` : ""}`;
2202
2202
  return /* @__PURE__ */ n.jsxs(
2203
2203
  "svg",
2204
- E(g({
2204
+ R(g({
2205
2205
  width: "24",
2206
2206
  height: "24",
2207
2207
  viewBox: "0 0 24 24",
@@ -2368,9 +2368,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2368
2368
  ]
2369
2369
  })
2370
2370
  );
2371
- }, Ee = zs, Ys = (e) => /* @__PURE__ */ n.jsxs(
2371
+ }, we = Hs, Ks = (e) => /* @__PURE__ */ n.jsxs(
2372
2372
  "svg",
2373
- E(g({
2373
+ R(g({
2374
2374
  fill: "none",
2375
2375
  xmlns: "http://www.w3.org/2000/svg",
2376
2376
  viewBox: "0 0 24 24",
@@ -2430,9 +2430,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2430
2430
  )
2431
2431
  ]
2432
2432
  })
2433
- ), Js = Ys, Xs = (e) => /* @__PURE__ */ n.jsx(
2433
+ ), Vs = Ks, Gs = (e) => /* @__PURE__ */ n.jsx(
2434
2434
  "svg",
2435
- E(g({
2435
+ R(g({
2436
2436
  fill: "none",
2437
2437
  xmlns: "http://www.w3.org/2000/svg",
2438
2438
  viewBox: "0 0 21 16",
@@ -2450,9 +2450,9 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2450
2450
  }
2451
2451
  )
2452
2452
  })
2453
- ), Is = Xs, Bs = (e) => /* @__PURE__ */ n.jsxs(
2453
+ ), Ws = Gs, $s = (e) => /* @__PURE__ */ n.jsxs(
2454
2454
  "svg",
2455
- E(g({
2455
+ R(g({
2456
2456
  width: "24",
2457
2457
  height: "24",
2458
2458
  fill: "none",
@@ -2477,7 +2477,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2477
2477
  /* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
2478
2478
  ]
2479
2479
  })
2480
- ), er = Bs, tr = (e) => {
2480
+ ), Zs = $s, zs = (e) => {
2481
2481
  var t = e, {
2482
2482
  variant: s,
2483
2483
  icon: r,
@@ -2485,7 +2485,7 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2485
2485
  title: a,
2486
2486
  description: o,
2487
2487
  className: l
2488
- } = t, c = A(t, [
2488
+ } = t, c = k(t, [
2489
2489
  "variant",
2490
2490
  "icon",
2491
2491
  "isStandalone",
@@ -2495,15 +2495,15 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2495
2495
  ]);
2496
2496
  return /* @__PURE__ */ n.jsx(
2497
2497
  "div",
2498
- E(g({}, c), {
2499
- className: R(
2498
+ R(g({}, c), {
2499
+ className: P(
2500
2500
  "card__empty-state",
2501
2501
  s === "error" && "card__empty-state--error",
2502
2502
  i && "card__empty-state--standalone",
2503
2503
  l
2504
2504
  ),
2505
2505
  children: /* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__wrapper", children: [
2506
- /* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(Zs, {}) : r }),
2506
+ /* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(qs, {}) : r }),
2507
2507
  /* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__content", children: [
2508
2508
  /* @__PURE__ */ n.jsx("p", { className: "card__empty-state__title", children: a }),
2509
2509
  /* @__PURE__ */ n.jsx("p", { className: "card__empty-state__description", children: o })
@@ -2511,13 +2511,13 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2511
2511
  ] })
2512
2512
  })
2513
2513
  );
2514
- }, sr = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__footer", children: e }), rr = (e) => {
2514
+ }, Ys = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__footer", children: e }), Js = (e) => {
2515
2515
  var t = e, {
2516
2516
  variant: s = "default",
2517
2517
  sticky: r,
2518
2518
  className: i,
2519
2519
  children: a
2520
- } = t, o = A(t, [
2520
+ } = t, o = k(t, [
2521
2521
  "variant",
2522
2522
  "sticky",
2523
2523
  "className",
@@ -2525,8 +2525,8 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2525
2525
  ]);
2526
2526
  return /* @__PURE__ */ n.jsx(
2527
2527
  "div",
2528
- E(g({}, o), {
2529
- className: R(
2528
+ R(g({}, o), {
2529
+ className: P(
2530
2530
  "card__header",
2531
2531
  s && `card__header--${s}`,
2532
2532
  r && "card__header--sticky",
@@ -2535,16 +2535,16 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2535
2535
  children: a
2536
2536
  })
2537
2537
  );
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: [
2538
+ }, Xs = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__image", children: e }), Is = ({ children: e, className: t }) => /* @__PURE__ */ n.jsx("div", { className: P("card__body__item", t), children: e }), Bs = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__body__subtitle", children: e }), er = ({ icon: e, children: t }) => /* @__PURE__ */ n.jsxs("div", { className: "card__header__title", children: [
2539
2539
  e && /* @__PURE__ */ n.jsx("span", { className: "card__header__title__icon", children: e }),
2540
2540
  t
2541
- ] }), ct = d.forwardRef(
2541
+ ] }), nt = d.forwardRef(
2542
2542
  (e, t) => {
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"]);
2543
+ var s = e, { type: r, children: i, className: a, variant: o = "default", disabled: l = !1 } = s, c = k(s, ["type", "children", "className", "variant", "disabled"]);
2544
2544
  return d.createElement(
2545
2545
  r,
2546
2546
  g({
2547
- className: R(
2547
+ className: P(
2548
2548
  "card",
2549
2549
  l && "card--disabled",
2550
2550
  o && `card--${o}`,
@@ -2556,33 +2556,33 @@ var Ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2556
2556
  );
2557
2557
  }
2558
2558
  );
2559
- ct.displayName = "Card";
2560
- Object.assign(ct, {
2561
- Header: rr,
2562
- Action: Ps,
2563
- Title: or,
2564
- Subtitle: ar,
2565
- Body: Rs,
2566
- Image: nr,
2567
- Item: ir,
2568
- Footer: sr,
2569
- EmptyState: tr
2559
+ nt.displayName = "Card";
2560
+ Object.assign(nt, {
2561
+ Header: Js,
2562
+ Action: xs,
2563
+ Title: er,
2564
+ Subtitle: Bs,
2565
+ Body: bs,
2566
+ Image: Xs,
2567
+ Item: Is,
2568
+ Footer: Ys,
2569
+ EmptyState: zs
2570
2570
  });
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 = () => {
2578
- const e = d.useContext(ut);
2571
+ var tr = (e) => {
2572
+ var t = e, { className: s, children: r } = t, i = k(t, ["className", "children"]);
2573
+ return /* @__PURE__ */ n.jsx("div", R(g({ className: P("checkbox__content", s) }, i), { children: r }));
2574
+ }, sr = (e) => {
2575
+ var t = e, { className: s, children: r } = t, i = k(t, ["className", "children"]);
2576
+ return /* @__PURE__ */ n.jsx("span", R(g({ className: P("checkbox__hint", s) }, i), { children: r }));
2577
+ }, it = d.createContext(void 0), rr = ({ id: e, name: t, children: s }) => /* @__PURE__ */ n.jsx(it.Provider, { value: { id: e, name: t }, children: s }), nr = () => {
2578
+ const e = d.useContext(it);
2579
2579
  if (!e)
2580
2580
  throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
2581
2581
  return 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 }));
2582
+ }, ir = (e) => {
2583
+ var t = e, { className: s, children: r } = t, i = k(t, ["className", "children"]);
2584
+ const { id: a } = nr();
2585
+ return /* @__PURE__ */ n.jsx("label", R(g({ htmlFor: a, className: P("checkbox__label", s) }, i), { children: r }));
2586
2586
  }, q = (e) => {
2587
2587
  var t = e, {
2588
2588
  id: s,
@@ -2593,7 +2593,7 @@ var lr = (e) => {
2593
2593
  single: l,
2594
2594
  className: c,
2595
2595
  children: h
2596
- } = t, u = A(t, [
2596
+ } = t, u = k(t, [
2597
2597
  "id",
2598
2598
  "name",
2599
2599
  "isPending",
@@ -2609,7 +2609,7 @@ var lr = (e) => {
2609
2609
  }, [i]), /* @__PURE__ */ n.jsxs(
2610
2610
  "div",
2611
2611
  {
2612
- className: R("checkbox", a && `checkbox--${a}`, o && "checkbox--error"),
2612
+ className: P("checkbox", a && `checkbox--${a}`, o && "checkbox--error"),
2613
2613
  children: [
2614
2614
  /* @__PURE__ */ n.jsx(
2615
2615
  "input",
@@ -2618,36 +2618,36 @@ var lr = (e) => {
2618
2618
  name: r,
2619
2619
  type: "checkbox",
2620
2620
  ref: f,
2621
- className: R("checkbox__input", c),
2621
+ className: P("checkbox__input", c),
2622
2622
  value: l ? "true" : ""
2623
2623
  }, u)
2624
2624
  ),
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 })
2625
+ i ? /* @__PURE__ */ n.jsx(Us, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ n.jsx(Ss, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2626
+ /* @__PURE__ */ n.jsx(rr, { id: s, name: r, children: h })
2627
2627
  ]
2628
2628
  }
2629
2629
  );
2630
2630
  };
2631
- q.Content = lr;
2632
- q.Label = hr;
2633
- q.Hint = cr;
2631
+ q.Content = tr;
2632
+ q.Label = ir;
2633
+ q.Hint = sr;
2634
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"]);
2640
- const { ref: o, defaultOpen: l, isModal: c, onClose: h } = B();
2635
+ var ar = (e) => {
2636
+ var t = e, { type: s = "div", className: r, children: i } = t, a = k(t, ["type", "className", "children"]);
2637
+ return d.createElement(s, g({ className: P("dialog__body", r) }, a), i);
2638
+ }, pe = () => document.body.style.removeProperty("overflow"), Le = (e) => e.preventDefault(), or = '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])', lr = (e) => {
2639
+ var t = e, { className: s, children: r, shouldAnimate: i = !0 } = t, a = k(t, ["className", "children", "shouldAnimate"]);
2640
+ const { ref: o, defaultOpen: l, isModal: c, onClose: h } = J();
2641
2641
  return d.useEffect(() => {
2642
2642
  const u = o == null ? void 0 : o.current;
2643
2643
  if (u != null && u.open) {
2644
- const f = u.querySelectorAll(pr), v = f[0], p = f[f.length - 1], y = (x) => {
2644
+ const f = u.querySelectorAll(or), v = f[0], p = f[f.length - 1], y = (x) => {
2645
2645
  if (!(x.key === "Tab"))
2646
2646
  return;
2647
2647
  x.shiftKey ? document.activeElement === v && (p.focus(), x.preventDefault()) : document.activeElement === p && (v.focus(), x.preventDefault());
2648
2648
  };
2649
- return document.body.style.overflow = "hidden", u.addEventListener("keydown", y), window.addEventListener("popstate", () => Ce()), () => {
2650
- u.removeEventListener("keydown", y), window.removeEventListener("popstate", () => Ce());
2649
+ return document.body.style.overflow = "hidden", u.addEventListener("keydown", y), window.addEventListener("popstate", () => pe()), () => {
2650
+ u.removeEventListener("keydown", y), window.removeEventListener("popstate", () => pe());
2651
2651
  };
2652
2652
  }
2653
2653
  }, [o]), d.useEffect(() => {
@@ -2655,73 +2655,73 @@ var fr = (e) => {
2655
2655
  if (!u)
2656
2656
  return;
2657
2657
  if (l && (u.removeAttribute("open"), u.showModal(), u.focus()), c)
2658
- return u.addEventListener("cancel", Qe), () => u.removeEventListener("cancel", Qe);
2658
+ return u.addEventListener("cancel", Le), () => u.removeEventListener("cancel", Le);
2659
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();
2660
+ const { top: y, right: x, bottom: m, left: C } = u.getBoundingClientRect(), S = 0 < p && 0 < v, w = y < p && p < m, _ = C < v && v < x;
2661
+ S && !(w && _) && h();
2662
2662
  };
2663
2663
  return u.addEventListener("cancel", h), u.addEventListener("mousedown", f), () => {
2664
2664
  u.removeEventListener("cancel", h), u.removeEventListener("mousedown", f);
2665
2665
  };
2666
2666
  }, [o, c, h, l]), /* @__PURE__ */ n.jsx(
2667
2667
  "dialog",
2668
- E(g({
2668
+ R(g({
2669
2669
  ref: o,
2670
2670
  open: l,
2671
2671
  "aria-modal": !!c,
2672
2672
  "aria-labelledby": "dialogTitle",
2673
- className: R("dialog", i && "dialog--animated", s)
2673
+ className: P("dialog", i && "dialog--animated", s)
2674
2674
  }, a), {
2675
2675
  children: r
2676
2676
  })
2677
2677
  );
2678
- }, dt = d.createContext(void 0), mr = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2678
+ }, at = d.createContext(void 0), cr = ({ defaultOpen: e, onClose: t, isModal: s, children: r }) => {
2679
2679
  const i = d.useRef(null), a = d.useRef(t), o = d.useCallback(() => {
2680
2680
  var l;
2681
- Ce(), (l = i.current) == null || l.close(), a.current && (a == null || a.current());
2681
+ pe(), (l = i.current) == null || l.close(), a.current && (a == null || a.current());
2682
2682
  }, [i]);
2683
- return /* @__PURE__ */ n.jsx(dt.Provider, { value: { ref: i, defaultOpen: e, isModal: s, onClose: o }, children: r });
2684
- }, B = () => {
2685
- const e = d.useContext(dt);
2683
+ return /* @__PURE__ */ n.jsx(at.Provider, { value: { ref: i, defaultOpen: e, isModal: s, onClose: o }, children: r });
2684
+ }, J = () => {
2685
+ const e = d.useContext(at);
2686
2686
  if (!e)
2687
2687
  throw new Error("Dialog compound components can not be rendered outside of Dialog");
2688
2688
  return e;
2689
- }, yr = (e) => {
2690
- var t = e, { children: s } = t, r = A(t, ["children"]);
2691
- const { onClose: i } = B();
2692
- return /* @__PURE__ */ n.jsx($, E(g({ onClick: i }, r), { children: s }));
2693
- }, ht = d.forwardRef((e, t) => {
2694
- var s = e, { className: r } = s, i = A(s, ["className"]);
2695
- const { onClose: a } = B();
2689
+ }, ur = (e) => {
2690
+ var t = e, { children: s } = t, r = k(t, ["children"]);
2691
+ const { onClose: i } = J();
2692
+ return /* @__PURE__ */ n.jsx(Y, R(g({ onClick: i }, r), { children: s }));
2693
+ }, ot = d.forwardRef((e, t) => {
2694
+ var s = e, { className: r } = s, i = k(s, ["className"]);
2695
+ const { onClose: a } = J();
2696
2696
  return /* @__PURE__ */ n.jsx(
2697
- $,
2697
+ Y,
2698
2698
  g({
2699
2699
  type: "submit",
2700
2700
  ref: t,
2701
2701
  formMethod: "dialog",
2702
2702
  onClick: a,
2703
- iconLeft: /* @__PURE__ */ n.jsx(Ns, {}),
2703
+ iconLeft: /* @__PURE__ */ n.jsx(Rs, {}),
2704
2704
  variant: "icon--secondary",
2705
- className: R("dialog__close button--icon", r)
2705
+ className: P("dialog__close button--icon", r)
2706
2706
  }, i)
2707
2707
  );
2708
2708
  });
2709
- ht.displayName = "Close";
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"]);
2715
- const { ref: o } = B(), l = d.useRef(null);
2709
+ ot.displayName = "Close";
2710
+ var dr = (e) => {
2711
+ var t = e, { className: s, children: r } = t, i = k(t, ["className", "children"]);
2712
+ return /* @__PURE__ */ n.jsx("div", R(g({ className: P("dialog__footer", s) }, i), { children: r }));
2713
+ }, hr = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "dialog__header", children: e }), fr = (e) => {
2714
+ var t = e, { icon: s, children: r, className: i } = t, a = k(t, ["icon", "children", "className"]);
2715
+ const { ref: o } = J(), l = d.useRef(null);
2716
2716
  return d.useEffect(() => {
2717
2717
  o != null && o.current && o.current.focus();
2718
2718
  }, [o]), /* @__PURE__ */ n.jsxs(
2719
2719
  "div",
2720
- E(g({
2720
+ R(g({
2721
2721
  tabIndex: 0,
2722
2722
  ref: l,
2723
2723
  id: "dialogTitle",
2724
- className: R("dialog__header__title", i)
2724
+ className: P("dialog__header__title", i)
2725
2725
  }, a), {
2726
2726
  children: [
2727
2727
  s && /* @__PURE__ */ n.jsx("span", { className: "dialog__header__icon", children: s }),
@@ -2729,23 +2729,23 @@ var Cr = (e) => {
2729
2729
  ]
2730
2730
  })
2731
2731
  );
2732
- }, br = (e) => {
2733
- var t = e, { children: s } = t, r = A(t, ["children"]);
2734
- const { ref: i } = B();
2735
- return /* @__PURE__ */ n.jsx($, E(g({ onClick: () => {
2732
+ }, pr = (e) => {
2733
+ var t = e, { children: s } = t, r = k(t, ["children"]);
2734
+ const { ref: i } = J();
2735
+ return /* @__PURE__ */ n.jsx(Y, R(g({ onClick: () => {
2736
2736
  var a;
2737
2737
  return (a = i == null ? void 0 : i.current) == null ? void 0 : a.showModal();
2738
2738
  } }, r), { children: s }));
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;
2747
- F.Close = ht;
2748
- var ft = d.createContext(void 0), wr = ({
2739
+ }, M = ({ defaultOpen: e, isModal: t, children: s, onClose: r }) => /* @__PURE__ */ n.jsx(cr, { defaultOpen: !!e, isModal: t, onClose: r, children: s });
2740
+ M.Trigger = pr;
2741
+ M.Root = lr;
2742
+ M.Title = fr;
2743
+ M.Header = hr;
2744
+ M.Body = ar;
2745
+ M.Footer = dr;
2746
+ M.Button = ur;
2747
+ M.Close = ot;
2748
+ var lt = d.createContext(void 0), vr = ({
2749
2749
  id: e,
2750
2750
  position: t,
2751
2751
  isOpen: s,
@@ -2757,7 +2757,7 @@ var ft = d.createContext(void 0), wr = ({
2757
2757
  contentRef: c,
2758
2758
  children: h
2759
2759
  }) => /* @__PURE__ */ n.jsx(
2760
- ft.Provider,
2760
+ lt.Provider,
2761
2761
  {
2762
2762
  value: {
2763
2763
  id: e,
@@ -2772,12 +2772,12 @@ var ft = d.createContext(void 0), wr = ({
2772
2772
  },
2773
2773
  children: h
2774
2774
  }
2775
- ), pt = () => {
2776
- const e = d.useContext(ft);
2775
+ ), ct = () => {
2776
+ const e = d.useContext(lt);
2777
2777
  if (e === void 0)
2778
2778
  throw new Error("useMenu must be used within a MenuProvider");
2779
2779
  return e;
2780
- }, jr = ({ as: e, children: t }) => {
2780
+ }, mr = ({ as: e, children: t }) => {
2781
2781
  const {
2782
2782
  id: s,
2783
2783
  position: r,
@@ -2788,7 +2788,7 @@ var ft = d.createContext(void 0), wr = ({
2788
2788
  clearActiveItemIndex: c,
2789
2789
  triggerRef: h,
2790
2790
  contentRef: u
2791
- } = pt(), f = (v) => {
2791
+ } = ct(), f = (v) => {
2792
2792
  var p;
2793
2793
  if (!i)
2794
2794
  return;
@@ -2816,7 +2816,7 @@ var ft = d.createContext(void 0), wr = ({
2816
2816
  {
2817
2817
  id: `${s}-content`,
2818
2818
  ref: u,
2819
- className: R("menu__list", `menu__list--${r}`, i && "menu__list--active"),
2819
+ className: P("menu__list", `menu__list--${r}`, i && "menu__list--active"),
2820
2820
  onKeyDown: f
2821
2821
  },
2822
2822
  t
@@ -2827,17 +2827,17 @@ var ft = d.createContext(void 0), wr = ({
2827
2827
  {
2828
2828
  id: `${s}-content`,
2829
2829
  ref: u,
2830
- className: R("menu__list", `menu__list--${r}`, i && "menu__list--active"),
2830
+ className: P("menu__list", `menu__list--${r}`, i && "menu__list--active"),
2831
2831
  onKeyDown: f,
2832
2832
  children: t
2833
2833
  }
2834
2834
  )
2835
2835
  );
2836
- }, _r = (e) => {
2837
- var t = e, { children: s, className: r } = t, i = A(t, ["children", "className"]);
2838
- return /* @__PURE__ */ n.jsx("li", E(g({}, i), { className: R("menu__list-item", r), children: s }));
2839
- }, vt = ({ children: e, className: t }) => {
2840
- const { id: s, isOpen: r, setIsOpen: i, clearActiveItemIndex: a, setActiveItemIndex: o, triggerRef: l } = pt(), c = () => {
2836
+ }, yr = (e) => {
2837
+ var t = e, { children: s, className: r } = t, i = k(t, ["children", "className"]);
2838
+ return /* @__PURE__ */ n.jsx("li", R(g({}, i), { className: P("menu__list-item", r), children: s }));
2839
+ }, ut = ({ children: e, className: t }) => {
2840
+ const { id: s, isOpen: r, setIsOpen: i, clearActiveItemIndex: a, setActiveItemIndex: o, triggerRef: l } = ct(), c = () => {
2841
2841
  a(), i((u) => !u);
2842
2842
  }, h = (u) => {
2843
2843
  if (r) {
@@ -2849,26 +2849,26 @@ var ft = d.createContext(void 0), wr = ({
2849
2849
  return d.cloneElement(e, {
2850
2850
  id: `${s}-trigger`,
2851
2851
  ref: l,
2852
- className: R("menu__trigger", t),
2852
+ className: P("menu__trigger", t),
2853
2853
  onClick: c,
2854
2854
  onKeyDown: h,
2855
2855
  "aria-expanded": r,
2856
2856
  "aria-controls": `${s}-content`
2857
2857
  });
2858
2858
  };
2859
- vt.displayName = "Trigger";
2859
+ ut.displayName = "Trigger";
2860
2860
  var L = (e) => {
2861
- var t = e, { type: s, id: r, position: i = "right", children: a, className: o } = t, l = A(t, ["type", "id", "position", "children", "className"]);
2861
+ var t = e, { type: s, id: r, position: i = "right", children: a, className: o } = t, l = k(t, ["type", "id", "position", "children", "className"]);
2862
2862
  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);
2863
2863
  p !== x && p !== void 0 && (u.current.children[p].firstChild.focus(), m(p));
2864
2864
  const C = () => {
2865
2865
  y(void 0), m(void 0);
2866
- }, _ = (w) => {
2867
- var P;
2868
- ((P = c.current) == null ? void 0 : P.contains(w.relatedTarget)) || (C(), v(!1));
2866
+ }, S = (w) => {
2867
+ var _;
2868
+ ((_ = c.current) == null ? void 0 : _.contains(w.relatedTarget)) || (C(), v(!1));
2869
2869
  };
2870
2870
  return /* @__PURE__ */ n.jsx(
2871
- wr,
2871
+ vr,
2872
2872
  {
2873
2873
  id: r,
2874
2874
  position: i,
@@ -2881,40 +2881,40 @@ var L = (e) => {
2881
2881
  contentRef: u,
2882
2882
  children: d.createElement(
2883
2883
  s,
2884
- E(g({}, l), {
2884
+ R(g({}, l), {
2885
2885
  id: r,
2886
2886
  ref: c,
2887
2887
  className: `menu ${o || ""}`,
2888
- onBlur: _
2888
+ onBlur: S
2889
2889
  }),
2890
2890
  a
2891
2891
  )
2892
2892
  }
2893
2893
  );
2894
2894
  };
2895
- L.Trigger = vt;
2896
- L.Content = jr;
2897
- L.Item = _r;
2895
+ L.Trigger = ut;
2896
+ L.Content = mr;
2897
+ L.Item = yr;
2898
2898
  d.createContext(void 0);
2899
- 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");
2900
- [...new Set(Sr.values())].map((e) => ({
2899
+ var Cr = (/* @__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");
2900
+ [...new Set(Cr.values())].map((e) => ({
2901
2901
  label: `+${e}`,
2902
2902
  value: e
2903
2903
  }));
2904
2904
  d.createContext(void 0);
2905
2905
  d.createContext(void 0);
2906
- 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 || {});
2907
- const Er = "/icons/bouMenuIcons.svg", Pr = ({
2906
+ var ie = /* @__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))(ie || {});
2907
+ const gr = "/icons/bouMenuIcons.svg", xr = ({
2908
2908
  bouIconId: e,
2909
2909
  ...t
2910
- }) => /* @__PURE__ */ n.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ n.jsx("use", { href: `${Er}#${le[e]}` }) }), U = ({
2910
+ }) => /* @__PURE__ */ n.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ n.jsx("use", { href: `${gr}#${ie[e]}` }) }), U = ({
2911
2911
  className: e,
2912
2912
  label: t,
2913
2913
  mobileUrl: s,
2914
2914
  desktopUrl: r,
2915
2915
  icon: i
2916
2916
  }) => {
2917
- const a = () => typeof i == "string" && i in le ? /* @__PURE__ */ n.jsx(Pr, { bouIconId: le[i] }) : i;
2917
+ const a = () => typeof i == "string" && i in ie ? /* @__PURE__ */ n.jsx(xr, { bouIconId: ie[i] }) : i;
2918
2918
  return /* @__PURE__ */ n.jsxs(L.Item, { className: e, children: [
2919
2919
  /* @__PURE__ */ n.jsxs("a", { href: s, referrerPolicy: "no-referrer-when-downgrade", children: [
2920
2920
  a(),
@@ -2925,24 +2925,24 @@ const Er = "/icons/bouMenuIcons.svg", Pr = ({
2925
2925
  t
2926
2926
  ] })
2927
2927
  ] });
2928
- }, mt = d.createContext(void 0), Rr = ({
2928
+ }, dt = d.createContext(void 0), br = ({
2929
2929
  position: e,
2930
2930
  bouMenuItems: t,
2931
2931
  authenticationStatus: s,
2932
2932
  profile: r,
2933
2933
  children: i
2934
- }) => /* @__PURE__ */ n.jsx(mt.Provider, { value: { position: e, bouMenuItems: t, authenticationStatus: s, profile: r }, children: i }), Pe = () => {
2935
- const e = d.useContext(mt);
2934
+ }) => /* @__PURE__ */ n.jsx(dt.Provider, { value: { position: e, bouMenuItems: t, authenticationStatus: s, profile: r }, children: i }), je = () => {
2935
+ const e = d.useContext(dt);
2936
2936
  if (!e)
2937
2937
  throw new Error("Authentication context can not be rendered outside of Authentication");
2938
2938
  return e;
2939
- }, 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 = () => {
2940
- const e = d.useContext(yt);
2939
+ }, ht = d.createContext(void 0), wr = ({ apiUrl: e, redirectUrl: t, children: s }) => /* @__PURE__ */ n.jsx(ht.Provider, { value: { apiUrl: e, redirectUrl: t }, children: s }), ft = () => {
2940
+ const e = d.useContext(ht);
2941
2941
  if (!e)
2942
2942
  throw new Error("Api context can not be rendered outside of Api");
2943
2943
  return e;
2944
- }, W = () => {
2945
- const { apiUrl: e, redirectUrl: t } = Ct(), s = _t({ apiUrl: e, redirectUrl: t }), r = `${e}/logout?redirectUrl=${t}`, i = `${e}/user/profile`, a = `${e}/gdpr/tc/check`, o = `${e}/gdpr/tc`;
2944
+ }, G = () => {
2945
+ const { apiUrl: e, redirectUrl: t } = ft(), s = yt({ apiUrl: e, redirectUrl: t }), r = `${e}/logout?redirectUrl=${t}`, i = `${e}/user/profile`, a = `${e}/gdpr/tc/check`, o = `${e}/gdpr/tc`;
2946
2946
  return {
2947
2947
  loginUrl: s,
2948
2948
  logoutUrl: r,
@@ -2950,7 +2950,7 @@ const Er = "/icons/bouMenuIcons.svg", Pr = ({
2950
2950
  getTermsAndConditionsEndpoint: a,
2951
2951
  postTermsAndConditionsEndpoint: o
2952
2952
  };
2953
- }, 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(
2953
+ }, jr = (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(
2954
2954
  U,
2955
2955
  {
2956
2956
  className: "bou-menu-item",
@@ -2960,27 +2960,27 @@ const Er = "/icons/bouMenuIcons.svg", Pr = ({
2960
2960
  label: t
2961
2961
  },
2962
2962
  i
2963
- )) }) : null, kr = () => {
2964
- 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) ?? "";
2963
+ )) }) : null, Sr = () => {
2964
+ const { t: e } = H(), t = De(), { position: s, profile: r, bouMenuItems: i } = je(), { logoutUrl: a } = G(), o = (r == null ? void 0 : r.firstName) ?? "", l = (r == null ? void 0 : r.lastName) ?? "";
2965
2965
  return /* @__PURE__ */ n.jsxs(L, { type: "nav", id: "xtra-menu", position: s, children: [
2966
2966
  /* @__PURE__ */ n.jsx(
2967
2967
  L.Trigger,
2968
2968
  {
2969
- className: R(
2969
+ className: P(
2970
2970
  "button",
2971
2971
  "button--neutral",
2972
2972
  "button--authentication",
2973
2973
  "button--authentication--authenticated"
2974
2974
  ),
2975
2975
  children: /* @__PURE__ */ n.jsxs("button", { children: [
2976
- /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ss, { variant: "small", firstName: o, lastName: l }) }),
2976
+ /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Cs, { variant: "small", firstName: o, lastName: l }) }),
2977
2977
  /* @__PURE__ */ n.jsx("span", { className: "button__label", children: o }),
2978
- /* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Se, {}) })
2978
+ /* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(be, {}) })
2979
2979
  ] })
2980
2980
  }
2981
2981
  ),
2982
2982
  /* @__PURE__ */ n.jsxs(L.Content, { as: "div", children: [
2983
- Ar(i),
2983
+ jr(i),
2984
2984
  /* @__PURE__ */ n.jsxs("ul", { children: [
2985
2985
  /* @__PURE__ */ n.jsx(
2986
2986
  U,
@@ -2988,7 +2988,7 @@ const Er = "/icons/bouMenuIcons.svg", Pr = ({
2988
2988
  className: "manage-profile",
2989
2989
  mobileUrl: `${t}/manage-profile`,
2990
2990
  desktopUrl: `${t}/manage-profile/personal-data`,
2991
- icon: /* @__PURE__ */ n.jsx(Hs, {}),
2991
+ icon: /* @__PURE__ */ n.jsx(Ns, {}),
2992
2992
  label: e("manageProfile")
2993
2993
  }
2994
2994
  ),
@@ -2997,7 +2997,7 @@ const Er = "/icons/bouMenuIcons.svg", Pr = ({
2997
2997
  {
2998
2998
  className: "payment",
2999
2999
  mobileUrl: `${t}/payment`,
3000
- icon: /* @__PURE__ */ n.jsx(Is, {}),
3000
+ icon: /* @__PURE__ */ n.jsx(Ws, {}),
3001
3001
  label: e("payment")
3002
3002
  }
3003
3003
  ),
@@ -3006,7 +3006,7 @@ const Er = "/icons/bouMenuIcons.svg", Pr = ({
3006
3006
  {
3007
3007
  className: "gift-cards",
3008
3008
  mobileUrl: `${t}/gift-cards`,
3009
- icon: /* @__PURE__ */ n.jsx(Js, {}),
3009
+ icon: /* @__PURE__ */ n.jsx(Vs, {}),
3010
3010
  label: e("giftCards")
3011
3011
  }
3012
3012
  ),
@@ -3014,7 +3014,7 @@ const Er = "/icons/bouMenuIcons.svg", Pr = ({
3014
3014
  U,
3015
3015
  {
3016
3016
  mobileUrl: `${t}/identifiers`,
3017
- icon: /* @__PURE__ */ n.jsx(er, {}),
3017
+ icon: /* @__PURE__ */ n.jsx(Zs, {}),
3018
3018
  label: e("qrCode")
3019
3019
  }
3020
3020
  ),
@@ -3024,30 +3024,30 @@ const Er = "/icons/bouMenuIcons.svg", Pr = ({
3024
3024
  className: "manage-privacy",
3025
3025
  mobileUrl: `${t}/manage-privacy`,
3026
3026
  desktopUrl: `${t}/manage-privacy/permissions`,
3027
- icon: /* @__PURE__ */ n.jsx(Qs, {}),
3027
+ icon: /* @__PURE__ */ n.jsx(Fs, {}),
3028
3028
  label: e("privacy")
3029
3029
  }
3030
3030
  ),
3031
- /* @__PURE__ */ n.jsx(U, { mobileUrl: a, icon: /* @__PURE__ */ n.jsx(Ts, {}), label: e("logout") })
3031
+ /* @__PURE__ */ n.jsx(U, { mobileUrl: a, icon: /* @__PURE__ */ n.jsx(ks, {}), label: e("logout") })
3032
3032
  ] })
3033
3033
  ] })
3034
3034
  ] });
3035
- }, Fr = () => {
3035
+ }, Er = () => {
3036
3036
  const { t: e } = H();
3037
- return /* @__PURE__ */ n.jsxs("button", { className: R("button", "button--neutral", "button--authentication"), children: [
3037
+ return /* @__PURE__ */ n.jsxs("button", { className: P("button", "button--neutral", "button--authentication"), children: [
3038
3038
  /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx("i", { className: "spinner" }) }),
3039
3039
  /* @__PURE__ */ n.jsxs("span", { className: "button__label", children: [
3040
3040
  e("loading"),
3041
3041
  "..."
3042
3042
  ] })
3043
3043
  ] });
3044
- }, Nr = ({ className: e }) => {
3045
- const { t } = H(), { loginUrl: s } = W();
3044
+ }, Rr = ({ className: e }) => {
3045
+ const { t } = H(), { loginUrl: s } = G();
3046
3046
  return /* @__PURE__ */ n.jsxs(
3047
3047
  "a",
3048
3048
  {
3049
3049
  href: s,
3050
- className: R(
3050
+ className: P(
3051
3051
  "button",
3052
3052
  "button--neutral",
3053
3053
  "button--authentication",
@@ -3055,15 +3055,15 @@ const Er = "/icons/bouMenuIcons.svg", Pr = ({
3055
3055
  e
3056
3056
  ),
3057
3057
  children: [
3058
- /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ee, { width: 24, height: 24, suffix: "desktop" }) }),
3058
+ /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(we, { width: 24, height: 24, suffix: "desktop" }) }),
3059
3059
  /* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("login") }),
3060
- /* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Se, {}) })
3060
+ /* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(be, {}) })
3061
3061
  ]
3062
3062
  }
3063
3063
  );
3064
3064
  };
3065
- const Mr = () => {
3066
- const { t: e } = H(), { loginUrl: t } = W(), s = He(), { position: r } = Pe();
3065
+ const _r = () => {
3066
+ const { t: e } = H(), { loginUrl: t } = G(), s = De(), { position: r } = je();
3067
3067
  return /* @__PURE__ */ n.jsxs(
3068
3068
  L,
3069
3069
  {
@@ -3073,17 +3073,17 @@ const Mr = () => {
3073
3073
  className: "menu--unauthenticated",
3074
3074
  "aria-label": e("xtraMenuAriaLabel"),
3075
3075
  children: [
3076
- /* @__PURE__ */ n.jsx(L.Trigger, { className: R("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ n.jsxs("button", { children: [
3077
- /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ee, { width: 24, height: 24, suffix: "mobile" }) }),
3078
- /* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(Se, {}) })
3076
+ /* @__PURE__ */ n.jsx(L.Trigger, { className: P("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ n.jsxs("button", { children: [
3077
+ /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(we, { width: 24, height: 24, suffix: "mobile" }) }),
3078
+ /* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(be, {}) })
3079
3079
  ] }) }),
3080
3080
  /* @__PURE__ */ n.jsxs(L.Content, { children: [
3081
3081
  /* @__PURE__ */ n.jsx(L.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: t, className: "button button--with-icon", children: [
3082
- /* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ls, {}) }),
3082
+ /* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ps, {}) }),
3083
3083
  /* @__PURE__ */ n.jsx("span", { className: "button__label", children: e("login") })
3084
3084
  ] }) }),
3085
3085
  /* @__PURE__ */ n.jsx(L.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
3086
- /* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Vs, {}) }),
3086
+ /* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ds, {}) }),
3087
3087
  /* @__PURE__ */ n.jsx("span", { className: "button__label", children: e("register") })
3088
3088
  ] }) })
3089
3089
  ] })
@@ -3092,15 +3092,15 @@ const Mr = () => {
3092
3092
  );
3093
3093
  };
3094
3094
  var D = /* @__PURE__ */ ((e) => (e.Authenticated = "authenticated", e.NotAuthenticated = "notAuthenticated", e.Pending = "pending", e))(D || {});
3095
- const Lr = () => {
3096
- const { authenticationStatus: e } = Pe();
3095
+ const Pr = () => {
3096
+ const { authenticationStatus: e } = je();
3097
3097
  return e === D.NotAuthenticated ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3098
- /* @__PURE__ */ n.jsx(Nr, {}),
3099
- /* @__PURE__ */ n.jsx(Mr, {})
3100
- ] }) : e === D.Pending ? /* @__PURE__ */ n.jsx(Fr, {}) : /* @__PURE__ */ n.jsx(kr, {});
3098
+ /* @__PURE__ */ n.jsx(Rr, {}),
3099
+ /* @__PURE__ */ n.jsx(_r, {})
3100
+ ] }) : e === D.Pending ? /* @__PURE__ */ n.jsx(Er, {}) : /* @__PURE__ */ n.jsx(Sr, {});
3101
3101
  };
3102
3102
  /*! js-cookie v3.0.5 | MIT */
3103
- function ee(e) {
3103
+ function X(e) {
3104
3104
  for (var t = 1; t < arguments.length; t++) {
3105
3105
  var s = arguments[t];
3106
3106
  for (var r in s)
@@ -3108,7 +3108,7 @@ function ee(e) {
3108
3108
  }
3109
3109
  return e;
3110
3110
  }
3111
- var Dr = {
3111
+ var Ar = {
3112
3112
  read: function(e) {
3113
3113
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
3114
3114
  },
@@ -3119,10 +3119,10 @@ var Dr = {
3119
3119
  );
3120
3120
  }
3121
3121
  };
3122
- function ge(e, t) {
3122
+ function ve(e, t) {
3123
3123
  function s(i, a, o) {
3124
3124
  if (!(typeof document > "u")) {
3125
- o = ee({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3125
+ o = X({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3126
3126
  var l = "";
3127
3127
  for (var c in o)
3128
3128
  o[c] && (l += "; " + c, o[c] !== !0 && (l += "=" + o[c].split(";")[0]));
@@ -3151,16 +3151,16 @@ function ge(e, t) {
3151
3151
  s(
3152
3152
  i,
3153
3153
  "",
3154
- ee({}, a, {
3154
+ X({}, a, {
3155
3155
  expires: -1
3156
3156
  })
3157
3157
  );
3158
3158
  },
3159
3159
  withAttributes: function(i) {
3160
- return ge(this.converter, ee({}, this.attributes, i));
3160
+ return ve(this.converter, X({}, this.attributes, i));
3161
3161
  },
3162
3162
  withConverter: function(i) {
3163
- return ge(ee({}, this.converter, i), this.attributes);
3163
+ return ve(X({}, this.converter, i), this.attributes);
3164
3164
  }
3165
3165
  },
3166
3166
  {
@@ -3169,15 +3169,15 @@ function ge(e, t) {
3169
3169
  }
3170
3170
  );
3171
3171
  }
3172
- var xe = ge(Dr, { path: "/" });
3173
- class be extends Error {
3172
+ var me = ve(Ar, { path: "/" });
3173
+ class ye extends Error {
3174
3174
  constructor(t) {
3175
3175
  super(t), this.name = "UnauthorizedError";
3176
3176
  }
3177
3177
  }
3178
- const Tr = () => {
3179
- const { i18n: e } = H(), { profileEndpoint: t } = W();
3180
- return it({
3178
+ const kr = () => {
3179
+ const { i18n: e } = H(), { profileEndpoint: t } = G();
3180
+ return et({
3181
3181
  queryKey: ["profile"],
3182
3182
  queryFn: async () => {
3183
3183
  const r = await fetch(t, {
@@ -3186,21 +3186,21 @@ const Tr = () => {
3186
3186
  headers: { "Accept-Language": e.language }
3187
3187
  });
3188
3188
  if (!r.ok)
3189
- throw r.status === 401 ? new be(`${r.status} - ${r.statusText}`) : new Error("Network response was not ok");
3189
+ throw r.status === 401 ? new ye(`${r.status} - ${r.statusText}`) : new Error("Network response was not ok");
3190
3190
  return await r.json();
3191
3191
  },
3192
- retry: (r, i) => i instanceof be ? !1 : r < 2,
3192
+ retry: (r, i) => i instanceof ye ? !1 : r < 2,
3193
3193
  refetchOnWindowFocus: !1
3194
3194
  });
3195
- }, gt = () => {
3195
+ }, pt = () => {
3196
3196
  var l, c;
3197
- const e = xe.get("profile"), t = !!e, [s, r] = d.useState(
3197
+ const e = me.get("profile"), t = !!e, [s, r] = d.useState(
3198
3198
  t ? D.Authenticated : D.Pending
3199
3199
  ), [i, a] = d.useState(
3200
3200
  t ? JSON.parse(e) : void 0
3201
- ), o = Tr();
3201
+ ), o = kr();
3202
3202
  return d.useEffect(() => {
3203
- if (o.isError && o.error instanceof be && (xe.remove("profile"), r(D.NotAuthenticated)), o.isError && r(
3203
+ if (o.isError && o.error instanceof ye && (me.remove("profile"), r(D.NotAuthenticated)), o.isError && r(
3204
3204
  t ? D.Authenticated : D.NotAuthenticated
3205
3205
  ), o.isSuccess) {
3206
3206
  r(D.Authenticated);
@@ -3218,97 +3218,21 @@ const Tr = () => {
3218
3218
  o.isError,
3219
3219
  o.isSuccess
3220
3220
  ]), { authenticationStatus: s, profile: i };
3221
- }, Ur = ({ position: e, bouMenuItems: t }) => {
3222
- const { authenticationStatus: s, profile: r } = gt();
3221
+ }, Or = ({ position: e, bouMenuItems: t }) => {
3222
+ const { authenticationStatus: s, profile: r } = pt();
3223
3223
  return /* @__PURE__ */ n.jsx(
3224
- Rr,
3224
+ br,
3225
3225
  {
3226
3226
  bouMenuItems: t,
3227
3227
  authenticationStatus: s,
3228
3228
  position: e,
3229
3229
  profile: r,
3230
- children: /* @__PURE__ */ n.jsx(Lr, {})
3230
+ children: /* @__PURE__ */ n.jsx(Pr, {})
3231
3231
  }
3232
3232
  );
3233
- };
3234
- 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) => {
3235
- for (var s in t || (t = {}))
3236
- xt.call(t, s) && qe(e, s, t[s]);
3237
- if (ce)
3238
- for (var s of ce(t))
3239
- bt.call(t, s) && qe(e, s, t[s]);
3240
- return e;
3241
- }, Z = (e, t) => qr(e, Hr(t)), z = (e, t) => {
3242
- var s = {};
3243
- for (var r in e)
3244
- xt.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
3245
- if (e != null && ce)
3246
- for (var r of ce(e))
3247
- t.indexOf(r) < 0 && bt.call(e, r) && (s[r] = e[r]);
3248
- return s;
3249
- }, Kr = d.forwardRef((e, t) => {
3250
- const s = e, { isAuthenticated: r, className: i } = s, a = z(s, ["isAuthenticated", "className"]);
3251
- return /* @__PURE__ */ n.jsx(
3252
- $,
3253
- K({
3254
- type: "button",
3255
- ref: t,
3256
- className: R(
3257
- "button--neutral",
3258
- "button--authentication",
3259
- r && "button--authentication--authenticated",
3260
- i
3261
- )
3262
- }, a)
3263
- );
3264
- });
3265
- Kr.displayName = "AuthenticationButton";
3266
- var Vr = (e) => {
3267
- var t = e, {
3268
- children: s
3269
- } = t, r = z(t, [
3270
- "children"
3271
- ]);
3272
- return /* @__PURE__ */ n.jsx(q.Label, Z(K({ className: "form--tc__label" }, r), { children: s }));
3273
- }, wt = d.forwardRef(
3274
- (e, t) => {
3275
- var s = e, { children: r } = s, i = z(s, ["children"]);
3276
- return /* @__PURE__ */ n.jsx("form", Z(K({ className: "form--tc", ref: t }, i), { children: r }));
3277
- }
3278
- );
3279
- wt.displayName = "TermsAndConditionsForm";
3280
- var Gr = (e) => {
3281
- var t = e, {
3282
- children: s
3283
- } = t, r = z(t, [
3284
- "children"
3285
- ]);
3286
- return /* @__PURE__ */ n.jsx("p", Z(K({ className: "form--tc__description" }, r), { children: s }));
3287
- }, $r = (e) => {
3288
- var t = e, { children: s } = t, r = z(t, ["children"]);
3289
- return /* @__PURE__ */ n.jsx(
3290
- "a",
3291
- Z(K({
3292
- className: "form--tc__link",
3293
- target: "_blank",
3294
- rel: "noreferrer",
3295
- role: "button",
3296
- download: !0
3297
- }, r), {
3298
- children: s
3299
- })
3300
- );
3301
- }, Wr = ({ children: e }) => /* @__PURE__ */ n.jsx("h1", { className: "form--tc__title", children: e }), Zr = d.forwardRef(
3302
- (e, t) => /* @__PURE__ */ n.jsx(F.Close, Z(K({ className: "hidden" }, e), { ref: t }))
3303
- );
3304
- Zr.displayName = "TermsAndConditionsClose";
3305
- var zr = (e) => {
3306
- var t = e, { children: s } = t, r = z(t, ["children"]);
3307
- return /* @__PURE__ */ n.jsx("span", Z(K({ className: "form--tc__error", role: "alert" }, r), { children: s }));
3308
- };
3309
- const Yr = () => {
3310
- const { postTermsAndConditionsEndpoint: e } = W(), t = new Je();
3311
- return ps({
3233
+ }, Fr = () => {
3234
+ const { postTermsAndConditionsEndpoint: e } = G(), t = new We();
3235
+ return os({
3312
3236
  mutationFn: async (r) => {
3313
3237
  const i = await fetch(e, {
3314
3238
  method: "post",
@@ -3324,9 +3248,9 @@ const Yr = () => {
3324
3248
  await t.invalidateQueries({ queryKey: ["gdpr"] });
3325
3249
  }
3326
3250
  });
3327
- }, Jr = () => {
3328
- const { i18n: e } = H(), { getTermsAndConditionsEndpoint: t } = W(), { authenticationStatus: s } = gt(), r = xe.get("hasAcceptedLatestTermsAndConditions"), i = [], a = r === "true", o = s === D.Authenticated;
3329
- return it({
3251
+ }, Mr = () => {
3252
+ const { i18n: e } = H(), { getTermsAndConditionsEndpoint: t } = G(), { authenticationStatus: s } = pt(), r = me.get("hasAcceptedLatestTermsAndConditions"), i = [], a = r === "true", o = s === D.Authenticated;
3253
+ return et({
3330
3254
  queryKey: ["gdpr"],
3331
3255
  queryFn: async () => {
3332
3256
  const c = await fetch(t, {
@@ -3341,8 +3265,8 @@ const Yr = () => {
3341
3265
  enabled: o && !a,
3342
3266
  initialData: i
3343
3267
  });
3344
- }, Xr = ({ redirectUrl: e }) => {
3345
- 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 = () => {
3268
+ }, Nr = ({ redirectUrl: e }) => {
3269
+ const { t } = H(), { apiUrl: s } = ft(), r = d.useRef(null), [i, a] = d.useState(0), [o, l] = d.useState({}), { mutate: c, isError: h } = Fr(), { AccessibleFormMessage: u, formRef: f } = Ct({ submitCount: i, errors: o }), { data: v } = Mr(), p = !!(v != null && v.length), y = t("termsAndConditions.error.required"), x = () => {
3346
3270
  var C;
3347
3271
  (C = r == null ? void 0 : r.current) == null || C.click(), document.body.style.removeProperty("overflow");
3348
3272
  };
@@ -3353,23 +3277,23 @@ const Yr = () => {
3353
3277
  }, [y, h]);
3354
3278
  const m = (C) => {
3355
3279
  C.preventDefault(), a(i + 1);
3356
- const { acceptedTC: _ } = C.target;
3357
- if (_ instanceof RadioNodeList) {
3358
- const w = Object.values(_);
3359
- w.every((k) => k.checked) ? (l({}), c(w.map((k) => k.value)), x()) : l({ acceptedTC: y });
3280
+ const { acceptedTC: S } = C.target;
3281
+ if (S instanceof RadioNodeList) {
3282
+ const w = Object.values(S);
3283
+ w.every((O) => O.checked) ? (l({}), c(w.map((O) => O.value)), x()) : l({ acceptedTC: y });
3360
3284
  } else
3361
- _ != null && _.checked ? (l({}), c([_.value]), x()) : l({ acceptedTC: y });
3285
+ S != null && S.checked ? (l({}), c([S.value]), x()) : l({ acceptedTC: y });
3362
3286
  };
3363
- return p ? /* @__PURE__ */ n.jsxs(F, { defaultOpen: p, isModal: !0, children: [
3287
+ return p ? /* @__PURE__ */ n.jsxs(M, { defaultOpen: p, isModal: !0, children: [
3364
3288
  u,
3365
- /* @__PURE__ */ n.jsxs(F.Root, { children: [
3366
- /* @__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") }) }) }),
3367
- /* @__PURE__ */ n.jsx(F.Body, { children: /* @__PURE__ */ n.jsxs(wt, { ref: f, id: "tc-form", onSubmit: m, children: [
3368
- /* @__PURE__ */ n.jsxs(Gr, { children: [
3289
+ /* @__PURE__ */ n.jsxs(M.Root, { children: [
3290
+ /* @__PURE__ */ n.jsx(M.Header, { children: /* @__PURE__ */ n.jsx(M.Title, { icon: /* @__PURE__ */ n.jsx(we, { role: "presentation" }), children: /* @__PURE__ */ n.jsx(Ur, { children: t("termsAndConditions.title") }) }) }),
3291
+ /* @__PURE__ */ n.jsx(M.Body, { children: /* @__PURE__ */ n.jsxs(vt, { ref: f, id: "tc-form", onSubmit: m, children: [
3292
+ /* @__PURE__ */ n.jsxs(Dr, { children: [
3369
3293
  t("termsAndConditions.description"),
3370
- o.acceptedTC && /* @__PURE__ */ n.jsx(zr, { children: y })
3294
+ o.acceptedTC && /* @__PURE__ */ n.jsx(Qr, { children: y })
3371
3295
  ] }),
3372
- v.map(({ tcCode: C, title: _, URL: w }) => /* @__PURE__ */ n.jsx(
3296
+ v.map(({ tcCode: C, title: S, URL: w }) => /* @__PURE__ */ n.jsx(
3373
3297
  q,
3374
3298
  {
3375
3299
  id: C,
@@ -3377,32 +3301,49 @@ const Yr = () => {
3377
3301
  name: "acceptedTC",
3378
3302
  variant: "primary",
3379
3303
  children: /* @__PURE__ */ n.jsxs(q.Content, { children: [
3380
- /* @__PURE__ */ n.jsx(Vr, { children: _ }),
3381
- /* @__PURE__ */ n.jsx($r, { href: w, children: t("termsAndConditions.action", { title: _ }) })
3304
+ /* @__PURE__ */ n.jsx(Lr, { children: S }),
3305
+ /* @__PURE__ */ n.jsx(Tr, { href: w, children: t("termsAndConditions.action", { title: S }) })
3382
3306
  ] })
3383
3307
  },
3384
3308
  C
3385
3309
  ))
3386
3310
  ] }) }),
3387
- /* @__PURE__ */ n.jsxs(F.Footer, { children: [
3311
+ /* @__PURE__ */ n.jsxs(M.Footer, { children: [
3388
3312
  /* @__PURE__ */ n.jsx(
3389
3313
  "a",
3390
3314
  {
3391
- className: R("button", "button--secondary", "button--terms-and-conditions"),
3315
+ className: P("button", "button--secondary", "button--terms-and-conditions"),
3392
3316
  href: `${s}/logout?redirectUrl=${e}`,
3393
3317
  children: t("logout")
3394
3318
  }
3395
3319
  ),
3396
- /* @__PURE__ */ n.jsx($, { form: "tc-form", type: "submit", variant: "primary", children: t("confirm") })
3320
+ /* @__PURE__ */ n.jsx(Y, { form: "tc-form", type: "submit", variant: "primary", children: t("confirm") })
3397
3321
  ] })
3398
3322
  ] })
3399
3323
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {});
3400
- }, Ir = d.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ n.jsx("form", { className: "form--tc", ref: s, ...t, children: e }));
3401
- Ir.displayName = "TermsAndConditionsForm";
3402
- 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: [
3403
- /* @__PURE__ */ n.jsx(Ur, { position: r, bouMenuItems: i }),
3404
- /* @__PURE__ */ n.jsx(Xr, { redirectUrl: t })
3324
+ }, Lr = ({
3325
+ children: e,
3326
+ ...t
3327
+ }) => /* @__PURE__ */ n.jsx(q.Label, { className: "form--tc__label", ...t, children: e }), vt = d.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ n.jsx("form", { className: "form--tc", ref: s, ...t, children: e }));
3328
+ vt.displayName = "TermsAndConditionsForm";
3329
+ const Dr = ({
3330
+ children: e,
3331
+ ...t
3332
+ }) => /* @__PURE__ */ n.jsx("p", { className: "form--tc__description", ...t, children: e }), Tr = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx(
3333
+ "a",
3334
+ {
3335
+ className: "form--tc__link",
3336
+ target: "_blank",
3337
+ rel: "noreferrer",
3338
+ role: "button",
3339
+ download: !0,
3340
+ ...t,
3341
+ children: e
3342
+ }
3343
+ ), Ur = ({ children: e }) => /* @__PURE__ */ n.jsx("h1", { className: "form--tc__title", children: e }), Qr = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("span", { className: "form--tc__error", role: "alert", ...t, children: e }), qr = new We(), Vr = ({ environment: e, redirectUrl: t, apiUrl: s, position: r, bouMenuItems: i }) => /* @__PURE__ */ n.jsx(gt, { environment: e, children: /* @__PURE__ */ n.jsx(wr, { apiUrl: s, redirectUrl: t, children: /* @__PURE__ */ n.jsxs(zt, { client: qr, children: [
3344
+ /* @__PURE__ */ n.jsx(Or, { position: r, bouMenuItems: i }),
3345
+ /* @__PURE__ */ n.jsx(Nr, { redirectUrl: t })
3405
3346
  ] }) }) });
3406
3347
  export {
3407
- sn as default
3348
+ Vr as default
3408
3349
  };