@scbt-ecom/ui 0.42.4 → 0.43.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/shared/ui/formElements/controlled/index.d.ts +2 -2
- package/dist/shared/ui/formElements/controlled/uploader/UploaderControl.d.ts +2 -2
- package/dist/shared/ui/index.d.ts +0 -1
- package/dist/ui.js +3581 -3604
- package/dist/ui.js.map +1 -1
- package/dist/utils-tailwind.css +11 -0
- package/dist/widget.js +448 -293
- package/dist/widget.js.map +1 -1
- package/dist/widgets/index.d.ts +1 -0
- package/dist/widgets/usefulInfo/UsefulInfo.d.ts +6 -0
- package/dist/widgets/usefulInfo/index.d.ts +1 -0
- package/dist/widgets/usefulInfo/model/index.d.ts +2 -0
- package/dist/widgets/usefulInfo/model/types.d.ts +50 -0
- package/dist/widgets/usefulInfo/model/utils.d.ts +4 -0
- package/dist/widgets/usefulInfo/ui/RenderEntity.d.ts +5 -0
- package/dist/widgets/usefulInfo/ui/Tabs.d.ts +7 -0
- package/dist/widgets/usefulInfo/ui/index.d.ts +2 -0
- package/dist/widgets/usefulInfo/ui/subEntities/documents/Documents.d.ts +2 -0
- package/dist/widgets/usefulInfo/ui/subEntities/documents/index.d.ts +1 -0
- package/dist/widgets/usefulInfo/ui/subEntities/documents/ui/document/Document.d.ts +8 -0
- package/dist/widgets/usefulInfo/ui/subEntities/documents/ui/document/model/utils.d.ts +6 -0
- package/dist/widgets/usefulInfo/ui/subEntities/html/Html.d.ts +2 -0
- package/dist/widgets/usefulInfo/ui/subEntities/html/index.d.ts +1 -0
- package/dist/widgets/usefulInfo/ui/subEntities/index.d.ts +3 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/Table.d.ts +2 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/index.d.ts +1 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/model/utils.d.ts +12 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/ui/DesktopHeadings.d.ts +7 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/ui/DesktopRow.d.ts +9 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/ui/MobileRow.d.ts +13 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/ui/TableBody.d.ts +9 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/ui/index.d.ts +3 -0
- package/package.json +2 -1
- package/dist/shared/ui/document/Document.d.ts +0 -14
- /package/dist/{shared → widgets/usefulInfo/ui/subEntities/documents}/ui/document/index.d.ts +0 -0
package/dist/widget.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { j as t, B as w, H as
|
|
2
|
-
import { s as
|
|
3
|
-
import { c as
|
|
1
|
+
import { j as t, B as w, H as f, c as u, R as k, P as H, b as L, I as j, C as y, S as W, a as D, L as O, d as c, A as N } from "./CustomLink-BrBUFe53.js";
|
|
2
|
+
import { s as V } from "./scrollToElement-B-reg4jF.js";
|
|
3
|
+
import { c as p } from "./cn-DIfn7EPB.js";
|
|
4
4
|
import { u as b } from "./useDevice-L83kSsN7.js";
|
|
5
5
|
import * as g from "react";
|
|
6
|
-
|
|
6
|
+
import { useState as S, useMemo as G } from "react";
|
|
7
|
+
const U = u(
|
|
7
8
|
"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",
|
|
8
9
|
{
|
|
9
10
|
variants: {
|
|
@@ -14,23 +15,23 @@ const S = k(
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
),
|
|
18
|
+
), Z = ({
|
|
18
19
|
description: r,
|
|
19
20
|
title: e,
|
|
20
|
-
img:
|
|
21
|
-
mobileImg:
|
|
22
|
-
classes:
|
|
23
|
-
withButton:
|
|
21
|
+
img: o,
|
|
22
|
+
mobileImg: d,
|
|
23
|
+
classes: n,
|
|
24
|
+
withButton: i,
|
|
24
25
|
buttonText: x,
|
|
25
|
-
intent:
|
|
26
|
-
cardColor:
|
|
26
|
+
intent: l,
|
|
27
|
+
cardColor: h
|
|
27
28
|
}) => {
|
|
28
|
-
const { isDesktop:
|
|
29
|
+
const { isDesktop: a } = b(), m = /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
29
30
|
w,
|
|
30
31
|
{
|
|
31
32
|
intent: "primary",
|
|
32
|
-
className:
|
|
33
|
-
onClick: () =>
|
|
33
|
+
className: p("desktop:w-[200px]", n == null ? void 0 : n.button),
|
|
34
|
+
onClick: () => V("personal_form"),
|
|
34
35
|
size: "lg",
|
|
35
36
|
children: x
|
|
36
37
|
}
|
|
@@ -38,21 +39,21 @@ const S = k(
|
|
|
38
39
|
return /* @__PURE__ */ t.jsxs(
|
|
39
40
|
"li",
|
|
40
41
|
{
|
|
41
|
-
className:
|
|
42
|
+
className: p(U({ intent: l }), { "pb-0": d }, { "pb-12": !d }, h, n == null ? void 0 : n.root),
|
|
42
43
|
children: [
|
|
43
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
44
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
45
|
-
/* @__PURE__ */ t.jsx(
|
|
46
|
-
/* @__PURE__ */ t.jsx("p", { className:
|
|
44
|
+
/* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", n == null ? void 0 : n.wrapper), children: [
|
|
45
|
+
/* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col gap-4", n == null ? void 0 : n.textContainer), children: [
|
|
46
|
+
/* @__PURE__ */ t.jsx(f, { as: "h4", className: p("desktop:desk-title-bold-s", n == null ? void 0 : n.title), children: e }),
|
|
47
|
+
/* @__PURE__ */ t.jsx("p", { className: p("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", n == null ? void 0 : n.description), children: r })
|
|
47
48
|
] }),
|
|
48
|
-
|
|
49
|
+
i && a && m
|
|
49
50
|
] }),
|
|
50
|
-
(
|
|
51
|
+
(d || a) && o && /* @__PURE__ */ t.jsx("div", { className: p("flex w-full justify-end", n == null ? void 0 : n.imgContainer), children: /* @__PURE__ */ t.jsx("img", { className: p("h-[246px] object-cover", n == null ? void 0 : n.img), src: o, alt: e }) })
|
|
51
52
|
]
|
|
52
53
|
},
|
|
53
|
-
|
|
54
|
+
o
|
|
54
55
|
);
|
|
55
|
-
},
|
|
56
|
+
}, $ = u("grid gap-4", {
|
|
56
57
|
variants: {
|
|
57
58
|
intent: {
|
|
58
59
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -60,20 +61,20 @@ const S = k(
|
|
|
60
61
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ t.jsx(
|
|
65
|
-
/* @__PURE__ */ t.jsx("ul", { className:
|
|
66
|
-
] }) }),
|
|
67
|
-
const { variant: e, details:
|
|
64
|
+
}), Ot = ({ heading: r, cards: e, classes: o, intent: d }) => /* @__PURE__ */ t.jsx("section", { className: p("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ t.jsxs(k, { className: o == null ? void 0 : o.container, children: [
|
|
65
|
+
/* @__PURE__ */ t.jsx(f, { className: p("mb-8", o == null ? void 0 : o.heading), as: "h2", children: r }),
|
|
66
|
+
/* @__PURE__ */ t.jsx("ul", { className: p($({ intent: d }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ t.jsx(Z, { intent: d, classes: o == null ? void 0 : o.item, ...n }, n.img)) })
|
|
67
|
+
] }) }), q = (r) => {
|
|
68
|
+
const { variant: e, details: o } = r;
|
|
68
69
|
switch (e) {
|
|
69
70
|
case "withButton":
|
|
70
|
-
return /* @__PURE__ */ t.jsx(w, { intent: "secondary", size: "sm", ...
|
|
71
|
+
return /* @__PURE__ */ t.jsx(w, { intent: "secondary", size: "sm", ...o, children: (o == null ? void 0 : o.children) || "Оформить заявку" });
|
|
71
72
|
case "withPhone":
|
|
72
|
-
return /* @__PURE__ */ t.jsx(
|
|
73
|
+
return /* @__PURE__ */ t.jsx(H, { ...o });
|
|
73
74
|
default:
|
|
74
75
|
return null;
|
|
75
76
|
}
|
|
76
|
-
},
|
|
77
|
+
}, Vt = ({ logoPath: r = "/", logoType: e = "main", config: o, classes: d }) => /* @__PURE__ */ t.jsx("header", { className: p("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", d == null ? void 0 : d.header), children: /* @__PURE__ */ t.jsx(k, { className: p(d == null ? void 0 : d.container), children: /* @__PURE__ */ t.jsxs("div", { className: p("flex items-center justify-between gap-5", d == null ? void 0 : d.wrapper), children: [
|
|
77
78
|
/* @__PURE__ */ t.jsx(
|
|
78
79
|
"a",
|
|
79
80
|
{
|
|
@@ -81,65 +82,65 @@ const S = k(
|
|
|
81
82
|
"aria-label": "logo",
|
|
82
83
|
target: "_blank",
|
|
83
84
|
rel: "noreferrer",
|
|
84
|
-
className:
|
|
85
|
+
className: p(
|
|
85
86
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
86
|
-
|
|
87
|
+
d == null ? void 0 : d.logo
|
|
87
88
|
),
|
|
88
89
|
children: L[e]
|
|
89
90
|
}
|
|
90
91
|
),
|
|
91
|
-
|
|
92
|
-
] }) }) }),
|
|
93
|
-
var
|
|
94
|
-
const
|
|
92
|
+
q(o)
|
|
93
|
+
] }) }) }), E = ({ buttonsConfig: r, classes: e, className: o }) => {
|
|
94
|
+
var n;
|
|
95
|
+
const d = (r == null ? void 0 : r.secondary) && r.secondary.children;
|
|
95
96
|
return /* @__PURE__ */ t.jsxs(
|
|
96
97
|
"div",
|
|
97
98
|
{
|
|
98
99
|
"data-id": "banner-buttons-group",
|
|
99
|
-
className:
|
|
100
|
+
className: p(
|
|
100
101
|
"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",
|
|
101
|
-
{ "flex items-center gap-4":
|
|
102
|
+
{ "flex items-center gap-4": d },
|
|
102
103
|
e == null ? void 0 : e.group,
|
|
103
|
-
|
|
104
|
+
o
|
|
104
105
|
),
|
|
105
106
|
children: [
|
|
106
|
-
/* @__PURE__ */ t.jsx(w, { intent: "primary", ...r.primary, isFull: !0, className:
|
|
107
|
-
|
|
107
|
+
/* @__PURE__ */ t.jsx(w, { intent: "primary", ...r.primary, isFull: !0, className: p("desktop:max-w-[216px]", e == null ? void 0 : e.primary), children: r.primary.children }),
|
|
108
|
+
d && /* @__PURE__ */ t.jsx(
|
|
108
109
|
w,
|
|
109
110
|
{
|
|
110
111
|
intent: "secondary",
|
|
111
112
|
...r == null ? void 0 : r.secondary,
|
|
112
113
|
isFull: !0,
|
|
113
|
-
className:
|
|
114
|
-
children: (
|
|
114
|
+
className: p("desktop:max-w-[216px]", e == null ? void 0 : e.secondary),
|
|
115
|
+
children: (n = r == null ? void 0 : r.secondary) == null ? void 0 : n.children
|
|
115
116
|
}
|
|
116
117
|
)
|
|
117
118
|
]
|
|
118
119
|
}
|
|
119
120
|
);
|
|
120
|
-
},
|
|
121
|
+
}, J = ({
|
|
121
122
|
headTitle: r,
|
|
122
123
|
subtitle: e,
|
|
123
|
-
buttonsConfig:
|
|
124
|
-
advantagesConfig:
|
|
125
|
-
classes:
|
|
126
|
-
img:
|
|
124
|
+
buttonsConfig: o,
|
|
125
|
+
advantagesConfig: d,
|
|
126
|
+
classes: n,
|
|
127
|
+
img: i,
|
|
127
128
|
imgSets: x
|
|
128
129
|
}) => {
|
|
129
130
|
var m;
|
|
130
|
-
const { isDesktop:
|
|
131
|
+
const { isDesktop: l, isMobile: h } = b(), a = /* @__PURE__ */ t.jsx(
|
|
131
132
|
"div",
|
|
132
133
|
{
|
|
133
134
|
"data-id": "banner-advantages",
|
|
134
|
-
className:
|
|
135
|
+
className: p(
|
|
135
136
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
136
|
-
|
|
137
|
+
n == null ? void 0 : n.advantageContainer
|
|
137
138
|
),
|
|
138
|
-
children: (
|
|
139
|
+
children: (d == null ? void 0 : d.config.details) && ((m = d == null ? void 0 : d.config.details) == null ? void 0 : m.length) > 0 && /* @__PURE__ */ t.jsx(z, { ...d })
|
|
139
140
|
}
|
|
140
141
|
);
|
|
141
142
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
142
|
-
/* @__PURE__ */ t.jsxs("section", { "data-id": "banner-section", className:
|
|
143
|
+
/* @__PURE__ */ t.jsxs("section", { "data-id": "banner-section", className: p("relative h-[552px] desktop:h-[456px]", n == null ? void 0 : n.root), children: [
|
|
143
144
|
/* @__PURE__ */ t.jsx(
|
|
144
145
|
"div",
|
|
145
146
|
{
|
|
@@ -152,78 +153,78 @@ const S = k(
|
|
|
152
153
|
"img",
|
|
153
154
|
{
|
|
154
155
|
"data-id": "banner-image",
|
|
155
|
-
src:
|
|
156
|
+
src: i,
|
|
156
157
|
alt: "Картинка баннера",
|
|
157
|
-
className:
|
|
158
|
+
className: p("h-full w-full object-cover object-center", n == null ? void 0 : n.image)
|
|
158
159
|
}
|
|
159
160
|
)
|
|
160
161
|
] })
|
|
161
162
|
}
|
|
162
163
|
),
|
|
163
|
-
/* @__PURE__ */ t.jsxs(
|
|
164
|
-
/* @__PURE__ */ t.jsx("div", { "data-id": "banner", className:
|
|
164
|
+
/* @__PURE__ */ t.jsxs(k, { "data-id": "banner-container", className: p("h-full", n == null ? void 0 : n.container), children: [
|
|
165
|
+
/* @__PURE__ */ t.jsx("div", { "data-id": "banner", className: p("flex h-full", n == null ? void 0 : n.wrapper), children: /* @__PURE__ */ t.jsxs(
|
|
165
166
|
"div",
|
|
166
167
|
{
|
|
167
168
|
"data-id": "banner-text-block",
|
|
168
|
-
className:
|
|
169
|
+
className: p("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", n == null ? void 0 : n.textBlock),
|
|
169
170
|
children: [
|
|
170
171
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
171
|
-
/* @__PURE__ */ t.jsx(
|
|
172
|
-
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className:
|
|
172
|
+
/* @__PURE__ */ t.jsx(f, { "data-id": "banner-title", as: "h1", className: p("text-color-white", n == null ? void 0 : n.title), children: r }),
|
|
173
|
+
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: p("desk-body-regular-l text-color-white", n == null ? void 0 : n.subtitle), children: e })
|
|
173
174
|
] }),
|
|
174
175
|
/* @__PURE__ */ t.jsx(
|
|
175
|
-
|
|
176
|
+
E,
|
|
176
177
|
{
|
|
177
178
|
className: "self-end desktop:self-center",
|
|
178
179
|
"data-id": "banner-buttons-group",
|
|
179
|
-
buttonsConfig:
|
|
180
|
-
classes:
|
|
180
|
+
buttonsConfig: o,
|
|
181
|
+
classes: n
|
|
181
182
|
}
|
|
182
183
|
)
|
|
183
184
|
]
|
|
184
185
|
}
|
|
185
186
|
) }),
|
|
186
|
-
|
|
187
|
+
l && a
|
|
187
188
|
] })
|
|
188
189
|
] }),
|
|
189
|
-
|
|
190
|
+
h && a
|
|
190
191
|
] });
|
|
191
192
|
}, B = ({
|
|
192
193
|
headTitle: r,
|
|
193
194
|
subtitle: e,
|
|
194
|
-
buttonsConfig:
|
|
195
|
-
advantagesConfig:
|
|
196
|
-
classes:
|
|
197
|
-
img:
|
|
195
|
+
buttonsConfig: o,
|
|
196
|
+
advantagesConfig: d,
|
|
197
|
+
classes: n,
|
|
198
|
+
img: i,
|
|
198
199
|
imgSets: x
|
|
199
200
|
}) => {
|
|
200
201
|
var m;
|
|
201
|
-
const { isDesktop:
|
|
202
|
+
const { isDesktop: l, isMobile: h } = b(), a = /* @__PURE__ */ t.jsx(
|
|
202
203
|
"div",
|
|
203
204
|
{
|
|
204
205
|
"data-id": "banner-advantages",
|
|
205
|
-
className:
|
|
206
|
+
className: p(
|
|
206
207
|
"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",
|
|
207
|
-
|
|
208
|
+
n == null ? void 0 : n.advantageContainer
|
|
208
209
|
),
|
|
209
|
-
children: (
|
|
210
|
+
children: (d == null ? void 0 : d.config.details) && ((m = d == null ? void 0 : d.config.details) == null ? void 0 : m.length) > 0 && /* @__PURE__ */ t.jsx(z, { ...d })
|
|
210
211
|
}
|
|
211
212
|
);
|
|
212
213
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
213
|
-
/* @__PURE__ */ t.jsx("section", { "data-id": "banner-section", className:
|
|
214
|
-
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner", className:
|
|
214
|
+
/* @__PURE__ */ t.jsx("section", { "data-id": "banner-section", className: p("bg-banner-skyblue-300 desktop:h-[456px]", n == null ? void 0 : n.root), children: /* @__PURE__ */ t.jsxs(k, { "data-id": "banner-container", className: p("relative", n == null ? void 0 : n.container), children: [
|
|
215
|
+
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner", className: p("flex flex-col desktop:flex-row desktop:justify-between", n == null ? void 0 : n.wrapper), children: [
|
|
215
216
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
216
|
-
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner-text-block", className:
|
|
217
|
-
/* @__PURE__ */ t.jsx(
|
|
218
|
-
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className:
|
|
217
|
+
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner-text-block", className: p("flex flex-col gap-4 pt-6 desktop:pt-0", n == null ? void 0 : n.textBlock), children: [
|
|
218
|
+
/* @__PURE__ */ t.jsx(f, { "data-id": "banner-title", as: "h1", className: p("text-color-dark", n == null ? void 0 : n.title), children: r }),
|
|
219
|
+
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: p("desk-body-regular-l text-color-dark", n == null ? void 0 : n.subtitle), children: e })
|
|
219
220
|
] }),
|
|
220
|
-
/* @__PURE__ */ t.jsx(
|
|
221
|
+
/* @__PURE__ */ t.jsx(E, { buttonsConfig: o, classes: n })
|
|
221
222
|
] }),
|
|
222
223
|
/* @__PURE__ */ t.jsx(
|
|
223
224
|
"div",
|
|
224
225
|
{
|
|
225
226
|
"data-id": "banner-image-wrapper",
|
|
226
|
-
className:
|
|
227
|
+
className: p("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", n == null ? void 0 : n.imageContainer),
|
|
227
228
|
children: /* @__PURE__ */ t.jsxs("picture", { children: [
|
|
228
229
|
/* @__PURE__ */ t.jsx("source", { media: "(min-width: 1128px)", srcSet: x == null ? void 0 : x.large }),
|
|
229
230
|
/* @__PURE__ */ t.jsx("source", { media: "(max-width: 1127px)", srcSet: x == null ? void 0 : x.mob }),
|
|
@@ -231,122 +232,122 @@ const S = k(
|
|
|
231
232
|
"img",
|
|
232
233
|
{
|
|
233
234
|
"data-id": "banner-image",
|
|
234
|
-
src:
|
|
235
|
+
src: i,
|
|
235
236
|
alt: "Картинка баннера",
|
|
236
|
-
className:
|
|
237
|
+
className: p("h-full object-cover", n == null ? void 0 : n.image)
|
|
237
238
|
}
|
|
238
239
|
)
|
|
239
240
|
] })
|
|
240
241
|
}
|
|
241
242
|
)
|
|
242
243
|
] }),
|
|
243
|
-
|
|
244
|
+
l && a
|
|
244
245
|
] }) }),
|
|
245
|
-
|
|
246
|
+
h && a
|
|
246
247
|
] });
|
|
247
|
-
},
|
|
248
|
+
}, St = ({ bannerVariant: r, ...e }) => {
|
|
248
249
|
switch (r) {
|
|
249
250
|
case "separateImg":
|
|
250
251
|
return /* @__PURE__ */ t.jsx(B, { ...e });
|
|
251
252
|
case "fullImg":
|
|
252
|
-
return /* @__PURE__ */ t.jsx(
|
|
253
|
+
return /* @__PURE__ */ t.jsx(J, { ...e });
|
|
253
254
|
default:
|
|
254
255
|
return /* @__PURE__ */ t.jsx(B, { ...e });
|
|
255
256
|
}
|
|
256
|
-
},
|
|
257
|
-
const { variant:
|
|
257
|
+
}, z = ({ config: r, classes: e }) => {
|
|
258
|
+
const { variant: o, details: d } = r;
|
|
258
259
|
return /* @__PURE__ */ t.jsx(
|
|
259
260
|
"div",
|
|
260
261
|
{
|
|
261
|
-
className:
|
|
262
|
+
className: p(
|
|
262
263
|
"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",
|
|
263
|
-
{ "desktop:max-w-[860px]":
|
|
264
|
-
{ "desktop:max-w-[1140px]":
|
|
264
|
+
{ "desktop:max-w-[860px]": o === "threeCards" },
|
|
265
|
+
{ "desktop:max-w-[1140px]": o === "fourCards" },
|
|
265
266
|
e == null ? void 0 : e.root
|
|
266
267
|
),
|
|
267
|
-
children:
|
|
268
|
+
children: d == null ? void 0 : d.map(({ title: n, description: i }) => /* @__PURE__ */ t.jsxs(
|
|
268
269
|
"div",
|
|
269
270
|
{
|
|
270
|
-
className:
|
|
271
|
+
className: p(
|
|
271
272
|
'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: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',
|
|
272
273
|
e == null ? void 0 : e.item
|
|
273
274
|
),
|
|
274
275
|
children: [
|
|
275
|
-
/* @__PURE__ */ t.jsx(
|
|
276
|
-
/* @__PURE__ */ t.jsx("p", { className:
|
|
276
|
+
/* @__PURE__ */ t.jsx(f, { as: "h4", className: p("text-color-dark", e == null ? void 0 : e.title), children: n }),
|
|
277
|
+
/* @__PURE__ */ t.jsx("p", { className: p("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: i })
|
|
277
278
|
]
|
|
278
279
|
},
|
|
279
|
-
|
|
280
|
+
n
|
|
280
281
|
))
|
|
281
282
|
}
|
|
282
283
|
);
|
|
283
|
-
},
|
|
284
|
+
}, K = ({ socialsLinks: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: p("mt-4 flex items-center gap-2 desktop:mt-6", e == null ? void 0 : e.socialRoot), children: r == null ? void 0 : r.map(({ iconName: o, href: d }) => /* @__PURE__ */ t.jsx(
|
|
284
285
|
"a",
|
|
285
286
|
{
|
|
286
|
-
className:
|
|
287
|
-
href:
|
|
288
|
-
"aria-label":
|
|
289
|
-
children: /* @__PURE__ */ t.jsx(
|
|
287
|
+
className: p("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
288
|
+
href: d,
|
|
289
|
+
"aria-label": o.replace("social/", ""),
|
|
290
|
+
children: /* @__PURE__ */ t.jsx(j, { name: o, className: p("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
290
291
|
},
|
|
291
|
-
|
|
292
|
-
)) }),
|
|
293
|
-
|
|
292
|
+
d
|
|
293
|
+
)) }), Q = ({ phones: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: p("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: r == null ? void 0 : r.map(({ phone: o, text: d }) => /* @__PURE__ */ t.jsx(
|
|
294
|
+
H,
|
|
294
295
|
{
|
|
295
|
-
phone:
|
|
296
|
-
text:
|
|
296
|
+
phone: o,
|
|
297
|
+
text: d,
|
|
297
298
|
classes: {
|
|
298
|
-
wrapper:
|
|
299
|
-
text:
|
|
300
|
-
link:
|
|
299
|
+
wrapper: p(e == null ? void 0 : e.phoneWrapper),
|
|
300
|
+
text: p("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
301
|
+
link: p("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
301
302
|
}
|
|
302
303
|
},
|
|
303
|
-
|
|
304
|
-
)) }),
|
|
305
|
-
const { details:
|
|
304
|
+
o
|
|
305
|
+
)) }), X = ({ classes: r, config: e }) => {
|
|
306
|
+
const { details: o } = e || {};
|
|
306
307
|
return /* @__PURE__ */ t.jsx(
|
|
307
308
|
"div",
|
|
308
309
|
{
|
|
309
|
-
className:
|
|
310
|
+
className: p(
|
|
310
311
|
"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",
|
|
311
312
|
r == null ? void 0 : r.navRoot
|
|
312
313
|
),
|
|
313
|
-
children:
|
|
314
|
-
({ column:
|
|
315
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
316
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
317
|
-
|
|
314
|
+
children: o == null ? void 0 : o.map(
|
|
315
|
+
({ column: d }) => d == null ? void 0 : d.map(({ groupLabel: n, links: i }) => /* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col gap-4", r == null ? void 0 : r.navGroup), children: [
|
|
316
|
+
/* @__PURE__ */ t.jsx("div", { className: p("desk-body-medium-l text-color-white", r == null ? void 0 : r.navLabel), children: n }),
|
|
317
|
+
/* @__PURE__ */ t.jsx("div", { className: p("flex flex-col gap-1", r == null ? void 0 : r.navLinks), children: i == null ? void 0 : i.map(({ path: x, label: l }) => /* @__PURE__ */ t.jsx(
|
|
318
|
+
y,
|
|
318
319
|
{
|
|
319
320
|
href: x,
|
|
320
|
-
"aria-label":
|
|
321
|
+
"aria-label": l,
|
|
321
322
|
intent: "white",
|
|
322
323
|
classes: {
|
|
323
324
|
link: r == null ? void 0 : r.navLink,
|
|
324
325
|
icon: r == null ? void 0 : r.navLinkIcon
|
|
325
326
|
},
|
|
326
|
-
children:
|
|
327
|
+
children: l
|
|
327
328
|
},
|
|
328
|
-
|
|
329
|
+
l
|
|
329
330
|
)) })
|
|
330
|
-
] },
|
|
331
|
+
] }, n))
|
|
331
332
|
)
|
|
332
333
|
}
|
|
333
334
|
);
|
|
334
|
-
},
|
|
335
|
+
}, Y = ({ text: r, classes: e }) => /* @__PURE__ */ t.jsx(
|
|
335
336
|
"div",
|
|
336
337
|
{
|
|
337
|
-
className:
|
|
338
|
+
className: p("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
|
|
338
339
|
dangerouslySetInnerHTML: { __html: r }
|
|
339
340
|
}
|
|
340
|
-
),
|
|
341
|
+
), A = ({ classes: r }) => /* @__PURE__ */ t.jsx(
|
|
341
342
|
"a",
|
|
342
343
|
{
|
|
343
344
|
"aria-label": "logo",
|
|
344
345
|
href: "https://sovcombank.ru/",
|
|
345
|
-
className:
|
|
346
|
-
children: /* @__PURE__ */ t.jsx(
|
|
346
|
+
className: p("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", r == null ? void 0 : r.footerLogo),
|
|
347
|
+
children: /* @__PURE__ */ t.jsx(j, { name: "brandLogos/logoWhite", className: p("size-full", r == null ? void 0 : r.footerLogoIcon) })
|
|
347
348
|
}
|
|
348
|
-
),
|
|
349
|
-
|
|
349
|
+
), P = ({ classes: r }) => /* @__PURE__ */ t.jsx(
|
|
350
|
+
y,
|
|
350
351
|
{
|
|
351
352
|
intent: "white",
|
|
352
353
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -354,32 +355,32 @@ const S = k(
|
|
|
354
355
|
"aria-label": "site-map",
|
|
355
356
|
rel: "noreferrer",
|
|
356
357
|
classes: {
|
|
357
|
-
link:
|
|
358
|
+
link: p("mobile:mt-6", r == null ? void 0 : r.siteMapLink),
|
|
358
359
|
icon: r == null ? void 0 : r.siteMapLinkIcon
|
|
359
360
|
},
|
|
360
361
|
children: "Карта сайта"
|
|
361
362
|
}
|
|
362
|
-
),
|
|
363
|
-
const [
|
|
363
|
+
), s = ({ text: r, classes: e }) => {
|
|
364
|
+
const [o, d] = g.useState(!1), [n, i] = g.useState(!1), x = g.useRef(null);
|
|
364
365
|
return g.useEffect(() => {
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
}, []), /* @__PURE__ */ t.jsxs("div", { className:
|
|
366
|
+
const l = x.current;
|
|
367
|
+
l && i(l.scrollHeight > l.clientHeight);
|
|
368
|
+
}, []), /* @__PURE__ */ t.jsxs("div", { className: p("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
368
369
|
/* @__PURE__ */ t.jsx(
|
|
369
370
|
"div",
|
|
370
371
|
{
|
|
371
372
|
ref: x,
|
|
372
|
-
className:
|
|
373
|
+
className: p("desk-body-regular-m text-color-footer", { "line-clamp-3": !o }, e == null ? void 0 : e.ligalText),
|
|
373
374
|
dangerouslySetInnerHTML: { __html: r }
|
|
374
375
|
}
|
|
375
376
|
),
|
|
376
|
-
|
|
377
|
+
n && /* @__PURE__ */ t.jsx(
|
|
377
378
|
"div",
|
|
378
379
|
{
|
|
379
380
|
tabIndex: 0,
|
|
380
381
|
role: "button",
|
|
381
|
-
onClick: () =>
|
|
382
|
-
className:
|
|
382
|
+
onClick: () => d((l) => !l),
|
|
383
|
+
className: p(
|
|
383
384
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
384
385
|
e == null ? void 0 : e.ligalButton
|
|
385
386
|
),
|
|
@@ -387,59 +388,59 @@ const S = k(
|
|
|
387
388
|
}
|
|
388
389
|
)
|
|
389
390
|
] });
|
|
390
|
-
},
|
|
391
|
+
}, Gt = ({
|
|
391
392
|
renderBlocks: {
|
|
392
393
|
withSocialsLinks: r = !0,
|
|
393
394
|
withPhones: e = !0,
|
|
394
|
-
withNavLinks:
|
|
395
|
-
withCopyright:
|
|
396
|
-
withSiteMap:
|
|
397
|
-
withLigal:
|
|
395
|
+
withNavLinks: o = !0,
|
|
396
|
+
withCopyright: d = !0,
|
|
397
|
+
withSiteMap: n = !0,
|
|
398
|
+
withLigal: i = !0
|
|
398
399
|
} = {},
|
|
399
400
|
socialsLinks: x = [],
|
|
400
|
-
phones:
|
|
401
|
-
ligal:
|
|
402
|
-
copyright:
|
|
401
|
+
phones: l = [],
|
|
402
|
+
ligal: h,
|
|
403
|
+
copyright: a = "",
|
|
403
404
|
classes: m,
|
|
404
|
-
config:
|
|
405
|
-
}) => /* @__PURE__ */ t.jsx("footer", { className:
|
|
405
|
+
config: v
|
|
406
|
+
}) => /* @__PURE__ */ t.jsx("footer", { className: p("w-full bg-color-footer py-8 desktop:py-10", m == null ? void 0 : m.root), children: /* @__PURE__ */ t.jsx(k, { className: p(m == null ? void 0 : m.footerContainer), children: /* @__PURE__ */ t.jsxs("div", { className: p("mobile:pb-[176px]", m == null ? void 0 : m.footerWrapper), children: [
|
|
406
407
|
/* @__PURE__ */ t.jsxs(
|
|
407
408
|
"div",
|
|
408
409
|
{
|
|
409
|
-
className:
|
|
410
|
+
className: p(
|
|
410
411
|
"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",
|
|
411
412
|
m == null ? void 0 : m.footerHead
|
|
412
413
|
),
|
|
413
414
|
children: [
|
|
414
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
415
|
-
/* @__PURE__ */ t.jsx(
|
|
416
|
-
r && /* @__PURE__ */ t.jsx(
|
|
415
|
+
/* @__PURE__ */ t.jsxs("div", { className: p(m == null ? void 0 : m.footerSocialBlock), children: [
|
|
416
|
+
/* @__PURE__ */ t.jsx(A, { classes: m == null ? void 0 : m.footerLogo }),
|
|
417
|
+
r && /* @__PURE__ */ t.jsx(K, { socialsLinks: x, classes: m == null ? void 0 : m.socialLinks })
|
|
417
418
|
] }),
|
|
418
|
-
e && /* @__PURE__ */ t.jsx(
|
|
419
|
+
e && /* @__PURE__ */ t.jsx(Q, { phones: l, classes: m == null ? void 0 : m.phonesBlock })
|
|
419
420
|
]
|
|
420
421
|
}
|
|
421
422
|
),
|
|
422
|
-
|
|
423
|
-
|
|
423
|
+
o && /* @__PURE__ */ t.jsx(X, { config: v, classes: m == null ? void 0 : m.navLinks }),
|
|
424
|
+
i && /* @__PURE__ */ t.jsx(s, { text: h || "" }),
|
|
424
425
|
/* @__PURE__ */ t.jsxs(
|
|
425
426
|
"div",
|
|
426
427
|
{
|
|
427
|
-
className:
|
|
428
|
+
className: p(
|
|
428
429
|
"mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
|
|
429
430
|
m == null ? void 0 : m.footerBottom
|
|
430
431
|
),
|
|
431
432
|
children: [
|
|
432
|
-
|
|
433
|
-
|
|
433
|
+
d && /* @__PURE__ */ t.jsx(Y, { text: a, classes: m == null ? void 0 : m.copyright }),
|
|
434
|
+
n && /* @__PURE__ */ t.jsx(P, { classes: m == null ? void 0 : m.siteMap })
|
|
434
435
|
]
|
|
435
436
|
}
|
|
436
437
|
)
|
|
437
|
-
] }) }) }),
|
|
438
|
-
const
|
|
438
|
+
] }) }) }), tt = ({ classes: r, index: e, variant: o, title: d, description: n }) => {
|
|
439
|
+
const i = o === "withTitleAndDescription" && d;
|
|
439
440
|
return /* @__PURE__ */ t.jsxs(
|
|
440
441
|
"div",
|
|
441
442
|
{
|
|
442
|
-
className:
|
|
443
|
+
className: p(
|
|
443
444
|
"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",
|
|
444
445
|
r == null ? void 0 : r.singleStep
|
|
445
446
|
),
|
|
@@ -447,42 +448,42 @@ const S = k(
|
|
|
447
448
|
/* @__PURE__ */ t.jsx(
|
|
448
449
|
"div",
|
|
449
450
|
{
|
|
450
|
-
className:
|
|
451
|
+
className: p(
|
|
451
452
|
"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",
|
|
452
453
|
r == null ? void 0 : r.numeric
|
|
453
454
|
),
|
|
454
455
|
children: e
|
|
455
456
|
}
|
|
456
457
|
),
|
|
457
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
458
|
-
|
|
458
|
+
/* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col gap-2"), children: [
|
|
459
|
+
i && /* @__PURE__ */ t.jsx(f, { as: "h4", className: p("text-color-dark", r == null ? void 0 : r.title), children: d }),
|
|
459
460
|
/* @__PURE__ */ t.jsx(
|
|
460
461
|
"div",
|
|
461
462
|
{
|
|
462
|
-
dangerouslySetInnerHTML: { __html:
|
|
463
|
-
className:
|
|
463
|
+
dangerouslySetInnerHTML: { __html: n ?? "" },
|
|
464
|
+
className: p("desk-body-regular-l text-color-tetriary", r == null ? void 0 : r.description)
|
|
464
465
|
}
|
|
465
466
|
)
|
|
466
467
|
] })
|
|
467
468
|
]
|
|
468
469
|
}
|
|
469
470
|
);
|
|
470
|
-
},
|
|
471
|
-
const { variant:
|
|
472
|
-
return /* @__PURE__ */ t.jsx(
|
|
473
|
-
/* @__PURE__ */ t.jsx(
|
|
471
|
+
}, Ut = ({ headline: r, config: e, classes: o }) => {
|
|
472
|
+
const { variant: d, details: n } = e;
|
|
473
|
+
return /* @__PURE__ */ t.jsx(W, { className: o == null ? void 0 : o.root, children: /* @__PURE__ */ t.jsx(k, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
474
|
+
/* @__PURE__ */ t.jsx(f, { as: "h2", className: p("text-color-dark", o == null ? void 0 : o.headline), children: r }),
|
|
474
475
|
/* @__PURE__ */ t.jsx(
|
|
475
476
|
"div",
|
|
476
477
|
{
|
|
477
|
-
className:
|
|
478
|
+
className: p(
|
|
478
479
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
479
|
-
|
|
480
|
+
o == null ? void 0 : o.stepsWrapper
|
|
480
481
|
),
|
|
481
|
-
children:
|
|
482
|
+
children: n == null ? void 0 : n.map((i, x) => /* @__PURE__ */ t.jsx(tt, { variant: d, ...i, index: x + 1, classes: o == null ? void 0 : o.step }, i.description))
|
|
482
483
|
}
|
|
483
484
|
)
|
|
484
485
|
] }) }) });
|
|
485
|
-
},
|
|
486
|
+
}, et = u("", {
|
|
486
487
|
variants: {
|
|
487
488
|
intent: {
|
|
488
489
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -498,7 +499,7 @@ const S = k(
|
|
|
498
499
|
defaultVariants: {
|
|
499
500
|
intent: "twoItems"
|
|
500
501
|
}
|
|
501
|
-
}),
|
|
502
|
+
}), rt = u("", {
|
|
502
503
|
variants: {
|
|
503
504
|
intent: {
|
|
504
505
|
twoItems: "",
|
|
@@ -530,7 +531,7 @@ const S = k(
|
|
|
530
531
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
531
532
|
}
|
|
532
533
|
]
|
|
533
|
-
}),
|
|
534
|
+
}), ot = u("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
534
535
|
variants: {
|
|
535
536
|
intent: {
|
|
536
537
|
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',
|
|
@@ -540,7 +541,7 @@ const S = k(
|
|
|
540
541
|
defaultVariants: {
|
|
541
542
|
intent: "twoItems"
|
|
542
543
|
}
|
|
543
|
-
}),
|
|
544
|
+
}), nt = u("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
544
545
|
variants: {
|
|
545
546
|
intent: {
|
|
546
547
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -566,46 +567,46 @@ const S = k(
|
|
|
566
567
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
567
568
|
}
|
|
568
569
|
]
|
|
569
|
-
}),
|
|
570
|
+
}), dt = ({ data: r, intent: e }) => {
|
|
570
571
|
const {
|
|
571
|
-
title:
|
|
572
|
-
description:
|
|
573
|
-
popover:
|
|
572
|
+
title: o,
|
|
573
|
+
description: d,
|
|
574
|
+
popover: n = {
|
|
574
575
|
enabled: !1
|
|
575
576
|
}
|
|
576
577
|
} = r;
|
|
577
|
-
return /* @__PURE__ */ t.jsx("li", { className:
|
|
578
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
579
|
-
/* @__PURE__ */ t.jsx("h4", { className:
|
|
580
|
-
|
|
578
|
+
return /* @__PURE__ */ t.jsx("li", { className: p(ot({ intent: e })), children: /* @__PURE__ */ t.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
579
|
+
/* @__PURE__ */ t.jsxs("div", { className: p("mb-2 flex items-center gap-2"), children: [
|
|
580
|
+
/* @__PURE__ */ t.jsx("h4", { className: p("mob-title-bold-m text-color-dark"), children: o }),
|
|
581
|
+
n.enabled && /* @__PURE__ */ t.jsx(D, { triggerElement: /* @__PURE__ */ t.jsx(j, { className: p("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: n == null ? void 0 : n.text })
|
|
581
582
|
] }),
|
|
582
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
583
|
+
/* @__PURE__ */ t.jsx("div", { className: p("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: d } })
|
|
583
584
|
] }) });
|
|
584
|
-
},
|
|
585
|
-
const { intent: x = "twoItems", details:
|
|
586
|
-
return /* @__PURE__ */ t.jsx("section", { className:
|
|
587
|
-
|
|
585
|
+
}, C = ({ intent: r, headline: e, desktopHidden: o = !1, mobileHidden: d = !1 }) => /* @__PURE__ */ t.jsx("h2", { className: p(et({ intent: r, desktopHidden: o, mobileHidden: d })), children: e }), it = ({ details: r, intent: e, withButton: o }) => /* @__PURE__ */ t.jsx("ul", { className: p(rt({ intent: e, withButton: o })), children: r == null ? void 0 : r.map((d, n) => /* @__PURE__ */ t.jsx(dt, { intent: e, data: d }, n)) }), Zt = ({ headline: r, buttonConfig: e, withButton: o = !1, config: d, imageComponent: n, classes: i }) => {
|
|
586
|
+
const { intent: x = "twoItems", details: l } = d, h = x === "fourItems", a = x === "twoItems";
|
|
587
|
+
return /* @__PURE__ */ t.jsx("section", { className: p(i == null ? void 0 : i.root), children: /* @__PURE__ */ t.jsxs(k, { className: p(i == null ? void 0 : i.container), children: [
|
|
588
|
+
a && /* @__PURE__ */ t.jsx(C, { intent: x, headline: r }),
|
|
588
589
|
/* @__PURE__ */ t.jsxs(
|
|
589
590
|
"div",
|
|
590
591
|
{
|
|
591
|
-
className:
|
|
592
|
+
className: p(
|
|
592
593
|
"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",
|
|
593
|
-
|
|
594
|
+
i == null ? void 0 : i.contentContainer
|
|
594
595
|
),
|
|
595
596
|
children: [
|
|
596
|
-
|
|
597
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
597
|
+
h && /* @__PURE__ */ t.jsx(C, { intent: x, headline: r, desktopHidden: !0 }),
|
|
598
|
+
/* @__PURE__ */ t.jsx("div", { className: p(nt({ intent: x, withButton: o }), i == null ? void 0 : i.imgContainer), children: n }),
|
|
598
599
|
/* @__PURE__ */ t.jsxs(
|
|
599
600
|
"div",
|
|
600
601
|
{
|
|
601
|
-
className:
|
|
602
|
+
className: p("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", i == null ? void 0 : i.textWithBtnContainer),
|
|
602
603
|
children: [
|
|
603
|
-
|
|
604
|
-
/* @__PURE__ */ t.jsx(
|
|
605
|
-
|
|
604
|
+
h && /* @__PURE__ */ t.jsx(C, { intent: x, headline: r, mobileHidden: !0 }),
|
|
605
|
+
/* @__PURE__ */ t.jsx(it, { details: l, intent: x, withButton: o }),
|
|
606
|
+
o && /* @__PURE__ */ t.jsx(
|
|
606
607
|
w,
|
|
607
608
|
{
|
|
608
|
-
className:
|
|
609
|
+
className: p("w-full px-4 desktop:w-max", i == null ? void 0 : i.button),
|
|
609
610
|
size: "lg",
|
|
610
611
|
onClick: e == null ? void 0 : e.onClick,
|
|
611
612
|
intent: "secondary",
|
|
@@ -623,29 +624,29 @@ const S = k(
|
|
|
623
624
|
ESIA: "esia",
|
|
624
625
|
MOBILE_ID: "mobileId",
|
|
625
626
|
COMBINE: "combine"
|
|
626
|
-
},
|
|
627
|
+
}, F = ({ children: r, isLoading: e, classes: o, loaderProps: d }) => /* @__PURE__ */ t.jsx(
|
|
627
628
|
"div",
|
|
628
629
|
{
|
|
629
630
|
tabIndex: 0,
|
|
630
|
-
className:
|
|
631
|
+
className: p(
|
|
631
632
|
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
632
633
|
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
633
|
-
|
|
634
|
+
o == null ? void 0 : o.root
|
|
634
635
|
),
|
|
635
636
|
children: /* @__PURE__ */ t.jsx(
|
|
636
637
|
"div",
|
|
637
638
|
{
|
|
638
|
-
className:
|
|
639
|
+
className: p(
|
|
639
640
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
640
641
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
641
642
|
{ "items-center": e },
|
|
642
|
-
|
|
643
|
+
o == null ? void 0 : o.wrapper
|
|
643
644
|
),
|
|
644
|
-
children: e ? /* @__PURE__ */ t.jsx(O, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...
|
|
645
|
+
children: e ? /* @__PURE__ */ t.jsx(O, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...d }) : r
|
|
645
646
|
}
|
|
646
647
|
)
|
|
647
648
|
}
|
|
648
|
-
),
|
|
649
|
+
), pt = ({ ...r }) => /* @__PURE__ */ t.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: [
|
|
649
650
|
/* @__PURE__ */ t.jsx(
|
|
650
651
|
"path",
|
|
651
652
|
{
|
|
@@ -673,22 +674,22 @@ const S = k(
|
|
|
673
674
|
/* @__PURE__ */ t.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
674
675
|
/* @__PURE__ */ t.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
675
676
|
] }) })
|
|
676
|
-
] }),
|
|
677
|
+
] }), R = ({ mainLink: r, subLink: e, isMobile: o, classes: d }) => /* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col", d == null ? void 0 : d.linksWrapper), children: [
|
|
677
678
|
/* @__PURE__ */ t.jsx(
|
|
678
679
|
"a",
|
|
679
680
|
{
|
|
680
681
|
href: r.href,
|
|
681
682
|
target: "_blank",
|
|
682
683
|
rel: "noreferrer",
|
|
683
|
-
className:
|
|
684
|
+
className: p(
|
|
684
685
|
'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',
|
|
685
|
-
|
|
686
|
+
d == null ? void 0 : d.linksMainLink
|
|
686
687
|
),
|
|
687
|
-
children:
|
|
688
|
+
children: o ? r.mobileTitle : r.title
|
|
688
689
|
}
|
|
689
690
|
),
|
|
690
691
|
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ t.jsx(
|
|
691
|
-
|
|
692
|
+
y,
|
|
692
693
|
{
|
|
693
694
|
intent: "blue",
|
|
694
695
|
withUnderline: !0,
|
|
@@ -696,79 +697,79 @@ const S = k(
|
|
|
696
697
|
target: "_blank",
|
|
697
698
|
rel: "noreferrer",
|
|
698
699
|
classes: {
|
|
699
|
-
link:
|
|
700
|
+
link: p("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", d == null ? void 0 : d.linksSubLink)
|
|
700
701
|
},
|
|
701
702
|
children: e == null ? void 0 : e.text
|
|
702
703
|
}
|
|
703
704
|
)
|
|
704
|
-
] }),
|
|
705
|
+
] }), T = ({ mainLink: r, subLink: e, isLoading: o, badge: d, loaderProps: n, classes: i }) => {
|
|
705
706
|
const { isMobile: x } = b();
|
|
706
|
-
return /* @__PURE__ */ t.jsx(
|
|
707
|
+
return /* @__PURE__ */ t.jsx(F, { isLoading: o, loaderProps: n, classes: i == null ? void 0 : i.authWrapper, children: /* @__PURE__ */ t.jsxs(
|
|
707
708
|
"div",
|
|
708
709
|
{
|
|
709
|
-
className:
|
|
710
|
+
className: p(
|
|
710
711
|
"flex flex-1 items-center justify-between gap-1",
|
|
711
|
-
{ "justify-center": !
|
|
712
|
-
|
|
712
|
+
{ "justify-center": !d && x },
|
|
713
|
+
i == null ? void 0 : i.innerWrapper
|
|
713
714
|
),
|
|
714
715
|
children: [
|
|
715
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
716
|
+
/* @__PURE__ */ t.jsxs("div", { className: p("flex items-center gap-1 desktop:gap-4", i == null ? void 0 : i.textContent), children: [
|
|
716
717
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
717
|
-
/* @__PURE__ */ t.jsx(
|
|
718
|
-
/* @__PURE__ */ t.jsx(
|
|
719
|
-
/* @__PURE__ */ t.jsx(
|
|
718
|
+
/* @__PURE__ */ t.jsx(j, { name: "logos/mts", className: p("relative z-[9] size-7 desktop:size-8", i == null ? void 0 : i.mtsLogo) }),
|
|
719
|
+
/* @__PURE__ */ t.jsx(j, { name: "logos/megafon", className: p("relative z-[8] -ml-4 size-7 desktop:size-8", i == null ? void 0 : i.megafonLogo) }),
|
|
720
|
+
/* @__PURE__ */ t.jsx(j, { name: "logos/beeline", className: p("relative z-[7] -ml-4 size-7 desktop:size-8", i == null ? void 0 : i.beelineLogo) })
|
|
720
721
|
] }),
|
|
721
|
-
/* @__PURE__ */ t.jsx(
|
|
722
|
-
/* @__PURE__ */ t.jsx(
|
|
722
|
+
/* @__PURE__ */ t.jsx(R, { mainLink: r, subLink: e, isMobile: x, classes: i == null ? void 0 : i.links }),
|
|
723
|
+
/* @__PURE__ */ t.jsx(j, { name: "arrows/arrowRight", className: p("mobile:hidden", i == null ? void 0 : i.arrowIcon) })
|
|
723
724
|
] }),
|
|
724
|
-
|
|
725
|
+
d && /* @__PURE__ */ t.jsx(c, { className: p("bg-color-positive", i == null ? void 0 : i.badge), children: d })
|
|
725
726
|
]
|
|
726
727
|
}
|
|
727
728
|
) });
|
|
728
|
-
},
|
|
729
|
+
}, _ = ({ mainLink: r, subLink: e, isLoading: o, badge: d, loaderProps: n, classes: i }) => {
|
|
729
730
|
const { isMobile: x } = b();
|
|
730
|
-
return /* @__PURE__ */ t.jsx(
|
|
731
|
+
return /* @__PURE__ */ t.jsx(F, { isLoading: o, loaderProps: n, classes: i == null ? void 0 : i.authWrapper, children: /* @__PURE__ */ t.jsxs(
|
|
731
732
|
"div",
|
|
732
733
|
{
|
|
733
|
-
className:
|
|
734
|
+
className: p(
|
|
734
735
|
"flex flex-1 items-center justify-between gap-1",
|
|
735
|
-
{ "justify-center": !
|
|
736
|
-
|
|
736
|
+
{ "justify-center": !d && x },
|
|
737
|
+
i == null ? void 0 : i.innerWrapper
|
|
737
738
|
),
|
|
738
739
|
children: [
|
|
739
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
740
|
-
/* @__PURE__ */ t.jsx(
|
|
741
|
-
/* @__PURE__ */ t.jsx(
|
|
742
|
-
/* @__PURE__ */ t.jsx(
|
|
740
|
+
/* @__PURE__ */ t.jsxs("div", { className: p("flex items-center gap-1 desktop:gap-4", i == null ? void 0 : i.textContent), children: [
|
|
741
|
+
/* @__PURE__ */ t.jsx(pt, { className: p("size-7 desktop:size-8", i == null ? void 0 : i.esiaLogo) }),
|
|
742
|
+
/* @__PURE__ */ t.jsx(R, { mainLink: r, subLink: e, isMobile: x, classes: i == null ? void 0 : i.links }),
|
|
743
|
+
/* @__PURE__ */ t.jsx(j, { name: "arrows/arrowRight", className: p("mobile:hidden", i == null ? void 0 : i.arrowIcon) })
|
|
743
744
|
] }),
|
|
744
|
-
|
|
745
|
+
d && /* @__PURE__ */ t.jsx(c, { className: p("bg-color-positive", i == null ? void 0 : i.badge), children: d })
|
|
745
746
|
]
|
|
746
747
|
}
|
|
747
748
|
) });
|
|
748
|
-
},
|
|
749
|
+
}, xt = (r) => {
|
|
749
750
|
switch (r.mode) {
|
|
750
751
|
case I.ESIA:
|
|
751
|
-
return /* @__PURE__ */ t.jsx(z, { ...r });
|
|
752
|
-
case I.MOBILE_ID:
|
|
753
752
|
return /* @__PURE__ */ t.jsx(_, { ...r });
|
|
753
|
+
case I.MOBILE_ID:
|
|
754
|
+
return /* @__PURE__ */ t.jsx(T, { ...r });
|
|
754
755
|
case I.COMBINE:
|
|
755
756
|
default:
|
|
756
|
-
const { esiaConfig: e, mobileIdConfig:
|
|
757
|
+
const { esiaConfig: e, mobileIdConfig: o, subtitle: d, badge: n, classes: i } = r, x = !d && !n ? g.Fragment : "div";
|
|
757
758
|
return /* @__PURE__ */ t.jsxs(
|
|
758
759
|
"div",
|
|
759
760
|
{
|
|
760
|
-
className:
|
|
761
|
+
className: p(
|
|
761
762
|
"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",
|
|
762
|
-
|
|
763
|
+
i == null ? void 0 : i.root
|
|
763
764
|
),
|
|
764
765
|
children: [
|
|
765
|
-
/* @__PURE__ */ t.jsxs(x, { className:
|
|
766
|
-
|
|
767
|
-
|
|
766
|
+
/* @__PURE__ */ t.jsxs(x, { className: p("flex w-full items-center justify-between gap-2", i == null ? void 0 : i.topContent), children: [
|
|
767
|
+
d && /* @__PURE__ */ t.jsx("h5", { className: p("desk-body-regular-l flex flex-1 text-color-dark", i == null ? void 0 : i.subtitle), children: d }),
|
|
768
|
+
n && /* @__PURE__ */ t.jsx(c, { className: p("bg-color-positive", i == null ? void 0 : i.badge), children: n })
|
|
768
769
|
] }),
|
|
769
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
770
|
+
/* @__PURE__ */ t.jsxs("div", { className: p("grid w-full grid-cols-2 gap-2 desktop:gap-4", i == null ? void 0 : i.authWrapper), children: [
|
|
770
771
|
/* @__PURE__ */ t.jsx(
|
|
771
|
-
|
|
772
|
+
_,
|
|
772
773
|
{
|
|
773
774
|
...e,
|
|
774
775
|
classes: {
|
|
@@ -779,13 +780,13 @@ const S = k(
|
|
|
779
780
|
}
|
|
780
781
|
),
|
|
781
782
|
/* @__PURE__ */ t.jsx(
|
|
782
|
-
|
|
783
|
+
T,
|
|
783
784
|
{
|
|
784
|
-
...
|
|
785
|
+
...o,
|
|
785
786
|
classes: {
|
|
786
787
|
root: "p-0 outline-0 h-[74px]",
|
|
787
788
|
arrowIcon: "hidden",
|
|
788
|
-
...
|
|
789
|
+
...o.classes
|
|
789
790
|
}
|
|
790
791
|
}
|
|
791
792
|
)
|
|
@@ -794,45 +795,45 @@ const S = k(
|
|
|
794
795
|
}
|
|
795
796
|
);
|
|
796
797
|
}
|
|
797
|
-
},
|
|
798
|
-
|
|
798
|
+
}, $t = (r) => xt(r), M = ({ links: r, classes: e }) => /* @__PURE__ */ t.jsx("nav", { className: p("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: r == null ? void 0 : r.map(({ path: o, label: d }) => /* @__PURE__ */ t.jsx(
|
|
799
|
+
y,
|
|
799
800
|
{
|
|
800
801
|
classes: {
|
|
801
|
-
link:
|
|
802
|
-
icon:
|
|
802
|
+
link: p("w-max", e == null ? void 0 : e.linkText),
|
|
803
|
+
icon: p(e == null ? void 0 : e.linkIcon)
|
|
803
804
|
},
|
|
804
805
|
intent: "dark",
|
|
805
|
-
href:
|
|
806
|
-
children:
|
|
806
|
+
href: o,
|
|
807
|
+
children: d
|
|
807
808
|
},
|
|
808
|
-
|
|
809
|
-
)) }),
|
|
810
|
-
var
|
|
811
|
-
const { isMobile:
|
|
812
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
813
|
-
!
|
|
814
|
-
/* @__PURE__ */ t.jsx("h5", { className:
|
|
815
|
-
/* @__PURE__ */ t.jsx(
|
|
809
|
+
o
|
|
810
|
+
)) }), mt = ({ groupLabel: r, links: e, mobileAccordionProps: o, classes: d }) => {
|
|
811
|
+
var i, x, l;
|
|
812
|
+
const { isMobile: n } = b();
|
|
813
|
+
return /* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col gap-2", d == null ? void 0 : d.columnGroup), children: [
|
|
814
|
+
!n && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
815
|
+
/* @__PURE__ */ t.jsx("h5", { className: p("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", d == null ? void 0 : d.columnGroupHeading), children: r }),
|
|
816
|
+
/* @__PURE__ */ t.jsx(M, { links: e, classes: d == null ? void 0 : d.linksList }, "desktop")
|
|
816
817
|
] }),
|
|
817
|
-
|
|
818
|
-
|
|
818
|
+
n && /* @__PURE__ */ t.jsx(
|
|
819
|
+
N,
|
|
819
820
|
{
|
|
820
821
|
defaultOpen: !0,
|
|
821
822
|
label: r,
|
|
822
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
823
|
-
...
|
|
823
|
+
icon: /* @__PURE__ */ t.jsx(j, { name: "arrows/arrowRight", className: p("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
824
|
+
...o,
|
|
824
825
|
classes: {
|
|
825
|
-
...
|
|
826
|
+
...o == null ? void 0 : o.classes,
|
|
826
827
|
header: {
|
|
827
|
-
trigger:
|
|
828
|
+
trigger: p("p-0 bg-color-blue-grey-100", (x = (i = o == null ? void 0 : o.classes) == null ? void 0 : i.header) == null ? void 0 : x.trigger)
|
|
828
829
|
},
|
|
829
|
-
contentInner:
|
|
830
|
+
contentInner: p("py-2 px-4", (l = o == null ? void 0 : o.classes) == null ? void 0 : l.contentInner)
|
|
830
831
|
},
|
|
831
|
-
children: /* @__PURE__ */ t.jsx(
|
|
832
|
+
children: /* @__PURE__ */ t.jsx(M, { links: e, classes: d == null ? void 0 : d.linksList }, "mobile")
|
|
832
833
|
}
|
|
833
834
|
)
|
|
834
835
|
] });
|
|
835
|
-
},
|
|
836
|
+
}, lt = ({ column: r, mobileAccordionProps: e, classes: o }) => /* @__PURE__ */ t.jsx("div", { className: p("flex flex-col gap-4 desktop:gap-6", o == null ? void 0 : o.column), children: r == null ? void 0 : r.map((d) => /* @__PURE__ */ t.jsx(mt, { ...e, ...d, classes: o == null ? void 0 : o.columnGroup }, d.groupLabel)) }), at = u("grid gap-4 grid-cols-1", {
|
|
836
837
|
variants: {
|
|
837
838
|
variant: {
|
|
838
839
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -843,36 +844,190 @@ const S = k(
|
|
|
843
844
|
defaultVariants: {
|
|
844
845
|
variant: "fourCols"
|
|
845
846
|
}
|
|
846
|
-
}),
|
|
847
|
-
var
|
|
848
|
-
const { variant:
|
|
849
|
-
return /* @__PURE__ */ t.jsx("section", { id: "inter-linking", className:
|
|
850
|
-
|
|
847
|
+
}), qt = ({ config: r, headline: e, mobileAccordionProps: o, rootAccordionProps: d, classes: n }) => {
|
|
848
|
+
var l, h, a;
|
|
849
|
+
const { variant: i, details: x } = r;
|
|
850
|
+
return /* @__PURE__ */ t.jsx("section", { id: "inter-linking", className: p("min-w-full desktop:min-w-[1140px]", n == null ? void 0 : n.root), children: /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsx(
|
|
851
|
+
N,
|
|
851
852
|
{
|
|
852
853
|
defaultOpen: !0,
|
|
853
|
-
label: /* @__PURE__ */ t.jsx(
|
|
854
|
-
...
|
|
854
|
+
label: /* @__PURE__ */ t.jsx(f, { as: "h4", className: p("text-left", n == null ? void 0 : n.headline), children: e }),
|
|
855
|
+
...d,
|
|
855
856
|
classes: {
|
|
856
|
-
...
|
|
857
|
+
...d == null ? void 0 : d.classes,
|
|
857
858
|
header: {
|
|
858
|
-
trigger:
|
|
859
|
+
trigger: p("bg-color-blue-grey-100", (h = (l = d == null ? void 0 : d.classes) == null ? void 0 : l.header) == null ? void 0 : h.trigger)
|
|
859
860
|
},
|
|
860
|
-
content:
|
|
861
|
+
content: p("max-w-full bg-color-blue-grey-100 relative", (a = d == null ? void 0 : d.classes) == null ? void 0 : a.content)
|
|
861
862
|
},
|
|
862
|
-
children: /* @__PURE__ */ t.jsx("div", { className:
|
|
863
|
+
children: /* @__PURE__ */ t.jsx("div", { className: p(at({ variant: i }), n == null ? void 0 : n.columnsWrapper), children: x == null ? void 0 : x.map((m, v) => /* @__PURE__ */ t.jsx(lt, { ...m, ...o, classes: n == null ? void 0 : n.column }, v)) })
|
|
863
864
|
}
|
|
864
865
|
) }) });
|
|
866
|
+
}, ht = ({ tabsNames: r, activeTab: e, setActiveTab: o }) => /* @__PURE__ */ t.jsx("div", { className: "hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", children: r && r.map((d, n) => /* @__PURE__ */ t.jsx(
|
|
867
|
+
"button",
|
|
868
|
+
{
|
|
869
|
+
onClick: () => o(n),
|
|
870
|
+
className: p(
|
|
871
|
+
"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",
|
|
872
|
+
{
|
|
873
|
+
"bg-icon-primary-default text-color-white": e === n
|
|
874
|
+
}
|
|
875
|
+
),
|
|
876
|
+
children: d
|
|
877
|
+
},
|
|
878
|
+
d
|
|
879
|
+
)) }), ut = (r) => r.variant === "HTML", ft = (r) => r.variant === "DOCUMENTS", jt = (r) => r.variant === "TABLE", kt = ({ html: r, config: e }) => {
|
|
880
|
+
const o = /* @__PURE__ */ t.jsx("div", { dangerouslySetInnerHTML: { __html: r ?? "" } });
|
|
881
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ t.jsx(N, { label: e == null ? void 0 : e.accordionTitle, children: o }) : o });
|
|
882
|
+
}, bt = (r, e) => ({
|
|
883
|
+
rows: r == null ? void 0 : r.map(({ row: o }) => ({
|
|
884
|
+
row: o == null ? void 0 : o.map((d, n) => {
|
|
885
|
+
var i;
|
|
886
|
+
return {
|
|
887
|
+
...d,
|
|
888
|
+
heading: e && ((i = e[n]) == null ? void 0 : i.heading)
|
|
889
|
+
};
|
|
890
|
+
})
|
|
891
|
+
}))
|
|
892
|
+
}), gt = u("flex flex-col", {
|
|
893
|
+
variants: {
|
|
894
|
+
columnsVariant: {
|
|
895
|
+
twoCols: "w-full max-w-[656px]",
|
|
896
|
+
threeCols: "w-full max-w-[768px]"
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}), wt = u("grid px-4 mb-4", {
|
|
900
|
+
variants: {
|
|
901
|
+
columnsVariant: {
|
|
902
|
+
twoCols: "grid-cols-2 gap-16",
|
|
903
|
+
threeCols: "grid-cols-3 gap-12"
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}), Nt = ({ headings: r, columnsVariant: e }) => /* @__PURE__ */ t.jsx("div", { className: p(wt({ columnsVariant: e })), children: r == null ? void 0 : r.map((o) => /* @__PURE__ */ t.jsx("div", { className: "text-color-secondary", children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), yt = u("grid items-center", {
|
|
907
|
+
variants: {
|
|
908
|
+
columnsVariant: {
|
|
909
|
+
twoCols: "grid-cols-2 gap-16",
|
|
910
|
+
threeCols: "grid-cols-3 gap-12"
|
|
911
|
+
},
|
|
912
|
+
tableVariant: {
|
|
913
|
+
filled: "px-4 py-3 even:bg-color-primary-light-default",
|
|
914
|
+
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
}), vt = ({ row: r, tableVariant: e, columnsVariant: o, rowIndex: d }) => /* @__PURE__ */ t.jsx("div", { className: p(yt({ columnsVariant: o, tableVariant: e }), { "border-none": d === 0 }), children: r == null ? void 0 : r.map(({ cell: n }, i) => /* @__PURE__ */ t.jsx("div", { className: p("desk-body-regular-l text-color-dark", { "font-medium": i !== 0 }), children: n && n }, i)) }), Ct = u("flex flex-col gap-2", {
|
|
918
|
+
variants: {
|
|
919
|
+
tableVariant: {
|
|
920
|
+
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
921
|
+
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}), It = ({ row: r, tableVariant: e, columnsVariant: o, headingsExist: d }) => /* @__PURE__ */ t.jsx("div", { className: p(Ct({ tableVariant: e })), children: r == null ? void 0 : r.map(({ cell: n, heading: i }, x) => /* @__PURE__ */ t.jsxs("div", { className: p("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !d }), children: [
|
|
925
|
+
i && /* @__PURE__ */ t.jsx("div", { className: "mob-body-regular-l text-color-secondary", children: i }),
|
|
926
|
+
/* @__PURE__ */ t.jsx(
|
|
927
|
+
"div",
|
|
928
|
+
{
|
|
929
|
+
className: p("mob-body-regular-l text-color-dark", {
|
|
930
|
+
"font-medium": x !== 0 && o === "twoCols" || o === "threeCols" || o === "twoCols" && d
|
|
931
|
+
}),
|
|
932
|
+
children: n
|
|
933
|
+
}
|
|
934
|
+
)
|
|
935
|
+
] }, x)) }), ct = ({ tableVariant: r, rows: e, headings: o, columnsVariant: d }) => {
|
|
936
|
+
var l;
|
|
937
|
+
const { isDesktop: n } = b(), i = ((l = bt(e, o)) == null ? void 0 : l.rows) ?? [], x = !!(o && o.length > 0);
|
|
938
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
939
|
+
n && x && /* @__PURE__ */ t.jsx(Nt, { headings: o, columnsVariant: d }),
|
|
940
|
+
n ? /* @__PURE__ */ t.jsx(t.Fragment, { children: e == null ? void 0 : e.map((h, a) => /* @__PURE__ */ t.jsx(vt, { rowIndex: a, tableVariant: r, columnsVariant: d, ...h }, a)) }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: i == null ? void 0 : i.map((h, a) => /* @__PURE__ */ t.jsx(
|
|
941
|
+
It,
|
|
942
|
+
{
|
|
943
|
+
headingsExist: x,
|
|
944
|
+
tableVariant: r,
|
|
945
|
+
columnsVariant: d,
|
|
946
|
+
...h
|
|
947
|
+
},
|
|
948
|
+
a
|
|
949
|
+
)) })
|
|
950
|
+
] });
|
|
951
|
+
}, Bt = ({ tableVariant: r, description: e, columnsVariant: o, config: d, rows: n, title: i, headings: x }) => {
|
|
952
|
+
const l = /* @__PURE__ */ t.jsxs("div", { className: p(gt({ columnsVariant: o })), children: [
|
|
953
|
+
i && /* @__PURE__ */ t.jsx(f, { as: "h4", className: "mb-4 desktop:mb-6", children: i }),
|
|
954
|
+
/* @__PURE__ */ t.jsx(ct, { tableVariant: r, rows: n, headings: x, columnsVariant: o }),
|
|
955
|
+
e && /* @__PURE__ */ t.jsx("div", { className: "mt-2 [&&]:desk-body-regular-m desktop:mt-2", dangerouslySetInnerHTML: { __html: e ?? "" } })
|
|
956
|
+
] });
|
|
957
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: d && (d != null && d.isAccordion) && (d != null && d.accordionTitle) ? /* @__PURE__ */ t.jsx(N, { label: d == null ? void 0 : d.accordionTitle, children: l }) : l });
|
|
958
|
+
}, Tt = {
|
|
959
|
+
documentFilled: "files/documentFilled",
|
|
960
|
+
documentOutline: "files/documentOutline"
|
|
961
|
+
}, _t = u("size-8 transition-colors", {
|
|
962
|
+
variants: {
|
|
963
|
+
iconType: {
|
|
964
|
+
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
965
|
+
documentFilled: "text-icon-primary-default group-hover:text-icon-primary-hover"
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
defaultVariants: {
|
|
969
|
+
iconType: "documentOutline"
|
|
970
|
+
}
|
|
971
|
+
}), Mt = ({ label: r, size: e, url: o, iconType: d }) => /* @__PURE__ */ t.jsxs(
|
|
972
|
+
"a",
|
|
973
|
+
{
|
|
974
|
+
href: o,
|
|
975
|
+
target: "_blank",
|
|
976
|
+
rel: "noreferrer",
|
|
977
|
+
tabIndex: 0,
|
|
978
|
+
className: p(
|
|
979
|
+
"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"
|
|
980
|
+
),
|
|
981
|
+
children: [
|
|
982
|
+
/* @__PURE__ */ t.jsx(j, { name: Tt[d], className: p(_t({ iconType: d })) }),
|
|
983
|
+
/* @__PURE__ */ t.jsxs("div", { className: p("flex flex-1 flex-col"), children: [
|
|
984
|
+
/* @__PURE__ */ t.jsx("p", { className: p("desk-body-medium-l text-color-dark"), children: r }),
|
|
985
|
+
/* @__PURE__ */ t.jsxs("div", { className: p("desk-body-regular-m text-color-disabled"), children: [
|
|
986
|
+
Number(e),
|
|
987
|
+
" КБ"
|
|
988
|
+
] })
|
|
989
|
+
] })
|
|
990
|
+
]
|
|
991
|
+
}
|
|
992
|
+
), Ht = ({ docs: r, config: e, title: o, iconType: d, description: n }) => {
|
|
993
|
+
const i = /* @__PURE__ */ t.jsxs("div", { className: "flex max-w-[680px] flex-col", children: [
|
|
994
|
+
o && /* @__PURE__ */ t.jsx(f, { as: "h3", className: "mb-4", children: o }),
|
|
995
|
+
/* @__PURE__ */ t.jsx("div", { className: "gap- flex flex-col gap-4", children: r == null ? void 0 : r.map((x) => /* @__PURE__ */ t.jsx(Mt, { iconType: d, ...x }, x.label)) }),
|
|
996
|
+
n && /* @__PURE__ */ t.jsx("div", { className: "mt-4", dangerouslySetInnerHTML: { __html: n ?? "" } })
|
|
997
|
+
] });
|
|
998
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ t.jsx(N, { label: e == null ? void 0 : e.accordionTitle, children: i }) : i });
|
|
999
|
+
}, Et = (r) => {
|
|
1000
|
+
var e, o, d;
|
|
1001
|
+
switch (!0) {
|
|
1002
|
+
case ut(r):
|
|
1003
|
+
return (e = r.details) == null ? void 0 : e.map((n, i) => /* @__PURE__ */ t.jsx(kt, { ...n }, i));
|
|
1004
|
+
case ft(r):
|
|
1005
|
+
return (o = r.details) == null ? void 0 : o.map((n, i) => /* @__PURE__ */ t.jsx(Ht, { ...n }, i));
|
|
1006
|
+
case jt(r):
|
|
1007
|
+
return (d = r.details) == null ? void 0 : d.map((n, i) => /* @__PURE__ */ t.jsx(Bt, { ...n }, i));
|
|
1008
|
+
default:
|
|
1009
|
+
return null;
|
|
1010
|
+
}
|
|
1011
|
+
}, zt = ({ entity: r }) => /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-6", children: Et(r) }), Jt = ({ headline: r, tabs: e }) => {
|
|
1012
|
+
var i, x;
|
|
1013
|
+
const [o, d] = S(0), n = G(() => e == null ? void 0 : e.map((l) => l == null ? void 0 : l.tabName), [e]) ?? [];
|
|
1014
|
+
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ t.jsx("section", { id: "useful-info", className: "pb-[64px] desktop:pb-20", children: /* @__PURE__ */ t.jsxs(k, { children: [
|
|
1015
|
+
/* @__PURE__ */ t.jsx(f, { as: "h2", children: r }),
|
|
1016
|
+
/* @__PURE__ */ t.jsx("div", { className: "mt-6 flex flex-col gap-2 desktop:mt-12", children: /* @__PURE__ */ t.jsx(ht, { tabsNames: n, activeTab: o, setActiveTab: d }) }),
|
|
1017
|
+
/* @__PURE__ */ t.jsx("div", { className: "mt-6 flex flex-col gap-6", children: (x = (i = e == null ? void 0 : e[o]) == null ? void 0 : i.contents) == null ? void 0 : x.map((l, h) => /* @__PURE__ */ t.jsx(zt, { ...l }, h)) })
|
|
1018
|
+
] }) });
|
|
865
1019
|
};
|
|
866
1020
|
export {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
1021
|
+
z as Advantages,
|
|
1022
|
+
$t as AuthProvider,
|
|
1023
|
+
St as Banner,
|
|
870
1024
|
B as BannerWithSeparateImg,
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
1025
|
+
Ot as Benefit,
|
|
1026
|
+
Gt as Footer,
|
|
1027
|
+
Vt as Header,
|
|
1028
|
+
qt as InterLinking,
|
|
1029
|
+
Zt as LongBanner,
|
|
1030
|
+
Ut as Stepper,
|
|
1031
|
+
Jt as UsefulInfo
|
|
877
1032
|
};
|
|
878
1033
|
//# sourceMappingURL=widget.js.map
|