@scbt-ecom/ui 0.78.0 → 0.78.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/widget.js +83 -88
- 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,17 +937,15 @@ 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
|
-
return /* @__PURE__ */ n.jsxs(
|
|
943
|
-
/* @__PURE__ */ n.
|
|
944
|
-
|
|
942
|
+
return /* @__PURE__ */ n.jsxs("section", { id: y.banner, "data-test-id": y.banner, className: l("", i == null ? void 0 : i.root), children: [
|
|
943
|
+
/* @__PURE__ */ n.jsxs(
|
|
944
|
+
P,
|
|
945
945
|
{
|
|
946
|
-
id: y.banner,
|
|
947
|
-
"data-test-id": y.banner,
|
|
948
946
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
949
|
-
className: l("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.
|
|
950
|
-
children:
|
|
947
|
+
className: l("relative bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.container),
|
|
948
|
+
children: [
|
|
951
949
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
|
|
952
950
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
953
951
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
|
|
@@ -999,10 +997,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
999
997
|
/* @__PURE__ */ n.jsx(
|
|
1000
998
|
"div",
|
|
1001
999
|
{
|
|
1002
|
-
className: l(
|
|
1003
|
-
"relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]",
|
|
1004
|
-
i == null ? void 0 : i.imageContainer
|
|
1005
|
-
),
|
|
1000
|
+
className: l("relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", i == null ? void 0 : i.imageContainer),
|
|
1006
1001
|
children: b(p ? { src: a.src, alt: u, className: l("h-full object-contain") } : {
|
|
1007
1002
|
src: d.src,
|
|
1008
1003
|
alt: u,
|
|
@@ -1015,23 +1010,23 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1015
1010
|
"div",
|
|
1016
1011
|
{
|
|
1017
1012
|
className: l(
|
|
1018
|
-
"items-center justify-center rounded-md
|
|
1013
|
+
"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
1014
|
i == null ? void 0 : i.advantageContainer
|
|
1020
1015
|
),
|
|
1021
1016
|
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 })
|
|
1022
1017
|
}
|
|
1023
1018
|
)
|
|
1024
|
-
]
|
|
1019
|
+
]
|
|
1025
1020
|
}
|
|
1026
1021
|
),
|
|
1027
1022
|
(o == null ? void 0 : o.enabled) && /* @__PURE__ */ n.jsx(
|
|
1028
1023
|
"div",
|
|
1029
1024
|
{
|
|
1030
1025
|
className: l(
|
|
1031
|
-
"flex items-center justify-center rounded-md
|
|
1026
|
+
"flex items-center justify-center rounded-md px-4 pb-8 pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
|
|
1032
1027
|
i == null ? void 0 : i.advantageContainer
|
|
1033
1028
|
),
|
|
1034
|
-
children: (o == null ? void 0 : o.details) && ((
|
|
1029
|
+
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
1030
|
}
|
|
1036
1031
|
)
|
|
1037
1032
|
] });
|
|
@@ -1082,11 +1077,11 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1082
1077
|
className: l("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
1083
1078
|
href: o,
|
|
1084
1079
|
"aria-label": r.replace("social/", ""),
|
|
1085
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1080
|
+
children: /* @__PURE__ */ n.jsx(s, { name: r, className: l("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
1086
1081
|
},
|
|
1087
1082
|
o
|
|
1088
1083
|
)) }), 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
|
-
|
|
1084
|
+
gt,
|
|
1090
1085
|
{
|
|
1091
1086
|
phone: ve(r),
|
|
1092
1087
|
text: o,
|
|
@@ -1136,7 +1131,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1136
1131
|
"aria-label": "logo",
|
|
1137
1132
|
href: "https://sovcombank.ru/",
|
|
1138
1133
|
className: l("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
|
|
1139
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1134
|
+
children: /* @__PURE__ */ n.jsx(s, { name: "brandLogos/logoWhite", className: l("size-full", t == null ? void 0 : t.footerLogoIcon) })
|
|
1140
1135
|
}
|
|
1141
1136
|
), Qr = ({ classes: t }) => /* @__PURE__ */ n.jsx(
|
|
1142
1137
|
ye,
|
|
@@ -1382,7 +1377,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1382
1377
|
return /* @__PURE__ */ n.jsx("li", { className: l(Kr({ intent: e })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1383
1378
|
/* @__PURE__ */ n.jsxs("div", { className: l("mb-2 flex items-center gap-2"), children: [
|
|
1384
1379
|
/* @__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(
|
|
1380
|
+
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
1381
|
] }),
|
|
1387
1382
|
/* @__PURE__ */ n.jsx("div", { className: l("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1388
1383
|
] }) });
|
|
@@ -1529,12 +1524,12 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1529
1524
|
children: [
|
|
1530
1525
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1531
1526
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
1532
|
-
/* @__PURE__ */ n.jsx(
|
|
1533
|
-
/* @__PURE__ */ n.jsx(
|
|
1534
|
-
/* @__PURE__ */ n.jsx(
|
|
1527
|
+
/* @__PURE__ */ n.jsx(s, { name: "logos/mts", className: l("relative z-[9] size-7 desktop:size-8", a == null ? void 0 : a.mtsLogo) }),
|
|
1528
|
+
/* @__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) }),
|
|
1529
|
+
/* @__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
1530
|
] }),
|
|
1536
1531
|
/* @__PURE__ */ n.jsx(Mt, { mainLink: t, subLink: e, isMobile: d, classes: a == null ? void 0 : a.links }),
|
|
1537
|
-
/* @__PURE__ */ n.jsx(
|
|
1532
|
+
/* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1538
1533
|
] }),
|
|
1539
1534
|
o && /* @__PURE__ */ n.jsx(Ee, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1540
1535
|
]
|
|
@@ -1554,7 +1549,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1554
1549
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1555
1550
|
/* @__PURE__ */ n.jsx(Gr, { className: l("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
|
|
1556
1551
|
/* @__PURE__ */ n.jsx(Mt, { mainLink: t, subLink: e, isMobile: d, classes: a == null ? void 0 : a.links }),
|
|
1557
|
-
/* @__PURE__ */ n.jsx(
|
|
1552
|
+
/* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1558
1553
|
] }),
|
|
1559
1554
|
o && /* @__PURE__ */ n.jsx(Ee, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1560
1555
|
]
|
|
@@ -1634,7 +1629,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1634
1629
|
{
|
|
1635
1630
|
defaultOpen: !0,
|
|
1636
1631
|
label: t,
|
|
1637
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
1632
|
+
icon: /* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1638
1633
|
...r,
|
|
1639
1634
|
classes: {
|
|
1640
1635
|
...r == null ? void 0 : r.classes,
|
|
@@ -1755,14 +1750,14 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1755
1750
|
children: a && a
|
|
1756
1751
|
},
|
|
1757
1752
|
d
|
|
1758
|
-
)) }),
|
|
1753
|
+
)) }), sn = E("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1759
1754
|
variants: {
|
|
1760
1755
|
tableVariant: {
|
|
1761
1756
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1762
1757
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1763
1758
|
}
|
|
1764
1759
|
}
|
|
1765
|
-
}),
|
|
1760
|
+
}), 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
1761
|
d && /* @__PURE__ */ n.jsx("div", { className: l("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: d }),
|
|
1767
1762
|
/* @__PURE__ */ n.jsx(
|
|
1768
1763
|
"div",
|
|
@@ -1794,7 +1789,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1794
1789
|
h
|
|
1795
1790
|
)),
|
|
1796
1791
|
a == null ? void 0 : a.map((m, h) => /* @__PURE__ */ n.jsx(
|
|
1797
|
-
|
|
1792
|
+
gn,
|
|
1798
1793
|
{
|
|
1799
1794
|
headingsExist: d,
|
|
1800
1795
|
tableVariant: t,
|
|
@@ -1853,7 +1848,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1853
1848
|
i == null ? void 0 : i.link
|
|
1854
1849
|
),
|
|
1855
1850
|
children: [
|
|
1856
|
-
/* @__PURE__ */ n.jsx(
|
|
1851
|
+
/* @__PURE__ */ n.jsx(s, { name: kn[o], className: l(wn({ iconType: o }), i == null ? void 0 : i.icon) }),
|
|
1857
1852
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1858
1853
|
/* @__PURE__ */ n.jsx("p", { className: l("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
|
|
1859
1854
|
/* @__PURE__ */ n.jsxs("div", { className: l("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
@@ -2036,7 +2031,7 @@ class Oe {
|
|
|
2036
2031
|
d.value.split(";").forEach((p) => {
|
|
2037
2032
|
const [c, f] = p.split(":");
|
|
2038
2033
|
if (c && f) {
|
|
2039
|
-
const b = c.trim().replace(/-([a-z])/g, (j,
|
|
2034
|
+
const b = c.trim().replace(/-([a-z])/g, (j, g) => g.toUpperCase());
|
|
2040
2035
|
h[b] = f.trim();
|
|
2041
2036
|
}
|
|
2042
2037
|
}), m = h;
|
|
@@ -2065,7 +2060,7 @@ class Oe {
|
|
|
2065
2060
|
de(Oe, "TEXT_NODE", 3), de(Oe, "ELEMENT_NODE", 1);
|
|
2066
2061
|
const Sn = ({ promises: t }) => {
|
|
2067
2062
|
const [e, r] = D([]);
|
|
2068
|
-
return
|
|
2063
|
+
return ge(() => {
|
|
2069
2064
|
(async () => {
|
|
2070
2065
|
r(await t);
|
|
2071
2066
|
})();
|
|
@@ -2125,7 +2120,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2125
2120
|
schema: c,
|
|
2126
2121
|
defaultValues: f,
|
|
2127
2122
|
mode: "onBlur"
|
|
2128
|
-
}),
|
|
2123
|
+
}), g = En(r, t), N = ir({ control: b, fields: g || [], schema: c }), I = (O) => {
|
|
2129
2124
|
u && u({ ...O, agree: h }), console.warn(O);
|
|
2130
2125
|
};
|
|
2131
2126
|
return /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsxs(
|
|
@@ -2149,7 +2144,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2149
2144
|
($ = d == null ? void 0 : d.chips) == null ? void 0 : $.root
|
|
2150
2145
|
),
|
|
2151
2146
|
children: [
|
|
2152
|
-
i.image && /* @__PURE__ */ n.jsx(
|
|
2147
|
+
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
2148
|
i.content
|
|
2154
2149
|
]
|
|
2155
2150
|
}
|
|
@@ -2223,14 +2218,14 @@ const Sn = ({ promises: t }) => {
|
|
|
2223
2218
|
classes: a,
|
|
2224
2219
|
...d
|
|
2225
2220
|
}) => {
|
|
2226
|
-
const { submitCallback: u, children: m, ...h } = o ?? {}, [p, c] = D(!1), f = ze(t), b = Re.getZodDefaults(f), { control: j, handleSubmit:
|
|
2221
|
+
const { submitCallback: u, children: m, ...h } = o ?? {}, [p, c] = D(!1), f = ze(t), b = Re.getZodDefaults(f), { control: j, handleSubmit: g } = De({
|
|
2227
2222
|
schema: f,
|
|
2228
2223
|
defaultValues: b,
|
|
2229
2224
|
mode: "onBlur"
|
|
2230
2225
|
}), N = (I) => {
|
|
2231
2226
|
u && u({ ...I, agree: p });
|
|
2232
2227
|
};
|
|
2233
|
-
return /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsx(Zt, { id: i, title: e, ...d, children: /* @__PURE__ */ n.jsxs("form", { onSubmit:
|
|
2228
|
+
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
2229
|
/* @__PURE__ */ n.jsx(He, { control: j, fields: t }),
|
|
2235
2230
|
zn(r, p, c, a == null ? void 0 : a.approvement),
|
|
2236
2231
|
/* @__PURE__ */ n.jsx(je, { ...h, type: "submit", disabled: r.type === "checkbox" ? !p : !1, className: "w-full", children: m ?? "Отправить форму" })
|
|
@@ -2242,7 +2237,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2242
2237
|
}, Symbol.toStringTag, { value: "Module" })), ue = () => ({
|
|
2243
2238
|
approve: {
|
|
2244
2239
|
icon: {
|
|
2245
|
-
element: /* @__PURE__ */ n.jsx(
|
|
2240
|
+
element: /* @__PURE__ */ n.jsx(s, { name: "status/iconMark" }),
|
|
2246
2241
|
bg: "bg-color-positive-light"
|
|
2247
2242
|
},
|
|
2248
2243
|
title: "Ваша заявка отправлена",
|
|
@@ -2257,7 +2252,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2257
2252
|
},
|
|
2258
2253
|
repeated: {
|
|
2259
2254
|
icon: {
|
|
2260
|
-
element: /* @__PURE__ */ n.jsx(
|
|
2255
|
+
element: /* @__PURE__ */ n.jsx(s, { name: "status/iconUser" }),
|
|
2261
2256
|
bg: "bg-color-positive-light"
|
|
2262
2257
|
},
|
|
2263
2258
|
title: "Мы вас узнали",
|
|
@@ -2272,7 +2267,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2272
2267
|
},
|
|
2273
2268
|
error: {
|
|
2274
2269
|
icon: {
|
|
2275
|
-
element: /* @__PURE__ */ n.jsx(
|
|
2270
|
+
element: /* @__PURE__ */ n.jsx(s, { name: "status/iconRetry" }),
|
|
2276
2271
|
bg: "bg-color-warning-light"
|
|
2277
2272
|
},
|
|
2278
2273
|
title: "Что-то пошло не так",
|
|
@@ -2287,7 +2282,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2287
2282
|
},
|
|
2288
2283
|
reject: {
|
|
2289
2284
|
icon: {
|
|
2290
|
-
element: /* @__PURE__ */ n.jsx(
|
|
2285
|
+
element: /* @__PURE__ */ n.jsx(s, { name: "status/badSmile" }),
|
|
2291
2286
|
bg: "bg-color-negative-light"
|
|
2292
2287
|
},
|
|
2293
2288
|
title: "Нам очень жаль",
|
|
@@ -2318,7 +2313,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2318
2313
|
/* @__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
2314
|
] }) }) }), 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
2315
|
const [a, d] = D([]);
|
|
2321
|
-
return
|
|
2316
|
+
return ge(() => {
|
|
2322
2317
|
if (!Ie)
|
|
2323
2318
|
return;
|
|
2324
2319
|
let u = window.location.pathname.split("/").filter((p) => !v.isStringEmpty(p));
|
|
@@ -2349,7 +2344,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2349
2344
|
...r(p)
|
|
2350
2345
|
}))), d(o ? m.filter(o) : m);
|
|
2351
2346
|
}, [e, o, r, i, t]), a;
|
|
2352
|
-
},
|
|
2347
|
+
}, se = (t, e, r, o) => t.map((i, a) => {
|
|
2353
2348
|
const d = a === o;
|
|
2354
2349
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2355
2350
|
/* @__PURE__ */ n.jsx(
|
|
@@ -2369,7 +2364,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2369
2364
|
const u = Qn(o), { first: m, middle: h, last: p } = we(() => {
|
|
2370
2365
|
let f = [], b = [], j = [];
|
|
2371
2366
|
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(
|
|
2367
|
+
}, [u, e]), c = t ?? /* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("size-4", r == null ? void 0 : r.separator) });
|
|
2373
2368
|
return /* @__PURE__ */ n.jsx(
|
|
2374
2369
|
"div",
|
|
2375
2370
|
{
|
|
@@ -2384,7 +2379,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2384
2379
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2385
2380
|
// render hidden breadcrumbs
|
|
2386
2381
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2387
|
-
|
|
2382
|
+
se(m, c, r == null ? void 0 : r.breadcrumb),
|
|
2388
2383
|
c,
|
|
2389
2384
|
h.length > 0 && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2390
2385
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
@@ -2418,15 +2413,15 @@ const Sn = ({ promises: t }) => {
|
|
|
2418
2413
|
] }),
|
|
2419
2414
|
c
|
|
2420
2415
|
] }),
|
|
2421
|
-
|
|
2416
|
+
se(p, c, r == null ? void 0 : r.breadcrumb, p.length - 1)
|
|
2422
2417
|
] })
|
|
2423
2418
|
) : (
|
|
2424
2419
|
// otherwise render all breadcrumbs
|
|
2425
|
-
|
|
2420
|
+
se(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2426
2421
|
) })
|
|
2427
2422
|
) : (
|
|
2428
2423
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2429
|
-
|
|
2424
|
+
se(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2430
2425
|
)
|
|
2431
2426
|
}
|
|
2432
2427
|
);
|
|
@@ -2479,7 +2474,7 @@ const $n = (t, e) => {
|
|
|
2479
2474
|
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
2480
2475
|
children: [
|
|
2481
2476
|
i.title,
|
|
2482
|
-
/* @__PURE__ */ n.jsx(
|
|
2477
|
+
/* @__PURE__ */ n.jsx(s, { name: "arrows/arrowLink", className: "size-6" })
|
|
2483
2478
|
]
|
|
2484
2479
|
}
|
|
2485
2480
|
),
|
|
@@ -2607,7 +2602,7 @@ const $n = (t, e) => {
|
|
|
2607
2602
|
const [o, i] = An({ root: t[0].children[0], current: t[0].children[0] });
|
|
2608
2603
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2609
2604
|
/* @__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(
|
|
2605
|
+
/* @__PURE__ */ n.jsx(s, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2611
2606
|
t.map((a) => {
|
|
2612
2607
|
const d = o.root.title === a.title;
|
|
2613
2608
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -2629,7 +2624,7 @@ const $n = (t, e) => {
|
|
|
2629
2624
|
href: a.link.href,
|
|
2630
2625
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2631
2626
|
children: [
|
|
2632
|
-
a.link.icon && /* @__PURE__ */ n.jsx(
|
|
2627
|
+
a.link.icon && /* @__PURE__ */ n.jsx(s, { name: a.link.icon, className: "size-4" }),
|
|
2633
2628
|
a.title
|
|
2634
2629
|
]
|
|
2635
2630
|
},
|
|
@@ -2651,7 +2646,7 @@ const $n = (t, e) => {
|
|
|
2651
2646
|
ae,
|
|
2652
2647
|
{
|
|
2653
2648
|
label: t.title ?? "",
|
|
2654
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2649
|
+
icon: /* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
2655
2650
|
classes: {
|
|
2656
2651
|
root: "w-full",
|
|
2657
2652
|
header: {
|
|
@@ -2676,7 +2671,7 @@ const $n = (t, e) => {
|
|
|
2676
2671
|
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2677
2672
|
children: [
|
|
2678
2673
|
e.title,
|
|
2679
|
-
/* @__PURE__ */ n.jsx(
|
|
2674
|
+
/* @__PURE__ */ n.jsx(s, { name: "arrows/arrowLink" })
|
|
2680
2675
|
]
|
|
2681
2676
|
}
|
|
2682
2677
|
),
|
|
@@ -2721,12 +2716,12 @@ const $n = (t, e) => {
|
|
|
2721
2716
|
e.map((h) => {
|
|
2722
2717
|
var p, c;
|
|
2723
2718
|
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(
|
|
2719
|
+
((c = h.link) == null ? void 0 : c.icon) && /* @__PURE__ */ n.jsx(s, { name: h.link.icon, className: "size-4" }),
|
|
2725
2720
|
h.title
|
|
2726
2721
|
] }) }, h.title);
|
|
2727
2722
|
}),
|
|
2728
2723
|
/* @__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(
|
|
2724
|
+
/* @__PURE__ */ n.jsx(s, { name: "communication/phone", className: "size-4" }),
|
|
2730
2725
|
ve(r)
|
|
2731
2726
|
] }) })
|
|
2732
2727
|
] })
|
|
@@ -2737,8 +2732,8 @@ const $n = (t, e) => {
|
|
|
2737
2732
|
var m, h, p;
|
|
2738
2733
|
const o = Be(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, d] = D(!1), u = () => d(!a);
|
|
2739
2734
|
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(
|
|
2735
|
+
/* @__PURE__ */ n.jsx(s, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2736
|
+
/* @__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
2737
|
a && Nt(
|
|
2743
2738
|
/* @__PURE__ */ n.jsx(
|
|
2744
2739
|
ro,
|
|
@@ -2813,7 +2808,7 @@ const $n = (t, e) => {
|
|
|
2813
2808
|
Se,
|
|
2814
2809
|
{
|
|
2815
2810
|
withCloseBtn: !1,
|
|
2816
|
-
triggerElement: /* @__PURE__ */ n.jsx(
|
|
2811
|
+
triggerElement: /* @__PURE__ */ n.jsx(s, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
2817
2812
|
children: /* @__PURE__ */ n.jsx("p", { children: t })
|
|
2818
2813
|
}
|
|
2819
2814
|
)
|
|
@@ -2833,10 +2828,10 @@ const $n = (t, e) => {
|
|
|
2833
2828
|
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
2829
|
}, co = ({ iconName: t, text: e, hint: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2835
2830
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2836
|
-
/* @__PURE__ */ n.jsx(
|
|
2831
|
+
/* @__PURE__ */ n.jsx(s, { name: t, className: "size-6 text-icon-blue-grey-800" }),
|
|
2837
2832
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
|
|
2838
2833
|
] }),
|
|
2839
|
-
r && /* @__PURE__ */ n.jsx(Se, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ n.jsx(
|
|
2834
|
+
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
2835
|
] }), fo = ({ assistHint: t, buttonsConfig: e, bottomDescription: r }) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
2841
2836
|
t && /* @__PURE__ */ n.jsx(co, { ...t }),
|
|
2842
2837
|
/* @__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 +2851,14 @@ const $n = (t, e) => {
|
|
|
2856
2851
|
/* @__PURE__ */ n.jsx(mo, { title: o, subtitle: i }),
|
|
2857
2852
|
/* @__PURE__ */ n.jsx(po, { infoList: d }),
|
|
2858
2853
|
/* @__PURE__ */ n.jsx(fo, { assistHint: m, buttonsConfig: a, bottomDescription: e })
|
|
2859
|
-
] }),
|
|
2854
|
+
] }), so = 2e4, Ft = ({
|
|
2860
2855
|
slidersGroupConfig: t,
|
|
2861
2856
|
additionalSliderGroupConfig: e
|
|
2862
2857
|
}) => {
|
|
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
|
-
}, [
|
|
2858
|
+
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);
|
|
2859
|
+
return ge(() => {
|
|
2860
|
+
j > g && a(b, g);
|
|
2861
|
+
}, [g, j, a, c]), ge(() => {
|
|
2867
2862
|
Number(m) === c && o(!1);
|
|
2868
2863
|
}, [o, m, c]), {
|
|
2869
2864
|
sliderVisible: r,
|
|
@@ -2872,14 +2867,14 @@ const $n = (t, e) => {
|
|
|
2872
2867
|
sumName: h,
|
|
2873
2868
|
sumDefaultValue: p,
|
|
2874
2869
|
sumValue: c,
|
|
2875
|
-
additionalSliderMax:
|
|
2870
|
+
additionalSliderMax: g,
|
|
2876
2871
|
onCheckedChange: () => {
|
|
2877
|
-
o((I) => !I), j <= 0 && a(b, f), Number(m) === c && (a(h ?? "", c -
|
|
2872
|
+
o((I) => !I), j <= 0 && a(b, f), Number(m) === c && (a(h ?? "", c - so), a(b, f));
|
|
2878
2873
|
},
|
|
2879
2874
|
sliderSumExist: !v.isObjectEmpty(d == null ? void 0 : d.args),
|
|
2880
2875
|
sliderSumCorrectType: (d == null ? void 0 : d.args.componentType) === "algorithmic" || (d == null ? void 0 : d.args.componentType) === "step"
|
|
2881
2876
|
};
|
|
2882
|
-
},
|
|
2877
|
+
}, go = (t) => {
|
|
2883
2878
|
switch (t) {
|
|
2884
2879
|
case "content1":
|
|
2885
2880
|
return /* @__PURE__ */ n.jsx("div", { children: "content 1" });
|
|
@@ -2898,7 +2893,7 @@ const $n = (t, e) => {
|
|
|
2898
2893
|
children: t
|
|
2899
2894
|
}
|
|
2900
2895
|
),
|
|
2901
|
-
/* @__PURE__ */ n.jsx(Yt, { title: e, isModalOpen: i, closeModal: () => a(!1), children:
|
|
2896
|
+
/* @__PURE__ */ n.jsx(Yt, { title: e, isModalOpen: i, closeModal: () => a(!1), children: go(o) })
|
|
2902
2897
|
] });
|
|
2903
2898
|
}, J = ({ fields: t }) => {
|
|
2904
2899
|
const { control: e } = Ne();
|