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