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