@scbt-ecom/ui 0.78.0 → 0.78.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/widget.js +76 -76
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
package/dist/widget.js
CHANGED
|
@@ -13,10 +13,10 @@ var fe = (t, e, r, o) => ({
|
|
|
13
13
|
return x(t, e, o);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as bt, y as
|
|
16
|
+
import { S as bt, y as st, Q as Dt, z as S, E as Qe, F as Rt, G as Ht, J as Ve, T as Q, W as zt, X as Lt, Y as Qt, Z as Vt, _ as $e, $ as Ae, a0 as $t, a1 as Ue, a2 as qe, a3 as At, j as n, B as je, c as E, R as P, n as gt, t as Ut, H as L, i as s, v as ye, q as Se, L as qt, o as Ee, A as ae, w as jt, a4 as Wt, r as Kt, U as ke, s as Zt, a5 as Fe, a6 as Xt, M as Yt } from "./index-BUV7eJPv.js";
|
|
17
17
|
import { c as l, T as v } from "./typeGuards-CSiImkUY.js";
|
|
18
18
|
import * as me from "react";
|
|
19
|
-
import { lazy as F, useCallback as yt, useState as D, useMemo as we, createElement as kt, Fragment as Jt, useEffect as
|
|
19
|
+
import { lazy as F, useCallback as yt, useState as D, useMemo as we, createElement as kt, Fragment as Jt, useEffect as ge, useRef as Be, useReducer as Gt, memo as Pe, forwardRef as er } from "react";
|
|
20
20
|
import { i as Ie } from "./isClient-C9aZtt2Q.js";
|
|
21
21
|
import { scrollToElement as tr, createPhoneNumber as ve, getUuid as We, capitalize as rr } from "./utils.js";
|
|
22
22
|
import { u as ee, b as De, a as nr, g as Ne, F as or } from "./useDebounce-BH0d8exl.js";
|
|
@@ -31,7 +31,7 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
31
31
|
this.config = e, w(this, R, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
33
|
build(e, r, o) {
|
|
34
|
-
const i = r.queryKey, a = r.queryHash ??
|
|
34
|
+
const i = r.queryKey, a = r.queryHash ?? st(i, r);
|
|
35
35
|
let d = this.get(a);
|
|
36
36
|
return d || (d = new Dt({
|
|
37
37
|
client: e,
|
|
@@ -134,7 +134,7 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(e) {
|
|
137
|
-
var a, d, u, m, h, p, c, f, b, j,
|
|
137
|
+
var a, d, u, m, h, p, c, f, b, j, g, N, I, $, M, O, A, Y, pe, le;
|
|
138
138
|
const r = () => {
|
|
139
139
|
U(this, z, q).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
@@ -184,7 +184,7 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
184
184
|
this.state.variables,
|
|
185
185
|
this.state.context,
|
|
186
186
|
this
|
|
187
|
-
)), await ((N = (
|
|
187
|
+
)), await ((N = (g = this.options).onSettled) == null ? void 0 : N.call(g, C, null, e, this.state.context)), U(this, z, q).call(this, { type: "success", data: C }), C;
|
|
188
188
|
} catch (C) {
|
|
189
189
|
try {
|
|
190
190
|
throw await (($ = (I = x(this, T).config).onError) == null ? void 0 : $.call(
|
|
@@ -401,16 +401,16 @@ function Ke(t) {
|
|
|
401
401
|
const o = e.options, i = (f = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : f.direction, a = ((b = e.state.data) == null ? void 0 : b.pages) || [], d = ((j = e.state.data) == null ? void 0 : j.pageParams) || [];
|
|
402
402
|
let u = { pages: [], pageParams: [] }, m = 0;
|
|
403
403
|
const h = async () => {
|
|
404
|
-
let
|
|
404
|
+
let g = !1;
|
|
405
405
|
const N = (M) => {
|
|
406
406
|
Object.defineProperty(M, "signal", {
|
|
407
407
|
enumerable: !0,
|
|
408
|
-
get: () => (e.signal.aborted ?
|
|
409
|
-
|
|
408
|
+
get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
|
|
409
|
+
g = !0;
|
|
410
410
|
}), e.signal)
|
|
411
411
|
});
|
|
412
412
|
}, I = zt(e.options, e.fetchOptions), $ = async (M, O, A) => {
|
|
413
|
-
if (
|
|
413
|
+
if (g)
|
|
414
414
|
return Promise.reject();
|
|
415
415
|
if (O == null && M.pages.length)
|
|
416
416
|
return Promise.resolve(M);
|
|
@@ -448,9 +448,9 @@ function Ke(t) {
|
|
|
448
448
|
return u;
|
|
449
449
|
};
|
|
450
450
|
e.options.persister ? e.fetchFn = () => {
|
|
451
|
-
var
|
|
452
|
-
return (N = (
|
|
453
|
-
|
|
451
|
+
var g, N;
|
|
452
|
+
return (N = (g = e.options).persister) == null ? void 0 : N.call(
|
|
453
|
+
g,
|
|
454
454
|
h,
|
|
455
455
|
{
|
|
456
456
|
client: e.client,
|
|
@@ -667,7 +667,7 @@ var k, W, K, te, re, Z, ne, oe, ft, xr = (ft = class {
|
|
|
667
667
|
...t,
|
|
668
668
|
_defaulted: !0
|
|
669
669
|
};
|
|
670
|
-
return e.queryHash || (e.queryHash =
|
|
670
|
+
return e.queryHash || (e.queryHash = st(
|
|
671
671
|
e.queryKey,
|
|
672
672
|
e
|
|
673
673
|
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === At && (e.enabled = !1), e;
|
|
@@ -684,8 +684,8 @@ var k, W, K, te, re, Z, ne, oe, ft, xr = (ft = class {
|
|
|
684
684
|
x(this, k).clear(), x(this, W).clear();
|
|
685
685
|
}
|
|
686
686
|
}, k = new WeakMap(), W = new WeakMap(), K = new WeakMap(), te = new WeakMap(), re = new WeakMap(), Z = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), ft);
|
|
687
|
-
const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resolve().then(() => No)), fr = F(() => Promise.resolve().then(() => Hn)), br = F(() => Promise.resolve().then(() => Ln)),
|
|
688
|
-
header:
|
|
687
|
+
const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resolve().then(() => No)), fr = F(() => Promise.resolve().then(() => Hn)), br = F(() => Promise.resolve().then(() => Ln)), sr = F(() => Promise.resolve().then(() => $r)), gr = F(() => Promise.resolve().then(() => Fr)), jr = F(() => Promise.resolve().then(() => on)), yr = F(() => Promise.resolve().then(() => Jr)), kr = F(() => Promise.resolve().then(() => oo)), wr = F(() => Promise.resolve().then(() => Ur)), vr = F(() => Promise.resolve().then(() => _n)), Nr = F(() => Promise.resolve().then(() => Sr)), Cr = {
|
|
688
|
+
header: gr,
|
|
689
689
|
seoHeader: kr,
|
|
690
690
|
banner: pr,
|
|
691
691
|
calculator: cr,
|
|
@@ -696,7 +696,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
696
696
|
longBanner: yr,
|
|
697
697
|
usefulInfo: vr,
|
|
698
698
|
interLinking: jr,
|
|
699
|
-
footer:
|
|
699
|
+
footer: sr
|
|
700
700
|
}, Mr = Object.keys(Cr), y = Mr.reduce(
|
|
701
701
|
(t, e) => (t[e] = e, t),
|
|
702
702
|
{}
|
|
@@ -798,7 +798,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
798
798
|
case "withButton":
|
|
799
799
|
return /* @__PURE__ */ n.jsx(X, { ...e });
|
|
800
800
|
case "withPhone":
|
|
801
|
-
return /* @__PURE__ */ n.jsx(
|
|
801
|
+
return /* @__PURE__ */ n.jsx(gt, { classes: { root: "items-end" }, ...e, phone: ve(e.phone) });
|
|
802
802
|
default:
|
|
803
803
|
return null;
|
|
804
804
|
}
|
|
@@ -846,7 +846,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
846
846
|
renderImage: h
|
|
847
847
|
}) => {
|
|
848
848
|
var N;
|
|
849
|
-
const { isDesktop: p, isMobile: c } = ee(), { primary: f, secondary: b } = r || {}, j = (I) => h ? h(I) : /* @__PURE__ */ n.jsx("img", { ...I }),
|
|
849
|
+
const { isDesktop: p, isMobile: c } = ee(), { primary: f, secondary: b } = r || {}, j = (I) => h ? h(I) : /* @__PURE__ */ n.jsx("img", { ...I }), g = /* @__PURE__ */ n.jsx(
|
|
850
850
|
"div",
|
|
851
851
|
{
|
|
852
852
|
className: l(
|
|
@@ -918,12 +918,12 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
918
918
|
}
|
|
919
919
|
)
|
|
920
920
|
] }) }),
|
|
921
|
-
p && (o == null ? void 0 : o.enabled) &&
|
|
921
|
+
p && (o == null ? void 0 : o.enabled) && g
|
|
922
922
|
] })
|
|
923
923
|
]
|
|
924
924
|
}
|
|
925
925
|
),
|
|
926
|
-
c && (o == null ? void 0 : o.enabled) &&
|
|
926
|
+
c && (o == null ? void 0 : o.enabled) && g
|
|
927
927
|
] });
|
|
928
928
|
}, Je = ({
|
|
929
929
|
headTitle: t,
|
|
@@ -937,7 +937,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
937
937
|
color: m,
|
|
938
938
|
renderImage: h
|
|
939
939
|
}) => {
|
|
940
|
-
var j,
|
|
940
|
+
var j, g;
|
|
941
941
|
const { isMobile: p } = ee(), { primary: c, secondary: f } = r || {}, b = (N) => h ? h(N) : /* @__PURE__ */ n.jsx("img", { ...N });
|
|
942
942
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
943
943
|
/* @__PURE__ */ n.jsx(
|
|
@@ -1015,7 +1015,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1015
1015
|
"div",
|
|
1016
1016
|
{
|
|
1017
1017
|
className: l(
|
|
1018
|
-
"items-center justify-center rounded-md
|
|
1018
|
+
"items-center justify-center rounded-md p-4 pb-8 mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:flex desktop:translate-x-1/2 desktop:p-0",
|
|
1019
1019
|
i == null ? void 0 : i.advantageContainer
|
|
1020
1020
|
),
|
|
1021
1021
|
children: (o == null ? void 0 : o.details) && ((j = o == null ? void 0 : o.details) == null ? void 0 : j.items.length) > 0 && /* @__PURE__ */ n.jsx(Te, { ...o })
|
|
@@ -1028,10 +1028,10 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1028
1028
|
"div",
|
|
1029
1029
|
{
|
|
1030
1030
|
className: l(
|
|
1031
|
-
"flex items-center justify-center rounded-md
|
|
1031
|
+
"flex items-center justify-center rounded-md p-4 pb-8 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
|
|
1032
1032
|
i == null ? void 0 : i.advantageContainer
|
|
1033
1033
|
),
|
|
1034
|
-
children: (o == null ? void 0 : o.details) && ((
|
|
1034
|
+
children: (o == null ? void 0 : o.details) && ((g = o == null ? void 0 : o.details) == null ? void 0 : g.items.length) > 0 && /* @__PURE__ */ n.jsx(Te, { ...o })
|
|
1035
1035
|
}
|
|
1036
1036
|
)
|
|
1037
1037
|
] });
|
|
@@ -1082,11 +1082,11 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1082
1082
|
className: l("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
1083
1083
|
href: o,
|
|
1084
1084
|
"aria-label": r.replace("social/", ""),
|
|
1085
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1085
|
+
children: /* @__PURE__ */ n.jsx(s, { name: r, className: l("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
1086
1086
|
},
|
|
1087
1087
|
o
|
|
1088
1088
|
)) }), Rr = ({ phones: t, classes: e }) => /* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: r, text: o }) => /* @__PURE__ */ n.jsx(
|
|
1089
|
-
|
|
1089
|
+
gt,
|
|
1090
1090
|
{
|
|
1091
1091
|
phone: ve(r),
|
|
1092
1092
|
text: o,
|
|
@@ -1136,7 +1136,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1136
1136
|
"aria-label": "logo",
|
|
1137
1137
|
href: "https://sovcombank.ru/",
|
|
1138
1138
|
className: l("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
|
|
1139
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1139
|
+
children: /* @__PURE__ */ n.jsx(s, { name: "brandLogos/logoWhite", className: l("size-full", t == null ? void 0 : t.footerLogoIcon) })
|
|
1140
1140
|
}
|
|
1141
1141
|
), Qr = ({ classes: t }) => /* @__PURE__ */ n.jsx(
|
|
1142
1142
|
ye,
|
|
@@ -1382,7 +1382,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1382
1382
|
return /* @__PURE__ */ n.jsx("li", { className: l(Kr({ intent: e })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1383
1383
|
/* @__PURE__ */ n.jsxs("div", { className: l("mb-2 flex items-center gap-2"), children: [
|
|
1384
1384
|
/* @__PURE__ */ n.jsx("h4", { className: l("mob-title-bold-m text-color-dark"), children: r }),
|
|
1385
|
-
i.enabled && /* @__PURE__ */ n.jsx(Se, { triggerElement: /* @__PURE__ */ n.jsx(
|
|
1385
|
+
i.enabled && /* @__PURE__ */ n.jsx(Se, { triggerElement: /* @__PURE__ */ n.jsx(s, { className: l("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1386
1386
|
] }),
|
|
1387
1387
|
/* @__PURE__ */ n.jsx("div", { className: l("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1388
1388
|
] }) });
|
|
@@ -1529,12 +1529,12 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1529
1529
|
children: [
|
|
1530
1530
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1531
1531
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
1532
|
-
/* @__PURE__ */ n.jsx(
|
|
1533
|
-
/* @__PURE__ */ n.jsx(
|
|
1534
|
-
/* @__PURE__ */ n.jsx(
|
|
1532
|
+
/* @__PURE__ */ n.jsx(s, { name: "logos/mts", className: l("relative z-[9] size-7 desktop:size-8", a == null ? void 0 : a.mtsLogo) }),
|
|
1533
|
+
/* @__PURE__ */ n.jsx(s, { name: "logos/megafon", className: l("relative z-[8] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.megafonLogo) }),
|
|
1534
|
+
/* @__PURE__ */ n.jsx(s, { name: "logos/beeline", className: l("relative z-[7] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.beelineLogo) })
|
|
1535
1535
|
] }),
|
|
1536
1536
|
/* @__PURE__ */ n.jsx(Mt, { mainLink: t, subLink: e, isMobile: d, classes: a == null ? void 0 : a.links }),
|
|
1537
|
-
/* @__PURE__ */ n.jsx(
|
|
1537
|
+
/* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1538
1538
|
] }),
|
|
1539
1539
|
o && /* @__PURE__ */ n.jsx(Ee, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1540
1540
|
]
|
|
@@ -1554,7 +1554,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1554
1554
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1555
1555
|
/* @__PURE__ */ n.jsx(Gr, { className: l("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
|
|
1556
1556
|
/* @__PURE__ */ n.jsx(Mt, { mainLink: t, subLink: e, isMobile: d, classes: a == null ? void 0 : a.links }),
|
|
1557
|
-
/* @__PURE__ */ n.jsx(
|
|
1557
|
+
/* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1558
1558
|
] }),
|
|
1559
1559
|
o && /* @__PURE__ */ n.jsx(Ee, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1560
1560
|
]
|
|
@@ -1634,7 +1634,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1634
1634
|
{
|
|
1635
1635
|
defaultOpen: !0,
|
|
1636
1636
|
label: t,
|
|
1637
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
1637
|
+
icon: /* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1638
1638
|
...r,
|
|
1639
1639
|
classes: {
|
|
1640
1640
|
...r == null ? void 0 : r.classes,
|
|
@@ -1755,14 +1755,14 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1755
1755
|
children: a && a
|
|
1756
1756
|
},
|
|
1757
1757
|
d
|
|
1758
|
-
)) }),
|
|
1758
|
+
)) }), sn = E("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1759
1759
|
variants: {
|
|
1760
1760
|
tableVariant: {
|
|
1761
1761
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1762
1762
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
|
-
}),
|
|
1765
|
+
}), gn = ({ row: t, tableVariant: e, columnsVariant: r, headingsExist: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: l(sn({ tableVariant: e }), i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a, heading: d }, u) => /* @__PURE__ */ n.jsxs("div", { className: l("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
|
|
1766
1766
|
d && /* @__PURE__ */ n.jsx("div", { className: l("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: d }),
|
|
1767
1767
|
/* @__PURE__ */ n.jsx(
|
|
1768
1768
|
"div",
|
|
@@ -1794,7 +1794,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1794
1794
|
h
|
|
1795
1795
|
)),
|
|
1796
1796
|
a == null ? void 0 : a.map((m, h) => /* @__PURE__ */ n.jsx(
|
|
1797
|
-
|
|
1797
|
+
gn,
|
|
1798
1798
|
{
|
|
1799
1799
|
headingsExist: d,
|
|
1800
1800
|
tableVariant: t,
|
|
@@ -1853,7 +1853,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1853
1853
|
i == null ? void 0 : i.link
|
|
1854
1854
|
),
|
|
1855
1855
|
children: [
|
|
1856
|
-
/* @__PURE__ */ n.jsx(
|
|
1856
|
+
/* @__PURE__ */ n.jsx(s, { name: kn[o], className: l(wn({ iconType: o }), i == null ? void 0 : i.icon) }),
|
|
1857
1857
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1858
1858
|
/* @__PURE__ */ n.jsx("p", { className: l("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
|
|
1859
1859
|
/* @__PURE__ */ n.jsxs("div", { className: l("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
@@ -2036,7 +2036,7 @@ class Oe {
|
|
|
2036
2036
|
d.value.split(";").forEach((p) => {
|
|
2037
2037
|
const [c, f] = p.split(":");
|
|
2038
2038
|
if (c && f) {
|
|
2039
|
-
const b = c.trim().replace(/-([a-z])/g, (j,
|
|
2039
|
+
const b = c.trim().replace(/-([a-z])/g, (j, g) => g.toUpperCase());
|
|
2040
2040
|
h[b] = f.trim();
|
|
2041
2041
|
}
|
|
2042
2042
|
}), m = h;
|
|
@@ -2065,7 +2065,7 @@ class Oe {
|
|
|
2065
2065
|
de(Oe, "TEXT_NODE", 3), de(Oe, "ELEMENT_NODE", 1);
|
|
2066
2066
|
const Sn = ({ promises: t }) => {
|
|
2067
2067
|
const [e, r] = D([]);
|
|
2068
|
-
return
|
|
2068
|
+
return ge(() => {
|
|
2069
2069
|
(async () => {
|
|
2070
2070
|
r(await t);
|
|
2071
2071
|
})();
|
|
@@ -2125,7 +2125,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2125
2125
|
schema: c,
|
|
2126
2126
|
defaultValues: f,
|
|
2127
2127
|
mode: "onBlur"
|
|
2128
|
-
}),
|
|
2128
|
+
}), g = En(r, t), N = ir({ control: b, fields: g || [], schema: c }), I = (O) => {
|
|
2129
2129
|
u && u({ ...O, agree: h }), console.warn(O);
|
|
2130
2130
|
};
|
|
2131
2131
|
return /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsxs(
|
|
@@ -2149,7 +2149,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2149
2149
|
($ = d == null ? void 0 : d.chips) == null ? void 0 : $.root
|
|
2150
2150
|
),
|
|
2151
2151
|
children: [
|
|
2152
|
-
i.image && /* @__PURE__ */ n.jsx(
|
|
2152
|
+
i.image && /* @__PURE__ */ n.jsx(s, { name: i.image, className: l("size-4", (M = d == null ? void 0 : d.chips) == null ? void 0 : M.icon) }),
|
|
2153
2153
|
i.content
|
|
2154
2154
|
]
|
|
2155
2155
|
}
|
|
@@ -2223,14 +2223,14 @@ const Sn = ({ promises: t }) => {
|
|
|
2223
2223
|
classes: a,
|
|
2224
2224
|
...d
|
|
2225
2225
|
}) => {
|
|
2226
|
-
const { submitCallback: u, children: m, ...h } = o ?? {}, [p, c] = D(!1), f = ze(t), b = Re.getZodDefaults(f), { control: j, handleSubmit:
|
|
2226
|
+
const { submitCallback: u, children: m, ...h } = o ?? {}, [p, c] = D(!1), f = ze(t), b = Re.getZodDefaults(f), { control: j, handleSubmit: g } = De({
|
|
2227
2227
|
schema: f,
|
|
2228
2228
|
defaultValues: b,
|
|
2229
2229
|
mode: "onBlur"
|
|
2230
2230
|
}), N = (I) => {
|
|
2231
2231
|
u && u({ ...I, agree: p });
|
|
2232
2232
|
};
|
|
2233
|
-
return /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsx(Zt, { id: i, title: e, ...d, children: /* @__PURE__ */ n.jsxs("form", { onSubmit:
|
|
2233
|
+
return /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsx(Zt, { id: i, title: e, ...d, children: /* @__PURE__ */ n.jsxs("form", { onSubmit: g(N), className: "flex flex-col gap-6", children: [
|
|
2234
2234
|
/* @__PURE__ */ n.jsx(He, { control: j, fields: t }),
|
|
2235
2235
|
zn(r, p, c, a == null ? void 0 : a.approvement),
|
|
2236
2236
|
/* @__PURE__ */ n.jsx(je, { ...h, type: "submit", disabled: r.type === "checkbox" ? !p : !1, className: "w-full", children: m ?? "Отправить форму" })
|
|
@@ -2242,7 +2242,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2242
2242
|
}, Symbol.toStringTag, { value: "Module" })), ue = () => ({
|
|
2243
2243
|
approve: {
|
|
2244
2244
|
icon: {
|
|
2245
|
-
element: /* @__PURE__ */ n.jsx(
|
|
2245
|
+
element: /* @__PURE__ */ n.jsx(s, { name: "status/iconMark" }),
|
|
2246
2246
|
bg: "bg-color-positive-light"
|
|
2247
2247
|
},
|
|
2248
2248
|
title: "Ваша заявка отправлена",
|
|
@@ -2257,7 +2257,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2257
2257
|
},
|
|
2258
2258
|
repeated: {
|
|
2259
2259
|
icon: {
|
|
2260
|
-
element: /* @__PURE__ */ n.jsx(
|
|
2260
|
+
element: /* @__PURE__ */ n.jsx(s, { name: "status/iconUser" }),
|
|
2261
2261
|
bg: "bg-color-positive-light"
|
|
2262
2262
|
},
|
|
2263
2263
|
title: "Мы вас узнали",
|
|
@@ -2272,7 +2272,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2272
2272
|
},
|
|
2273
2273
|
error: {
|
|
2274
2274
|
icon: {
|
|
2275
|
-
element: /* @__PURE__ */ n.jsx(
|
|
2275
|
+
element: /* @__PURE__ */ n.jsx(s, { name: "status/iconRetry" }),
|
|
2276
2276
|
bg: "bg-color-warning-light"
|
|
2277
2277
|
},
|
|
2278
2278
|
title: "Что-то пошло не так",
|
|
@@ -2287,7 +2287,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2287
2287
|
},
|
|
2288
2288
|
reject: {
|
|
2289
2289
|
icon: {
|
|
2290
|
-
element: /* @__PURE__ */ n.jsx(
|
|
2290
|
+
element: /* @__PURE__ */ n.jsx(s, { name: "status/badSmile" }),
|
|
2291
2291
|
bg: "bg-color-negative-light"
|
|
2292
2292
|
},
|
|
2293
2293
|
title: "Нам очень жаль",
|
|
@@ -2318,7 +2318,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2318
2318
|
/* @__PURE__ */ n.jsx(je, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: ue()[t].button.text })
|
|
2319
2319
|
] }) }) }), Tt = ({ breadcrumb: t, className: e, ...r }) => /* @__PURE__ */ n.jsx("a", { href: t.path, className: l("desk-body-regular-m", e), ...r, children: t.label }), Qn = ({ startsWith: t, endsWith: e, matcher: r, filter: o, rootEnabled: i = !0 }) => {
|
|
2320
2320
|
const [a, d] = D([]);
|
|
2321
|
-
return
|
|
2321
|
+
return ge(() => {
|
|
2322
2322
|
if (!Ie)
|
|
2323
2323
|
return;
|
|
2324
2324
|
let u = window.location.pathname.split("/").filter((p) => !v.isStringEmpty(p));
|
|
@@ -2349,7 +2349,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2349
2349
|
...r(p)
|
|
2350
2350
|
}))), d(o ? m.filter(o) : m);
|
|
2351
2351
|
}, [e, o, r, i, t]), a;
|
|
2352
|
-
},
|
|
2352
|
+
}, se = (t, e, r, o) => t.map((i, a) => {
|
|
2353
2353
|
const d = a === o;
|
|
2354
2354
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2355
2355
|
/* @__PURE__ */ n.jsx(
|
|
@@ -2369,7 +2369,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2369
2369
|
const u = Qn(o), { first: m, middle: h, last: p } = we(() => {
|
|
2370
2370
|
let f = [], b = [], j = [];
|
|
2371
2371
|
return e && (f = u.slice(0, e), b = u.slice(e, u.length - e), j = u.slice(u.length - e)), { first: f, middle: b, last: j };
|
|
2372
|
-
}, [u, e]), c = t ?? /* @__PURE__ */ n.jsx(
|
|
2372
|
+
}, [u, e]), c = t ?? /* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("size-4", r == null ? void 0 : r.separator) });
|
|
2373
2373
|
return /* @__PURE__ */ n.jsx(
|
|
2374
2374
|
"div",
|
|
2375
2375
|
{
|
|
@@ -2384,7 +2384,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2384
2384
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2385
2385
|
// render hidden breadcrumbs
|
|
2386
2386
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2387
|
-
|
|
2387
|
+
se(m, c, r == null ? void 0 : r.breadcrumb),
|
|
2388
2388
|
c,
|
|
2389
2389
|
h.length > 0 && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2390
2390
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
@@ -2418,15 +2418,15 @@ const Sn = ({ promises: t }) => {
|
|
|
2418
2418
|
] }),
|
|
2419
2419
|
c
|
|
2420
2420
|
] }),
|
|
2421
|
-
|
|
2421
|
+
se(p, c, r == null ? void 0 : r.breadcrumb, p.length - 1)
|
|
2422
2422
|
] })
|
|
2423
2423
|
) : (
|
|
2424
2424
|
// otherwise render all breadcrumbs
|
|
2425
|
-
|
|
2425
|
+
se(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2426
2426
|
) })
|
|
2427
2427
|
) : (
|
|
2428
2428
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2429
|
-
|
|
2429
|
+
se(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2430
2430
|
)
|
|
2431
2431
|
}
|
|
2432
2432
|
);
|
|
@@ -2479,7 +2479,7 @@ const $n = (t, e) => {
|
|
|
2479
2479
|
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
2480
2480
|
children: [
|
|
2481
2481
|
i.title,
|
|
2482
|
-
/* @__PURE__ */ n.jsx(
|
|
2482
|
+
/* @__PURE__ */ n.jsx(s, { name: "arrows/arrowLink", className: "size-6" })
|
|
2483
2483
|
]
|
|
2484
2484
|
}
|
|
2485
2485
|
),
|
|
@@ -2607,7 +2607,7 @@ const $n = (t, e) => {
|
|
|
2607
2607
|
const [o, i] = An({ root: t[0].children[0], current: t[0].children[0] });
|
|
2608
2608
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2609
2609
|
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2610
|
-
/* @__PURE__ */ n.jsx(
|
|
2610
|
+
/* @__PURE__ */ n.jsx(s, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2611
2611
|
t.map((a) => {
|
|
2612
2612
|
const d = o.root.title === a.title;
|
|
2613
2613
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -2629,7 +2629,7 @@ const $n = (t, e) => {
|
|
|
2629
2629
|
href: a.link.href,
|
|
2630
2630
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2631
2631
|
children: [
|
|
2632
|
-
a.link.icon && /* @__PURE__ */ n.jsx(
|
|
2632
|
+
a.link.icon && /* @__PURE__ */ n.jsx(s, { name: a.link.icon, className: "size-4" }),
|
|
2633
2633
|
a.title
|
|
2634
2634
|
]
|
|
2635
2635
|
},
|
|
@@ -2651,7 +2651,7 @@ const $n = (t, e) => {
|
|
|
2651
2651
|
ae,
|
|
2652
2652
|
{
|
|
2653
2653
|
label: t.title ?? "",
|
|
2654
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2654
|
+
icon: /* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
2655
2655
|
classes: {
|
|
2656
2656
|
root: "w-full",
|
|
2657
2657
|
header: {
|
|
@@ -2676,7 +2676,7 @@ const $n = (t, e) => {
|
|
|
2676
2676
|
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2677
2677
|
children: [
|
|
2678
2678
|
e.title,
|
|
2679
|
-
/* @__PURE__ */ n.jsx(
|
|
2679
|
+
/* @__PURE__ */ n.jsx(s, { name: "arrows/arrowLink" })
|
|
2680
2680
|
]
|
|
2681
2681
|
}
|
|
2682
2682
|
),
|
|
@@ -2721,12 +2721,12 @@ const $n = (t, e) => {
|
|
|
2721
2721
|
e.map((h) => {
|
|
2722
2722
|
var p, c;
|
|
2723
2723
|
return /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: (p = h.link) == null ? void 0 : p.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2724
|
-
((c = h.link) == null ? void 0 : c.icon) && /* @__PURE__ */ n.jsx(
|
|
2724
|
+
((c = h.link) == null ? void 0 : c.icon) && /* @__PURE__ */ n.jsx(s, { name: h.link.icon, className: "size-4" }),
|
|
2725
2725
|
h.title
|
|
2726
2726
|
] }) }, h.title);
|
|
2727
2727
|
}),
|
|
2728
2728
|
/* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: `tel:${r}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2729
|
-
/* @__PURE__ */ n.jsx(
|
|
2729
|
+
/* @__PURE__ */ n.jsx(s, { name: "communication/phone", className: "size-4" }),
|
|
2730
2730
|
ve(r)
|
|
2731
2731
|
] }) })
|
|
2732
2732
|
] })
|
|
@@ -2737,8 +2737,8 @@ const $n = (t, e) => {
|
|
|
2737
2737
|
var m, h, p;
|
|
2738
2738
|
const o = Be(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, d] = D(!1), u = () => d(!a);
|
|
2739
2739
|
return /* @__PURE__ */ n.jsxs("div", { ref: o, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
|
|
2740
|
-
/* @__PURE__ */ n.jsx(
|
|
2741
|
-
/* @__PURE__ */ n.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ n.jsx(
|
|
2740
|
+
/* @__PURE__ */ n.jsx(s, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2741
|
+
/* @__PURE__ */ n.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ n.jsx(s, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2742
2742
|
a && Nt(
|
|
2743
2743
|
/* @__PURE__ */ n.jsx(
|
|
2744
2744
|
ro,
|
|
@@ -2813,7 +2813,7 @@ const $n = (t, e) => {
|
|
|
2813
2813
|
Se,
|
|
2814
2814
|
{
|
|
2815
2815
|
withCloseBtn: !1,
|
|
2816
|
-
triggerElement: /* @__PURE__ */ n.jsx(
|
|
2816
|
+
triggerElement: /* @__PURE__ */ n.jsx(s, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
2817
2817
|
children: /* @__PURE__ */ n.jsx("p", { children: t })
|
|
2818
2818
|
}
|
|
2819
2819
|
)
|
|
@@ -2833,10 +2833,10 @@ const $n = (t, e) => {
|
|
|
2833
2833
|
return /* @__PURE__ */ n.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ n.jsx(xo, { ...i }, i.label)) });
|
|
2834
2834
|
}, co = ({ iconName: t, text: e, hint: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2835
2835
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2836
|
-
/* @__PURE__ */ n.jsx(
|
|
2836
|
+
/* @__PURE__ */ n.jsx(s, { name: t, className: "size-6 text-icon-blue-grey-800" }),
|
|
2837
2837
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
|
|
2838
2838
|
] }),
|
|
2839
|
-
r && /* @__PURE__ */ n.jsx(Se, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ n.jsx(
|
|
2839
|
+
r && /* @__PURE__ */ n.jsx(Se, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ n.jsx(s, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ n.jsx("p", { children: r }) })
|
|
2840
2840
|
] }), fo = ({ assistHint: t, buttonsConfig: e, bottomDescription: r }) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
2841
2841
|
t && /* @__PURE__ */ n.jsx(co, { ...t }),
|
|
2842
2842
|
/* @__PURE__ */ n.jsx("div", { className: l("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(X, { className: "w-full", ...o }, i)) }),
|
|
@@ -2856,14 +2856,14 @@ const $n = (t, e) => {
|
|
|
2856
2856
|
/* @__PURE__ */ n.jsx(mo, { title: o, subtitle: i }),
|
|
2857
2857
|
/* @__PURE__ */ n.jsx(po, { infoList: d }),
|
|
2858
2858
|
/* @__PURE__ */ n.jsx(fo, { assistHint: m, buttonsConfig: a, bottomDescription: e })
|
|
2859
|
-
] }),
|
|
2859
|
+
] }), so = 2e4, Ft = ({
|
|
2860
2860
|
slidersGroupConfig: t,
|
|
2861
2861
|
additionalSliderGroupConfig: e
|
|
2862
2862
|
}) => {
|
|
2863
|
-
const [r, o] = D(!1), { watch: i, setValue: a } = Ne(), d = t == null ? void 0 : t.fields.find(({ args: I }) => I.name === "sum"), { args: u } = d || {}, { max: m, name: h, defaultValue: p } = u || {}, c = i(h), { min: f, name: b } = (e == null ? void 0 : e.args) ?? {}, j = i(b),
|
|
2864
|
-
return
|
|
2865
|
-
j >
|
|
2866
|
-
}, [
|
|
2863
|
+
const [r, o] = D(!1), { watch: i, setValue: a } = Ne(), d = t == null ? void 0 : t.fields.find(({ args: I }) => I.name === "sum"), { args: u } = d || {}, { max: m, name: h, defaultValue: p } = u || {}, c = i(h), { min: f, name: b } = (e == null ? void 0 : e.args) ?? {}, j = i(b), g = Number(m ?? 0) - (c ?? p);
|
|
2864
|
+
return ge(() => {
|
|
2865
|
+
j > g && a(b, g);
|
|
2866
|
+
}, [g, j, a, c]), ge(() => {
|
|
2867
2867
|
Number(m) === c && o(!1);
|
|
2868
2868
|
}, [o, m, c]), {
|
|
2869
2869
|
sliderVisible: r,
|
|
@@ -2872,14 +2872,14 @@ const $n = (t, e) => {
|
|
|
2872
2872
|
sumName: h,
|
|
2873
2873
|
sumDefaultValue: p,
|
|
2874
2874
|
sumValue: c,
|
|
2875
|
-
additionalSliderMax:
|
|
2875
|
+
additionalSliderMax: g,
|
|
2876
2876
|
onCheckedChange: () => {
|
|
2877
|
-
o((I) => !I), j <= 0 && a(b, f), Number(m) === c && (a(h ?? "", c -
|
|
2877
|
+
o((I) => !I), j <= 0 && a(b, f), Number(m) === c && (a(h ?? "", c - so), a(b, f));
|
|
2878
2878
|
},
|
|
2879
2879
|
sliderSumExist: !v.isObjectEmpty(d == null ? void 0 : d.args),
|
|
2880
2880
|
sliderSumCorrectType: (d == null ? void 0 : d.args.componentType) === "algorithmic" || (d == null ? void 0 : d.args.componentType) === "step"
|
|
2881
2881
|
};
|
|
2882
|
-
},
|
|
2882
|
+
}, go = (t) => {
|
|
2883
2883
|
switch (t) {
|
|
2884
2884
|
case "content1":
|
|
2885
2885
|
return /* @__PURE__ */ n.jsx("div", { children: "content 1" });
|
|
@@ -2898,7 +2898,7 @@ const $n = (t, e) => {
|
|
|
2898
2898
|
children: t
|
|
2899
2899
|
}
|
|
2900
2900
|
),
|
|
2901
|
-
/* @__PURE__ */ n.jsx(Yt, { title: e, isModalOpen: i, closeModal: () => a(!1), children:
|
|
2901
|
+
/* @__PURE__ */ n.jsx(Yt, { title: e, isModalOpen: i, closeModal: () => a(!1), children: go(o) })
|
|
2902
2902
|
] });
|
|
2903
2903
|
}, J = ({ fields: t }) => {
|
|
2904
2904
|
const { control: e } = Ne();
|