@myxtra/authentication-green 1.1.1 → 1.1.2

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 c, j as n, g as wt, u as z, a as Qe, b as _t, E as Rt } from "./index-b97019f1.mjs";
2
- class B {
1
+ import { r as d, j as n, g as wt, u as Q, a as Qe, b as _t, E as Rt } from "./index-3594faaf.mjs";
2
+ class K {
3
3
  constructor() {
4
4
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
5
5
  }
@@ -19,7 +19,7 @@ class B {
19
19
  onUnsubscribe() {
20
20
  }
21
21
  }
22
- const Y = typeof window > "u" || "Deno" in window;
22
+ const z = typeof window > "u" || "Deno" in window;
23
23
  function k() {
24
24
  }
25
25
  function Et(t, e) {
@@ -31,7 +31,7 @@ function de(t) {
31
31
  function qe(t, e) {
32
32
  return Math.max(t + (e || 0) - Date.now(), 0);
33
33
  }
34
- function W(t, e, s) {
34
+ function Y(t, e, s) {
35
35
  return J(t) ? typeof e == "function" ? {
36
36
  ...s,
37
37
  queryKey: t,
@@ -73,7 +73,7 @@ function Ee(t, e) {
73
73
  } = t;
74
74
  if (J(a)) {
75
75
  if (r) {
76
- if (e.queryHash !== be(a, e.options))
76
+ if (e.queryHash !== ge(a, e.options))
77
77
  return !1;
78
78
  } else if (!se(e.queryKey, a))
79
79
  return !1;
@@ -103,7 +103,7 @@ function Oe(t, e) {
103
103
  }
104
104
  return !(typeof r == "boolean" && e.state.status === "loading" !== r || i && !i(e));
105
105
  }
106
- function be(t, e) {
106
+ function ge(t, e) {
107
107
  return ((e == null ? void 0 : e.queryKeyHashFn) || T)(t);
108
108
  }
109
109
  function T(t) {
@@ -171,10 +171,10 @@ function St() {
171
171
  function pe(t, e, s) {
172
172
  return s.isDataEqual != null && s.isDataEqual(t, e) ? t : typeof s.structuralSharing == "function" ? s.structuralSharing(t, e) : s.structuralSharing !== !1 ? Ke(t, e) : e;
173
173
  }
174
- class Pt extends B {
174
+ class Pt extends K {
175
175
  constructor() {
176
176
  super(), this.setup = (e) => {
177
- if (!Y && window.addEventListener) {
177
+ if (!z && window.addEventListener) {
178
178
  const s = () => e();
179
179
  return window.addEventListener("visibilitychange", s, !1), window.addEventListener("focus", s, !1), () => {
180
180
  window.removeEventListener("visibilitychange", s), window.removeEventListener("focus", s);
@@ -198,7 +198,7 @@ class Pt extends B {
198
198
  });
199
199
  }
200
200
  setFocused(e) {
201
- this.focused = e, e && this.onFocus();
201
+ this.focused !== e && (this.focused = e, this.onFocus());
202
202
  }
203
203
  onFocus() {
204
204
  this.listeners.forEach(({
@@ -212,10 +212,10 @@ class Pt extends B {
212
212
  }
213
213
  }
214
214
  const re = new Pt(), Ne = ["online", "offline"];
215
- class At extends B {
215
+ class At extends K {
216
216
  constructor() {
217
217
  super(), this.setup = (e) => {
218
- if (!Y && window.addEventListener) {
218
+ if (!z && window.addEventListener) {
219
219
  const s = () => e();
220
220
  return Ne.forEach((r) => {
221
221
  window.addEventListener(r, s, !1);
@@ -243,7 +243,7 @@ class At extends B {
243
243
  });
244
244
  }
245
245
  setOnline(e) {
246
- this.online = e, e && this.onOnline();
246
+ this.online !== e && (this.online = e, this.onOnline());
247
247
  }
248
248
  onOnline() {
249
249
  this.listeners.forEach(({
@@ -263,23 +263,23 @@ function Nt(t) {
263
263
  function ue(t) {
264
264
  return (t ?? "online") === "online" ? ne.isOnline() : !0;
265
265
  }
266
- class Ge {
266
+ class Ve {
267
267
  constructor(e) {
268
268
  this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
269
269
  }
270
270
  }
271
271
  function te(t) {
272
- return t instanceof Ge;
272
+ return t instanceof Ve;
273
273
  }
274
- function Ve(t) {
274
+ function Ge(t) {
275
275
  let e = !1, s = 0, r = !1, i, o, a;
276
276
  const u = new Promise((v, y) => {
277
277
  o = v, a = y;
278
278
  }), l = (v) => {
279
- r || (f(new Ge(v)), t.abort == null || t.abort());
279
+ r || (f(new Ve(v)), t.abort == null || t.abort());
280
280
  }, h = () => {
281
281
  e = !0;
282
- }, d = () => {
282
+ }, c = () => {
283
283
  e = !1;
284
284
  }, p = () => !re.isFocused() || t.networkMode !== "always" && !ne.isOnline(), m = (v) => {
285
285
  r || (r = !0, t.onSuccess == null || t.onSuccess(v), i == null || i(), o(v));
@@ -292,7 +292,7 @@ function Ve(t) {
292
292
  }, t.onPause == null || t.onPause();
293
293
  }).then(() => {
294
294
  i = void 0, r || t.onContinue == null || t.onContinue();
295
- }), g = () => {
295
+ }), b = () => {
296
296
  if (r)
297
297
  return;
298
298
  let v;
@@ -314,47 +314,47 @@ function Ve(t) {
314
314
  if (p())
315
315
  return C();
316
316
  }).then(() => {
317
- e ? f(y) : g();
317
+ e ? f(y) : b();
318
318
  });
319
319
  });
320
320
  };
321
- return ue(t.networkMode) ? g() : C().then(g), {
321
+ return ue(t.networkMode) ? b() : C().then(b), {
322
322
  promise: u,
323
323
  cancel: l,
324
324
  continue: () => (i == null ? void 0 : i()) ? u : Promise.resolve(),
325
325
  cancelRetry: h,
326
- continueRetry: d
326
+ continueRetry: c
327
327
  };
328
328
  }
329
- const ge = console;
329
+ const be = console;
330
330
  function Mt() {
331
- let t = [], e = 0, s = (d) => {
332
- d();
333
- }, r = (d) => {
334
- d();
331
+ let t = [], e = 0, s = (c) => {
332
+ c();
333
+ }, r = (c) => {
334
+ c();
335
335
  };
336
- const i = (d) => {
336
+ const i = (c) => {
337
337
  let p;
338
338
  e++;
339
339
  try {
340
- p = d();
340
+ p = c();
341
341
  } finally {
342
342
  e--, e || u();
343
343
  }
344
344
  return p;
345
- }, o = (d) => {
346
- e ? t.push(d) : Ae(() => {
347
- s(d);
345
+ }, o = (c) => {
346
+ e ? t.push(c) : Ae(() => {
347
+ s(c);
348
348
  });
349
- }, a = (d) => (...p) => {
349
+ }, a = (c) => (...p) => {
350
350
  o(() => {
351
- d(...p);
351
+ c(...p);
352
352
  });
353
353
  }, u = () => {
354
- const d = t;
355
- t = [], d.length && Ae(() => {
354
+ const c = t;
355
+ t = [], c.length && Ae(() => {
356
356
  r(() => {
357
- d.forEach((p) => {
357
+ c.forEach((p) => {
358
358
  s(p);
359
359
  });
360
360
  });
@@ -364,11 +364,11 @@ function Mt() {
364
364
  batch: i,
365
365
  batchCalls: a,
366
366
  schedule: o,
367
- setNotifyFunction: (d) => {
368
- s = d;
367
+ setNotifyFunction: (c) => {
368
+ s = c;
369
369
  },
370
- setBatchNotifyFunction: (d) => {
371
- r = d;
370
+ setBatchNotifyFunction: (c) => {
371
+ r = c;
372
372
  }
373
373
  };
374
374
  }
@@ -383,7 +383,7 @@ class $e {
383
383
  }, this.cacheTime));
384
384
  }
385
385
  updateCacheTime(e) {
386
- this.cacheTime = Math.max(this.cacheTime || 0, e ?? (Y ? 1 / 0 : 5 * 60 * 1e3));
386
+ this.cacheTime = Math.max(this.cacheTime || 0, e ?? (z ? 1 / 0 : 5 * 60 * 1e3));
387
387
  }
388
388
  clearGcTimeout() {
389
389
  this.gcTimeout && (clearTimeout(this.gcTimeout), this.gcTimeout = void 0);
@@ -391,7 +391,7 @@ class $e {
391
391
  }
392
392
  class Ft extends $e {
393
393
  constructor(e) {
394
- super(), this.abortSignalConsumed = !1, this.defaultOptions = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.cache = e.cache, this.logger = e.logger || ge, this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.initialState = e.state || kt(this.options), this.state = this.initialState, this.scheduleGc();
394
+ super(), this.abortSignalConsumed = !1, this.defaultOptions = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.cache = e.cache, this.logger = e.logger || be, this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.initialState = e.state || kt(this.options), this.state = this.initialState, this.scheduleGc();
395
395
  }
396
396
  get meta() {
397
397
  return this.options.meta;
@@ -515,18 +515,18 @@ class Ft extends $e {
515
515
  });
516
516
  };
517
517
  l(u);
518
- const h = () => this.options.queryFn ? (this.abortSignalConsumed = !1, this.options.queryFn(u)) : Promise.reject("Missing queryFn for queryKey '" + this.options.queryHash + "'"), d = {
518
+ const h = () => this.options.queryFn ? (this.abortSignalConsumed = !1, this.options.queryFn(u)) : Promise.reject("Missing queryFn for queryKey '" + this.options.queryHash + "'"), c = {
519
519
  fetchOptions: s,
520
520
  options: this.options,
521
521
  queryKey: this.queryKey,
522
522
  state: this.state,
523
523
  fetchFn: h
524
524
  };
525
- if (l(d), (r = this.options.behavior) == null || r.onFetch(d), this.revertState = this.state, this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((i = d.fetchOptions) == null ? void 0 : i.meta)) {
525
+ if (l(c), (r = this.options.behavior) == null || r.onFetch(c), this.revertState = this.state, this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((i = c.fetchOptions) == null ? void 0 : i.meta)) {
526
526
  var p;
527
527
  this.dispatch({
528
528
  type: "fetch",
529
- meta: (p = d.fetchOptions) == null ? void 0 : p.meta
529
+ meta: (p = c.fetchOptions) == null ? void 0 : p.meta
530
530
  });
531
531
  }
532
532
  const m = (f) => {
@@ -534,21 +534,21 @@ class Ft extends $e {
534
534
  type: "error",
535
535
  error: f
536
536
  }), !te(f)) {
537
- var C, g, v, y;
538
- (C = (g = this.cache.config).onError) == null || C.call(g, f, this), (v = (y = this.cache.config).onSettled) == null || v.call(y, this.state.data, f, this);
537
+ var C, b, v, y;
538
+ (C = (b = this.cache.config).onError) == null || C.call(b, f, this), (v = (y = this.cache.config).onSettled) == null || v.call(y, this.state.data, f, this);
539
539
  }
540
540
  this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
541
541
  };
542
- return this.retryer = Ve({
543
- fn: d.fetchFn,
542
+ return this.retryer = Ge({
543
+ fn: c.fetchFn,
544
544
  abort: a == null ? void 0 : a.abort.bind(a),
545
545
  onSuccess: (f) => {
546
- var C, g, v, y;
546
+ var C, b, v, y;
547
547
  if (typeof f > "u") {
548
548
  m(new Error(this.queryHash + " data is undefined"));
549
549
  return;
550
550
  }
551
- this.setData(f), (C = (g = this.cache.config).onSuccess) == null || C.call(g, f, this), (v = (y = this.cache.config).onSettled) == null || v.call(y, f, this.state.error, this), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
551
+ this.setData(f), (C = (b = this.cache.config).onSuccess) == null || C.call(b, f, this), (v = (y = this.cache.config).onSettled) == null || v.call(y, f, this.state.error, this), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
552
552
  },
553
553
  onError: m,
554
554
  onFail: (f, C) => {
@@ -568,9 +568,9 @@ class Ft extends $e {
568
568
  type: "continue"
569
569
  });
570
570
  },
571
- retry: d.options.retry,
572
- retryDelay: d.options.retryDelay,
573
- networkMode: d.options.networkMode
571
+ retry: c.options.retry,
572
+ retryDelay: c.options.retryDelay,
573
+ networkMode: c.options.networkMode
574
574
  }), this.promise = this.retryer.promise, this.promise;
575
575
  }
576
576
  dispatch(e) {
@@ -674,13 +674,13 @@ function kt(t) {
674
674
  fetchStatus: "idle"
675
675
  };
676
676
  }
677
- class Lt extends B {
677
+ class Lt extends K {
678
678
  constructor(e) {
679
679
  super(), this.config = e || {}, this.queries = [], this.queriesMap = {};
680
680
  }
681
681
  build(e, s, r) {
682
682
  var i;
683
- const o = s.queryKey, a = (i = s.queryHash) != null ? i : be(o, s);
683
+ const o = s.queryKey, a = (i = s.queryHash) != null ? i : ge(o, s);
684
684
  let u = this.get(a);
685
685
  return u || (u = new Ft({
686
686
  cache: this,
@@ -752,7 +752,7 @@ class Lt extends B {
752
752
  }
753
753
  class Dt extends $e {
754
754
  constructor(e) {
755
- super(), this.defaultOptions = e.defaultOptions, this.mutationId = e.mutationId, this.mutationCache = e.mutationCache, this.logger = e.logger || ge, this.observers = [], this.state = e.state || Ze(), this.setOptions(e.options), this.scheduleGc();
755
+ super(), this.defaultOptions = e.defaultOptions, this.mutationId = e.mutationId, this.mutationCache = e.mutationCache, this.logger = e.logger || be, this.observers = [], this.state = e.state || Ze(), this.setOptions(e.options), this.scheduleGc();
756
756
  }
757
757
  setOptions(e) {
758
758
  this.options = {
@@ -793,12 +793,12 @@ class Dt extends $e {
793
793
  async execute() {
794
794
  const e = () => {
795
795
  var w;
796
- return this.retryer = Ve({
796
+ return this.retryer = Ge({
797
797
  fn: () => this.options.mutationFn ? this.options.mutationFn(this.state.variables) : Promise.reject("No mutationFn found"),
798
- onFail: (b, F) => {
798
+ onFail: (g, F) => {
799
799
  this.dispatch({
800
800
  type: "failed",
801
- failureCount: b,
801
+ failureCount: g,
802
802
  error: F
803
803
  });
804
804
  },
@@ -818,29 +818,29 @@ class Dt extends $e {
818
818
  }), this.retryer.promise;
819
819
  }, s = this.state.status === "loading";
820
820
  try {
821
- var r, i, o, a, u, l, h, d;
821
+ var r, i, o, a, u, l, h, c;
822
822
  if (!s) {
823
823
  var p, m, f, C;
824
824
  this.dispatch({
825
825
  type: "loading",
826
826
  variables: this.options.variables
827
827
  }), await ((p = (m = this.mutationCache.config).onMutate) == null ? void 0 : p.call(m, this.state.variables, this));
828
- const b = await ((f = (C = this.options).onMutate) == null ? void 0 : f.call(C, this.state.variables));
829
- b !== this.state.context && this.dispatch({
828
+ const g = await ((f = (C = this.options).onMutate) == null ? void 0 : f.call(C, this.state.variables));
829
+ g !== this.state.context && this.dispatch({
830
830
  type: "loading",
831
- context: b,
831
+ context: g,
832
832
  variables: this.state.variables
833
833
  });
834
834
  }
835
835
  const w = await e();
836
- return await ((r = (i = this.mutationCache.config).onSuccess) == null ? void 0 : r.call(i, w, this.state.variables, this.state.context, this)), await ((o = (a = this.options).onSuccess) == null ? void 0 : o.call(a, w, this.state.variables, this.state.context)), await ((u = (l = this.mutationCache.config).onSettled) == null ? void 0 : u.call(l, w, null, this.state.variables, this.state.context, this)), await ((h = (d = this.options).onSettled) == null ? void 0 : h.call(d, w, null, this.state.variables, this.state.context)), this.dispatch({
836
+ return await ((r = (i = this.mutationCache.config).onSuccess) == null ? void 0 : r.call(i, w, this.state.variables, this.state.context, this)), await ((o = (a = this.options).onSuccess) == null ? void 0 : o.call(a, w, this.state.variables, this.state.context)), await ((u = (l = this.mutationCache.config).onSettled) == null ? void 0 : u.call(l, w, null, this.state.variables, this.state.context, this)), await ((h = (c = this.options).onSettled) == null ? void 0 : h.call(c, w, null, this.state.variables, this.state.context)), this.dispatch({
837
837
  type: "success",
838
838
  data: w
839
839
  }), w;
840
840
  } catch (w) {
841
841
  try {
842
- var g, v, y, _, j, O, N, R;
843
- throw await ((g = (v = this.mutationCache.config).onError) == null ? void 0 : g.call(v, w, this.state.variables, this.state.context, this)), await ((y = (_ = this.options).onError) == null ? void 0 : y.call(_, w, this.state.variables, this.state.context)), await ((j = (O = this.mutationCache.config).onSettled) == null ? void 0 : j.call(O, void 0, w, this.state.variables, this.state.context, this)), await ((N = (R = this.options).onSettled) == null ? void 0 : N.call(R, void 0, w, this.state.variables, this.state.context)), w;
842
+ var b, v, y, _, j, O, N, R;
843
+ throw await ((b = (v = this.mutationCache.config).onError) == null ? void 0 : b.call(v, w, this.state.variables, this.state.context, this)), await ((y = (_ = this.options).onError) == null ? void 0 : y.call(_, w, this.state.variables, this.state.context)), await ((j = (O = this.mutationCache.config).onSettled) == null ? void 0 : j.call(O, void 0, w, this.state.variables, this.state.context, this)), await ((N = (R = this.options).onSettled) == null ? void 0 : N.call(R, void 0, w, this.state.variables, this.state.context)), w;
844
844
  } finally {
845
845
  this.dispatch({
846
846
  type: "error",
@@ -930,7 +930,7 @@ function Ze() {
930
930
  variables: void 0
931
931
  };
932
932
  }
933
- class It extends B {
933
+ class It extends K {
934
934
  constructor(e) {
935
935
  super(), this.config = e || {}, this.mutations = [], this.mutationId = 0;
936
936
  }
@@ -997,42 +997,42 @@ function Tt() {
997
997
  onFetch: (t) => {
998
998
  t.fetchFn = () => {
999
999
  var e, s, r, i, o, a;
1000
- const u = (e = t.fetchOptions) == null || (s = e.meta) == null ? void 0 : s.refetchPage, l = (r = t.fetchOptions) == null || (i = r.meta) == null ? void 0 : i.fetchMore, h = l == null ? void 0 : l.pageParam, d = (l == null ? void 0 : l.direction) === "forward", p = (l == null ? void 0 : l.direction) === "backward", m = ((o = t.state.data) == null ? void 0 : o.pages) || [], f = ((a = t.state.data) == null ? void 0 : a.pageParams) || [];
1001
- let C = f, g = !1;
1000
+ const u = (e = t.fetchOptions) == null || (s = e.meta) == null ? void 0 : s.refetchPage, l = (r = t.fetchOptions) == null || (i = r.meta) == null ? void 0 : i.fetchMore, h = l == null ? void 0 : l.pageParam, c = (l == null ? void 0 : l.direction) === "forward", p = (l == null ? void 0 : l.direction) === "backward", m = ((o = t.state.data) == null ? void 0 : o.pages) || [], f = ((a = t.state.data) == null ? void 0 : a.pageParams) || [];
1001
+ let C = f, b = !1;
1002
1002
  const v = (R) => {
1003
1003
  Object.defineProperty(R, "signal", {
1004
1004
  enumerable: !0,
1005
1005
  get: () => {
1006
1006
  var w;
1007
1007
  if ((w = t.signal) != null && w.aborted)
1008
- g = !0;
1008
+ b = !0;
1009
1009
  else {
1010
- var b;
1011
- (b = t.signal) == null || b.addEventListener("abort", () => {
1012
- g = !0;
1010
+ var g;
1011
+ (g = t.signal) == null || g.addEventListener("abort", () => {
1012
+ b = !0;
1013
1013
  });
1014
1014
  }
1015
1015
  return t.signal;
1016
1016
  }
1017
1017
  });
1018
- }, y = t.options.queryFn || (() => Promise.reject("Missing queryFn for queryKey '" + t.options.queryHash + "'")), _ = (R, w, b, F) => (C = F ? [w, ...C] : [...C, w], F ? [b, ...R] : [...R, b]), j = (R, w, b, F) => {
1019
- if (g)
1018
+ }, y = t.options.queryFn || (() => Promise.reject("Missing queryFn for queryKey '" + t.options.queryHash + "'")), _ = (R, w, g, F) => (C = F ? [w, ...C] : [...C, w], F ? [g, ...R] : [...R, g]), j = (R, w, g, F) => {
1019
+ if (b)
1020
1020
  return Promise.reject("Cancelled");
1021
- if (typeof b > "u" && !w && R.length)
1021
+ if (typeof g > "u" && !w && R.length)
1022
1022
  return Promise.resolve(R);
1023
- const $ = {
1023
+ const Z = {
1024
1024
  queryKey: t.queryKey,
1025
- pageParam: b,
1025
+ pageParam: g,
1026
1026
  meta: t.options.meta
1027
1027
  };
1028
- v($);
1029
- const le = y($);
1030
- return Promise.resolve(le).then((jt) => _(R, b, jt, F));
1028
+ v(Z);
1029
+ const le = y(Z);
1030
+ return Promise.resolve(le).then((jt) => _(R, g, jt, F));
1031
1031
  };
1032
1032
  let O;
1033
1033
  if (!m.length)
1034
1034
  O = j([]);
1035
- else if (d) {
1035
+ else if (c) {
1036
1036
  const R = typeof h < "u", w = R ? h : Me(t.options, m);
1037
1037
  O = j(m, R, w);
1038
1038
  } else if (p) {
@@ -1042,13 +1042,13 @@ function Tt() {
1042
1042
  C = [];
1043
1043
  const R = typeof t.options.getNextPageParam > "u";
1044
1044
  O = (u && m[0] ? u(m[0], 0, m) : !0) ? j([], R, f[0]) : Promise.resolve(_([], f[0], m[0]));
1045
- for (let b = 1; b < m.length; b++)
1045
+ for (let g = 1; g < m.length; g++)
1046
1046
  O = O.then((F) => {
1047
- if (u && m[b] ? u(m[b], b, m) : !0) {
1048
- const le = R ? f[b] : Me(t.options, F);
1047
+ if (u && m[g] ? u(m[g], g, m) : !0) {
1048
+ const le = R ? f[g] : Me(t.options, F);
1049
1049
  return j(F, R, le);
1050
1050
  }
1051
- return Promise.resolve(_(F, f[b], m[b]));
1051
+ return Promise.resolve(_(F, f[g], m[g]));
1052
1052
  });
1053
1053
  }
1054
1054
  return O.then((R) => ({
@@ -1067,7 +1067,7 @@ function Ut(t, e) {
1067
1067
  }
1068
1068
  class We {
1069
1069
  constructor(e = {}) {
1070
- this.queryCache = e.queryCache || new Lt(), this.mutationCache = e.mutationCache || new It(), this.logger = e.logger || ge, this.defaultOptions = e.defaultOptions || {}, this.queryDefaults = [], this.mutationDefaults = [], this.mountCount = 0;
1070
+ this.queryCache = e.queryCache || new Lt(), this.mutationCache = e.mutationCache || new It(), this.logger = e.logger || be, this.defaultOptions = e.defaultOptions || {}, this.queryDefaults = [], this.mutationDefaults = [], this.mountCount = 0;
1071
1071
  }
1072
1072
  mount() {
1073
1073
  this.mountCount++, this.mountCount === 1 && (this.unsubscribeFocus = re.subscribe(() => {
@@ -1095,7 +1095,7 @@ class We {
1095
1095
  return (r = this.queryCache.find(e, s)) == null ? void 0 : r.state.data;
1096
1096
  }
1097
1097
  ensureQueryData(e, s, r) {
1098
- const i = W(e, s, r), o = this.getQueryData(i.queryKey);
1098
+ const i = Y(e, s, r), o = this.getQueryData(i.queryKey);
1099
1099
  return o ? Promise.resolve(o) : this.fetchQuery(i);
1100
1100
  }
1101
1101
  getQueriesData(e) {
@@ -1111,7 +1111,7 @@ class We {
1111
1111
  const i = this.queryCache.find(e), o = i == null ? void 0 : i.state.data, a = Et(s, o);
1112
1112
  if (typeof a > "u")
1113
1113
  return;
1114
- const u = W(e), l = this.defaultQueryOptions(u);
1114
+ const u = Y(e), l = this.defaultQueryOptions(u);
1115
1115
  return this.queryCache.build(this, l).setData(a, {
1116
1116
  ...r,
1117
1117
  manual: !0
@@ -1179,7 +1179,7 @@ class We {
1179
1179
  return o != null && o.throwOnError || (u = u.catch(k)), u;
1180
1180
  }
1181
1181
  fetchQuery(e, s, r) {
1182
- const i = W(e, s, r), o = this.defaultQueryOptions(i);
1182
+ const i = Y(e, s, r), o = this.defaultQueryOptions(i);
1183
1183
  typeof o.retry > "u" && (o.retry = !1);
1184
1184
  const a = this.queryCache.build(this, o);
1185
1185
  return a.isStaleByTime(o.staleTime) ? a.fetch(o) : Promise.resolve(a.state.data);
@@ -1188,7 +1188,7 @@ class We {
1188
1188
  return this.fetchQuery(e, s, r).then(k).catch(k);
1189
1189
  }
1190
1190
  fetchInfiniteQuery(e, s, r) {
1191
- const i = W(e, s, r);
1191
+ const i = Y(e, s, r);
1192
1192
  return i.behavior = Tt(), this.fetchQuery(i);
1193
1193
  }
1194
1194
  prefetchInfiniteQuery(e, s, r) {
@@ -1247,7 +1247,7 @@ class We {
1247
1247
  ...e,
1248
1248
  _defaulted: !0
1249
1249
  };
1250
- return !s.queryHash && s.queryKey && (s.queryHash = be(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 = ge(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(e) {
1253
1253
  return e != null && e._defaulted ? e : {
@@ -1261,7 +1261,7 @@ class We {
1261
1261
  this.queryCache.clear(), this.mutationCache.clear();
1262
1262
  }
1263
1263
  }
1264
- class Qt extends B {
1264
+ class Qt extends K {
1265
1265
  constructor(e, s) {
1266
1266
  super(), this.client = e, this.options = s, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(s);
1267
1267
  }
@@ -1298,8 +1298,8 @@ class Qt extends B {
1298
1298
  o && (this.currentQuery !== i || this.options.enabled !== r.enabled || a !== this.currentRefetchInterval) && this.updateRefetchInterval(a);
1299
1299
  }
1300
1300
  getOptimisticResult(e) {
1301
- const s = this.client.getQueryCache().build(this.client, e);
1302
- return this.createResult(s, e);
1301
+ const s = this.client.getQueryCache().build(this.client, e), r = this.createResult(s, e);
1302
+ return Bt(this, r, e) && (this.currentResult = r, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), r;
1303
1303
  }
1304
1304
  getCurrentResult() {
1305
1305
  return this.currentResult;
@@ -1348,7 +1348,7 @@ class Qt extends B {
1348
1348
  return e != null && e.throwOnError || (s = s.catch(k)), s;
1349
1349
  }
1350
1350
  updateStaleTimeout() {
1351
- if (this.clearStaleTimeout(), Y || this.currentResult.isStale || !de(this.options.staleTime))
1351
+ if (this.clearStaleTimeout(), z || this.currentResult.isStale || !de(this.options.staleTime))
1352
1352
  return;
1353
1353
  const s = qe(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1354
1354
  this.staleTimeoutId = setTimeout(() => {
@@ -1360,7 +1360,7 @@ class Qt extends B {
1360
1360
  return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
1361
1361
  }
1362
1362
  updateRefetchInterval(e) {
1363
- this.clearRefetchInterval(), this.currentRefetchInterval = e, !(Y || this.options.enabled === !1 || !de(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1363
+ this.clearRefetchInterval(), this.currentRefetchInterval = e, !(z || this.options.enabled === !1 || !de(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1364
1364
  (this.options.refetchIntervalInBackground || re.isFocused()) && this.executeFetch();
1365
1365
  }, this.currentRefetchInterval));
1366
1366
  }
@@ -1374,50 +1374,50 @@ class Qt extends B {
1374
1374
  this.refetchIntervalId && (clearInterval(this.refetchIntervalId), this.refetchIntervalId = void 0);
1375
1375
  }
1376
1376
  createResult(e, s) {
1377
- const r = this.currentQuery, i = this.options, o = this.currentResult, a = this.currentResultState, u = this.currentResultOptions, l = e !== r, h = l ? e.state : this.currentQueryInitialState, d = l ? this.currentResult : this.previousQueryResult, {
1377
+ const r = this.currentQuery, i = this.options, o = this.currentResult, a = this.currentResultState, u = this.currentResultOptions, l = e !== r, h = l ? e.state : this.currentQueryInitialState, c = l ? this.currentResult : this.previousQueryResult, {
1378
1378
  state: p
1379
1379
  } = e;
1380
1380
  let {
1381
1381
  dataUpdatedAt: m,
1382
1382
  error: f,
1383
1383
  errorUpdatedAt: C,
1384
- fetchStatus: g,
1384
+ fetchStatus: b,
1385
1385
  status: v
1386
1386
  } = p, y = !1, _ = !1, j;
1387
1387
  if (s._optimisticResults) {
1388
- const b = this.hasListeners(), F = !b && Fe(e, s), $ = b && ke(e, r, s, i);
1389
- (F || $) && (g = ue(e.options.networkMode) ? "fetching" : "paused", m || (v = "loading")), s._optimisticResults === "isRestoring" && (g = "idle");
1388
+ const g = this.hasListeners(), F = !g && Fe(e, s), Z = g && ke(e, r, s, i);
1389
+ (F || Z) && (b = ue(e.options.networkMode) ? "fetching" : "paused", m || (v = "loading")), s._optimisticResults === "isRestoring" && (b = "idle");
1390
1390
  }
1391
- if (s.keepPreviousData && !p.dataUpdatedAt && d != null && d.isSuccess && v !== "error")
1392
- j = d.data, m = d.dataUpdatedAt, v = d.status, y = !0;
1391
+ if (s.keepPreviousData && !p.dataUpdatedAt && c != null && c.isSuccess && v !== "error")
1392
+ j = c.data, m = c.dataUpdatedAt, v = c.status, y = !0;
1393
1393
  else if (s.select && typeof p.data < "u")
1394
1394
  if (o && p.data === (a == null ? void 0 : a.data) && s.select === this.selectFn)
1395
1395
  j = this.selectResult;
1396
1396
  else
1397
1397
  try {
1398
1398
  this.selectFn = s.select, j = s.select(p.data), j = pe(o == null ? void 0 : o.data, j, s), this.selectResult = j, this.selectError = null;
1399
- } catch (b) {
1400
- this.selectError = b;
1399
+ } catch (g) {
1400
+ this.selectError = g;
1401
1401
  }
1402
1402
  else
1403
1403
  j = p.data;
1404
1404
  if (typeof s.placeholderData < "u" && typeof j > "u" && v === "loading") {
1405
- let b;
1405
+ let g;
1406
1406
  if (o != null && o.isPlaceholderData && s.placeholderData === (u == null ? void 0 : u.placeholderData))
1407
- b = o.data;
1408
- else if (b = typeof s.placeholderData == "function" ? s.placeholderData() : s.placeholderData, s.select && typeof b < "u")
1407
+ g = o.data;
1408
+ else if (g = typeof s.placeholderData == "function" ? s.placeholderData() : s.placeholderData, s.select && typeof g < "u")
1409
1409
  try {
1410
- b = s.select(b), this.selectError = null;
1410
+ g = s.select(g), this.selectError = null;
1411
1411
  } catch (F) {
1412
1412
  this.selectError = F;
1413
1413
  }
1414
- typeof b < "u" && (v = "success", j = pe(o == null ? void 0 : o.data, b, s), _ = !0);
1414
+ typeof g < "u" && (v = "success", j = pe(o == null ? void 0 : o.data, g, s), _ = !0);
1415
1415
  }
1416
1416
  this.selectError && (f = this.selectError, j = this.selectResult, C = Date.now(), v = "error");
1417
- const O = g === "fetching", N = v === "loading", R = v === "error";
1417
+ const O = b === "fetching", N = v === "loading", R = v === "error";
1418
1418
  return {
1419
1419
  status: v,
1420
- fetchStatus: g,
1420
+ fetchStatus: b,
1421
1421
  isLoading: N,
1422
1422
  isSuccess: v === "success",
1423
1423
  isError: R,
@@ -1434,7 +1434,7 @@ class Qt extends B {
1434
1434
  isFetching: O,
1435
1435
  isRefetching: O && !N,
1436
1436
  isLoadingError: R && p.dataUpdatedAt === 0,
1437
- isPaused: g === "paused",
1437
+ isPaused: b === "paused",
1438
1438
  isPlaceholderData: _,
1439
1439
  isPreviousData: y,
1440
1440
  isRefetchError: R && p.dataUpdatedAt !== 0,
@@ -1455,13 +1455,13 @@ class Qt extends B {
1455
1455
  return !0;
1456
1456
  const {
1457
1457
  notifyOnChangeProps: a
1458
- } = this.options;
1459
- if (a === "all" || !a && !this.trackedProps.size)
1458
+ } = this.options, u = typeof a == "function" ? a() : a;
1459
+ if (u === "all" || !u && !this.trackedProps.size)
1460
1460
  return !0;
1461
- const u = new Set(a ?? this.trackedProps);
1462
- return this.options.useErrorBoundary && u.add("error"), Object.keys(this.currentResult).some((l) => {
1463
- const h = l;
1464
- return this.currentResult[h] !== s[h] && u.has(h);
1461
+ const l = new Set(u ?? this.trackedProps);
1462
+ return this.options.useErrorBoundary && l.add("error"), Object.keys(this.currentResult).some((h) => {
1463
+ const c = h;
1464
+ return this.currentResult[c] !== s[c] && l.has(c);
1465
1465
  });
1466
1466
  };
1467
1467
  (e == null ? void 0 : e.listeners) !== !1 && o() && (i.listeners = !0), this.notify({
@@ -1490,9 +1490,9 @@ class Qt extends B {
1490
1490
  (a = (u = this.options).onError) == null || a.call(u, this.currentResult.error), (l = (h = this.options).onSettled) == null || l.call(h, void 0, this.currentResult.error);
1491
1491
  }
1492
1492
  e.listeners && this.listeners.forEach(({
1493
- listener: d
1493
+ listener: c
1494
1494
  }) => {
1495
- d(this.currentResult);
1495
+ c(this.currentResult);
1496
1496
  }), e.cache && this.client.getQueryCache().notify({
1497
1497
  query: this.currentQuery,
1498
1498
  type: "observerResultsUpdated"
@@ -1519,7 +1519,10 @@ function ke(t, e, s, r) {
1519
1519
  function je(t, e) {
1520
1520
  return t.isStaleByTime(e.staleTime);
1521
1521
  }
1522
- class Bt extends B {
1522
+ function Bt(t, e, s) {
1523
+ return s.keepPreviousData ? !1 : s.placeholderData !== void 0 ? e.isPlaceholderData : t.getCurrentResult() !== e;
1524
+ }
1525
+ class Kt extends K {
1523
1526
  constructor(e, s) {
1524
1527
  super(), this.client = e, this.setOptions(s), this.bindMethods(), this.updateResult();
1525
1528
  }
@@ -1586,9 +1589,9 @@ class Bt extends B {
1586
1589
  }
1587
1590
  }
1588
1591
  e.listeners && this.listeners.forEach(({
1589
- listener: d
1592
+ listener: c
1590
1593
  }) => {
1591
- d(this.currentResult);
1594
+ c(this.currentResult);
1592
1595
  });
1593
1596
  });
1594
1597
  }
@@ -1603,67 +1606,67 @@ var Ye = { exports: {} }, ze = {};
1603
1606
  * This source code is licensed under the MIT license found in the
1604
1607
  * LICENSE file in the root directory of this source tree.
1605
1608
  */
1606
- var q = c;
1607
- function Kt(t, e) {
1609
+ var B = d;
1610
+ function Ht(t, e) {
1608
1611
  return t === e && (t !== 0 || 1 / t === 1 / e) || t !== t && e !== e;
1609
1612
  }
1610
- var Ht = typeof Object.is == "function" ? Object.is : Kt, Gt = q.useState, Vt = q.useEffect, $t = q.useLayoutEffect, Zt = q.useDebugValue;
1611
- function Wt(t, e) {
1613
+ var Vt = typeof Object.is == "function" ? Object.is : Ht, Gt = B.useState, $t = B.useEffect, Zt = B.useLayoutEffect, Wt = B.useDebugValue;
1614
+ function Yt(t, e) {
1612
1615
  var s = e(), r = Gt({ inst: { value: s, getSnapshot: e } }), i = r[0].inst, o = r[1];
1613
- return $t(function() {
1616
+ return Zt(function() {
1614
1617
  i.value = s, i.getSnapshot = e, ce(i) && o({ inst: i });
1615
- }, [t, s, e]), Vt(function() {
1618
+ }, [t, s, e]), $t(function() {
1616
1619
  return ce(i) && o({ inst: i }), t(function() {
1617
1620
  ce(i) && o({ inst: i });
1618
1621
  });
1619
- }, [t]), Zt(s), s;
1622
+ }, [t]), Wt(s), s;
1620
1623
  }
1621
1624
  function ce(t) {
1622
1625
  var e = t.getSnapshot;
1623
1626
  t = t.value;
1624
1627
  try {
1625
1628
  var s = e();
1626
- return !Ht(t, s);
1629
+ return !Vt(t, s);
1627
1630
  } catch {
1628
1631
  return !0;
1629
1632
  }
1630
1633
  }
1631
- function Yt(t, e) {
1634
+ function zt(t, e) {
1632
1635
  return e();
1633
1636
  }
1634
- var zt = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? Yt : Wt;
1635
- ze.useSyncExternalStore = q.useSyncExternalStore !== void 0 ? q.useSyncExternalStore : zt;
1637
+ var Jt = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? zt : Yt;
1638
+ ze.useSyncExternalStore = B.useSyncExternalStore !== void 0 ? B.useSyncExternalStore : Jt;
1636
1639
  Ye.exports = ze;
1637
- var Jt = Ye.exports;
1638
- const Je = Jt.useSyncExternalStore, Le = /* @__PURE__ */ c.createContext(void 0), Xe = /* @__PURE__ */ c.createContext(!1);
1640
+ var Xt = Ye.exports;
1641
+ const Je = Xt.useSyncExternalStore, Le = /* @__PURE__ */ d.createContext(void 0), Xe = /* @__PURE__ */ d.createContext(!1);
1639
1642
  function et(t, e) {
1640
1643
  return t || (e && typeof window < "u" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Le), window.ReactQueryClientContext) : Le);
1641
1644
  }
1642
1645
  const tt = ({
1643
1646
  context: t
1644
1647
  } = {}) => {
1645
- const e = c.useContext(et(t, c.useContext(Xe)));
1648
+ const e = d.useContext(et(t, d.useContext(Xe)));
1646
1649
  if (!e)
1647
1650
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1648
1651
  return e;
1649
- }, Xt = ({
1652
+ }, es = ({
1650
1653
  client: t,
1651
1654
  children: e,
1652
1655
  context: s,
1653
1656
  contextSharing: r = !1
1654
1657
  }) => {
1655
- c.useEffect(() => (t.mount(), () => {
1658
+ d.useEffect(() => (t.mount(), () => {
1656
1659
  t.unmount();
1657
1660
  }), [t]);
1658
1661
  const i = et(s, r);
1659
- return /* @__PURE__ */ c.createElement(Xe.Provider, {
1662
+ return /* @__PURE__ */ d.createElement(Xe.Provider, {
1660
1663
  value: !s && r
1661
- }, /* @__PURE__ */ c.createElement(i.Provider, {
1664
+ }, /* @__PURE__ */ d.createElement(i.Provider, {
1662
1665
  value: t
1663
1666
  }, e));
1664
- }, st = /* @__PURE__ */ c.createContext(!1), es = () => c.useContext(st);
1667
+ }, st = /* @__PURE__ */ d.createContext(!1), ts = () => d.useContext(st);
1665
1668
  st.Provider;
1666
- function ts() {
1669
+ function ss() {
1667
1670
  let t = !1;
1668
1671
  return {
1669
1672
  clearReset: () => {
@@ -1675,47 +1678,47 @@ function ts() {
1675
1678
  isReset: () => t
1676
1679
  };
1677
1680
  }
1678
- const ss = /* @__PURE__ */ c.createContext(ts()), rs = () => c.useContext(ss);
1681
+ const rs = /* @__PURE__ */ d.createContext(ss()), ns = () => d.useContext(rs);
1679
1682
  function rt(t, e) {
1680
1683
  return typeof t == "function" ? t(...e) : !!t;
1681
1684
  }
1682
- const ns = (t, e) => {
1685
+ const is = (t, e) => {
1683
1686
  (t.suspense || t.useErrorBoundary) && (e.isReset() || (t.retryOnMount = !1));
1684
- }, is = (t) => {
1685
- c.useEffect(() => {
1687
+ }, os = (t) => {
1688
+ d.useEffect(() => {
1686
1689
  t.clearReset();
1687
1690
  }, [t]);
1688
- }, os = ({
1691
+ }, as = ({
1689
1692
  result: t,
1690
1693
  errorResetBoundary: e,
1691
1694
  useErrorBoundary: s,
1692
1695
  query: r
1693
- }) => t.isError && !e.isReset() && !t.isFetching && rt(s, [t.error, r]), as = (t) => {
1696
+ }) => t.isError && !e.isReset() && !t.isFetching && rt(s, [t.error, r]), us = (t) => {
1694
1697
  t.suspense && typeof t.staleTime != "number" && (t.staleTime = 1e3);
1695
- }, us = (t, e) => t.isLoading && t.isFetching && !e, ls = (t, e, s) => (t == null ? void 0 : t.suspense) && us(e, s), cs = (t, e, s) => e.fetchOptimistic(t).then(({
1698
+ }, ls = (t, e) => t.isLoading && t.isFetching && !e, cs = (t, e, s) => (t == null ? void 0 : t.suspense) && ls(e, s), ds = (t, e, s) => e.fetchOptimistic(t).then(({
1696
1699
  data: r
1697
1700
  }) => {
1698
1701
  t.onSuccess == null || t.onSuccess(r), t.onSettled == null || t.onSettled(r, null);
1699
1702
  }).catch((r) => {
1700
1703
  s.clearReset(), t.onError == null || t.onError(r), t.onSettled == null || t.onSettled(void 0, r);
1701
1704
  });
1702
- function ds(t, e) {
1705
+ function hs(t, e) {
1703
1706
  const s = tt({
1704
1707
  context: t.context
1705
- }), r = es(), i = rs(), o = s.defaultQueryOptions(t);
1706
- o._optimisticResults = r ? "isRestoring" : "optimistic", o.onError && (o.onError = P.batchCalls(o.onError)), o.onSuccess && (o.onSuccess = P.batchCalls(o.onSuccess)), o.onSettled && (o.onSettled = P.batchCalls(o.onSettled)), as(o), ns(o, i), is(i);
1707
- const [a] = c.useState(() => new e(s, o)), u = a.getOptimisticResult(o);
1708
- if (Je(c.useCallback((l) => {
1708
+ }), r = ts(), i = ns(), o = s.defaultQueryOptions(t);
1709
+ o._optimisticResults = r ? "isRestoring" : "optimistic", o.onError && (o.onError = P.batchCalls(o.onError)), o.onSuccess && (o.onSuccess = P.batchCalls(o.onSuccess)), o.onSettled && (o.onSettled = P.batchCalls(o.onSettled)), us(o), is(o, i), os(i);
1710
+ const [a] = d.useState(() => new e(s, o)), u = a.getOptimisticResult(o);
1711
+ if (Je(d.useCallback((l) => {
1709
1712
  const h = r ? () => {
1710
1713
  } : a.subscribe(P.batchCalls(l));
1711
1714
  return a.updateResult(), h;
1712
- }, [a, r]), () => a.getCurrentResult(), () => a.getCurrentResult()), c.useEffect(() => {
1715
+ }, [a, r]), () => a.getCurrentResult(), () => a.getCurrentResult()), d.useEffect(() => {
1713
1716
  a.setOptions(o, {
1714
1717
  listeners: !1
1715
1718
  });
1716
- }, [o, a]), ls(o, u, r))
1717
- throw cs(o, a, i);
1718
- if (os({
1719
+ }, [o, a]), cs(o, u, r))
1720
+ throw ds(o, a, i);
1721
+ if (as({
1719
1722
  result: u,
1720
1723
  errorResetBoundary: i,
1721
1724
  useErrorBoundary: o.useErrorBoundary,
@@ -1725,18 +1728,18 @@ function ds(t, e) {
1725
1728
  return o.notifyOnChangeProps ? u : a.trackResult(u);
1726
1729
  }
1727
1730
  function nt(t, e, s) {
1728
- const r = W(t, e, s);
1729
- return ds(r, Qt);
1731
+ const r = Y(t, e, s);
1732
+ return hs(r, Qt);
1730
1733
  }
1731
- function hs(t, e, s) {
1734
+ function fs(t, e, s) {
1732
1735
  const r = Ot(t, e, s), i = tt({
1733
1736
  context: r.context
1734
- }), [o] = c.useState(() => new Bt(i, r));
1735
- c.useEffect(() => {
1737
+ }), [o] = d.useState(() => new Kt(i, r));
1738
+ d.useEffect(() => {
1736
1739
  o.setOptions(r);
1737
1740
  }, [o, r]);
1738
- const a = Je(c.useCallback((l) => o.subscribe(P.batchCalls(l)), [o]), () => o.getCurrentResult(), () => o.getCurrentResult()), u = c.useCallback((l, h) => {
1739
- o.mutate(l, h).catch(fs);
1741
+ const a = Je(d.useCallback((l) => o.subscribe(P.batchCalls(l)), [o]), () => o.getCurrentResult(), () => o.getCurrentResult()), u = d.useCallback((l, h) => {
1742
+ o.mutate(l, h).catch(ps);
1740
1743
  }, [o]);
1741
1744
  if (a.error && rt(o.options.useErrorBoundary, [a.error]))
1742
1745
  throw a.error;
@@ -1746,7 +1749,7 @@ function hs(t, e, s) {
1746
1749
  mutateAsync: a.mutate
1747
1750
  };
1748
1751
  }
1749
- function fs() {
1752
+ function ps() {
1750
1753
  }
1751
1754
  function it(t) {
1752
1755
  var e, s, r = "";
@@ -1766,14 +1769,14 @@ function S() {
1766
1769
  (t = arguments[s++]) && (e = it(t)) && (r && (r += " "), r += e);
1767
1770
  return r;
1768
1771
  }
1769
- var ps = Object.defineProperty, vs = Object.defineProperties, ms = Object.getOwnPropertyDescriptors, ie = Object.getOwnPropertySymbols, ot = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable, De = (t, e, s) => e in t ? ps(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, x = (t, e) => {
1772
+ var vs = Object.defineProperty, ms = Object.defineProperties, ys = Object.getOwnPropertyDescriptors, ie = Object.getOwnPropertySymbols, ot = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable, De = (t, e, s) => e in t ? vs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, x = (t, e) => {
1770
1773
  for (var s in e || (e = {}))
1771
1774
  ot.call(e, s) && De(t, s, e[s]);
1772
1775
  if (ie)
1773
1776
  for (var s of ie(e))
1774
1777
  at.call(e, s) && De(t, s, e[s]);
1775
1778
  return t;
1776
- }, E = (t, e) => vs(t, ms(e)), A = (t, e) => {
1779
+ }, E = (t, e) => ms(t, ys(e)), A = (t, e) => {
1777
1780
  var s = {};
1778
1781
  for (var r in t)
1779
1782
  ot.call(t, r) && e.indexOf(r) < 0 && (s[r] = t[r]);
@@ -1792,39 +1795,39 @@ function oe() {
1792
1795
  return t;
1793
1796
  }, oe.apply(this, arguments);
1794
1797
  }
1795
- function ys(t, e) {
1798
+ function Cs(t, e) {
1796
1799
  typeof t == "function" ? t(e) : t != null && (t.current = e);
1797
1800
  }
1798
- function Cs(...t) {
1801
+ function xs(...t) {
1799
1802
  return (e) => t.forEach(
1800
- (s) => ys(s, e)
1803
+ (s) => Cs(s, e)
1801
1804
  );
1802
1805
  }
1803
- var xs = /* @__PURE__ */ c.forwardRef((t, e) => {
1804
- const s = t, { children: r } = s, i = A(s, ["children"]), o = c.Children.toArray(r), a = o.find(gs);
1806
+ var gs = /* @__PURE__ */ d.forwardRef((t, e) => {
1807
+ const s = t, { children: r } = s, i = A(s, ["children"]), o = d.Children.toArray(r), a = o.find(js);
1805
1808
  if (a) {
1806
- const u = a.props.children, l = o.map((h) => h === a ? c.Children.count(u) > 1 ? c.Children.only(null) : /* @__PURE__ */ c.isValidElement(u) ? u.props.children : null : h);
1807
- return /* @__PURE__ */ c.createElement(me, oe({}, i, {
1809
+ const u = a.props.children, l = o.map((h) => h === a ? d.Children.count(u) > 1 ? d.Children.only(null) : /* @__PURE__ */ d.isValidElement(u) ? u.props.children : null : h);
1810
+ return /* @__PURE__ */ d.createElement(me, oe({}, i, {
1808
1811
  ref: e
1809
- }), /* @__PURE__ */ c.isValidElement(u) ? /* @__PURE__ */ c.cloneElement(u, void 0, l) : null);
1812
+ }), /* @__PURE__ */ d.isValidElement(u) ? /* @__PURE__ */ d.cloneElement(u, void 0, l) : null);
1810
1813
  }
1811
- return /* @__PURE__ */ c.createElement(me, oe({}, i, {
1814
+ return /* @__PURE__ */ d.createElement(me, oe({}, i, {
1812
1815
  ref: e
1813
1816
  }), r);
1814
1817
  });
1815
- xs.displayName = "Slot";
1816
- var me = /* @__PURE__ */ c.forwardRef((t, e) => {
1818
+ gs.displayName = "Slot";
1819
+ var me = /* @__PURE__ */ d.forwardRef((t, e) => {
1817
1820
  const s = t, { children: r } = s, i = A(s, ["children"]);
1818
- return /* @__PURE__ */ c.isValidElement(r) ? /* @__PURE__ */ c.cloneElement(r, E(x({}, js(i, r.props)), {
1819
- ref: e ? Cs(e, r.ref) : r.ref
1820
- })) : c.Children.count(r) > 1 ? c.Children.only(null) : null;
1821
+ return /* @__PURE__ */ d.isValidElement(r) ? /* @__PURE__ */ d.cloneElement(r, E(x({}, ws(i, r.props)), {
1822
+ ref: e ? xs(e, r.ref) : r.ref
1823
+ })) : d.Children.count(r) > 1 ? d.Children.only(null) : null;
1821
1824
  });
1822
1825
  me.displayName = "SlotClone";
1823
- var bs = ({ children: t }) => /* @__PURE__ */ c.createElement(c.Fragment, null, t);
1824
- function gs(t) {
1825
- return /* @__PURE__ */ c.isValidElement(t) && t.type === bs;
1826
+ var bs = ({ children: t }) => /* @__PURE__ */ d.createElement(d.Fragment, null, t);
1827
+ function js(t) {
1828
+ return /* @__PURE__ */ d.isValidElement(t) && t.type === bs;
1826
1829
  }
1827
- function js(t, e) {
1830
+ function ws(t, e) {
1828
1831
  const s = x({}, e);
1829
1832
  for (const r in e) {
1830
1833
  const i = t[r], o = e[r];
@@ -1837,7 +1840,7 @@ function js(t, e) {
1837
1840
  }
1838
1841
  return x(x({}, t), s);
1839
1842
  }
1840
- var ws = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1843
+ var _s = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1841
1844
  const r = `${t.charAt(0)}${e.charAt(0)}`;
1842
1845
  return /* @__PURE__ */ n.jsx(
1843
1846
  "span",
@@ -1848,7 +1851,7 @@ var ws = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1848
1851
  children: /* @__PURE__ */ n.jsx("span", { className: "avatar__initials", children: r })
1849
1852
  }
1850
1853
  );
1851
- }, K = c.forwardRef(
1854
+ }, H = d.forwardRef(
1852
1855
  (t, e) => {
1853
1856
  var s = t, {
1854
1857
  iconLeft: r,
@@ -1858,7 +1861,7 @@ var ws = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1858
1861
  variant: u,
1859
1862
  className: l,
1860
1863
  children: h
1861
- } = s, d = A(s, [
1864
+ } = s, c = A(s, [
1862
1865
  "iconLeft",
1863
1866
  "iconRight",
1864
1867
  "isPending",
@@ -1872,7 +1875,7 @@ var ws = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1872
1875
  "button",
1873
1876
  E(x({
1874
1877
  ref: e
1875
- }, d), {
1878
+ }, c), {
1876
1879
  className: S(
1877
1880
  "button",
1878
1881
  u && `button--${u}`,
@@ -1890,9 +1893,9 @@ var ws = ({ firstName: t, lastName: e, variant: s = "small" }) => {
1890
1893
  );
1891
1894
  }
1892
1895
  );
1893
- K.displayName = "Button";
1894
- c.createContext(void 0);
1895
- var _s = c.forwardRef(
1896
+ H.displayName = "Button";
1897
+ d.createContext(void 0);
1898
+ var Rs = d.forwardRef(
1896
1899
  (t, e) => {
1897
1900
  var s = t, { prefix: r, suffix: i, className: o } = s, a = A(s, ["prefix", "suffix", "className"]);
1898
1901
  return /* @__PURE__ */ n.jsxs("div", { className: "input__wrapper", children: [
@@ -1913,9 +1916,9 @@ var _s = c.forwardRef(
1913
1916
  ] });
1914
1917
  }
1915
1918
  );
1916
- _s.displayName = "TextField";
1917
- c.createContext(void 0);
1918
- var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__header__action", children: t }), Es = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__body", children: t }), Os = (t) => /* @__PURE__ */ n.jsx(
1919
+ Rs.displayName = "TextField";
1920
+ d.createContext(void 0);
1921
+ var Es = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__header__action", children: t }), Os = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__body", children: t }), Ss = (t) => /* @__PURE__ */ n.jsx(
1919
1922
  "svg",
1920
1923
  E(x({
1921
1924
  width: "24",
@@ -1935,7 +1938,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
1935
1938
  }
1936
1939
  )
1937
1940
  })
1938
- ), we = Os, Ss = (t) => /* @__PURE__ */ n.jsx(
1941
+ ), we = Ss, Ps = (t) => /* @__PURE__ */ n.jsx(
1939
1942
  "svg",
1940
1943
  E(x({
1941
1944
  width: "24",
@@ -1954,7 +1957,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
1954
1957
  }
1955
1958
  )
1956
1959
  })
1957
- ), Ps = Ss, As = (t) => /* @__PURE__ */ n.jsx(
1960
+ ), As = Ps, Ns = (t) => /* @__PURE__ */ n.jsx(
1958
1961
  "svg",
1959
1962
  E(x({
1960
1963
  width: "24",
@@ -1973,7 +1976,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
1973
1976
  }
1974
1977
  )
1975
1978
  })
1976
- ), Ns = As, Ms = (t) => /* @__PURE__ */ n.jsxs(
1979
+ ), Ms = Ns, Fs = (t) => /* @__PURE__ */ n.jsxs(
1977
1980
  "svg",
1978
1981
  E(x({
1979
1982
  width: "24",
@@ -2025,7 +2028,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2025
2028
  )
2026
2029
  ]
2027
2030
  })
2028
- ), Fs = Ms, ks = (t) => /* @__PURE__ */ n.jsx(
2031
+ ), ks = Fs, Ls = (t) => /* @__PURE__ */ n.jsx(
2029
2032
  "svg",
2030
2033
  E(x({
2031
2034
  width: "24",
@@ -2044,7 +2047,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2044
2047
  }
2045
2048
  )
2046
2049
  })
2047
- ), Ls = ks, Ds = (t) => /* @__PURE__ */ n.jsxs(
2050
+ ), Ds = Ls, Is = (t) => /* @__PURE__ */ n.jsxs(
2048
2051
  "svg",
2049
2052
  E(x({
2050
2053
  width: "24",
@@ -2076,7 +2079,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2076
2079
  )
2077
2080
  ]
2078
2081
  })
2079
- ), Is = Ds, Ts = (t) => /* @__PURE__ */ n.jsx(
2082
+ ), Ts = Is, Us = (t) => /* @__PURE__ */ n.jsx(
2080
2083
  "svg",
2081
2084
  E(x({
2082
2085
  width: "24",
@@ -2096,7 +2099,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2096
2099
  }
2097
2100
  )
2098
2101
  })
2099
- ), Us = Ts, Qs = (t) => /* @__PURE__ */ n.jsxs(
2102
+ ), Qs = Us, qs = (t) => /* @__PURE__ */ n.jsxs(
2100
2103
  "svg",
2101
2104
  E(x({
2102
2105
  width: "24",
@@ -2133,7 +2136,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2133
2136
  /* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsx("clipPath", { id: "clip0_19_444", children: /* @__PURE__ */ n.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2134
2137
  ]
2135
2138
  })
2136
- ), qs = Qs, Bs = (t) => /* @__PURE__ */ n.jsxs(
2139
+ ), Bs = qs, Ks = (t) => /* @__PURE__ */ n.jsxs(
2137
2140
  "svg",
2138
2141
  E(x({
2139
2142
  width: "24",
@@ -2167,7 +2170,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2167
2170
  /* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsx("clipPath", { id: "clip0_762_2934", children: /* @__PURE__ */ n.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
2168
2171
  ]
2169
2172
  })
2170
- ), Ks = Bs, Hs = (t) => /* @__PURE__ */ n.jsxs(
2173
+ ), Hs = Ks, Vs = (t) => /* @__PURE__ */ n.jsxs(
2171
2174
  "svg",
2172
2175
  E(x({
2173
2176
  width: "20",
@@ -2191,7 +2194,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2191
2194
  )
2192
2195
  ]
2193
2196
  })
2194
- ), Gs = Hs, Vs = (t) => {
2197
+ ), Gs = Vs, $s = (t) => {
2195
2198
  const e = (s) => `${s}${t.suffix ? `_${t.suffix}` : ""}`;
2196
2199
  return /* @__PURE__ */ n.jsxs(
2197
2200
  "svg",
@@ -2362,7 +2365,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2362
2365
  ]
2363
2366
  })
2364
2367
  );
2365
- }, _e = Vs, $s = (t) => /* @__PURE__ */ n.jsx(
2368
+ }, _e = $s, Zs = (t) => /* @__PURE__ */ n.jsx(
2366
2369
  "svg",
2367
2370
  E(x({
2368
2371
  fill: "none",
@@ -2382,7 +2385,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2382
2385
  }
2383
2386
  )
2384
2387
  })
2385
- ), Zs = $s, Ws = (t) => /* @__PURE__ */ n.jsxs(
2388
+ ), Ws = Zs, Ys = (t) => /* @__PURE__ */ n.jsxs(
2386
2389
  "svg",
2387
2390
  E(x({
2388
2391
  width: "24",
@@ -2409,7 +2412,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2409
2412
  /* @__PURE__ */ n.jsx("circle", { r: ".8", transform: "matrix(1 0 0 -1 20.8 20.7)", fill: "currentColor" })
2410
2413
  ]
2411
2414
  })
2412
- ), Ys = Ws, zs = (t) => {
2415
+ ), zs = Ys, Js = (t) => {
2413
2416
  var e = t, {
2414
2417
  variant: s,
2415
2418
  icon: r,
@@ -2435,7 +2438,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2435
2438
  u
2436
2439
  ),
2437
2440
  children: /* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__wrapper", children: [
2438
- /* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(Ks, {}) : r }),
2441
+ /* @__PURE__ */ n.jsx("i", { className: "card__empty-state__icon", "aria-hidden": !0, children: s === "error" ? /* @__PURE__ */ n.jsx(Hs, {}) : r }),
2439
2442
  /* @__PURE__ */ n.jsxs("div", { className: "card__empty-state__content", children: [
2440
2443
  /* @__PURE__ */ n.jsx("p", { className: "card__empty-state__title", children: o }),
2441
2444
  /* @__PURE__ */ n.jsx("p", { className: "card__empty-state__description", children: a })
@@ -2443,7 +2446,7 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2443
2446
  ] })
2444
2447
  })
2445
2448
  );
2446
- }, Js = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__footer", children: t }), Xs = (t) => {
2449
+ }, Xs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__footer", children: t }), er = (t) => {
2447
2450
  var e = t, {
2448
2451
  variant: s = "default",
2449
2452
  sticky: r,
@@ -2467,13 +2470,13 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2467
2470
  children: o
2468
2471
  })
2469
2472
  );
2470
- }, er = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__image", children: t }), tr = ({ children: t, className: e }) => /* @__PURE__ */ n.jsx("div", { className: S("card__body__item", e), children: t }), sr = ({ icon: t, children: e }) => /* @__PURE__ */ n.jsxs("div", { className: "card__header__title", children: [
2473
+ }, tr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__image", children: t }), sr = ({ children: t, className: e }) => /* @__PURE__ */ n.jsx("div", { className: S("card__body__item", e), children: t }), rr = ({ icon: t, children: e }) => /* @__PURE__ */ n.jsxs("div", { className: "card__header__title", children: [
2471
2474
  t && /* @__PURE__ */ n.jsx("span", { className: "card__header__title__icon", children: t }),
2472
2475
  e
2473
- ] }), ut = c.forwardRef(
2476
+ ] }), ut = d.forwardRef(
2474
2477
  (t, e) => {
2475
2478
  var s = t, { type: r, children: i, className: o, variant: a = "default", disabled: u = !1 } = s, l = A(s, ["type", "children", "className", "variant", "disabled"]);
2476
- return c.createElement(
2479
+ return d.createElement(
2477
2480
  r,
2478
2481
  x({
2479
2482
  className: S(
@@ -2490,32 +2493,32 @@ var Rs = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "card__h
2490
2493
  );
2491
2494
  ut.displayName = "Card";
2492
2495
  Object.assign(ut, {
2493
- Header: Xs,
2494
- Action: Rs,
2495
- Title: sr,
2496
- Body: Es,
2497
- Image: er,
2498
- Item: tr,
2499
- Footer: Js,
2500
- EmptyState: zs
2496
+ Header: er,
2497
+ Action: Es,
2498
+ Title: rr,
2499
+ Body: Os,
2500
+ Image: tr,
2501
+ Item: sr,
2502
+ Footer: Xs,
2503
+ EmptyState: Js
2501
2504
  });
2502
- var rr = (t) => {
2505
+ var nr = (t) => {
2503
2506
  var e = t, { className: s, children: r } = e, i = A(e, ["className", "children"]);
2504
2507
  return /* @__PURE__ */ n.jsx("div", E(x({ className: S("checkbox__content", s) }, i), { children: r }));
2505
- }, nr = (t) => {
2508
+ }, ir = (t) => {
2506
2509
  var e = t, { className: s, children: r } = e, i = A(e, ["className", "children"]);
2507
2510
  return /* @__PURE__ */ n.jsx("span", E(x({ className: S("checkbox__error", s) }, i), { children: r }));
2508
- }, ir = (t) => {
2511
+ }, or = (t) => {
2509
2512
  var e = t, { className: s, children: r } = e, i = A(e, ["className", "children"]);
2510
2513
  return /* @__PURE__ */ n.jsx("span", E(x({ className: S("checkbox__hint", s) }, i), { children: r }));
2511
- }, lt = c.createContext(void 0), or = ({ id: t, name: e, children: s }) => /* @__PURE__ */ n.jsx(lt.Provider, { value: { id: t, name: e }, children: s }), ar = () => {
2512
- const t = c.useContext(lt);
2514
+ }, lt = d.createContext(void 0), ar = ({ id: t, name: e, children: s }) => /* @__PURE__ */ n.jsx(lt.Provider, { value: { id: t, name: e }, children: s }), ur = () => {
2515
+ const t = d.useContext(lt);
2513
2516
  if (!t)
2514
2517
  throw new Error("Checkbox compound components can not be rendered outside of Checkbox");
2515
2518
  return t;
2516
- }, ur = (t) => {
2519
+ }, lr = (t) => {
2517
2520
  var e = t, { className: s, children: r } = e, i = A(e, ["className", "children"]);
2518
- const { id: o } = ar();
2521
+ const { id: o } = ur();
2519
2522
  return /* @__PURE__ */ n.jsx("label", E(x({ htmlFor: o, className: S("checkbox__label", s) }, i), { children: r }));
2520
2523
  }, U = (t) => {
2521
2524
  var e = t, {
@@ -2535,9 +2538,9 @@ var rr = (t) => {
2535
2538
  "className",
2536
2539
  "children"
2537
2540
  ]);
2538
- const d = c.useRef(null);
2539
- return c.useEffect(() => {
2540
- d.current && (i ? d.current.indeterminate = !0 : d.current.indeterminate = !1);
2541
+ const c = d.useRef(null);
2542
+ return d.useEffect(() => {
2543
+ c.current && (i ? c.current.indeterminate = !0 : c.current.indeterminate = !1);
2541
2544
  }, [i]), /* @__PURE__ */ n.jsxs(
2542
2545
  "div",
2543
2546
  {
@@ -2549,50 +2552,50 @@ var rr = (t) => {
2549
2552
  id: s,
2550
2553
  name: r,
2551
2554
  type: "checkbox",
2552
- ref: d,
2555
+ ref: c,
2553
2556
  className: S("checkbox__input", u)
2554
2557
  }, h)
2555
2558
  ),
2556
- i ? /* @__PURE__ */ n.jsx(Gs, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ n.jsx(Us, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2557
- /* @__PURE__ */ n.jsx(or, { id: s, name: r, children: l })
2559
+ i ? /* @__PURE__ */ n.jsx(Gs, { className: "checkbox__spinner", "aria-hidden": !0 }) : /* @__PURE__ */ n.jsx(Qs, { className: "checkbox__check", "aria-hidden": !0, strokeDasharray: "75" }),
2560
+ /* @__PURE__ */ n.jsx(ar, { id: s, name: r, children: l })
2558
2561
  ]
2559
2562
  }
2560
2563
  );
2561
2564
  };
2562
- U.Content = rr;
2563
- U.Label = ur;
2564
- U.Hint = ir;
2565
- U.Error = nr;
2566
- var lr = (t) => {
2565
+ U.Content = nr;
2566
+ U.Label = lr;
2567
+ U.Hint = or;
2568
+ U.Error = ir;
2569
+ var cr = (t) => {
2567
2570
  var e = t, { type: s = "div", className: r, children: i } = e, o = A(e, ["type", "className", "children"]);
2568
- return c.createElement(s, x({ className: S("dialog__body", r) }, o), i);
2569
- }, ye = () => document.body.style.removeProperty("overflow"), Ie = (t) => t.preventDefault(), cr = '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])', dr = (t) => {
2571
+ return d.createElement(s, x({ className: S("dialog__body", r) }, o), i);
2572
+ }, ye = () => document.body.style.removeProperty("overflow"), Ie = (t) => t.preventDefault(), dr = '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])', hr = (t) => {
2570
2573
  var e = t, { className: s, children: r, shouldAnimate: i = !0 } = e, o = A(e, ["className", "children", "shouldAnimate"]);
2571
2574
  const { ref: a, defaultOpen: u, isModal: l, onClose: h } = X();
2572
- return c.useEffect(() => {
2573
- const d = a == null ? void 0 : a.current;
2574
- if (d != null && d.open) {
2575
- const p = d.querySelectorAll(cr), m = p[0], f = p[p.length - 1], C = (g) => {
2576
- if (!(g.key === "Tab"))
2575
+ return d.useEffect(() => {
2576
+ const c = a == null ? void 0 : a.current;
2577
+ if (c != null && c.open) {
2578
+ const p = c.querySelectorAll(dr), m = p[0], f = p[p.length - 1], C = (b) => {
2579
+ if (!(b.key === "Tab"))
2577
2580
  return;
2578
- g.shiftKey ? document.activeElement === m && (f.focus(), g.preventDefault()) : document.activeElement === f && (m.focus(), g.preventDefault());
2581
+ b.shiftKey ? document.activeElement === m && (f.focus(), b.preventDefault()) : document.activeElement === f && (m.focus(), b.preventDefault());
2579
2582
  };
2580
- return document.body.style.overflow = "hidden", d.addEventListener("keydown", C), window.addEventListener("popstate", () => ye()), () => {
2581
- d.removeEventListener("keydown", C), window.removeEventListener("popstate", () => ye());
2583
+ return document.body.style.overflow = "hidden", c.addEventListener("keydown", C), window.addEventListener("popstate", () => ye()), () => {
2584
+ c.removeEventListener("keydown", C), window.removeEventListener("popstate", () => ye());
2582
2585
  };
2583
2586
  }
2584
- }, [a]), c.useEffect(() => {
2585
- const d = a == null ? void 0 : a.current;
2586
- if (!d)
2587
+ }, [a]), d.useEffect(() => {
2588
+ const c = a == null ? void 0 : a.current;
2589
+ if (!c)
2587
2590
  return;
2588
- if (u && (d.removeAttribute("open"), d.showModal(), d.focus()), l)
2589
- return d.addEventListener("cancel", Ie), () => d.removeEventListener("cancel", Ie);
2591
+ if (u && (c.removeAttribute("open"), c.showModal(), c.focus()), l)
2592
+ return c.addEventListener("cancel", Ie), () => c.removeEventListener("cancel", Ie);
2590
2593
  const p = ({ clientX: m, clientY: f }) => {
2591
- const { top: C, right: g, bottom: v, left: y } = d.getBoundingClientRect(), _ = 0 < f && 0 < m, j = C < f && f < v, O = y < m && m < g;
2594
+ const { top: C, right: b, bottom: v, left: y } = c.getBoundingClientRect(), _ = 0 < f && 0 < m, j = C < f && f < v, O = y < m && m < b;
2592
2595
  _ && !(j && O) && h();
2593
2596
  };
2594
- return d.addEventListener("cancel", h), d.addEventListener("mousedown", p), () => {
2595
- d.removeEventListener("cancel", h), d.removeEventListener("mousedown", p);
2597
+ return c.addEventListener("cancel", h), c.addEventListener("mousedown", p), () => {
2598
+ c.removeEventListener("cancel", h), c.removeEventListener("mousedown", p);
2596
2599
  };
2597
2600
  }, [a, l, h, u]), /* @__PURE__ */ n.jsx(
2598
2601
  "dialog",
@@ -2606,45 +2609,45 @@ var lr = (t) => {
2606
2609
  children: r
2607
2610
  })
2608
2611
  );
2609
- }, ct = c.createContext(void 0), hr = ({ defaultOpen: t, onClose: e, isModal: s, children: r }) => {
2610
- const i = c.useRef(null), o = c.useRef(e), a = c.useCallback(() => {
2612
+ }, ct = d.createContext(void 0), fr = ({ defaultOpen: t, onClose: e, isModal: s, children: r }) => {
2613
+ const i = d.useRef(null), o = d.useRef(e), a = d.useCallback(() => {
2611
2614
  var u;
2612
2615
  ye(), (u = i.current) == null || u.close(), o.current && (o == null || o.current());
2613
2616
  }, [i]);
2614
2617
  return /* @__PURE__ */ n.jsx(ct.Provider, { value: { ref: i, defaultOpen: t, isModal: s, onClose: a }, children: r });
2615
2618
  }, X = () => {
2616
- const t = c.useContext(ct);
2619
+ const t = d.useContext(ct);
2617
2620
  if (!t)
2618
2621
  throw new Error("Dialog compound components can not be rendered outside of Dialog");
2619
2622
  return t;
2620
- }, fr = (t) => {
2623
+ }, pr = (t) => {
2621
2624
  var e = t, { children: s } = e, r = A(e, ["children"]);
2622
2625
  const { onClose: i } = X();
2623
- return /* @__PURE__ */ n.jsx(K, E(x({ onClick: i }, r), { children: s }));
2624
- }, dt = c.forwardRef((t, e) => {
2626
+ return /* @__PURE__ */ n.jsx(H, E(x({ onClick: i }, r), { children: s }));
2627
+ }, dt = d.forwardRef((t, e) => {
2625
2628
  var s = t, { className: r } = s, i = A(s, ["className"]);
2626
2629
  const { onClose: o } = X();
2627
2630
  return /* @__PURE__ */ n.jsx(
2628
- K,
2631
+ H,
2629
2632
  x({
2630
2633
  type: "submit",
2631
2634
  ref: e,
2632
2635
  formMethod: "dialog",
2633
2636
  onClick: o,
2634
- iconLeft: /* @__PURE__ */ n.jsx(Ps, {}),
2637
+ iconLeft: /* @__PURE__ */ n.jsx(As, {}),
2635
2638
  variant: "icon--secondary",
2636
2639
  className: S("dialog__close button--icon", r)
2637
2640
  }, i)
2638
2641
  );
2639
2642
  });
2640
2643
  dt.displayName = "Close";
2641
- var pr = (t) => {
2644
+ var vr = (t) => {
2642
2645
  var e = t, { className: s, children: r } = e, i = A(e, ["className", "children"]);
2643
2646
  return /* @__PURE__ */ n.jsx("div", E(x({ className: S("dialog__footer", s) }, i), { children: r }));
2644
- }, vr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "dialog__header", children: t }), mr = (t) => {
2647
+ }, mr = ({ children: t }) => /* @__PURE__ */ n.jsx("div", { className: "dialog__header", children: t }), yr = (t) => {
2645
2648
  var e = t, { icon: s, children: r, className: i } = e, o = A(e, ["icon", "children", "className"]);
2646
- const { ref: a } = X(), u = c.useRef(null);
2647
- return c.useEffect(() => {
2649
+ const { ref: a } = X(), u = d.useRef(null);
2650
+ return d.useEffect(() => {
2648
2651
  a != null && a.current && a.current.focus();
2649
2652
  }, [a]), /* @__PURE__ */ n.jsxs(
2650
2653
  "div",
@@ -2659,23 +2662,23 @@ var pr = (t) => {
2659
2662
  ]
2660
2663
  })
2661
2664
  );
2662
- }, yr = (t) => {
2665
+ }, Cr = (t) => {
2663
2666
  var e = t, { children: s } = e, r = A(e, ["children"]);
2664
2667
  const { ref: i } = X();
2665
- return /* @__PURE__ */ n.jsx(K, E(x({ onClick: () => {
2668
+ return /* @__PURE__ */ n.jsx(H, E(x({ onClick: () => {
2666
2669
  var o;
2667
2670
  return (o = i == null ? void 0 : i.current) == null ? void 0 : o.showModal();
2668
2671
  } }, r), { children: s }));
2669
- }, M = ({ defaultOpen: t, isModal: e, children: s, onClose: r }) => /* @__PURE__ */ n.jsx(hr, { defaultOpen: !!t, isModal: e, onClose: r, children: s });
2670
- M.Trigger = yr;
2671
- M.Root = dr;
2672
- M.Title = mr;
2673
- M.Header = vr;
2674
- M.Body = lr;
2675
- M.Footer = pr;
2676
- M.Button = fr;
2672
+ }, M = ({ defaultOpen: t, isModal: e, children: s, onClose: r }) => /* @__PURE__ */ n.jsx(fr, { defaultOpen: !!t, isModal: e, onClose: r, children: s });
2673
+ M.Trigger = Cr;
2674
+ M.Root = hr;
2675
+ M.Title = yr;
2676
+ M.Header = mr;
2677
+ M.Body = cr;
2678
+ M.Footer = vr;
2679
+ M.Button = pr;
2677
2680
  M.Close = dt;
2678
- var ht = c.createContext(void 0), Cr = ({
2681
+ var ht = d.createContext(void 0), xr = ({
2679
2682
  id: t,
2680
2683
  position: e,
2681
2684
  isOpen: s,
@@ -2703,11 +2706,11 @@ var ht = c.createContext(void 0), Cr = ({
2703
2706
  children: h
2704
2707
  }
2705
2708
  ), ft = () => {
2706
- const t = c.useContext(ht);
2709
+ const t = d.useContext(ht);
2707
2710
  if (t === void 0)
2708
2711
  throw new Error("useMenu must be used within a MenuProvider");
2709
2712
  return t;
2710
- }, xr = ({ children: t }) => {
2713
+ }, gr = ({ children: t }) => {
2711
2714
  const {
2712
2715
  id: e,
2713
2716
  position: s,
@@ -2718,7 +2721,7 @@ var ht = c.createContext(void 0), Cr = ({
2718
2721
  clearActiveItemIndex: u,
2719
2722
  triggerRef: l,
2720
2723
  contentRef: h
2721
- } = ft(), d = (p) => {
2724
+ } = ft(), c = (p) => {
2722
2725
  var m;
2723
2726
  if (!r)
2724
2727
  return;
@@ -2748,7 +2751,7 @@ var ht = c.createContext(void 0), Cr = ({
2748
2751
  id: `${e}-content`,
2749
2752
  ref: h,
2750
2753
  className: S("menu__list", `menu__list--${s}`, r && "menu__list--active"),
2751
- onKeyDown: d,
2754
+ onKeyDown: c,
2752
2755
  children: t
2753
2756
  }
2754
2757
  )
@@ -2758,15 +2761,15 @@ var ht = c.createContext(void 0), Cr = ({
2758
2761
  return /* @__PURE__ */ n.jsx("li", E(x({}, i), { className: S("menu__list-item", r), children: s }));
2759
2762
  }, pt = ({ children: t, className: e }) => {
2760
2763
  const { id: s, isOpen: r, setIsOpen: i, clearActiveItemIndex: o, setActiveItemIndex: a, triggerRef: u } = ft(), l = () => {
2761
- o(), i((d) => !d);
2762
- }, h = (d) => {
2764
+ o(), i((c) => !c);
2765
+ }, h = (c) => {
2763
2766
  if (r) {
2764
- if (d.key === "Escape")
2767
+ if (c.key === "Escape")
2765
2768
  return o(), i(!1);
2766
- d.key === "ArrowDown" && (d.preventDefault(), a(0));
2769
+ c.key === "ArrowDown" && (c.preventDefault(), a(0));
2767
2770
  }
2768
2771
  };
2769
- return c.cloneElement(t, {
2772
+ return d.cloneElement(t, {
2770
2773
  id: `${s}-trigger`,
2771
2774
  ref: u,
2772
2775
  className: S("menu__trigger", e),
@@ -2779,8 +2782,8 @@ var ht = c.createContext(void 0), Cr = ({
2779
2782
  pt.displayName = "Trigger";
2780
2783
  var L = (t) => {
2781
2784
  var e = t, { type: s, id: r, position: i = "right", children: o, className: a } = e, u = A(e, ["type", "id", "position", "children", "className"]);
2782
- const l = c.useRef(null), h = c.useRef(null), d = c.useRef(null), [p, m] = c.useState(!1), [f, C] = c.useState(), [g, v] = c.useState(f);
2783
- f !== g && f !== void 0 && (d.current.children[f].firstChild.focus(), v(f));
2785
+ const l = d.useRef(null), h = d.useRef(null), c = d.useRef(null), [p, m] = d.useState(!1), [f, C] = d.useState(), [b, v] = d.useState(f);
2786
+ f !== b && f !== void 0 && (c.current.children[f].firstChild.focus(), v(f));
2784
2787
  const y = () => {
2785
2788
  C(void 0), v(void 0);
2786
2789
  }, _ = (j) => {
@@ -2788,7 +2791,7 @@ var L = (t) => {
2788
2791
  ((O = l.current) == null ? void 0 : O.contains(j.relatedTarget)) || (y(), m(!1));
2789
2792
  };
2790
2793
  return /* @__PURE__ */ n.jsx(
2791
- Cr,
2794
+ xr,
2792
2795
  {
2793
2796
  id: r,
2794
2797
  position: i,
@@ -2798,8 +2801,8 @@ var L = (t) => {
2798
2801
  setActiveItemIndex: C,
2799
2802
  clearActiveItemIndex: y,
2800
2803
  triggerRef: h,
2801
- contentRef: d,
2802
- children: c.createElement(
2804
+ contentRef: c,
2805
+ children: d.createElement(
2803
2806
  s,
2804
2807
  E(x({}, u), {
2805
2808
  id: r,
@@ -2813,17 +2816,17 @@ var L = (t) => {
2813
2816
  );
2814
2817
  };
2815
2818
  L.Trigger = pt;
2816
- L.Content = xr;
2819
+ L.Content = gr;
2817
2820
  L.Item = br;
2818
- c.createContext(void 0);
2819
- var gr = (/* @__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");
2820
- [...new Set(gr.values())].map((t) => ({
2821
+ d.createContext(void 0);
2822
+ var jr = (/* @__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");
2823
+ [...new Set(jr.values())].map((t) => ({
2821
2824
  label: `+${t}`,
2822
2825
  value: t
2823
2826
  }));
2824
- c.createContext(void 0);
2825
- c.createContext(void 0);
2826
- const Z = ({
2827
+ d.createContext(void 0);
2828
+ d.createContext(void 0);
2829
+ const W = ({
2827
2830
  className: t,
2828
2831
  label: e,
2829
2832
  mobileUrl: s,
@@ -2838,17 +2841,17 @@ const Z = ({
2838
2841
  i,
2839
2842
  e
2840
2843
  ] })
2841
- ] }), vt = c.createContext(void 0), jr = ({ position: t, authenticationStatus: e, profile: s, children: r }) => /* @__PURE__ */ n.jsx(vt.Provider, { value: { position: t, authenticationStatus: e, profile: s }, children: r }), Re = () => {
2842
- const t = c.useContext(vt);
2844
+ ] }), vt = d.createContext(void 0), wr = ({ position: t, authenticationStatus: e, profile: s, children: r }) => /* @__PURE__ */ n.jsx(vt.Provider, { value: { position: t, authenticationStatus: e, profile: s }, children: r }), Re = () => {
2845
+ const t = d.useContext(vt);
2843
2846
  if (!t)
2844
2847
  throw new Error("Authentication context can not be rendered outside of Authentication");
2845
2848
  return t;
2846
- }, mt = c.createContext(void 0), wr = ({ apiUrl: t, redirectUrl: e, children: s }) => /* @__PURE__ */ n.jsx(mt.Provider, { value: { apiUrl: t, redirectUrl: e }, children: s }), yt = () => {
2847
- const t = c.useContext(mt);
2849
+ }, mt = d.createContext(void 0), _r = ({ apiUrl: t, redirectUrl: e, children: s }) => /* @__PURE__ */ n.jsx(mt.Provider, { value: { apiUrl: t, redirectUrl: e }, children: s }), yt = () => {
2850
+ const t = d.useContext(mt);
2848
2851
  if (!t)
2849
2852
  throw new Error("Api context can not be rendered outside of Api");
2850
2853
  return t;
2851
- }, H = () => {
2854
+ }, V = () => {
2852
2855
  const { apiUrl: t, redirectUrl: e } = yt(), s = wt({ apiUrl: t, redirectUrl: e }), r = `${t}/logout?redirectUrl=${e}`, i = `${t}/user/profile`, o = `${t}/gdpr/tc/check`, a = `${t}/gdpr/tc`;
2853
2856
  return {
2854
2857
  loginUrl: s,
@@ -2857,8 +2860,8 @@ const Z = ({
2857
2860
  getTermsAndConditionsEndpoint: o,
2858
2861
  postTermsAndConditionsEndpoint: a
2859
2862
  };
2860
- }, _r = () => {
2861
- const { t } = z(), e = Qe(), { position: s, profile: r } = Re(), { logoutUrl: i } = H(), o = (r == null ? void 0 : r.firstName) || "", a = (r == null ? void 0 : r.lastName) || "";
2863
+ }, Rr = () => {
2864
+ const { t } = Q(), e = Qe(), { position: s, profile: r } = Re(), { logoutUrl: i } = V(), o = (r == null ? void 0 : r.firstName) ?? "", a = (r == null ? void 0 : r.lastName) ?? "";
2862
2865
  return /* @__PURE__ */ n.jsxs(L, { type: "nav", id: "xtra-menu", position: s, children: [
2863
2866
  /* @__PURE__ */ n.jsx(
2864
2867
  L.Trigger,
@@ -2870,7 +2873,7 @@ const Z = ({
2870
2873
  "button--authentication--authenticated"
2871
2874
  ),
2872
2875
  children: /* @__PURE__ */ n.jsxs("button", { children: [
2873
- /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(ws, { variant: "small", firstName: o, lastName: a }) }),
2876
+ /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(_s, { variant: "small", firstName: o, lastName: a }) }),
2874
2877
  /* @__PURE__ */ n.jsx("span", { className: "button__label", children: o }),
2875
2878
  /* @__PURE__ */ n.jsx("div", { className: "button__icon button__icon-right", children: /* @__PURE__ */ n.jsx(we, {}) })
2876
2879
  ] })
@@ -2878,48 +2881,48 @@ const Z = ({
2878
2881
  ),
2879
2882
  /* @__PURE__ */ n.jsxs(L.Content, { children: [
2880
2883
  /* @__PURE__ */ n.jsx(
2881
- Z,
2884
+ W,
2882
2885
  {
2883
2886
  className: "manage-profile",
2884
2887
  mobileUrl: `${e}/manage-profile`,
2885
2888
  desktopUrl: `${e}/manage-profile/personal-data`,
2886
- icon: /* @__PURE__ */ n.jsx(Is, {}),
2889
+ icon: /* @__PURE__ */ n.jsx(Ts, {}),
2887
2890
  label: t("manageProfile")
2888
2891
  }
2889
2892
  ),
2890
2893
  /* @__PURE__ */ n.jsx(
2891
- Z,
2894
+ W,
2892
2895
  {
2893
2896
  className: "payment",
2894
2897
  mobileUrl: `${e}/payment`,
2895
2898
  desktopUrl: `${e}/payment/pay-with-xtra`,
2896
- icon: /* @__PURE__ */ n.jsx(Zs, {}),
2899
+ icon: /* @__PURE__ */ n.jsx(Ws, {}),
2897
2900
  label: t("payment")
2898
2901
  }
2899
2902
  ),
2900
2903
  /* @__PURE__ */ n.jsx(
2901
- Z,
2904
+ W,
2902
2905
  {
2903
2906
  mobileUrl: `${e}/identifiers`,
2904
- icon: /* @__PURE__ */ n.jsx(Ys, {}),
2907
+ icon: /* @__PURE__ */ n.jsx(zs, {}),
2905
2908
  label: t("qrCode")
2906
2909
  }
2907
2910
  ),
2908
2911
  /* @__PURE__ */ n.jsx(
2909
- Z,
2912
+ W,
2910
2913
  {
2911
2914
  className: "manage-privacy",
2912
2915
  mobileUrl: `${e}/manage-privacy`,
2913
2916
  desktopUrl: `${e}/manage-privacy/permissions`,
2914
- icon: /* @__PURE__ */ n.jsx(qs, {}),
2917
+ icon: /* @__PURE__ */ n.jsx(Bs, {}),
2915
2918
  label: t("privacy")
2916
2919
  }
2917
2920
  ),
2918
- /* @__PURE__ */ n.jsx(Z, { mobileUrl: i, icon: /* @__PURE__ */ n.jsx(Ls, {}), label: t("logout") })
2921
+ /* @__PURE__ */ n.jsx(W, { mobileUrl: i, icon: /* @__PURE__ */ n.jsx(Ds, {}), label: t("logout") })
2919
2922
  ] })
2920
2923
  ] });
2921
- }, Rr = () => {
2922
- const { t } = z();
2924
+ }, Er = () => {
2925
+ const { t } = Q();
2923
2926
  return /* @__PURE__ */ n.jsxs("button", { className: S("button", "button--neutral", "button--authentication"), children: [
2924
2927
  /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx("i", { className: "spinner" }) }),
2925
2928
  /* @__PURE__ */ n.jsxs("span", { className: "button__label", children: [
@@ -2927,8 +2930,8 @@ const Z = ({
2927
2930
  "..."
2928
2931
  ] })
2929
2932
  ] });
2930
- }, Er = ({ className: t }) => {
2931
- const { t: e } = z(), { loginUrl: s } = H();
2933
+ }, Or = ({ className: t }) => {
2934
+ const { t: e } = Q(), { loginUrl: s } = V();
2932
2935
  return /* @__PURE__ */ n.jsxs(
2933
2936
  "a",
2934
2937
  {
@@ -2948,8 +2951,8 @@ const Z = ({
2948
2951
  }
2949
2952
  );
2950
2953
  };
2951
- const Or = () => {
2952
- const { t } = z(), { loginUrl: e } = H(), s = Qe(), { position: r } = Re();
2954
+ const Sr = () => {
2955
+ const { t } = Q(), { loginUrl: e } = V(), s = Qe(), { position: r } = Re();
2953
2956
  return /* @__PURE__ */ n.jsxs(L, { type: "nav", id: "xtra-menu", position: r, className: "menu--unauthenticated", children: [
2954
2957
  /* @__PURE__ */ n.jsx(L.Trigger, { className: S("button", "button--neutral", "button--authentication"), children: /* @__PURE__ */ n.jsxs("button", { children: [
2955
2958
  /* @__PURE__ */ n.jsx("div", { className: "button__icon", children: /* @__PURE__ */ n.jsx(_e, { width: 24, height: 24, suffix: "mobile" }) }),
@@ -2957,23 +2960,23 @@ const Or = () => {
2957
2960
  ] }) }),
2958
2961
  /* @__PURE__ */ n.jsxs(L.Content, { children: [
2959
2962
  /* @__PURE__ */ n.jsx(L.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: e, className: "button button--with-icon", children: [
2960
- /* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ns, {}) }),
2963
+ /* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Ms, {}) }),
2961
2964
  /* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("login") })
2962
2965
  ] }) }),
2963
2966
  /* @__PURE__ */ n.jsx(L.Item, { children: /* @__PURE__ */ n.jsxs("a", { href: `${s}/onboarding/register`, className: "button button--with-icon", children: [
2964
- /* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(Fs, {}) }),
2967
+ /* @__PURE__ */ n.jsx("span", { className: "button__icon", children: /* @__PURE__ */ n.jsx(ks, {}) }),
2965
2968
  /* @__PURE__ */ n.jsx("span", { className: "button__label", children: t("register") })
2966
2969
  ] }) })
2967
2970
  ] })
2968
2971
  ] });
2969
2972
  };
2970
2973
  var D = /* @__PURE__ */ ((t) => (t.Authenticated = "authenticated", t.NotAuthenticated = "notAuthenticated", t.Pending = "pending", t))(D || {});
2971
- const Sr = () => {
2974
+ const Pr = () => {
2972
2975
  const { authenticationStatus: t } = Re();
2973
2976
  return t === D.NotAuthenticated ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2974
- /* @__PURE__ */ n.jsx(Er, {}),
2975
- /* @__PURE__ */ n.jsx(Or, {})
2976
- ] }) : t === D.Pending ? /* @__PURE__ */ n.jsx(Rr, {}) : /* @__PURE__ */ n.jsx(_r, {});
2977
+ /* @__PURE__ */ n.jsx(Or, {}),
2978
+ /* @__PURE__ */ n.jsx(Sr, {})
2979
+ ] }) : t === D.Pending ? /* @__PURE__ */ n.jsx(Er, {}) : /* @__PURE__ */ n.jsx(Rr, {});
2977
2980
  };
2978
2981
  /*! js-cookie v3.0.5 | MIT */
2979
2982
  function ee(t) {
@@ -2984,7 +2987,7 @@ function ee(t) {
2984
2987
  }
2985
2988
  return t;
2986
2989
  }
2987
- var Pr = {
2990
+ var Ar = {
2988
2991
  read: function(t) {
2989
2992
  return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2990
2993
  },
@@ -3010,8 +3013,8 @@ function Ce(t, e) {
3010
3013
  for (var o = document.cookie ? document.cookie.split("; ") : [], a = {}, u = 0; u < o.length; u++) {
3011
3014
  var l = o[u].split("="), h = l.slice(1).join("=");
3012
3015
  try {
3013
- var d = decodeURIComponent(l[0]);
3014
- if (a[d] = t.read(h, d), i === d)
3016
+ var c = decodeURIComponent(l[0]);
3017
+ if (a[c] = t.read(h, c), i === c)
3015
3018
  break;
3016
3019
  } catch {
3017
3020
  }
@@ -3045,38 +3048,39 @@ function Ce(t, e) {
3045
3048
  }
3046
3049
  );
3047
3050
  }
3048
- var xe = Ce(Pr, { path: "/" });
3051
+ var xe = Ce(Ar, { path: "/" });
3049
3052
  class Te extends Error {
3050
3053
  constructor(e) {
3051
3054
  super(e), this.name = "UnauthorizedError";
3052
3055
  }
3053
3056
  }
3054
- const Ar = () => {
3055
- const { profileEndpoint: t } = H();
3057
+ const Nr = () => {
3058
+ const { i18n: t } = Q(), { profileEndpoint: e } = V();
3056
3059
  return nt({
3057
3060
  // @ts-expect-error queryKey is the right type
3058
3061
  queryKey: ["profile"],
3059
3062
  queryFn: async () => {
3060
- const s = await fetch(t, {
3063
+ const r = await fetch(e, {
3061
3064
  credentials: "include",
3062
- mode: "cors"
3065
+ mode: "cors",
3066
+ headers: { "Accept-Language": t.language }
3063
3067
  });
3064
- if (!s.ok)
3065
- throw s.status === 401 ? new Te(`${s.status} - ${s.statusText}`) : new Error("Network response was not ok");
3066
- return await s.json();
3068
+ if (!r.ok)
3069
+ throw r.status === 401 ? new Te(`${r.status} - ${r.statusText}`) : new Error("Network response was not ok");
3070
+ return await r.json();
3067
3071
  },
3068
- retry: (s, r) => r instanceof Te ? !1 : 3,
3072
+ retry: (r, i) => i instanceof Te ? !1 : 3,
3069
3073
  refetchOnWindowFocus: !1
3070
3074
  });
3071
3075
  }, Ct = () => {
3072
3076
  var u, l;
3073
- const t = xe.get("profile"), e = !!t, [s, r] = c.useState(
3077
+ const t = xe.get("profile"), e = !!t, [s, r] = d.useState(
3074
3078
  e ? D.Authenticated : D.Pending
3075
- ), [i, o] = c.useState(
3079
+ ), [i, o] = d.useState(
3076
3080
  e ? JSON.parse(t) : void 0
3077
- ), a = Ar();
3078
- return c.useEffect(() => {
3079
- if (a.isLoading && r(D.Pending), a.isError && e && (xe.remove("profile"), r(D.NotAuthenticated)), a.isError && !e && r(D.NotAuthenticated), a.isSuccess) {
3081
+ ), a = Nr();
3082
+ return d.useEffect(() => {
3083
+ if (a.isError && e && (xe.remove("profile"), r(D.NotAuthenticated)), a.isError && !e && r(D.NotAuthenticated), a.isSuccess) {
3080
3084
  r(D.Authenticated);
3081
3085
  const h = {
3082
3086
  firstName: a.data.firstName,
@@ -3094,30 +3098,30 @@ const Ar = () => {
3094
3098
  a.isLoading,
3095
3099
  a.isSuccess
3096
3100
  ]), { authenticationStatus: s, profile: i };
3097
- }, Nr = ({ position: t }) => {
3101
+ }, Mr = ({ position: t }) => {
3098
3102
  const { authenticationStatus: e, profile: s } = Ct();
3099
- return /* @__PURE__ */ n.jsx(jr, { authenticationStatus: e, position: t, profile: s, children: /* @__PURE__ */ n.jsx(Sr, {}) });
3103
+ return /* @__PURE__ */ n.jsx(wr, { authenticationStatus: e, position: t, profile: s, children: /* @__PURE__ */ n.jsx(Pr, {}) });
3100
3104
  };
3101
- var Mr = Object.defineProperty, Fr = Object.defineProperties, kr = Object.getOwnPropertyDescriptors, ae = Object.getOwnPropertySymbols, xt = Object.prototype.hasOwnProperty, bt = Object.prototype.propertyIsEnumerable, Ue = (t, e, s) => e in t ? Mr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, Q = (t, e) => {
3105
+ var Fr = Object.defineProperty, kr = Object.defineProperties, Lr = Object.getOwnPropertyDescriptors, ae = Object.getOwnPropertySymbols, xt = Object.prototype.hasOwnProperty, gt = Object.prototype.propertyIsEnumerable, Ue = (t, e, s) => e in t ? Fr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, q = (t, e) => {
3102
3106
  for (var s in e || (e = {}))
3103
3107
  xt.call(e, s) && Ue(t, s, e[s]);
3104
3108
  if (ae)
3105
3109
  for (var s of ae(e))
3106
- bt.call(e, s) && Ue(t, s, e[s]);
3110
+ gt.call(e, s) && Ue(t, s, e[s]);
3107
3111
  return t;
3108
- }, G = (t, e) => Fr(t, kr(e)), V = (t, e) => {
3112
+ }, G = (t, e) => kr(t, Lr(e)), $ = (t, e) => {
3109
3113
  var s = {};
3110
3114
  for (var r in t)
3111
3115
  xt.call(t, r) && e.indexOf(r) < 0 && (s[r] = t[r]);
3112
3116
  if (t != null && ae)
3113
3117
  for (var r of ae(t))
3114
- e.indexOf(r) < 0 && bt.call(t, r) && (s[r] = t[r]);
3118
+ e.indexOf(r) < 0 && gt.call(t, r) && (s[r] = t[r]);
3115
3119
  return s;
3116
- }, Lr = c.forwardRef((t, e) => {
3117
- const s = t, { isAuthenticated: r, className: i } = s, o = V(s, ["isAuthenticated", "className"]);
3120
+ }, Dr = d.forwardRef((t, e) => {
3121
+ const s = t, { isAuthenticated: r, className: i } = s, o = $(s, ["isAuthenticated", "className"]);
3118
3122
  return /* @__PURE__ */ n.jsx(
3119
- K,
3120
- Q({
3123
+ H,
3124
+ q({
3121
3125
  type: "button",
3122
3126
  ref: e,
3123
3127
  className: S(
@@ -3129,33 +3133,33 @@ var Mr = Object.defineProperty, Fr = Object.defineProperties, kr = Object.getOwn
3129
3133
  }, o)
3130
3134
  );
3131
3135
  });
3132
- Lr.displayName = "AuthenticationButton";
3133
- var Dr = (t) => {
3136
+ Dr.displayName = "AuthenticationButton";
3137
+ var Ir = (t) => {
3134
3138
  var e = t, {
3135
3139
  children: s
3136
- } = e, r = V(e, [
3140
+ } = e, r = $(e, [
3137
3141
  "children"
3138
3142
  ]);
3139
- return /* @__PURE__ */ n.jsx(U.Label, G(Q({ className: "form--tc__label" }, r), { children: s }));
3140
- }, gt = c.forwardRef(
3143
+ return /* @__PURE__ */ n.jsx(U.Label, G(q({ className: "form--tc__label" }, r), { children: s }));
3144
+ }, bt = d.forwardRef(
3141
3145
  (t, e) => {
3142
- var s = t, { children: r } = s, i = V(s, ["children"]);
3143
- return /* @__PURE__ */ n.jsx("form", G(Q({ className: "form--tc", ref: e }, i), { children: r }));
3146
+ var s = t, { children: r } = s, i = $(s, ["children"]);
3147
+ return /* @__PURE__ */ n.jsx("form", G(q({ className: "form--tc", ref: e }, i), { children: r }));
3144
3148
  }
3145
3149
  );
3146
- gt.displayName = "TermsAndConditionsForm";
3147
- var Ir = (t) => {
3150
+ bt.displayName = "TermsAndConditionsForm";
3151
+ var Tr = (t) => {
3148
3152
  var e = t, {
3149
3153
  children: s
3150
- } = e, r = V(e, [
3154
+ } = e, r = $(e, [
3151
3155
  "children"
3152
3156
  ]);
3153
- return /* @__PURE__ */ n.jsx("p", G(Q({ className: "form--tc__description" }, r), { children: s }));
3154
- }, Tr = (t) => {
3155
- var e = t, { children: s } = e, r = V(e, ["children"]);
3157
+ return /* @__PURE__ */ n.jsx("p", G(q({ className: "form--tc__description" }, r), { children: s }));
3158
+ }, Ur = (t) => {
3159
+ var e = t, { children: s } = e, r = $(e, ["children"]);
3156
3160
  return /* @__PURE__ */ n.jsx(
3157
3161
  "a",
3158
- G(Q({
3162
+ G(q({
3159
3163
  className: "form--tc__link",
3160
3164
  target: "_blank",
3161
3165
  rel: "noreferrer",
@@ -3165,17 +3169,17 @@ var Ir = (t) => {
3165
3169
  children: s
3166
3170
  })
3167
3171
  );
3168
- }, Ur = ({ children: t }) => /* @__PURE__ */ n.jsx("h1", { className: "form--tc__title", children: t }), Qr = c.forwardRef(
3169
- (t, e) => /* @__PURE__ */ n.jsx(M.Close, G(Q({ className: "hidden" }, t), { ref: e }))
3172
+ }, Qr = ({ children: t }) => /* @__PURE__ */ n.jsx("h1", { className: "form--tc__title", children: t }), qr = d.forwardRef(
3173
+ (t, e) => /* @__PURE__ */ n.jsx(M.Close, G(q({ className: "hidden" }, t), { ref: e }))
3170
3174
  );
3171
- Qr.displayName = "TermsAndConditionsClose";
3172
- var qr = (t) => {
3173
- var e = t, { children: s } = e, r = V(e, ["children"]);
3174
- return /* @__PURE__ */ n.jsx("span", G(Q({ className: "form--tc__error", role: "alert" }, r), { children: s }));
3175
+ qr.displayName = "TermsAndConditionsClose";
3176
+ var Br = (t) => {
3177
+ var e = t, { children: s } = e, r = $(e, ["children"]);
3178
+ return /* @__PURE__ */ n.jsx("span", G(q({ className: "form--tc__error", role: "alert" }, r), { children: s }));
3175
3179
  };
3176
- const Br = () => {
3177
- const { postTermsAndConditionsEndpoint: t } = H(), e = new We();
3178
- return hs({
3180
+ const Kr = () => {
3181
+ const { postTermsAndConditionsEndpoint: t } = V(), e = new We();
3182
+ return fs({
3179
3183
  mutationFn: async (r) => {
3180
3184
  const i = await fetch(t, {
3181
3185
  method: "post",
@@ -3191,30 +3195,31 @@ const Br = () => {
3191
3195
  await e.invalidateQueries({ queryKey: ["gdpr"] });
3192
3196
  }
3193
3197
  });
3194
- }, Kr = () => {
3195
- const { getTermsAndConditionsEndpoint: t } = H(), { authenticationStatus: e } = Ct(), s = xe.get("hasAcceptedLatestTermsAndConditions"), r = [], i = s === "true", o = e === D.Authenticated;
3198
+ }, Hr = () => {
3199
+ const { i18n: t } = Q(), { getTermsAndConditionsEndpoint: e } = V(), { authenticationStatus: s } = Ct(), r = xe.get("hasAcceptedLatestTermsAndConditions"), i = [], o = r === "true", a = s === D.Authenticated;
3196
3200
  return nt({
3197
3201
  queryKey: ["gdpr"],
3198
3202
  queryFn: async () => {
3199
- const u = await fetch(t, {
3203
+ const l = await fetch(e, {
3200
3204
  credentials: "include",
3201
- mode: "cors"
3205
+ mode: "cors",
3206
+ headers: { "Accept-Language": t.language }
3202
3207
  });
3203
- if (!u.ok)
3208
+ if (!l.ok)
3204
3209
  throw new Error("Network response was not ok");
3205
- return await u.json();
3210
+ return await l.json();
3206
3211
  },
3207
- enabled: o && !i,
3208
- initialData: r
3212
+ enabled: a && !o,
3213
+ initialData: i
3209
3214
  });
3210
- }, Hr = ({ redirectUrl: t }) => {
3211
- const { t: e } = z(), { apiUrl: s } = yt(), r = c.useRef(null), [i, o] = c.useState(0), [a, u] = c.useState({}), { mutate: l, isError: h } = Br(), { AccessibleFormMessage: d, formRef: p } = _t({ submitCount: i, errors: a }), { data: m } = Kr(), f = !!(m != null && m.length), C = e("termsAndConditions.error.required"), g = () => {
3215
+ }, Vr = ({ redirectUrl: t }) => {
3216
+ const { t: e } = Q(), { apiUrl: s } = yt(), r = d.useRef(null), [i, o] = d.useState(0), [a, u] = d.useState({}), { mutate: l, isError: h } = Kr(), { AccessibleFormMessage: c, formRef: p } = _t({ submitCount: i, errors: a }), { data: m } = Hr(), f = !!(m != null && m.length), C = e("termsAndConditions.error.required"), b = () => {
3212
3217
  var y;
3213
3218
  (y = r == null ? void 0 : r.current) == null || y.click(), document.body.style.removeProperty("overflow");
3214
3219
  };
3215
- c.useEffect(() => {
3220
+ d.useEffect(() => {
3216
3221
  f && document.body.style.setProperty("overflow", "hidden");
3217
- }, [f]), c.useEffect(() => {
3222
+ }, [f]), d.useEffect(() => {
3218
3223
  h && u({ acceptedTC: C });
3219
3224
  }, [C, h]);
3220
3225
  const v = (y) => {
@@ -3222,18 +3227,18 @@ const Br = () => {
3222
3227
  const { acceptedTC: _ } = y.target;
3223
3228
  if (_ instanceof RadioNodeList) {
3224
3229
  const j = Object.values(_);
3225
- j.every((N) => N.checked) ? (u({}), l(j.map((N) => N.value)), g()) : u({ acceptedTC: C });
3230
+ j.every((N) => N.checked) ? (u({}), l(j.map((N) => N.value)), b()) : u({ acceptedTC: C });
3226
3231
  } else
3227
- _ != null && _.checked ? (u({}), l([_.value]), g()) : u({ acceptedTC: C });
3232
+ _ != null && _.checked ? (u({}), l([_.value]), b()) : u({ acceptedTC: C });
3228
3233
  };
3229
3234
  return f ? /* @__PURE__ */ n.jsxs(M, { defaultOpen: f, isModal: !0, children: [
3230
- d,
3235
+ c,
3231
3236
  /* @__PURE__ */ n.jsxs(M.Root, { children: [
3232
- /* @__PURE__ */ n.jsx(M.Header, { children: /* @__PURE__ */ n.jsx(M.Title, { icon: /* @__PURE__ */ n.jsx(_e, { role: "presentation" }), children: /* @__PURE__ */ n.jsx(Ur, { children: e("termsAndConditions.title") }) }) }),
3233
- /* @__PURE__ */ n.jsx(M.Body, { children: /* @__PURE__ */ n.jsxs(gt, { ref: p, id: "tc-form", onSubmit: v, children: [
3234
- /* @__PURE__ */ n.jsxs(Ir, { children: [
3237
+ /* @__PURE__ */ n.jsx(M.Header, { children: /* @__PURE__ */ n.jsx(M.Title, { icon: /* @__PURE__ */ n.jsx(_e, { role: "presentation" }), children: /* @__PURE__ */ n.jsx(Qr, { children: e("termsAndConditions.title") }) }) }),
3238
+ /* @__PURE__ */ n.jsx(M.Body, { children: /* @__PURE__ */ n.jsxs(bt, { ref: p, id: "tc-form", onSubmit: v, children: [
3239
+ /* @__PURE__ */ n.jsxs(Tr, { children: [
3235
3240
  e("termsAndConditions.description"),
3236
- a.acceptedTC && /* @__PURE__ */ n.jsx(qr, { children: C })
3241
+ a.acceptedTC && /* @__PURE__ */ n.jsx(Br, { children: C })
3237
3242
  ] }),
3238
3243
  m.map(({ tcCode: y, title: _, URL: j }) => /* @__PURE__ */ n.jsx(
3239
3244
  U,
@@ -3243,8 +3248,8 @@ const Br = () => {
3243
3248
  name: "acceptedTC",
3244
3249
  variant: "primary",
3245
3250
  children: /* @__PURE__ */ n.jsxs(U.Content, { children: [
3246
- /* @__PURE__ */ n.jsx(Dr, { children: _ }),
3247
- /* @__PURE__ */ n.jsx(Tr, { href: j, children: e("termsAndConditions.action", { title: _ }) })
3251
+ /* @__PURE__ */ n.jsx(Ir, { children: _ }),
3252
+ /* @__PURE__ */ n.jsx(Ur, { href: j, children: e("termsAndConditions.action", { title: _ }) })
3248
3253
  ] })
3249
3254
  },
3250
3255
  y
@@ -3259,16 +3264,16 @@ const Br = () => {
3259
3264
  children: e("logout")
3260
3265
  }
3261
3266
  ),
3262
- /* @__PURE__ */ n.jsx(K, { form: "tc-form", type: "submit", variant: "primary", children: e("confirm") })
3267
+ /* @__PURE__ */ n.jsx(H, { form: "tc-form", type: "submit", variant: "primary", children: e("confirm") })
3263
3268
  ] })
3264
3269
  ] })
3265
3270
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {});
3266
- }, Gr = c.forwardRef(({ children: t, ...e }, s) => /* @__PURE__ */ n.jsx("form", { className: "form--tc", ref: s, ...e, children: t }));
3271
+ }, Gr = d.forwardRef(({ children: t, ...e }, s) => /* @__PURE__ */ n.jsx("form", { className: "form--tc", ref: s, ...e, children: t }));
3267
3272
  Gr.displayName = "TermsAndConditionsForm";
3268
- const Vr = new We(), Wr = ({ environment: t, redirectUrl: e, apiUrl: s, position: r }) => /* @__PURE__ */ n.jsx(Rt, { environment: t, children: /* @__PURE__ */ n.jsx(wr, { apiUrl: s, redirectUrl: e, children: /* @__PURE__ */ n.jsxs(Xt, { client: Vr, children: [
3269
- /* @__PURE__ */ n.jsx(Nr, { position: r }),
3270
- /* @__PURE__ */ n.jsx(Hr, { redirectUrl: e })
3273
+ const $r = new We(), Yr = ({ environment: t, redirectUrl: e, apiUrl: s, position: r }) => /* @__PURE__ */ n.jsx(Rt, { environment: t, children: /* @__PURE__ */ n.jsx(_r, { apiUrl: s, redirectUrl: e, children: /* @__PURE__ */ n.jsxs(es, { client: $r, children: [
3274
+ /* @__PURE__ */ n.jsx(Mr, { position: r }),
3275
+ /* @__PURE__ */ n.jsx(Vr, { redirectUrl: e })
3271
3276
  ] }) }) });
3272
3277
  export {
3273
- Wr as default
3278
+ Yr as default
3274
3279
  };