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