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