@scbt-ecom/ui 0.57.0 → 0.58.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.
Files changed (30) hide show
  1. package/dist/{index-C8bHj4_Y.js → index-Bnb3sS3q.js} +6 -3
  2. package/dist/{index-C8bHj4_Y.js.map → index-Bnb3sS3q.js.map} +1 -1
  3. package/dist/shared/ui/button/model/helpers.d.ts +1 -1
  4. package/dist/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +1 -1
  5. package/dist/shared/ui/formElements/uncontrolled/index.d.ts +3 -3
  6. package/dist/shared/ui/formElements/uncontrolled/select/Select.d.ts +1 -1
  7. package/dist/shared/ui/formElements/uncontrolled/select/ui/SelectItem.d.ts +1 -1
  8. package/dist/shared/ui/formElements/uncontrolled/textarea/Textarea.d.ts +1 -1
  9. package/dist/ui.js +2 -2
  10. package/dist/widget.js +624 -605
  11. package/dist/widget.js.map +1 -1
  12. package/dist/widgets/advantages/Advantages.d.ts +4 -3
  13. package/dist/widgets/banner/Banner.d.ts +17 -3
  14. package/dist/widgets/banner/ui/banners/BannerWithSeparateImg.d.ts +1 -1
  15. package/dist/widgets/benefit/model/types.d.ts +5 -1
  16. package/dist/widgets/benefit/ui/BenefitItem.d.ts +6 -2
  17. package/dist/widgets/footer/Footer.d.ts +10 -9
  18. package/dist/widgets/footer/model/types.d.ts +34 -12
  19. package/dist/widgets/footer/ui/NavLinks.d.ts +3 -3
  20. package/dist/widgets/header/Header.d.ts +2 -2
  21. package/dist/widgets/header/model/helpers.d.ts +2 -2
  22. package/dist/widgets/header/model/types.d.ts +4 -5
  23. package/dist/widgets/interLinking/InterLinking.d.ts +1 -1
  24. package/dist/widgets/interLinking/model/types.d.ts +2 -4
  25. package/dist/widgets/longBanner/LongBanner.d.ts +13 -6
  26. package/dist/widgets/longBanner/model/types.d.ts +12 -15
  27. package/dist/widgets/longBanner/ui/TextItem.d.ts +1 -1
  28. package/dist/widgets/longBanner/ui/TextList.d.ts +3 -3
  29. package/dist/widgets/stepper/Stepper.d.ts +3 -5
  30. package/package.json +1 -1
package/dist/widget.js CHANGED
@@ -1,17 +1,33 @@
1
- var re = Object.defineProperty;
2
- var oe = (r, t, o) => t in r ? re(r, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[t] = o;
3
- var C = (r, t, o) => oe(r, typeof t != "symbol" ? t + "" : t, o);
4
- import { j as e, B as N, c as g, R as k, P as W, b as ne, H as w, I as c, C as F, a as ie, L as de, d as z, A as E, e as le, f as ae, U as xe } from "./index-C8bHj4_Y.js";
5
- import { s as G, c as Z, g as O } from "./uuid-DQgafI7K.js";
1
+ var te = Object.defineProperty;
2
+ var re = (o, t, i) => t in o ? te(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
3
+ var I = (o, t, i) => re(o, typeof t != "symbol" ? t + "" : t, i);
4
+ import { j as e, B as O, c, R as w, P as Z, b as oe, H as y, I as b, C as H, a as ne, L as ie, d as R, A as B, e as de, f as le, U as pe } from "./index-Bnb3sS3q.js";
6
5
  import { c as l, T as j } from "./typeGuards-Bhdr9KYW.js";
7
- import { u as v, b as pe, a as me } from "./useDebounce-CK7Ghu8F.js";
8
- import * as T from "react";
9
- import { useCallback as ue, useState as B, useMemo as $, createElement as X, Fragment as he, useEffect as q, useRef as fe } from "react";
10
- import { i as J } from "./isClient-C9aZtt2Q.js";
11
- import { o as ce } from "./utils-Cc0awqbk.js";
12
- import { z as K, Z as je } from "./index-DskTH4KE.js";
13
- import { u as be } from "./useFieldsProgress-BeFcsVuB.js";
14
- const ge = g(
6
+ import * as E from "react";
7
+ import { useCallback as xe, useState as _, useMemo as $, createElement as X, Fragment as ae, useEffect as q, useRef as me } from "react";
8
+ import { s as ue, c as J, g as D } from "./uuid-DQgafI7K.js";
9
+ import { i as K } from "./isClient-C9aZtt2Q.js";
10
+ import { u as C, b as fe, a as he } from "./useDebounce-CK7Ghu8F.js";
11
+ import { o as be } from "./utils-Cc0awqbk.js";
12
+ import { z as Q, Z as je } from "./index-DskTH4KE.js";
13
+ import { u as ce } from "./useFieldsProgress-BeFcsVuB.js";
14
+ const ke = (o) => xe(() => {
15
+ switch (o.handler) {
16
+ case "navigate": {
17
+ const { url: i, target: n, rel: r } = o;
18
+ K && (window == null || window.open(i, n, r));
19
+ break;
20
+ }
21
+ case "scroll": {
22
+ const { widgetId: i } = o ?? "";
23
+ ue({ widgetId: i });
24
+ break;
25
+ }
26
+ }
27
+ }, [o]), v = ({ handlerOptions: o, ...t }) => {
28
+ const i = ke(o);
29
+ return /* @__PURE__ */ e.jsx(O, { onClick: i, ...t, children: t.children });
30
+ }, ge = c(
15
31
  "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",
16
32
  {
17
33
  variants: {
@@ -22,52 +38,43 @@ const ge = g(
22
38
  }
23
39
  }
24
40
  }
25
- ), ke = ({
26
- subtitle: r,
41
+ ), we = ({
42
+ subtitle: o,
27
43
  title: t,
28
- img: o,
44
+ img: i,
29
45
  mobileImg: n,
30
- classes: i,
46
+ classes: r,
31
47
  withButton: d,
32
- buttonText: a,
48
+ button: p,
33
49
  variant: x,
34
- color: m
50
+ color: a
35
51
  }) => {
36
- const { isDesktop: u } = v(), p = /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(
37
- N,
38
- {
39
- intent: "primary",
40
- className: l("desktop:w-[200px]", i == null ? void 0 : i.button),
41
- onClick: () => G({ widgetId: "stepper" }),
42
- size: "lg",
43
- children: a
44
- }
45
- ) });
52
+ const { isDesktop: m } = C();
46
53
  return /* @__PURE__ */ e.jsxs(
47
54
  "li",
48
55
  {
49
- style: { backgroundColor: m ?? "#f4f8fe" },
50
- className: l(ge({ variant: x }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
56
+ style: { backgroundColor: a ?? "#f4f8fe" },
57
+ className: l(ge({ variant: x }), { "pb-0": n }, { "pb-12": !n }, r == null ? void 0 : r.root),
51
58
  children: [
52
- /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
53
- /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
54
- /* @__PURE__ */ e.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: l("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
59
+ /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", r == null ? void 0 : r.wrapper), children: [
60
+ /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-4", r == null ? void 0 : r.textContainer), children: [
61
+ /* @__PURE__ */ e.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: l("desktop:desk-title-bold-s", r == null ? void 0 : r.title) }),
55
62
  /* @__PURE__ */ e.jsx(
56
63
  "div",
57
64
  {
58
- dangerouslySetInnerHTML: { __html: r },
59
- className: l("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
65
+ dangerouslySetInnerHTML: { __html: o },
66
+ className: l("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", r == null ? void 0 : r.subtitle)
60
67
  }
61
68
  )
62
69
  ] }),
63
- d && u && p
70
+ d && m && (p == null ? void 0 : p.handlerOptions) && /* @__PURE__ */ e.jsx(v, { intent: "primary", className: l("desktop:w-[200px]", r == null ? void 0 : r.button), size: "lg", ...p })
64
71
  ] }),
65
- (n || u) && o && /* @__PURE__ */ e.jsx("div", { className: l("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: o && "url" in o && j.isObject(o) ? /* @__PURE__ */ e.jsx("img", { className: l("h-[246px] object-cover", i == null ? void 0 : i.img), src: o.url, alt: t }) : o })
72
+ (n || m) && i && /* @__PURE__ */ e.jsx("div", { className: l("flex w-full justify-end", r == null ? void 0 : r.imgContainer), children: i && "url" in i && j.isObject(i) ? /* @__PURE__ */ e.jsx("img", { className: l("h-[246px] object-cover", r == null ? void 0 : r.img), src: i.url, alt: t }) : i })
66
73
  ]
67
74
  },
68
75
  t
69
76
  );
70
- }, we = g("grid gap-4", {
77
+ }, ye = c("grid gap-4", {
71
78
  variants: {
72
79
  variant: {
73
80
  twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
@@ -75,111 +82,69 @@ const ge = g(
75
82
  fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
76
83
  }
77
84
  }
78
- }), Lt = ({ headline: r, details: t, variant: o, classes: n }) => /* @__PURE__ */ e.jsx("section", { id: "benefit", className: l("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ e.jsxs(k, { className: n == null ? void 0 : n.container, children: [
85
+ }), Ft = ({ headline: o, details: t, variant: i, classes: n }) => /* @__PURE__ */ e.jsx("section", { id: "benefit", className: l("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ e.jsxs(w, { className: n == null ? void 0 : n.container, children: [
79
86
  /* @__PURE__ */ e.jsx(
80
87
  "div",
81
88
  {
82
- dangerouslySetInnerHTML: { __html: r },
89
+ dangerouslySetInnerHTML: { __html: o },
83
90
  className: l("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", n == null ? void 0 : n.heading)
84
91
  }
85
92
  ),
86
- /* @__PURE__ */ e.jsx("ul", { className: l(we({ variant: o }), n == null ? void 0 : n.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ e.jsx(ke, { variant: o, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
87
- ] }) }), ye = (r) => ue(() => {
88
- switch (r.handler) {
89
- case "navigate": {
90
- const { url: o, target: n, rel: i } = r;
91
- J && (window == null || window.open(o, n, i));
92
- break;
93
- }
94
- case "scroll": {
95
- const { widgetId: o } = r ?? "";
96
- G({ widgetId: o });
97
- break;
98
- }
99
- }
100
- }, [r]), Ne = ({ handlerOptions: r, ...t }) => {
101
- const o = ye(r);
102
- return /* @__PURE__ */ e.jsx(N, { onClick: o, ...t, children: t.children });
103
- }, ve = (r) => {
104
- const { variant: t, details: o } = r;
105
- switch (t) {
93
+ /* @__PURE__ */ e.jsx("ul", { className: l(ye({ variant: i }), n == null ? void 0 : n.grid), children: t == null ? void 0 : t.map((r) => /* @__PURE__ */ e.jsx(we, { variant: i, classes: n == null ? void 0 : n.item, ...r }, r.title)) })
94
+ ] }) }), Ne = ({ variant: o, details: t }) => {
95
+ switch (o) {
106
96
  case "withButton":
107
- return /* @__PURE__ */ e.jsx(Ne, { ...o });
97
+ return /* @__PURE__ */ e.jsx(v, { ...t });
108
98
  case "withPhone":
109
- return /* @__PURE__ */ e.jsx(W, { classes: { root: "items-end" }, ...o, phone: Z(o.phone) });
99
+ return /* @__PURE__ */ e.jsx(Z, { classes: { root: "items-end" }, ...t, phone: J(t.phone) });
110
100
  default:
111
101
  return null;
112
102
  }
113
- }, zt = ({ logoPath: r = "/", logoType: t = "main", config: o, classes: n }) => /* @__PURE__ */ e.jsx(
114
- "header",
115
- {
116
- id: "header",
117
- className: l("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", n == null ? void 0 : n.header),
118
- children: /* @__PURE__ */ e.jsx(k, { className: l(n == null ? void 0 : n.container), children: /* @__PURE__ */ e.jsxs("div", { className: l("flex items-center justify-between gap-5", n == null ? void 0 : n.wrapper), children: [
119
- /* @__PURE__ */ e.jsx(
120
- "a",
121
- {
122
- href: r,
123
- "aria-label": "logo",
124
- target: "_blank",
125
- rel: "noreferrer",
126
- className: l(
127
- "flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
128
- n == null ? void 0 : n.logo
129
- ),
130
- children: ne[t]
131
- }
132
- ),
133
- ve(o)
134
- ] }) })
135
- }
136
- ), Q = ({ buttonsConfig: r, classes: t, className: o }) => {
137
- var i;
138
- const n = (r == null ? void 0 : r.secondary) && r.secondary.children;
139
- return /* @__PURE__ */ e.jsxs(
140
- "div",
103
+ }, Lt = (o) => {
104
+ const { logoPath: t = "/", logoType: i = "main", classes: n } = o;
105
+ return /* @__PURE__ */ e.jsx(
106
+ "header",
141
107
  {
142
- "data-id": "banner-buttons-group",
143
- className: l(
144
- "grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
145
- { "flex items-center gap-4": n },
146
- t == null ? void 0 : t.group,
147
- o
148
- ),
149
- children: [
150
- /* @__PURE__ */ e.jsx(N, { intent: "primary", ...r.primary, isFull: !0, className: l("desktop:max-w-[216px]", t == null ? void 0 : t.primary), children: r.primary.children }),
151
- n && /* @__PURE__ */ e.jsx(
152
- N,
108
+ id: "header",
109
+ className: l("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", n == null ? void 0 : n.header),
110
+ children: /* @__PURE__ */ e.jsx(w, { className: l(n == null ? void 0 : n.container), children: /* @__PURE__ */ e.jsxs("div", { className: l("flex items-center justify-between gap-5", n == null ? void 0 : n.wrapper), children: [
111
+ /* @__PURE__ */ e.jsx(
112
+ "a",
153
113
  {
154
- intent: "secondary",
155
- ...r == null ? void 0 : r.secondary,
156
- isFull: !0,
157
- className: l("desktop:max-w-[216px]", t == null ? void 0 : t.secondary),
158
- children: (i = r == null ? void 0 : r.secondary) == null ? void 0 : i.children
114
+ href: t,
115
+ "aria-label": "logo",
116
+ target: "_blank",
117
+ rel: "noreferrer",
118
+ className: l(
119
+ "flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
120
+ n == null ? void 0 : n.logo
121
+ ),
122
+ children: oe[i]
159
123
  }
160
- )
161
- ]
124
+ ),
125
+ Ne(o)
126
+ ] }) })
162
127
  }
163
128
  );
164
- }, Ce = ({
165
- headTitle: r,
129
+ }, ve = ({
130
+ headTitle: o,
166
131
  subtitle: t,
167
- buttonsConfig: o,
132
+ buttonsConfig: i,
168
133
  advantages: n,
169
- classes: i,
134
+ classes: r,
170
135
  imgMobile: d,
171
- imgDesktop: a,
136
+ imgDesktop: p,
172
137
  color: x
173
138
  }) => {
174
- var b;
175
- const { isDesktop: m, isMobile: u } = v(), p = d && "url" in d && j.isObject(d) ? /* @__PURE__ */ e.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: d.url }) : d, h = a && "url" in a && j.isObject(a) ? /* @__PURE__ */ e.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: a.url }) : a, f = /* @__PURE__ */ e.jsx(
139
+ var N;
140
+ const { isDesktop: a, isMobile: m } = C(), { primary: u, secondary: f } = i || {}, h = d && "url" in d && j.isObject(d) ? /* @__PURE__ */ e.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: d.url }) : d, g = p && "url" in p && j.isObject(p) ? /* @__PURE__ */ e.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: p.url }) : p, k = /* @__PURE__ */ e.jsx(
176
141
  "div",
177
142
  {
178
143
  className: l(
179
144
  "flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
180
- i == null ? void 0 : i.advantageContainer
145
+ r == null ? void 0 : r.advantageContainer
181
146
  ),
182
- children: (n == null ? void 0 : n.config.details) && ((b = n == null ? void 0 : n.config.details) == null ? void 0 : b.length) > 0 && /* @__PURE__ */ e.jsx(Y, { ...n })
147
+ children: (n == null ? void 0 : n.details) && ((N = n == null ? void 0 : n.details) == null ? void 0 : N.items.length) > 0 && /* @__PURE__ */ e.jsx(Y, { ...n })
183
148
  }
184
149
  );
185
150
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -188,116 +153,171 @@ const ge = g(
188
153
  {
189
154
  style: { backgroundColor: x ?? "#d9edff" },
190
155
  "data-test-id": "banner",
191
- className: l("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
156
+ className: l("relative h-[552px] desktop:h-[456px]", r == null ? void 0 : r.root),
192
157
  children: [
193
- /* @__PURE__ */ e.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 z-[-1] mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: u ? p : h }),
194
- /* @__PURE__ */ e.jsxs(k, { className: l("h-full", i == null ? void 0 : i.container), children: [
195
- /* @__PURE__ */ e.jsx("div", { className: l("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ e.jsxs("div", { className: l("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
196
- /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4", children: [
158
+ /* @__PURE__ */ e.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: m ? h : g }),
159
+ /* @__PURE__ */ e.jsxs(w, { className: l("h-full", r == null ? void 0 : r.container), children: [
160
+ /* @__PURE__ */ e.jsx("div", { className: l("flex h-full", r == null ? void 0 : r.wrapper), children: /* @__PURE__ */ e.jsxs("div", { className: l("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", r == null ? void 0 : r.textBlock), children: [
161
+ /* @__PURE__ */ e.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
197
162
  /* @__PURE__ */ e.jsx(
198
163
  "div",
199
164
  {
200
- dangerouslySetInnerHTML: { __html: r },
201
- className: l("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
165
+ dangerouslySetInnerHTML: { __html: o },
166
+ className: l("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", r == null ? void 0 : r.title)
202
167
  }
203
168
  ),
204
169
  /* @__PURE__ */ e.jsx(
205
170
  "div",
206
171
  {
207
172
  dangerouslySetInnerHTML: { __html: t },
208
- className: l("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
173
+ className: l("desk-body-regular-l text-color-dark", r == null ? void 0 : r.subtitle)
209
174
  }
210
175
  )
211
176
  ] }),
212
- /* @__PURE__ */ e.jsx(Q, { className: "self-end desktop:self-center", buttonsConfig: o, classes: i })
177
+ /* @__PURE__ */ e.jsxs(
178
+ "div",
179
+ {
180
+ className: l(
181
+ "grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col self-end justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:self-center desktop:px-0",
182
+ { "flex items-center gap-4": f == null ? void 0 : f.enabled },
183
+ r == null ? void 0 : r.group
184
+ ),
185
+ children: [
186
+ u.enabled && /* @__PURE__ */ e.jsx(
187
+ v,
188
+ {
189
+ className: l("w-full desktop:max-w-[216px]", r == null ? void 0 : r.primary),
190
+ size: "lg",
191
+ intent: "primary",
192
+ ...u.buttonContent
193
+ }
194
+ ),
195
+ (f == null ? void 0 : f.enabled) && /* @__PURE__ */ e.jsx(
196
+ v,
197
+ {
198
+ intent: "secondary",
199
+ className: l("w-full desktop:max-w-[216px]", r == null ? void 0 : r.secondary),
200
+ ...u.buttonContent
201
+ }
202
+ )
203
+ ]
204
+ }
205
+ )
213
206
  ] }) }),
214
- m && f
207
+ a && (n == null ? void 0 : n.enabled) && k
215
208
  ] })
216
209
  ]
217
210
  }
218
211
  ),
219
- u && f
212
+ m && (n == null ? void 0 : n.enabled) && k
220
213
  ] });
221
- }, R = ({
222
- headTitle: r,
214
+ }, V = ({
215
+ headTitle: o,
223
216
  subtitle: t,
224
- buttonsConfig: o,
217
+ buttonsConfig: i,
225
218
  advantages: n,
226
- classes: i,
219
+ classes: r,
227
220
  imgMobile: d,
228
- withAdvantages: a,
229
- imgDesktop: x,
230
- color: m
221
+ imgDesktop: p,
222
+ color: x
231
223
  }) => {
232
- var y;
233
- const { isDesktop: u, isMobile: p } = v(), h = d && "url" in d && j.isObject(d) ? /* @__PURE__ */ e.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: d.url }) : d, f = x && "url" in x && j.isObject(x) ? /* @__PURE__ */ e.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: x.url }) : x, b = /* @__PURE__ */ e.jsx(
224
+ var N;
225
+ const { isDesktop: a, isMobile: m } = C(), { primary: u, secondary: f } = i || {}, h = d && "url" in d && j.isObject(d) ? /* @__PURE__ */ e.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: d.url }) : d, g = p && "url" in p && j.isObject(p) ? /* @__PURE__ */ e.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: p.url }) : p, k = /* @__PURE__ */ e.jsx(
234
226
  "div",
235
227
  {
236
228
  className: l(
237
229
  "flex items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:p-0",
238
- i == null ? void 0 : i.advantageContainer
230
+ r == null ? void 0 : r.advantageContainer
239
231
  ),
240
- children: (n == null ? void 0 : n.config.details) && ((y = n == null ? void 0 : n.config.details) == null ? void 0 : y.length) > 0 && /* @__PURE__ */ e.jsx(Y, { ...n })
232
+ children: (n == null ? void 0 : n.details) && ((N = n == null ? void 0 : n.details) == null ? void 0 : N.items.length) > 0 && /* @__PURE__ */ e.jsx(Y, { ...n })
241
233
  }
242
234
  );
243
235
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
244
236
  /* @__PURE__ */ e.jsx(
245
237
  "section",
246
238
  {
247
- style: { backgroundColor: m ?? "#d9edff" },
239
+ style: { backgroundColor: x ?? "#d9edff" },
248
240
  "data-test-id": "banner",
249
- className: l("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
250
- children: /* @__PURE__ */ e.jsxs(k, { className: l("relative", i == null ? void 0 : i.container), children: [
251
- /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
241
+ className: l("bg-banner-skyblue-300 desktop:h-[456px]", r == null ? void 0 : r.root),
242
+ children: /* @__PURE__ */ e.jsxs(w, { className: l("relative", r == null ? void 0 : r.container), children: [
243
+ /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col desktop:flex-row desktop:justify-between", r == null ? void 0 : r.wrapper), children: [
252
244
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
253
- /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
245
+ /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-4 pt-6 desktop:pt-0", r == null ? void 0 : r.textBlock), children: [
254
246
  /* @__PURE__ */ e.jsx(
255
247
  "div",
256
248
  {
257
- dangerouslySetInnerHTML: { __html: r },
258
- className: l("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
249
+ dangerouslySetInnerHTML: { __html: o },
250
+ className: l("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", r == null ? void 0 : r.title)
259
251
  }
260
252
  ),
261
253
  /* @__PURE__ */ e.jsx(
262
254
  "div",
263
255
  {
264
256
  dangerouslySetInnerHTML: { __html: t },
265
- className: l("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
257
+ className: l("desk-body-regular-l text-color-dark", r == null ? void 0 : r.subtitle)
266
258
  }
267
259
  )
268
260
  ] }),
269
- /* @__PURE__ */ e.jsx(Q, { buttonsConfig: o, classes: i })
261
+ /* @__PURE__ */ e.jsxs(
262
+ "div",
263
+ {
264
+ className: l(
265
+ "grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
266
+ { "flex items-center gap-4": f == null ? void 0 : f.enabled },
267
+ r == null ? void 0 : r.group
268
+ ),
269
+ children: [
270
+ u.enabled && /* @__PURE__ */ e.jsx(
271
+ v,
272
+ {
273
+ className: l("w-full desktop:max-w-[216px]", r == null ? void 0 : r.primary),
274
+ size: "lg",
275
+ intent: "primary",
276
+ ...u.buttonContent
277
+ }
278
+ ),
279
+ (f == null ? void 0 : f.enabled) && /* @__PURE__ */ e.jsx(
280
+ v,
281
+ {
282
+ intent: "secondary",
283
+ className: l("w-full desktop:max-w-[216px]", r == null ? void 0 : r.secondary),
284
+ ...u.buttonContent
285
+ }
286
+ )
287
+ ]
288
+ }
289
+ )
270
290
  ] }),
271
- /* @__PURE__ */ e.jsx("div", { className: l("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", i == null ? void 0 : i.imageContainer), children: p ? h : f })
291
+ /* @__PURE__ */ e.jsx("div", { className: l("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", r == null ? void 0 : r.imageContainer), children: m ? h : g })
272
292
  ] }),
273
- u && a && b
293
+ a && (n == null ? void 0 : n.enabled) && k
274
294
  ] })
275
295
  }
276
296
  ),
277
- p && a && b
297
+ m && (n == null ? void 0 : n.enabled) && k
278
298
  ] });
279
- }, Ot = ({ variant: r, ...t }) => {
280
- switch (r) {
299
+ }, zt = ({ variant: o, ...t }) => {
300
+ switch (o) {
281
301
  case "separateImg":
282
- return /* @__PURE__ */ e.jsx(R, { ...t });
302
+ return /* @__PURE__ */ e.jsx(V, { ...t });
283
303
  case "fullImg":
284
- return /* @__PURE__ */ e.jsx(Ce, { ...t });
304
+ return /* @__PURE__ */ e.jsx(ve, { ...t });
285
305
  default:
286
- return /* @__PURE__ */ e.jsx(R, { ...t });
306
+ return /* @__PURE__ */ e.jsx(V, { ...t });
287
307
  }
288
- }, Y = ({ config: r, classes: t }) => {
289
- const { variant: o, details: n } = r;
308
+ }, Y = ({ details: o, classes: t }) => {
309
+ const { variant: i, items: n } = o ?? {};
290
310
  return /* @__PURE__ */ e.jsx(
291
311
  "div",
292
312
  {
293
313
  id: "advantages",
294
314
  className: l(
295
315
  "m-auto flex w-full min-w-[328px] max-w-[636px] flex-col gap-8 rounded-md bg-color-white p-6 shadow-sm desktop:w-full desktop:flex-row desktop:items-start desktop:gap-0 desktop:p-0 desktop:py-6",
296
- { "desktop:max-w-[860px]": o === "threeCards" },
297
- { "desktop:max-w-[1140px]": o === "fourCards" },
316
+ { "desktop:max-w-[860px]": i === "threeCards" },
317
+ { "desktop:max-w-[1140px]": i === "fourCards" },
298
318
  t == null ? void 0 : t.root
299
319
  ),
300
- children: n == null ? void 0 : n.map(({ title: i, description: d }) => /* @__PURE__ */ e.jsxs(
320
+ children: n == null ? void 0 : n.map(({ title: r, description: d }) => /* @__PURE__ */ e.jsxs(
301
321
  "div",
302
322
  {
303
323
  className: l(
@@ -305,27 +325,27 @@ const ge = g(
305
325
  t == null ? void 0 : t.item
306
326
  ),
307
327
  children: [
308
- /* @__PURE__ */ e.jsx(w, { as: "h4", className: l("text-color-dark", t == null ? void 0 : t.title), children: i }),
328
+ /* @__PURE__ */ e.jsx(y, { as: "h4", className: l("text-color-dark", t == null ? void 0 : t.title), children: r }),
309
329
  /* @__PURE__ */ e.jsx("p", { className: l("desk-body-regular-l text-color-secondary", t == null ? void 0 : t.description), children: d })
310
330
  ]
311
331
  },
312
- i
332
+ r
313
333
  ))
314
334
  }
315
335
  );
316
- }, Ie = ({ socialsLinks: r, classes: t }) => /* @__PURE__ */ e.jsx("div", { className: l("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: r == null ? void 0 : r.map(({ iconName: o, href: n }) => /* @__PURE__ */ e.jsx(
336
+ }, Ce = ({ socialsLinks: o, classes: t }) => /* @__PURE__ */ e.jsx("div", { className: l("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: o == null ? void 0 : o.map(({ iconName: i, href: n }) => /* @__PURE__ */ e.jsx(
317
337
  "a",
318
338
  {
319
339
  className: l("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
320
340
  href: n,
321
- "aria-label": o.replace("social/", ""),
322
- children: /* @__PURE__ */ e.jsx(c, { name: o, className: l("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
341
+ "aria-label": i.replace("social/", ""),
342
+ children: /* @__PURE__ */ e.jsx(b, { name: i, className: l("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
323
343
  },
324
344
  n
325
- )) }), Te = ({ phones: r, classes: t }) => /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: r == null ? void 0 : r.map(({ phone: o, text: n }) => /* @__PURE__ */ e.jsx(
326
- W,
345
+ )) }), Ie = ({ phones: o, classes: t }) => /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: o == null ? void 0 : o.map(({ phone: i, text: n }) => /* @__PURE__ */ e.jsx(
346
+ Z,
327
347
  {
328
- phone: Z(o),
348
+ phone: J(i),
329
349
  text: n,
330
350
  classes: {
331
351
  root: l(t == null ? void 0 : t.phoneWrapper),
@@ -333,53 +353,50 @@ const ge = g(
333
353
  link: l("text-color-white mobile:m-0", t == null ? void 0 : t.phoneLink)
334
354
  }
335
355
  },
336
- o
337
- )) }), Ee = ({ classes: r, config: t }) => {
338
- const { details: o } = t || {};
339
- return /* @__PURE__ */ e.jsx(
340
- "div",
341
- {
342
- className: l(
343
- "mt-6 grid grid-cols-1 gap-6 border-b border-blue-grey-500 pb-6 desktop:my-8 desktop:grid-cols-4 desktop:gap-10 desktop:pb-8",
344
- r == null ? void 0 : r.navRoot
345
- ),
346
- children: o == null ? void 0 : o.map(
347
- ({ column: n }) => n == null ? void 0 : n.map(({ groupLabel: i, links: d }) => /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-4", r == null ? void 0 : r.navGroup), children: [
348
- /* @__PURE__ */ e.jsx("div", { className: l("desk-body-medium-l text-color-white", r == null ? void 0 : r.navLabel), children: i }),
349
- /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-1", r == null ? void 0 : r.navLinks), children: d == null ? void 0 : d.map(({ path: a, label: x }) => /* @__PURE__ */ e.jsx(
350
- F,
351
- {
352
- href: a,
353
- "aria-label": x,
354
- intent: "white",
355
- classes: {
356
- link: r == null ? void 0 : r.navLink,
357
- icon: r == null ? void 0 : r.navLinkIcon
358
- },
359
- children: x
356
+ i
357
+ )) }), Te = ({ classes: o, details: t }) => /* @__PURE__ */ e.jsx(
358
+ "div",
359
+ {
360
+ className: l(
361
+ "mt-6 grid grid-cols-1 gap-6 border-b border-blue-grey-500 pb-6 desktop:my-8 desktop:grid-cols-4 desktop:gap-10 desktop:pb-8",
362
+ o == null ? void 0 : o.navRoot
363
+ ),
364
+ children: t == null ? void 0 : t.map(
365
+ ({ column: i }) => i == null ? void 0 : i.map(({ groupLabel: n, links: r }) => /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-4", o == null ? void 0 : o.navGroup), children: [
366
+ /* @__PURE__ */ e.jsx("div", { className: l("desk-body-medium-l text-color-white", o == null ? void 0 : o.navLabel), children: n }),
367
+ /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-1", o == null ? void 0 : o.navLinks), children: r == null ? void 0 : r.map(({ path: d, label: p }) => /* @__PURE__ */ e.jsx(
368
+ H,
369
+ {
370
+ href: d,
371
+ "aria-label": p,
372
+ intent: "white",
373
+ classes: {
374
+ link: o == null ? void 0 : o.navLink,
375
+ icon: o == null ? void 0 : o.navLinkIcon
360
376
  },
361
- x
362
- )) })
363
- ] }, i))
364
- )
365
- }
366
- );
367
- }, Be = ({ text: r, classes: t }) => /* @__PURE__ */ e.jsx(
377
+ children: p
378
+ },
379
+ p
380
+ )) })
381
+ ] }, n))
382
+ )
383
+ }
384
+ ), Ee = ({ text: o, classes: t }) => /* @__PURE__ */ e.jsx(
368
385
  "div",
369
386
  {
370
387
  className: l("desk-body-regular-m text-color-footer", t == null ? void 0 : t.copyRight),
371
- dangerouslySetInnerHTML: { __html: r }
388
+ dangerouslySetInnerHTML: { __html: o }
372
389
  }
373
- ), _e = ({ classes: r }) => /* @__PURE__ */ e.jsx(
390
+ ), Be = ({ classes: o }) => /* @__PURE__ */ e.jsx(
374
391
  "a",
375
392
  {
376
393
  "aria-label": "logo",
377
394
  href: "https://sovcombank.ru/",
378
- className: l("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", r == null ? void 0 : r.footerLogo),
379
- children: /* @__PURE__ */ e.jsx(c, { name: "brandLogos/logoWhite", className: l("size-full", r == null ? void 0 : r.footerLogoIcon) })
395
+ className: l("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", o == null ? void 0 : o.footerLogo),
396
+ children: /* @__PURE__ */ e.jsx(b, { name: "brandLogos/logoWhite", className: l("size-full", o == null ? void 0 : o.footerLogoIcon) })
380
397
  }
381
- ), Se = ({ classes: r }) => /* @__PURE__ */ e.jsx(
382
- F,
398
+ ), _e = ({ classes: o }) => /* @__PURE__ */ e.jsx(
399
+ H,
383
400
  {
384
401
  intent: "white",
385
402
  href: "https://sovcombank.ru/site-map",
@@ -387,26 +404,26 @@ const ge = g(
387
404
  "aria-label": "site-map",
388
405
  rel: "noreferrer",
389
406
  classes: {
390
- link: l("mobile:mt-6", r == null ? void 0 : r.siteMapLink),
391
- icon: r == null ? void 0 : r.siteMapLinkIcon
407
+ link: l("mobile:mt-6", o == null ? void 0 : o.siteMapLink),
408
+ icon: o == null ? void 0 : o.siteMapLinkIcon
392
409
  },
393
410
  children: "Карта сайта"
394
411
  }
395
- ), Fe = ({ text: r, classes: t }) => {
396
- const [o, n] = T.useState(!1), [i, d] = T.useState(!1), a = T.useRef(null);
397
- return T.useEffect(() => {
398
- const x = a.current;
412
+ ), Se = ({ text: o, classes: t }) => {
413
+ const [i, n] = E.useState(!1), [r, d] = E.useState(!1), p = E.useRef(null);
414
+ return E.useEffect(() => {
415
+ const x = p.current;
399
416
  x && d(x.scrollHeight > x.clientHeight);
400
417
  }, []), /* @__PURE__ */ e.jsxs("div", { className: l("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
401
418
  /* @__PURE__ */ e.jsx(
402
419
  "div",
403
420
  {
404
- ref: a,
405
- className: l("desk-body-regular-m text-color-footer", { "line-clamp-3": !o }, t == null ? void 0 : t.ligalText),
406
- dangerouslySetInnerHTML: { __html: r }
421
+ ref: p,
422
+ className: l("desk-body-regular-m text-color-footer", { "line-clamp-3": !i }, t == null ? void 0 : t.ligalText),
423
+ dangerouslySetInnerHTML: { __html: o }
407
424
  }
408
425
  ),
409
- i && /* @__PURE__ */ e.jsx(
426
+ r && /* @__PURE__ */ e.jsx(
410
427
  "div",
411
428
  {
412
429
  tabIndex: 0,
@@ -420,61 +437,54 @@ const ge = g(
420
437
  }
421
438
  )
422
439
  ] });
423
- }, Rt = ({
424
- renderBlocks: {
425
- withSocialsLinks: r = !0,
426
- withPhones: t = !0,
427
- withNavLinks: o = !0,
428
- withCopyright: n = !0,
429
- withSiteMap: i = !0,
430
- withLigal: d = !0
431
- } = {},
432
- socialsLinks: a = [],
433
- phones: x = [],
434
- ligal: m,
435
- copyright: u = "",
436
- classes: p,
437
- config: h
438
- }) => /* @__PURE__ */ e.jsx("footer", { id: "footer", className: l("w-full bg-color-footer py-8 desktop:py-10", p == null ? void 0 : p.root), children: /* @__PURE__ */ e.jsx(k, { className: l(p == null ? void 0 : p.footerContainer), children: /* @__PURE__ */ e.jsxs("div", { className: l("mobile:pb-[176px]", p == null ? void 0 : p.footerWrapper), children: [
440
+ }, Ot = ({
441
+ socialsLinks: o,
442
+ phones: t,
443
+ ligal: i,
444
+ copyright: n,
445
+ classes: r,
446
+ details: d,
447
+ siteMap: p = !0
448
+ }) => /* @__PURE__ */ e.jsx("footer", { id: "footer", className: l("w-full bg-color-footer py-8 desktop:py-10", r == null ? void 0 : r.root), children: /* @__PURE__ */ e.jsx(w, { className: l(r == null ? void 0 : r.footerContainer), children: /* @__PURE__ */ e.jsxs("div", { className: l("mobile:pb-[176px]", r == null ? void 0 : r.footerWrapper), children: [
439
449
  /* @__PURE__ */ e.jsxs(
440
450
  "div",
441
451
  {
442
452
  className: l(
443
453
  "flex flex-col items-start justify-between gap-4 border-b border-solid border-blue-grey-500 pb-6 desktop:flex-row desktop:gap-6 desktop:pb-8",
444
- p == null ? void 0 : p.footerHead
454
+ r == null ? void 0 : r.footerHead
445
455
  ),
446
456
  children: [
447
- /* @__PURE__ */ e.jsxs("div", { className: l(p == null ? void 0 : p.footerSocialBlock), children: [
448
- /* @__PURE__ */ e.jsx(_e, { classes: p == null ? void 0 : p.footerLogo }),
449
- r && /* @__PURE__ */ e.jsx(Ie, { socialsLinks: a, classes: p == null ? void 0 : p.socialLinks })
457
+ /* @__PURE__ */ e.jsxs("div", { className: l(r == null ? void 0 : r.footerSocialBlock), children: [
458
+ /* @__PURE__ */ e.jsx(Be, { classes: r == null ? void 0 : r.footerLogo }),
459
+ o.enabled && /* @__PURE__ */ e.jsx(Ce, { socialsLinks: o.links, classes: r == null ? void 0 : r.socialLinks })
450
460
  ] }),
451
- t && /* @__PURE__ */ e.jsx(Te, { phones: x, classes: p == null ? void 0 : p.phonesBlock })
461
+ t.enabled && /* @__PURE__ */ e.jsx(Ie, { phones: t.items, classes: r == null ? void 0 : r.phonesBlock })
452
462
  ]
453
463
  }
454
464
  ),
455
- o && /* @__PURE__ */ e.jsx(Ee, { config: h, classes: p == null ? void 0 : p.navLinks }),
456
- d && /* @__PURE__ */ e.jsx(Fe, { text: m || "" }),
465
+ !j.isArrayEmpty(d) && /* @__PURE__ */ e.jsx(Te, { details: d, classes: r == null ? void 0 : r.navLinks }),
466
+ i.enabled && /* @__PURE__ */ e.jsx(Se, { text: i.text }),
457
467
  /* @__PURE__ */ e.jsxs(
458
468
  "div",
459
469
  {
460
470
  className: l(
461
471
  "mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
462
- p == null ? void 0 : p.footerBottom
472
+ r == null ? void 0 : r.footerBottom
463
473
  ),
464
474
  children: [
465
- n && /* @__PURE__ */ e.jsx(Be, { text: u, classes: p == null ? void 0 : p.copyright }),
466
- i && /* @__PURE__ */ e.jsx(Se, { classes: p == null ? void 0 : p.siteMap })
475
+ n.enabled && /* @__PURE__ */ e.jsx(Ee, { text: n.text, classes: r == null ? void 0 : r.copyright }),
476
+ p && /* @__PURE__ */ e.jsx(_e, { classes: r == null ? void 0 : r.siteMap })
467
477
  ]
468
478
  }
469
479
  )
470
- ] }) }) }), Me = ({ classes: r, index: t, variant: o, title: n, description: i }) => {
471
- const d = o === "withTitleAndDescription" && n;
480
+ ] }) }) }), Me = ({ classes: o, index: t, variant: i, title: n, description: r }) => {
481
+ const d = i === "withTitleAndDescription" && n;
472
482
  return /* @__PURE__ */ e.jsxs(
473
483
  "div",
474
484
  {
475
485
  className: l(
476
486
  "flex w-[328px] max-w-[328px] flex-col gap-4 rounded-md border border-solid border-blue-grey-500 p-4 desktop:w-[348px] desktop:max-w-[348px] desktop:border-none desktop:p-0",
477
- r == null ? void 0 : r.singleStep
487
+ o == null ? void 0 : o.singleStep
478
488
  ),
479
489
  children: [
480
490
  /* @__PURE__ */ e.jsx(
@@ -482,40 +492,37 @@ const ge = g(
482
492
  {
483
493
  className: l(
484
494
  "mob-headline-bold-s flex size-10 items-center justify-center rounded-sm bg-color-blue-grey-500 text-color-white desktop:desk-title-bold-l desktop:size-12",
485
- r == null ? void 0 : r.numeric
495
+ o == null ? void 0 : o.numeric
486
496
  ),
487
497
  children: t
488
498
  }
489
499
  ),
490
500
  /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-2"), children: [
491
- d && /* @__PURE__ */ e.jsx(w, { as: "h4", className: l("text-color-dark", r == null ? void 0 : r.title), children: n }),
501
+ d && /* @__PURE__ */ e.jsx(y, { as: "h4", className: l("text-color-dark", o == null ? void 0 : o.title), children: n }),
492
502
  /* @__PURE__ */ e.jsx(
493
503
  "div",
494
504
  {
495
- dangerouslySetInnerHTML: { __html: i ?? "" },
496
- className: l("desk-body-regular-l text-color-tetriary", r == null ? void 0 : r.description)
505
+ dangerouslySetInnerHTML: { __html: r ?? "" },
506
+ className: l("desk-body-regular-l text-color-tetriary", o == null ? void 0 : o.description)
497
507
  }
498
508
  )
499
509
  ] })
500
510
  ]
501
511
  }
502
512
  );
503
- }, Dt = ({ headline: r, config: t, classes: o }) => {
504
- const { variant: n, details: i } = t;
505
- return /* @__PURE__ */ e.jsx("section", { id: "stepper", className: o == null ? void 0 : o.root, children: /* @__PURE__ */ e.jsx(k, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
506
- /* @__PURE__ */ e.jsx(w, { as: "h2", className: l("text-color-dark", o == null ? void 0 : o.headline), children: r }),
507
- /* @__PURE__ */ e.jsx(
508
- "div",
509
- {
510
- className: l(
511
- "flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
512
- o == null ? void 0 : o.stepsWrapper
513
- ),
514
- children: i == null ? void 0 : i.map((d, a) => /* @__PURE__ */ e.jsx(Me, { variant: n, ...d, index: a + 1, classes: o == null ? void 0 : o.step }, d.description))
515
- }
516
- )
517
- ] }) }) });
518
- }, He = g("", {
513
+ }, Rt = ({ headline: o, details: t, variant: i, classes: n }) => /* @__PURE__ */ e.jsx("section", { id: "stepper", className: n == null ? void 0 : n.root, children: /* @__PURE__ */ e.jsx(w, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
514
+ /* @__PURE__ */ e.jsx(y, { as: "h2", className: l("text-color-dark", n == null ? void 0 : n.headline), children: o }),
515
+ /* @__PURE__ */ e.jsx(
516
+ "div",
517
+ {
518
+ className: l(
519
+ "flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
520
+ n == null ? void 0 : n.stepsWrapper
521
+ ),
522
+ children: t == null ? void 0 : t.map((r, d) => /* @__PURE__ */ e.jsx(Me, { variant: i, ...r, index: d + 1, classes: n == null ? void 0 : n.step }, r.description))
523
+ }
524
+ )
525
+ ] }) }) }), He = c("", {
519
526
  variants: {
520
527
  intent: {
521
528
  twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
@@ -531,7 +538,7 @@ const ge = g(
531
538
  defaultVariants: {
532
539
  intent: "twoItems"
533
540
  }
534
- }), Le = g("", {
541
+ }), Fe = c("", {
535
542
  variants: {
536
543
  intent: {
537
544
  twoItems: "",
@@ -563,7 +570,7 @@ const ge = g(
563
570
  class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
564
571
  }
565
572
  ]
566
- }), ze = g("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
573
+ }), Le = c("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
567
574
  variants: {
568
575
  intent: {
569
576
  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',
@@ -573,7 +580,7 @@ const ge = g(
573
580
  defaultVariants: {
574
581
  intent: "twoItems"
575
582
  }
576
- }), Oe = g("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
583
+ }), ze = c("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
577
584
  variants: {
578
585
  intent: {
579
586
  twoItems: "desktop:h-[232px] desktop:w-[500px]",
@@ -599,25 +606,32 @@ const ge = g(
599
606
  class: "desktop:h-[272px] desktop:w-[500px]"
600
607
  }
601
608
  ]
602
- }), Re = ({ data: r, intent: t }) => {
609
+ }), Oe = ({ data: o, intent: t }) => {
603
610
  const {
604
- title: o,
611
+ title: i,
605
612
  description: n,
606
- popover: i = {
613
+ popover: r = {
607
614
  enabled: !1
608
615
  }
609
- } = r;
610
- return /* @__PURE__ */ e.jsx("li", { className: l(ze({ intent: t })), children: /* @__PURE__ */ e.jsxs("div", { className: "desktop:max-w-[264px]", children: [
616
+ } = o;
617
+ return /* @__PURE__ */ e.jsx("li", { className: l(Le({ intent: t })), children: /* @__PURE__ */ e.jsxs("div", { className: "desktop:max-w-[264px]", children: [
611
618
  /* @__PURE__ */ e.jsxs("div", { className: l("mb-2 flex items-center gap-2"), children: [
612
- /* @__PURE__ */ e.jsx("h4", { className: l("mob-title-bold-m text-color-dark"), children: o }),
613
- i.enabled && /* @__PURE__ */ e.jsx(ie, { triggerElement: /* @__PURE__ */ e.jsx(c, { className: l("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i == null ? void 0 : i.text })
619
+ /* @__PURE__ */ e.jsx("h4", { className: l("mob-title-bold-m text-color-dark"), children: i }),
620
+ r.enabled && /* @__PURE__ */ e.jsx(ne, { triggerElement: /* @__PURE__ */ e.jsx(b, { className: l("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: r.text })
614
621
  ] }),
615
622
  /* @__PURE__ */ e.jsx("div", { className: l("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: n } })
616
623
  ] }) });
617
- }, M = ({ intent: r, headline: t, desktopHidden: o = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ e.jsx("h2", { className: l(He({ intent: r, desktopHidden: o, mobileHidden: n })), children: t }), De = ({ details: r, intent: t, withButton: o }) => /* @__PURE__ */ e.jsx("ul", { className: l(Le({ intent: t, withButton: o })), children: r == null ? void 0 : r.map((n, i) => /* @__PURE__ */ e.jsx(Re, { intent: t, data: n }, i)) }), Vt = ({ headline: r, buttonConfig: t, withButton: o = !1, config: n, image: i, classes: d }) => {
618
- const { intent: a = "twoItems", details: x } = n, m = a === "fourItems", u = a === "twoItems", p = i && "url" in i && j.isObject(i) ? /* @__PURE__ */ e.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: i.url }) : i;
619
- return /* @__PURE__ */ e.jsx("section", { id: "long-banner", className: l(d == null ? void 0 : d.root), children: /* @__PURE__ */ e.jsxs(k, { className: l(d == null ? void 0 : d.container), children: [
620
- u && /* @__PURE__ */ e.jsx(M, { intent: a, headline: r }),
624
+ }, F = ({ intent: o, headline: t, desktopHidden: i = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ e.jsx("h2", { className: l(He({ intent: o, desktopHidden: i, mobileHidden: n })), children: t }), Re = ({ details: o, intent: t, withButton: i }) => /* @__PURE__ */ e.jsx("ul", { className: l(Fe({ intent: t, withButton: i })), children: o == null ? void 0 : o.map((n, r) => /* @__PURE__ */ e.jsx(Oe, { intent: t, data: n }, r)) }), Dt = ({
625
+ headline: o,
626
+ buttonConfig: t,
627
+ intent: i = "twoItems",
628
+ details: n,
629
+ image: r,
630
+ classes: d
631
+ }) => {
632
+ const p = i === "fourItems", x = i === "twoItems", a = r && "url" in r && j.isObject(r) ? /* @__PURE__ */ e.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: r.url }) : r;
633
+ return /* @__PURE__ */ e.jsx("section", { id: "long-banner", className: l(d == null ? void 0 : d.root), children: /* @__PURE__ */ e.jsxs(w, { className: l(d == null ? void 0 : d.container), children: [
634
+ x && /* @__PURE__ */ e.jsx(F, { intent: i, headline: o }),
621
635
  /* @__PURE__ */ e.jsxs(
622
636
  "div",
623
637
  {
@@ -626,23 +640,22 @@ const ge = g(
626
640
  d == null ? void 0 : d.contentContainer
627
641
  ),
628
642
  children: [
629
- m && /* @__PURE__ */ e.jsx(M, { intent: a, headline: r, desktopHidden: !0 }),
630
- /* @__PURE__ */ e.jsx("div", { className: l(Oe({ intent: a, withButton: o }), d == null ? void 0 : d.imgContainer), children: p }),
643
+ p && /* @__PURE__ */ e.jsx(F, { intent: i, headline: o, desktopHidden: !0 }),
644
+ /* @__PURE__ */ e.jsx("div", { className: l(ze({ intent: i, withButton: t == null ? void 0 : t.enabled }), d == null ? void 0 : d.imgContainer), children: a }),
631
645
  /* @__PURE__ */ e.jsxs(
632
646
  "div",
633
647
  {
634
648
  className: l("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
635
649
  children: [
636
- m && /* @__PURE__ */ e.jsx(M, { intent: a, headline: r, mobileHidden: !0 }),
637
- /* @__PURE__ */ e.jsx(De, { details: x, intent: a, withButton: o }),
638
- o && /* @__PURE__ */ e.jsx(
639
- N,
650
+ p && /* @__PURE__ */ e.jsx(F, { intent: i, headline: o, mobileHidden: !0 }),
651
+ /* @__PURE__ */ e.jsx(Re, { details: n, intent: i, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
652
+ (t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ e.jsx(
653
+ v,
640
654
  {
641
655
  className: l("w-full px-4 desktop:w-max", d == null ? void 0 : d.button),
642
656
  size: "lg",
643
- onClick: t == null ? void 0 : t.onClick,
644
657
  intent: "secondary",
645
- children: t == null ? void 0 : t.text
658
+ ...t.buttonContent
646
659
  }
647
660
  )
648
661
  ]
@@ -652,18 +665,18 @@ const ge = g(
652
665
  }
653
666
  )
654
667
  ] }) });
655
- }, H = {
668
+ }, L = {
656
669
  ESIA: "esia",
657
670
  MOBILE_ID: "mobileId",
658
671
  COMBINE: "combine"
659
- }, P = ({ children: r, isLoading: t, classes: o, loaderProps: n }) => /* @__PURE__ */ e.jsx(
672
+ }, P = ({ children: o, isLoading: t, classes: i, loaderProps: n }) => /* @__PURE__ */ e.jsx(
660
673
  "div",
661
674
  {
662
675
  tabIndex: 0,
663
676
  className: l(
664
677
  "relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
665
678
  "bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
666
- o == null ? void 0 : o.root
679
+ i == null ? void 0 : i.root
667
680
  ),
668
681
  children: /* @__PURE__ */ e.jsx(
669
682
  "div",
@@ -672,13 +685,13 @@ const ge = g(
672
685
  "flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
673
686
  "bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
674
687
  { "items-center": t },
675
- o == null ? void 0 : o.wrapper
688
+ i == null ? void 0 : i.wrapper
676
689
  ),
677
- children: t ? /* @__PURE__ */ e.jsx(de, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...n }) : r
690
+ children: t ? /* @__PURE__ */ e.jsx(ie, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...n }) : o
678
691
  }
679
692
  )
680
693
  }
681
- ), Ve = ({ ...r }) => /* @__PURE__ */ e.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: [
694
+ ), De = ({ ...o }) => /* @__PURE__ */ e.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o, children: [
682
695
  /* @__PURE__ */ e.jsx(
683
696
  "path",
684
697
  {
@@ -706,22 +719,22 @@ const ge = g(
706
719
  /* @__PURE__ */ e.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
707
720
  /* @__PURE__ */ e.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
708
721
  ] }) })
709
- ] }), A = ({ mainLink: r, subLink: t, isMobile: o, classes: n }) => /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col", n == null ? void 0 : n.linksWrapper), children: [
722
+ ] }), A = ({ mainLink: o, subLink: t, isMobile: i, classes: n }) => /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col", n == null ? void 0 : n.linksWrapper), children: [
710
723
  /* @__PURE__ */ e.jsx(
711
724
  "a",
712
725
  {
713
- href: r.href,
726
+ href: o.href,
714
727
  target: "_blank",
715
728
  rel: "noreferrer",
716
729
  className: l(
717
730
  'before:content=[" "] desk-body-medium-l z-[4] text-color-dark before:absolute before:left-1/2 before:top-1/2 before:h-full before:w-full before:-translate-x-1/2 before:-translate-y-1/2',
718
731
  n == null ? void 0 : n.linksMainLink
719
732
  ),
720
- children: o ? r.mobileTitle : r.title
733
+ children: i ? o.mobileTitle : o.title
721
734
  }
722
735
  ),
723
736
  (t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */ e.jsx(
724
- F,
737
+ H,
725
738
  {
726
739
  intent: "blue",
727
740
  withUnderline: !0,
@@ -734,59 +747,59 @@ const ge = g(
734
747
  children: t == null ? void 0 : t.text
735
748
  }
736
749
  )
737
- ] }), D = ({ mainLink: r, subLink: t, isLoading: o, badge: n, loaderProps: i, classes: d }) => {
738
- const { isMobile: a } = v();
739
- return /* @__PURE__ */ e.jsx(P, { isLoading: o, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ e.jsxs(
750
+ ] }), U = ({ mainLink: o, subLink: t, isLoading: i, badge: n, loaderProps: r, classes: d }) => {
751
+ const { isMobile: p } = C();
752
+ return /* @__PURE__ */ e.jsx(P, { isLoading: i, loaderProps: r, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ e.jsxs(
740
753
  "div",
741
754
  {
742
755
  className: l(
743
756
  "flex flex-1 items-center justify-between gap-1",
744
- { "justify-center": !n && a },
757
+ { "justify-center": !n && p },
745
758
  d == null ? void 0 : d.innerWrapper
746
759
  ),
747
760
  children: [
748
761
  /* @__PURE__ */ e.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
749
762
  /* @__PURE__ */ e.jsxs("div", { children: [
750
- /* @__PURE__ */ e.jsx(c, { name: "logos/mts", className: l("relative z-[9] size-7 desktop:size-8", d == null ? void 0 : d.mtsLogo) }),
751
- /* @__PURE__ */ e.jsx(c, { name: "logos/megafon", className: l("relative z-[8] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.megafonLogo) }),
752
- /* @__PURE__ */ e.jsx(c, { name: "logos/beeline", className: l("relative z-[7] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.beelineLogo) })
763
+ /* @__PURE__ */ e.jsx(b, { name: "logos/mts", className: l("relative z-[9] size-7 desktop:size-8", d == null ? void 0 : d.mtsLogo) }),
764
+ /* @__PURE__ */ e.jsx(b, { name: "logos/megafon", className: l("relative z-[8] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.megafonLogo) }),
765
+ /* @__PURE__ */ e.jsx(b, { name: "logos/beeline", className: l("relative z-[7] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.beelineLogo) })
753
766
  ] }),
754
- /* @__PURE__ */ e.jsx(A, { mainLink: r, subLink: t, isMobile: a, classes: d == null ? void 0 : d.links }),
755
- /* @__PURE__ */ e.jsx(c, { name: "arrows/arrowRight", className: l("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
767
+ /* @__PURE__ */ e.jsx(A, { mainLink: o, subLink: t, isMobile: p, classes: d == null ? void 0 : d.links }),
768
+ /* @__PURE__ */ e.jsx(b, { name: "arrows/arrowRight", className: l("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
756
769
  ] }),
757
- n && /* @__PURE__ */ e.jsx(z, { className: l("bg-color-positive", d == null ? void 0 : d.badge), children: n })
770
+ n && /* @__PURE__ */ e.jsx(R, { className: l("bg-color-positive", d == null ? void 0 : d.badge), children: n })
758
771
  ]
759
772
  }
760
773
  ) });
761
- }, V = ({ mainLink: r, subLink: t, isLoading: o, badge: n, loaderProps: i, classes: d }) => {
762
- const { isMobile: a } = v();
763
- return /* @__PURE__ */ e.jsx(P, { isLoading: o, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ e.jsxs(
774
+ }, W = ({ mainLink: o, subLink: t, isLoading: i, badge: n, loaderProps: r, classes: d }) => {
775
+ const { isMobile: p } = C();
776
+ return /* @__PURE__ */ e.jsx(P, { isLoading: i, loaderProps: r, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ e.jsxs(
764
777
  "div",
765
778
  {
766
779
  className: l(
767
780
  "flex flex-1 items-center justify-between gap-1",
768
- { "justify-center": !n && a },
781
+ { "justify-center": !n && p },
769
782
  d == null ? void 0 : d.innerWrapper
770
783
  ),
771
784
  children: [
772
785
  /* @__PURE__ */ e.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
773
- /* @__PURE__ */ e.jsx(Ve, { className: l("size-7 desktop:size-8", d == null ? void 0 : d.esiaLogo) }),
774
- /* @__PURE__ */ e.jsx(A, { mainLink: r, subLink: t, isMobile: a, classes: d == null ? void 0 : d.links }),
775
- /* @__PURE__ */ e.jsx(c, { name: "arrows/arrowRight", className: l("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
786
+ /* @__PURE__ */ e.jsx(De, { className: l("size-7 desktop:size-8", d == null ? void 0 : d.esiaLogo) }),
787
+ /* @__PURE__ */ e.jsx(A, { mainLink: o, subLink: t, isMobile: p, classes: d == null ? void 0 : d.links }),
788
+ /* @__PURE__ */ e.jsx(b, { name: "arrows/arrowRight", className: l("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
776
789
  ] }),
777
- n && /* @__PURE__ */ e.jsx(z, { className: l("bg-color-positive", d == null ? void 0 : d.badge), children: n })
790
+ n && /* @__PURE__ */ e.jsx(R, { className: l("bg-color-positive", d == null ? void 0 : d.badge), children: n })
778
791
  ]
779
792
  }
780
793
  ) });
781
- }, Ue = (r) => {
782
- switch (r.mode) {
783
- case H.ESIA:
784
- return /* @__PURE__ */ e.jsx(V, { ...r });
785
- case H.MOBILE_ID:
786
- return /* @__PURE__ */ e.jsx(D, { ...r });
787
- case H.COMBINE:
794
+ }, Ve = (o) => {
795
+ switch (o.mode) {
796
+ case L.ESIA:
797
+ return /* @__PURE__ */ e.jsx(W, { ...o });
798
+ case L.MOBILE_ID:
799
+ return /* @__PURE__ */ e.jsx(U, { ...o });
800
+ case L.COMBINE:
788
801
  default:
789
- const { esiaConfig: t, mobileIdConfig: o, subtitle: n, badge: i, classes: d } = r, a = !n && !i ? T.Fragment : "div";
802
+ const { esiaConfig: t, mobileIdConfig: i, subtitle: n, badge: r, classes: d } = o, p = !n && !r ? E.Fragment : "div";
790
803
  return /* @__PURE__ */ e.jsxs(
791
804
  "div",
792
805
  {
@@ -795,13 +808,13 @@ const ge = g(
795
808
  d == null ? void 0 : d.root
796
809
  ),
797
810
  children: [
798
- /* @__PURE__ */ e.jsxs(a, { className: l("flex w-full items-center justify-between gap-2", d == null ? void 0 : d.topContent), children: [
811
+ /* @__PURE__ */ e.jsxs(p, { className: l("flex w-full items-center justify-between gap-2", d == null ? void 0 : d.topContent), children: [
799
812
  n && /* @__PURE__ */ e.jsx("h5", { className: l("desk-body-regular-l flex flex-1 text-color-dark", d == null ? void 0 : d.subtitle), children: n }),
800
- i && /* @__PURE__ */ e.jsx(z, { className: l("bg-color-positive", d == null ? void 0 : d.badge), children: i })
813
+ r && /* @__PURE__ */ e.jsx(R, { className: l("bg-color-positive", d == null ? void 0 : d.badge), children: r })
801
814
  ] }),
802
815
  /* @__PURE__ */ e.jsxs("div", { className: l("grid w-full grid-cols-2 gap-2 desktop:gap-4", d == null ? void 0 : d.authWrapper), children: [
803
816
  /* @__PURE__ */ e.jsx(
804
- V,
817
+ W,
805
818
  {
806
819
  ...t,
807
820
  classes: {
@@ -812,13 +825,13 @@ const ge = g(
812
825
  }
813
826
  ),
814
827
  /* @__PURE__ */ e.jsx(
815
- D,
828
+ U,
816
829
  {
817
- ...o,
830
+ ...i,
818
831
  classes: {
819
832
  root: "p-0 outline-0 h-[74px]",
820
833
  arrowIcon: "hidden",
821
- ...o.classes
834
+ ...i.classes
822
835
  }
823
836
  }
824
837
  )
@@ -827,45 +840,45 @@ const ge = g(
827
840
  }
828
841
  );
829
842
  }
830
- }, Ut = (r) => Ue(r), U = ({ links: r, classes: t }) => /* @__PURE__ */ e.jsx("nav", { className: l("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: r == null ? void 0 : r.map(({ path: o, label: n }) => /* @__PURE__ */ e.jsx(
831
- F,
843
+ }, Vt = (o) => Ve(o), G = ({ links: o, classes: t }) => /* @__PURE__ */ e.jsx("nav", { className: l("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: o == null ? void 0 : o.map(({ path: i, label: n }) => /* @__PURE__ */ e.jsx(
844
+ H,
832
845
  {
833
846
  classes: {
834
847
  link: l("w-max", t == null ? void 0 : t.linkText),
835
848
  icon: l(t == null ? void 0 : t.linkIcon)
836
849
  },
837
850
  intent: "dark",
838
- href: o,
851
+ href: i,
839
852
  children: n
840
853
  },
841
- o
842
- )) }), We = ({ groupLabel: r, links: t, mobileAccordionProps: o, classes: n }) => {
843
- var d, a, x;
844
- const { isMobile: i } = v();
854
+ i
855
+ )) }), Ue = ({ groupLabel: o, links: t, mobileAccordionProps: i, classes: n }) => {
856
+ var d, p, x;
857
+ const { isMobile: r } = C();
845
858
  return /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-2", n == null ? void 0 : n.columnGroup), children: [
846
- !i && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
847
- /* @__PURE__ */ e.jsx("h5", { className: l("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.columnGroupHeading), children: r }),
848
- /* @__PURE__ */ e.jsx(U, { links: t, classes: n == null ? void 0 : n.linksList }, "desktop")
859
+ !r && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
860
+ /* @__PURE__ */ e.jsx("h5", { className: l("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.columnGroupHeading), children: o }),
861
+ /* @__PURE__ */ e.jsx(G, { links: t, classes: n == null ? void 0 : n.linksList }, "desktop")
849
862
  ] }),
850
- i && /* @__PURE__ */ e.jsx(
851
- E,
863
+ r && /* @__PURE__ */ e.jsx(
864
+ B,
852
865
  {
853
866
  defaultOpen: !0,
854
- label: r,
855
- icon: /* @__PURE__ */ e.jsx(c, { name: "arrows/arrowRight", className: l("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
856
- ...o,
867
+ label: o,
868
+ icon: /* @__PURE__ */ e.jsx(b, { name: "arrows/arrowRight", className: l("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
869
+ ...i,
857
870
  classes: {
858
- ...o == null ? void 0 : o.classes,
871
+ ...i == null ? void 0 : i.classes,
859
872
  header: {
860
- trigger: l("p-0 bg-color-blue-grey-100", (a = (d = o == null ? void 0 : o.classes) == null ? void 0 : d.header) == null ? void 0 : a.trigger)
873
+ trigger: l("p-0 bg-color-blue-grey-100", (p = (d = i == null ? void 0 : i.classes) == null ? void 0 : d.header) == null ? void 0 : p.trigger)
861
874
  },
862
- contentInner: l("py-2 px-4", (x = o == null ? void 0 : o.classes) == null ? void 0 : x.contentInner)
875
+ contentInner: l("py-2 px-4", (x = i == null ? void 0 : i.classes) == null ? void 0 : x.contentInner)
863
876
  },
864
- children: /* @__PURE__ */ e.jsx(U, { links: t, classes: n == null ? void 0 : n.linksList }, "mobile")
877
+ children: /* @__PURE__ */ e.jsx(G, { links: t, classes: n == null ? void 0 : n.linksList }, "mobile")
865
878
  }
866
879
  )
867
880
  ] });
868
- }, Ge = ({ column: r, mobileAccordionProps: t, classes: o }) => /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-4 desktop:gap-6", o == null ? void 0 : o.column), children: r == null ? void 0 : r.map((n) => /* @__PURE__ */ e.jsx(We, { ...t, ...n, classes: o == null ? void 0 : o.columnGroup }, n.groupLabel)) }), Ze = g("grid gap-4 grid-cols-1", {
881
+ }, We = ({ column: o, mobileAccordionProps: t, classes: i }) => /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-4 desktop:gap-6", i == null ? void 0 : i.column), children: o == null ? void 0 : o.map((n) => /* @__PURE__ */ e.jsx(Ue, { ...t, ...n, classes: i == null ? void 0 : i.columnGroup }, n.groupLabel)) }), Ge = c("grid gap-4 grid-cols-1", {
869
882
  variants: {
870
883
  variant: {
871
884
  twoCols: "desktop:grid-cols-2",
@@ -876,66 +889,72 @@ const ge = g(
876
889
  defaultVariants: {
877
890
  variant: "fourCols"
878
891
  }
879
- }), Wt = ({ config: r, headline: t, mobileAccordionProps: o, rootAccordionProps: n, classes: i }) => {
880
- var x, m, u;
881
- const { variant: d, details: a } = r;
882
- return /* @__PURE__ */ e.jsx("section", { id: "inter-linking", className: l("min-w-full desktop:min-w-[1140px]", i == null ? void 0 : i.root), children: /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */ e.jsx(
883
- E,
892
+ }), Ut = ({
893
+ variant: o,
894
+ details: t,
895
+ headline: i,
896
+ mobileAccordionProps: n,
897
+ rootAccordionProps: r,
898
+ classes: d
899
+ }) => {
900
+ var p, x, a;
901
+ return /* @__PURE__ */ e.jsx("section", { id: "inter-linking", className: l("min-w-full desktop:min-w-[1140px]", d == null ? void 0 : d.root), children: /* @__PURE__ */ e.jsx(w, { children: /* @__PURE__ */ e.jsx(
902
+ B,
884
903
  {
885
904
  defaultOpen: !0,
886
- label: /* @__PURE__ */ e.jsx(w, { as: "h4", className: l("text-left", i == null ? void 0 : i.headline), children: t }),
887
- ...n,
905
+ label: /* @__PURE__ */ e.jsx(y, { as: "h4", className: l("text-left", d == null ? void 0 : d.headline), children: i }),
906
+ ...r,
888
907
  classes: {
889
- ...n == null ? void 0 : n.classes,
908
+ ...r == null ? void 0 : r.classes,
890
909
  header: {
891
- trigger: l("bg-color-blue-grey-100", (m = (x = n == null ? void 0 : n.classes) == null ? void 0 : x.header) == null ? void 0 : m.trigger)
910
+ trigger: l("bg-color-blue-grey-100", (x = (p = r == null ? void 0 : r.classes) == null ? void 0 : p.header) == null ? void 0 : x.trigger)
892
911
  },
893
- content: l("max-w-full bg-color-blue-grey-100 relative", (u = n == null ? void 0 : n.classes) == null ? void 0 : u.content)
912
+ content: l("max-w-full bg-color-blue-grey-100 relative", (a = r == null ? void 0 : r.classes) == null ? void 0 : a.content)
894
913
  },
895
- children: /* @__PURE__ */ e.jsx("div", { className: l(Ze({ variant: d }), i == null ? void 0 : i.columnsWrapper), children: a == null ? void 0 : a.map((p, h) => /* @__PURE__ */ e.jsx(Ge, { ...p, ...o, classes: i == null ? void 0 : i.column }, h)) })
914
+ children: /* @__PURE__ */ e.jsx("div", { className: l(Ge({ variant: o }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((m, u) => /* @__PURE__ */ e.jsx(We, { ...m, ...n, classes: d == null ? void 0 : d.column }, u)) })
896
915
  }
897
916
  ) }) });
898
- }, $e = ({ tabsNames: r, activeTab: t, setActiveTab: o }) => /* @__PURE__ */ e.jsx("div", { className: "hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", children: r && r.map((n, i) => /* @__PURE__ */ e.jsx(
917
+ }, Ze = ({ tabsNames: o, activeTab: t, setActiveTab: i }) => /* @__PURE__ */ e.jsx("div", { className: "hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", children: o && o.map((n, r) => /* @__PURE__ */ e.jsx(
899
918
  "button",
900
919
  {
901
- onClick: () => o(i),
920
+ onClick: () => i(r),
902
921
  className: l(
903
922
  "desktop:kpy-3 mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent focus:outline-primary-focus desktop:px-4 desktop:py-3",
904
923
  {
905
- "bg-icon-primary-default text-color-white": t === i
924
+ "bg-icon-primary-default text-color-white": t === r
906
925
  }
907
926
  ),
908
927
  children: n
909
928
  },
910
929
  n
911
- )) }), Xe = (r) => r.variant === "HTML", qe = (r) => r.variant === "DOCUMENTS", Je = (r) => r.variant === "TABLE", Ke = ({ html: r, config: t }) => {
912
- const o = /* @__PURE__ */ e.jsx("div", { dangerouslySetInnerHTML: { __html: r ?? "" } });
913
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ e.jsx(E, { label: t == null ? void 0 : t.accordionTitle, children: o }) : o });
914
- }, Qe = (r, t) => ({
915
- rows: r == null ? void 0 : r.map(({ row: o }) => ({
916
- row: o == null ? void 0 : o.map((n, i) => {
930
+ )) }), $e = (o) => o.variant === "HTML", Xe = (o) => o.variant === "DOCUMENTS", qe = (o) => o.variant === "TABLE", Je = ({ html: o, config: t }) => {
931
+ const i = /* @__PURE__ */ e.jsx("div", { dangerouslySetInnerHTML: { __html: o ?? "" } });
932
+ return /* @__PURE__ */ e.jsx(e.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ e.jsx(B, { label: t == null ? void 0 : t.accordionTitle, children: i }) : i });
933
+ }, Ke = (o, t) => ({
934
+ rows: o == null ? void 0 : o.map(({ row: i }) => ({
935
+ row: i == null ? void 0 : i.map((n, r) => {
917
936
  var d;
918
937
  return {
919
938
  ...n,
920
- heading: t && ((d = t[i]) == null ? void 0 : d.heading)
939
+ heading: t && ((d = t[r]) == null ? void 0 : d.heading)
921
940
  };
922
941
  })
923
942
  }))
924
- }), Ye = g("flex flex-col", {
943
+ }), Qe = c("flex flex-col", {
925
944
  variants: {
926
945
  columnsVariant: {
927
946
  twoCols: "w-full max-w-[656px]",
928
947
  threeCols: "w-full max-w-[768px]"
929
948
  }
930
949
  }
931
- }), Pe = g("grid px-4 mb-4", {
950
+ }), Ye = c("grid px-4 mb-4", {
932
951
  variants: {
933
952
  columnsVariant: {
934
953
  twoCols: "grid-cols-2 gap-16",
935
954
  threeCols: "grid-cols-3 gap-12"
936
955
  }
937
956
  }
938
- }), Ae = ({ headings: r, columnsVariant: t }) => /* @__PURE__ */ e.jsx("div", { className: l(Pe({ columnsVariant: t })), children: r == null ? void 0 : r.map((o) => /* @__PURE__ */ e.jsx("div", { className: "text-color-secondary", children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), se = g("grid items-center", {
957
+ }), Pe = ({ headings: o, columnsVariant: t }) => /* @__PURE__ */ e.jsx("div", { className: l(Ye({ columnsVariant: t })), children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ e.jsx("div", { className: "text-color-secondary", children: i == null ? void 0 : i.heading }, i == null ? void 0 : i.heading)) }), Ae = c("grid items-center", {
939
958
  variants: {
940
959
  columnsVariant: {
941
960
  twoCols: "grid-cols-2 gap-16",
@@ -946,51 +965,51 @@ const ge = g(
946
965
  separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
947
966
  }
948
967
  }
949
- }), et = ({ row: r, tableVariant: t, columnsVariant: o, rowIndex: n }) => /* @__PURE__ */ e.jsx("div", { className: l(se({ columnsVariant: o, tableVariant: t }), { "border-none": n === 0 }), children: r == null ? void 0 : r.map(({ cell: i }, d) => /* @__PURE__ */ e.jsx("div", { className: l("desk-body-regular-l text-color-dark", { "font-medium": d !== 0 }), children: i && i }, d)) }), tt = g("flex flex-col gap-2", {
968
+ }), se = ({ row: o, tableVariant: t, columnsVariant: i, rowIndex: n }) => /* @__PURE__ */ e.jsx("div", { className: l(Ae({ columnsVariant: i, tableVariant: t }), { "border-none": n === 0 }), children: o == null ? void 0 : o.map(({ cell: r }, d) => /* @__PURE__ */ e.jsx("div", { className: l("desk-body-regular-l text-color-dark", { "font-medium": d !== 0 }), children: r && r }, d)) }), et = c("flex flex-col gap-2", {
950
969
  variants: {
951
970
  tableVariant: {
952
971
  filled: "px-4 py-4 odd:bg-color-primary-light-default",
953
972
  separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
954
973
  }
955
974
  }
956
- }), rt = ({ row: r, tableVariant: t, columnsVariant: o, headingsExist: n }) => /* @__PURE__ */ e.jsx("div", { className: l(tt({ tableVariant: t })), children: r == null ? void 0 : r.map(({ cell: i, heading: d }, a) => /* @__PURE__ */ e.jsxs("div", { className: l("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !n }), children: [
975
+ }), tt = ({ row: o, tableVariant: t, columnsVariant: i, headingsExist: n }) => /* @__PURE__ */ e.jsx("div", { className: l(et({ tableVariant: t })), children: o == null ? void 0 : o.map(({ cell: r, heading: d }, p) => /* @__PURE__ */ e.jsxs("div", { className: l("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !n }), children: [
957
976
  d && /* @__PURE__ */ e.jsx("div", { className: "mob-body-regular-l text-color-secondary", children: d }),
958
977
  /* @__PURE__ */ e.jsx(
959
978
  "div",
960
979
  {
961
980
  className: l("mob-body-regular-l text-color-dark", {
962
- "font-medium": a !== 0 && o === "twoCols" || o === "threeCols" || o === "twoCols" && n
981
+ "font-medium": p !== 0 && i === "twoCols" || i === "threeCols" || i === "twoCols" && n
963
982
  }),
964
- children: i
983
+ children: r
965
984
  }
966
985
  )
967
- ] }, a)) }), ot = ({ tableVariant: r, rows: t, headings: o, columnsVariant: n }) => {
986
+ ] }, p)) }), rt = ({ tableVariant: o, rows: t, headings: i, columnsVariant: n }) => {
968
987
  var x;
969
- const { isDesktop: i } = v(), d = ((x = Qe(t, o)) == null ? void 0 : x.rows) ?? [], a = !!(o && o.length > 0);
988
+ const { isDesktop: r } = C(), d = ((x = Ke(t, i)) == null ? void 0 : x.rows) ?? [], p = !!(i && i.length > 0);
970
989
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col", children: [
971
- i && a && /* @__PURE__ */ e.jsx(Ae, { headings: o, columnsVariant: n }),
972
- i ? /* @__PURE__ */ e.jsx(e.Fragment, { children: t == null ? void 0 : t.map((m, u) => /* @__PURE__ */ e.jsx(et, { rowIndex: u, tableVariant: r, columnsVariant: n, ...m }, u)) }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: d == null ? void 0 : d.map((m, u) => /* @__PURE__ */ e.jsx(
973
- rt,
990
+ r && p && /* @__PURE__ */ e.jsx(Pe, { headings: i, columnsVariant: n }),
991
+ r ? /* @__PURE__ */ e.jsx(e.Fragment, { children: t == null ? void 0 : t.map((a, m) => /* @__PURE__ */ e.jsx(se, { rowIndex: m, tableVariant: o, columnsVariant: n, ...a }, m)) }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: d == null ? void 0 : d.map((a, m) => /* @__PURE__ */ e.jsx(
992
+ tt,
974
993
  {
975
- headingsExist: a,
976
- tableVariant: r,
994
+ headingsExist: p,
995
+ tableVariant: o,
977
996
  columnsVariant: n,
978
- ...m
997
+ ...a
979
998
  },
980
- u
999
+ m
981
1000
  )) })
982
1001
  ] });
983
- }, nt = ({ tableVariant: r, description: t, columnsVariant: o, config: n, rows: i, title: d, headings: a }) => {
984
- const x = /* @__PURE__ */ e.jsxs("div", { className: l(Ye({ columnsVariant: o })), children: [
985
- d && /* @__PURE__ */ e.jsx(w, { as: "h4", className: "mb-4 desktop:mb-6", children: d }),
986
- /* @__PURE__ */ e.jsx(ot, { tableVariant: r, rows: i, headings: a, columnsVariant: o }),
1002
+ }, ot = ({ tableVariant: o, description: t, columnsVariant: i, config: n, rows: r, title: d, headings: p }) => {
1003
+ const x = /* @__PURE__ */ e.jsxs("div", { className: l(Qe({ columnsVariant: i })), children: [
1004
+ d && /* @__PURE__ */ e.jsx(y, { as: "h4", className: "mb-4 desktop:mb-6", children: d }),
1005
+ /* @__PURE__ */ e.jsx(rt, { tableVariant: o, rows: r, headings: p, columnsVariant: i }),
987
1006
  t && /* @__PURE__ */ e.jsx("div", { className: "mt-2 [&&]:desk-body-regular-m desktop:mt-2", dangerouslySetInnerHTML: { __html: t ?? "" } })
988
1007
  ] });
989
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ e.jsx(E, { label: n == null ? void 0 : n.accordionTitle, children: x }) : x });
990
- }, it = {
1008
+ return /* @__PURE__ */ e.jsx(e.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ e.jsx(B, { label: n == null ? void 0 : n.accordionTitle, children: x }) : x });
1009
+ }, nt = {
991
1010
  documentFilled: "files/documentFilled",
992
1011
  documentOutline: "files/documentOutline"
993
- }, dt = g("size-8 transition-colors", {
1012
+ }, it = c("size-8 transition-colors", {
994
1013
  variants: {
995
1014
  iconType: {
996
1015
  documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
@@ -1000,10 +1019,10 @@ const ge = g(
1000
1019
  defaultVariants: {
1001
1020
  iconType: "documentOutline"
1002
1021
  }
1003
- }), lt = ({ label: r, size: t, url: o, iconType: n }) => /* @__PURE__ */ e.jsxs(
1022
+ }), dt = ({ label: o, size: t, url: i, iconType: n }) => /* @__PURE__ */ e.jsxs(
1004
1023
  "a",
1005
1024
  {
1006
- href: o,
1025
+ href: i,
1007
1026
  target: "_blank",
1008
1027
  rel: "noreferrer",
1009
1028
  tabIndex: 0,
@@ -1011,9 +1030,9 @@ const ge = g(
1011
1030
  "group flex w-full cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus"
1012
1031
  ),
1013
1032
  children: [
1014
- /* @__PURE__ */ e.jsx(c, { name: it[n], className: l(dt({ iconType: n })) }),
1033
+ /* @__PURE__ */ e.jsx(b, { name: nt[n], className: l(it({ iconType: n })) }),
1015
1034
  /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-1 flex-col"), children: [
1016
- /* @__PURE__ */ e.jsx("p", { className: l("desk-body-medium-l text-color-dark"), children: r }),
1035
+ /* @__PURE__ */ e.jsx("p", { className: l("desk-body-medium-l text-color-dark"), children: o }),
1017
1036
  /* @__PURE__ */ e.jsxs("div", { className: l("desk-body-regular-m text-color-disabled"), children: [
1018
1037
  Number(t),
1019
1038
  " КБ"
@@ -1021,41 +1040,41 @@ const ge = g(
1021
1040
  ] })
1022
1041
  ]
1023
1042
  }
1024
- ), at = ({ docs: r, config: t, title: o, iconType: n, description: i }) => {
1043
+ ), lt = ({ docs: o, config: t, title: i, iconType: n, description: r }) => {
1025
1044
  const d = /* @__PURE__ */ e.jsxs("div", { className: "flex max-w-[680px] flex-col", children: [
1026
- o && /* @__PURE__ */ e.jsx(w, { as: "h3", className: "mb-4", children: o }),
1027
- /* @__PURE__ */ e.jsx("div", { className: "gap- flex flex-col gap-4", children: r == null ? void 0 : r.map((a) => /* @__PURE__ */ e.jsx(lt, { iconType: n, ...a }, a.label)) }),
1028
- i && /* @__PURE__ */ e.jsx("div", { className: "mt-4", dangerouslySetInnerHTML: { __html: i ?? "" } })
1045
+ i && /* @__PURE__ */ e.jsx(y, { as: "h3", className: "mb-4", children: i }),
1046
+ /* @__PURE__ */ e.jsx("div", { className: "gap- flex flex-col gap-4", children: o == null ? void 0 : o.map((p) => /* @__PURE__ */ e.jsx(dt, { iconType: n, ...p }, p.label)) }),
1047
+ r && /* @__PURE__ */ e.jsx("div", { className: "mt-4", dangerouslySetInnerHTML: { __html: r ?? "" } })
1029
1048
  ] });
1030
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ e.jsx(E, { label: t == null ? void 0 : t.accordionTitle, children: d }) : d });
1031
- }, xt = (r) => {
1032
- var t, o, n;
1049
+ return /* @__PURE__ */ e.jsx(e.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ e.jsx(B, { label: t == null ? void 0 : t.accordionTitle, children: d }) : d });
1050
+ }, pt = (o) => {
1051
+ var t, i, n;
1033
1052
  switch (!0) {
1034
- case Xe(r):
1035
- return (t = r.details) == null ? void 0 : t.map((i, d) => /* @__PURE__ */ e.jsx(Ke, { ...i }, d));
1036
- case qe(r):
1037
- return (o = r.details) == null ? void 0 : o.map((i, d) => /* @__PURE__ */ e.jsx(at, { ...i }, d));
1038
- case Je(r):
1039
- return (n = r.details) == null ? void 0 : n.map((i, d) => /* @__PURE__ */ e.jsx(nt, { ...i }, d));
1053
+ case $e(o):
1054
+ return (t = o.details) == null ? void 0 : t.map((r, d) => /* @__PURE__ */ e.jsx(Je, { ...r }, d));
1055
+ case Xe(o):
1056
+ return (i = o.details) == null ? void 0 : i.map((r, d) => /* @__PURE__ */ e.jsx(lt, { ...r }, d));
1057
+ case qe(o):
1058
+ return (n = o.details) == null ? void 0 : n.map((r, d) => /* @__PURE__ */ e.jsx(ot, { ...r }, d));
1040
1059
  default:
1041
1060
  return null;
1042
1061
  }
1043
- }, pt = ({ entity: r }) => /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-6", children: xt(r) }), Gt = ({ headline: r, tabs: t }) => {
1044
- var d, a;
1045
- const [o, n] = B(0), i = $(() => t == null ? void 0 : t.map((x) => x == null ? void 0 : x.tabName), [t]) ?? [];
1046
- return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ e.jsx("section", { id: "useful-info", children: /* @__PURE__ */ e.jsxs(k, { children: [
1047
- /* @__PURE__ */ e.jsx(w, { as: "h2", children: r }),
1048
- /* @__PURE__ */ e.jsx("div", { className: "mt-6 flex flex-col gap-2 desktop:mt-12", children: /* @__PURE__ */ e.jsx($e, { tabsNames: i, activeTab: o, setActiveTab: n }) }),
1049
- /* @__PURE__ */ e.jsx("div", { className: "mt-6 flex flex-col gap-6", children: (a = (d = t == null ? void 0 : t[o]) == null ? void 0 : d.contents) == null ? void 0 : a.map((x, m) => /* @__PURE__ */ e.jsx(pt, { ...x }, m)) })
1062
+ }, xt = ({ entity: o }) => /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-6", children: pt(o) }), Wt = ({ headline: o, tabs: t }) => {
1063
+ var d, p;
1064
+ const [i, n] = _(0), r = $(() => t == null ? void 0 : t.map((x) => x == null ? void 0 : x.tabName), [t]) ?? [];
1065
+ return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ e.jsx("section", { id: "useful-info", children: /* @__PURE__ */ e.jsxs(w, { children: [
1066
+ /* @__PURE__ */ e.jsx(y, { as: "h2", children: o }),
1067
+ /* @__PURE__ */ e.jsx("div", { className: "mt-6 flex flex-col gap-2 desktop:mt-12", children: /* @__PURE__ */ e.jsx(Ze, { tabsNames: r, activeTab: i, setActiveTab: n }) }),
1068
+ /* @__PURE__ */ e.jsx("div", { className: "mt-6 flex flex-col gap-6", children: (p = (d = t == null ? void 0 : t[i]) == null ? void 0 : d.contents) == null ? void 0 : p.map((x, a) => /* @__PURE__ */ e.jsx(xt, { ...x }, a)) })
1050
1069
  ] }) });
1051
- }, mt = ({ fields: r, control: t }) => r.map(({ type: o, args: n }) => {
1052
- const i = le[o];
1053
- return /* @__PURE__ */ X(i, { ...n, key: n.name, control: t });
1070
+ }, at = ({ fields: o, control: t }) => o.map(({ type: i, args: n }) => {
1071
+ const r = de[i];
1072
+ return /* @__PURE__ */ X(r, { ...n, key: n.name, control: t });
1054
1073
  });
1055
- class ut {
1074
+ class mt {
1056
1075
  constructor(t) {
1057
- C(this, "TEXT_NODE", 3);
1058
- C(this, "ELEMENT_NODE", 1);
1076
+ I(this, "TEXT_NODE", 3);
1077
+ I(this, "ELEMENT_NODE", 1);
1059
1078
  this.options = t;
1060
1079
  }
1061
1080
  /**
@@ -1064,37 +1083,37 @@ class ut {
1064
1083
  * @param elements Массив для сбора элементов
1065
1084
  * @param as Тип возвращаемых данных ('string' или 'node')
1066
1085
  */
1067
- traverse(t, o = "string", n) {
1068
- const { includeSolidText: i, recursive: d, element: a } = this.options || {};
1086
+ traverse(t, i = "string", n) {
1087
+ const { includeSolidText: r, recursive: d, element: p } = this.options || {};
1069
1088
  switch (t.nodeType) {
1070
1089
  // если узел - элемент
1071
1090
  case this.ELEMENT_NODE:
1072
- const x = t, m = x.tagName.toLowerCase();
1073
- if (m === "script") {
1091
+ const x = t, a = x.tagName.toLowerCase();
1092
+ if (a === "script") {
1074
1093
  console.warn("Found script node. For better security this node will be skipped.");
1075
1094
  break;
1076
1095
  }
1077
- if (a && m !== a)
1096
+ if (p && a !== p)
1078
1097
  break;
1079
- if (o === "node")
1098
+ if (i === "node")
1080
1099
  n.push(t);
1081
1100
  else {
1082
- const u = x.outerHTML.trim();
1083
- n.push(u);
1101
+ const m = x.outerHTML.trim();
1102
+ n.push(m);
1084
1103
  }
1085
1104
  if (d)
1086
- for (const u of t.childNodes)
1087
- this.traverse(u, o, n);
1105
+ for (const m of t.childNodes)
1106
+ this.traverse(m, i, n);
1088
1107
  break;
1089
1108
  // если узел - текстовый и требуется его добавить, добавляем
1090
1109
  case this.TEXT_NODE:
1091
- if (!i)
1110
+ if (!r)
1092
1111
  break;
1093
- if (o === "node")
1112
+ if (i === "node")
1094
1113
  n.push(t);
1095
1114
  else {
1096
- const u = t.textContent;
1097
- u && n.push(u);
1115
+ const m = t.textContent;
1116
+ m && n.push(m);
1098
1117
  }
1099
1118
  break;
1100
1119
  }
@@ -1105,14 +1124,14 @@ class ut {
1105
1124
  * @param as Тип возвращаемых данных ('string' или 'node')
1106
1125
  * @returns Массив тегов или нод
1107
1126
  */
1108
- async parse(t, o = "string") {
1109
- const { includeBody: n } = this.options || {}, i = [], d = [], a = await this.parseFromString(t), x = o === "string" ? i : d;
1127
+ async parse(t, i = "string") {
1128
+ const { includeBody: n } = this.options || {}, r = [], d = [], p = await this.parseFromString(t), x = i === "string" ? r : d;
1110
1129
  if (n)
1111
- this.traverse(a.body, o, x);
1130
+ this.traverse(p.body, i, x);
1112
1131
  else
1113
- for (const m of a.body.childNodes)
1114
- this.traverse(m, o, x);
1115
- return { stringNodes: i, nodes: d };
1132
+ for (const a of p.body.childNodes)
1133
+ this.traverse(a, i, x);
1134
+ return { stringNodes: r, nodes: d };
1116
1135
  }
1117
1136
  /**
1118
1137
  * Считает количество указанных тегов в HTML строке.
@@ -1120,27 +1139,27 @@ class ut {
1120
1139
  * @returns Количество найденных тегов
1121
1140
  */
1122
1141
  async countElements(t) {
1123
- const { stringNodes: o } = await this.parse(t, "string");
1124
- return o.length;
1142
+ const { stringNodes: i } = await this.parse(t, "string");
1143
+ return i.length;
1125
1144
  }
1126
1145
  }
1127
- const ht = typeof window < "u";
1146
+ const ut = typeof window < "u";
1128
1147
  class ft extends Error {
1129
- constructor(t, o) {
1130
- super(t), this.originalError = o, this.name = "BrowserHTMLParserError";
1148
+ constructor(t, i) {
1149
+ super(t), this.originalError = i, this.name = "BrowserHTMLParserError";
1131
1150
  }
1132
1151
  }
1133
- class ct extends ut {
1152
+ class ht extends mt {
1134
1153
  constructor(t) {
1135
1154
  super(t);
1136
1155
  }
1137
1156
  async parseFromString(t) {
1138
- if (!ht)
1157
+ if (!ut)
1139
1158
  throw new ft("HTMLParser should only be used in the browser.");
1140
1159
  return new DOMParser().parseFromString(t, "text/html");
1141
1160
  }
1142
1161
  }
1143
- class L {
1162
+ class z {
1144
1163
  /**
1145
1164
  * Функция для парсинга ноды в react элемент
1146
1165
  */
@@ -1148,10 +1167,10 @@ class L {
1148
1167
  if (t.nodeType === this.TEXT_NODE)
1149
1168
  return t.textContent ?? null;
1150
1169
  if (t.nodeType === this.ELEMENT_NODE) {
1151
- const o = t, n = o.tagName.toLowerCase(), i = {};
1152
- for (const a of o.attributes) {
1153
- let x = a.name, m = a.value;
1154
- switch (a.name) {
1170
+ const i = t, n = i.tagName.toLowerCase(), r = {};
1171
+ for (const p of i.attributes) {
1172
+ let x = p.name, a = p.value;
1173
+ switch (p.name) {
1155
1174
  case "class":
1156
1175
  x = "className";
1157
1176
  break;
@@ -1161,77 +1180,77 @@ class L {
1161
1180
  case "checked":
1162
1181
  case "disabled":
1163
1182
  case "selected":
1164
- m = a.value !== "false", m = a.value !== "false", m = a.value !== "false";
1183
+ a = p.value !== "false", a = p.value !== "false", a = p.value !== "false";
1165
1184
  break;
1166
1185
  case "readonly":
1167
- x = "readOnly", m = a.value !== "false";
1186
+ x = "readOnly", a = p.value !== "false";
1168
1187
  break;
1169
1188
  case "style":
1170
1189
  x = "style";
1171
- const u = {};
1172
- a.value.split(";").forEach((p) => {
1173
- const [h, f] = p.split(":");
1174
- if (h && f) {
1175
- const b = h.trim().replace(/-([a-z])/g, (y, te) => te.toUpperCase());
1176
- u[b] = f.trim();
1190
+ const m = {};
1191
+ p.value.split(";").forEach((u) => {
1192
+ const [f, h] = u.split(":");
1193
+ if (f && h) {
1194
+ const g = f.trim().replace(/-([a-z])/g, (k, N) => N.toUpperCase());
1195
+ m[g] = h.trim();
1177
1196
  }
1178
- }), m = u;
1197
+ }), a = m;
1179
1198
  break;
1180
1199
  }
1181
- i[x] = m;
1200
+ r[x] = a;
1182
1201
  }
1183
- i.key = Math.random().toString(36).substring(2, 9);
1202
+ r.key = Math.random().toString(36).substring(2, 9);
1184
1203
  const d = [];
1185
- for (const a of o.childNodes) {
1186
- const x = this.parseNode(a);
1204
+ for (const p of i.childNodes) {
1205
+ const x = this.parseNode(p);
1187
1206
  x && d.push(x);
1188
1207
  }
1189
- return X(n, i, ...d);
1208
+ return X(n, r, ...d);
1190
1209
  }
1191
1210
  return null;
1192
1211
  }
1193
1212
  /**
1194
1213
  * функция для преобразования html строки в react элементы
1195
1214
  */
1196
- static async toReactNodes(t, o) {
1197
- const n = new ct(o), { nodes: i } = await n.parse(t, "node");
1198
- return i.map((d) => this.parseNode(d));
1215
+ static async toReactNodes(t, i) {
1216
+ const n = new ht(i), { nodes: r } = await n.parse(t, "node");
1217
+ return r.map((d) => this.parseNode(d));
1199
1218
  }
1200
1219
  }
1201
- C(L, "TEXT_NODE", 3), C(L, "ELEMENT_NODE", 1);
1202
- const jt = ({ promises: r }) => {
1203
- const [t, o] = B([]);
1220
+ I(z, "TEXT_NODE", 3), I(z, "ELEMENT_NODE", 1);
1221
+ const bt = ({ promises: o }) => {
1222
+ const [t, i] = _([]);
1204
1223
  return q(() => {
1205
1224
  (async () => {
1206
- o(await r);
1225
+ i(await o);
1207
1226
  })();
1208
- }, [r]), /* @__PURE__ */ e.jsx(e.Fragment, { children: t });
1209
- }, S = ({ html: r, options: t, as: o }) => {
1210
- const n = o ?? he, i = L.toReactNodes(r, t);
1211
- return /* @__PURE__ */ e.jsx(n, { children: /* @__PURE__ */ e.jsx(jt, { promises: i }) });
1212
- }, bt = ["getFioSchema"], s = (r, t, o) => {
1213
- const n = r[t];
1227
+ }, [o]), /* @__PURE__ */ e.jsx(e.Fragment, { children: t });
1228
+ }, M = ({ html: o, options: t, as: i }) => {
1229
+ const n = i ?? ae, r = z.toReactNodes(o, t);
1230
+ return /* @__PURE__ */ e.jsx(n, { children: /* @__PURE__ */ e.jsx(bt, { promises: r }) });
1231
+ }, jt = ["getFioSchema"], s = (o, t, i) => {
1232
+ const n = o[t];
1214
1233
  if (j.isNil(n))
1215
1234
  throw new Error(`validation for type ${String(t)} not found`);
1216
1235
  if (!j.isFunction(n))
1217
1236
  throw new Error(`Cannot generate ${String(t)} because is not a function`);
1218
- return n(o);
1219
- }, gt = (r, t) => s(K.base, r, t), kt = (r, t) => s(K.dadata, r, t), wt = (r) => {
1220
- const o = r.map((n) => ({ name: n.args.name, validation: n.args.validation })).reduce((n, i) => {
1221
- const d = bt.includes(i.validation.type) ? kt(
1222
- i.validation.type,
1223
- i.validation.args
1224
- ) : gt(
1225
- i.validation.type,
1226
- i.validation.args
1237
+ return n(i);
1238
+ }, ct = (o, t) => s(Q.base, o, t), kt = (o, t) => s(Q.dadata, o, t), gt = (o) => {
1239
+ const i = o.map((n) => ({ name: n.args.name, validation: n.args.validation })).reduce((n, r) => {
1240
+ const d = jt.includes(r.validation.type) ? kt(
1241
+ r.validation.type,
1242
+ r.validation.args
1243
+ ) : ct(
1244
+ r.validation.type,
1245
+ r.validation.args
1227
1246
  );
1228
- return n[i.name] = d, n;
1247
+ return n[r.name] = d, n;
1229
1248
  }, {});
1230
- return ce(o);
1231
- }, yt = (r, t) => r.enabled ? t.map((o) => ({
1232
- name: o.args.name,
1233
- ...o.args.progress
1234
- })) : null, Nt = (r, t, o) => r.type === "off" ? null : r.type === "text" ? /* @__PURE__ */ e.jsx(S, { html: r.message, as: "div" }) : /* @__PURE__ */ e.jsxs(
1249
+ return be(i);
1250
+ }, wt = (o, t) => o.enabled ? t.map((i) => ({
1251
+ name: i.args.name,
1252
+ ...i.args.progress
1253
+ })) : null, yt = (o, t, i) => o.type === "off" ? null : o.type === "text" ? /* @__PURE__ */ e.jsx(M, { html: o.message, as: "div" }) : /* @__PURE__ */ e.jsxs(
1235
1254
  "label",
1236
1255
  {
1237
1256
  className: l(
@@ -1240,27 +1259,27 @@ const jt = ({ promises: r }) => {
1240
1259
  "flex items-center justify-items-start gap-x-3"
1241
1260
  ),
1242
1261
  children: [
1243
- /* @__PURE__ */ e.jsx(xe.CheckboxBase, { checked: t, onCheckedChange: o }),
1244
- /* @__PURE__ */ e.jsx(S, { html: r.content, as: "div" })
1262
+ /* @__PURE__ */ e.jsx(pe.CheckboxBase, { checked: t, onCheckedChange: i }),
1263
+ /* @__PURE__ */ e.jsx(M, { html: o.content, as: "div" })
1245
1264
  ]
1246
1265
  }
1247
- ), Zt = ({
1248
- fields: r,
1266
+ ), Gt = ({
1267
+ fields: o,
1249
1268
  title: t,
1250
- progress: o,
1269
+ progress: i,
1251
1270
  approvement: n,
1252
- chips: i,
1271
+ chips: r,
1253
1272
  submitContent: d = "Submit"
1254
1273
  }) => {
1255
- const [a, x] = B(!1), m = wt(r), { control: u, handleSubmit: p } = pe({
1256
- schema: m,
1257
- defaultValues: je.getZodDefaults(m),
1274
+ const [p, x] = _(!1), a = gt(o), { control: m, handleSubmit: u } = fe({
1275
+ schema: a,
1276
+ defaultValues: je.getZodDefaults(a),
1258
1277
  mode: "onBlur"
1259
- }), h = yt(o, r), f = be({ control: u, fields: h || [], schema: m }), b = (y) => {
1260
- console.warn(y);
1278
+ }), f = wt(i, o), h = ce({ control: m, fields: f || [], schema: a }), g = (k) => {
1279
+ console.warn(k);
1261
1280
  };
1262
1281
  return /* @__PURE__ */ e.jsxs("div", { className: "relative flex flex-col gap-6 rounded-sm border border-warm-grey-200 px-4 py-8 desktop:gap-8 desktop:p-14", children: [
1263
- i.enabled && /* @__PURE__ */ e.jsxs(
1282
+ r.enabled && /* @__PURE__ */ e.jsxs(
1264
1283
  "div",
1265
1284
  {
1266
1285
  className: l(
@@ -1269,30 +1288,30 @@ const jt = ({ promises: r }) => {
1269
1288
  "right-4 top-4 w-max"
1270
1289
  ),
1271
1290
  children: [
1272
- i.image && /* @__PURE__ */ e.jsx(c, { name: i.image, className: "size-4" }),
1273
- i.content
1291
+ r.image && /* @__PURE__ */ e.jsx(b, { name: r.image, className: "size-4" }),
1292
+ r.content
1274
1293
  ]
1275
1294
  }
1276
1295
  ),
1277
- /* @__PURE__ */ e.jsx(w, { as: "h3", children: t }),
1278
- /* @__PURE__ */ e.jsxs("form", { onSubmit: p(b), className: "flex w-[328px] flex-col gap-y-6 desktop:w-[524px] desktop:gap-y-8", children: [
1279
- o.enabled && /* @__PURE__ */ e.jsx(
1280
- ae,
1296
+ /* @__PURE__ */ e.jsx(y, { as: "h3", children: t }),
1297
+ /* @__PURE__ */ e.jsxs("form", { onSubmit: u(g), className: "flex w-[328px] flex-col gap-y-6 desktop:w-[524px] desktop:gap-y-8", children: [
1298
+ i.enabled && /* @__PURE__ */ e.jsx(
1299
+ le,
1281
1300
  {
1282
- progress: f,
1283
- topContent: /* @__PURE__ */ e.jsx(S, { html: o.title }),
1284
- bottomContent: /* @__PURE__ */ e.jsx(S, { html: o.subtitle }),
1285
- maxPercent: o.maxPercent
1301
+ progress: h,
1302
+ topContent: /* @__PURE__ */ e.jsx(M, { html: i.title }),
1303
+ bottomContent: /* @__PURE__ */ e.jsx(M, { html: i.subtitle }),
1304
+ maxPercent: i.maxPercent
1286
1305
  }
1287
1306
  ),
1288
- /* @__PURE__ */ e.jsx(mt, { control: u, fields: r }),
1307
+ /* @__PURE__ */ e.jsx(at, { control: m, fields: o }),
1289
1308
  /* @__PURE__ */ e.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
1290
- Nt(n, a, x),
1309
+ yt(n, p, x),
1291
1310
  /* @__PURE__ */ e.jsx(
1292
- N,
1311
+ O,
1293
1312
  {
1294
1313
  type: "submit",
1295
- disabled: n.type === "checkbox" ? !a : !1,
1314
+ disabled: n.type === "checkbox" ? !p : !1,
1296
1315
  className: l("w-full whitespace-nowrap", {
1297
1316
  "w-full desktop:w-[216px]": !!n
1298
1317
  }),
@@ -1302,7 +1321,7 @@ const jt = ({ promises: r }) => {
1302
1321
  ] })
1303
1322
  ] })
1304
1323
  ] });
1305
- }, $t = [
1324
+ }, Zt = [
1306
1325
  "header",
1307
1326
  "footer",
1308
1327
  "interLinking",
@@ -1311,10 +1330,10 @@ const jt = ({ promises: r }) => {
1311
1330
  "longBanner",
1312
1331
  "banner",
1313
1332
  "benefit"
1314
- ], I = () => ({
1333
+ ], T = () => ({
1315
1334
  approve: {
1316
1335
  icon: {
1317
- element: /* @__PURE__ */ e.jsx(c, { name: "status/iconMark" }),
1336
+ element: /* @__PURE__ */ e.jsx(b, { name: "status/iconMark" }),
1318
1337
  bg: "bg-color-positive-light"
1319
1338
  },
1320
1339
  title: "Ваша заявка отправлена",
@@ -1329,7 +1348,7 @@ const jt = ({ promises: r }) => {
1329
1348
  },
1330
1349
  repeated: {
1331
1350
  icon: {
1332
- element: /* @__PURE__ */ e.jsx(c, { name: "status/iconUser" }),
1351
+ element: /* @__PURE__ */ e.jsx(b, { name: "status/iconUser" }),
1333
1352
  bg: "bg-color-positive-light"
1334
1353
  },
1335
1354
  title: "Мы вас узнали",
@@ -1344,7 +1363,7 @@ const jt = ({ promises: r }) => {
1344
1363
  },
1345
1364
  error: {
1346
1365
  icon: {
1347
- element: /* @__PURE__ */ e.jsx(c, { name: "status/iconRetry" }),
1366
+ element: /* @__PURE__ */ e.jsx(b, { name: "status/iconRetry" }),
1348
1367
  bg: "bg-color-warning-light"
1349
1368
  },
1350
1369
  title: "Что-то пошло не так",
@@ -1359,7 +1378,7 @@ const jt = ({ promises: r }) => {
1359
1378
  },
1360
1379
  reject: {
1361
1380
  icon: {
1362
- element: /* @__PURE__ */ e.jsx(c, { name: "status/badSmile" }),
1381
+ element: /* @__PURE__ */ e.jsx(b, { name: "status/badSmile" }),
1363
1382
  bg: "bg-color-negative-light"
1364
1383
  },
1365
1384
  title: "Нам очень жаль",
@@ -1372,83 +1391,83 @@ const jt = ({ promises: r }) => {
1372
1391
  text: "Вернуться на главную"
1373
1392
  }
1374
1393
  }
1375
- }), Xt = ({ status: r, navigationFn: t }) => /* @__PURE__ */ e.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ e.jsx(k, { className: "flex flex-col justify-center", children: /* @__PURE__ */ e.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
1394
+ }), $t = ({ status: o, navigationFn: t }) => /* @__PURE__ */ e.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ e.jsx(w, { className: "flex flex-col justify-center", children: /* @__PURE__ */ e.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
1376
1395
  /* @__PURE__ */ e.jsx(
1377
1396
  "span",
1378
1397
  {
1379
1398
  className: l(
1380
1399
  "flex size-16 items-center justify-center rounded-full bg-color-positive-light",
1381
- `${I()[r].icon.bg}`
1400
+ `${T()[o].icon.bg}`
1382
1401
  ),
1383
- children: I()[r].icon.element
1402
+ children: T()[o].icon.element
1384
1403
  }
1385
1404
  ),
1386
1405
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
1387
- /* @__PURE__ */ e.jsx(w, { as: "h2", children: I()[r].title }),
1388
- /* @__PURE__ */ e.jsx("p", { className: "desk-body-regular-l text-color-dark", children: I()[r].description })
1406
+ /* @__PURE__ */ e.jsx(y, { as: "h2", children: T()[o].title }),
1407
+ /* @__PURE__ */ e.jsx("p", { className: "desk-body-regular-l text-color-dark", children: T()[o].description })
1389
1408
  ] }),
1390
- /* @__PURE__ */ e.jsx(N, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: I()[r].button.text })
1391
- ] }) }) }), ee = ({ breadcrumb: r, className: t, ...o }) => /* @__PURE__ */ e.jsx("a", { href: r.path, className: l("desk-body-regular-m", t), ...o, children: r.label }), vt = ({ startsWith: r, endsWith: t, matcher: o, filter: n, rootEnabled: i = !0 }) => {
1392
- const [d, a] = B([]);
1409
+ /* @__PURE__ */ e.jsx(O, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: T()[o].button.text })
1410
+ ] }) }) }), ee = ({ breadcrumb: o, className: t, ...i }) => /* @__PURE__ */ e.jsx("a", { href: o.path, className: l("desk-body-regular-m", t), ...i, children: o.label }), Nt = ({ startsWith: o, endsWith: t, matcher: i, filter: n, rootEnabled: r = !0 }) => {
1411
+ const [d, p] = _([]);
1393
1412
  return q(() => {
1394
- if (!J)
1413
+ if (!K)
1395
1414
  return;
1396
- let x = window.location.pathname.split("/").filter((p) => !j.isStringEmpty(p));
1397
- j.isUndefined(r) || (j.isString(r) ? x = x.slice(x.findIndex((p) => p === r)) : x = x.slice(r)), j.isUndefined(t) || (j.isString(t) ? x = x.slice(0, x.findIndex((p) => p === t) + 1) : x = x.slice(0, t + 1));
1398
- let m = [], u = "";
1399
- if (i) {
1400
- const p = {
1415
+ let x = window.location.pathname.split("/").filter((u) => !j.isStringEmpty(u));
1416
+ j.isUndefined(o) || (j.isString(o) ? x = x.slice(x.findIndex((u) => u === o)) : x = x.slice(o)), j.isUndefined(t) || (j.isString(t) ? x = x.slice(0, x.findIndex((u) => u === t) + 1) : x = x.slice(0, t + 1));
1417
+ let a = [], m = "";
1418
+ if (r) {
1419
+ const u = {
1401
1420
  index: 0,
1402
- id: O(),
1421
+ id: D(),
1403
1422
  path: "/",
1404
1423
  label: "home"
1405
1424
  };
1406
- m.push(p);
1425
+ a.push(u);
1407
1426
  }
1408
- x.forEach((p, h) => {
1409
- u += `/${p}`;
1410
- const f = {
1427
+ x.forEach((u, f) => {
1428
+ m += `/${u}`;
1429
+ const h = {
1411
1430
  // while root enabled we need to increment index
1412
1431
  // cuz we have root breadcrumb
1413
- index: i ? h + 1 : h,
1414
- id: O(),
1415
- path: u,
1416
- label: p
1432
+ index: r ? f + 1 : f,
1433
+ id: D(),
1434
+ path: m,
1435
+ label: u
1417
1436
  };
1418
- m.push(f);
1419
- }), o && (m = m.map((p) => ({
1420
- ...p,
1421
- ...o(p)
1422
- }))), a(n ? m.filter(n) : m);
1423
- }, [t, n, o, i, r]), d;
1424
- }, _ = (r, t, o, n) => r.map((i, d) => {
1425
- const a = d === n;
1437
+ a.push(h);
1438
+ }), i && (a = a.map((u) => ({
1439
+ ...u,
1440
+ ...i(u)
1441
+ }))), p(n ? a.filter(n) : a);
1442
+ }, [t, n, i, r, o]), d;
1443
+ }, S = (o, t, i, n) => o.map((r, d) => {
1444
+ const p = d === n;
1426
1445
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
1427
1446
  /* @__PURE__ */ e.jsx(
1428
1447
  ee,
1429
1448
  {
1430
- breadcrumb: i,
1431
- className: l(o, {
1432
- "pointer-events-none text-color-primary-disabled": a
1449
+ breadcrumb: r,
1450
+ className: l(i, {
1451
+ "pointer-events-none text-color-primary-disabled": p
1433
1452
  })
1434
1453
  }
1435
1454
  ),
1436
- d !== r.length - 1 && t
1437
- ] }, i.id);
1438
- }), qt = ({ separator: r, ellipsis: t, classes: o, ...n }) => {
1439
- const [i, d] = B(!1), a = fe(null);
1440
- me(a, () => d(!1));
1441
- const x = vt(n), { first: m, middle: u, last: p } = $(() => {
1442
- let f = [], b = [], y = [];
1443
- return t && (f = x.slice(0, t), b = x.slice(t, x.length - t), y = x.slice(x.length - t)), { first: f, middle: b, last: y };
1444
- }, [x, t]), h = r ?? /* @__PURE__ */ e.jsx(c, { name: "arrows/arrowRight", className: l("size-4", o == null ? void 0 : o.separator) });
1455
+ d !== o.length - 1 && t
1456
+ ] }, r.id);
1457
+ }), Xt = ({ separator: o, ellipsis: t, classes: i, ...n }) => {
1458
+ const [r, d] = _(!1), p = me(null);
1459
+ he(p, () => d(!1));
1460
+ const x = Nt(n), { first: a, middle: m, last: u } = $(() => {
1461
+ let h = [], g = [], k = [];
1462
+ return t && (h = x.slice(0, t), g = x.slice(t, x.length - t), k = x.slice(x.length - t)), { first: h, middle: g, last: k };
1463
+ }, [x, t]), f = o ?? /* @__PURE__ */ e.jsx(b, { name: "arrows/arrowRight", className: l("size-4", i == null ? void 0 : i.separator) });
1445
1464
  return /* @__PURE__ */ e.jsx(
1446
1465
  "div",
1447
1466
  {
1448
1467
  className: l(
1449
1468
  "flex max-w-[840px] flex-wrap items-center",
1450
1469
  "gap-x-2 gap-y-1 py-4 text-color-primary-default",
1451
- o == null ? void 0 : o.root
1470
+ i == null ? void 0 : i.root
1452
1471
  ),
1453
1472
  children: t ? (
1454
1473
  // if ellipsis provided, render hidden breadcrumbs
@@ -1456,72 +1475,72 @@ const jt = ({ promises: r }) => {
1456
1475
  // if we have more than ellipsis (visible crumbs) + available hidden crumbs
1457
1476
  // render hidden breadcrumbs
1458
1477
  /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1459
- _(m, h, o == null ? void 0 : o.breadcrumb),
1460
- h,
1461
- u.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1478
+ S(a, f, i == null ? void 0 : i.breadcrumb),
1479
+ f,
1480
+ m.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1462
1481
  /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
1463
1482
  /* @__PURE__ */ e.jsx("button", { onClick: () => d(!0), children: "..." }),
1464
1483
  /* @__PURE__ */ e.jsx(
1465
1484
  "ul",
1466
1485
  {
1467
- ref: a,
1486
+ ref: p,
1468
1487
  className: l(
1469
1488
  "invisible absolute max-h-[264px] overflow-y-auto",
1470
1489
  "w-[280px] rounded-sm bg-color-white",
1471
1490
  "customScrollbar-y p-1 opacity-0 shadow-sm",
1472
1491
  {
1473
- "visible opacity-100": i
1492
+ "visible opacity-100": r
1474
1493
  }
1475
1494
  ),
1476
- children: u.map((f) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
1495
+ children: m.map((h) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
1477
1496
  ee,
1478
1497
  {
1479
- breadcrumb: f,
1498
+ breadcrumb: h,
1480
1499
  className: l(
1481
1500
  "desk-body-regular-l inline-block py-3",
1482
1501
  "w-full rounded-sm bg-color-white px-2",
1483
1502
  "text-color-dark hover:bg-color-primary-tr-hover",
1484
- o == null ? void 0 : o.breadcrumb
1503
+ i == null ? void 0 : i.breadcrumb
1485
1504
  )
1486
1505
  }
1487
- ) }, f.id))
1506
+ ) }, h.id))
1488
1507
  }
1489
1508
  )
1490
1509
  ] }),
1491
- h
1510
+ f
1492
1511
  ] }),
1493
- _(p, h, o == null ? void 0 : o.breadcrumb, p.length - 1)
1512
+ S(u, f, i == null ? void 0 : i.breadcrumb, u.length - 1)
1494
1513
  ] })
1495
1514
  ) : (
1496
1515
  // otherwise render all breadcrumbs
1497
- _(x, h, o == null ? void 0 : o.breadcrumb, x.length - 1)
1516
+ S(x, f, i == null ? void 0 : i.breadcrumb, x.length - 1)
1498
1517
  ) })
1499
1518
  ) : (
1500
1519
  // if ellipsis doesn't provided render all breadcrumbs
1501
- _(x, h, o == null ? void 0 : o.breadcrumb, x.length - 1)
1520
+ S(x, f, i == null ? void 0 : i.breadcrumb, x.length - 1)
1502
1521
  )
1503
1522
  }
1504
1523
  );
1505
1524
  };
1506
1525
  export {
1507
1526
  Y as Advantages,
1508
- Ut as AuthProvider,
1509
- Ot as Banner,
1510
- R as BannerWithSeparateImg,
1511
- Lt as Benefit,
1512
- qt as Breadcrumbs,
1513
- Ne as ButtonWithHandlers,
1514
- Zt as DynamicForm,
1515
- Xt as FallbacksView,
1516
- mt as FieldMapper,
1517
- Rt as Footer,
1518
- ct as HTMLParser,
1519
- S as HTMLRenderer,
1520
- zt as Header,
1521
- Wt as InterLinking,
1522
- Vt as LongBanner,
1523
- Dt as Stepper,
1524
- Gt as UsefulInfo,
1525
- $t as WIDGET_LIST
1527
+ Vt as AuthProvider,
1528
+ zt as Banner,
1529
+ V as BannerWithSeparateImg,
1530
+ Ft as Benefit,
1531
+ Xt as Breadcrumbs,
1532
+ v as ButtonWithHandlers,
1533
+ Gt as DynamicForm,
1534
+ $t as FallbacksView,
1535
+ at as FieldMapper,
1536
+ Ot as Footer,
1537
+ ht as HTMLParser,
1538
+ M as HTMLRenderer,
1539
+ Lt as Header,
1540
+ Ut as InterLinking,
1541
+ Dt as LongBanner,
1542
+ Rt as Stepper,
1543
+ Wt as UsefulInfo,
1544
+ Zt as WIDGET_LIST
1526
1545
  };
1527
1546
  //# sourceMappingURL=widget.js.map