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