@scbt-ecom/ui 0.7.1 → 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 +141 -142
- 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
|
{
|
|
@@ -928,8 +928,8 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
928
928
|
D(function({ matchUtilities: r, theme: e }) {
|
|
929
929
|
r(
|
|
930
930
|
{
|
|
931
|
-
"bg-deg-gradient": (
|
|
932
|
-
"background-image": `linear-gradient(${
|
|
931
|
+
"bg-deg-gradient": (i) => ({
|
|
932
|
+
"background-image": `linear-gradient(${i}, var(--tw-gradient-stops))`
|
|
933
933
|
})
|
|
934
934
|
},
|
|
935
935
|
{
|
|
@@ -981,7 +981,6 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
981
981
|
}, Ze = {
|
|
982
982
|
theme: {
|
|
983
983
|
screens: {
|
|
984
|
-
mobile: "1187px",
|
|
985
984
|
desktop: "1188px"
|
|
986
985
|
},
|
|
987
986
|
backgroundColor: {
|
|
@@ -1020,8 +1019,8 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1020
1019
|
D(function({ matchUtilities: r, theme: e }) {
|
|
1021
1020
|
r(
|
|
1022
1021
|
{
|
|
1023
|
-
"bg-deg-gradient": (
|
|
1024
|
-
"background-image": `linear-gradient(${
|
|
1022
|
+
"bg-deg-gradient": (i) => ({
|
|
1023
|
+
"background-image": `linear-gradient(${i}, var(--tw-gradient-stops))`
|
|
1025
1024
|
})
|
|
1026
1025
|
},
|
|
1027
1026
|
{
|
|
@@ -1030,18 +1029,18 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1030
1029
|
);
|
|
1031
1030
|
})
|
|
1032
1031
|
]
|
|
1033
|
-
}, q = ({ buttonsConfig: r, classes: e, className:
|
|
1034
|
-
var
|
|
1032
|
+
}, q = ({ buttonsConfig: r, classes: e, className: i }) => {
|
|
1033
|
+
var n;
|
|
1035
1034
|
const o = (r == null ? void 0 : r.secondary) && r.secondary.children;
|
|
1036
1035
|
return /* @__PURE__ */ t.jsxs(
|
|
1037
1036
|
"div",
|
|
1038
1037
|
{
|
|
1039
1038
|
"data-id": "banner-buttons-group",
|
|
1040
1039
|
className: a(
|
|
1041
|
-
"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",
|
|
1042
1041
|
{ "flex items-center gap-4": o },
|
|
1043
1042
|
e == null ? void 0 : e.group,
|
|
1044
|
-
|
|
1043
|
+
i
|
|
1045
1044
|
),
|
|
1046
1045
|
children: [
|
|
1047
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 }),
|
|
@@ -1052,7 +1051,7 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1052
1051
|
...r == null ? void 0 : r.secondary,
|
|
1053
1052
|
isFull: !0,
|
|
1054
1053
|
className: a("desktop:max-w-[216px]", e == null ? void 0 : e.secondary),
|
|
1055
|
-
children: (
|
|
1054
|
+
children: (n = r == null ? void 0 : r.secondary) == null ? void 0 : n.children
|
|
1056
1055
|
}
|
|
1057
1056
|
)
|
|
1058
1057
|
]
|
|
@@ -1062,52 +1061,52 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1062
1061
|
"div",
|
|
1063
1062
|
{
|
|
1064
1063
|
className: a(
|
|
1065
|
-
"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",
|
|
1066
1065
|
e == null ? void 0 : e.wrapper
|
|
1067
1066
|
),
|
|
1068
|
-
children: r == null ? void 0 : r.map(({ title:
|
|
1067
|
+
children: r == null ? void 0 : r.map(({ title: i, description: o }) => /* @__PURE__ */ t.jsxs(
|
|
1069
1068
|
"div",
|
|
1070
1069
|
{
|
|
1071
1070
|
className: a(
|
|
1072
|
-
'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',
|
|
1073
1072
|
e == null ? void 0 : e.advantage
|
|
1074
1073
|
),
|
|
1075
1074
|
children: [
|
|
1076
|
-
/* @__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 }),
|
|
1077
1076
|
/* @__PURE__ */ t.jsx("p", { className: a("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.description), children: o })
|
|
1078
1077
|
]
|
|
1079
1078
|
},
|
|
1080
|
-
|
|
1079
|
+
i
|
|
1081
1080
|
))
|
|
1082
1081
|
}
|
|
1083
1082
|
), A = ({
|
|
1084
1083
|
headTitle: r,
|
|
1085
1084
|
subtitle: e,
|
|
1086
|
-
buttonsConfig:
|
|
1085
|
+
buttonsConfig: i,
|
|
1087
1086
|
advantagesList: o,
|
|
1088
|
-
classes:
|
|
1087
|
+
classes: n,
|
|
1089
1088
|
img: d
|
|
1090
1089
|
}) => {
|
|
1091
|
-
const l = Object.keys(
|
|
1092
|
-
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: [
|
|
1093
1092
|
/* @__PURE__ */ t.jsxs(
|
|
1094
1093
|
"div",
|
|
1095
1094
|
{
|
|
1096
1095
|
"data-id": "banner-grid",
|
|
1097
|
-
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),
|
|
1098
1097
|
children: [
|
|
1099
1098
|
/* @__PURE__ */ t.jsxs(
|
|
1100
1099
|
"div",
|
|
1101
1100
|
{
|
|
1102
1101
|
"data-id": "banner-text-block",
|
|
1103
|
-
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),
|
|
1104
1103
|
children: [
|
|
1105
|
-
/* @__PURE__ */ t.jsx(g, { "data-id": "banner-title", as: "h1", className: a("text-color-dark",
|
|
1106
|
-
/* @__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 })
|
|
1107
1106
|
]
|
|
1108
1107
|
}
|
|
1109
1108
|
),
|
|
1110
|
-
/* @__PURE__ */ t.jsx(q, { buttonsConfig:
|
|
1109
|
+
/* @__PURE__ */ t.jsx(q, { buttonsConfig: i, classes: n }),
|
|
1111
1110
|
/* @__PURE__ */ t.jsx(
|
|
1112
1111
|
"div",
|
|
1113
1112
|
{
|
|
@@ -1116,7 +1115,7 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1116
1115
|
"grid-image-apply w-full desktop:h-full desktop:w-[550px]",
|
|
1117
1116
|
{ "h-[450px]": l === 2 },
|
|
1118
1117
|
{ "h-[410px]": l === 1 },
|
|
1119
|
-
|
|
1118
|
+
n == null ? void 0 : n.imageContainer
|
|
1120
1119
|
),
|
|
1121
1120
|
children: /* @__PURE__ */ t.jsx(
|
|
1122
1121
|
"img",
|
|
@@ -1124,7 +1123,7 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1124
1123
|
"data-id": "banner-image",
|
|
1125
1124
|
src: d,
|
|
1126
1125
|
alt: "Картинка баннера",
|
|
1127
|
-
className: a("h-full w-full object-contain",
|
|
1126
|
+
className: a("h-full w-full object-contain", n == null ? void 0 : n.image)
|
|
1128
1127
|
}
|
|
1129
1128
|
)
|
|
1130
1129
|
}
|
|
@@ -1136,20 +1135,20 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1136
1135
|
"div",
|
|
1137
1136
|
{
|
|
1138
1137
|
"data-id": "banner-advantages",
|
|
1139
|
-
className: a("absolute bottom-[-400px] right-1/2 translate-x-1/2 desktop:bottom-[-50px]",
|
|
1140
|
-
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 })
|
|
1141
1140
|
}
|
|
1142
1141
|
)
|
|
1143
1142
|
] }) });
|
|
1144
1143
|
}, he = ({
|
|
1145
1144
|
headTitle: r,
|
|
1146
1145
|
subtitle: e,
|
|
1147
|
-
buttonsConfig:
|
|
1146
|
+
buttonsConfig: i,
|
|
1148
1147
|
advantagesList: o,
|
|
1149
|
-
classes:
|
|
1148
|
+
classes: n,
|
|
1150
1149
|
img: d,
|
|
1151
1150
|
imgSets: l
|
|
1152
|
-
}) => /* @__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: [
|
|
1153
1152
|
/* @__PURE__ */ t.jsx(
|
|
1154
1153
|
"div",
|
|
1155
1154
|
{
|
|
@@ -1164,20 +1163,20 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1164
1163
|
"data-id": "banner-image",
|
|
1165
1164
|
src: d,
|
|
1166
1165
|
alt: "Картинка баннера",
|
|
1167
|
-
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)
|
|
1168
1167
|
}
|
|
1169
1168
|
)
|
|
1170
1169
|
] })
|
|
1171
1170
|
}
|
|
1172
1171
|
),
|
|
1173
|
-
/* @__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: [
|
|
1174
1173
|
/* @__PURE__ */ t.jsxs(
|
|
1175
1174
|
"div",
|
|
1176
1175
|
{
|
|
1177
1176
|
"data-id": "banner-grid",
|
|
1178
1177
|
className: a(
|
|
1179
1178
|
"grid-mob-full-img-apply desktop:grid-desk-full-img-apply grid h-full grid-rows-[repeat(2,_min-content)]",
|
|
1180
|
-
|
|
1179
|
+
n == null ? void 0 : n.wrapper
|
|
1181
1180
|
),
|
|
1182
1181
|
children: [
|
|
1183
1182
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1185,22 +1184,22 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1185
1184
|
{
|
|
1186
1185
|
"data-id": "banner-text-block",
|
|
1187
1186
|
className: a(
|
|
1188
|
-
"grid-text-apply flex flex-col gap-4 pt-6
|
|
1189
|
-
|
|
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
|
|
1190
1189
|
),
|
|
1191
1190
|
children: [
|
|
1192
|
-
/* @__PURE__ */ t.jsx(g, { "data-id": "banner-title", as: "h1", className: a("text-color-white",
|
|
1193
|
-
/* @__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 })
|
|
1194
1193
|
]
|
|
1195
1194
|
}
|
|
1196
1195
|
),
|
|
1197
1196
|
/* @__PURE__ */ t.jsx(
|
|
1198
1197
|
q,
|
|
1199
1198
|
{
|
|
1200
|
-
className: "
|
|
1199
|
+
className: "self-end desktop:self-center",
|
|
1201
1200
|
"data-id": "banner-buttons-group",
|
|
1202
|
-
buttonsConfig:
|
|
1203
|
-
classes:
|
|
1201
|
+
buttonsConfig: i,
|
|
1202
|
+
classes: n
|
|
1204
1203
|
}
|
|
1205
1204
|
)
|
|
1206
1205
|
]
|
|
@@ -1210,7 +1209,7 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1210
1209
|
"div",
|
|
1211
1210
|
{
|
|
1212
1211
|
"data-id": "banner-advantages",
|
|
1213
|
-
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),
|
|
1214
1213
|
children: o && (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t.jsx(J, { "data-id": "banner-advantages-list", advantagesList: o })
|
|
1215
1214
|
}
|
|
1216
1215
|
)
|
|
@@ -1318,18 +1317,18 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1318
1317
|
{ text: "Офисы и банкоматы", href: "/" }
|
|
1319
1318
|
]
|
|
1320
1319
|
}
|
|
1321
|
-
], 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(
|
|
1322
1321
|
"a",
|
|
1323
1322
|
{
|
|
1324
1323
|
className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
1325
1324
|
href: o,
|
|
1326
|
-
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) })
|
|
1327
1326
|
},
|
|
1328
1327
|
o
|
|
1329
|
-
)) }), 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(
|
|
1330
1329
|
S,
|
|
1331
1330
|
{
|
|
1332
|
-
phone:
|
|
1331
|
+
phone: i,
|
|
1333
1332
|
text: o,
|
|
1334
1333
|
classes: {
|
|
1335
1334
|
wrapper: a(e == null ? void 0 : e.phoneWrapper),
|
|
@@ -1337,10 +1336,10 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1337
1336
|
link: a("text-color-white", e == null ? void 0 : e.phoneLink)
|
|
1338
1337
|
}
|
|
1339
1338
|
},
|
|
1340
|
-
|
|
1341
|
-
)) }), 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:
|
|
1342
|
-
/* @__PURE__ */ t.jsx("div", { className: a("desk-body-regular-m font-medium text-color-white", e == null ? void 0 : e.navLabel), children:
|
|
1343
|
-
/* @__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(
|
|
1344
1343
|
"a",
|
|
1345
1344
|
{
|
|
1346
1345
|
href: d,
|
|
@@ -1348,18 +1347,18 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1348
1347
|
"desk-body-regular-m cursor-pointer text-color-white transition-colors hover:text-color-footer",
|
|
1349
1348
|
e == null ? void 0 : e.navLink
|
|
1350
1349
|
),
|
|
1351
|
-
children:
|
|
1350
|
+
children: n
|
|
1352
1351
|
},
|
|
1353
|
-
|
|
1352
|
+
n
|
|
1354
1353
|
)) })
|
|
1355
|
-
] },
|
|
1356
|
-
const [
|
|
1354
|
+
] }, i)) }), _e = ({ ligal: r, classes: e }) => {
|
|
1355
|
+
const [i, o] = s.useState(!1), [n, d] = s.useState(!1), l = s.useRef(null);
|
|
1357
1356
|
return s.useEffect(() => {
|
|
1358
1357
|
const u = l.current;
|
|
1359
1358
|
u && d(u.scrollHeight > u.clientHeight);
|
|
1360
1359
|
}, []), /* @__PURE__ */ t.jsxs("div", { className: a("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
1361
|
-
/* @__PURE__ */ t.jsx("p", { ref: l, className: a("desk-body-regular-m text-color-footer", { "line-clamp-3": !
|
|
1362
|
-
|
|
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(
|
|
1363
1362
|
"div",
|
|
1364
1363
|
{
|
|
1365
1364
|
tabIndex: 0,
|
|
@@ -1376,9 +1375,9 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1376
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 = ({
|
|
1377
1376
|
withSocial: r = !0,
|
|
1378
1377
|
withPhones: e = !0,
|
|
1379
|
-
withNavLinks:
|
|
1378
|
+
withNavLinks: i = !0,
|
|
1380
1379
|
withLigal: o = !0,
|
|
1381
|
-
withCopyright:
|
|
1380
|
+
withCopyright: n = !0,
|
|
1382
1381
|
withSiteMap: d = !0,
|
|
1383
1382
|
socialsLinks: l = se,
|
|
1384
1383
|
phones: u = we,
|
|
@@ -1394,10 +1393,10 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1394
1393
|
] }),
|
|
1395
1394
|
e && /* @__PURE__ */ t.jsx(Ne, { phones: u, classes: p })
|
|
1396
1395
|
] }),
|
|
1397
|
-
|
|
1396
|
+
i && /* @__PURE__ */ t.jsx(De, { navigationLinks: f, classes: p }),
|
|
1398
1397
|
o && /* @__PURE__ */ t.jsx(_e, { ligal: y, classes: p }),
|
|
1399
1398
|
/* @__PURE__ */ t.jsxs("div", { className: "mt-6 flex items-start justify-between gap-6", children: [
|
|
1400
|
-
|
|
1399
|
+
n && /* @__PURE__ */ t.jsx(Ce, { text: v, classes: p }),
|
|
1401
1400
|
d && /* @__PURE__ */ t.jsx(
|
|
1402
1401
|
"a",
|
|
1403
1402
|
{
|
|
@@ -1414,13 +1413,13 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1414
1413
|
case "withButton":
|
|
1415
1414
|
return /* @__PURE__ */ t.jsx(E, { intent: "secondary", size: "sm", children: "Оформить заявку" });
|
|
1416
1415
|
case "withPhone":
|
|
1417
|
-
const { phone: e, phoneText:
|
|
1418
|
-
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 });
|
|
1419
1418
|
default:
|
|
1420
1419
|
return null;
|
|
1421
1420
|
}
|
|
1422
1421
|
}, Xe = (r) => {
|
|
1423
|
-
const { logoPath: e = "/", logoType:
|
|
1422
|
+
const { logoPath: e = "/", logoType: i = "main" } = r;
|
|
1424
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: [
|
|
1425
1424
|
/* @__PURE__ */ t.jsx(
|
|
1426
1425
|
"a",
|
|
@@ -1428,17 +1427,17 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1428
1427
|
href: e,
|
|
1429
1428
|
target: "_blank",
|
|
1430
1429
|
rel: "noreferrer",
|
|
1431
|
-
className: "flex items-center justify-center [&_svg]:h-[32px] [&_svg]:w-[192px]",
|
|
1432
|
-
children: me[
|
|
1430
|
+
className: "flex items-center justify-center [&_svg]:w-[114px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
1431
|
+
children: me[i]
|
|
1433
1432
|
}
|
|
1434
1433
|
),
|
|
1435
1434
|
Ee(r)
|
|
1436
1435
|
] }) }) });
|
|
1437
|
-
}, Te = ({ title: r, description: e, index:
|
|
1436
|
+
}, Te = ({ title: r, description: e, index: i, classes: o }) => /* @__PURE__ */ t.jsxs(
|
|
1438
1437
|
"div",
|
|
1439
1438
|
{
|
|
1440
1439
|
className: a(
|
|
1441
|
-
"
|
|
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",
|
|
1442
1441
|
o == null ? void 0 : o.singleStep
|
|
1443
1442
|
),
|
|
1444
1443
|
children: [
|
|
@@ -1449,7 +1448,7 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1449
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",
|
|
1450
1449
|
o == null ? void 0 : o.numeric
|
|
1451
1450
|
),
|
|
1452
|
-
children:
|
|
1451
|
+
children: i
|
|
1453
1452
|
}
|
|
1454
1453
|
),
|
|
1455
1454
|
/* @__PURE__ */ t.jsxs("div", { className: a("flex flex-col gap-4", o == null ? void 0 : o.textBlock), children: [
|
|
@@ -1458,16 +1457,16 @@ const X = /* @__PURE__ */ z(ge), Ue = {
|
|
|
1458
1457
|
] })
|
|
1459
1458
|
]
|
|
1460
1459
|
}
|
|
1461
|
-
), qe = ({ heading: r, stepsList: e, classes:
|
|
1462
|
-
/* @__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 }),
|
|
1463
1462
|
/* @__PURE__ */ t.jsx(
|
|
1464
1463
|
"div",
|
|
1465
1464
|
{
|
|
1466
1465
|
className: a(
|
|
1467
1466
|
"flex flex-col items-start gap-6 desktop:flex-row desktop:items-center desktop:gap-12",
|
|
1468
|
-
|
|
1467
|
+
i == null ? void 0 : i.stepsWrapper
|
|
1469
1468
|
),
|
|
1470
|
-
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))
|
|
1471
1470
|
}
|
|
1472
1471
|
)
|
|
1473
1472
|
] }) }) });
|