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