@scbt-ecom/ui 0.7.0 → 0.7.2
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/hybrid.js +142 -144
- package/dist/hybrid.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/hybrid.js
CHANGED
|
@@ -2,7 +2,7 @@ import { p as B, j as t, c as a, H as g, a as c, I as m, L as K, z as x, i as Y,
|
|
|
2
2
|
import { B as Ke, D as Ye, d as et, N as tt, b as rt } from "./Notification-BjaLuRjD.js";
|
|
3
3
|
import * as s from "react";
|
|
4
4
|
import { forwardRef as L } from "react";
|
|
5
|
-
const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("-"), Be = (r, e = "dd.MM.yyyy") => B(r, e, /* @__PURE__ */ new Date()), R = ({ children: r, className: e, ...
|
|
5
|
+
const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("-"), Be = (r, e = "dd.MM.yyyy") => B(r, e, /* @__PURE__ */ new Date()), R = ({ children: r, className: e, ...i }) => /* @__PURE__ */ t.jsx("section", { className: a("pb-16 desktop:pb-20", e), ...i, children: r }), h = ({ children: r, className: e, ...i }) => /* @__PURE__ */ t.jsx("div", { className: a("m-auto w-full px-4 desktop:max-w-[1188px]", e), ...i, children: r }), ee = c("grid", {
|
|
6
6
|
variants: {
|
|
7
7
|
columnCount: {
|
|
8
8
|
twoColumns: "grid-cols-[repeat(2,minmax(172px,_1fr))] desktop:grid-cols-[repeat(2,minmax(172px,_1fr))]",
|
|
@@ -52,7 +52,7 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
52
52
|
compoundVariants: [
|
|
53
53
|
{
|
|
54
54
|
columnCount: "threeColumns",
|
|
55
|
-
class: "
|
|
55
|
+
class: "overflow-x-scroll max-w-[368px] mb-1"
|
|
56
56
|
}
|
|
57
57
|
]
|
|
58
58
|
}), oe = c("border-b border-warm-grey-200 py-4 desktop:desk-body-regular-l mob-body-regular-l", {
|
|
@@ -76,16 +76,16 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
76
76
|
}), ze = ({
|
|
77
77
|
headTitle: r,
|
|
78
78
|
tableRows: e,
|
|
79
|
-
tableHead:
|
|
79
|
+
tableHead: i,
|
|
80
80
|
additionalText: o,
|
|
81
|
-
columnCount:
|
|
81
|
+
columnCount: n,
|
|
82
82
|
classes: d
|
|
83
83
|
}) => {
|
|
84
|
-
const l =
|
|
84
|
+
const l = i && i.length > 0 ? "exist" : "notExist";
|
|
85
85
|
return /* @__PURE__ */ t.jsx(h, { children: /* @__PURE__ */ t.jsxs("div", { className: a("flex flex-col", d == null ? void 0 : d.tableRootWrapper), children: [
|
|
86
86
|
/* @__PURE__ */ t.jsx(g, { as: "h3", className: a("mob-title-bold-m pb-6 desktop:desk-title-bold-s", d == null ? void 0 : d.tableHeading), children: r }),
|
|
87
|
-
/* @__PURE__ */ t.jsxs("div", { className: a(re({ columnCount:
|
|
88
|
-
/* @__PURE__ */ t.jsx("ul", { className: a(ee({ columnCount:
|
|
87
|
+
/* @__PURE__ */ t.jsxs("div", { className: a(re({ columnCount: n }), d == null ? void 0 : d.tableBody), children: [
|
|
88
|
+
/* @__PURE__ */ t.jsx("ul", { className: a(ee({ columnCount: n }), d == null ? void 0 : d.tableTitlesContainer), children: i == null ? void 0 : i.map((u) => /* @__PURE__ */ t.jsx(
|
|
89
89
|
"li",
|
|
90
90
|
{
|
|
91
91
|
className: a(
|
|
@@ -96,7 +96,7 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
96
96
|
},
|
|
97
97
|
u
|
|
98
98
|
)) }),
|
|
99
|
-
/* @__PURE__ */ t.jsx("ul", { className: a("mb-4 flex flex-col", d == null ? void 0 : d.tableBodyContainer), children: e.map((u, f) => /* @__PURE__ */ t.jsx("li", { className: a(te({ columnCount:
|
|
99
|
+
/* @__PURE__ */ t.jsx("ul", { className: a("mb-4 flex flex-col", d == null ? void 0 : d.tableBodyContainer), children: e.map((u, f) => /* @__PURE__ */ t.jsx("li", { className: a(te({ columnCount: n, titlesExist: l }), d == null ? void 0 : d.tableBodyRow), children: u.map((y, v) => /* @__PURE__ */ t.jsx("p", { className: a(oe({ titlesExist: l, columnCount: n }), d == null ? void 0 : d.tableBodyCeil), children: y.text }, v)) }, f)) })
|
|
100
100
|
] }),
|
|
101
101
|
/* @__PURE__ */ t.jsx("p", { className: a("mob-body-regular-m desktop:desk-body-regular-l", d == null ? void 0 : d.tableAdditionalText), children: o })
|
|
102
102
|
] }) });
|
|
@@ -130,7 +130,7 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
130
130
|
)
|
|
131
131
|
]
|
|
132
132
|
}
|
|
133
|
-
) : /* @__PURE__ */ t.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: e.label }) })) }),
|
|
133
|
+
) : /* @__PURE__ */ t.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: e.label }) })) }), ne = (r) => {
|
|
134
134
|
switch (r) {
|
|
135
135
|
case "ghost":
|
|
136
136
|
case "secondary":
|
|
@@ -141,7 +141,7 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
141
141
|
default:
|
|
142
142
|
return r;
|
|
143
143
|
}
|
|
144
|
-
},
|
|
144
|
+
}, ie = c(
|
|
145
145
|
"relative flex items-center justify-center gap-4 cursor-pointer rounded-sm w-max px-4 outline-offset-4 outline-transparent outline-2 desk-body-regular-l transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
146
146
|
{
|
|
147
147
|
variants: {
|
|
@@ -203,9 +203,9 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
203
203
|
({
|
|
204
204
|
intent: r,
|
|
205
205
|
size: e,
|
|
206
|
-
className:
|
|
206
|
+
className: i,
|
|
207
207
|
children: o,
|
|
208
|
-
type:
|
|
208
|
+
type: n = "button",
|
|
209
209
|
iconLeft: d,
|
|
210
210
|
iconRight: l,
|
|
211
211
|
disabled: u = !1,
|
|
@@ -217,11 +217,11 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
217
217
|
"button",
|
|
218
218
|
{
|
|
219
219
|
ref: Q,
|
|
220
|
-
type:
|
|
220
|
+
type: n,
|
|
221
221
|
disabled: u || f,
|
|
222
|
-
className: a(
|
|
222
|
+
className: a(ie({ intent: r, size: e, textFormat: v, isLoading: f, isFull: y }), i),
|
|
223
223
|
...p,
|
|
224
|
-
children: f ? /* @__PURE__ */ t.jsx(K, { size: "sm", intent:
|
|
224
|
+
children: f ? /* @__PURE__ */ t.jsx(K, { size: "sm", intent: ne(r) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
225
225
|
d && /* @__PURE__ */ t.jsx("span", { className: "flex size-5 items-center justify-center", children: d }),
|
|
226
226
|
o,
|
|
227
227
|
l && /* @__PURE__ */ t.jsx("span", { className: "flex size-5 items-center justify-center", children: l })
|
|
@@ -249,7 +249,7 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
), Re = L(
|
|
252
|
-
({ size: r, intent: e, children:
|
|
252
|
+
({ size: r, intent: e, children: i, classes: o, type: n = "button", ...d }, l) => /* @__PURE__ */ t.jsx("button", { ref: l, type: n, className: a(ae({ intent: e, size: r }), o == null ? void 0 : o.button), ...d, children: /* @__PURE__ */ t.jsx("span", { className: a(o == null ? void 0 : o.icon), children: i }) })
|
|
253
253
|
), de = c(
|
|
254
254
|
"group underline underline-offset-4 outline-none p-[2px] rounded-sm border border-solid border-transparent",
|
|
255
255
|
{
|
|
@@ -296,15 +296,15 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
296
296
|
}), Se = ({
|
|
297
297
|
Component: r = "a",
|
|
298
298
|
intent: e,
|
|
299
|
-
children:
|
|
299
|
+
children: i,
|
|
300
300
|
withIcon: o,
|
|
301
|
-
disabled:
|
|
301
|
+
disabled: n,
|
|
302
302
|
size: d,
|
|
303
303
|
icon: l = "arrows/arrowLink",
|
|
304
304
|
...u
|
|
305
|
-
}) => /* @__PURE__ */ t.jsxs(r, { className: a(de({ intent: e, withIcon: o, disabled:
|
|
306
|
-
|
|
307
|
-
o && /* @__PURE__ */ t.jsx(m, { name: l, className: a(le({ intent: e, disabled:
|
|
305
|
+
}) => /* @__PURE__ */ t.jsxs(r, { className: a(de({ intent: e, withIcon: o, disabled: n, size: d })), ...u, children: [
|
|
306
|
+
i,
|
|
307
|
+
o && /* @__PURE__ */ t.jsx(m, { name: l, className: a(le({ intent: e, disabled: n })) })
|
|
308
308
|
] }), pe = c("size-8 transition-colors", {
|
|
309
309
|
variants: {
|
|
310
310
|
intent: {
|
|
@@ -318,7 +318,7 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
318
318
|
}), ue = {
|
|
319
319
|
filled: "files/documentFilled",
|
|
320
320
|
outline: "files/documentOutline"
|
|
321
|
-
}, Oe = ({ text: r, size: e, sizeType:
|
|
321
|
+
}, Oe = ({ text: r, size: e, sizeType: i, href: o, intent: n = "outline" }) => /* @__PURE__ */ t.jsxs(
|
|
322
322
|
"a",
|
|
323
323
|
{
|
|
324
324
|
href: o,
|
|
@@ -329,28 +329,28 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
329
329
|
"group flex max-w-[288px] cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus desktop:max-w-[592px]"
|
|
330
330
|
),
|
|
331
331
|
children: [
|
|
332
|
-
/* @__PURE__ */ t.jsx(m, { name: ue[
|
|
332
|
+
/* @__PURE__ */ t.jsx(m, { name: ue[n], className: a(pe({ intent: n })) }),
|
|
333
333
|
/* @__PURE__ */ t.jsxs("div", { className: a("flex flex-1 flex-col"), children: [
|
|
334
334
|
/* @__PURE__ */ t.jsx("p", { className: a("desk-body-medium-l text-color-dark"), children: r }),
|
|
335
335
|
/* @__PURE__ */ t.jsxs("div", { className: a("desk-body-regular-m text-color-disabled"), children: [
|
|
336
336
|
e,
|
|
337
337
|
" ",
|
|
338
|
-
|
|
338
|
+
i
|
|
339
339
|
] })
|
|
340
340
|
] })
|
|
341
341
|
]
|
|
342
342
|
}
|
|
343
|
-
), S = ({ phone: r, text: e, classes:
|
|
344
|
-
/* @__PURE__ */ t.jsx("a", { href: `tel:${r}`, className: a("desk-body-medium-l ml-auto text-color-dark",
|
|
345
|
-
/* @__PURE__ */ t.jsx("p", { className: a("desk-body-regular-l text-color-tetriary",
|
|
346
|
-
] }), Pe = ({ topContent: r, bottomContent: e, progress:
|
|
347
|
-
r && /* @__PURE__ */ t.jsx("div", { className: a("mb-2 flex justify-between gap-5",
|
|
348
|
-
/* @__PURE__ */ t.jsxs("div", { className: a("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]",
|
|
343
|
+
), S = ({ phone: r, text: e, classes: i }) => /* @__PURE__ */ t.jsxs("div", { className: a("flex w-max flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
344
|
+
/* @__PURE__ */ t.jsx("a", { href: `tel:${r}`, className: a("desk-body-medium-l ml-auto text-color-dark", i == null ? void 0 : i.link), children: r }),
|
|
345
|
+
/* @__PURE__ */ t.jsx("p", { className: a("desk-body-regular-l text-color-tetriary", i == null ? void 0 : i.text), children: e })
|
|
346
|
+
] }), Pe = ({ topContent: r, bottomContent: e, progress: i, maxPercent: o = 100, classes: n }) => /* @__PURE__ */ t.jsxs("div", { className: a("flex flex-col", n == null ? void 0 : n.wrapper), children: [
|
|
347
|
+
r && /* @__PURE__ */ t.jsx("div", { className: a("mb-2 flex justify-between gap-5", n == null ? void 0 : n.topContent), children: r }),
|
|
348
|
+
/* @__PURE__ */ t.jsxs("div", { className: a("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", n == null ? void 0 : n.progressBar), children: [
|
|
349
349
|
/* @__PURE__ */ t.jsx(
|
|
350
350
|
"div",
|
|
351
351
|
{
|
|
352
|
-
style: { width: `${
|
|
353
|
-
className: a("relative z-10 h-2 rounded-md bg-color-positive transition-all",
|
|
352
|
+
style: { width: `${i}%` },
|
|
353
|
+
className: a("relative z-10 h-2 rounded-md bg-color-positive transition-all", n == null ? void 0 : n.progress)
|
|
354
354
|
}
|
|
355
355
|
),
|
|
356
356
|
/* @__PURE__ */ t.jsx(
|
|
@@ -359,12 +359,12 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
359
359
|
style: { maxWidth: `${o}%` },
|
|
360
360
|
className: a(
|
|
361
361
|
"progressBar-apply absolute top-1/2 z-1 h-full w-full -translate-y-1/2 animate-progress-loader rounded-md",
|
|
362
|
-
|
|
362
|
+
n == null ? void 0 : n.loader
|
|
363
363
|
)
|
|
364
364
|
}
|
|
365
365
|
)
|
|
366
366
|
] }),
|
|
367
|
-
e && /* @__PURE__ */ t.jsx("div", { className: a("mt-2 flex justify-between gap-5",
|
|
367
|
+
e && /* @__PURE__ */ t.jsx("div", { className: a("mt-2 flex justify-between gap-5", n == null ? void 0 : n.bottomContent), children: e })
|
|
368
368
|
] }), Ve = ({ className: r }) => /* @__PURE__ */ t.jsx("div", { className: a("skeleton-apply h-full w-full", r) }), me = {
|
|
369
369
|
main: /* @__PURE__ */ t.jsx(m, { name: "brandLogos/logoMain" }),
|
|
370
370
|
white: /* @__PURE__ */ t.jsx(m, { name: "brandLogos/logoWhite" }),
|
|
@@ -593,9 +593,9 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
593
593
|
INVALID_DATE: "Введите корректную дату",
|
|
594
594
|
FUTURE_DATE_NOT_ALLOWED: "Нельзя выбрать дату позже текущей"
|
|
595
595
|
}, I = (r) => {
|
|
596
|
-
const e = r.trim().replace(/\s+/g, " ").split(" "), [
|
|
596
|
+
const e = r.trim().replace(/\s+/g, " ").split(" "), [i, o, ...n] = e, d = n == null ? void 0 : n.join(" ");
|
|
597
597
|
return {
|
|
598
|
-
surname:
|
|
598
|
+
surname: i,
|
|
599
599
|
name: o,
|
|
600
600
|
patronymic: d
|
|
601
601
|
};
|
|
@@ -604,30 +604,30 @@ const Ae = (r, e) => JSON.stringify(r) === JSON.stringify(e), _ = (r) => r.split
|
|
|
604
604
|
code: x.ZodIssueCode.custom,
|
|
605
605
|
message: "Должна быть только кириллица"
|
|
606
606
|
});
|
|
607
|
-
const { surname:
|
|
608
|
-
(!
|
|
607
|
+
const { surname: i, name: o, patronymic: n } = I(r);
|
|
608
|
+
(!i || !o) && e.addIssue({
|
|
609
609
|
code: x.ZodIssueCode.custom,
|
|
610
610
|
message: "Введите имя и фамилию"
|
|
611
611
|
}), T.test(o) || e.addIssue({
|
|
612
612
|
code: x.ZodIssueCode.custom,
|
|
613
613
|
message: "Неверно введено имя"
|
|
614
|
-
}), T.test(
|
|
614
|
+
}), T.test(i) || e.addIssue({
|
|
615
615
|
code: x.ZodIssueCode.custom,
|
|
616
616
|
message: "Неверно введена фамилия"
|
|
617
|
-
}),
|
|
617
|
+
}), n && (ce.test(n) || e.addIssue({
|
|
618
618
|
code: x.ZodIssueCode.custom,
|
|
619
619
|
message: "Неверно введено отчество"
|
|
620
620
|
}));
|
|
621
621
|
}).transform((r) => {
|
|
622
|
-
const { surname: e, name:
|
|
622
|
+
const { surname: e, name: i, patronymic: o } = I(r);
|
|
623
623
|
return {
|
|
624
624
|
surname: _(e),
|
|
625
|
-
name: _(
|
|
625
|
+
name: _(i),
|
|
626
626
|
patronymic: o ? _(o) : void 0
|
|
627
627
|
};
|
|
628
628
|
}), $e = x.string().length(10, { message: j.INVALID_DATE }).superRefine((r, e) => {
|
|
629
|
-
const [
|
|
630
|
-
+
|
|
629
|
+
const [i, o, n] = (r == null ? void 0 : r.split(".")) ?? "", d = B(`${i}/${o}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
630
|
+
+n <= 1950 && e.addIssue({
|
|
631
631
|
code: x.ZodIssueCode.custom,
|
|
632
632
|
message: j.INVALID_DATE
|
|
633
633
|
}), Y(d) || e.addIssue({
|
|
@@ -645,26 +645,26 @@ var Z = {}, H = {};
|
|
|
645
645
|
}), Object.defineProperty(r, "default", {
|
|
646
646
|
enumerable: !0,
|
|
647
647
|
get: function() {
|
|
648
|
-
return
|
|
648
|
+
return i;
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
|
-
function e(o,
|
|
651
|
+
function e(o, n) {
|
|
652
652
|
return {
|
|
653
653
|
handler: o,
|
|
654
|
-
config:
|
|
654
|
+
config: n
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
|
-
e.withOptions = function(o,
|
|
657
|
+
e.withOptions = function(o, n = () => ({})) {
|
|
658
658
|
const d = function(l) {
|
|
659
659
|
return {
|
|
660
660
|
__options: l,
|
|
661
661
|
handler: o(l),
|
|
662
|
-
config:
|
|
662
|
+
config: n(l)
|
|
663
663
|
};
|
|
664
664
|
};
|
|
665
|
-
return d.__isOptionsFunction = !0, d.__pluginFunction = o, d.__configFunction =
|
|
665
|
+
return d.__isOptionsFunction = !0, d.__pluginFunction = o, d.__configFunction = n, d;
|
|
666
666
|
};
|
|
667
|
-
const
|
|
667
|
+
const i = e;
|
|
668
668
|
})(H);
|
|
669
669
|
(function(r) {
|
|
670
670
|
Object.defineProperty(r, "__esModule", {
|
|
@@ -675,10 +675,10 @@ var Z = {}, H = {};
|
|
|
675
675
|
return o;
|
|
676
676
|
}
|
|
677
677
|
});
|
|
678
|
-
const e = /* @__PURE__ */
|
|
679
|
-
function n
|
|
680
|
-
return
|
|
681
|
-
default:
|
|
678
|
+
const e = /* @__PURE__ */ i(H);
|
|
679
|
+
function i(n) {
|
|
680
|
+
return n && n.__esModule ? n : {
|
|
681
|
+
default: n
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
684
|
const o = e.default;
|
|
@@ -692,13 +692,13 @@ function F(r) {
|
|
|
692
692
|
);
|
|
693
693
|
}
|
|
694
694
|
var ge = be(
|
|
695
|
-
({ addUtilities: r, matchUtilities: e, theme:
|
|
695
|
+
({ addUtilities: r, matchUtilities: e, theme: i }) => {
|
|
696
696
|
r({
|
|
697
|
-
"@keyframes enter":
|
|
698
|
-
"@keyframes exit":
|
|
697
|
+
"@keyframes enter": i("keyframes.enter"),
|
|
698
|
+
"@keyframes exit": i("keyframes.exit"),
|
|
699
699
|
".animate-in": {
|
|
700
700
|
animationName: "enter",
|
|
701
|
-
animationDuration:
|
|
701
|
+
animationDuration: i("animationDuration.DEFAULT"),
|
|
702
702
|
"--tw-enter-opacity": "initial",
|
|
703
703
|
"--tw-enter-scale": "initial",
|
|
704
704
|
"--tw-enter-rotate": "initial",
|
|
@@ -707,7 +707,7 @@ var ge = be(
|
|
|
707
707
|
},
|
|
708
708
|
".animate-out": {
|
|
709
709
|
animationName: "exit",
|
|
710
|
-
animationDuration:
|
|
710
|
+
animationDuration: i("animationDuration.DEFAULT"),
|
|
711
711
|
"--tw-exit-opacity": "initial",
|
|
712
712
|
"--tw-exit-scale": "initial",
|
|
713
713
|
"--tw-exit-rotate": "initial",
|
|
@@ -719,19 +719,19 @@ var ge = be(
|
|
|
719
719
|
"fade-in": (o) => ({ "--tw-enter-opacity": o }),
|
|
720
720
|
"fade-out": (o) => ({ "--tw-exit-opacity": o })
|
|
721
721
|
},
|
|
722
|
-
{ values:
|
|
722
|
+
{ values: i("animationOpacity") }
|
|
723
723
|
), e(
|
|
724
724
|
{
|
|
725
725
|
"zoom-in": (o) => ({ "--tw-enter-scale": o }),
|
|
726
726
|
"zoom-out": (o) => ({ "--tw-exit-scale": o })
|
|
727
727
|
},
|
|
728
|
-
{ values:
|
|
728
|
+
{ values: i("animationScale") }
|
|
729
729
|
), e(
|
|
730
730
|
{
|
|
731
731
|
"spin-in": (o) => ({ "--tw-enter-rotate": o }),
|
|
732
732
|
"spin-out": (o) => ({ "--tw-exit-rotate": o })
|
|
733
733
|
},
|
|
734
|
-
{ values:
|
|
734
|
+
{ values: i("animationRotate") }
|
|
735
735
|
), e(
|
|
736
736
|
{
|
|
737
737
|
"slide-in-from-top": (o) => ({
|
|
@@ -759,28 +759,28 @@ var ge = be(
|
|
|
759
759
|
"--tw-exit-translate-x": o
|
|
760
760
|
})
|
|
761
761
|
},
|
|
762
|
-
{ values:
|
|
762
|
+
{ values: i("animationTranslate") }
|
|
763
763
|
), e(
|
|
764
764
|
{ duration: (o) => ({ animationDuration: o }) },
|
|
765
|
-
{ values: F(
|
|
765
|
+
{ values: F(i("animationDuration")) }
|
|
766
766
|
), e(
|
|
767
767
|
{ delay: (o) => ({ animationDelay: o }) },
|
|
768
|
-
{ values:
|
|
768
|
+
{ values: i("animationDelay") }
|
|
769
769
|
), e(
|
|
770
770
|
{ ease: (o) => ({ animationTimingFunction: o }) },
|
|
771
|
-
{ values: F(
|
|
771
|
+
{ values: F(i("animationTimingFunction")) }
|
|
772
772
|
), r({
|
|
773
773
|
".running": { animationPlayState: "running" },
|
|
774
774
|
".paused": { animationPlayState: "paused" }
|
|
775
775
|
}), e(
|
|
776
776
|
{ "fill-mode": (o) => ({ animationFillMode: o }) },
|
|
777
|
-
{ values:
|
|
777
|
+
{ values: i("animationFillMode") }
|
|
778
778
|
), e(
|
|
779
779
|
{ direction: (o) => ({ animationDirection: o }) },
|
|
780
|
-
{ values:
|
|
780
|
+
{ values: i("animationDirection") }
|
|
781
781
|
), e(
|
|
782
782
|
{ repeat: (o) => ({ animationIterationCount: o }) },
|
|
783
|
-
{ values:
|
|
783
|
+
{ values: i("animationRepeat") }
|
|
784
784
|
);
|
|
785
785
|
},
|
|
786
786
|
{
|
|
@@ -850,7 +850,7 @@ var ge = be(
|
|
|
850
850
|
const X = /* @__PURE__ */ z(ge), Ue = {
|
|
851
851
|
theme: {
|
|
852
852
|
screens: {
|
|
853
|
-
mobile:
|
|
853
|
+
mobile: "1187px",
|
|
854
854
|
desktop: "1188px"
|
|
855
855
|
},
|
|
856
856
|
backgroundColor: {
|
|
@@ -921,7 +921,6 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
921
921
|
}
|
|
922
922
|
},
|
|
923
923
|
plugins: [
|
|
924
|
-
// eslint-disable-next-line global-require
|
|
925
924
|
X,
|
|
926
925
|
D(({ addComponents: r }) => {
|
|
927
926
|
r(G);
|
|
@@ -929,8 +928,8 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
929
928
|
D(function({ matchUtilities: r, theme: e }) {
|
|
930
929
|
r(
|
|
931
930
|
{
|
|
932
|
-
"bg-deg-gradient": (
|
|
933
|
-
"background-image": `linear-gradient(${
|
|
931
|
+
"bg-deg-gradient": (i) => ({
|
|
932
|
+
"background-image": `linear-gradient(${i}, var(--tw-gradient-stops))`
|
|
934
933
|
})
|
|
935
934
|
},
|
|
936
935
|
{
|
|
@@ -982,7 +981,6 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
982
981
|
}, Ze = {
|
|
983
982
|
theme: {
|
|
984
983
|
screens: {
|
|
985
|
-
mobile: { max: "1187px" },
|
|
986
984
|
desktop: "1188px"
|
|
987
985
|
},
|
|
988
986
|
backgroundColor: {
|
|
@@ -1021,8 +1019,8 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1021
1019
|
D(function({ matchUtilities: r, theme: e }) {
|
|
1022
1020
|
r(
|
|
1023
1021
|
{
|
|
1024
|
-
"bg-deg-gradient": (
|
|
1025
|
-
"background-image": `linear-gradient(${
|
|
1022
|
+
"bg-deg-gradient": (i) => ({
|
|
1023
|
+
"background-image": `linear-gradient(${i}, var(--tw-gradient-stops))`
|
|
1026
1024
|
})
|
|
1027
1025
|
},
|
|
1028
1026
|
{
|
|
@@ -1031,18 +1029,18 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1031
1029
|
);
|
|
1032
1030
|
})
|
|
1033
1031
|
]
|
|
1034
|
-
}, q = ({ buttonsConfig: r, classes: e, className:
|
|
1035
|
-
var
|
|
1032
|
+
}, q = ({ buttonsConfig: r, classes: e, className: i }) => {
|
|
1033
|
+
var n;
|
|
1036
1034
|
const o = (r == null ? void 0 : r.secondary) && r.secondary.children;
|
|
1037
1035
|
return /* @__PURE__ */ t.jsxs(
|
|
1038
1036
|
"div",
|
|
1039
1037
|
{
|
|
1040
1038
|
"data-id": "banner-buttons-group",
|
|
1041
1039
|
className: a(
|
|
1042
|
-
"grid-buttons-apply absolute bottom-6 flex w-full
|
|
1040
|
+
"grid-buttons-apply absolute bottom-6 flex w-full max-w-[328px] flex-col justify-self-center desktop:static desktop:max-w-full desktop:flex-row desktop:justify-normal",
|
|
1043
1041
|
{ "flex items-center gap-4": o },
|
|
1044
1042
|
e == null ? void 0 : e.group,
|
|
1045
|
-
|
|
1043
|
+
i
|
|
1046
1044
|
),
|
|
1047
1045
|
children: [
|
|
1048
1046
|
/* @__PURE__ */ t.jsx(E, { intent: "primary", ...r.primary, isFull: !0, className: a("desktop:max-w-[216px]", e == null ? void 0 : e.primary), children: r.primary.children }),
|
|
@@ -1053,7 +1051,7 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1053
1051
|
...r == null ? void 0 : r.secondary,
|
|
1054
1052
|
isFull: !0,
|
|
1055
1053
|
className: a("desktop:max-w-[216px]", e == null ? void 0 : e.secondary),
|
|
1056
|
-
children: (
|
|
1054
|
+
children: (n = r == null ? void 0 : r.secondary) == null ? void 0 : n.children
|
|
1057
1055
|
}
|
|
1058
1056
|
)
|
|
1059
1057
|
]
|
|
@@ -1063,52 +1061,52 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1063
1061
|
"div",
|
|
1064
1062
|
{
|
|
1065
1063
|
className: a(
|
|
1066
|
-
"flex w-[328px] flex-col gap-8 rounded-md bg-color-white shadow-sm
|
|
1064
|
+
"flex w-[328px] 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",
|
|
1067
1065
|
e == null ? void 0 : e.wrapper
|
|
1068
1066
|
),
|
|
1069
|
-
children: r == null ? void 0 : r.map(({ title:
|
|
1067
|
+
children: r == null ? void 0 : r.map(({ title: i, description: o }) => /* @__PURE__ */ t.jsxs(
|
|
1070
1068
|
"div",
|
|
1071
1069
|
{
|
|
1072
1070
|
className: a(
|
|
1073
|
-
'after:content-[" "] relative flex h-full w-[285px] flex-col gap-2 after:absolute after:h-[1px] after:w-[280px] after:bg-color-blue-grey-300 last:after:hidden
|
|
1071
|
+
'after:content-[" "] relative flex h-full w-[285px] flex-col gap-2 after:absolute after:-bottom-4 after:left-1/2 after:h-[1px] after:w-[280px] after:-translate-x-1/2 after:bg-color-blue-grey-300 last:after:hidden 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',
|
|
1074
1072
|
e == null ? void 0 : e.advantage
|
|
1075
1073
|
),
|
|
1076
1074
|
children: [
|
|
1077
|
-
/* @__PURE__ */ t.jsx(g, { as: "h4", className: a("text-color-dark", e == null ? void 0 : e.title), children:
|
|
1075
|
+
/* @__PURE__ */ t.jsx(g, { as: "h4", className: a("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
1078
1076
|
/* @__PURE__ */ t.jsx("p", { className: a("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.description), children: o })
|
|
1079
1077
|
]
|
|
1080
1078
|
},
|
|
1081
|
-
|
|
1079
|
+
i
|
|
1082
1080
|
))
|
|
1083
1081
|
}
|
|
1084
1082
|
), A = ({
|
|
1085
1083
|
headTitle: r,
|
|
1086
1084
|
subtitle: e,
|
|
1087
|
-
buttonsConfig:
|
|
1085
|
+
buttonsConfig: i,
|
|
1088
1086
|
advantagesList: o,
|
|
1089
|
-
classes:
|
|
1087
|
+
classes: n,
|
|
1090
1088
|
img: d
|
|
1091
1089
|
}) => {
|
|
1092
|
-
const l = Object.keys(
|
|
1093
|
-
return /* @__PURE__ */ t.jsx("section", { "data-id": "banner-section", className: a("relative bg-banner-skyblue-300 pb-6 desktop:h-[456px]",
|
|
1090
|
+
const l = Object.keys(i).reduce((u, f) => f ? u + 1 : u, 0);
|
|
1091
|
+
return /* @__PURE__ */ t.jsx("section", { "data-id": "banner-section", className: a("relative bg-banner-skyblue-300 pb-6 desktop:h-[456px]", n == null ? void 0 : n.section), children: /* @__PURE__ */ t.jsxs(h, { "data-id": "banner-container", className: a(n == null ? void 0 : n.container), children: [
|
|
1094
1092
|
/* @__PURE__ */ t.jsxs(
|
|
1095
1093
|
"div",
|
|
1096
1094
|
{
|
|
1097
1095
|
"data-id": "banner-grid",
|
|
1098
|
-
className: a("grid-mob-apply desktop:grid-desk-apply grid
|
|
1096
|
+
className: a("grid-mob-apply desktop:grid-desk-apply grid justify-center desktop:justify-normal", n == null ? void 0 : n.wrapper),
|
|
1099
1097
|
children: [
|
|
1100
1098
|
/* @__PURE__ */ t.jsxs(
|
|
1101
1099
|
"div",
|
|
1102
1100
|
{
|
|
1103
1101
|
"data-id": "banner-text-block",
|
|
1104
|
-
className: a("grid-text-apply mb-2 flex flex-col gap-4 pt-6 desktop:pb-10 desktop:pt-20",
|
|
1102
|
+
className: a("grid-text-apply mb-2 flex flex-col gap-4 pt-6 desktop:pb-10 desktop:pt-20", n == null ? void 0 : n.textBlock),
|
|
1105
1103
|
children: [
|
|
1106
|
-
/* @__PURE__ */ t.jsx(g, { "data-id": "banner-title", as: "h1", className: a("text-color-dark",
|
|
1107
|
-
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: a("desk-body-regular-l text-color-dark",
|
|
1104
|
+
/* @__PURE__ */ t.jsx(g, { "data-id": "banner-title", as: "h1", className: a("text-color-dark", n == null ? void 0 : n.title), children: r }),
|
|
1105
|
+
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: a("desk-body-regular-l text-color-dark", n == null ? void 0 : n.subtitle), children: e })
|
|
1108
1106
|
]
|
|
1109
1107
|
}
|
|
1110
1108
|
),
|
|
1111
|
-
/* @__PURE__ */ t.jsx(q, { buttonsConfig:
|
|
1109
|
+
/* @__PURE__ */ t.jsx(q, { buttonsConfig: i, classes: n }),
|
|
1112
1110
|
/* @__PURE__ */ t.jsx(
|
|
1113
1111
|
"div",
|
|
1114
1112
|
{
|
|
@@ -1117,7 +1115,7 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1117
1115
|
"grid-image-apply w-full desktop:h-full desktop:w-[550px]",
|
|
1118
1116
|
{ "h-[450px]": l === 2 },
|
|
1119
1117
|
{ "h-[410px]": l === 1 },
|
|
1120
|
-
|
|
1118
|
+
n == null ? void 0 : n.imageContainer
|
|
1121
1119
|
),
|
|
1122
1120
|
children: /* @__PURE__ */ t.jsx(
|
|
1123
1121
|
"img",
|
|
@@ -1125,7 +1123,7 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1125
1123
|
"data-id": "banner-image",
|
|
1126
1124
|
src: d,
|
|
1127
1125
|
alt: "Картинка баннера",
|
|
1128
|
-
className: a("h-full w-full object-contain",
|
|
1126
|
+
className: a("h-full w-full object-contain", n == null ? void 0 : n.image)
|
|
1129
1127
|
}
|
|
1130
1128
|
)
|
|
1131
1129
|
}
|
|
@@ -1137,20 +1135,20 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1137
1135
|
"div",
|
|
1138
1136
|
{
|
|
1139
1137
|
"data-id": "banner-advantages",
|
|
1140
|
-
className: a("absolute bottom-[-400px] right-1/2 translate-x-1/2 desktop:bottom-[-50px]",
|
|
1141
|
-
children: o && (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t.jsx(J, { classes:
|
|
1138
|
+
className: a("absolute bottom-[-400px] right-1/2 translate-x-1/2 desktop:bottom-[-50px]", n == null ? void 0 : n.advantages),
|
|
1139
|
+
children: o && (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t.jsx(J, { classes: n, advantagesList: o })
|
|
1142
1140
|
}
|
|
1143
1141
|
)
|
|
1144
1142
|
] }) });
|
|
1145
1143
|
}, he = ({
|
|
1146
1144
|
headTitle: r,
|
|
1147
1145
|
subtitle: e,
|
|
1148
|
-
buttonsConfig:
|
|
1146
|
+
buttonsConfig: i,
|
|
1149
1147
|
advantagesList: o,
|
|
1150
|
-
classes:
|
|
1148
|
+
classes: n,
|
|
1151
1149
|
img: d,
|
|
1152
1150
|
imgSets: l
|
|
1153
|
-
}) => /* @__PURE__ */ t.jsxs("section", { "data-id": "banner-section", className: a("relative h-[552px] desktop:h-[456px]",
|
|
1151
|
+
}) => /* @__PURE__ */ t.jsxs("section", { "data-id": "banner-section", className: a("relative h-[552px] desktop:h-[456px]", n == null ? void 0 : n.section), children: [
|
|
1154
1152
|
/* @__PURE__ */ t.jsx(
|
|
1155
1153
|
"div",
|
|
1156
1154
|
{
|
|
@@ -1165,20 +1163,20 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1165
1163
|
"data-id": "banner-image",
|
|
1166
1164
|
src: d,
|
|
1167
1165
|
alt: "Картинка баннера",
|
|
1168
|
-
className: a("h-full w-full object-cover object-center",
|
|
1166
|
+
className: a("h-full w-full object-cover object-center", n == null ? void 0 : n.image)
|
|
1169
1167
|
}
|
|
1170
1168
|
)
|
|
1171
1169
|
] })
|
|
1172
1170
|
}
|
|
1173
1171
|
),
|
|
1174
|
-
/* @__PURE__ */ t.jsxs(h, { "data-id": "banner-container", className: a("h-full pb-6",
|
|
1172
|
+
/* @__PURE__ */ t.jsxs(h, { "data-id": "banner-container", className: a("h-full pb-6", n == null ? void 0 : n.container), children: [
|
|
1175
1173
|
/* @__PURE__ */ t.jsxs(
|
|
1176
1174
|
"div",
|
|
1177
1175
|
{
|
|
1178
1176
|
"data-id": "banner-grid",
|
|
1179
1177
|
className: a(
|
|
1180
1178
|
"grid-mob-full-img-apply desktop:grid-desk-full-img-apply grid h-full grid-rows-[repeat(2,_min-content)]",
|
|
1181
|
-
|
|
1179
|
+
n == null ? void 0 : n.wrapper
|
|
1182
1180
|
),
|
|
1183
1181
|
children: [
|
|
1184
1182
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1186,22 +1184,22 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1186
1184
|
{
|
|
1187
1185
|
"data-id": "banner-text-block",
|
|
1188
1186
|
className: a(
|
|
1189
|
-
"grid-text-apply flex flex-col gap-4 pt-6
|
|
1190
|
-
|
|
1187
|
+
"grid-text-apply flex w-[328px] flex-col gap-4 pt-6 desktop:w-full desktop:pb-10 desktop:pt-20",
|
|
1188
|
+
n == null ? void 0 : n.textBlock
|
|
1191
1189
|
),
|
|
1192
1190
|
children: [
|
|
1193
|
-
/* @__PURE__ */ t.jsx(g, { "data-id": "banner-title", as: "h1", className: a("text-color-white",
|
|
1194
|
-
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: a("desk-body-regular-l text-color-white",
|
|
1191
|
+
/* @__PURE__ */ t.jsx(g, { "data-id": "banner-title", as: "h1", className: a("text-color-white", n == null ? void 0 : n.title), children: r }),
|
|
1192
|
+
/* @__PURE__ */ t.jsx("p", { "data-id": "banner-subtitle", className: a("desk-body-regular-l text-color-white", n == null ? void 0 : n.subtitle), children: e })
|
|
1195
1193
|
]
|
|
1196
1194
|
}
|
|
1197
1195
|
),
|
|
1198
1196
|
/* @__PURE__ */ t.jsx(
|
|
1199
1197
|
q,
|
|
1200
1198
|
{
|
|
1201
|
-
className: "
|
|
1199
|
+
className: "self-end desktop:self-center",
|
|
1202
1200
|
"data-id": "banner-buttons-group",
|
|
1203
|
-
buttonsConfig:
|
|
1204
|
-
classes:
|
|
1201
|
+
buttonsConfig: i,
|
|
1202
|
+
classes: n
|
|
1205
1203
|
}
|
|
1206
1204
|
)
|
|
1207
1205
|
]
|
|
@@ -1211,7 +1209,7 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1211
1209
|
"div",
|
|
1212
1210
|
{
|
|
1213
1211
|
"data-id": "banner-advantages",
|
|
1214
|
-
className: a("absolute bottom-[-400px] right-1/2 translate-x-1/2 desktop:bottom-[-50px]",
|
|
1212
|
+
className: a("absolute bottom-[-400px] right-1/2 translate-x-1/2 desktop:bottom-[-50px]", n == null ? void 0 : n.advantages),
|
|
1215
1213
|
children: o && (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t.jsx(J, { "data-id": "banner-advantages-list", advantagesList: o })
|
|
1216
1214
|
}
|
|
1217
1215
|
)
|
|
@@ -1319,18 +1317,18 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1319
1317
|
{ text: "Офисы и банкоматы", href: "/" }
|
|
1320
1318
|
]
|
|
1321
1319
|
}
|
|
1322
|
-
], ke = ({ socialsLinks: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: a("mt-6 flex items-center gap-2", e == null ? void 0 : e.socialRoot), children: r == null ? void 0 : r.map(({ iconName:
|
|
1320
|
+
], ke = ({ socialsLinks: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: a("mt-6 flex items-center gap-2", e == null ? void 0 : e.socialRoot), children: r == null ? void 0 : r.map(({ iconName: i, href: o }) => /* @__PURE__ */ t.jsx(
|
|
1323
1321
|
"a",
|
|
1324
1322
|
{
|
|
1325
1323
|
className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
1326
1324
|
href: o,
|
|
1327
|
-
children: /* @__PURE__ */ t.jsx(m, { name:
|
|
1325
|
+
children: /* @__PURE__ */ t.jsx(m, { name: i, className: a("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
1328
1326
|
},
|
|
1329
1327
|
o
|
|
1330
|
-
)) }), Ne = ({ phones: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: a("flex flex-col items-end gap-4", e == null ? void 0 : e.phonesRoot), children: r == null ? void 0 : r.map(({ phone:
|
|
1328
|
+
)) }), Ne = ({ phones: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: a("flex flex-col items-end gap-4", e == null ? void 0 : e.phonesRoot), children: r == null ? void 0 : r.map(({ phone: i, text: o }) => /* @__PURE__ */ t.jsx(
|
|
1331
1329
|
S,
|
|
1332
1330
|
{
|
|
1333
|
-
phone:
|
|
1331
|
+
phone: i,
|
|
1334
1332
|
text: o,
|
|
1335
1333
|
classes: {
|
|
1336
1334
|
wrapper: a(e == null ? void 0 : e.phoneWrapper),
|
|
@@ -1338,10 +1336,10 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1338
1336
|
link: a("text-color-white", e == null ? void 0 : e.phoneLink)
|
|
1339
1337
|
}
|
|
1340
1338
|
},
|
|
1341
|
-
|
|
1342
|
-
)) }), De = ({ navigationLinks: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: a("grid grid-cols-4 gap-10 border-y border-blue-grey-500 py-8 pt-8", e == null ? void 0 : e.navRoot), children: r == null ? void 0 : r.map(({ groupLabel:
|
|
1343
|
-
/* @__PURE__ */ t.jsx("div", { className: a("desk-body-regular-m font-medium text-color-white", e == null ? void 0 : e.navLabel), children:
|
|
1344
|
-
/* @__PURE__ */ t.jsx("div", { className: a("flex flex-col gap-2", e == null ? void 0 : e.navWrapper), children: o == null ? void 0 : o.map(({ text:
|
|
1339
|
+
i
|
|
1340
|
+
)) }), De = ({ navigationLinks: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: a("grid grid-cols-4 gap-10 border-y border-blue-grey-500 py-8 pt-8", e == null ? void 0 : e.navRoot), children: r == null ? void 0 : r.map(({ groupLabel: i, links: o }) => /* @__PURE__ */ t.jsxs("div", { className: a("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
|
|
1341
|
+
/* @__PURE__ */ t.jsx("div", { className: a("desk-body-regular-m font-medium text-color-white", e == null ? void 0 : e.navLabel), children: i }),
|
|
1342
|
+
/* @__PURE__ */ t.jsx("div", { className: a("flex flex-col gap-2", e == null ? void 0 : e.navWrapper), children: o == null ? void 0 : o.map(({ text: n, href: d }) => /* @__PURE__ */ t.jsx(
|
|
1345
1343
|
"a",
|
|
1346
1344
|
{
|
|
1347
1345
|
href: d,
|
|
@@ -1349,18 +1347,18 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1349
1347
|
"desk-body-regular-m cursor-pointer text-color-white transition-colors hover:text-color-footer",
|
|
1350
1348
|
e == null ? void 0 : e.navLink
|
|
1351
1349
|
),
|
|
1352
|
-
children:
|
|
1350
|
+
children: n
|
|
1353
1351
|
},
|
|
1354
|
-
|
|
1352
|
+
n
|
|
1355
1353
|
)) })
|
|
1356
|
-
] },
|
|
1357
|
-
const [
|
|
1354
|
+
] }, i)) }), _e = ({ ligal: r, classes: e }) => {
|
|
1355
|
+
const [i, o] = s.useState(!1), [n, d] = s.useState(!1), l = s.useRef(null);
|
|
1358
1356
|
return s.useEffect(() => {
|
|
1359
1357
|
const u = l.current;
|
|
1360
1358
|
u && d(u.scrollHeight > u.clientHeight);
|
|
1361
1359
|
}, []), /* @__PURE__ */ t.jsxs("div", { className: a("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
1362
|
-
/* @__PURE__ */ t.jsx("p", { ref: l, className: a("desk-body-regular-m text-color-footer", { "line-clamp-3": !
|
|
1363
|
-
|
|
1360
|
+
/* @__PURE__ */ t.jsx("p", { ref: l, className: a("desk-body-regular-m text-color-footer", { "line-clamp-3": !i }, e == null ? void 0 : e.ligal), children: r }),
|
|
1361
|
+
n && /* @__PURE__ */ t.jsx(
|
|
1364
1362
|
"div",
|
|
1365
1363
|
{
|
|
1366
1364
|
tabIndex: 0,
|
|
@@ -1377,9 +1375,9 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1377
1375
|
}, Ce = ({ text: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: a("desk-body-regular-m text-color-footer", e == null ? void 0 : e.text), children: r }), We = ({
|
|
1378
1376
|
withSocial: r = !0,
|
|
1379
1377
|
withPhones: e = !0,
|
|
1380
|
-
withNavLinks:
|
|
1378
|
+
withNavLinks: i = !0,
|
|
1381
1379
|
withLigal: o = !0,
|
|
1382
|
-
withCopyright:
|
|
1380
|
+
withCopyright: n = !0,
|
|
1383
1381
|
withSiteMap: d = !0,
|
|
1384
1382
|
socialsLinks: l = se,
|
|
1385
1383
|
phones: u = we,
|
|
@@ -1395,10 +1393,10 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1395
1393
|
] }),
|
|
1396
1394
|
e && /* @__PURE__ */ t.jsx(Ne, { phones: u, classes: p })
|
|
1397
1395
|
] }),
|
|
1398
|
-
|
|
1396
|
+
i && /* @__PURE__ */ t.jsx(De, { navigationLinks: f, classes: p }),
|
|
1399
1397
|
o && /* @__PURE__ */ t.jsx(_e, { ligal: y, classes: p }),
|
|
1400
1398
|
/* @__PURE__ */ t.jsxs("div", { className: "mt-6 flex items-start justify-between gap-6", children: [
|
|
1401
|
-
|
|
1399
|
+
n && /* @__PURE__ */ t.jsx(Ce, { text: v, classes: p }),
|
|
1402
1400
|
d && /* @__PURE__ */ t.jsx(
|
|
1403
1401
|
"a",
|
|
1404
1402
|
{
|
|
@@ -1415,13 +1413,13 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1415
1413
|
case "withButton":
|
|
1416
1414
|
return /* @__PURE__ */ t.jsx(E, { intent: "secondary", size: "sm", children: "Оформить заявку" });
|
|
1417
1415
|
case "withPhone":
|
|
1418
|
-
const { phone: e, phoneText:
|
|
1419
|
-
return /* @__PURE__ */ t.jsx(S, { phone: e, text:
|
|
1416
|
+
const { phone: e, phoneText: i } = r;
|
|
1417
|
+
return /* @__PURE__ */ t.jsx(S, { phone: e, text: i });
|
|
1420
1418
|
default:
|
|
1421
1419
|
return null;
|
|
1422
1420
|
}
|
|
1423
1421
|
}, Xe = (r) => {
|
|
1424
|
-
const { logoPath: e = "/", logoType:
|
|
1422
|
+
const { logoPath: e = "/", logoType: i = "main" } = r;
|
|
1425
1423
|
return /* @__PURE__ */ t.jsx("header", { className: "flex h-[72px] items-center justify-center bg-color-blue-grey-200", children: /* @__PURE__ */ t.jsx(h, { children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between gap-5", children: [
|
|
1426
1424
|
/* @__PURE__ */ t.jsx(
|
|
1427
1425
|
"a",
|
|
@@ -1429,17 +1427,17 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1429
1427
|
href: e,
|
|
1430
1428
|
target: "_blank",
|
|
1431
1429
|
rel: "noreferrer",
|
|
1432
|
-
className: "flex items-center justify-center [&_svg]:h-[32px] [&_svg]:w-[192px]",
|
|
1433
|
-
children: me[
|
|
1430
|
+
className: "flex items-center justify-center [&_svg]:w-[114px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
1431
|
+
children: me[i]
|
|
1434
1432
|
}
|
|
1435
1433
|
),
|
|
1436
1434
|
Ee(r)
|
|
1437
1435
|
] }) }) });
|
|
1438
|
-
}, Te = ({ title: r, description: e, index:
|
|
1436
|
+
}, Te = ({ title: r, description: e, index: i, classes: o }) => /* @__PURE__ */ t.jsxs(
|
|
1439
1437
|
"div",
|
|
1440
1438
|
{
|
|
1441
1439
|
className: a(
|
|
1442
|
-
"
|
|
1440
|
+
"border-color-blue-grey-500 flex w-[328px] max-w-[328px] flex-col gap-6 rounded-md border border-solid p-4 desktop:w-[348px] desktop:max-w-[348px] desktop:border-none desktop:p-0",
|
|
1443
1441
|
o == null ? void 0 : o.singleStep
|
|
1444
1442
|
),
|
|
1445
1443
|
children: [
|
|
@@ -1450,7 +1448,7 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1450
1448
|
"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",
|
|
1451
1449
|
o == null ? void 0 : o.numeric
|
|
1452
1450
|
),
|
|
1453
|
-
children:
|
|
1451
|
+
children: i
|
|
1454
1452
|
}
|
|
1455
1453
|
),
|
|
1456
1454
|
/* @__PURE__ */ t.jsxs("div", { className: a("flex flex-col gap-4", o == null ? void 0 : o.textBlock), children: [
|
|
@@ -1459,16 +1457,16 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1459
1457
|
] })
|
|
1460
1458
|
]
|
|
1461
1459
|
}
|
|
1462
|
-
), qe = ({ heading: r, stepsList: e, classes:
|
|
1463
|
-
/* @__PURE__ */ t.jsx(g, { as: "h2", className: a("text-color-dark",
|
|
1460
|
+
), qe = ({ heading: r, stepsList: e, classes: i }) => /* @__PURE__ */ t.jsx(R, { children: /* @__PURE__ */ t.jsx(h, { children: /* @__PURE__ */ t.jsxs("div", { className: a("flex flex-col gap-12", i == null ? void 0 : i.root), children: [
|
|
1461
|
+
/* @__PURE__ */ t.jsx(g, { as: "h2", className: a("text-color-dark", i == null ? void 0 : i.headline), children: r }),
|
|
1464
1462
|
/* @__PURE__ */ t.jsx(
|
|
1465
1463
|
"div",
|
|
1466
1464
|
{
|
|
1467
1465
|
className: a(
|
|
1468
1466
|
"flex flex-col items-start gap-6 desktop:flex-row desktop:items-center desktop:gap-12",
|
|
1469
|
-
|
|
1467
|
+
i == null ? void 0 : i.stepsWrapper
|
|
1470
1468
|
),
|
|
1471
|
-
children: e == null ? void 0 : e.map((o,
|
|
1469
|
+
children: e == null ? void 0 : e.map((o, n) => /* @__PURE__ */ t.jsx(Te, { index: n + 1, ...o, classes: i }, o.title))
|
|
1472
1470
|
}
|
|
1473
1471
|
)
|
|
1474
1472
|
] }) }) });
|