@scbt-ecom/ui 0.63.1 → 0.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 E, y as Et, z as ue, E as pe, F as Mt, 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 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-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 Ee } 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 Me, 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);
@@ -96,14 +96,14 @@ var F, zt, Be = (zt = class extends Vt {
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, He = (qt = class extends ue {
100
100
  constructor(t) {
101
101
  super();
102
102
  C(this, R);
103
103
  C(this, B);
104
104
  C(this, I);
105
105
  C(this, X);
106
- this.mutationId = t.mutationId, y(this, I, t.mutationCache), y(this, B, []), this.state = t.state || He(), this.setOptions(t.options), this.scheduleGc();
106
+ this.mutationId = t.mutationId, y(this, I, t.mutationCache), y(this, B, []), this.state = t.state || _e(), this.setOptions(t.options), this.scheduleGc();
107
107
  }
108
108
  setOptions(t) {
109
109
  this.options = t, this.updateGcTime(this.options.gcTime);
@@ -280,7 +280,7 @@ var F, zt, Be = (zt = class extends Vt {
280
280
  });
281
281
  });
282
282
  }, qt);
283
- function He() {
283
+ function _e() {
284
284
  return {
285
285
  context: void 0,
286
286
  data: void 0,
@@ -293,7 +293,7 @@ function He() {
293
293
  submittedAt: 0
294
294
  };
295
295
  }
296
- var L, S, ut, At, _e = (At = class extends Vt {
296
+ var L, S, ut, At, Pe = (At = class extends Vt {
297
297
  constructor(t = {}) {
298
298
  super();
299
299
  C(this, L);
@@ -302,9 +302,9 @@ var L, S, ut, At, _e = (At = class extends Vt {
302
302
  this.config = t, y(this, L, /* @__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 He({
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
  });
@@ -312,7 +312,7 @@ var L, S, ut, At, _e = (At = class extends Vt {
312
312
  }
313
313
  add(t) {
314
314
  h(this, L).add(t);
315
- const r = mt(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]);
@@ -321,7 +321,7 @@ var L, S, ut, At, _e = (At = class extends Vt {
321
321
  }
322
322
  remove(t) {
323
323
  if (h(this, L).delete(t)) {
324
- const r = mt(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();
@@ -387,7 +387,7 @@ var L, S, ut, At, _e = (At = class extends Vt {
387
387
  );
388
388
  }
389
389
  }, L = new WeakMap(), S = new WeakMap(), ut = new WeakMap(), At);
390
- function mt(e) {
390
+ function ht(e) {
391
391
  var t;
392
392
  return (t = e.options.scope) == null ? void 0 : t.id;
393
393
  }
@@ -406,7 +406,7 @@ function Ht(e) {
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), D = async (s, O, Q) => {
410
410
  if (T)
411
411
  return Promise.reject();
412
412
  if (O == null && s.pages.length)
@@ -421,14 +421,14 @@ function Ht(e) {
421
421
  _($);
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 ? Le : _t, Q = {
432
432
  pages: d,
433
433
  pageParams: l
434
434
  }, $ = O(n, Q);
@@ -470,11 +470,11 @@ 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 Le(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
  }
477
- var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
477
+ var g, A, U, tt, et, V, rt, nt, Ut, De = (Ut = class {
478
478
  constructor(e = {}) {
479
479
  C(this, g);
480
480
  C(this, A);
@@ -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 });
@@ -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 = M(
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 = M("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
+ }), vn = ({ 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: [
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 });
@@ -777,7 +784,7 @@ const De = [
777
784
  default:
778
785
  return null;
779
786
  }
780
- }, vn = (e) => {
787
+ }, Nn = (e) => {
781
788
  const { logoPath: t = "/", logoType: r = "main", classes: n } = e;
782
789
  return /* @__PURE__ */ o.jsx(
783
790
  "header",
@@ -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,
@@ -994,12 +1001,12 @@ const De = [
994
1001
  }
995
1002
  )
996
1003
  ] });
997
- }, Nn = ({ variant: e, ...t }) => {
1004
+ }, sn = ({ variant: e, ...t }) => {
998
1005
  switch (e) {
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;
@@ -1135,7 +1142,7 @@ const De = [
1135
1142
  }
1136
1143
  )
1137
1144
  ] });
1138
- }, sn = ({
1145
+ }, Cn = ({
1139
1146
  socialsLinks: e,
1140
1147
  phones: t,
1141
1148
  ligal: r,
@@ -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
+ }, Tn = ({ 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: [
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 = M("", {
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 = M("", {
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 = M("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 = M("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)) }), In = ({
1337
1344
  headline: e,
1338
1345
  buttonConfig: t,
1339
1346
  intent: r = "twoItems",
@@ -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
  {
@@ -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,7 +1510,7 @@ 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
1516
  return /* @__PURE__ */ o.jsx(Dt, { ...e });
@@ -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
+ }, En = (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 = M("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,
@@ -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 = M("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 = M("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 = M("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 = M("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
+ }, Er = M("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",
@@ -1780,7 +1787,7 @@ const De = [
1780
1787
  defaultVariants: {
1781
1788
  iconType: "documentOutline"
1782
1789
  }
1783
- }), Er = ({ label: e, size: t, url: r, iconType: n, classes: i }) => /* @__PURE__ */ o.jsxs(
1790
+ }), Mr = ({ label: e, size: t, url: r, iconType: n, classes: i }) => /* @__PURE__ */ o.jsxs(
1784
1791
  "a",
1785
1792
  {
1786
1793
  href: r,
@@ -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(Er({ 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
- /* @__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)) }),
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(Mr, { 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 }) }), On = ({ 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
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(H, { 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,19 +1937,19 @@ class Br {
1930
1937
  return r.length;
1931
1938
  }
1932
1939
  }
1933
- const Rr = typeof window < "u";
1934
- class Hr extends Error {
1940
+ const Hr = typeof window < "u";
1941
+ class _r extends Error {
1935
1942
  constructor(t, r) {
1936
1943
  super(t), this.originalError = r, this.name = "BrowserHTMLParserError";
1937
1944
  }
1938
1945
  }
1939
- class _r extends Br {
1946
+ class Pr extends Rr {
1940
1947
  constructor(t) {
1941
1948
  super(t);
1942
1949
  }
1943
1950
  async parseFromString(t) {
1944
- if (!Rr)
1945
- throw new Hr("HTMLParser should only be used in the browser.");
1951
+ if (!Hr)
1952
+ throw new _r("HTMLParser should only be used in the browser.");
1946
1953
  return new DOMParser().parseFromString(t, "text/html");
1947
1954
  }
1948
1955
  }
@@ -2000,12 +2007,12 @@ class wt {
2000
2007
  * функция для преобразования html строки в react элементы
2001
2008
  */
2002
2009
  static async toReactNodes(t, r) {
2003
- const n = new _r(r), { nodes: i } = await n.parse(t, "node");
2010
+ const n = new Pr(r), { nodes: i } = await n.parse(t, "node");
2004
2011
  return i.map((d) => this.parseNode(d));
2005
2012
  }
2006
2013
  }
2007
2014
  it(wt, "TEXT_NODE", 3), it(wt, "ELEMENT_NODE", 1);
2008
- const Pr = ({ promises: e }) => {
2015
+ const Lr = ({ promises: e }) => {
2009
2016
  const [t, r] = G([]);
2010
2017
  return Xt(() => {
2011
2018
  (async () => {
@@ -2016,31 +2023,31 @@ const Pr = ({ promises: e }) => {
2016
2023
  const i = r ?? se, d = r ? n : {}, l = wt.toReactNodes(e, t);
2017
2024
  return (
2018
2025
  // @ts-expect-error disable warning
2019
- /* @__PURE__ */ o.jsx(i, { ...d, children: /* @__PURE__ */ o.jsx(Pr, { promises: l }) })
2026
+ /* @__PURE__ */ o.jsx(i, { ...d, children: /* @__PURE__ */ o.jsx(Lr, { promises: l }) })
2020
2027
  );
2021
- }, Lr = ["getFioSchema"], oe = (e, t, r) => {
2028
+ }, Dr = ["getFioSchema"], oe = (e, t, r) => {
2022
2029
  const n = e[t];
2023
2030
  if (k.isNil(n))
2024
2031
  throw new Error(`validation for type ${String(t)} not found`);
2025
2032
  if (!k.isFunction(n))
2026
2033
  throw new Error(`Cannot generate ${String(t)} because is not a function`);
2027
2034
  return n(r);
2028
- }, Dr = (e, t) => oe(te.base, e, t), Qr = (e, t) => oe(te.dadata, e, t), zr = (e) => {
2035
+ }, Qr = (e, t) => oe(te.base, e, t), zr = (e, t) => oe(te.dadata, e, t), qr = (e) => {
2029
2036
  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(
2037
+ const d = Dr.includes(i.validation.type) ? zr(
2031
2038
  i.validation.type,
2032
2039
  i.validation.args
2033
- ) : Dr(
2040
+ ) : Qr(
2034
2041
  i.validation.type,
2035
2042
  i.validation.args
2036
2043
  );
2037
2044
  return n[i.name] = d, n;
2038
2045
  }, {});
2039
- return Oe(r);
2040
- }, qr = (e, t) => e.enabled ? t.map((r) => ({
2046
+ return Se(r);
2047
+ }, Ar = (e, t) => e.enabled ? t.map((r) => ({
2041
2048
  name: r.args.name,
2042
2049
  ...r.args.progress
2043
- })) : null, Ar = new Le(), Ur = ({ children: e }) => /* @__PURE__ */ o.jsx(we, { client: Ar, children: e }), Vr = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(ft, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
2050
+ })) : null, Ur = new De(), Vr = ({ children: e }) => /* @__PURE__ */ o.jsx(we, { client: Ur, children: e }), Wr = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(ft, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
2044
2051
  "label",
2045
2052
  {
2046
2053
  className: a(
@@ -2053,7 +2060,7 @@ const Pr = ({ promises: e }) => {
2053
2060
  /* @__PURE__ */ o.jsx(ft, { html: e.content, as: "div", className: n == null ? void 0 : n.content })
2054
2061
  ]
2055
2062
  }
2056
- ), On = ({
2063
+ ), Sn = ({
2057
2064
  fields: e,
2058
2065
  title: t,
2059
2066
  progress: r,
@@ -2063,14 +2070,14 @@ const Pr = ({ promises: e }) => {
2063
2070
  classes: l
2064
2071
  }) => {
2065
2072
  var K, D;
2066
- const { submitCallback: u, ...p } = d || {}, [m, x] = G(!1), f = zr(e), { control: b, handleSubmit: v } = Ee({
2073
+ const { submitCallback: u, ...p } = d || {}, [m, x] = G(!1), f = qr(e), { control: b, handleSubmit: v } = Me({
2067
2074
  schema: f,
2068
- defaultValues: Se.getZodDefaults(f),
2075
+ defaultValues: Fe.getZodDefaults(f),
2069
2076
  mode: "onBlur"
2070
- }), N = qr(r, e), T = Fe({ control: b, fields: N || [], schema: f }), _ = (s) => {
2077
+ }), N = Ar(r, e), T = Be({ control: b, fields: N || [], schema: f }), _ = (s) => {
2071
2078
  u && u(s), console.warn(s);
2072
2079
  };
2073
- return /* @__PURE__ */ o.jsx(Ur, { children: /* @__PURE__ */ o.jsxs(
2080
+ return /* @__PURE__ */ o.jsx(Vr, { children: /* @__PURE__ */ o.jsxs(
2074
2081
  "div",
2075
2082
  {
2076
2083
  id: j.form,
@@ -2113,9 +2120,9 @@ const Pr = ({ promises: e }) => {
2113
2120
  classes: l == null ? void 0 : l.progressBar
2114
2121
  }
2115
2122
  ),
2116
- /* @__PURE__ */ o.jsx(Fr, { control: b, fields: e }),
2123
+ /* @__PURE__ */ o.jsx(Br, { control: b, fields: e }),
2117
2124
  /* @__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
- Vr(n, m, x, l == null ? void 0 : l.approvement),
2125
+ Wr(n, m, x, l == null ? void 0 : l.approvement),
2119
2126
  /* @__PURE__ */ o.jsx(
2120
2127
  vt,
2121
2128
  {
@@ -2200,7 +2207,7 @@ const Pr = ({ promises: e }) => {
2200
2207
  text: "Вернуться на главную"
2201
2208
  }
2202
2209
  }
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: [
2210
+ }), Fn = ({ 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: [
2204
2211
  /* @__PURE__ */ o.jsx(
2205
2212
  "span",
2206
2213
  {
@@ -2216,7 +2223,7 @@ const Pr = ({ promises: e }) => {
2216
2223
  /* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: dt()[e].description })
2217
2224
  ] }),
2218
2225
  /* @__PURE__ */ o.jsx(vt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: dt()[e].button.text })
2219
- ] }) }) }), ie = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ o.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Wr = ({ startsWith: e, endsWith: t, matcher: r, filter: n, rootEnabled: i = !0 }) => {
2226
+ ] }) }) }), ie = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ o.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Gr = ({ startsWith: e, endsWith: t, matcher: r, filter: n, rootEnabled: i = !0 }) => {
2220
2227
  const [d, l] = G([]);
2221
2228
  return Xt(() => {
2222
2229
  if (!Yt)
@@ -2263,10 +2270,10 @@ const Pr = ({ promises: e }) => {
2263
2270
  ),
2264
2271
  d !== e.length - 1 && t
2265
2272
  ] }, i.id);
2266
- }), Gr = ({ separator: e, ellipsis: t, classes: r, ...n }) => {
2273
+ }), Kr = ({ separator: e, ellipsis: t, classes: r, ...n }) => {
2267
2274
  const [i, d] = G(!1), l = Tt(null);
2268
- Me(l, () => d(!1));
2269
- const u = Wr(n), { first: p, middle: m, last: x } = Ct(() => {
2275
+ Oe(l, () => d(!1));
2276
+ const u = Gr(n), { first: p, middle: m, last: x } = Ct(() => {
2270
2277
  let b = [], v = [], N = [];
2271
2278
  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 };
2272
2279
  }, [u, t]), f = e ?? /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowRight", className: a("size-4", r == null ? void 0 : r.separator) });
@@ -2332,7 +2339,7 @@ const Pr = ({ promises: e }) => {
2332
2339
  );
2333
2340
  };
2334
2341
  var lt = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(lt || {});
2335
- const Kr = (e, t) => {
2342
+ const $r = (e, t) => {
2336
2343
  switch (t.type) {
2337
2344
  case lt.ROOT:
2338
2345
  return {
@@ -2347,52 +2354,58 @@ const Kr = (e, t) => {
2347
2354
  default:
2348
2355
  return e;
2349
2356
  }
2350
- }, $r = (e) => {
2351
- const [t, r] = Ce(Kr, e);
2357
+ }, Zr = (e) => {
2358
+ const [t, r] = Ce($r, e);
2352
2359
  return [t, r];
2353
- }, Zr = (e) => ({
2360
+ }, Xr = (e) => ({
2354
2361
  type: lt.CURRENT,
2355
2362
  payload: e
2356
- }), Xr = (e) => ({
2363
+ }), Jr = (e) => ({
2357
2364
  type: lt.ROOT,
2358
2365
  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";
2366
+ }), Yr = ({ categories: e, ...t }) => {
2367
+ var r, n;
2368
+ return ee(
2369
+ /* @__PURE__ */ o.jsx(
2370
+ st.div,
2371
+ {
2372
+ ...t,
2373
+ layout: !0,
2374
+ initial: { opacity: 0 },
2375
+ animate: { opacity: 1 },
2376
+ transition: { duration: 0.2 },
2377
+ className: "absolute bg-color-white",
2378
+ children: /* @__PURE__ */ o.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: e.map((i) => {
2379
+ var l;
2380
+ const d = i.link ? "a" : "p";
2381
+ return /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-y-6", children: [
2382
+ i.title && /* @__PURE__ */ o.jsxs(
2383
+ d,
2384
+ {
2385
+ href: ((l = i.link) == null ? void 0 : l.href) ?? void 0,
2386
+ className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
2387
+ children: [
2388
+ i.title,
2389
+ /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowLink", className: "size-6" })
2390
+ ]
2391
+ }
2392
+ ),
2393
+ /* @__PURE__ */ o.jsx("ul", { className: "w-[328px]", children: i.children.map((u) => {
2394
+ var p;
2395
+ 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);
2396
+ }) })
2397
+ ] }, i.title);
2398
+ }) })
2399
+ }
2400
+ ),
2401
+ /**
2402
+ * Нужно для preview, чтобы категории рендерились в iframe
2403
+ */
2404
+ ((n = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : n.body) ?? document.body
2405
+ );
2406
+ }, tn = Te(({ category: e, active: t, onActiveTabChange: r }, n) => {
2407
+ var p, m;
2408
+ 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
2409
  return /* @__PURE__ */ o.jsxs(
2397
2410
  st.div,
2398
2411
  {
@@ -2402,21 +2415,22 @@ const Kr = (e, t) => {
2402
2415
  'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
2403
2416
  "after:w-0 after:-translate-x-1/2 after:bg-color-primary-default after:duration-100",
2404
2417
  {
2405
- "text-color-primary-default": d,
2406
- "after:w-full": d
2418
+ "text-color-primary-default": l,
2419
+ "after:w-full": l
2407
2420
  }
2408
2421
  ),
2409
2422
  onMouseEnter: () => r(e.title),
2410
2423
  onMouseLeave: () => r(null),
2411
2424
  onFocus: () => r(e.title),
2412
2425
  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(
2415
- Jr,
2426
+ /* @__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 }),
2427
+ l && /* @__PURE__ */ o.jsx(
2428
+ Yr,
2416
2429
  {
2417
2430
  categories: e.children,
2418
2431
  style: {
2419
- top: i ? i.top + i.height : 0,
2432
+ top: d ? d.top + d.height : 0,
2433
+ left: d ? d.left : 0,
2420
2434
  width: window.innerWidth
2421
2435
  }
2422
2436
  }
@@ -2424,23 +2438,32 @@ const Kr = (e, t) => {
2424
2438
  ]
2425
2439
  }
2426
2440
  );
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
- ] }) });
2443
- }, rn = Jt(en), nn = ({
2441
+ }), en = Jt(tn), rn = ({ categories: e }) => {
2442
+ const [t, r] = G(null), n = $t((d) => {
2443
+ r(d);
2444
+ }, []), i = Tt(null);
2445
+ return /* @__PURE__ */ o.jsx(Ne, { mode: "sync", children: /* @__PURE__ */ o.jsxs(
2446
+ "div",
2447
+ {
2448
+ ref: i,
2449
+ id: "tabs",
2450
+ className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
2451
+ children: [
2452
+ e.map((d) => /* @__PURE__ */ o.jsx(
2453
+ en,
2454
+ {
2455
+ ref: i,
2456
+ category: d,
2457
+ active: t === d.title,
2458
+ onActiveTabChange: n
2459
+ },
2460
+ d.title
2461
+ )),
2462
+ /* @__PURE__ */ o.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
2463
+ ]
2464
+ }
2465
+ ) });
2466
+ }, nn = Jt(rn), on = ({
2444
2467
  category: e,
2445
2468
  selectedCategory: t,
2446
2469
  onCurrentCategoryChange: r,
@@ -2487,20 +2510,20 @@ const Kr = (e, t) => {
2487
2510
  )
2488
2511
  ]
2489
2512
  }
2490
- ), on = ({ categories: e, helpers: t, phone: r }) => {
2491
- const [n, i] = $r({ root: e[0].children[0], current: e[0].children[0] });
2513
+ ), dn = ({ categories: e, helpers: t, phone: r }) => {
2514
+ const [n, i] = Zr({ root: e[0].children[0], current: e[0].children[0] });
2492
2515
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2493
2516
  /* @__PURE__ */ o.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
2494
2517
  /* @__PURE__ */ o.jsx(c, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
2495
2518
  e.map((d) => {
2496
2519
  const l = n.root.title === d.title;
2497
2520
  return /* @__PURE__ */ o.jsx(
2498
- nn,
2521
+ on,
2499
2522
  {
2500
2523
  category: d,
2501
2524
  selectedCategory: n.current,
2502
- onCurrentCategoryChange: (u) => i(Zr(u)),
2503
- onRootCategoryChange: (u) => i(Xr(u)),
2525
+ onCurrentCategoryChange: (u) => i(Xr(u)),
2526
+ onRootCategoryChange: (u) => i(Jr(u)),
2504
2527
  active: l
2505
2528
  },
2506
2529
  d.title
@@ -2529,9 +2552,9 @@ const Kr = (e, t) => {
2529
2552
  }
2530
2553
  )
2531
2554
  ] }),
2532
- /* @__PURE__ */ o.jsx(rn, { categories: n.current.children })
2555
+ /* @__PURE__ */ o.jsx(nn, { categories: n.current.children })
2533
2556
  ] });
2534
- }, dn = ({ category: e }) => /* @__PURE__ */ o.jsx(
2557
+ }, an = ({ category: e }) => /* @__PURE__ */ o.jsx(
2535
2558
  ot,
2536
2559
  {
2537
2560
  label: e.title ?? "",
@@ -2572,11 +2595,11 @@ const Kr = (e, t) => {
2572
2595
  }) })
2573
2596
  },
2574
2597
  e.title
2575
- ), an = (e) => e.map((t) => ({
2598
+ ), ln = (e) => e.map((t) => ({
2576
2599
  value: t.title ?? "",
2577
2600
  label: t.title ?? ""
2578
- })), ln = ({ categories: e, helpers: t, phone: r, ...n }) => {
2579
- const i = an(e), [d, l] = G(i[0]), u = (m) => {
2601
+ })), un = ({ categories: e, helpers: t, phone: r, ...n }) => {
2602
+ const i = ln(e), [d, l] = G(i[0]), u = (m) => {
2580
2603
  k.isUndefined(m) || k.isArray(m) || l(m);
2581
2604
  }, p = Ct(() => {
2582
2605
  var m;
@@ -2598,7 +2621,7 @@ const Kr = (e, t) => {
2598
2621
  /* @__PURE__ */ o.jsx(Kt.SelectBase, { label: "Категория", options: i, value: d, onChange: u }),
2599
2622
  /* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: p.map((m) => {
2600
2623
  var x;
2601
- return k.isArrayEmpty(m.children) ? /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsx("a", { href: (x = m.link) == null ? void 0 : x.href, className: "desk-body-regular-m inline-block w-full", children: m.title }) }, m.title) : /* @__PURE__ */ o.jsx(dn, { category: m }, m.title);
2624
+ return k.isArrayEmpty(m.children) ? /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsx("a", { href: (x = m.link) == null ? void 0 : x.href, className: "desk-body-regular-m inline-block w-full", children: m.title }) }, m.title) : /* @__PURE__ */ o.jsx(an, { category: m }, m.title);
2602
2625
  }) }),
2603
2626
  /* @__PURE__ */ o.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
2604
2627
  /* @__PURE__ */ o.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
@@ -2617,15 +2640,15 @@ const Kr = (e, t) => {
2617
2640
  ]
2618
2641
  }
2619
2642
  );
2620
- }, un = ({ categories: e, helpers: t, phone: r }) => {
2621
- var p;
2643
+ }, pn = ({ categories: e, helpers: t, phone: r }) => {
2644
+ var p, m, x;
2622
2645
  const n = Tt(null), i = (p = n.current) == null ? void 0 : p.getBoundingClientRect(), [d, l] = G(!1), u = () => l(!d);
2623
2646
  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
2647
  /* @__PURE__ */ o.jsx(c, { name: "brandLogos/logoMain", className: "w-[130px]" }),
2625
2648
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ o.jsx(c, { name: d ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
2626
2649
  d && ee(
2627
2650
  /* @__PURE__ */ o.jsx(
2628
- ln,
2651
+ un,
2629
2652
  {
2630
2653
  categories: e,
2631
2654
  helpers: t,
@@ -2633,44 +2656,47 @@ const Kr = (e, t) => {
2633
2656
  style: { top: i ? i.top + i.height : 0 }
2634
2657
  }
2635
2658
  ),
2636
- document.body
2659
+ /**
2660
+ * Нужно для preview, чтобы категории рендерились в iframe
2661
+ */
2662
+ ((x = (m = document.body.querySelector("#modal-preview")) == null ? void 0 : m.contentDocument) == null ? void 0 : x.body) ?? document.body
2637
2663
  )
2638
2664
  ] });
2639
- }, Fn = ({ categories: e, helpers: t, phone: r }) => {
2665
+ }, Bn = ({ categories: e, helpers: t, phone: r }) => {
2640
2666
  const { isMobile: n } = Y();
2641
2667
  return /* @__PURE__ */ o.jsxs("div", { id: j.seoHeader, "data-test-id": j.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
2642
- n ? /* @__PURE__ */ o.jsx(un, { categories: e.map((i) => i.children).flat(), helpers: t, phone: r }) : /* @__PURE__ */ o.jsx(on, { categories: e, helpers: t, phone: r }),
2668
+ n ? /* @__PURE__ */ o.jsx(pn, { categories: e.map((i) => i.children).flat(), helpers: t, phone: r }) : /* @__PURE__ */ o.jsx(dn, { categories: e, helpers: t, phone: r }),
2643
2669
  /* @__PURE__ */ o.jsx(
2644
- Gr,
2670
+ Kr,
2645
2671
  {
2646
2672
  ellipsis: n ? 1 : void 0,
2647
- matcher: (i) => ({ label: Ie(i.label).split("-").join(" ") })
2673
+ matcher: (i) => ({ label: Ee(i.label).split("-").join(" ") })
2648
2674
  }
2649
2675
  )
2650
2676
  ] });
2651
2677
  };
2652
2678
  export {
2653
2679
  kt as Advantages,
2654
- In as AuthProvider,
2655
- Nn as Banner,
2680
+ En as AuthProvider,
2681
+ sn as Banner,
2656
2682
  Pt as BannerWithSeparateImg,
2657
- wn as Benefit,
2658
- Gr as Breadcrumbs,
2683
+ vn as Benefit,
2684
+ Kr as Breadcrumbs,
2659
2685
  J as ButtonWithHandlers,
2660
- On as DynamicForm,
2661
- Sn as FallbacksView,
2662
- Fr as FieldMapper,
2663
- sn as Footer,
2664
- _r as HTMLParser,
2686
+ Sn as DynamicForm,
2687
+ Fn as FallbacksView,
2688
+ Br as FieldMapper,
2689
+ Cn as Footer,
2690
+ Pr as HTMLParser,
2665
2691
  ft as HTMLRenderer,
2666
- vn as Header,
2667
- En as InterLinking,
2668
- Tn as LongBanner,
2669
- Fn as SeoHeader,
2670
- Cn as Stepper,
2671
- Mn as UsefulInfo,
2672
- De as WIDGET_LIST,
2673
- Ar as queryClient,
2692
+ Nn as Header,
2693
+ Mn as InterLinking,
2694
+ In as LongBanner,
2695
+ Bn as SeoHeader,
2696
+ Tn as Stepper,
2697
+ On as UsefulInfo,
2698
+ Qe as WIDGET_LIST,
2699
+ Ur as queryClient,
2674
2700
  j as widgetIds
2675
2701
  };
2676
2702
  //# sourceMappingURL=widget.js.map