@scbt-ecom/ui 0.38.2 → 0.40.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/utils/typeGuards.d.ts +2 -2
- package/dist/typeGuards-B82KZ2oS.js.map +1 -1
- package/dist/ui.js +3432 -3421
- package/dist/ui.js.map +1 -1
- package/dist/{utils-b38KjjXe.js → utils-DRVnb-OQ.js} +242 -256
- package/dist/utils-DRVnb-OQ.js.map +1 -0
- package/dist/validation.js +69 -57
- package/dist/validation.js.map +1 -1
- package/dist/widget.js +307 -307
- package/dist/widget.js.map +1 -1
- package/dist/widgets/advantages/Advantages.d.ts +6 -4
- package/dist/widgets/header/Header.d.ts +2 -0
- package/dist/widgets/header/index.d.ts +1 -0
- package/dist/widgets/header/model/helpers.d.ts +2 -0
- package/dist/widgets/{pageHeader → header}/model/types.d.ts +15 -8
- package/dist/widgets/index.d.ts +1 -1
- package/dist/widgets/interLinking/InterLinking.d.ts +3 -3
- package/dist/widgets/interLinking/index.d.ts +0 -1
- package/dist/widgets/interLinking/model/types.d.ts +19 -5
- package/dist/widgets/interLinking/ui/Column.d.ts +2 -2
- package/dist/widgets/interLinking/ui/ColumnGroup.d.ts +2 -2
- package/dist/widgets/interLinking/ui/LinksList.d.ts +2 -2
- package/dist/widgets/stepper/Stepper.d.ts +5 -3
- package/package.json +6 -9
- package/dist/utils-b38KjjXe.js.map +0 -1
- package/dist/widgets/interLinking/model/schema.d.ts +0 -150
- package/dist/widgets/pageHeader/PageHeader.d.ts +0 -2
- package/dist/widgets/pageHeader/index.d.ts +0 -1
- package/dist/widgets/pageHeader/model/helpers.d.ts +0 -2
package/dist/widget.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as t, B as g, H as a, c as j, R as k, P as M, b as
|
|
2
|
-
import { c as
|
|
3
|
-
import { s as
|
|
1
|
+
import { j as t, B as g, H as a, c as j, R as k, P as M, b as R, I as u, C as w, S as V, a as L, L as D, d as v, A as _ } from "./CustomLink-Cqhmw5ZU.js";
|
|
2
|
+
import { c as n } from "./cn-DIfn7EPB.js";
|
|
3
|
+
import { s as O } from "./scrollToElement-B-reg4jF.js";
|
|
4
4
|
import { u as b } from "./useDevice-L83kSsN7.js";
|
|
5
|
-
import * as
|
|
6
|
-
const
|
|
5
|
+
import * as G from "react";
|
|
6
|
+
const U = j(
|
|
7
7
|
"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
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -14,45 +14,45 @@ const G = j(
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
),
|
|
18
|
-
description:
|
|
17
|
+
), S = ({
|
|
18
|
+
description: i,
|
|
19
19
|
title: e,
|
|
20
|
-
img:
|
|
21
|
-
mobileImg:
|
|
20
|
+
img: o,
|
|
21
|
+
mobileImg: d,
|
|
22
22
|
classes: r,
|
|
23
|
-
withButton:
|
|
24
|
-
buttonText:
|
|
25
|
-
intent:
|
|
23
|
+
withButton: x,
|
|
24
|
+
buttonText: m,
|
|
25
|
+
intent: h,
|
|
26
26
|
cardColor: f
|
|
27
27
|
}) => {
|
|
28
|
-
const { isDesktop:
|
|
28
|
+
const { isDesktop: l } = b(), p = /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
29
29
|
g,
|
|
30
30
|
{
|
|
31
31
|
intent: "primary",
|
|
32
|
-
className:
|
|
33
|
-
onClick: () =>
|
|
32
|
+
className: n("desktop:w-[200px]", r == null ? void 0 : r.button),
|
|
33
|
+
onClick: () => O("personal_form"),
|
|
34
34
|
size: "lg",
|
|
35
|
-
children:
|
|
35
|
+
children: m
|
|
36
36
|
}
|
|
37
37
|
) });
|
|
38
38
|
return /* @__PURE__ */ t.jsxs(
|
|
39
39
|
"li",
|
|
40
40
|
{
|
|
41
|
-
className:
|
|
41
|
+
className: n(U({ intent: h }), { "pb-0": d }, { "pb-12": !d }, f, r == null ? void 0 : r.root),
|
|
42
42
|
children: [
|
|
43
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
44
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
45
|
-
/* @__PURE__ */ t.jsx(a, { as: "h4", className:
|
|
46
|
-
/* @__PURE__ */ t.jsx("p", { className:
|
|
43
|
+
/* @__PURE__ */ t.jsxs("div", { className: n("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", r == null ? void 0 : r.wrapper), children: [
|
|
44
|
+
/* @__PURE__ */ t.jsxs("div", { className: n("flex flex-col gap-4", r == null ? void 0 : r.textContainer), children: [
|
|
45
|
+
/* @__PURE__ */ t.jsx(a, { as: "h4", className: n("desktop:desk-title-bold-s", r == null ? void 0 : r.title), children: e }),
|
|
46
|
+
/* @__PURE__ */ t.jsx("p", { className: n("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", r == null ? void 0 : r.description), children: i })
|
|
47
47
|
] }),
|
|
48
|
-
|
|
48
|
+
x && l && p
|
|
49
49
|
] }),
|
|
50
|
-
(
|
|
50
|
+
(d || l) && o && /* @__PURE__ */ t.jsx("div", { className: n("flex w-full justify-end", r == null ? void 0 : r.imgContainer), children: /* @__PURE__ */ t.jsx("img", { className: n("h-[246px] object-cover", r == null ? void 0 : r.img), src: o, alt: e }) })
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
|
-
|
|
53
|
+
o
|
|
54
54
|
);
|
|
55
|
-
},
|
|
55
|
+
}, Z = j("grid gap-4", {
|
|
56
56
|
variants: {
|
|
57
57
|
intent: {
|
|
58
58
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -60,22 +60,22 @@ const G = j(
|
|
|
60
60
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ t.jsx(a, { className:
|
|
65
|
-
/* @__PURE__ */ t.jsx("ul", { className:
|
|
66
|
-
] }) }),
|
|
67
|
-
|
|
68
|
-
switch (
|
|
63
|
+
}), bt = ({ heading: i, cards: e, classes: o, intent: d }) => /* @__PURE__ */ t.jsx("section", { className: n("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ t.jsxs(k, { className: o == null ? void 0 : o.container, children: [
|
|
64
|
+
/* @__PURE__ */ t.jsx(a, { className: n("mb-8", o == null ? void 0 : o.heading), as: "h2", children: i }),
|
|
65
|
+
/* @__PURE__ */ t.jsx("ul", { className: n(Z({ intent: d }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((r) => /* @__PURE__ */ t.jsx(S, { intent: d, classes: o == null ? void 0 : o.item, ...r }, r.img)) })
|
|
66
|
+
] }) }), $ = (i) => {
|
|
67
|
+
const { variant: e, details: o } = i;
|
|
68
|
+
switch (e) {
|
|
69
69
|
case "withButton":
|
|
70
|
-
return /* @__PURE__ */ t.jsx(g, { intent: "secondary", size: "sm", ...
|
|
70
|
+
return /* @__PURE__ */ t.jsx(g, { intent: "secondary", size: "sm", ...o, children: (o == null ? void 0 : o.children) || "Оформить заявку" });
|
|
71
71
|
case "withPhone":
|
|
72
|
-
return /* @__PURE__ */ t.jsx(M, { ...
|
|
72
|
+
return /* @__PURE__ */ t.jsx(M, { ...o });
|
|
73
73
|
default:
|
|
74
74
|
return null;
|
|
75
75
|
}
|
|
76
|
-
},
|
|
77
|
-
const { logoPath: e = "/", logoType:
|
|
78
|
-
return /* @__PURE__ */ t.jsx("header", { className:
|
|
76
|
+
}, gt = (i) => {
|
|
77
|
+
const { logoPath: e = "/", logoType: o = "main", config: d, classes: r } = i;
|
|
78
|
+
return /* @__PURE__ */ t.jsx("header", { className: n("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", r == null ? void 0 : r.header), children: /* @__PURE__ */ t.jsx(k, { className: n(r == null ? void 0 : r.container), children: /* @__PURE__ */ t.jsxs("div", { className: n("flex items-center justify-between gap-5", r == null ? void 0 : r.wrapper), children: [
|
|
79
79
|
/* @__PURE__ */ t.jsx(
|
|
80
80
|
"a",
|
|
81
81
|
{
|
|
@@ -83,215 +83,218 @@ const G = j(
|
|
|
83
83
|
"aria-label": "logo",
|
|
84
84
|
target: "_blank",
|
|
85
85
|
rel: "noreferrer",
|
|
86
|
-
className:
|
|
86
|
+
className: n(
|
|
87
87
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
88
|
-
|
|
88
|
+
r == null ? void 0 : r.logo
|
|
89
89
|
),
|
|
90
|
-
children:
|
|
90
|
+
children: R[o]
|
|
91
91
|
}
|
|
92
92
|
),
|
|
93
|
-
|
|
93
|
+
$(d)
|
|
94
94
|
] }) }) });
|
|
95
|
-
}, E = ({ buttonsConfig:
|
|
95
|
+
}, E = ({ buttonsConfig: i, classes: e, className: o }) => {
|
|
96
96
|
var r;
|
|
97
|
-
const
|
|
97
|
+
const d = (i == null ? void 0 : i.secondary) && i.secondary.children;
|
|
98
98
|
return /* @__PURE__ */ t.jsxs(
|
|
99
99
|
"div",
|
|
100
100
|
{
|
|
101
101
|
"data-id": "banner-buttons-group",
|
|
102
|
-
className:
|
|
102
|
+
className: n(
|
|
103
103
|
"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",
|
|
104
|
-
{ "flex items-center gap-4":
|
|
104
|
+
{ "flex items-center gap-4": d },
|
|
105
105
|
e == null ? void 0 : e.group,
|
|
106
|
-
|
|
106
|
+
o
|
|
107
107
|
),
|
|
108
108
|
children: [
|
|
109
|
-
/* @__PURE__ */ t.jsx(g, { intent: "primary", ...
|
|
110
|
-
|
|
109
|
+
/* @__PURE__ */ t.jsx(g, { intent: "primary", ...i.primary, isFull: !0, className: n("desktop:max-w-[216px]", e == null ? void 0 : e.primary), children: i.primary.children }),
|
|
110
|
+
d && /* @__PURE__ */ t.jsx(
|
|
111
111
|
g,
|
|
112
112
|
{
|
|
113
113
|
intent: "secondary",
|
|
114
|
-
...
|
|
114
|
+
...i == null ? void 0 : i.secondary,
|
|
115
115
|
isFull: !0,
|
|
116
|
-
className:
|
|
117
|
-
children: (r =
|
|
116
|
+
className: n("desktop:max-w-[216px]", e == null ? void 0 : e.secondary),
|
|
117
|
+
children: (r = i == null ? void 0 : i.secondary) == null ? void 0 : r.children
|
|
118
118
|
}
|
|
119
119
|
)
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
|
-
},
|
|
124
|
-
headTitle:
|
|
123
|
+
}, q = ({
|
|
124
|
+
headTitle: i,
|
|
125
125
|
subtitle: e,
|
|
126
|
-
buttonsConfig:
|
|
127
|
-
advantagesConfig:
|
|
126
|
+
buttonsConfig: o,
|
|
127
|
+
advantagesConfig: d,
|
|
128
128
|
classes: r,
|
|
129
|
-
img:
|
|
130
|
-
imgSets:
|
|
129
|
+
img: x,
|
|
130
|
+
imgSets: m
|
|
131
131
|
}) => {
|
|
132
132
|
var p;
|
|
133
|
-
const { isDesktop:
|
|
133
|
+
const { isDesktop: h, isMobile: f } = b(), l = /* @__PURE__ */ t.jsx(
|
|
134
134
|
"div",
|
|
135
135
|
{
|
|
136
136
|
"data-id": "banner-advantages",
|
|
137
|
-
className:
|
|
137
|
+
className: n(
|
|
138
138
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
139
139
|
r == null ? void 0 : r.advantageContainer
|
|
140
140
|
),
|
|
141
|
-
children: (
|
|
141
|
+
children: (d == null ? void 0 : d.config.details) && ((p = d == null ? void 0 : d.config.details) == null ? void 0 : p.length) > 0 && /* @__PURE__ */ t.jsx(H, { ...d })
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
144
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
145
|
-
/* @__PURE__ */ t.jsxs("section", { "data-id": "banner-section", className:
|
|
145
|
+
/* @__PURE__ */ t.jsxs("section", { "data-id": "banner-section", className: n("relative h-[552px] desktop:h-[456px]", r == null ? void 0 : r.root), children: [
|
|
146
146
|
/* @__PURE__ */ t.jsx(
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
149
149
|
"data-id": "banner-img-wrapper",
|
|
150
150
|
className: "absolute bottom-0 left-0 right-0 top-0 z-[-1] mx-auto h-full max-w-[1920px] desktop:h-[456px]",
|
|
151
151
|
children: /* @__PURE__ */ t.jsxs("picture", { children: [
|
|
152
|
-
/* @__PURE__ */ t.jsx("source", { media: "(min-width: 1128px)", srcSet:
|
|
153
|
-
/* @__PURE__ */ t.jsx("source", { media: "(max-width: 1127px)", srcSet:
|
|
152
|
+
/* @__PURE__ */ t.jsx("source", { media: "(min-width: 1128px)", srcSet: m == null ? void 0 : m.large }),
|
|
153
|
+
/* @__PURE__ */ t.jsx("source", { media: "(max-width: 1127px)", srcSet: m == null ? void 0 : m.mob }),
|
|
154
154
|
/* @__PURE__ */ t.jsx(
|
|
155
155
|
"img",
|
|
156
156
|
{
|
|
157
157
|
"data-id": "banner-image",
|
|
158
|
-
src:
|
|
158
|
+
src: x,
|
|
159
159
|
alt: "Картинка баннера",
|
|
160
|
-
className:
|
|
160
|
+
className: n("h-full w-full object-cover object-center", r == null ? void 0 : r.image)
|
|
161
161
|
}
|
|
162
162
|
)
|
|
163
163
|
] })
|
|
164
164
|
}
|
|
165
165
|
),
|
|
166
|
-
/* @__PURE__ */ t.jsxs(k, { "data-id": "banner-container", className:
|
|
167
|
-
/* @__PURE__ */ t.jsx("div", { "data-id": "banner", className:
|
|
166
|
+
/* @__PURE__ */ t.jsxs(k, { "data-id": "banner-container", className: n("h-full", r == null ? void 0 : r.container), children: [
|
|
167
|
+
/* @__PURE__ */ t.jsx("div", { "data-id": "banner", className: n("flex h-full", r == null ? void 0 : r.wrapper), children: /* @__PURE__ */ t.jsxs(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
170
170
|
"data-id": "banner-text-block",
|
|
171
|
-
className:
|
|
171
|
+
className: n("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", r == null ? void 0 : r.textBlock),
|
|
172
172
|
children: [
|
|
173
173
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
174
|
-
/* @__PURE__ */ t.jsx(a, { "data-id": "banner-title", as: "h1", className:
|
|
175
|
-
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className:
|
|
174
|
+
/* @__PURE__ */ t.jsx(a, { "data-id": "banner-title", as: "h1", className: n("text-color-white", r == null ? void 0 : r.title), children: i }),
|
|
175
|
+
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: n("desk-body-regular-l text-color-white", r == null ? void 0 : r.subtitle), children: e })
|
|
176
176
|
] }),
|
|
177
177
|
/* @__PURE__ */ t.jsx(
|
|
178
178
|
E,
|
|
179
179
|
{
|
|
180
180
|
className: "self-end desktop:self-center",
|
|
181
181
|
"data-id": "banner-buttons-group",
|
|
182
|
-
buttonsConfig:
|
|
182
|
+
buttonsConfig: o,
|
|
183
183
|
classes: r
|
|
184
184
|
}
|
|
185
185
|
)
|
|
186
186
|
]
|
|
187
187
|
}
|
|
188
188
|
) }),
|
|
189
|
-
|
|
189
|
+
h && l
|
|
190
190
|
] })
|
|
191
191
|
] }),
|
|
192
|
-
f &&
|
|
192
|
+
f && l
|
|
193
193
|
] });
|
|
194
194
|
}, I = ({
|
|
195
|
-
headTitle:
|
|
195
|
+
headTitle: i,
|
|
196
196
|
subtitle: e,
|
|
197
|
-
buttonsConfig:
|
|
198
|
-
advantagesConfig:
|
|
197
|
+
buttonsConfig: o,
|
|
198
|
+
advantagesConfig: d,
|
|
199
199
|
classes: r,
|
|
200
|
-
img:
|
|
201
|
-
imgSets:
|
|
200
|
+
img: x,
|
|
201
|
+
imgSets: m
|
|
202
202
|
}) => {
|
|
203
203
|
var p;
|
|
204
|
-
const { isDesktop:
|
|
204
|
+
const { isDesktop: h, isMobile: f } = b(), l = /* @__PURE__ */ t.jsx(
|
|
205
205
|
"div",
|
|
206
206
|
{
|
|
207
207
|
"data-id": "banner-advantages",
|
|
208
|
-
className:
|
|
208
|
+
className: n(
|
|
209
209
|
"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",
|
|
210
210
|
r == null ? void 0 : r.advantageContainer
|
|
211
211
|
),
|
|
212
|
-
children: (
|
|
212
|
+
children: (d == null ? void 0 : d.config.details) && ((p = d == null ? void 0 : d.config.details) == null ? void 0 : p.length) > 0 && /* @__PURE__ */ t.jsx(H, { ...d })
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
215
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
216
|
-
/* @__PURE__ */ t.jsx("section", { "data-id": "banner-section", className:
|
|
217
|
-
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner", className:
|
|
216
|
+
/* @__PURE__ */ t.jsx("section", { "data-id": "banner-section", className: n("bg-banner-skyblue-300 desktop:h-[456px]", r == null ? void 0 : r.root), children: /* @__PURE__ */ t.jsxs(k, { "data-id": "banner-container", className: n("relative", r == null ? void 0 : r.container), children: [
|
|
217
|
+
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner", className: n("flex flex-col desktop:flex-row desktop:justify-between", r == null ? void 0 : r.wrapper), children: [
|
|
218
218
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
219
|
-
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner-text-block", className:
|
|
220
|
-
/* @__PURE__ */ t.jsx(a, { "data-id": "banner-title", as: "h1", className:
|
|
221
|
-
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className:
|
|
219
|
+
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner-text-block", className: n("flex flex-col gap-4 pt-6 desktop:pt-0", r == null ? void 0 : r.textBlock), children: [
|
|
220
|
+
/* @__PURE__ */ t.jsx(a, { "data-id": "banner-title", as: "h1", className: n("text-color-dark", r == null ? void 0 : r.title), children: i }),
|
|
221
|
+
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: n("desk-body-regular-l text-color-dark", r == null ? void 0 : r.subtitle), children: e })
|
|
222
222
|
] }),
|
|
223
|
-
/* @__PURE__ */ t.jsx(E, { buttonsConfig:
|
|
223
|
+
/* @__PURE__ */ t.jsx(E, { buttonsConfig: o, classes: r })
|
|
224
224
|
] }),
|
|
225
225
|
/* @__PURE__ */ t.jsx(
|
|
226
226
|
"div",
|
|
227
227
|
{
|
|
228
228
|
"data-id": "banner-image-wrapper",
|
|
229
|
-
className:
|
|
229
|
+
className: n("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", r == null ? void 0 : r.imageContainer),
|
|
230
230
|
children: /* @__PURE__ */ t.jsxs("picture", { children: [
|
|
231
|
-
/* @__PURE__ */ t.jsx("source", { media: "(min-width: 1128px)", srcSet:
|
|
232
|
-
/* @__PURE__ */ t.jsx("source", { media: "(max-width: 1127px)", srcSet:
|
|
231
|
+
/* @__PURE__ */ t.jsx("source", { media: "(min-width: 1128px)", srcSet: m == null ? void 0 : m.large }),
|
|
232
|
+
/* @__PURE__ */ t.jsx("source", { media: "(max-width: 1127px)", srcSet: m == null ? void 0 : m.mob }),
|
|
233
233
|
/* @__PURE__ */ t.jsx(
|
|
234
234
|
"img",
|
|
235
235
|
{
|
|
236
236
|
"data-id": "banner-image",
|
|
237
|
-
src:
|
|
237
|
+
src: x,
|
|
238
238
|
alt: "Картинка баннера",
|
|
239
|
-
className:
|
|
239
|
+
className: n("h-full object-cover", r == null ? void 0 : r.image)
|
|
240
240
|
}
|
|
241
241
|
)
|
|
242
242
|
] })
|
|
243
243
|
}
|
|
244
244
|
)
|
|
245
245
|
] }),
|
|
246
|
-
|
|
246
|
+
h && l
|
|
247
247
|
] }) }),
|
|
248
|
-
f &&
|
|
248
|
+
f && l
|
|
249
249
|
] });
|
|
250
|
-
},
|
|
251
|
-
switch (
|
|
250
|
+
}, wt = ({ bannerVariant: i, ...e }) => {
|
|
251
|
+
switch (i) {
|
|
252
252
|
case "separateImg":
|
|
253
253
|
return /* @__PURE__ */ t.jsx(I, { ...e });
|
|
254
254
|
case "fullImg":
|
|
255
|
-
return /* @__PURE__ */ t.jsx(
|
|
255
|
+
return /* @__PURE__ */ t.jsx(q, { ...e });
|
|
256
256
|
default:
|
|
257
257
|
return /* @__PURE__ */ t.jsx(I, { ...e });
|
|
258
258
|
}
|
|
259
|
-
}, H = ({
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
{
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
)
|
|
259
|
+
}, H = ({ config: i, classes: e }) => {
|
|
260
|
+
const { variant: o, details: d } = i;
|
|
261
|
+
return /* @__PURE__ */ t.jsx(
|
|
262
|
+
"div",
|
|
263
|
+
{
|
|
264
|
+
className: n(
|
|
265
|
+
"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",
|
|
266
|
+
{ "desktop:max-w-[860px]": o === "threeCards" },
|
|
267
|
+
{ "desktop:max-w-[1140px]": o === "fourCards" },
|
|
268
|
+
e == null ? void 0 : e.root
|
|
269
|
+
),
|
|
270
|
+
children: d == null ? void 0 : d.map(({ title: r, description: x }) => /* @__PURE__ */ t.jsxs(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
className: n(
|
|
274
|
+
'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',
|
|
275
|
+
e == null ? void 0 : e.item
|
|
276
|
+
),
|
|
277
|
+
children: [
|
|
278
|
+
/* @__PURE__ */ t.jsx(a, { as: "h4", className: n("text-color-dark", e == null ? void 0 : e.title), children: r }),
|
|
279
|
+
/* @__PURE__ */ t.jsx("p", { className: n("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: x })
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
r
|
|
283
|
+
))
|
|
284
|
+
}
|
|
285
|
+
);
|
|
286
|
+
}, J = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
284
287
|
"© 2004-2024, ПАО «Совкомбанк». Все права защищены. ",
|
|
285
288
|
/* @__PURE__ */ t.jsx("br", { className: "mobile:hidden" }),
|
|
286
289
|
" Генеральная лицензия Банка России №963 от 5 декабря 2014 г."
|
|
287
|
-
] }),
|
|
290
|
+
] }), K = [
|
|
288
291
|
{ phone: "8 800 100-00-06", text: "Звонок по России (бесплатно)" },
|
|
289
292
|
{ phone: "+7 (495) 988 00 00", text: "Для звонков из-за рубежа (платно)" }
|
|
290
|
-
],
|
|
293
|
+
], Q = [
|
|
291
294
|
{ iconName: "social/vk", href: "https://vk.com/sovcombank" },
|
|
292
295
|
{ iconName: "social/telegram", href: "https://t.me/sovcombankofficial" },
|
|
293
296
|
{ iconName: "social/classmates", href: "https://ok.ru/paosovcombank" }
|
|
294
|
-
],
|
|
297
|
+
], X = [
|
|
295
298
|
{
|
|
296
299
|
groupLabel: "Совкомбанк",
|
|
297
300
|
links: [
|
|
@@ -368,40 +371,40 @@ const G = j(
|
|
|
368
371
|
{ text: "Офисы и банкоматы", href: "/" }
|
|
369
372
|
]
|
|
370
373
|
}
|
|
371
|
-
],
|
|
374
|
+
], Y = ({ socialsLinks: i, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: n("mt-4 flex items-center gap-2 desktop:mt-6", e == null ? void 0 : e.socialRoot), children: i == null ? void 0 : i.map(({ iconName: o, href: d }) => /* @__PURE__ */ t.jsx(
|
|
372
375
|
"a",
|
|
373
376
|
{
|
|
374
|
-
className:
|
|
375
|
-
href:
|
|
376
|
-
"aria-label":
|
|
377
|
-
children: /* @__PURE__ */ t.jsx(
|
|
377
|
+
className: n("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
378
|
+
href: d,
|
|
379
|
+
"aria-label": o.replace("social/", ""),
|
|
380
|
+
children: /* @__PURE__ */ t.jsx(u, { name: o, className: n("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
378
381
|
},
|
|
379
|
-
|
|
380
|
-
)) }),
|
|
382
|
+
d
|
|
383
|
+
)) }), P = ({ phones: i, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: n("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: i == null ? void 0 : i.map(({ phone: o, text: d }) => /* @__PURE__ */ t.jsx(
|
|
381
384
|
M,
|
|
382
385
|
{
|
|
383
|
-
phone:
|
|
384
|
-
text:
|
|
386
|
+
phone: o,
|
|
387
|
+
text: d,
|
|
385
388
|
classes: {
|
|
386
|
-
wrapper:
|
|
387
|
-
text:
|
|
388
|
-
link:
|
|
389
|
+
wrapper: n(e == null ? void 0 : e.phoneWrapper),
|
|
390
|
+
text: n("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
391
|
+
link: n("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
389
392
|
}
|
|
390
393
|
},
|
|
391
|
-
|
|
392
|
-
)) }),
|
|
394
|
+
o
|
|
395
|
+
)) }), A = ({ navigationLinks: i, classes: e }) => /* @__PURE__ */ t.jsx(
|
|
393
396
|
"div",
|
|
394
397
|
{
|
|
395
|
-
className:
|
|
398
|
+
className: n(
|
|
396
399
|
"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",
|
|
397
400
|
e == null ? void 0 : e.navRoot
|
|
398
401
|
),
|
|
399
|
-
children:
|
|
400
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
401
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
402
|
+
children: i == null ? void 0 : i.map(({ groupLabel: o, links: d }) => /* @__PURE__ */ t.jsxs("div", { className: n("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
|
|
403
|
+
/* @__PURE__ */ t.jsx("div", { className: n("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: o }),
|
|
404
|
+
/* @__PURE__ */ t.jsx("div", { className: n("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: d == null ? void 0 : d.map(({ text: r, href: x }) => /* @__PURE__ */ t.jsx(
|
|
402
405
|
w,
|
|
403
406
|
{
|
|
404
|
-
href:
|
|
407
|
+
href: x,
|
|
405
408
|
"aria-label": r,
|
|
406
409
|
intent: "white",
|
|
407
410
|
classes: {
|
|
@@ -412,17 +415,17 @@ const G = j(
|
|
|
412
415
|
},
|
|
413
416
|
r
|
|
414
417
|
)) })
|
|
415
|
-
] },
|
|
418
|
+
] }, o))
|
|
416
419
|
}
|
|
417
|
-
),
|
|
420
|
+
), c = ({ text: i, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: n("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight), children: i }), s = ({ classes: i }) => /* @__PURE__ */ t.jsx(
|
|
418
421
|
"a",
|
|
419
422
|
{
|
|
420
423
|
"aria-label": "logo",
|
|
421
424
|
href: "https://sovcombank.ru/",
|
|
422
|
-
className:
|
|
423
|
-
children: /* @__PURE__ */ t.jsx(
|
|
425
|
+
className: n("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", i == null ? void 0 : i.footerLogo),
|
|
426
|
+
children: /* @__PURE__ */ t.jsx(u, { name: "brandLogos/logoWhite", className: n("size-full", i == null ? void 0 : i.footerLogoIcon) })
|
|
424
427
|
}
|
|
425
|
-
),
|
|
428
|
+
), tt = ({ classes: i }) => /* @__PURE__ */ t.jsx(
|
|
426
429
|
w,
|
|
427
430
|
{
|
|
428
431
|
intent: "white",
|
|
@@ -431,97 +434,100 @@ const G = j(
|
|
|
431
434
|
"aria-label": "site-map",
|
|
432
435
|
rel: "noreferrer",
|
|
433
436
|
classes: {
|
|
434
|
-
link:
|
|
435
|
-
icon:
|
|
437
|
+
link: n("mobile:mt-6", i == null ? void 0 : i.siteMapLink),
|
|
438
|
+
icon: i == null ? void 0 : i.siteMapLinkIcon
|
|
436
439
|
},
|
|
437
440
|
children: "Карта сайта"
|
|
438
441
|
}
|
|
439
|
-
),
|
|
440
|
-
renderBlocks: { withSocial:
|
|
441
|
-
socialsLinks:
|
|
442
|
-
phones:
|
|
443
|
-
navigationLinks:
|
|
442
|
+
), Nt = ({
|
|
443
|
+
renderBlocks: { withSocial: i = !0, withPhones: e = !0, withNavLinks: o = !0, withCopyright: d = !0, withSiteMap: r = !0 } = {},
|
|
444
|
+
socialsLinks: x = Q,
|
|
445
|
+
phones: m = K,
|
|
446
|
+
navigationLinks: h = X,
|
|
444
447
|
ligal: f,
|
|
445
|
-
copyright:
|
|
448
|
+
copyright: l = J,
|
|
446
449
|
classes: p
|
|
447
|
-
}) => /* @__PURE__ */ t.jsx("footer", { className:
|
|
450
|
+
}) => /* @__PURE__ */ t.jsx("footer", { className: n("w-full bg-color-footer py-8 desktop:py-10", p == null ? void 0 : p.root), children: /* @__PURE__ */ t.jsx(k, { className: n(p == null ? void 0 : p.footerContainer), children: /* @__PURE__ */ t.jsxs("div", { className: n("mobile:pb-[176px]", p == null ? void 0 : p.footerWrapper), children: [
|
|
448
451
|
/* @__PURE__ */ t.jsxs(
|
|
449
452
|
"div",
|
|
450
453
|
{
|
|
451
|
-
className:
|
|
454
|
+
className: n(
|
|
452
455
|
"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",
|
|
453
456
|
p == null ? void 0 : p.footerHead
|
|
454
457
|
),
|
|
455
458
|
children: [
|
|
456
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
457
|
-
/* @__PURE__ */ t.jsx(
|
|
458
|
-
|
|
459
|
+
/* @__PURE__ */ t.jsxs("div", { className: n(p == null ? void 0 : p.footerSocialBlock), children: [
|
|
460
|
+
/* @__PURE__ */ t.jsx(s, { classes: p == null ? void 0 : p.footerLogo }),
|
|
461
|
+
i && /* @__PURE__ */ t.jsx(Y, { socialsLinks: x, classes: p == null ? void 0 : p.socialLinks })
|
|
459
462
|
] }),
|
|
460
|
-
e && /* @__PURE__ */ t.jsx(
|
|
463
|
+
e && /* @__PURE__ */ t.jsx(P, { phones: m, classes: p == null ? void 0 : p.phonesBlock })
|
|
461
464
|
]
|
|
462
465
|
}
|
|
463
466
|
),
|
|
464
|
-
|
|
467
|
+
o && /* @__PURE__ */ t.jsx(A, { navigationLinks: h, classes: p == null ? void 0 : p.navLinks }),
|
|
465
468
|
f && f,
|
|
466
469
|
/* @__PURE__ */ t.jsxs(
|
|
467
470
|
"div",
|
|
468
471
|
{
|
|
469
|
-
className:
|
|
472
|
+
className: n(
|
|
470
473
|
"mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
|
|
471
474
|
p == null ? void 0 : p.footerBottom
|
|
472
475
|
),
|
|
473
476
|
children: [
|
|
474
|
-
|
|
475
|
-
r && /* @__PURE__ */ t.jsx(
|
|
477
|
+
d && /* @__PURE__ */ t.jsx(c, { text: l, classes: p == null ? void 0 : p.copyright }),
|
|
478
|
+
r && /* @__PURE__ */ t.jsx(tt, { classes: p == null ? void 0 : p.siteMap })
|
|
476
479
|
]
|
|
477
480
|
}
|
|
478
481
|
)
|
|
479
|
-
] }) }) }),
|
|
480
|
-
const
|
|
482
|
+
] }) }) }), et = ({ classes: i, index: e, variant: o, title: d, description: r }) => {
|
|
483
|
+
const x = o === "withTitleAndDescription" && d;
|
|
481
484
|
return /* @__PURE__ */ t.jsxs(
|
|
482
485
|
"div",
|
|
483
486
|
{
|
|
484
|
-
className:
|
|
487
|
+
className: n(
|
|
485
488
|
"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",
|
|
486
|
-
|
|
489
|
+
i == null ? void 0 : i.singleStep
|
|
487
490
|
),
|
|
488
491
|
children: [
|
|
489
492
|
/* @__PURE__ */ t.jsx(
|
|
490
493
|
"div",
|
|
491
494
|
{
|
|
492
|
-
className:
|
|
495
|
+
className: n(
|
|
493
496
|
"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",
|
|
494
|
-
|
|
497
|
+
i == null ? void 0 : i.numeric
|
|
495
498
|
),
|
|
496
499
|
children: e
|
|
497
500
|
}
|
|
498
501
|
),
|
|
499
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
500
|
-
|
|
502
|
+
/* @__PURE__ */ t.jsxs("div", { className: n("flex flex-col gap-2"), children: [
|
|
503
|
+
x && /* @__PURE__ */ t.jsx(a, { as: "h4", className: n("text-color-dark", i == null ? void 0 : i.title), children: d }),
|
|
501
504
|
/* @__PURE__ */ t.jsx(
|
|
502
505
|
"div",
|
|
503
506
|
{
|
|
504
507
|
dangerouslySetInnerHTML: { __html: r ?? "" },
|
|
505
|
-
className:
|
|
508
|
+
className: n("desk-body-regular-l text-color-tetriary", i == null ? void 0 : i.description)
|
|
506
509
|
}
|
|
507
510
|
)
|
|
508
511
|
] })
|
|
509
512
|
]
|
|
510
513
|
}
|
|
511
514
|
);
|
|
512
|
-
},
|
|
513
|
-
|
|
514
|
-
/* @__PURE__ */ t.jsx(
|
|
515
|
-
"
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
515
|
+
}, yt = ({ headline: i, config: e, classes: o }) => {
|
|
516
|
+
const { variant: d, details: r } = e;
|
|
517
|
+
return /* @__PURE__ */ t.jsx(V, { 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: n("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
518
|
+
/* @__PURE__ */ t.jsx(a, { as: "h2", className: n("text-color-dark", o == null ? void 0 : o.headline), children: i }),
|
|
519
|
+
/* @__PURE__ */ t.jsx(
|
|
520
|
+
"div",
|
|
521
|
+
{
|
|
522
|
+
className: n(
|
|
523
|
+
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
524
|
+
o == null ? void 0 : o.stepsWrapper
|
|
525
|
+
),
|
|
526
|
+
children: r == null ? void 0 : r.map((x, m) => /* @__PURE__ */ t.jsx(et, { variant: d, ...x, index: m + 1, classes: o == null ? void 0 : o.step }, x.description))
|
|
527
|
+
}
|
|
528
|
+
)
|
|
529
|
+
] }) }) });
|
|
530
|
+
}, rt = j("", {
|
|
525
531
|
variants: {
|
|
526
532
|
intent: {
|
|
527
533
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -537,7 +543,7 @@ const G = j(
|
|
|
537
543
|
defaultVariants: {
|
|
538
544
|
intent: "twoItems"
|
|
539
545
|
}
|
|
540
|
-
}),
|
|
546
|
+
}), ot = j("", {
|
|
541
547
|
variants: {
|
|
542
548
|
intent: {
|
|
543
549
|
twoItems: "",
|
|
@@ -569,7 +575,7 @@ const G = j(
|
|
|
569
575
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
570
576
|
}
|
|
571
577
|
]
|
|
572
|
-
}),
|
|
578
|
+
}), it = j("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
573
579
|
variants: {
|
|
574
580
|
intent: {
|
|
575
581
|
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',
|
|
@@ -605,47 +611,47 @@ const G = j(
|
|
|
605
611
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
606
612
|
}
|
|
607
613
|
]
|
|
608
|
-
}), dt = ({ data:
|
|
609
|
-
const { title:
|
|
610
|
-
return /* @__PURE__ */ t.jsx("li", { className:
|
|
611
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
612
|
-
/* @__PURE__ */ t.jsx("h4", { className:
|
|
613
|
-
r && /* @__PURE__ */ t.jsx(
|
|
614
|
+
}), dt = ({ data: i, intent: e }) => {
|
|
615
|
+
const { title: o, description: d, popoverText: r } = i;
|
|
616
|
+
return /* @__PURE__ */ t.jsx("li", { className: n(it({ intent: e })), children: /* @__PURE__ */ t.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
617
|
+
/* @__PURE__ */ t.jsxs("div", { className: n("mb-2 flex items-center gap-2"), children: [
|
|
618
|
+
/* @__PURE__ */ t.jsx("h4", { className: n("mob-title-bold-m text-color-dark"), children: o }),
|
|
619
|
+
r && /* @__PURE__ */ t.jsx(L, { triggerElement: /* @__PURE__ */ t.jsx(u, { className: n("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: r })
|
|
614
620
|
] }),
|
|
615
|
-
/* @__PURE__ */ t.jsx("p", { className:
|
|
621
|
+
/* @__PURE__ */ t.jsx("p", { className: n("mob-body-regular-l text-color-secondary"), children: d })
|
|
616
622
|
] }) });
|
|
617
|
-
}, N = ({ intent:
|
|
618
|
-
title:
|
|
623
|
+
}, N = ({ intent: i, title: e, desktopHidden: o = !1, mobileHidden: d = !1 }) => /* @__PURE__ */ t.jsx("h2", { className: n(rt({ intent: i, desktopHidden: o, mobileHidden: d })), children: e }), xt = ({ textContent: i, intent: e, withButton: o }) => /* @__PURE__ */ t.jsx("ul", { className: n(ot({ intent: e, withButton: o })), children: i == null ? void 0 : i.map((d, r) => /* @__PURE__ */ t.jsx(dt, { intent: e, data: d }, r)) }), vt = ({
|
|
624
|
+
title: i,
|
|
619
625
|
buttonConfig: e,
|
|
620
|
-
intent:
|
|
621
|
-
textContent:
|
|
626
|
+
intent: o = "twoItems",
|
|
627
|
+
textContent: d,
|
|
622
628
|
imageComponent: r,
|
|
623
|
-
classes:
|
|
629
|
+
classes: x
|
|
624
630
|
}) => {
|
|
625
|
-
const
|
|
626
|
-
return /* @__PURE__ */ t.jsx("section", { className:
|
|
627
|
-
f && /* @__PURE__ */ t.jsx(N, { intent:
|
|
631
|
+
const m = !!e, h = o === "fourItems", f = o === "twoItems";
|
|
632
|
+
return /* @__PURE__ */ t.jsx("section", { className: n(x == null ? void 0 : x.root), children: /* @__PURE__ */ t.jsxs(k, { className: n(x == null ? void 0 : x.container), children: [
|
|
633
|
+
f && /* @__PURE__ */ t.jsx(N, { intent: o, title: i }),
|
|
628
634
|
/* @__PURE__ */ t.jsxs(
|
|
629
635
|
"div",
|
|
630
636
|
{
|
|
631
|
-
className:
|
|
637
|
+
className: n(
|
|
632
638
|
"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",
|
|
633
|
-
|
|
639
|
+
x == null ? void 0 : x.contentContainer
|
|
634
640
|
),
|
|
635
641
|
children: [
|
|
636
|
-
|
|
637
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
642
|
+
h && /* @__PURE__ */ t.jsx(N, { intent: o, title: i, desktopHidden: !0 }),
|
|
643
|
+
/* @__PURE__ */ t.jsx("div", { className: n(nt({ intent: o, withButton: m }), x == null ? void 0 : x.imgContainer), children: r }),
|
|
638
644
|
/* @__PURE__ */ t.jsxs(
|
|
639
645
|
"div",
|
|
640
646
|
{
|
|
641
|
-
className:
|
|
647
|
+
className: n("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", x == null ? void 0 : x.textWithBtnContainer),
|
|
642
648
|
children: [
|
|
643
|
-
|
|
644
|
-
/* @__PURE__ */ t.jsx(
|
|
645
|
-
|
|
649
|
+
h && /* @__PURE__ */ t.jsx(N, { intent: o, title: i, mobileHidden: !0 }),
|
|
650
|
+
/* @__PURE__ */ t.jsx(xt, { textContent: d, intent: o, withButton: m }),
|
|
651
|
+
m && /* @__PURE__ */ t.jsx(
|
|
646
652
|
g,
|
|
647
653
|
{
|
|
648
|
-
className:
|
|
654
|
+
className: n("w-full px-4 desktop:w-max", x == null ? void 0 : x.button),
|
|
649
655
|
size: "lg",
|
|
650
656
|
onClick: e.onClick,
|
|
651
657
|
intent: "secondary",
|
|
@@ -663,29 +669,29 @@ const G = j(
|
|
|
663
669
|
ESIA: "esia",
|
|
664
670
|
MOBILE_ID: "mobileId",
|
|
665
671
|
COMBINE: "combine"
|
|
666
|
-
}, W = ({ children:
|
|
672
|
+
}, W = ({ children: i, isLoading: e, classes: o, loaderProps: d }) => /* @__PURE__ */ t.jsx(
|
|
667
673
|
"div",
|
|
668
674
|
{
|
|
669
675
|
tabIndex: 0,
|
|
670
|
-
className:
|
|
676
|
+
className: n(
|
|
671
677
|
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
672
678
|
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
673
|
-
|
|
679
|
+
o == null ? void 0 : o.root
|
|
674
680
|
),
|
|
675
681
|
children: /* @__PURE__ */ t.jsx(
|
|
676
682
|
"div",
|
|
677
683
|
{
|
|
678
|
-
className:
|
|
684
|
+
className: n(
|
|
679
685
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
680
686
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
681
687
|
{ "items-center": e },
|
|
682
|
-
|
|
688
|
+
o == null ? void 0 : o.wrapper
|
|
683
689
|
),
|
|
684
|
-
children: e ? /* @__PURE__ */ t.jsx(
|
|
690
|
+
children: e ? /* @__PURE__ */ t.jsx(D, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...d }) : i
|
|
685
691
|
}
|
|
686
692
|
)
|
|
687
693
|
}
|
|
688
|
-
),
|
|
694
|
+
), pt = ({ ...i }) => /* @__PURE__ */ t.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i, children: [
|
|
689
695
|
/* @__PURE__ */ t.jsx(
|
|
690
696
|
"path",
|
|
691
697
|
{
|
|
@@ -713,18 +719,18 @@ const G = j(
|
|
|
713
719
|
/* @__PURE__ */ t.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
714
720
|
/* @__PURE__ */ t.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
715
721
|
] }) })
|
|
716
|
-
] }), F = ({ mainLink:
|
|
722
|
+
] }), F = ({ mainLink: i, subLink: e, isMobile: o, classes: d }) => /* @__PURE__ */ t.jsxs("div", { className: n("flex flex-col", d == null ? void 0 : d.linksWrapper), children: [
|
|
717
723
|
/* @__PURE__ */ t.jsx(
|
|
718
724
|
"a",
|
|
719
725
|
{
|
|
720
|
-
href:
|
|
726
|
+
href: i.href,
|
|
721
727
|
target: "_blank",
|
|
722
728
|
rel: "noreferrer",
|
|
723
|
-
className:
|
|
729
|
+
className: n(
|
|
724
730
|
'before:content=[" "] desk-body-medium-l z-[4] text-color-dark before:absolute before:left-1/2 before:top-1/2 before:h-full before:w-full before:-translate-x-1/2 before:-translate-y-1/2',
|
|
725
|
-
|
|
731
|
+
d == null ? void 0 : d.linksMainLink
|
|
726
732
|
),
|
|
727
|
-
children:
|
|
733
|
+
children: o ? i.mobileTitle : i.title
|
|
728
734
|
}
|
|
729
735
|
),
|
|
730
736
|
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ t.jsx(
|
|
@@ -736,77 +742,77 @@ const G = j(
|
|
|
736
742
|
target: "_blank",
|
|
737
743
|
rel: "noreferrer",
|
|
738
744
|
classes: {
|
|
739
|
-
link:
|
|
745
|
+
link: n("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", d == null ? void 0 : d.linksSubLink)
|
|
740
746
|
},
|
|
741
747
|
children: e == null ? void 0 : e.text
|
|
742
748
|
}
|
|
743
749
|
)
|
|
744
|
-
] }), C = ({ mainLink:
|
|
745
|
-
const { isMobile:
|
|
746
|
-
return /* @__PURE__ */ t.jsx(W, { isLoading:
|
|
750
|
+
] }), C = ({ mainLink: i, subLink: e, isLoading: o, badge: d, loaderProps: r, classes: x }) => {
|
|
751
|
+
const { isMobile: m } = b();
|
|
752
|
+
return /* @__PURE__ */ t.jsx(W, { isLoading: o, loaderProps: r, classes: x == null ? void 0 : x.authWrapper, children: /* @__PURE__ */ t.jsxs(
|
|
747
753
|
"div",
|
|
748
754
|
{
|
|
749
|
-
className:
|
|
755
|
+
className: n(
|
|
750
756
|
"flex flex-1 items-center justify-between gap-1",
|
|
751
|
-
{ "justify-center": !
|
|
752
|
-
|
|
757
|
+
{ "justify-center": !d && m },
|
|
758
|
+
x == null ? void 0 : x.innerWrapper
|
|
753
759
|
),
|
|
754
760
|
children: [
|
|
755
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
761
|
+
/* @__PURE__ */ t.jsxs("div", { className: n("flex items-center gap-1 desktop:gap-4", x == null ? void 0 : x.textContent), children: [
|
|
756
762
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
757
|
-
/* @__PURE__ */ t.jsx(
|
|
758
|
-
/* @__PURE__ */ t.jsx(
|
|
759
|
-
/* @__PURE__ */ t.jsx(
|
|
763
|
+
/* @__PURE__ */ t.jsx(u, { name: "logos/mts", className: n("relative z-[9] size-7 desktop:size-8", x == null ? void 0 : x.mtsLogo) }),
|
|
764
|
+
/* @__PURE__ */ t.jsx(u, { name: "logos/megafon", className: n("relative z-[8] -ml-4 size-7 desktop:size-8", x == null ? void 0 : x.megafonLogo) }),
|
|
765
|
+
/* @__PURE__ */ t.jsx(u, { name: "logos/beeline", className: n("relative z-[7] -ml-4 size-7 desktop:size-8", x == null ? void 0 : x.beelineLogo) })
|
|
760
766
|
] }),
|
|
761
|
-
/* @__PURE__ */ t.jsx(F, { mainLink:
|
|
762
|
-
/* @__PURE__ */ t.jsx(
|
|
767
|
+
/* @__PURE__ */ t.jsx(F, { mainLink: i, subLink: e, isMobile: m, classes: x == null ? void 0 : x.links }),
|
|
768
|
+
/* @__PURE__ */ t.jsx(u, { name: "arrows/arrowRight", className: n("mobile:hidden", x == null ? void 0 : x.arrowIcon) })
|
|
763
769
|
] }),
|
|
764
|
-
|
|
770
|
+
d && /* @__PURE__ */ t.jsx(v, { className: n("bg-color-positive", x == null ? void 0 : x.badge), children: d })
|
|
765
771
|
]
|
|
766
772
|
}
|
|
767
773
|
) });
|
|
768
|
-
}, B = ({ mainLink:
|
|
769
|
-
const { isMobile:
|
|
770
|
-
return /* @__PURE__ */ t.jsx(W, { isLoading:
|
|
774
|
+
}, B = ({ mainLink: i, subLink: e, isLoading: o, badge: d, loaderProps: r, classes: x }) => {
|
|
775
|
+
const { isMobile: m } = b();
|
|
776
|
+
return /* @__PURE__ */ t.jsx(W, { isLoading: o, loaderProps: r, classes: x == null ? void 0 : x.authWrapper, children: /* @__PURE__ */ t.jsxs(
|
|
771
777
|
"div",
|
|
772
778
|
{
|
|
773
|
-
className:
|
|
779
|
+
className: n(
|
|
774
780
|
"flex flex-1 items-center justify-between gap-1",
|
|
775
|
-
{ "justify-center": !
|
|
776
|
-
|
|
781
|
+
{ "justify-center": !d && m },
|
|
782
|
+
x == null ? void 0 : x.innerWrapper
|
|
777
783
|
),
|
|
778
784
|
children: [
|
|
779
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
780
|
-
/* @__PURE__ */ t.jsx(
|
|
781
|
-
/* @__PURE__ */ t.jsx(F, { mainLink:
|
|
782
|
-
/* @__PURE__ */ t.jsx(
|
|
785
|
+
/* @__PURE__ */ t.jsxs("div", { className: n("flex items-center gap-1 desktop:gap-4", x == null ? void 0 : x.textContent), children: [
|
|
786
|
+
/* @__PURE__ */ t.jsx(pt, { className: n("size-7 desktop:size-8", x == null ? void 0 : x.esiaLogo) }),
|
|
787
|
+
/* @__PURE__ */ t.jsx(F, { mainLink: i, subLink: e, isMobile: m, classes: x == null ? void 0 : x.links }),
|
|
788
|
+
/* @__PURE__ */ t.jsx(u, { name: "arrows/arrowRight", className: n("mobile:hidden", x == null ? void 0 : x.arrowIcon) })
|
|
783
789
|
] }),
|
|
784
|
-
|
|
790
|
+
d && /* @__PURE__ */ t.jsx(v, { className: n("bg-color-positive", x == null ? void 0 : x.badge), children: d })
|
|
785
791
|
]
|
|
786
792
|
}
|
|
787
793
|
) });
|
|
788
|
-
},
|
|
789
|
-
switch (
|
|
794
|
+
}, mt = (i) => {
|
|
795
|
+
switch (i.mode) {
|
|
790
796
|
case y.ESIA:
|
|
791
|
-
return /* @__PURE__ */ t.jsx(B, { ...
|
|
797
|
+
return /* @__PURE__ */ t.jsx(B, { ...i });
|
|
792
798
|
case y.MOBILE_ID:
|
|
793
|
-
return /* @__PURE__ */ t.jsx(C, { ...
|
|
799
|
+
return /* @__PURE__ */ t.jsx(C, { ...i });
|
|
794
800
|
case y.COMBINE:
|
|
795
801
|
default:
|
|
796
|
-
const { esiaConfig: e, mobileIdConfig:
|
|
802
|
+
const { esiaConfig: e, mobileIdConfig: o, subtitle: d, badge: r, classes: x } = i, m = !d && !r ? G.Fragment : "div";
|
|
797
803
|
return /* @__PURE__ */ t.jsxs(
|
|
798
804
|
"div",
|
|
799
805
|
{
|
|
800
|
-
className:
|
|
806
|
+
className: n(
|
|
801
807
|
"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",
|
|
802
|
-
|
|
808
|
+
x == null ? void 0 : x.root
|
|
803
809
|
),
|
|
804
810
|
children: [
|
|
805
|
-
/* @__PURE__ */ t.jsxs(
|
|
806
|
-
|
|
807
|
-
r && /* @__PURE__ */ t.jsx(v, { className:
|
|
811
|
+
/* @__PURE__ */ t.jsxs(m, { className: n("flex w-full items-center justify-between gap-2", x == null ? void 0 : x.topContent), children: [
|
|
812
|
+
d && /* @__PURE__ */ t.jsx("h5", { className: n("desk-body-regular-l flex flex-1 text-color-dark", x == null ? void 0 : x.subtitle), children: d }),
|
|
813
|
+
r && /* @__PURE__ */ t.jsx(v, { className: n("bg-color-positive", x == null ? void 0 : x.badge), children: r })
|
|
808
814
|
] }),
|
|
809
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
815
|
+
/* @__PURE__ */ t.jsxs("div", { className: n("grid w-full grid-cols-2 gap-2 desktop:gap-4", x == null ? void 0 : x.authWrapper), children: [
|
|
810
816
|
/* @__PURE__ */ t.jsx(
|
|
811
817
|
B,
|
|
812
818
|
{
|
|
@@ -821,11 +827,11 @@ const G = j(
|
|
|
821
827
|
/* @__PURE__ */ t.jsx(
|
|
822
828
|
C,
|
|
823
829
|
{
|
|
824
|
-
...
|
|
830
|
+
...o,
|
|
825
831
|
classes: {
|
|
826
832
|
root: "p-0 outline-0 h-[74px]",
|
|
827
833
|
arrowIcon: "hidden",
|
|
828
|
-
...
|
|
834
|
+
...o.classes
|
|
829
835
|
}
|
|
830
836
|
}
|
|
831
837
|
)
|
|
@@ -834,45 +840,45 @@ const G = j(
|
|
|
834
840
|
}
|
|
835
841
|
);
|
|
836
842
|
}
|
|
837
|
-
},
|
|
843
|
+
}, It = (i) => mt(i), z = ({ links: i, classes: e }) => /* @__PURE__ */ t.jsx("nav", { className: n("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: i == null ? void 0 : i.map(({ path: o, label: d }) => /* @__PURE__ */ t.jsx(
|
|
838
844
|
w,
|
|
839
845
|
{
|
|
840
846
|
classes: {
|
|
841
|
-
link:
|
|
842
|
-
icon:
|
|
847
|
+
link: n("w-max", e == null ? void 0 : e.linkText),
|
|
848
|
+
icon: n(e == null ? void 0 : e.linkIcon)
|
|
843
849
|
},
|
|
844
850
|
intent: "dark",
|
|
845
|
-
href:
|
|
846
|
-
children:
|
|
851
|
+
href: o,
|
|
852
|
+
children: d
|
|
847
853
|
},
|
|
848
|
-
|
|
849
|
-
)) }), ht = ({ groupLabel:
|
|
850
|
-
var
|
|
854
|
+
o
|
|
855
|
+
)) }), ht = ({ groupLabel: i, links: e, mobileAccordionProps: o, classes: d }) => {
|
|
856
|
+
var x, m, h;
|
|
851
857
|
const { isMobile: r } = b();
|
|
852
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
858
|
+
return /* @__PURE__ */ t.jsxs("div", { className: n("flex flex-col gap-2", d == null ? void 0 : d.columnGroup), children: [
|
|
853
859
|
!r && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
854
|
-
/* @__PURE__ */ t.jsx("h5", { className:
|
|
855
|
-
/* @__PURE__ */ t.jsx(z, { links: e, classes:
|
|
860
|
+
/* @__PURE__ */ t.jsx("h5", { className: n("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", d == null ? void 0 : d.columnGroupHeading), children: i }),
|
|
861
|
+
/* @__PURE__ */ t.jsx(z, { links: e, classes: d == null ? void 0 : d.linksList }, "desktop")
|
|
856
862
|
] }),
|
|
857
863
|
r && /* @__PURE__ */ t.jsx(
|
|
858
864
|
_,
|
|
859
865
|
{
|
|
860
866
|
defaultOpen: !0,
|
|
861
|
-
label:
|
|
862
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
863
|
-
...
|
|
867
|
+
label: i,
|
|
868
|
+
icon: /* @__PURE__ */ t.jsx(u, { name: "arrows/arrowRight", className: n("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
869
|
+
...o,
|
|
864
870
|
classes: {
|
|
865
|
-
...
|
|
871
|
+
...o == null ? void 0 : o.classes,
|
|
866
872
|
header: {
|
|
867
|
-
trigger:
|
|
873
|
+
trigger: n("p-0 bg-color-blue-grey-100", (m = (x = o == null ? void 0 : o.classes) == null ? void 0 : x.header) == null ? void 0 : m.trigger)
|
|
868
874
|
},
|
|
869
|
-
contentInner:
|
|
875
|
+
contentInner: n("py-2 px-4", (h = o == null ? void 0 : o.classes) == null ? void 0 : h.contentInner)
|
|
870
876
|
},
|
|
871
|
-
children: /* @__PURE__ */ t.jsx(z, { links: e, classes:
|
|
877
|
+
children: /* @__PURE__ */ t.jsx(z, { links: e, classes: d == null ? void 0 : d.linksList }, "mobile")
|
|
872
878
|
}
|
|
873
879
|
)
|
|
874
880
|
] });
|
|
875
|
-
},
|
|
881
|
+
}, ft = ({ column: i, mobileAccordionProps: e, classes: o }) => /* @__PURE__ */ t.jsx("div", { className: n("flex flex-col gap-4 desktop:gap-6", o == null ? void 0 : o.column), children: i == null ? void 0 : i.map((d) => /* @__PURE__ */ t.jsx(ht, { ...e, ...d, classes: o == null ? void 0 : o.columnGroup }, d.groupLabel)) }), lt = j("grid gap-4 grid-cols-1", {
|
|
876
882
|
variants: {
|
|
877
883
|
variant: {
|
|
878
884
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -883,42 +889,36 @@ const G = j(
|
|
|
883
889
|
defaultVariants: {
|
|
884
890
|
variant: "fourCols"
|
|
885
891
|
}
|
|
886
|
-
}),
|
|
887
|
-
|
|
888
|
-
variant:
|
|
889
|
-
|
|
890
|
-
mobileAccordionProps: o,
|
|
891
|
-
rootAccordionProps: r,
|
|
892
|
-
classes: i
|
|
893
|
-
}) => {
|
|
894
|
-
var h, m, f;
|
|
895
|
-
return /* @__PURE__ */ t.jsx("section", { id: "inter-linking", className: d("min-w-full desktop:min-w-[1140px]", i == null ? void 0 : i.root), children: /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsx(
|
|
892
|
+
}), Ct = ({ config: i, headline: e, mobileAccordionProps: o, rootAccordionProps: d, classes: r }) => {
|
|
893
|
+
var h, f, l;
|
|
894
|
+
const { variant: x, details: m } = i;
|
|
895
|
+
return /* @__PURE__ */ t.jsx("section", { id: "inter-linking", className: n("min-w-full desktop:min-w-[1140px]", r == null ? void 0 : r.root), children: /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsx(
|
|
896
896
|
_,
|
|
897
897
|
{
|
|
898
898
|
defaultOpen: !0,
|
|
899
|
-
label: /* @__PURE__ */ t.jsx(a, { as: "h4", className:
|
|
900
|
-
...
|
|
899
|
+
label: /* @__PURE__ */ t.jsx(a, { as: "h4", className: n("text-left", r == null ? void 0 : r.headline), children: e }),
|
|
900
|
+
...d,
|
|
901
901
|
classes: {
|
|
902
|
-
...
|
|
902
|
+
...d == null ? void 0 : d.classes,
|
|
903
903
|
header: {
|
|
904
|
-
trigger:
|
|
904
|
+
trigger: n("bg-color-blue-grey-100", (f = (h = d == null ? void 0 : d.classes) == null ? void 0 : h.header) == null ? void 0 : f.trigger)
|
|
905
905
|
},
|
|
906
|
-
content:
|
|
906
|
+
content: n("max-w-full bg-color-blue-grey-100 relative", (l = d == null ? void 0 : d.classes) == null ? void 0 : l.content)
|
|
907
907
|
},
|
|
908
|
-
children: /* @__PURE__ */ t.jsx("div", { className:
|
|
908
|
+
children: /* @__PURE__ */ t.jsx("div", { className: n(lt({ variant: x }), r == null ? void 0 : r.columnsWrapper), children: m == null ? void 0 : m.map((p, T) => /* @__PURE__ */ t.jsx(ft, { ...p, ...o, classes: r == null ? void 0 : r.column }, T)) })
|
|
909
909
|
}
|
|
910
910
|
) }) });
|
|
911
911
|
};
|
|
912
912
|
export {
|
|
913
913
|
H as Advantages,
|
|
914
|
-
|
|
915
|
-
|
|
914
|
+
It as AuthProvider,
|
|
915
|
+
wt as Banner,
|
|
916
916
|
I as BannerWithSeparateImg,
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
917
|
+
bt as Benefit,
|
|
918
|
+
Nt as Footer,
|
|
919
|
+
gt as Header,
|
|
920
|
+
Ct as InterLinking,
|
|
921
|
+
vt as LongBanner,
|
|
922
|
+
yt as Stepper
|
|
923
923
|
};
|
|
924
924
|
//# sourceMappingURL=widget.js.map
|