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