@scbt-ecom/ui 0.63.1 → 0.64.1

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.
package/dist/widget.js CHANGED
@@ -5,7 +5,7 @@ var It = (e) => {
5
5
  var ae = (e, t, r) => t in e ? de(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
6
  var it = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r), gt = (e, t, r) => t.has(e) || It("Cannot " + r);
7
7
  var h = (e, t, r) => (gt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), C = (e, t, r) => t.has(e) ? It("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, n) => (gt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), z = (e, t, r) => (gt(e, t, "access private method"), r);
8
- var ht = (e, t, r, n) => ({
8
+ var mt = (e, t, r, n) => ({
9
9
  set _(i) {
10
10
  y(e, t, i, r);
11
11
  },
@@ -13,18 +13,18 @@ var ht = (e, t, r, n) => ({
13
13
  return h(e, t, n);
14
14
  }
15
15
  });
16
- import { S as Vt, w as Wt, Q as le, x as E, y as Et, z as ue, E as pe, F as Mt, G as P, J as he, M as me, T as xe, W as fe, X as Ot, Y as St, Z as ce, _ as Ft, $ as Bt, a0 as be, j as o, B as vt, c as M, R as H, l as Gt, r as ge, H as W, i as c, s as ct, p as je, L as ye, n as Nt, A as ot, t as ke, a1 as we, q as ve, U as Kt, m as st, k as Ne } from "./index-9RerNC5J.js";
16
+ import { S as Vt, w as Wt, Q as le, x as M, y as Mt, z as ue, E as pe, F as Et, G as P, J as me, M as he, T as xe, W as fe, X as Ot, Y as St, Z as ce, _ as Ft, $ as Bt, a0 as be, j as o, B as vt, c as E, R as _, l as Gt, r as ge, H as W, i as c, s as ct, p as je, L as ye, n as Nt, A as ot, t as ke, a1 as we, q as ve, U as Kt, m as st, k as Ne } from "./index-B00qeS0W.js";
17
17
  import { c as a, T as k } from "./typeGuards-Bhdr9KYW.js";
18
18
  import * as at from "react";
19
- import { useCallback as $t, useState as G, useMemo as Ct, createElement as Zt, Fragment as se, useEffect as Xt, useRef as Tt, useReducer as Ce, memo as Jt } from "react";
20
- import { s as Te, c as bt, g as Rt, a as Ie } from "./uuid-2wKG15vy.js";
19
+ import { useCallback as $t, useState as G, useMemo as Ct, createElement as Zt, Fragment as se, useEffect as Xt, useRef as Tt, useReducer as Ce, memo as Jt, forwardRef as Te } from "react";
20
+ import { s as Ie, c as bt, g as Rt, a as Me } from "./uuid-2wKG15vy.js";
21
21
  import { i as Yt } from "./isClient-C9aZtt2Q.js";
22
- import { a as Y, c as Ee, b as Me } from "./useDebounce-QgEEiWs9.js";
23
- import { o as Oe } from "./utils-DaXd4sci.js";
24
- import { z as te, Z as Se } from "./index-BKXpPQ1s.js";
25
- import { u as Fe } from "./useFieldsProgress-BXzIWmGP.js";
22
+ import { a as Y, c as Ee, b as Oe } from "./useDebounce-i1sdXecI.js";
23
+ import { o as Se } from "./utils-DaXd4sci.js";
24
+ import { z as te, Z as Fe } from "./index-BKXpPQ1s.js";
25
+ import { u as Be } from "./useFieldsProgress-C3nmU8Vi.js";
26
26
  import { createPortal as ee } from "react-dom";
27
- var F, zt, Be = (zt = class extends Vt {
27
+ var F, zt, Re = (zt = class extends Vt {
28
28
  constructor(t = {}) {
29
29
  super();
30
30
  C(this, F);
@@ -53,7 +53,7 @@ var F, zt, Be = (zt = class extends Vt {
53
53
  r && (t.destroy(), r === t && h(this, F).delete(t.queryHash), this.notify({ type: "removed", query: t }));
54
54
  }
55
55
  clear() {
56
- E.batch(() => {
56
+ M.batch(() => {
57
57
  this.getAll().forEach((t) => {
58
58
  this.remove(t);
59
59
  });
@@ -68,35 +68,35 @@ var F, zt, Be = (zt = class extends Vt {
68
68
  find(t) {
69
69
  const r = { exact: !0, ...t };
70
70
  return this.getAll().find(
71
- (n) => Et(r, n)
71
+ (n) => Mt(r, n)
72
72
  );
73
73
  }
74
74
  findAll(t = {}) {
75
75
  const r = this.getAll();
76
- return Object.keys(t).length > 0 ? r.filter((n) => Et(t, n)) : r;
76
+ return Object.keys(t).length > 0 ? r.filter((n) => Mt(t, n)) : r;
77
77
  }
78
78
  notify(t) {
79
- E.batch(() => {
79
+ M.batch(() => {
80
80
  this.listeners.forEach((r) => {
81
81
  r(t);
82
82
  });
83
83
  });
84
84
  }
85
85
  onFocus() {
86
- E.batch(() => {
86
+ M.batch(() => {
87
87
  this.getAll().forEach((t) => {
88
88
  t.onFocus();
89
89
  });
90
90
  });
91
91
  }
92
92
  onOnline() {
93
- E.batch(() => {
93
+ M.batch(() => {
94
94
  this.getAll().forEach((t) => {
95
95
  t.onOnline();
96
96
  });
97
97
  });
98
98
  }
99
- }, F = new WeakMap(), zt), B, I, X, R, q, qt, Re = (qt = class extends ue {
99
+ }, F = new WeakMap(), zt), B, I, X, R, q, qt, _e = (qt = class extends ue {
100
100
  constructor(t) {
101
101
  super();
102
102
  C(this, R);
@@ -134,7 +134,7 @@ var F, zt, Be = (zt = class extends Vt {
134
134
  this.execute(this.state.variables);
135
135
  }
136
136
  async execute(t) {
137
- var i, d, l, u, p, m, x, f, b, v, N, T, _, K, D, s, O, Q, $, pt;
137
+ var i, d, l, u, p, m, x, f, b, v, N, T, H, K, L, s, O, Q, $, pt;
138
138
  y(this, X, pe({
139
139
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
140
140
  onFail: (w, Z) => {
@@ -184,14 +184,14 @@ var F, zt, Be = (zt = class extends Vt {
184
184
  )), await ((T = (N = this.options).onSettled) == null ? void 0 : T.call(N, w, null, t, this.state.context)), z(this, R, q).call(this, { type: "success", data: w }), w;
185
185
  } catch (w) {
186
186
  try {
187
- throw await ((K = (_ = h(this, I).config).onError) == null ? void 0 : K.call(
188
- _,
187
+ throw await ((K = (H = h(this, I).config).onError) == null ? void 0 : K.call(
188
+ H,
189
189
  w,
190
190
  t,
191
191
  this.state.context,
192
192
  this
193
- )), await ((s = (D = this.options).onError) == null ? void 0 : s.call(
194
- D,
193
+ )), await ((s = (L = this.options).onError) == null ? void 0 : s.call(
194
+ L,
195
195
  w,
196
196
  t,
197
197
  this.state.context
@@ -270,7 +270,7 @@ var F, zt, Be = (zt = class extends Vt {
270
270
  };
271
271
  }
272
272
  };
273
- this.state = r(this.state), E.batch(() => {
273
+ this.state = r(this.state), M.batch(() => {
274
274
  h(this, B).forEach((n) => {
275
275
  n.onMutationUpdate(t);
276
276
  }), h(this, I).notify({
@@ -293,26 +293,26 @@ function He() {
293
293
  submittedAt: 0
294
294
  };
295
295
  }
296
- var L, S, ut, At, _e = (At = class extends Vt {
296
+ var D, S, ut, At, Pe = (At = class extends Vt {
297
297
  constructor(t = {}) {
298
298
  super();
299
- C(this, L);
299
+ C(this, D);
300
300
  C(this, S);
301
301
  C(this, ut);
302
- this.config = t, y(this, L, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, ut, 0);
302
+ this.config = t, y(this, D, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, ut, 0);
303
303
  }
304
304
  build(t, r, n) {
305
- const i = new Re({
305
+ const i = new _e({
306
306
  mutationCache: this,
307
- mutationId: ++ht(this, ut)._,
307
+ mutationId: ++mt(this, ut)._,
308
308
  options: t.defaultMutationOptions(r),
309
309
  state: n
310
310
  });
311
311
  return this.add(i), i;
312
312
  }
313
313
  add(t) {
314
- h(this, L).add(t);
315
- const r = mt(t);
314
+ h(this, D).add(t);
315
+ const r = ht(t);
316
316
  if (typeof r == "string") {
317
317
  const n = h(this, S).get(r);
318
318
  n ? n.push(t) : h(this, S).set(r, [t]);
@@ -320,8 +320,8 @@ var L, S, ut, At, _e = (At = class extends Vt {
320
320
  this.notify({ type: "added", mutation: t });
321
321
  }
322
322
  remove(t) {
323
- if (h(this, L).delete(t)) {
324
- const r = mt(t);
323
+ if (h(this, D).delete(t)) {
324
+ const r = ht(t);
325
325
  if (typeof r == "string") {
326
326
  const n = h(this, S).get(r);
327
327
  if (n)
@@ -334,7 +334,7 @@ var L, S, ut, At, _e = (At = class extends Vt {
334
334
  this.notify({ type: "removed", mutation: t });
335
335
  }
336
336
  canRun(t) {
337
- const r = mt(t);
337
+ const r = ht(t);
338
338
  if (typeof r == "string") {
339
339
  const n = h(this, S).get(r), i = n == null ? void 0 : n.find(
340
340
  (d) => d.state.status === "pending"
@@ -345,7 +345,7 @@ var L, S, ut, At, _e = (At = class extends Vt {
345
345
  }
346
346
  runNext(t) {
347
347
  var n;
348
- const r = mt(t);
348
+ const r = ht(t);
349
349
  if (typeof r == "string") {
350
350
  const i = (n = h(this, S).get(r)) == null ? void 0 : n.find((d) => d !== t && d.state.isPaused);
351
351
  return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
@@ -353,26 +353,26 @@ var L, S, ut, At, _e = (At = class extends Vt {
353
353
  return Promise.resolve();
354
354
  }
355
355
  clear() {
356
- E.batch(() => {
357
- h(this, L).forEach((t) => {
356
+ M.batch(() => {
357
+ h(this, D).forEach((t) => {
358
358
  this.notify({ type: "removed", mutation: t });
359
- }), h(this, L).clear(), h(this, S).clear();
359
+ }), h(this, D).clear(), h(this, S).clear();
360
360
  });
361
361
  }
362
362
  getAll() {
363
- return Array.from(h(this, L));
363
+ return Array.from(h(this, D));
364
364
  }
365
365
  find(t) {
366
366
  const r = { exact: !0, ...t };
367
367
  return this.getAll().find(
368
- (n) => Mt(r, n)
368
+ (n) => Et(r, n)
369
369
  );
370
370
  }
371
371
  findAll(t = {}) {
372
- return this.getAll().filter((r) => Mt(t, r));
372
+ return this.getAll().filter((r) => Et(t, r));
373
373
  }
374
374
  notify(t) {
375
- E.batch(() => {
375
+ M.batch(() => {
376
376
  this.listeners.forEach((r) => {
377
377
  r(t);
378
378
  });
@@ -380,18 +380,18 @@ var L, S, ut, At, _e = (At = class extends Vt {
380
380
  }
381
381
  resumePausedMutations() {
382
382
  const t = this.getAll().filter((r) => r.state.isPaused);
383
- return E.batch(
383
+ return M.batch(
384
384
  () => Promise.all(
385
385
  t.map((r) => r.continue().catch(P))
386
386
  )
387
387
  );
388
388
  }
389
- }, L = new WeakMap(), S = new WeakMap(), ut = new WeakMap(), At);
390
- function mt(e) {
389
+ }, D = new WeakMap(), S = new WeakMap(), ut = new WeakMap(), At);
390
+ function ht(e) {
391
391
  var t;
392
392
  return (t = e.options.scope) == null ? void 0 : t.id;
393
393
  }
394
- function Ht(e) {
394
+ function _t(e) {
395
395
  return {
396
396
  onFetch: (t, r) => {
397
397
  var x, f, b, v, N;
@@ -399,14 +399,14 @@ function Ht(e) {
399
399
  let u = { pages: [], pageParams: [] }, p = 0;
400
400
  const m = async () => {
401
401
  let T = !1;
402
- const _ = (s) => {
402
+ const H = (s) => {
403
403
  Object.defineProperty(s, "signal", {
404
404
  enumerable: !0,
405
405
  get: () => (t.signal.aborted ? T = !0 : t.signal.addEventListener("abort", () => {
406
406
  T = !0;
407
407
  }), t.signal)
408
408
  });
409
- }, K = he(t.options, t.fetchOptions), D = async (s, O, Q) => {
409
+ }, K = me(t.options, t.fetchOptions), L = async (s, O, Q) => {
410
410
  if (T)
411
411
  return Promise.reject();
412
412
  if (O == null && s.pages.length)
@@ -418,35 +418,35 @@ function Ht(e) {
418
418
  direction: Q ? "backward" : "forward",
419
419
  meta: t.options.meta
420
420
  };
421
- _($);
421
+ H($);
422
422
  const pt = await K(
423
423
  $
424
- ), { maxPages: w } = t.options, Z = Q ? me : xe;
424
+ ), { maxPages: w } = t.options, Z = Q ? he : xe;
425
425
  return {
426
426
  pages: Z(s.pages, pt, w),
427
427
  pageParams: Z(s.pageParams, O, w)
428
428
  };
429
429
  };
430
430
  if (i && d.length) {
431
- const s = i === "backward", O = s ? Pe : _t, Q = {
431
+ const s = i === "backward", O = s ? De : Ht, Q = {
432
432
  pages: d,
433
433
  pageParams: l
434
434
  }, $ = O(n, Q);
435
- u = await D(Q, $, s);
435
+ u = await L(Q, $, s);
436
436
  } else {
437
437
  const s = e ?? d.length;
438
438
  do {
439
- const O = p === 0 ? l[0] ?? n.initialPageParam : _t(n, u);
439
+ const O = p === 0 ? l[0] ?? n.initialPageParam : Ht(n, u);
440
440
  if (p > 0 && O == null)
441
441
  break;
442
- u = await D(u, O), p++;
442
+ u = await L(u, O), p++;
443
443
  } while (p < s);
444
444
  }
445
445
  return u;
446
446
  };
447
447
  t.options.persister ? t.fetchFn = () => {
448
- var T, _;
449
- return (_ = (T = t.options).persister) == null ? void 0 : _.call(
448
+ var T, H;
449
+ return (H = (T = t.options).persister) == null ? void 0 : H.call(
450
450
  T,
451
451
  m,
452
452
  {
@@ -461,7 +461,7 @@ function Ht(e) {
461
461
  }
462
462
  };
463
463
  }
464
- function _t(e, { pages: t, pageParams: r }) {
464
+ function Ht(e, { pages: t, pageParams: r }) {
465
465
  const n = t.length - 1;
466
466
  return t.length > 0 ? e.getNextPageParam(
467
467
  t[n],
@@ -470,7 +470,7 @@ function _t(e, { pages: t, pageParams: r }) {
470
470
  r
471
471
  ) : void 0;
472
472
  }
473
- function Pe(e, { pages: t, pageParams: r }) {
473
+ function De(e, { pages: t, pageParams: r }) {
474
474
  var n;
475
475
  return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, r[0], r) : void 0;
476
476
  }
@@ -484,10 +484,10 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
484
484
  C(this, V);
485
485
  C(this, rt);
486
486
  C(this, nt);
487
- y(this, g, e.queryCache || new Be()), y(this, A, e.mutationCache || new _e()), y(this, U, e.defaultOptions || {}), y(this, tt, /* @__PURE__ */ new Map()), y(this, et, /* @__PURE__ */ new Map()), y(this, V, 0);
487
+ y(this, g, e.queryCache || new Re()), y(this, A, e.mutationCache || new Pe()), y(this, U, e.defaultOptions || {}), y(this, tt, /* @__PURE__ */ new Map()), y(this, et, /* @__PURE__ */ new Map()), y(this, V, 0);
488
488
  }
489
489
  mount() {
490
- ht(this, V)._++, h(this, V) === 1 && (y(this, rt, fe.subscribe(async (e) => {
490
+ mt(this, V)._++, h(this, V) === 1 && (y(this, rt, fe.subscribe(async (e) => {
491
491
  e && (await this.resumePausedMutations(), h(this, g).onFocus());
492
492
  })), y(this, nt, Ot.subscribe(async (e) => {
493
493
  e && (await this.resumePausedMutations(), h(this, g).onOnline());
@@ -495,7 +495,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
495
495
  }
496
496
  unmount() {
497
497
  var e, t;
498
- ht(this, V)._--, h(this, V) === 0 && ((e = h(this, rt)) == null || e.call(this), y(this, rt, void 0), (t = h(this, nt)) == null || t.call(this), y(this, nt, void 0));
498
+ mt(this, V)._--, h(this, V) === 0 && ((e = h(this, rt)) == null || e.call(this), y(this, rt, void 0), (t = h(this, nt)) == null || t.call(this), y(this, nt, void 0));
499
499
  }
500
500
  isFetching(e) {
501
501
  return h(this, g).findAll({ ...e, fetchStatus: "fetching" }).length;
@@ -503,6 +503,13 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
503
503
  isMutating(e) {
504
504
  return h(this, A).findAll({ ...e, status: "pending" }).length;
505
505
  }
506
+ /**
507
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
508
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
509
+ *
510
+ * Hint: Do not use this function inside a component, because it won't receive updates.
511
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
512
+ */
506
513
  getQueryData(e) {
507
514
  var r;
508
515
  const t = this.defaultQueryOptions({ queryKey: e });
@@ -526,7 +533,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
526
533
  return h(this, g).build(this, n).setData(l, { ...r, manual: !0 });
527
534
  }
528
535
  setQueriesData(e, t, r) {
529
- return E.batch(
536
+ return M.batch(
530
537
  () => h(this, g).findAll(e).map(({ queryKey: n }) => [
531
538
  n,
532
539
  this.setQueryData(n, t, r)
@@ -542,7 +549,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
542
549
  }
543
550
  removeQueries(e) {
544
551
  const t = h(this, g);
545
- E.batch(() => {
552
+ M.batch(() => {
546
553
  t.findAll(e).forEach((r) => {
547
554
  t.remove(r);
548
555
  });
@@ -550,7 +557,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
550
557
  }
551
558
  resetQueries(e, t) {
552
559
  const r = h(this, g);
553
- return E.batch(() => (r.findAll(e).forEach((n) => {
560
+ return M.batch(() => (r.findAll(e).forEach((n) => {
554
561
  n.reset();
555
562
  }), this.refetchQueries(
556
563
  {
@@ -561,13 +568,13 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
561
568
  )));
562
569
  }
563
570
  cancelQueries(e, t = {}) {
564
- const r = { revert: !0, ...t }, n = E.batch(
571
+ const r = { revert: !0, ...t }, n = M.batch(
565
572
  () => h(this, g).findAll(e).map((i) => i.cancel(r))
566
573
  );
567
574
  return Promise.all(n).then(P).catch(P);
568
575
  }
569
576
  invalidateQueries(e, t = {}) {
570
- return E.batch(() => (h(this, g).findAll(e).forEach((r) => {
577
+ return M.batch(() => (h(this, g).findAll(e).forEach((r) => {
571
578
  r.invalidate();
572
579
  }), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
573
580
  {
@@ -581,7 +588,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
581
588
  const r = {
582
589
  ...t,
583
590
  cancelRefetch: t.cancelRefetch ?? !0
584
- }, n = E.batch(
591
+ }, n = M.batch(
585
592
  () => h(this, g).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
586
593
  let d = i.fetch(void 0, r);
587
594
  return r.throwOnError || (d = d.catch(P)), i.state.fetchStatus === "paused" ? Promise.resolve() : d;
@@ -601,13 +608,13 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
601
608
  return this.fetchQuery(e).then(P).catch(P);
602
609
  }
603
610
  fetchInfiniteQuery(e) {
604
- return e.behavior = Ht(e.pages), this.fetchQuery(e);
611
+ return e.behavior = _t(e.pages), this.fetchQuery(e);
605
612
  }
606
613
  prefetchInfiniteQuery(e) {
607
614
  return this.fetchInfiniteQuery(e).then(P).catch(P);
608
615
  }
609
616
  ensureInfiniteQueryData(e) {
610
- return e.behavior = Ht(e.pages), this.ensureQueryData(e);
617
+ return e.behavior = _t(e.pages), this.ensureQueryData(e);
611
618
  }
612
619
  resumePausedMutations() {
613
620
  return Ot.isOnline() ? h(this, A).resumePausedMutations() : Promise.resolve();
@@ -674,7 +681,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
674
681
  h(this, g).clear(), h(this, A).clear();
675
682
  }
676
683
  }, g = new WeakMap(), A = new WeakMap(), U = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), V = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), Ut);
677
- const De = [
684
+ const Qe = [
678
685
  "header",
679
686
  "footer",
680
687
  "interLinking",
@@ -685,10 +692,10 @@ const De = [
685
692
  "benefit",
686
693
  "form",
687
694
  "seoHeader"
688
- ], j = De.reduce(
695
+ ], j = Qe.reduce(
689
696
  (e, t) => (e[t] = t, e),
690
697
  {}
691
- ), Qe = (e) => $t(() => {
698
+ ), ze = (e) => $t(() => {
692
699
  switch (e.handler) {
693
700
  case "navigate": {
694
701
  const { url: r, target: n, rel: i } = e;
@@ -697,14 +704,14 @@ const De = [
697
704
  }
698
705
  case "scroll": {
699
706
  const { widgetId: r } = e ?? "";
700
- Te({ widgetId: r });
707
+ Ie({ widgetId: r });
701
708
  break;
702
709
  }
703
710
  }
704
711
  }, [e]), J = ({ handlerOptions: e, ...t }) => {
705
- const r = Qe(e);
712
+ const r = ze(e);
706
713
  return /* @__PURE__ */ o.jsx(vt, { onClick: r, ...t, children: t.children });
707
- }, ze = M(
714
+ }, qe = E(
708
715
  "flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
709
716
  {
710
717
  variants: {
@@ -715,7 +722,7 @@ const De = [
715
722
  }
716
723
  }
717
724
  }
718
- ), qe = ({
725
+ ), Ae = ({
719
726
  subtitle: e,
720
727
  title: t,
721
728
  img: r,
@@ -731,7 +738,7 @@ const De = [
731
738
  "li",
732
739
  {
733
740
  style: { backgroundColor: p ?? "#F3F4F7" },
734
- className: a(ze({ variant: u }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
741
+ className: a(qe({ variant: u }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
735
742
  children: [
736
743
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
737
744
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
@@ -751,7 +758,7 @@ const De = [
751
758
  },
752
759
  t
753
760
  );
754
- }, Ae = M("grid gap-4", {
761
+ }, Ue = E("grid gap-4", {
755
762
  variants: {
756
763
  variant: {
757
764
  twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
@@ -759,7 +766,7 @@ const De = [
759
766
  fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
760
767
  }
761
768
  }
762
- }), wn = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: a("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ o.jsxs(H, { className: n == null ? void 0 : n.container, children: [
769
+ }), wn = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: a("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ o.jsxs(_, { className: n == null ? void 0 : n.container, children: [
763
770
  /* @__PURE__ */ o.jsx(
764
771
  "div",
765
772
  {
@@ -767,8 +774,8 @@ const De = [
767
774
  className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", n == null ? void 0 : n.heading)
768
775
  }
769
776
  ),
770
- /* @__PURE__ */ o.jsx("ul", { className: a(Ae({ variant: r }), n == null ? void 0 : n.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ o.jsx(qe, { variant: r, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
771
- ] }) }), Ue = ({ variant: e, details: t }) => {
777
+ /* @__PURE__ */ o.jsx("ul", { className: a(Ue({ variant: r }), n == null ? void 0 : n.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ o.jsx(Ae, { variant: r, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
778
+ ] }) }), Ve = ({ variant: e, details: t }) => {
772
779
  switch (e) {
773
780
  case "withButton":
774
781
  return /* @__PURE__ */ o.jsx(J, { ...t });
@@ -785,7 +792,7 @@ const De = [
785
792
  id: j.header,
786
793
  "data-test-id": j.header,
787
794
  className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", n == null ? void 0 : n.header),
788
- children: /* @__PURE__ */ o.jsx(H, { className: a(n == null ? void 0 : n.container), children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center justify-between gap-5", n == null ? void 0 : n.wrapper), children: [
795
+ children: /* @__PURE__ */ o.jsx(_, { className: a(n == null ? void 0 : n.container), children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center justify-between gap-5", n == null ? void 0 : n.wrapper), children: [
789
796
  /* @__PURE__ */ o.jsx(
790
797
  "a",
791
798
  {
@@ -800,11 +807,11 @@ const De = [
800
807
  children: ge[r]
801
808
  }
802
809
  ),
803
- Ue(e)
810
+ Ve(e)
804
811
  ] }) })
805
812
  }
806
813
  );
807
- }, Ve = ({
814
+ }, We = ({
808
815
  headTitle: e,
809
816
  subtitle: t,
810
817
  buttonsConfig: r,
@@ -835,7 +842,7 @@ const De = [
835
842
  className: a("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
836
843
  children: [
837
844
  /* @__PURE__ */ o.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: m ? b : v }),
838
- /* @__PURE__ */ o.jsxs(H, { className: a("h-full", i == null ? void 0 : i.container), children: [
845
+ /* @__PURE__ */ o.jsxs(_, { className: a("h-full", i == null ? void 0 : i.container), children: [
839
846
  /* @__PURE__ */ o.jsx("div", { className: a("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ o.jsxs("div", { className: a("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
840
847
  /* @__PURE__ */ o.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
841
848
  /* @__PURE__ */ o.jsx(
@@ -910,7 +917,7 @@ const De = [
910
917
  "data-test-id": j.banner,
911
918
  style: { backgroundColor: u ?? "#d9edff" },
912
919
  className: a("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
913
- children: /* @__PURE__ */ o.jsxs(H, { className: a("relative", i == null ? void 0 : i.container), children: [
920
+ children: /* @__PURE__ */ o.jsxs(_, { className: a("relative", i == null ? void 0 : i.container), children: [
914
921
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
915
922
  /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
916
923
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
@@ -999,7 +1006,7 @@ const De = [
999
1006
  case "separateImg":
1000
1007
  return /* @__PURE__ */ o.jsx(Pt, { ...t });
1001
1008
  case "fullImg":
1002
- return /* @__PURE__ */ o.jsx(Ve, { ...t });
1009
+ return /* @__PURE__ */ o.jsx(We, { ...t });
1003
1010
  default:
1004
1011
  return /* @__PURE__ */ o.jsx(Pt, { ...t });
1005
1012
  }
@@ -1031,7 +1038,7 @@ const De = [
1031
1038
  ))
1032
1039
  }
1033
1040
  );
1034
- }, We = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: n }) => /* @__PURE__ */ o.jsx(
1041
+ }, Ge = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: n }) => /* @__PURE__ */ o.jsx(
1035
1042
  "a",
1036
1043
  {
1037
1044
  className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
@@ -1040,7 +1047,7 @@ const De = [
1040
1047
  children: /* @__PURE__ */ o.jsx(c, { name: r, className: a("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
1041
1048
  },
1042
1049
  n
1043
- )) }), Ge = ({ phones: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: r, text: n }) => /* @__PURE__ */ o.jsx(
1050
+ )) }), Ke = ({ phones: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: r, text: n }) => /* @__PURE__ */ o.jsx(
1044
1051
  Gt,
1045
1052
  {
1046
1053
  phone: bt(r),
@@ -1052,7 +1059,7 @@ const De = [
1052
1059
  }
1053
1060
  },
1054
1061
  r
1055
- )) }), Ke = ({ classes: e, details: t }) => /* @__PURE__ */ o.jsx(
1062
+ )) }), $e = ({ classes: e, details: t }) => /* @__PURE__ */ o.jsx(
1056
1063
  "div",
1057
1064
  {
1058
1065
  className: a(
@@ -1079,13 +1086,13 @@ const De = [
1079
1086
  ] }, n))
1080
1087
  )
1081
1088
  }
1082
- ), $e = ({ text: e, classes: t }) => /* @__PURE__ */ o.jsx(
1089
+ ), Ze = ({ text: e, classes: t }) => /* @__PURE__ */ o.jsx(
1083
1090
  "div",
1084
1091
  {
1085
1092
  className: a("desk-body-regular-m text-color-footer", t == null ? void 0 : t.copyRight),
1086
1093
  dangerouslySetInnerHTML: { __html: e }
1087
1094
  }
1088
- ), Ze = ({ classes: e }) => /* @__PURE__ */ o.jsx(
1095
+ ), Xe = ({ classes: e }) => /* @__PURE__ */ o.jsx(
1089
1096
  "a",
1090
1097
  {
1091
1098
  "aria-label": "logo",
@@ -1093,7 +1100,7 @@ const De = [
1093
1100
  className: a("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", e == null ? void 0 : e.footerLogo),
1094
1101
  children: /* @__PURE__ */ o.jsx(c, { name: "brandLogos/logoWhite", className: a("size-full", e == null ? void 0 : e.footerLogoIcon) })
1095
1102
  }
1096
- ), Xe = ({ classes: e }) => /* @__PURE__ */ o.jsx(
1103
+ ), Je = ({ classes: e }) => /* @__PURE__ */ o.jsx(
1097
1104
  ct,
1098
1105
  {
1099
1106
  intent: "white",
@@ -1107,7 +1114,7 @@ const De = [
1107
1114
  },
1108
1115
  children: "Карта сайта"
1109
1116
  }
1110
- ), Je = ({ text: e, classes: t }) => {
1117
+ ), Ye = ({ text: e, classes: t }) => {
1111
1118
  const [r, n] = at.useState(!1), [i, d] = at.useState(!1), l = at.useRef(null);
1112
1119
  return at.useEffect(() => {
1113
1120
  const u = l.current;
@@ -1149,7 +1156,7 @@ const De = [
1149
1156
  id: j.footer,
1150
1157
  "data-test-id": j.footer,
1151
1158
  className: a("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
1152
- children: /* @__PURE__ */ o.jsx(H, { className: a(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ o.jsxs("div", { className: a("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
1159
+ children: /* @__PURE__ */ o.jsx(_, { className: a(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ o.jsxs("div", { className: a("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
1153
1160
  /* @__PURE__ */ o.jsxs(
1154
1161
  "div",
1155
1162
  {
@@ -1159,15 +1166,15 @@ const De = [
1159
1166
  ),
1160
1167
  children: [
1161
1168
  /* @__PURE__ */ o.jsxs("div", { className: a(i == null ? void 0 : i.footerSocialBlock), children: [
1162
- /* @__PURE__ */ o.jsx(Ze, { classes: i == null ? void 0 : i.footerLogo }),
1163
- e.enabled && /* @__PURE__ */ o.jsx(We, { socialsLinks: e.links, classes: i == null ? void 0 : i.socialLinks })
1169
+ /* @__PURE__ */ o.jsx(Xe, { classes: i == null ? void 0 : i.footerLogo }),
1170
+ e.enabled && /* @__PURE__ */ o.jsx(Ge, { socialsLinks: e.links, classes: i == null ? void 0 : i.socialLinks })
1164
1171
  ] }),
1165
- t.enabled && /* @__PURE__ */ o.jsx(Ge, { phones: t.items, classes: i == null ? void 0 : i.phonesBlock })
1172
+ t.enabled && /* @__PURE__ */ o.jsx(Ke, { phones: t.items, classes: i == null ? void 0 : i.phonesBlock })
1166
1173
  ]
1167
1174
  }
1168
1175
  ),
1169
- !k.isArrayEmpty(d) && /* @__PURE__ */ o.jsx(Ke, { details: d, classes: i == null ? void 0 : i.navLinks }),
1170
- r.enabled && /* @__PURE__ */ o.jsx(Je, { text: r.text }),
1176
+ !k.isArrayEmpty(d) && /* @__PURE__ */ o.jsx($e, { details: d, classes: i == null ? void 0 : i.navLinks }),
1177
+ r.enabled && /* @__PURE__ */ o.jsx(Ye, { text: r.text }),
1171
1178
  /* @__PURE__ */ o.jsxs(
1172
1179
  "div",
1173
1180
  {
@@ -1176,14 +1183,14 @@ const De = [
1176
1183
  i == null ? void 0 : i.footerBottom
1177
1184
  ),
1178
1185
  children: [
1179
- n.enabled && /* @__PURE__ */ o.jsx($e, { text: n.text, classes: i == null ? void 0 : i.copyright }),
1180
- l && /* @__PURE__ */ o.jsx(Xe, { classes: i == null ? void 0 : i.siteMap })
1186
+ n.enabled && /* @__PURE__ */ o.jsx(Ze, { text: n.text, classes: i == null ? void 0 : i.copyright }),
1187
+ l && /* @__PURE__ */ o.jsx(Je, { classes: i == null ? void 0 : i.siteMap })
1181
1188
  ]
1182
1189
  }
1183
1190
  )
1184
1191
  ] }) })
1185
1192
  }
1186
- ), Ye = ({ classes: e, index: t, variant: r, title: n, description: i }) => {
1193
+ ), tr = ({ classes: e, index: t, variant: r, title: n, description: i }) => {
1187
1194
  const d = r === "withTitleAndDescription" && n;
1188
1195
  return /* @__PURE__ */ o.jsxs(
1189
1196
  "div",
@@ -1222,7 +1229,7 @@ const De = [
1222
1229
  ]
1223
1230
  }
1224
1231
  );
1225
- }, Cn = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ o.jsx(H, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
1232
+ }, Cn = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ o.jsx(_, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
1226
1233
  /* @__PURE__ */ o.jsx(W, { as: "h2", className: a("text-color-dark", n == null ? void 0 : n.headline), children: e }),
1227
1234
  /* @__PURE__ */ o.jsx(
1228
1235
  "div",
@@ -1231,10 +1238,10 @@ const De = [
1231
1238
  "flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
1232
1239
  n == null ? void 0 : n.stepsWrapper
1233
1240
  ),
1234
- children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ o.jsx(Ye, { variant: r, ...i, index: d + 1, classes: n == null ? void 0 : n.step }, i.description))
1241
+ children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ o.jsx(tr, { variant: r, ...i, index: d + 1, classes: n == null ? void 0 : n.step }, i.description))
1235
1242
  }
1236
1243
  )
1237
- ] }) }) }), tr = M("", {
1244
+ ] }) }) }), er = E("", {
1238
1245
  variants: {
1239
1246
  intent: {
1240
1247
  twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
@@ -1250,7 +1257,7 @@ const De = [
1250
1257
  defaultVariants: {
1251
1258
  intent: "twoItems"
1252
1259
  }
1253
- }), er = M("", {
1260
+ }), rr = E("", {
1254
1261
  variants: {
1255
1262
  intent: {
1256
1263
  twoItems: "",
@@ -1282,7 +1289,7 @@ const De = [
1282
1289
  class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
1283
1290
  }
1284
1291
  ]
1285
- }), rr = M("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1292
+ }), nr = E("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1286
1293
  variants: {
1287
1294
  intent: {
1288
1295
  twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
@@ -1292,7 +1299,7 @@ const De = [
1292
1299
  defaultVariants: {
1293
1300
  intent: "twoItems"
1294
1301
  }
1295
- }), nr = M("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1302
+ }), or = E("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1296
1303
  variants: {
1297
1304
  intent: {
1298
1305
  twoItems: "desktop:h-[232px] desktop:w-[500px]",
@@ -1318,7 +1325,7 @@ const De = [
1318
1325
  class: "desktop:h-[272px] desktop:w-[500px]"
1319
1326
  }
1320
1327
  ]
1321
- }), or = ({ data: e, intent: t }) => {
1328
+ }), ir = ({ data: e, intent: t }) => {
1322
1329
  const {
1323
1330
  title: r,
1324
1331
  description: n,
@@ -1326,14 +1333,14 @@ const De = [
1326
1333
  enabled: !1
1327
1334
  }
1328
1335
  } = e;
1329
- return /* @__PURE__ */ o.jsx("li", { className: a(rr({ intent: t })), children: /* @__PURE__ */ o.jsxs("div", { className: "desktop:max-w-[264px]", children: [
1336
+ return /* @__PURE__ */ o.jsx("li", { className: a(nr({ intent: t })), children: /* @__PURE__ */ o.jsxs("div", { className: "desktop:max-w-[264px]", children: [
1330
1337
  /* @__PURE__ */ o.jsxs("div", { className: a("mb-2 flex items-center gap-2"), children: [
1331
1338
  /* @__PURE__ */ o.jsx("h4", { className: a("mob-title-bold-m text-color-dark"), children: r }),
1332
1339
  i.enabled && /* @__PURE__ */ o.jsx(je, { triggerElement: /* @__PURE__ */ o.jsx(c, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
1333
1340
  ] }),
1334
1341
  /* @__PURE__ */ o.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: n } })
1335
1342
  ] }) });
1336
- }, jt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: a(tr({ intent: e, desktopHidden: r, mobileHidden: n })), children: t }), ir = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ o.jsx("ul", { className: a(er({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((n, i) => /* @__PURE__ */ o.jsx(or, { intent: t, data: n }, i)) }), Tn = ({
1343
+ }, jt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: a(er({ intent: e, desktopHidden: r, mobileHidden: n })), children: t }), dr = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ o.jsx("ul", { className: a(rr({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((n, i) => /* @__PURE__ */ o.jsx(ir, { intent: t, data: n }, i)) }), Tn = ({
1337
1344
  headline: e,
1338
1345
  buttonConfig: t,
1339
1346
  intent: r = "twoItems",
@@ -1342,7 +1349,7 @@ const De = [
1342
1349
  classes: d
1343
1350
  }) => {
1344
1351
  const l = r === "fourItems", u = r === "twoItems", p = i && "url" in i && k.isObject(i) ? /* @__PURE__ */ o.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
1345
- return /* @__PURE__ */ o.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ o.jsxs(H, { className: a(d == null ? void 0 : d.container), children: [
1352
+ return /* @__PURE__ */ o.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ o.jsxs(_, { className: a(d == null ? void 0 : d.container), children: [
1346
1353
  u && /* @__PURE__ */ o.jsx(jt, { intent: r, headline: e }),
1347
1354
  /* @__PURE__ */ o.jsxs(
1348
1355
  "div",
@@ -1353,14 +1360,14 @@ const De = [
1353
1360
  ),
1354
1361
  children: [
1355
1362
  l && /* @__PURE__ */ o.jsx(jt, { intent: r, headline: e, desktopHidden: !0 }),
1356
- /* @__PURE__ */ o.jsx("div", { className: a(nr({ intent: r, withButton: t == null ? void 0 : t.enabled }), d == null ? void 0 : d.imgContainer), children: p }),
1363
+ /* @__PURE__ */ o.jsx("div", { className: a(or({ intent: r, withButton: t == null ? void 0 : t.enabled }), d == null ? void 0 : d.imgContainer), children: p }),
1357
1364
  /* @__PURE__ */ o.jsxs(
1358
1365
  "div",
1359
1366
  {
1360
1367
  className: a("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
1361
1368
  children: [
1362
1369
  l && /* @__PURE__ */ o.jsx(jt, { intent: r, headline: e, mobileHidden: !0 }),
1363
- /* @__PURE__ */ o.jsx(ir, { details: n, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
1370
+ /* @__PURE__ */ o.jsx(dr, { details: n, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
1364
1371
  (t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ o.jsx(
1365
1372
  J,
1366
1373
  {
@@ -1403,7 +1410,7 @@ const De = [
1403
1410
  }
1404
1411
  )
1405
1412
  }
1406
- ), dr = ({ ...e }) => /* @__PURE__ */ o.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
1413
+ ), ar = ({ ...e }) => /* @__PURE__ */ o.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
1407
1414
  /* @__PURE__ */ o.jsx(
1408
1415
  "path",
1409
1416
  {
@@ -1459,7 +1466,7 @@ const De = [
1459
1466
  children: t == null ? void 0 : t.text
1460
1467
  }
1461
1468
  )
1462
- ] }), Lt = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1469
+ ] }), Dt = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1463
1470
  const { isMobile: l } = Y();
1464
1471
  return /* @__PURE__ */ o.jsx(re, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ o.jsxs(
1465
1472
  "div",
@@ -1483,7 +1490,7 @@ const De = [
1483
1490
  ]
1484
1491
  }
1485
1492
  ) });
1486
- }, Dt = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1493
+ }, Lt = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1487
1494
  const { isMobile: l } = Y();
1488
1495
  return /* @__PURE__ */ o.jsx(re, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ o.jsxs(
1489
1496
  "div",
@@ -1495,7 +1502,7 @@ const De = [
1495
1502
  ),
1496
1503
  children: [
1497
1504
  /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
1498
- /* @__PURE__ */ o.jsx(dr, { className: a("size-7 desktop:size-8", d == null ? void 0 : d.esiaLogo) }),
1505
+ /* @__PURE__ */ o.jsx(ar, { className: a("size-7 desktop:size-8", d == null ? void 0 : d.esiaLogo) }),
1499
1506
  /* @__PURE__ */ o.jsx(ne, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
1500
1507
  /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
1501
1508
  ] }),
@@ -1503,12 +1510,12 @@ const De = [
1503
1510
  ]
1504
1511
  }
1505
1512
  ) });
1506
- }, ar = (e) => {
1513
+ }, lr = (e) => {
1507
1514
  switch (e.mode) {
1508
1515
  case yt.ESIA:
1509
- return /* @__PURE__ */ o.jsx(Dt, { ...e });
1510
- case yt.MOBILE_ID:
1511
1516
  return /* @__PURE__ */ o.jsx(Lt, { ...e });
1517
+ case yt.MOBILE_ID:
1518
+ return /* @__PURE__ */ o.jsx(Dt, { ...e });
1512
1519
  case yt.COMBINE:
1513
1520
  default:
1514
1521
  const { esiaConfig: t, mobileIdConfig: r, subtitle: n, badge: i, classes: d } = e, l = !n && !i ? at.Fragment : "div";
@@ -1526,7 +1533,7 @@ const De = [
1526
1533
  ] }),
1527
1534
  /* @__PURE__ */ o.jsxs("div", { className: a("grid w-full grid-cols-2 gap-2 desktop:gap-4", d == null ? void 0 : d.authWrapper), children: [
1528
1535
  /* @__PURE__ */ o.jsx(
1529
- Dt,
1536
+ Lt,
1530
1537
  {
1531
1538
  ...t,
1532
1539
  classes: {
@@ -1537,7 +1544,7 @@ const De = [
1537
1544
  }
1538
1545
  ),
1539
1546
  /* @__PURE__ */ o.jsx(
1540
- Lt,
1547
+ Dt,
1541
1548
  {
1542
1549
  ...r,
1543
1550
  classes: {
@@ -1552,7 +1559,7 @@ const De = [
1552
1559
  }
1553
1560
  );
1554
1561
  }
1555
- }, In = (e) => ar(e), Qt = ({ links: e, classes: t }) => /* @__PURE__ */ o.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: n }) => /* @__PURE__ */ o.jsx(
1562
+ }, In = (e) => lr(e), Qt = ({ links: e, classes: t }) => /* @__PURE__ */ o.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: n }) => /* @__PURE__ */ o.jsx(
1556
1563
  ct,
1557
1564
  {
1558
1565
  classes: {
@@ -1564,7 +1571,7 @@ const De = [
1564
1571
  children: n
1565
1572
  },
1566
1573
  r
1567
- )) }), lr = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: n }) => {
1574
+ )) }), ur = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: n }) => {
1568
1575
  var d, l, u;
1569
1576
  const { isMobile: i } = Y();
1570
1577
  return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-2", n == null ? void 0 : n.columnGroup), children: [
@@ -1590,7 +1597,7 @@ const De = [
1590
1597
  }
1591
1598
  )
1592
1599
  ] });
1593
- }, ur = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx(lr, { ...t, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), pr = M("grid gap-4 grid-cols-1", {
1600
+ }, pr = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx(ur, { ...t, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), mr = E("grid gap-4 grid-cols-1", {
1594
1601
  variants: {
1595
1602
  variant: {
1596
1603
  twoCols: "desktop:grid-cols-2",
@@ -1601,7 +1608,7 @@ const De = [
1601
1608
  defaultVariants: {
1602
1609
  variant: "fourCols"
1603
1610
  }
1604
- }), En = ({
1611
+ }), Mn = ({
1605
1612
  variant: e,
1606
1613
  details: t,
1607
1614
  headline: r,
@@ -1617,7 +1624,7 @@ const De = [
1617
1624
  id: j.interLinking,
1618
1625
  "data-test-id": j.interLinking,
1619
1626
  className: a("min-w-full desktop:min-w-[1140px]", d == null ? void 0 : d.root),
1620
- children: /* @__PURE__ */ o.jsx(H, { children: /* @__PURE__ */ o.jsx(
1627
+ children: /* @__PURE__ */ o.jsx(_, { children: /* @__PURE__ */ o.jsx(
1621
1628
  ot,
1622
1629
  {
1623
1630
  defaultOpen: l,
@@ -1630,7 +1637,7 @@ const De = [
1630
1637
  },
1631
1638
  content: a("max-w-full bg-color-blue-grey-100 relative", (m = i == null ? void 0 : i.classes) == null ? void 0 : m.content)
1632
1639
  },
1633
- children: /* @__PURE__ */ o.jsx("div", { className: a(pr({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((x, f) => /* @__PURE__ */ o.jsx(ur, { ...x, ...n, classes: d == null ? void 0 : d.column }, f)) })
1640
+ children: /* @__PURE__ */ o.jsx("div", { className: a(mr({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((x, f) => /* @__PURE__ */ o.jsx(pr, { ...x, ...n, classes: d == null ? void 0 : d.column }, f)) })
1634
1641
  }
1635
1642
  ) })
1636
1643
  }
@@ -1649,10 +1656,10 @@ const De = [
1649
1656
  children: i
1650
1657
  },
1651
1658
  i
1652
- )) }), mr = (e) => e.variant === "HTML", xr = (e) => e.variant === "DOCUMENTS", fr = (e) => e.variant === "TABLE", cr = ({ html: e, config: t, classes: r, accordionConfig: n }) => {
1659
+ )) }), xr = (e) => e.variant === "HTML", fr = (e) => e.variant === "DOCUMENTS", cr = (e) => e.variant === "TABLE", br = ({ html: e, config: t, classes: r, accordionConfig: n }) => {
1653
1660
  const i = /* @__PURE__ */ o.jsx("div", { className: a(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
1654
1661
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(ot, { label: t == null ? void 0 : t.accordionTitle, ...n, children: (n == null ? void 0 : n.children) ?? i }) : i });
1655
- }, br = (e, t) => ({
1662
+ }, gr = (e, t) => ({
1656
1663
  rows: e == null ? void 0 : e.map(({ row: r }) => ({
1657
1664
  row: r == null ? void 0 : r.map((n, i) => {
1658
1665
  var d;
@@ -1662,21 +1669,21 @@ const De = [
1662
1669
  };
1663
1670
  })
1664
1671
  }))
1665
- }), gr = M("flex flex-col", {
1672
+ }), jr = E("flex flex-col", {
1666
1673
  variants: {
1667
1674
  columnsVariant: {
1668
1675
  twoCols: "w-full max-w-[656px]",
1669
1676
  threeCols: "w-full max-w-[768px]"
1670
1677
  }
1671
1678
  }
1672
- }), jr = M("desktop:grid mobile:hidden px-4 mb-4", {
1679
+ }), yr = E("desktop:grid mobile:hidden px-4 mb-4", {
1673
1680
  variants: {
1674
1681
  columnsVariant: {
1675
1682
  twoCols: "grid-cols-2 gap-16",
1676
1683
  threeCols: "grid-cols-3 gap-12"
1677
1684
  }
1678
1685
  }
1679
- }), yr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a(jr({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), kr = M("desktop:grid mobile:hidden items-center", {
1686
+ }), kr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a(yr({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), wr = E("desktop:grid mobile:hidden items-center", {
1680
1687
  variants: {
1681
1688
  columnsVariant: {
1682
1689
  twoCols: "grid-cols-2 gap-16",
@@ -1687,21 +1694,21 @@ const De = [
1687
1694
  separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
1688
1695
  }
1689
1696
  }
1690
- }), wr = ({ row: e, tableVariant: t, columnsVariant: r, rowIndex: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: a(kr({ columnsVariant: r, tableVariant: t }), { "border-none": n === 0 }, i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d }, l) => /* @__PURE__ */ o.jsx(
1697
+ }), vr = ({ row: e, tableVariant: t, columnsVariant: r, rowIndex: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: a(wr({ columnsVariant: r, tableVariant: t }), { "border-none": n === 0 }, i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d }, l) => /* @__PURE__ */ o.jsx(
1691
1698
  "div",
1692
1699
  {
1693
1700
  className: a("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
1694
1701
  children: d && d
1695
1702
  },
1696
1703
  l
1697
- )) }), vr = M("mobile:flex desktop:hidden flex-col gap-2", {
1704
+ )) }), Nr = E("mobile:flex desktop:hidden flex-col gap-2", {
1698
1705
  variants: {
1699
1706
  tableVariant: {
1700
1707
  filled: "px-4 py-4 odd:bg-color-primary-light-default",
1701
1708
  separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
1702
1709
  }
1703
1710
  }
1704
- }), Nr = ({ row: e, tableVariant: t, columnsVariant: r, headingsExist: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: a(vr({ tableVariant: t }), i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d, heading: l }, u) => /* @__PURE__ */ o.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !n }, i == null ? void 0 : i.wrapper), children: [
1711
+ }), sr = ({ row: e, tableVariant: t, columnsVariant: r, headingsExist: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: a(Nr({ tableVariant: t }), i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d, heading: l }, u) => /* @__PURE__ */ o.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !n }, i == null ? void 0 : i.wrapper), children: [
1705
1712
  l && /* @__PURE__ */ o.jsx("div", { className: a("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
1706
1713
  /* @__PURE__ */ o.jsx(
1707
1714
  "div",
@@ -1716,13 +1723,13 @@ const De = [
1716
1723
  children: d
1717
1724
  }
1718
1725
  )
1719
- ] }, u)) }), sr = ({ tableVariant: e, rows: t, headings: r, columnsVariant: n, classes: i }) => {
1726
+ ] }, u)) }), Cr = ({ tableVariant: e, rows: t, headings: r, columnsVariant: n, classes: i }) => {
1720
1727
  var u;
1721
- const d = ((u = br(t, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
1728
+ const d = ((u = gr(t, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
1722
1729
  return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", i == null ? void 0 : i.wrapper), children: [
1723
- l && /* @__PURE__ */ o.jsx(yr, { headings: r, columnsVariant: n, classes: i == null ? void 0 : i.desktopHeading }),
1730
+ l && /* @__PURE__ */ o.jsx(kr, { headings: r, columnsVariant: n, classes: i == null ? void 0 : i.desktopHeading }),
1724
1731
  t == null ? void 0 : t.map((p, m) => /* @__PURE__ */ o.jsx(
1725
- wr,
1732
+ vr,
1726
1733
  {
1727
1734
  rowIndex: m,
1728
1735
  tableVariant: e,
@@ -1733,7 +1740,7 @@ const De = [
1733
1740
  m
1734
1741
  )),
1735
1742
  d == null ? void 0 : d.map((p, m) => /* @__PURE__ */ o.jsx(
1736
- Nr,
1743
+ sr,
1737
1744
  {
1738
1745
  headingsExist: l,
1739
1746
  tableVariant: e,
@@ -1744,7 +1751,7 @@ const De = [
1744
1751
  m
1745
1752
  ))
1746
1753
  ] });
1747
- }, Cr = ({
1754
+ }, Tr = ({
1748
1755
  tableVariant: e,
1749
1756
  description: t,
1750
1757
  columnsVariant: r,
@@ -1755,9 +1762,9 @@ const De = [
1755
1762
  accordionConfig: u,
1756
1763
  classes: p
1757
1764
  }) => {
1758
- const m = /* @__PURE__ */ o.jsxs("div", { className: a(gr({ columnsVariant: r }), p == null ? void 0 : p.wrapper), children: [
1765
+ const m = /* @__PURE__ */ o.jsxs("div", { className: a(jr({ columnsVariant: r }), p == null ? void 0 : p.wrapper), children: [
1759
1766
  d && /* @__PURE__ */ o.jsx(W, { as: "h4", className: a("mb-4 desktop:mb-6", p == null ? void 0 : p.headline), children: d }),
1760
- /* @__PURE__ */ o.jsx(sr, { tableVariant: e, rows: i, headings: l, columnsVariant: r }),
1767
+ /* @__PURE__ */ o.jsx(Cr, { tableVariant: e, rows: i, headings: l, columnsVariant: r }),
1761
1768
  t && /* @__PURE__ */ o.jsx(
1762
1769
  "div",
1763
1770
  {
@@ -1767,10 +1774,10 @@ const De = [
1767
1774
  )
1768
1775
  ] });
1769
1776
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ o.jsx(ot, { label: n == null ? void 0 : n.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || m }) : m });
1770
- }, Tr = {
1777
+ }, Ir = {
1771
1778
  documentFilled: "files/documentFilled",
1772
1779
  documentOutline: "files/documentOutline"
1773
- }, Ir = M("size-8 transition-colors", {
1780
+ }, Mr = E("size-8 transition-colors", {
1774
1781
  variants: {
1775
1782
  iconType: {
1776
1783
  documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
@@ -1792,7 +1799,7 @@ const De = [
1792
1799
  i == null ? void 0 : i.link
1793
1800
  ),
1794
1801
  children: [
1795
- /* @__PURE__ */ o.jsx(c, { name: Tr[n], className: a(Ir({ iconType: n }), i == null ? void 0 : i.icon) }),
1802
+ /* @__PURE__ */ o.jsx(c, { name: Ir[n], className: a(Mr({ iconType: n }), i == null ? void 0 : i.icon) }),
1796
1803
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
1797
1804
  /* @__PURE__ */ o.jsx("p", { className: a("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: e }),
1798
1805
  /* @__PURE__ */ o.jsxs("div", { className: a("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
@@ -1802,26 +1809,26 @@ const De = [
1802
1809
  ] })
1803
1810
  ]
1804
1811
  }
1805
- ), Mr = ({ docs: e, config: t, title: r, iconType: n, description: i, classes: d, accordionConfig: l }) => {
1812
+ ), Or = ({ docs: e, config: t, title: r, iconType: n, description: i, classes: d, accordionConfig: l }) => {
1806
1813
  const u = /* @__PURE__ */ o.jsxs("div", { className: a("flex max-w-[680px] flex-col", d == null ? void 0 : d.wrapper), children: [
1807
1814
  r && /* @__PURE__ */ o.jsx(W, { as: "h3", className: "mb-4", children: r }),
1808
1815
  /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((p) => /* @__PURE__ */ o.jsx(Er, { iconType: n, ...p, classes: d == null ? void 0 : d.singleDocument }, p.label)) }),
1809
1816
  i && /* @__PURE__ */ o.jsx("div", { className: a("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
1810
1817
  ] });
1811
1818
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(ot, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
1812
- }, Or = ({ entity: e, classes: t, accordionsConfig: r }) => {
1819
+ }, Sr = ({ entity: e, classes: t, accordionsConfig: r }) => {
1813
1820
  var n, i, d;
1814
1821
  switch (!0) {
1815
- case mr(e):
1822
+ case xr(e):
1816
1823
  return (n = e.details) == null ? void 0 : n.map((l, u) => {
1817
1824
  var p;
1818
- return /* @__PURE__ */ o.jsx(cr, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (p = t == null ? void 0 : t.entities) == null ? void 0 : p.html }, u);
1825
+ return /* @__PURE__ */ o.jsx(br, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (p = t == null ? void 0 : t.entities) == null ? void 0 : p.html }, u);
1819
1826
  });
1820
- case xr(e):
1827
+ case fr(e):
1821
1828
  return (i = e.details) == null ? void 0 : i.map((l, u) => {
1822
1829
  var p;
1823
1830
  return /* @__PURE__ */ o.jsx(
1824
- Mr,
1831
+ Or,
1825
1832
  {
1826
1833
  accordionConfig: r == null ? void 0 : r.documentAccordion,
1827
1834
  ...l,
@@ -1830,11 +1837,11 @@ const De = [
1830
1837
  u
1831
1838
  );
1832
1839
  });
1833
- case fr(e):
1840
+ case cr(e):
1834
1841
  return (d = e.details) == null ? void 0 : d.map((l, u) => {
1835
1842
  var p;
1836
1843
  return /* @__PURE__ */ o.jsx(
1837
- Cr,
1844
+ Tr,
1838
1845
  {
1839
1846
  accordionConfig: r == null ? void 0 : r.tableAccordion,
1840
1847
  ...l,
@@ -1846,19 +1853,19 @@ const De = [
1846
1853
  default:
1847
1854
  return null;
1848
1855
  }
1849
- }, Sr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Or({ entity: e, classes: t, accordionsConfig: r }) }), Mn = ({ headline: e, tabs: t, classes: r, accordionsConfig: n }) => {
1856
+ }, Fr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Sr({ entity: e, classes: t, accordionsConfig: r }) }), En = ({ headline: e, tabs: t, classes: r, accordionsConfig: n }) => {
1850
1857
  var u, p;
1851
1858
  const [i, d] = G(0), l = Ct(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
1852
- return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ o.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsxs(H, { className: a(r == null ? void 0 : r.container), children: [
1859
+ return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ o.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsxs(_, { className: a(r == null ? void 0 : r.container), children: [
1853
1860
  /* @__PURE__ */ o.jsx(W, { className: a(r == null ? void 0 : r.headline), as: "h2", children: e }),
1854
1861
  /* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ o.jsx(hr, { tabsNames: l, activeTab: i, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
1855
- /* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (p = (u = t == null ? void 0 : t[i]) == null ? void 0 : u.contents) == null ? void 0 : p.map((m, x) => /* @__PURE__ */ o.jsx(Sr, { accordionsConfig: n, ...m, classes: r == null ? void 0 : r.entityClasses }, x)) })
1862
+ /* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (p = (u = t == null ? void 0 : t[i]) == null ? void 0 : u.contents) == null ? void 0 : p.map((m, x) => /* @__PURE__ */ o.jsx(Fr, { accordionsConfig: n, ...m, classes: r == null ? void 0 : r.entityClasses }, x)) })
1856
1863
  ] }) });
1857
- }, Fr = ({ fields: e, control: t }) => e.map(({ type: r, args: n }) => {
1864
+ }, Br = ({ fields: e, control: t }) => e.map(({ type: r, args: n }) => {
1858
1865
  const i = ke[r];
1859
1866
  return /* @__PURE__ */ Zt(i, { ...n, key: n.name, control: t });
1860
1867
  });
1861
- class Br {
1868
+ class Rr {
1862
1869
  constructor(t) {
1863
1870
  it(this, "TEXT_NODE", 3);
1864
1871
  it(this, "ELEMENT_NODE", 1);
@@ -1930,20 +1937,13 @@ class Br {
1930
1937
  return r.length;
1931
1938
  }
1932
1939
  }
1933
- const Rr = typeof window < "u";
1934
- class Hr extends Error {
1935
- constructor(t, r) {
1936
- super(t), this.originalError = r, this.name = "BrowserHTMLParserError";
1937
- }
1938
- }
1939
- class _r extends Br {
1940
+ const _r = typeof window < "u";
1941
+ class Hr extends Rr {
1940
1942
  constructor(t) {
1941
1943
  super(t);
1942
1944
  }
1943
1945
  async parseFromString(t) {
1944
- if (!Rr)
1945
- throw new Hr("HTMLParser should only be used in the browser.");
1946
- return new DOMParser().parseFromString(t, "text/html");
1946
+ return _r ? new DOMParser().parseFromString(t, "text/html") : Promise.reject();
1947
1947
  }
1948
1948
  }
1949
1949
  class wt {
@@ -2000,7 +2000,7 @@ class wt {
2000
2000
  * функция для преобразования html строки в react элементы
2001
2001
  */
2002
2002
  static async toReactNodes(t, r) {
2003
- const n = new _r(r), { nodes: i } = await n.parse(t, "node");
2003
+ const n = new Hr(r), { nodes: i } = await n.parse(t, "node");
2004
2004
  return i.map((d) => this.parseNode(d));
2005
2005
  }
2006
2006
  }
@@ -2018,25 +2018,25 @@ const Pr = ({ promises: e }) => {
2018
2018
  // @ts-expect-error disable warning
2019
2019
  /* @__PURE__ */ o.jsx(i, { ...d, children: /* @__PURE__ */ o.jsx(Pr, { promises: l }) })
2020
2020
  );
2021
- }, Lr = ["getFioSchema"], oe = (e, t, r) => {
2021
+ }, Dr = ["getFioSchema"], oe = (e, t, r) => {
2022
2022
  const n = e[t];
2023
2023
  if (k.isNil(n))
2024
2024
  throw new Error(`validation for type ${String(t)} not found`);
2025
2025
  if (!k.isFunction(n))
2026
2026
  throw new Error(`Cannot generate ${String(t)} because is not a function`);
2027
2027
  return n(r);
2028
- }, Dr = (e, t) => oe(te.base, e, t), Qr = (e, t) => oe(te.dadata, e, t), zr = (e) => {
2028
+ }, Lr = (e, t) => oe(te.base, e, t), Qr = (e, t) => oe(te.dadata, e, t), zr = (e) => {
2029
2029
  const r = e.map((n) => ({ name: n.args.name, validation: n.args.validation })).reduce((n, i) => {
2030
- const d = Lr.includes(i.validation.type) ? Qr(
2030
+ const d = Dr.includes(i.validation.type) ? Qr(
2031
2031
  i.validation.type,
2032
2032
  i.validation.args
2033
- ) : Dr(
2033
+ ) : Lr(
2034
2034
  i.validation.type,
2035
2035
  i.validation.args
2036
2036
  );
2037
2037
  return n[i.name] = d, n;
2038
2038
  }, {});
2039
- return Oe(r);
2039
+ return Se(r);
2040
2040
  }, qr = (e, t) => e.enabled ? t.map((r) => ({
2041
2041
  name: r.args.name,
2042
2042
  ...r.args.progress
@@ -2062,13 +2062,13 @@ const Pr = ({ promises: e }) => {
2062
2062
  submitProps: d,
2063
2063
  classes: l
2064
2064
  }) => {
2065
- var K, D;
2065
+ var K, L;
2066
2066
  const { submitCallback: u, ...p } = d || {}, [m, x] = G(!1), f = zr(e), { control: b, handleSubmit: v } = Ee({
2067
2067
  schema: f,
2068
- defaultValues: Se.getZodDefaults(f),
2068
+ defaultValues: Fe.getZodDefaults(f),
2069
2069
  mode: "onBlur"
2070
- }), N = qr(r, e), T = Fe({ control: b, fields: N || [], schema: f }), _ = (s) => {
2071
- u && u(s), console.warn(s);
2070
+ }), N = qr(r, e), T = Be({ control: b, fields: N || [], schema: f }), H = (s) => {
2071
+ u && u({ ...s, agree: m }), console.warn(s);
2072
2072
  };
2073
2073
  return /* @__PURE__ */ o.jsx(Ur, { children: /* @__PURE__ */ o.jsxs(
2074
2074
  "div",
@@ -2091,7 +2091,7 @@ const Pr = ({ promises: e }) => {
2091
2091
  (K = l == null ? void 0 : l.chips) == null ? void 0 : K.root
2092
2092
  ),
2093
2093
  children: [
2094
- i.image && /* @__PURE__ */ o.jsx(c, { name: i.image, className: a("size-4", (D = l == null ? void 0 : l.chips) == null ? void 0 : D.icon) }),
2094
+ i.image && /* @__PURE__ */ o.jsx(c, { name: i.image, className: a("size-4", (L = l == null ? void 0 : l.chips) == null ? void 0 : L.icon) }),
2095
2095
  i.content
2096
2096
  ]
2097
2097
  }
@@ -2100,7 +2100,7 @@ const Pr = ({ promises: e }) => {
2100
2100
  /* @__PURE__ */ o.jsxs(
2101
2101
  "form",
2102
2102
  {
2103
- onSubmit: v(_),
2103
+ onSubmit: v(H),
2104
2104
  className: a("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
2105
2105
  children: [
2106
2106
  r.enabled && /* @__PURE__ */ o.jsx(
@@ -2113,7 +2113,7 @@ const Pr = ({ promises: e }) => {
2113
2113
  classes: l == null ? void 0 : l.progressBar
2114
2114
  }
2115
2115
  ),
2116
- /* @__PURE__ */ o.jsx(Fr, { control: b, fields: e }),
2116
+ /* @__PURE__ */ o.jsx(Br, { control: b, fields: e }),
2117
2117
  /* @__PURE__ */ o.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
2118
2118
  Vr(n, m, x, l == null ? void 0 : l.approvement),
2119
2119
  /* @__PURE__ */ o.jsx(
@@ -2200,7 +2200,7 @@ const Pr = ({ promises: e }) => {
2200
2200
  text: "Вернуться на главную"
2201
2201
  }
2202
2202
  }
2203
- }), Sn = ({ status: e, navigationFn: t }) => /* @__PURE__ */ o.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ o.jsx(H, { className: "flex flex-col justify-center", children: /* @__PURE__ */ o.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
2203
+ }), Sn = ({ status: e, navigationFn: t }) => /* @__PURE__ */ o.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ o.jsx(_, { className: "flex flex-col justify-center", children: /* @__PURE__ */ o.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
2204
2204
  /* @__PURE__ */ o.jsx(
2205
2205
  "span",
2206
2206
  {
@@ -2265,7 +2265,7 @@ const Pr = ({ promises: e }) => {
2265
2265
  ] }, i.id);
2266
2266
  }), Gr = ({ separator: e, ellipsis: t, classes: r, ...n }) => {
2267
2267
  const [i, d] = G(!1), l = Tt(null);
2268
- Me(l, () => d(!1));
2268
+ Oe(l, () => d(!1));
2269
2269
  const u = Wr(n), { first: p, middle: m, last: x } = Ct(() => {
2270
2270
  let b = [], v = [], N = [];
2271
2271
  return t && (b = u.slice(0, t), v = u.slice(t, u.length - t), N = u.slice(u.length - t)), { first: b, middle: v, last: N };
@@ -2356,43 +2356,49 @@ const Kr = (e, t) => {
2356
2356
  }), Xr = (e) => ({
2357
2357
  type: lt.ROOT,
2358
2358
  payload: e
2359
- }), Jr = ({ categories: e, ...t }) => ee(
2360
- /* @__PURE__ */ o.jsx(
2361
- st.div,
2362
- {
2363
- ...t,
2364
- layout: !0,
2365
- initial: { opacity: 0 },
2366
- animate: { opacity: 1 },
2367
- transition: { duration: 0.2 },
2368
- className: "absolute bg-color-white",
2369
- children: /* @__PURE__ */ o.jsx("div", { className: "mx-auto flex w-[1140px] gap-x-[56px] py-10", children: e.map((r) => {
2370
- var i;
2371
- const n = r.link ? "a" : "p";
2372
- return /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-y-6", children: [
2373
- r.title && /* @__PURE__ */ o.jsxs(
2374
- n,
2375
- {
2376
- href: ((i = r.link) == null ? void 0 : i.href) ?? void 0,
2377
- className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
2378
- children: [
2379
- r.title,
2380
- /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowLink", className: "size-6" })
2381
- ]
2382
- }
2383
- ),
2384
- /* @__PURE__ */ o.jsx("ul", { className: "w-[328px]", children: r.children.map((d) => {
2385
- var l;
2386
- return /* @__PURE__ */ o.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ o.jsx("a", { href: (l = d.link) == null ? void 0 : l.href, className: "w-full text-16", children: d.title }) }, d.title);
2387
- }) })
2388
- ] }, r.title);
2389
- }) })
2390
- }
2391
- ),
2392
- document.body
2393
- ), Yr = ({ category: e, active: t, onActiveTabChange: r }) => {
2394
- var u, p;
2395
- const n = Tt(null), i = (u = n.current) == null ? void 0 : u.getBoundingClientRect(), d = t && !k.isArrayEmpty(e.children), l = k.isArrayEmpty(e.children) ? "a" : "span";
2359
+ }), Jr = ({ categories: e, ...t }) => {
2360
+ var r, n;
2361
+ return ee(
2362
+ /* @__PURE__ */ o.jsx(
2363
+ st.div,
2364
+ {
2365
+ ...t,
2366
+ layout: !0,
2367
+ initial: { opacity: 0 },
2368
+ animate: { opacity: 1 },
2369
+ transition: { duration: 0.2 },
2370
+ className: "absolute bg-color-white",
2371
+ children: /* @__PURE__ */ o.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: e.map((i) => {
2372
+ var l;
2373
+ const d = i.link ? "a" : "p";
2374
+ return /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-y-6", children: [
2375
+ i.title && /* @__PURE__ */ o.jsxs(
2376
+ d,
2377
+ {
2378
+ href: ((l = i.link) == null ? void 0 : l.href) ?? void 0,
2379
+ className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
2380
+ children: [
2381
+ i.title,
2382
+ /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowLink", className: "size-6" })
2383
+ ]
2384
+ }
2385
+ ),
2386
+ /* @__PURE__ */ o.jsx("ul", { className: "w-[328px]", children: i.children.map((u) => {
2387
+ var p;
2388
+ return /* @__PURE__ */ o.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ o.jsx("a", { href: (p = u.link) == null ? void 0 : p.href, className: "w-full text-16", children: u.title }) }, u.title);
2389
+ }) })
2390
+ ] }, i.title);
2391
+ }) })
2392
+ }
2393
+ ),
2394
+ /**
2395
+ * Нужно для preview, чтобы категории рендерились в iframe
2396
+ */
2397
+ ((n = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : n.body) ?? document.body
2398
+ );
2399
+ }, Yr = Te(({ category: e, active: t, onActiveTabChange: r }, n) => {
2400
+ var p, m;
2401
+ const i = n && "current" in n ? n : null, d = (p = i == null ? void 0 : i.current) == null ? void 0 : p.getBoundingClientRect(), l = t && !k.isArrayEmpty(e.children), u = k.isArrayEmpty(e.children) ? "a" : "span";
2396
2402
  return /* @__PURE__ */ o.jsxs(
2397
2403
  st.div,
2398
2404
  {
@@ -2402,21 +2408,22 @@ const Kr = (e, t) => {
2402
2408
  'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
2403
2409
  "after:w-0 after:-translate-x-1/2 after:bg-color-primary-default after:duration-100",
2404
2410
  {
2405
- "text-color-primary-default": d,
2406
- "after:w-full": d
2411
+ "text-color-primary-default": l,
2412
+ "after:w-full": l
2407
2413
  }
2408
2414
  ),
2409
2415
  onMouseEnter: () => r(e.title),
2410
2416
  onMouseLeave: () => r(null),
2411
2417
  onFocus: () => r(e.title),
2412
2418
  children: [
2413
- /* @__PURE__ */ o.jsx(l, { href: l === "a" ? (p = e.link) == null ? void 0 : p.href : void 0, className: "desk-body-regular-m outline-none", children: e.title }),
2414
- d && /* @__PURE__ */ o.jsx(
2419
+ /* @__PURE__ */ o.jsx(u, { href: u === "a" ? (m = e.link) == null ? void 0 : m.href : void 0, className: "desk-body-regular-m outline-none", children: e.title }),
2420
+ l && /* @__PURE__ */ o.jsx(
2415
2421
  Jr,
2416
2422
  {
2417
2423
  categories: e.children,
2418
2424
  style: {
2419
- top: i ? i.top + i.height : 0,
2425
+ top: d ? d.top + d.height : 0,
2426
+ left: d ? d.left : 0,
2420
2427
  width: window.innerWidth
2421
2428
  }
2422
2429
  }
@@ -2424,22 +2431,31 @@ const Kr = (e, t) => {
2424
2431
  ]
2425
2432
  }
2426
2433
  );
2427
- }, tn = Jt(Yr), en = ({ categories: e }) => {
2428
- const [t, r] = G(null), n = $t((i) => {
2429
- r(i);
2430
- }, []);
2431
- return /* @__PURE__ */ o.jsx(Ne, { mode: "sync", children: /* @__PURE__ */ o.jsxs("div", { id: "tabs", className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]", children: [
2432
- e.map((i) => /* @__PURE__ */ o.jsx(
2433
- tn,
2434
- {
2435
- category: i,
2436
- active: t === i.title,
2437
- onActiveTabChange: n
2438
- },
2439
- i.title
2440
- )),
2441
- /* @__PURE__ */ o.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
2442
- ] }) });
2434
+ }), tn = Jt(Yr), en = ({ categories: e }) => {
2435
+ const [t, r] = G(null), n = $t((d) => {
2436
+ r(d);
2437
+ }, []), i = Tt(null);
2438
+ return /* @__PURE__ */ o.jsx(Ne, { mode: "sync", children: /* @__PURE__ */ o.jsxs(
2439
+ "div",
2440
+ {
2441
+ ref: i,
2442
+ id: "tabs",
2443
+ className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
2444
+ children: [
2445
+ e.map((d) => /* @__PURE__ */ o.jsx(
2446
+ tn,
2447
+ {
2448
+ ref: i,
2449
+ category: d,
2450
+ active: t === d.title,
2451
+ onActiveTabChange: n
2452
+ },
2453
+ d.title
2454
+ )),
2455
+ /* @__PURE__ */ o.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
2456
+ ]
2457
+ }
2458
+ ) });
2443
2459
  }, rn = Jt(en), nn = ({
2444
2460
  category: e,
2445
2461
  selectedCategory: t,
@@ -2618,7 +2634,7 @@ const Kr = (e, t) => {
2618
2634
  }
2619
2635
  );
2620
2636
  }, un = ({ categories: e, helpers: t, phone: r }) => {
2621
- var p;
2637
+ var p, m, x;
2622
2638
  const n = Tt(null), i = (p = n.current) == null ? void 0 : p.getBoundingClientRect(), [d, l] = G(!1), u = () => l(!d);
2623
2639
  return /* @__PURE__ */ o.jsxs("div", { ref: n, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
2624
2640
  /* @__PURE__ */ o.jsx(c, { name: "brandLogos/logoMain", className: "w-[130px]" }),
@@ -2633,7 +2649,10 @@ const Kr = (e, t) => {
2633
2649
  style: { top: i ? i.top + i.height : 0 }
2634
2650
  }
2635
2651
  ),
2636
- document.body
2652
+ /**
2653
+ * Нужно для preview, чтобы категории рендерились в iframe
2654
+ */
2655
+ ((x = (m = document.body.querySelector("#modal-preview")) == null ? void 0 : m.contentDocument) == null ? void 0 : x.body) ?? document.body
2637
2656
  )
2638
2657
  ] });
2639
2658
  }, Fn = ({ categories: e, helpers: t, phone: r }) => {
@@ -2644,7 +2663,7 @@ const Kr = (e, t) => {
2644
2663
  Gr,
2645
2664
  {
2646
2665
  ellipsis: n ? 1 : void 0,
2647
- matcher: (i) => ({ label: Ie(i.label).split("-").join(" ") })
2666
+ matcher: (i) => ({ label: Me(i.label).split("-").join(" ") })
2648
2667
  }
2649
2668
  )
2650
2669
  ] });
@@ -2659,17 +2678,17 @@ export {
2659
2678
  J as ButtonWithHandlers,
2660
2679
  On as DynamicForm,
2661
2680
  Sn as FallbacksView,
2662
- Fr as FieldMapper,
2681
+ Br as FieldMapper,
2663
2682
  sn as Footer,
2664
- _r as HTMLParser,
2683
+ Hr as HTMLParser,
2665
2684
  ft as HTMLRenderer,
2666
2685
  vn as Header,
2667
- En as InterLinking,
2686
+ Mn as InterLinking,
2668
2687
  Tn as LongBanner,
2669
2688
  Fn as SeoHeader,
2670
2689
  Cn as Stepper,
2671
- Mn as UsefulInfo,
2672
- De as WIDGET_LIST,
2690
+ En as UsefulInfo,
2691
+ Qe as WIDGET_LIST,
2673
2692
  Ar as queryClient,
2674
2693
  j as widgetIds
2675
2694
  };