@scbt-ecom/ui 0.16.3 → 0.17.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-DmCJLTWC.js +4090 -0
- package/dist/CustomLink-DmCJLTWC.js.map +1 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +26 -0
- package/dist/api.js.map +1 -0
- package/dist/cn-DIfn7EPB.js +2276 -0
- package/dist/cn-DIfn7EPB.js.map +1 -0
- package/dist/exports/api.d.ts +1 -0
- package/dist/exports/constants.d.ts +1 -0
- package/dist/exports/hooks.d.ts +1 -0
- package/dist/exports/types.d.ts +1 -0
- package/dist/exports/ui.d.ts +1 -0
- package/dist/exports/utils.d.ts +1 -0
- package/dist/exports/validation.d.ts +1 -0
- package/dist/exports/widgets.d.ts +1 -0
- package/dist/hooks.d.ts +2 -0
- package/dist/hooks.js +115 -0
- package/dist/hooks.js.map +1 -0
- package/dist/isClient-C9aZtt2Q.js +5 -0
- package/dist/isClient-C9aZtt2Q.js.map +1 -0
- package/dist/parse-Bv7rNn_R.js +5103 -0
- package/dist/parse-Bv7rNn_R.js.map +1 -0
- package/dist/scrollToElement-B-reg4jF.js +12 -0
- package/dist/scrollToElement-B-reg4jF.js.map +1 -0
- package/dist/shared/hooks/useDevice/index.d.ts +1 -0
- package/dist/shared/ui/button/Button.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/index.d.ts +1 -1
- package/dist/shared/ui/notification/ui/CustomToast.d.ts +1 -1
- package/dist/shared/ui/select/Select.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/ui.d.ts +2 -0
- package/dist/{client.js → ui.js} +10487 -11777
- package/dist/ui.js.map +1 -0
- package/dist/useDebounce-m2rLy7nL.js +1110 -0
- package/dist/useDebounce-m2rLy7nL.js.map +1 -0
- package/dist/useDevice-L83kSsN7.js +28 -0
- package/dist/useDevice-L83kSsN7.js.map +1 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +19 -0
- package/dist/utils.js.map +1 -0
- package/dist/validation.d.ts +2 -0
- package/dist/validation.js +82 -0
- package/dist/validation.js.map +1 -0
- package/dist/widgets/banner/ui/banners/BannerImageFull.d.ts +1 -1
- package/dist/widgets/banner/ui/banners/BannerWithSeparateImg.d.ts +1 -1
- package/dist/widgets.d.ts +2 -0
- package/dist/widgets.js +828 -0
- package/dist/widgets.js.map +1 -0
- package/package.json +24 -7
- package/dist/client.js.map +0 -1
- package/dist/hybrid.js +0 -1350
- package/dist/hybrid.js.map +0 -1
- package/dist/index-CexXWplL.js +0 -11391
- package/dist/index-CexXWplL.js.map +0 -1
- /package/dist/shared/hooks/{useDevice.d.ts → useDevice/useDevice.d.ts} +0 -0
package/dist/widgets.js
ADDED
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
import { j as t, B as j, H as u, c as b, R as k, b as M, P as B, I as a, C as y, S as F, a as W, L as P, d as v } from "./CustomLink-DmCJLTWC.js";
|
|
2
|
+
import { c as o } from "./cn-DIfn7EPB.js";
|
|
3
|
+
import { s as T } from "./scrollToElement-B-reg4jF.js";
|
|
4
|
+
import { u as g } from "./useDevice-L83kSsN7.js";
|
|
5
|
+
import * as R from "react";
|
|
6
|
+
const V = b(
|
|
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
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
intent: {
|
|
11
|
+
twoCards: "",
|
|
12
|
+
threeCards: "desktop:first:col-span-full",
|
|
13
|
+
fourCards: "desktop:first:col-span-2 desktop:last:col-span-2"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
), D = ({
|
|
18
|
+
description: n,
|
|
19
|
+
title: e,
|
|
20
|
+
img: x,
|
|
21
|
+
mobileImg: d,
|
|
22
|
+
classes: r,
|
|
23
|
+
withButton: i,
|
|
24
|
+
buttonText: p,
|
|
25
|
+
intent: f,
|
|
26
|
+
cardColor: h
|
|
27
|
+
}) => {
|
|
28
|
+
const { isDesktop: l } = g(), m = /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
29
|
+
j,
|
|
30
|
+
{
|
|
31
|
+
intent: "primary",
|
|
32
|
+
className: o("desktop:w-[200px]", r == null ? void 0 : r.button),
|
|
33
|
+
onClick: () => T("personal_form"),
|
|
34
|
+
size: "lg",
|
|
35
|
+
children: p
|
|
36
|
+
}
|
|
37
|
+
) });
|
|
38
|
+
return /* @__PURE__ */ t.jsxs(
|
|
39
|
+
"li",
|
|
40
|
+
{
|
|
41
|
+
className: o(V({ intent: f }), { "pb-0": d }, { "pb-12": !d }, h, r == null ? void 0 : r.item),
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ t.jsxs("div", { className: o("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", r == null ? void 0 : r.itemWrapper), children: [
|
|
44
|
+
/* @__PURE__ */ t.jsxs("div", { className: o("flex flex-col gap-4", r == null ? void 0 : r.itemTextContainer), children: [
|
|
45
|
+
/* @__PURE__ */ t.jsx(u, { as: "h4", className: o("desktop:desk-title-bold-s", r == null ? void 0 : r.headingBenefitItem), children: e }),
|
|
46
|
+
/* @__PURE__ */ t.jsx("p", { className: o("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", r == null ? void 0 : r.itemDescription), children: n })
|
|
47
|
+
] }),
|
|
48
|
+
i && l && m
|
|
49
|
+
] }),
|
|
50
|
+
(d || l) && x && /* @__PURE__ */ t.jsx("div", { className: o("flex w-full justify-end", r == null ? void 0 : r.imgWrapper), children: /* @__PURE__ */ t.jsx("img", { className: o("h-[246px] object-cover", r == null ? void 0 : r.img), src: x, alt: e }) })
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
x
|
|
54
|
+
);
|
|
55
|
+
}, O = b("grid gap-4", {
|
|
56
|
+
variants: {
|
|
57
|
+
intent: {
|
|
58
|
+
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
59
|
+
threeCards: "grid-cols-1 desktop:grid-cols-2",
|
|
60
|
+
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}), ht = ({ heading: n, cards: e, classes: x, intent: d }) => /* @__PURE__ */ t.jsx("section", { className: o("pb-20", x == null ? void 0 : x.section), children: /* @__PURE__ */ t.jsxs(k, { children: [
|
|
64
|
+
/* @__PURE__ */ t.jsx(u, { className: "mb-8", as: "h2", children: n }),
|
|
65
|
+
/* @__PURE__ */ t.jsx("ul", { className: o(O({ intent: d }), x == null ? void 0 : x.grid), children: e == null ? void 0 : e.map((r) => /* @__PURE__ */ t.jsx(D, { intent: d, classes: x, ...r }, r.img)) })
|
|
66
|
+
] }) }), A = (n) => {
|
|
67
|
+
switch (n.variant) {
|
|
68
|
+
case "withButton":
|
|
69
|
+
return /* @__PURE__ */ t.jsx(j, { intent: "secondary", size: "sm", ...n.buttonProps, children: "Оформить заявку" });
|
|
70
|
+
case "withPhone":
|
|
71
|
+
const { phone: e, phoneText: x } = n;
|
|
72
|
+
return /* @__PURE__ */ t.jsx(B, { phone: e, text: x, ...n.phoneProps });
|
|
73
|
+
default:
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
}, lt = (n) => {
|
|
77
|
+
const { logoPath: e = "/", logoType: x = "main", classes: d } = n;
|
|
78
|
+
return /* @__PURE__ */ t.jsx("header", { className: o("flex h-[72px] items-center justify-center bg-color-white", d == null ? void 0 : d.header), children: /* @__PURE__ */ t.jsx(k, { className: o(d == null ? void 0 : d.container), children: /* @__PURE__ */ t.jsxs("div", { className: o("flex items-center justify-between gap-5", d == null ? void 0 : d.wrapper), children: [
|
|
79
|
+
/* @__PURE__ */ t.jsx(
|
|
80
|
+
"a",
|
|
81
|
+
{
|
|
82
|
+
href: e,
|
|
83
|
+
"aria-label": "logo",
|
|
84
|
+
target: "_blank",
|
|
85
|
+
rel: "noreferrer",
|
|
86
|
+
className: o(
|
|
87
|
+
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
88
|
+
d == null ? void 0 : d.logo
|
|
89
|
+
),
|
|
90
|
+
children: M[x]
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
A(n)
|
|
94
|
+
] }) }) });
|
|
95
|
+
}, z = ({ buttonsConfig: n, classes: e, className: x }) => {
|
|
96
|
+
var r;
|
|
97
|
+
const d = (n == null ? void 0 : n.secondary) && n.secondary.children;
|
|
98
|
+
return /* @__PURE__ */ t.jsxs(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
"data-id": "banner-buttons-group",
|
|
102
|
+
className: o(
|
|
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": d },
|
|
105
|
+
e == null ? void 0 : e.group,
|
|
106
|
+
x
|
|
107
|
+
),
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ t.jsx(j, { intent: "primary", ...n.primary, isFull: !0, className: o("desktop:max-w-[216px]", e == null ? void 0 : e.primary), children: n.primary.children }),
|
|
110
|
+
d && /* @__PURE__ */ t.jsx(
|
|
111
|
+
j,
|
|
112
|
+
{
|
|
113
|
+
intent: "secondary",
|
|
114
|
+
...n == null ? void 0 : n.secondary,
|
|
115
|
+
isFull: !0,
|
|
116
|
+
className: o("desktop:max-w-[216px]", e == null ? void 0 : e.secondary),
|
|
117
|
+
children: (r = n == null ? void 0 : n.secondary) == null ? void 0 : r.children
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}, U = ({
|
|
124
|
+
headTitle: n,
|
|
125
|
+
subtitle: e,
|
|
126
|
+
buttonsConfig: x,
|
|
127
|
+
advantagesList: d,
|
|
128
|
+
classes: r,
|
|
129
|
+
img: i,
|
|
130
|
+
imgSets: p
|
|
131
|
+
}) => {
|
|
132
|
+
const { isDesktop: f, isMobile: h } = g(), l = /* @__PURE__ */ t.jsx(
|
|
133
|
+
"div",
|
|
134
|
+
{
|
|
135
|
+
"data-id": "banner-advantages",
|
|
136
|
+
className: o(
|
|
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
|
+
r == null ? void 0 : r.advantageContainer
|
|
139
|
+
),
|
|
140
|
+
children: d && (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ t.jsx(E, { classes: r, advantagesList: d })
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
144
|
+
/* @__PURE__ */ t.jsxs("section", { "data-id": "banner-section", className: o("relative h-[552px] desktop:h-[456px]", r == null ? void 0 : r.section), children: [
|
|
145
|
+
/* @__PURE__ */ t.jsx(
|
|
146
|
+
"div",
|
|
147
|
+
{
|
|
148
|
+
"data-id": "banner-img-wrapper",
|
|
149
|
+
className: "absolute bottom-0 left-0 right-0 top-0 z-[-1] mx-auto h-full max-w-[1920px] desktop:h-[456px]",
|
|
150
|
+
children: /* @__PURE__ */ t.jsxs("picture", { children: [
|
|
151
|
+
/* @__PURE__ */ t.jsx("source", { media: "(min-width: 1128px)", srcSet: p == null ? void 0 : p.large }),
|
|
152
|
+
/* @__PURE__ */ t.jsx("source", { media: "(max-width: 1127px)", srcSet: p == null ? void 0 : p.mob }),
|
|
153
|
+
/* @__PURE__ */ t.jsx(
|
|
154
|
+
"img",
|
|
155
|
+
{
|
|
156
|
+
"data-id": "banner-image",
|
|
157
|
+
src: i,
|
|
158
|
+
alt: "Картинка баннера",
|
|
159
|
+
className: o("h-full w-full object-cover object-center", r == null ? void 0 : r.image)
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
] })
|
|
163
|
+
}
|
|
164
|
+
),
|
|
165
|
+
/* @__PURE__ */ t.jsxs(k, { "data-id": "banner-container", className: o("h-full", r == null ? void 0 : r.container), children: [
|
|
166
|
+
/* @__PURE__ */ t.jsx("div", { "data-id": "banner", className: o("flex h-full", r == null ? void 0 : r.wrapper), children: /* @__PURE__ */ t.jsxs(
|
|
167
|
+
"div",
|
|
168
|
+
{
|
|
169
|
+
"data-id": "banner-text-block",
|
|
170
|
+
className: o("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", r == null ? void 0 : r.textBlock),
|
|
171
|
+
children: [
|
|
172
|
+
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
173
|
+
/* @__PURE__ */ t.jsx(u, { "data-id": "banner-title", as: "h1", className: o("text-color-white", r == null ? void 0 : r.title), children: n }),
|
|
174
|
+
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: o("desk-body-regular-l text-color-white", r == null ? void 0 : r.subtitle), children: e })
|
|
175
|
+
] }),
|
|
176
|
+
/* @__PURE__ */ t.jsx(
|
|
177
|
+
z,
|
|
178
|
+
{
|
|
179
|
+
className: "self-end desktop:self-center",
|
|
180
|
+
"data-id": "banner-buttons-group",
|
|
181
|
+
buttonsConfig: x,
|
|
182
|
+
classes: r
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
) }),
|
|
188
|
+
f && l
|
|
189
|
+
] })
|
|
190
|
+
] }),
|
|
191
|
+
h && l
|
|
192
|
+
] });
|
|
193
|
+
}, c = ({
|
|
194
|
+
headTitle: n,
|
|
195
|
+
subtitle: e,
|
|
196
|
+
buttonsConfig: x,
|
|
197
|
+
advantagesList: d,
|
|
198
|
+
classes: r,
|
|
199
|
+
img: i,
|
|
200
|
+
imgSets: p
|
|
201
|
+
}) => {
|
|
202
|
+
const { isDesktop: f, isMobile: h } = g(), l = /* @__PURE__ */ t.jsx(
|
|
203
|
+
"div",
|
|
204
|
+
{
|
|
205
|
+
"data-id": "banner-advantages",
|
|
206
|
+
className: o(
|
|
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
|
+
r == null ? void 0 : r.advantageContainer
|
|
209
|
+
),
|
|
210
|
+
children: d && (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ t.jsx(E, { classes: r, advantagesList: d })
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
214
|
+
/* @__PURE__ */ t.jsx("section", { "data-id": "banner-section", className: o("bg-banner-skyblue-300 desktop:h-[456px]", r == null ? void 0 : r.section), children: /* @__PURE__ */ t.jsxs(k, { "data-id": "banner-container", className: o("relative", r == null ? void 0 : r.container), children: [
|
|
215
|
+
/* @__PURE__ */ t.jsxs("div", { "data-id": "banner", className: o("flex flex-col desktop:flex-row desktop:justify-between", r == null ? void 0 : r.wrapper), children: [
|
|
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: o("flex flex-col gap-4 pt-6 desktop:pt-0", r == null ? void 0 : r.textBlock), children: [
|
|
218
|
+
/* @__PURE__ */ t.jsx(u, { "data-id": "banner-title", as: "h1", className: o("text-color-dark", r == null ? void 0 : r.title), children: n }),
|
|
219
|
+
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: o("desk-body-regular-l text-color-dark", r == null ? void 0 : r.subtitle), children: e })
|
|
220
|
+
] }),
|
|
221
|
+
/* @__PURE__ */ t.jsx(z, { buttonsConfig: x, classes: r })
|
|
222
|
+
] }),
|
|
223
|
+
/* @__PURE__ */ t.jsx(
|
|
224
|
+
"div",
|
|
225
|
+
{
|
|
226
|
+
"data-id": "banner-image-wrapper",
|
|
227
|
+
className: o("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", r == null ? void 0 : r.imageContainer),
|
|
228
|
+
children: /* @__PURE__ */ t.jsxs("picture", { children: [
|
|
229
|
+
/* @__PURE__ */ t.jsx("source", { media: "(min-width: 1128px)", srcSet: p == null ? void 0 : p.large }),
|
|
230
|
+
/* @__PURE__ */ t.jsx("source", { media: "(max-width: 1127px)", srcSet: p == null ? void 0 : p.mob }),
|
|
231
|
+
/* @__PURE__ */ t.jsx(
|
|
232
|
+
"img",
|
|
233
|
+
{
|
|
234
|
+
"data-id": "banner-image",
|
|
235
|
+
src: i,
|
|
236
|
+
alt: "Картинка баннера",
|
|
237
|
+
className: o("h-full object-cover", r == null ? void 0 : r.image)
|
|
238
|
+
}
|
|
239
|
+
)
|
|
240
|
+
] })
|
|
241
|
+
}
|
|
242
|
+
)
|
|
243
|
+
] }),
|
|
244
|
+
f && l
|
|
245
|
+
] }) }),
|
|
246
|
+
h && l
|
|
247
|
+
] });
|
|
248
|
+
}, at = ({ bannerVariant: n, ...e }) => {
|
|
249
|
+
switch (n) {
|
|
250
|
+
case "separateImg":
|
|
251
|
+
return /* @__PURE__ */ t.jsx(c, { ...e });
|
|
252
|
+
case "fullImg":
|
|
253
|
+
return /* @__PURE__ */ t.jsx(U, { ...e });
|
|
254
|
+
default:
|
|
255
|
+
return /* @__PURE__ */ t.jsx(c, { ...e });
|
|
256
|
+
}
|
|
257
|
+
}, E = ({ advantagesList: n, classes: e }) => /* @__PURE__ */ t.jsx(
|
|
258
|
+
"div",
|
|
259
|
+
{
|
|
260
|
+
className: o(
|
|
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
|
+
e == null ? void 0 : e.advantageWrapper
|
|
263
|
+
),
|
|
264
|
+
children: n == null ? void 0 : n.map(({ title: x, description: d }) => /* @__PURE__ */ t.jsxs(
|
|
265
|
+
"div",
|
|
266
|
+
{
|
|
267
|
+
className: o(
|
|
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
|
+
e == null ? void 0 : e.advantageItem
|
|
270
|
+
),
|
|
271
|
+
children: [
|
|
272
|
+
/* @__PURE__ */ t.jsx(u, { as: "h4", className: o("text-color-dark", e == null ? void 0 : e.advantageTitle), children: x }),
|
|
273
|
+
/* @__PURE__ */ t.jsx("p", { className: o("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.advantageDescription), children: d })
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
x
|
|
277
|
+
))
|
|
278
|
+
}
|
|
279
|
+
), G = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
280
|
+
"© 2004-2024, ПАО «Совкомбанк». Все права защищены. ",
|
|
281
|
+
/* @__PURE__ */ t.jsx("br", { className: "mobile:hidden" }),
|
|
282
|
+
" Генеральная лицензия Банка России №963 от 5 декабря 2014 г."
|
|
283
|
+
] }), Z = [
|
|
284
|
+
{ phone: "8 800 100-00-06", text: "Звонок по России (бесплатно)" },
|
|
285
|
+
{ phone: "+7 (495) 988 00 00", text: "Для звонков из-за рубежа (платно)" }
|
|
286
|
+
], S = [
|
|
287
|
+
{ iconName: "social/vk", href: "https://vk.com/sovcombank" },
|
|
288
|
+
{ iconName: "social/telegram", href: "https://t.me/sovcombankofficial" },
|
|
289
|
+
{ iconName: "social/classmates", href: "https://ok.ru/paosovcombank" }
|
|
290
|
+
], $ = [
|
|
291
|
+
{
|
|
292
|
+
groupLabel: "Совкомбанк",
|
|
293
|
+
links: [
|
|
294
|
+
{ text: "О банке", href: "/" },
|
|
295
|
+
{ text: "Реквизиты и лицензии", href: "/" },
|
|
296
|
+
{ text: "Пресс-центр", href: "/" },
|
|
297
|
+
{ text: "Удостоверяющий центр ПАО «Совкомбанк»", href: "/" },
|
|
298
|
+
{ text: "Работа у нас", href: "/" },
|
|
299
|
+
{ text: "Контакты", href: "/" },
|
|
300
|
+
{ text: "Раскрытие информации", href: "/" },
|
|
301
|
+
{ text: "Страница раскрытия информации в Интерфакс", href: "/" },
|
|
302
|
+
{ text: "Реализация залогового имущества", href: "/" },
|
|
303
|
+
{ text: "Клиентам и партнерам", href: "/" },
|
|
304
|
+
{ text: "Биометрия", href: "/" },
|
|
305
|
+
{ text: "Стандарты безопасности", href: "/" },
|
|
306
|
+
{ text: "Информация о процентных ставках по договорам банковского вклада с физическими лицами", href: "/" },
|
|
307
|
+
{ text: "ООО «Совком Финанс»", href: "/" },
|
|
308
|
+
{ text: "Безопасность", href: "/" }
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
groupLabel: "Сервисы",
|
|
313
|
+
links: [
|
|
314
|
+
{ text: "Подарочная карта «Халва»", href: "/" },
|
|
315
|
+
{ text: "Страховые продукты", href: "/" },
|
|
316
|
+
{ text: "МультиЮрист", href: "/" },
|
|
317
|
+
{ text: "Единая социальная карта «Уралочка»", href: "/" },
|
|
318
|
+
{ text: "Единая Карта Жителя Мурманской области", href: "/" },
|
|
319
|
+
{ text: "Безопасные расчёты", href: "/" },
|
|
320
|
+
{ text: "Улучшение кредитной истории", href: "/" },
|
|
321
|
+
{ text: "Дистанционные сервисы Совкомбанка", href: "/" },
|
|
322
|
+
{ text: "Программы реструктуризации долга", href: "/" }
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
groupLabel: "Услуги банка",
|
|
327
|
+
links: [
|
|
328
|
+
{ text: "Карты", href: "/" },
|
|
329
|
+
{ text: "Кредиты", href: "/" },
|
|
330
|
+
{ text: "Кредиты наличными", href: "/" },
|
|
331
|
+
{ text: "Ипотека", href: "/" },
|
|
332
|
+
{ text: "Автокредиты", href: "/" },
|
|
333
|
+
{ text: "Кредитный калькулятор", href: "/" },
|
|
334
|
+
{ text: "Вклады", href: "/" },
|
|
335
|
+
{ text: "Инвестиции", href: "/" },
|
|
336
|
+
{ text: "Платежи", href: "/" },
|
|
337
|
+
{ text: "Сервисы", href: "/" },
|
|
338
|
+
{ text: "Малому бизнесу и ИП", href: "/" },
|
|
339
|
+
{ text: "Корпоративным клиентам", href: "/" },
|
|
340
|
+
{ text: "CIB", href: "/" },
|
|
341
|
+
{ text: "Драгоценные металлы в слитках", href: "/" },
|
|
342
|
+
{ text: "Счета в драгоценных металлах", href: "/" }
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
groupLabel: "Клиентам других банков",
|
|
347
|
+
links: [
|
|
348
|
+
{ text: "Держателям карт рассрочки Банка Хоум Кредит", href: "/" },
|
|
349
|
+
{ text: "ПАО КБ «Восточный»", href: "/" },
|
|
350
|
+
{ text: "Держателям карт «Совесть»", href: "/" },
|
|
351
|
+
{ text: "АО «Нордеа Банк»", href: "/" },
|
|
352
|
+
{ text: "ЗАО «ДжиИ Мани банк»", href: "/" },
|
|
353
|
+
{ text: "АО «Меткомбанк»", href: "/" },
|
|
354
|
+
{ text: "АКБ «РосЕвроБанк» (АО)", href: "/" },
|
|
355
|
+
{ text: "ПАО «Татфондбанк»", href: "/" },
|
|
356
|
+
{ text: "АО АКБ «Экспресс-Волга»", href: "/" },
|
|
357
|
+
{ text: "АО «ВКАБАНК»", href: "/" },
|
|
358
|
+
{ text: "ООО «ОНЕЙ БАНК»", href: "/" },
|
|
359
|
+
{ text: "АО «Евразийский»", href: "/" },
|
|
360
|
+
{ text: "АО «НФК»", href: "/" },
|
|
361
|
+
{ text: "ООО «РТС-Капитал»", href: "/" },
|
|
362
|
+
{ text: "ООО «ИК Септем Капитал»", href: "/" },
|
|
363
|
+
{ text: "Помощь", href: "/" },
|
|
364
|
+
{ text: "Офисы и банкоматы", href: "/" }
|
|
365
|
+
]
|
|
366
|
+
}
|
|
367
|
+
], q = ({ socialsLinks: n, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: o("mt-4 flex items-center gap-2 desktop:mt-6", e == null ? void 0 : e.socialRoot), children: n == null ? void 0 : n.map(({ iconName: x, href: d }) => /* @__PURE__ */ t.jsx(
|
|
368
|
+
"a",
|
|
369
|
+
{
|
|
370
|
+
className: o("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
371
|
+
href: d,
|
|
372
|
+
"aria-label": x.replace("social/", ""),
|
|
373
|
+
children: /* @__PURE__ */ t.jsx(a, { name: x, className: o("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
374
|
+
},
|
|
375
|
+
d
|
|
376
|
+
)) }), J = ({ phones: n, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: o("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: n == null ? void 0 : n.map(({ phone: x, text: d }) => /* @__PURE__ */ t.jsx(
|
|
377
|
+
B,
|
|
378
|
+
{
|
|
379
|
+
phone: x,
|
|
380
|
+
text: d,
|
|
381
|
+
classes: {
|
|
382
|
+
wrapper: o(e == null ? void 0 : e.phoneWrapper),
|
|
383
|
+
text: o("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
384
|
+
link: o("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
x
|
|
388
|
+
)) }), K = ({ navigationLinks: n, classes: e }) => /* @__PURE__ */ t.jsx(
|
|
389
|
+
"div",
|
|
390
|
+
{
|
|
391
|
+
className: o(
|
|
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
|
+
e == null ? void 0 : e.navRoot
|
|
394
|
+
),
|
|
395
|
+
children: n == null ? void 0 : n.map(({ groupLabel: x, links: d }) => /* @__PURE__ */ t.jsxs("div", { className: o("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
|
|
396
|
+
/* @__PURE__ */ t.jsx("div", { className: o("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: x }),
|
|
397
|
+
/* @__PURE__ */ t.jsx("div", { className: o("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: d == null ? void 0 : d.map(({ text: r, href: i }) => /* @__PURE__ */ t.jsx(
|
|
398
|
+
y,
|
|
399
|
+
{
|
|
400
|
+
href: i,
|
|
401
|
+
"aria-label": r,
|
|
402
|
+
intent: "white",
|
|
403
|
+
classes: {
|
|
404
|
+
link: e == null ? void 0 : e.navLink,
|
|
405
|
+
icon: e == null ? void 0 : e.navLinkIcon
|
|
406
|
+
},
|
|
407
|
+
children: r
|
|
408
|
+
},
|
|
409
|
+
r
|
|
410
|
+
)) })
|
|
411
|
+
] }, x))
|
|
412
|
+
}
|
|
413
|
+
), Q = ({ text: n, classes: e, withSiteMap: x }) => /* @__PURE__ */ t.jsx("div", { className: o("desk-body-regular-m text-color-footer", { "mt-6 desktop:mt-8": !x }, e == null ? void 0 : e.copyRight), children: n }), X = ({ classes: n }) => /* @__PURE__ */ t.jsx(
|
|
414
|
+
"a",
|
|
415
|
+
{
|
|
416
|
+
"aria-label": "logo",
|
|
417
|
+
href: "https://sovcombank.ru/",
|
|
418
|
+
className: o("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", n == null ? void 0 : n.footerLogo),
|
|
419
|
+
children: /* @__PURE__ */ t.jsx(a, { name: "brandLogos/logoWhite", className: o("size-full", n == null ? void 0 : n.footerLogoIcon) })
|
|
420
|
+
}
|
|
421
|
+
), Y = ({ classes: n }) => /* @__PURE__ */ t.jsx(
|
|
422
|
+
y,
|
|
423
|
+
{
|
|
424
|
+
intent: "white",
|
|
425
|
+
href: "https://sovcombank.ru/site-map",
|
|
426
|
+
target: "_blank",
|
|
427
|
+
"aria-label": "site-map",
|
|
428
|
+
rel: "noreferrer",
|
|
429
|
+
classes: {
|
|
430
|
+
link: o("mobile:mt-6", n == null ? void 0 : n.siteMapLink),
|
|
431
|
+
icon: n == null ? void 0 : n.siteMapLinkIcon
|
|
432
|
+
},
|
|
433
|
+
children: "Карта сайта"
|
|
434
|
+
}
|
|
435
|
+
), ut = ({
|
|
436
|
+
renderBlocks: { withSocial: n = !0, withPhones: e = !0, withNavLinks: x = !0, withCopyright: d = !0, withSiteMap: r = !0 } = {},
|
|
437
|
+
socialsLinks: i = S,
|
|
438
|
+
phones: p = Z,
|
|
439
|
+
navigationLinks: f = $,
|
|
440
|
+
ligal: h,
|
|
441
|
+
copyright: l = G,
|
|
442
|
+
classes: m
|
|
443
|
+
}) => /* @__PURE__ */ t.jsx("footer", { className: o("w-full bg-color-footer py-8 desktop:py-10", m == null ? void 0 : m.root), children: /* @__PURE__ */ t.jsx(k, { className: o(m == null ? void 0 : m.footerContainer), children: /* @__PURE__ */ t.jsxs("div", { className: o("mobile:pb-[176px]", m == null ? void 0 : m.footerWrapper), children: [
|
|
444
|
+
/* @__PURE__ */ t.jsxs(
|
|
445
|
+
"div",
|
|
446
|
+
{
|
|
447
|
+
className: o(
|
|
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
|
+
m == null ? void 0 : m.footerHead
|
|
450
|
+
),
|
|
451
|
+
children: [
|
|
452
|
+
/* @__PURE__ */ t.jsxs("div", { className: o(m == null ? void 0 : m.footerSocialBlock), children: [
|
|
453
|
+
/* @__PURE__ */ t.jsx(X, { classes: m }),
|
|
454
|
+
n && /* @__PURE__ */ t.jsx(q, { socialsLinks: i, classes: m })
|
|
455
|
+
] }),
|
|
456
|
+
e && /* @__PURE__ */ t.jsx(J, { phones: p, classes: m })
|
|
457
|
+
]
|
|
458
|
+
}
|
|
459
|
+
),
|
|
460
|
+
x && /* @__PURE__ */ t.jsx(K, { navigationLinks: f, classes: m }),
|
|
461
|
+
h && h,
|
|
462
|
+
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col-reverse items-start justify-between gap-4 desktop:flex-row desktop:gap-6", children: [
|
|
463
|
+
d && /* @__PURE__ */ t.jsx(Q, { text: l, classes: m, withSiteMap: r }),
|
|
464
|
+
r && /* @__PURE__ */ t.jsx(Y, { classes: m })
|
|
465
|
+
] })
|
|
466
|
+
] }) }) }), L = ({ title: n, description: e, index: x, classes: d }) => /* @__PURE__ */ t.jsxs(
|
|
467
|
+
"div",
|
|
468
|
+
{
|
|
469
|
+
className: o(
|
|
470
|
+
"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
|
+
d == null ? void 0 : d.singleStep
|
|
472
|
+
),
|
|
473
|
+
children: [
|
|
474
|
+
/* @__PURE__ */ t.jsx(
|
|
475
|
+
"div",
|
|
476
|
+
{
|
|
477
|
+
className: o(
|
|
478
|
+
"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
|
+
d == null ? void 0 : d.numeric
|
|
480
|
+
),
|
|
481
|
+
children: x
|
|
482
|
+
}
|
|
483
|
+
),
|
|
484
|
+
/* @__PURE__ */ t.jsxs("div", { className: o("flex flex-col gap-4", d == null ? void 0 : d.textBlock), children: [
|
|
485
|
+
/* @__PURE__ */ t.jsx(u, { as: "h4", className: o("text-color-dark", d == null ? void 0 : d.title), children: n }),
|
|
486
|
+
/* @__PURE__ */ t.jsx("p", { className: o("desk-body-regular-l text-color-tetriary", d == null ? void 0 : d.description), children: e })
|
|
487
|
+
] })
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
), kt = ({ heading: n, stepsList: e, classes: x }) => /* @__PURE__ */ t.jsx(F, { children: /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsxs("div", { className: o("flex flex-col gap-12 desktop:items-start", x == null ? void 0 : x.root), children: [
|
|
491
|
+
/* @__PURE__ */ t.jsx(u, { as: "h2", className: o("text-color-dark", x == null ? void 0 : x.headline), children: n }),
|
|
492
|
+
/* @__PURE__ */ t.jsx(
|
|
493
|
+
"div",
|
|
494
|
+
{
|
|
495
|
+
className: o(
|
|
496
|
+
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-center desktop:gap-12",
|
|
497
|
+
x == null ? void 0 : x.stepsWrapper
|
|
498
|
+
),
|
|
499
|
+
children: e == null ? void 0 : e.map((d, r) => /* @__PURE__ */ t.jsx(L, { index: r + 1, ...d, classes: x }, d.title))
|
|
500
|
+
}
|
|
501
|
+
)
|
|
502
|
+
] }) }) }), s = b("", {
|
|
503
|
+
variants: {
|
|
504
|
+
intent: {
|
|
505
|
+
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
506
|
+
fourItems: "mob-title-bold-l desktop:desk-title-bold-l mb-8"
|
|
507
|
+
},
|
|
508
|
+
desktopHidden: {
|
|
509
|
+
true: "desktop:hidden"
|
|
510
|
+
},
|
|
511
|
+
mobileHidden: {
|
|
512
|
+
true: "mobile:hidden"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
defaultVariants: {
|
|
516
|
+
intent: "twoItems"
|
|
517
|
+
}
|
|
518
|
+
}), tt = b("desktop:max-h-[98px]", {
|
|
519
|
+
variants: {
|
|
520
|
+
intent: {
|
|
521
|
+
twoItems: "",
|
|
522
|
+
fourItems: ""
|
|
523
|
+
},
|
|
524
|
+
withButton: {
|
|
525
|
+
true: ""
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
compoundVariants: [
|
|
529
|
+
{
|
|
530
|
+
intent: "twoItems",
|
|
531
|
+
withButton: !0,
|
|
532
|
+
class: "mb-8 desktop:flex"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
intent: "twoItems",
|
|
536
|
+
withButton: !1,
|
|
537
|
+
class: "desktop:flex"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
intent: "fourItems",
|
|
541
|
+
withButton: !0,
|
|
542
|
+
class: "desktop:grid grid-rows-2 mb-8 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
intent: "fourItems",
|
|
546
|
+
withButton: !1,
|
|
547
|
+
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
548
|
+
}
|
|
549
|
+
]
|
|
550
|
+
}), et = b("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
551
|
+
variants: {
|
|
552
|
+
intent: {
|
|
553
|
+
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',
|
|
554
|
+
fourItems: " mobile:last:border-none desktop:w-[264px] desktop:odd:border-b desktop:pb-0 desktop:odd:pb-3"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
defaultVariants: {
|
|
558
|
+
intent: "twoItems"
|
|
559
|
+
}
|
|
560
|
+
}), rt = b("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
561
|
+
variants: {
|
|
562
|
+
intent: {
|
|
563
|
+
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
564
|
+
fourItems: " "
|
|
565
|
+
},
|
|
566
|
+
withButton: {
|
|
567
|
+
true: !0,
|
|
568
|
+
false: !1
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
defaultVariants: {
|
|
572
|
+
intent: "twoItems"
|
|
573
|
+
},
|
|
574
|
+
compoundVariants: [
|
|
575
|
+
{
|
|
576
|
+
intent: "fourItems",
|
|
577
|
+
withButton: !0,
|
|
578
|
+
class: "desktop:h-[360px] desktop:w-[500px]"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
intent: "fourItems",
|
|
582
|
+
withButton: !1,
|
|
583
|
+
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
584
|
+
}
|
|
585
|
+
]
|
|
586
|
+
}), ot = ({ data: n, intent: e }) => {
|
|
587
|
+
const { title: x, description: d, popoverText: r } = n;
|
|
588
|
+
return /* @__PURE__ */ t.jsx("li", { className: o(et({ intent: e })), children: /* @__PURE__ */ t.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
589
|
+
/* @__PURE__ */ t.jsxs("div", { className: o("mb-2 flex items-center gap-2"), children: [
|
|
590
|
+
/* @__PURE__ */ t.jsx("h4", { className: o("mob-title-bold-m text-color-dark"), children: x }),
|
|
591
|
+
r && /* @__PURE__ */ t.jsx(W, { triggerElement: /* @__PURE__ */ t.jsx(a, { className: o("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: r })
|
|
592
|
+
] }),
|
|
593
|
+
/* @__PURE__ */ t.jsx("p", { className: o("mob-body-regular-l text-color-secondary"), children: d })
|
|
594
|
+
] }) });
|
|
595
|
+
}, w = ({ intent: n, title: e, desktopHidden: x = !1, mobileHidden: d = !1 }) => /* @__PURE__ */ t.jsx("h2", { className: o(s({ intent: n, desktopHidden: x, mobileHidden: d })), children: e }), nt = ({ textContent: n, intent: e, withButton: x }) => /* @__PURE__ */ t.jsx("ul", { className: o(tt({ intent: e, withButton: x })), children: n == null ? void 0 : n.map((d, r) => /* @__PURE__ */ t.jsx(ot, { intent: e, data: d }, r)) }), bt = ({
|
|
596
|
+
title: n,
|
|
597
|
+
buttonConfig: e,
|
|
598
|
+
intent: x = "twoItems",
|
|
599
|
+
textContent: d,
|
|
600
|
+
imageComponent: r,
|
|
601
|
+
classes: i
|
|
602
|
+
}) => {
|
|
603
|
+
const p = !!e, f = x === "fourItems", h = x === "twoItems";
|
|
604
|
+
return /* @__PURE__ */ t.jsx("section", { className: o(i == null ? void 0 : i.section), children: /* @__PURE__ */ t.jsxs(k, { className: o(i == null ? void 0 : i.mainContainer), children: [
|
|
605
|
+
h && /* @__PURE__ */ t.jsx(w, { intent: x, title: n }),
|
|
606
|
+
/* @__PURE__ */ t.jsxs(
|
|
607
|
+
"div",
|
|
608
|
+
{
|
|
609
|
+
className: o(
|
|
610
|
+
"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
|
+
i == null ? void 0 : i.contentContainer
|
|
612
|
+
),
|
|
613
|
+
children: [
|
|
614
|
+
f && /* @__PURE__ */ t.jsx(w, { intent: x, title: n, desktopHidden: !0 }),
|
|
615
|
+
/* @__PURE__ */ t.jsx("div", { className: o(rt({ intent: x, withButton: p }), i == null ? void 0 : i.imgContainer), children: r }),
|
|
616
|
+
/* @__PURE__ */ t.jsxs(
|
|
617
|
+
"div",
|
|
618
|
+
{
|
|
619
|
+
className: o("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", i == null ? void 0 : i.textWithBtnContainer),
|
|
620
|
+
children: [
|
|
621
|
+
f && /* @__PURE__ */ t.jsx(w, { intent: x, title: n, mobileHidden: !0 }),
|
|
622
|
+
/* @__PURE__ */ t.jsx(nt, { textContent: d, intent: x, withButton: p }),
|
|
623
|
+
p && /* @__PURE__ */ t.jsx(
|
|
624
|
+
j,
|
|
625
|
+
{
|
|
626
|
+
className: o("w-full px-4 desktop:w-max", i == null ? void 0 : i.button),
|
|
627
|
+
size: "lg",
|
|
628
|
+
onClick: e.onClick,
|
|
629
|
+
intent: "secondary",
|
|
630
|
+
children: e.text
|
|
631
|
+
}
|
|
632
|
+
)
|
|
633
|
+
]
|
|
634
|
+
}
|
|
635
|
+
)
|
|
636
|
+
]
|
|
637
|
+
}
|
|
638
|
+
)
|
|
639
|
+
] }) });
|
|
640
|
+
}, jt = () => /* @__PURE__ */ t.jsx("div", { className: o(""), children: "hello" }), N = {
|
|
641
|
+
ESIA: "esia",
|
|
642
|
+
MOBILE_ID: "mobileId",
|
|
643
|
+
COMBINE: "combine"
|
|
644
|
+
}, _ = ({ children: n, isLoading: e, classes: x, loaderProps: d }) => /* @__PURE__ */ t.jsx(
|
|
645
|
+
"div",
|
|
646
|
+
{
|
|
647
|
+
tabIndex: 0,
|
|
648
|
+
className: o(
|
|
649
|
+
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
650
|
+
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
651
|
+
x == null ? void 0 : x.root
|
|
652
|
+
),
|
|
653
|
+
children: /* @__PURE__ */ t.jsx(
|
|
654
|
+
"div",
|
|
655
|
+
{
|
|
656
|
+
className: o(
|
|
657
|
+
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
658
|
+
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
659
|
+
{ "items-center": e },
|
|
660
|
+
x == null ? void 0 : x.wrapper
|
|
661
|
+
),
|
|
662
|
+
children: e ? /* @__PURE__ */ t.jsx(P, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...d }) : n
|
|
663
|
+
}
|
|
664
|
+
)
|
|
665
|
+
}
|
|
666
|
+
), dt = ({ ...n }) => /* @__PURE__ */ t.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n, children: [
|
|
667
|
+
/* @__PURE__ */ t.jsx(
|
|
668
|
+
"path",
|
|
669
|
+
{
|
|
670
|
+
d: "M30.3986 10.6149C30.2728 8.96576 29.014 6.85155 27.7553 5.83672C26.3398 4.79816 24.8691 3.83828 23.3497 2.96139C21.8418 2.06068 20.2871 1.24201 18.6923 0.508895C17.8404 0.15868 16.927 -0.0139306 16.007 0.00148264C15.0868 -0.0180029 14.1725 0.154761 13.3217 0.508895C11.7272 1.24253 10.1725 2.06119 8.66438 2.96139C6.23081 4.44134 4.25878 5.83672 4.25878 5.83672C3.22329 6.71008 2.43892 7.83418 1.97146 9.09195C1.87834 9.34251 2.07032 9.59987 2.33762 9.59987H4.2568C4.55401 9.59987 4.82321 9.43281 4.98085 9.18085C5.33539 8.61417 5.77902 8.10202 6.29948 7.66607C6.29948 7.66607 7.92774 6.52186 9.93709 5.3083C11.1823 4.57013 12.466 3.89884 13.7826 3.29725C14.485 3.00687 15.2399 2.8652 15.9998 2.88118C16.7593 2.86854 17.5136 3.01008 18.217 3.29725C19.5337 3.89841 20.8174 4.56972 22.0624 5.3083C23.317 6.02735 24.5313 6.81445 25.7 7.66607C26.7394 8.49823 27.7787 10.2319 27.8826 11.5841C27.8826 11.5841 28.1251 13.5952 28.1598 15.9772C28.1576 17.4483 28.0767 18.9183 27.9173 20.3807C27.6755 21.912 26.8879 23.3038 25.7 24.2988C25.7 24.2988 24.0718 25.4777 22.0624 26.6912C20.8172 27.4294 19.5335 28.1007 18.217 28.7023C17.5145 28.9927 16.7596 29.1343 15.9998 29.1184C15.2409 29.1343 14.4867 28.9963 13.7826 28.7127C12.4658 28.1115 11.1821 27.4402 9.93709 26.7016C7.92774 25.5228 6.29948 24.3092 6.29948 24.3092C5.84515 23.9454 5.39081 23.4094 5.01172 22.8082C4.85581 22.561 4.5896 22.3997 4.2973 22.3997H2.34718C2.07645 22.3997 1.88475 22.6629 1.98611 22.914C2.49249 24.168 3.37564 25.4212 4.25878 26.1332C4.25878 26.1332 6.23081 27.6132 8.66438 29.0508C10.1723 29.9515 11.7269 30.7702 13.3217 31.5033C14.1745 31.8492 15.088 32.0175 16.007 31.998C16.9273 32.0175 17.8416 31.8448 18.6923 31.4906C20.2869 30.757 21.8415 29.9383 23.3497 29.0381C25.7833 27.5582 27.7553 26.1205 27.7553 26.1205C29.1939 24.9072 30.1478 23.2098 30.4406 21.3424C30.6337 19.5589 30.7317 17.7663 30.7343 15.9723C30.6923 13.0673 30.3986 10.6149 30.3986 10.6149Z",
|
|
671
|
+
fill: "url(#paint0_linear_6493_452)"
|
|
672
|
+
}
|
|
673
|
+
),
|
|
674
|
+
/* @__PURE__ */ t.jsx(
|
|
675
|
+
"path",
|
|
676
|
+
{
|
|
677
|
+
d: "M1.27985 12.4821C1.27985 12.1286 1.56638 11.8421 1.91985 11.8421H11.8398C12.1933 11.8421 12.4798 12.1286 12.4798 12.4821V14.4021C12.4798 14.7555 12.1933 15.0421 11.8398 15.0421H1.27985V12.4821Z",
|
|
678
|
+
fill: "#0066B3"
|
|
679
|
+
}
|
|
680
|
+
),
|
|
681
|
+
/* @__PURE__ */ t.jsx(
|
|
682
|
+
"path",
|
|
683
|
+
{
|
|
684
|
+
d: "M1.27985 16.9618H21.4398C21.7933 16.9618 22.0798 17.2484 22.0798 17.6018V19.5218C22.0798 19.8752 21.7933 20.1618 21.4398 20.1618H1.91985C1.56638 20.1618 1.27985 19.8752 1.27985 19.5218V16.9618Z",
|
|
685
|
+
fill: "#EE2F53"
|
|
686
|
+
}
|
|
687
|
+
),
|
|
688
|
+
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsxs("linearGradient", { id: "paint0_linear_6493_452", x1: "16.0071", y1: "0", x2: "16.0071", y2: "31.9996", gradientUnits: "userSpaceOnUse", children: [
|
|
689
|
+
/* @__PURE__ */ t.jsx("stop", { stopColor: "#0066B3" }),
|
|
690
|
+
/* @__PURE__ */ t.jsx("stop", { offset: "0.354167", stopColor: "#0066B3" }),
|
|
691
|
+
/* @__PURE__ */ t.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
692
|
+
/* @__PURE__ */ t.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
693
|
+
] }) })
|
|
694
|
+
] }), H = ({ mainLink: n, subLink: e, isMobile: x, classes: d }) => /* @__PURE__ */ t.jsxs("div", { className: o("flex flex-col", d == null ? void 0 : d.linksWrapper), children: [
|
|
695
|
+
/* @__PURE__ */ t.jsx(
|
|
696
|
+
"a",
|
|
697
|
+
{
|
|
698
|
+
href: n.href,
|
|
699
|
+
target: "_blank",
|
|
700
|
+
rel: "noreferrer",
|
|
701
|
+
className: o(
|
|
702
|
+
'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
|
+
d == null ? void 0 : d.linksMainLink
|
|
704
|
+
),
|
|
705
|
+
children: x ? n.mobileTitle : n.title
|
|
706
|
+
}
|
|
707
|
+
),
|
|
708
|
+
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ t.jsx(
|
|
709
|
+
y,
|
|
710
|
+
{
|
|
711
|
+
intent: "blue",
|
|
712
|
+
withUnderline: !0,
|
|
713
|
+
href: e == null ? void 0 : e.href,
|
|
714
|
+
target: "_blank",
|
|
715
|
+
rel: "noreferrer",
|
|
716
|
+
classes: {
|
|
717
|
+
link: o("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", d == null ? void 0 : d.linksSubLink)
|
|
718
|
+
},
|
|
719
|
+
children: e == null ? void 0 : e.text
|
|
720
|
+
}
|
|
721
|
+
)
|
|
722
|
+
] }), C = ({ mainLink: n, subLink: e, isLoading: x, badge: d, loaderProps: r, classes: i }) => {
|
|
723
|
+
const { isMobile: p } = g();
|
|
724
|
+
return /* @__PURE__ */ t.jsx(_, { isLoading: x, loaderProps: r, classes: i, children: /* @__PURE__ */ t.jsxs(
|
|
725
|
+
"div",
|
|
726
|
+
{
|
|
727
|
+
className: o(
|
|
728
|
+
"flex flex-1 items-center justify-between gap-1",
|
|
729
|
+
{ "justify-center": !d && p },
|
|
730
|
+
i == null ? void 0 : i.innerWrapper
|
|
731
|
+
),
|
|
732
|
+
children: [
|
|
733
|
+
/* @__PURE__ */ t.jsxs("div", { className: o("flex items-center gap-1 desktop:gap-4", i == null ? void 0 : i.textContent), children: [
|
|
734
|
+
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
735
|
+
/* @__PURE__ */ t.jsx(a, { name: "logos/mts", className: o("relative z-[9] size-7 desktop:size-8", i == null ? void 0 : i.mtsLogo) }),
|
|
736
|
+
/* @__PURE__ */ t.jsx(a, { name: "logos/megafon", className: o("relative z-[8] -ml-4 size-7 desktop:size-8", i == null ? void 0 : i.megafonLogo) }),
|
|
737
|
+
/* @__PURE__ */ t.jsx(a, { name: "logos/beeline", className: o("relative z-[7] -ml-4 size-7 desktop:size-8", i == null ? void 0 : i.beelineLogo) })
|
|
738
|
+
] }),
|
|
739
|
+
/* @__PURE__ */ t.jsx(H, { mainLink: n, subLink: e, isMobile: p, classes: i }),
|
|
740
|
+
/* @__PURE__ */ t.jsx(a, { name: "arrows/arrowRight", className: o("mobile:hidden", i == null ? void 0 : i.arrowIcon) })
|
|
741
|
+
] }),
|
|
742
|
+
d && /* @__PURE__ */ t.jsx(v, { className: o("bg-color-positive", i == null ? void 0 : i.badge), children: d })
|
|
743
|
+
]
|
|
744
|
+
}
|
|
745
|
+
) });
|
|
746
|
+
}, I = ({ mainLink: n, subLink: e, isLoading: x, badge: d, loaderProps: r, classes: i }) => {
|
|
747
|
+
const { isMobile: p } = g();
|
|
748
|
+
return /* @__PURE__ */ t.jsx(_, { isLoading: x, loaderProps: r, classes: i, children: /* @__PURE__ */ t.jsxs(
|
|
749
|
+
"div",
|
|
750
|
+
{
|
|
751
|
+
className: o(
|
|
752
|
+
"flex flex-1 items-center justify-between gap-1",
|
|
753
|
+
{ "justify-center": !d && p },
|
|
754
|
+
i == null ? void 0 : i.innerWrapper
|
|
755
|
+
),
|
|
756
|
+
children: [
|
|
757
|
+
/* @__PURE__ */ t.jsxs("div", { className: o("flex items-center gap-1 desktop:gap-4", i == null ? void 0 : i.textContent), children: [
|
|
758
|
+
/* @__PURE__ */ t.jsx(dt, { className: o("size-7 desktop:size-8", i == null ? void 0 : i.esiaLogo) }),
|
|
759
|
+
/* @__PURE__ */ t.jsx(H, { mainLink: n, subLink: e, isMobile: p, classes: i }),
|
|
760
|
+
/* @__PURE__ */ t.jsx(a, { name: "arrows/arrowRight", className: o("mobile:hidden", i == null ? void 0 : i.arrowIcon) })
|
|
761
|
+
] }),
|
|
762
|
+
d && /* @__PURE__ */ t.jsx(v, { className: o("bg-color-positive", i == null ? void 0 : i.badge), children: d })
|
|
763
|
+
]
|
|
764
|
+
}
|
|
765
|
+
) });
|
|
766
|
+
}, it = (n) => {
|
|
767
|
+
switch (n.mode) {
|
|
768
|
+
case N.ESIA:
|
|
769
|
+
return /* @__PURE__ */ t.jsx(I, { ...n });
|
|
770
|
+
case N.MOBILE_ID:
|
|
771
|
+
return /* @__PURE__ */ t.jsx(C, { ...n });
|
|
772
|
+
case N.COMBINE:
|
|
773
|
+
default:
|
|
774
|
+
const { esiaConfig: e, mobileIdConfig: x, subtitle: d, badge: r, classes: i } = n, p = !d && !r ? R.Fragment : "div";
|
|
775
|
+
return /* @__PURE__ */ t.jsxs(
|
|
776
|
+
"div",
|
|
777
|
+
{
|
|
778
|
+
className: o(
|
|
779
|
+
"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
|
+
i == null ? void 0 : i.root
|
|
781
|
+
),
|
|
782
|
+
children: [
|
|
783
|
+
/* @__PURE__ */ t.jsxs(p, { className: o("flex w-full items-center justify-between gap-2", i == null ? void 0 : i.topContent), children: [
|
|
784
|
+
d && /* @__PURE__ */ t.jsx("h5", { className: o("desk-body-regular-l flex flex-1 text-color-dark", i == null ? void 0 : i.subtitle), children: d }),
|
|
785
|
+
r && /* @__PURE__ */ t.jsx(v, { className: o("bg-color-positive", i == null ? void 0 : i.badge), children: r })
|
|
786
|
+
] }),
|
|
787
|
+
/* @__PURE__ */ t.jsxs("div", { className: o("grid w-full grid-cols-2 gap-2 desktop:gap-4", i == null ? void 0 : i.authWrapper), children: [
|
|
788
|
+
/* @__PURE__ */ t.jsx(
|
|
789
|
+
I,
|
|
790
|
+
{
|
|
791
|
+
...e,
|
|
792
|
+
classes: {
|
|
793
|
+
root: "p-0 outline-0 h-[74px]",
|
|
794
|
+
arrowIcon: "hidden",
|
|
795
|
+
...e.classes
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
),
|
|
799
|
+
/* @__PURE__ */ t.jsx(
|
|
800
|
+
C,
|
|
801
|
+
{
|
|
802
|
+
...x,
|
|
803
|
+
classes: {
|
|
804
|
+
root: "p-0 outline-0 h-[74px]",
|
|
805
|
+
arrowIcon: "hidden",
|
|
806
|
+
...x.classes
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
)
|
|
810
|
+
] })
|
|
811
|
+
]
|
|
812
|
+
}
|
|
813
|
+
);
|
|
814
|
+
}
|
|
815
|
+
}, gt = (n) => it(n);
|
|
816
|
+
export {
|
|
817
|
+
E as Advantages,
|
|
818
|
+
gt as AuthProvider,
|
|
819
|
+
at as Banner,
|
|
820
|
+
c as BannerWithSeparateImg,
|
|
821
|
+
jt as BaseForm,
|
|
822
|
+
ht as Benefit,
|
|
823
|
+
ut as Footer,
|
|
824
|
+
bt as LongBanner,
|
|
825
|
+
lt as PageHeader,
|
|
826
|
+
kt as Stepper
|
|
827
|
+
};
|
|
828
|
+
//# sourceMappingURL=widgets.js.map
|