@scbt-ecom/ui 0.58.0 → 0.59.0

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