@scbt-ecom/ui 0.86.0 → 0.87.0
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/hooks.js +2 -2
- package/dist/{index-Bz84dAoh.js → index-B6tiFtIj.js} +4 -4
- package/dist/{index-Bz84dAoh.js.map → index-B6tiFtIj.js.map} +1 -1
- package/dist/{index-BO81H324.js → index-Bu5RfW_Z.js} +3 -3
- package/dist/{index-BO81H324.js.map → index-Bu5RfW_Z.js.map} +1 -1
- package/dist/lib/shared/utils/typeGuards.d.ts +1 -0
- package/dist/lib/widgets/footer/model/types.d.ts +2 -0
- package/dist/lib/widgets/infoBlock/ui/RootContent.d.ts +2 -2
- package/dist/lib/widgets/seoHeader/model/types.d.ts +1 -0
- package/dist/{renderImage-D1GvKq_K.js → renderImage-ViVSYcgG.js} +2 -2
- package/dist/{renderImage-D1GvKq_K.js.map → renderImage-ViVSYcgG.js.map} +1 -1
- package/dist/{typeGuards-CSiImkUY.js → typeGuards-BHbj394R.js} +4 -1
- package/dist/{typeGuards-CSiImkUY.js.map → typeGuards-BHbj394R.js.map} +1 -1
- package/dist/ui.js +5 -5
- package/dist/{useDebounce-CEu2ysPk.js → useDebounce-5MeprqTX.js} +250 -239
- package/dist/useDebounce-5MeprqTX.js.map +1 -0
- package/dist/{useFieldsProgress-DvWCpALA.js → useFieldsProgress-CUlFPv4E.js} +2 -2
- package/dist/{useFieldsProgress-DvWCpALA.js.map → useFieldsProgress-CUlFPv4E.js.map} +1 -1
- package/dist/{utils-CnDzHNQ6.js → utils-BAhmwXLC.js} +2 -2
- package/dist/{utils-CnDzHNQ6.js.map → utils-BAhmwXLC.js.map} +1 -1
- package/dist/utils.js +3 -3
- package/dist/validation.js +2 -2
- package/dist/widget.js +87 -78
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
- package/dist/useDebounce-CEu2ysPk.js.map +0 -1
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as w, c as I, l as R, r as D, s as N } from "./renderImage-
|
|
2
|
-
import { T as a } from "./typeGuards-
|
|
3
|
-
import { c as V } from "./typeGuards-
|
|
1
|
+
import { a as w, c as I, l as R, r as D, s as N } from "./renderImage-ViVSYcgG.js";
|
|
2
|
+
import { T as a } from "./typeGuards-BHbj394R.js";
|
|
3
|
+
import { c as V } from "./typeGuards-BHbj394R.js";
|
|
4
4
|
import { i as v } from "./isClient-C9aZtt2Q.js";
|
|
5
5
|
import { m as C } from "./mergeRefs-Danc3mp8.js";
|
|
6
6
|
const t = [];
|
package/dist/validation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as l, b as y, a as F, z as R } from "./index-
|
|
2
|
-
import { s as i, Z as a, p as u, i as r, c as I } from "./utils-
|
|
1
|
+
import { Z as l, b as y, a as F, z as R } from "./index-Bu5RfW_Z.js";
|
|
2
|
+
import { s as i, Z as a, p as u, i as r, c as I } from "./utils-BAhmwXLC.js";
|
|
3
3
|
const E = /^[\u0400-\u04FF\u00CB\u00EB -]+$/, m = /^(?:[^-]+(?:-[^-]+){0,4}|[^-]+)$/, _ = /^[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4}(?:\s+[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4})?$/i, t = {
|
|
4
4
|
REQUIRED: "Поле обязательно к заполнению",
|
|
5
5
|
MIN_LENGTH: "Минимальная длина символов должна быть не менее",
|
package/dist/widget.js
CHANGED
|
@@ -5,7 +5,7 @@ var Vt = (e) => {
|
|
|
5
5
|
var He = (e, t, r) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
6
|
var St = (e, t, r) => He(e, typeof t != "symbol" ? t + "" : t, r), _t = (e, t, r) => t.has(e) || Vt("Cannot " + r);
|
|
7
7
|
var h = (e, t, r) => (_t(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Vt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), j = (e, t, r, n) => (_t(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), q = (e, t, r) => (_t(e, t, "access private method"), r);
|
|
8
|
-
var
|
|
8
|
+
var bt = (e, t, r, n) => ({
|
|
9
9
|
set _(i) {
|
|
10
10
|
j(e, t, i, r);
|
|
11
11
|
},
|
|
@@ -14,16 +14,16 @@ var jt = (e, t, r, n) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import { j as o } from "./mergeRefs-Danc3mp8.js";
|
|
17
|
-
import { Y as be, Z as je, _ as Re, $ as O, a0 as $t, a1 as ze, a2 as Le, a3 as Wt, a4 as W, a5 as Qe, a6 as Ve, a7 as $e, a8 as We, a9 as At, aa as qt, ab as Ae, ac as Ut, ad as Kt, ae as qe, B as
|
|
18
|
-
import { c as a, T as _ } from "./typeGuards-
|
|
17
|
+
import { Y as be, Z as je, _ as Re, $ as O, a0 as $t, a1 as ze, a2 as Le, a3 as Wt, a4 as W, a5 as Qe, a6 as Ve, a7 as $e, a8 as We, a9 as At, aa as qt, ab as Ae, ac as Ut, ad as Kt, ae as qe, B as wt, c as D, R as T, n as ye, F as Ue, E as P, i as c, Q as pt, r as Ke, t as Ze, p as Bt, L as Ye, o as Et, A as at, U as ke, af as Xe, q as Je, W as vt, z as Ge, ag as Pt, ah as se, M as tr } from "./index-B6tiFtIj.js";
|
|
18
|
+
import { c as a, T as _ } from "./typeGuards-BHbj394R.js";
|
|
19
19
|
import * as mt from "react";
|
|
20
|
-
import { lazy as B, useCallback as we, useState as R, memo as Nt, useMemo as
|
|
20
|
+
import { lazy as B, useCallback as we, useState as R, memo as Nt, useMemo as ft, createElement as Ct, useRef as Dt, useReducer as er, forwardRef as rr, useEffect as Ft } from "react";
|
|
21
21
|
import { i as Zt } from "./isClient-C9aZtt2Q.js";
|
|
22
|
-
import { s as nr, c as It, r as
|
|
23
|
-
import { u as lt, b as Ht, a as dr, g as Mt, F as ar } from "./useDebounce-
|
|
24
|
-
import { z as ve, Z as Rt } from "./index-
|
|
25
|
-
import { au as Ne } from "./utils-
|
|
26
|
-
import { a as lr, u as ur } from "./useFieldsProgress-
|
|
22
|
+
import { s as nr, c as It, r as it, a as or, l as ir } from "./renderImage-ViVSYcgG.js";
|
|
23
|
+
import { u as lt, b as Ht, a as dr, g as Mt, F as ar } from "./useDebounce-5MeprqTX.js";
|
|
24
|
+
import { z as ve, Z as Rt } from "./index-Bu5RfW_Z.js";
|
|
25
|
+
import { au as Ne } from "./utils-BAhmwXLC.js";
|
|
26
|
+
import { a as lr, u as ur } from "./useFieldsProgress-CUlFPv4E.js";
|
|
27
27
|
import { createPortal as Ce } from "react-dom";
|
|
28
28
|
var Q, pe, mr = (pe = class extends be {
|
|
29
29
|
constructor(t = {}) {
|
|
@@ -135,7 +135,7 @@ var Q, pe, mr = (pe = class extends be {
|
|
|
135
135
|
this.execute(this.state.variables);
|
|
136
136
|
}
|
|
137
137
|
async execute(t) {
|
|
138
|
-
var d, l, u, x, m, p, f, I, y, F, k, M, E, z, v, C, L, X,
|
|
138
|
+
var d, l, u, x, m, p, f, I, y, F, k, M, E, z, v, C, L, X, ct, gt;
|
|
139
139
|
const r = () => {
|
|
140
140
|
q(this, $, U).call(this, { type: "continue" });
|
|
141
141
|
};
|
|
@@ -206,8 +206,8 @@ var Q, pe, mr = (pe = class extends be {
|
|
|
206
206
|
this.state.variables,
|
|
207
207
|
this.state.context,
|
|
208
208
|
this
|
|
209
|
-
)), await ((
|
|
210
|
-
|
|
209
|
+
)), await ((gt = (ct = this.options).onSettled) == null ? void 0 : gt.call(
|
|
210
|
+
ct,
|
|
211
211
|
void 0,
|
|
212
212
|
w,
|
|
213
213
|
t,
|
|
@@ -308,7 +308,7 @@ var A, H, ht, ce, pr = (ce = class extends be {
|
|
|
308
308
|
build(t, r, n) {
|
|
309
309
|
const i = new xr({
|
|
310
310
|
mutationCache: this,
|
|
311
|
-
mutationId: ++
|
|
311
|
+
mutationId: ++bt(this, ht)._,
|
|
312
312
|
options: t.defaultMutationOptions(r),
|
|
313
313
|
state: n
|
|
314
314
|
});
|
|
@@ -316,7 +316,7 @@ var A, H, ht, ce, pr = (ce = class extends be {
|
|
|
316
316
|
}
|
|
317
317
|
add(t) {
|
|
318
318
|
h(this, A).add(t);
|
|
319
|
-
const r =
|
|
319
|
+
const r = jt(t);
|
|
320
320
|
if (typeof r == "string") {
|
|
321
321
|
const n = h(this, H).get(r);
|
|
322
322
|
n ? n.push(t) : h(this, H).set(r, [t]);
|
|
@@ -325,7 +325,7 @@ var A, H, ht, ce, pr = (ce = class extends be {
|
|
|
325
325
|
}
|
|
326
326
|
remove(t) {
|
|
327
327
|
if (h(this, A).delete(t)) {
|
|
328
|
-
const r =
|
|
328
|
+
const r = jt(t);
|
|
329
329
|
if (typeof r == "string") {
|
|
330
330
|
const n = h(this, H).get(r);
|
|
331
331
|
if (n)
|
|
@@ -338,7 +338,7 @@ var A, H, ht, ce, pr = (ce = class extends be {
|
|
|
338
338
|
this.notify({ type: "removed", mutation: t });
|
|
339
339
|
}
|
|
340
340
|
canRun(t) {
|
|
341
|
-
const r =
|
|
341
|
+
const r = jt(t);
|
|
342
342
|
if (typeof r == "string") {
|
|
343
343
|
const n = h(this, H).get(r), i = n == null ? void 0 : n.find(
|
|
344
344
|
(d) => d.state.status === "pending"
|
|
@@ -349,7 +349,7 @@ var A, H, ht, ce, pr = (ce = class extends be {
|
|
|
349
349
|
}
|
|
350
350
|
runNext(t) {
|
|
351
351
|
var n;
|
|
352
|
-
const r =
|
|
352
|
+
const r = jt(t);
|
|
353
353
|
if (typeof r == "string") {
|
|
354
354
|
const i = (n = h(this, H).get(r)) == null ? void 0 : n.find((d) => d !== t && d.state.isPaused);
|
|
355
355
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
@@ -391,7 +391,7 @@ var A, H, ht, ce, pr = (ce = class extends be {
|
|
|
391
391
|
);
|
|
392
392
|
}
|
|
393
393
|
}, A = new WeakMap(), H = new WeakMap(), ht = new WeakMap(), ce);
|
|
394
|
-
function
|
|
394
|
+
function jt(e) {
|
|
395
395
|
var t;
|
|
396
396
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
397
397
|
}
|
|
@@ -415,7 +415,7 @@ function Yt(e) {
|
|
|
415
415
|
return Promise.reject();
|
|
416
416
|
if (C == null && v.pages.length)
|
|
417
417
|
return Promise.resolve(v);
|
|
418
|
-
const
|
|
418
|
+
const ct = (() => {
|
|
419
419
|
const Qt = {
|
|
420
420
|
client: t.client,
|
|
421
421
|
queryKey: t.queryKey,
|
|
@@ -424,9 +424,9 @@ function Yt(e) {
|
|
|
424
424
|
meta: t.options.meta
|
|
425
425
|
};
|
|
426
426
|
return M(Qt), Qt;
|
|
427
|
-
})(),
|
|
427
|
+
})(), gt = await E(ct), { maxPages: w } = t.options, J = L ? Ve : $e;
|
|
428
428
|
return {
|
|
429
|
-
pages: J(v.pages,
|
|
429
|
+
pages: J(v.pages, gt, w),
|
|
430
430
|
pageParams: J(v.pageParams, C, w)
|
|
431
431
|
};
|
|
432
432
|
};
|
|
@@ -477,28 +477,28 @@ function fr(e, { pages: t, pageParams: r }) {
|
|
|
477
477
|
var n;
|
|
478
478
|
return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, r[0], r) : void 0;
|
|
479
479
|
}
|
|
480
|
-
var b, K, Z,
|
|
480
|
+
var b, K, Z, et, rt, Y, nt, ot, ge, cr = (ge = class {
|
|
481
481
|
constructor(e = {}) {
|
|
482
482
|
N(this, b);
|
|
483
483
|
N(this, K);
|
|
484
484
|
N(this, Z);
|
|
485
|
-
N(this, tt);
|
|
486
485
|
N(this, et);
|
|
487
|
-
N(this, Y);
|
|
488
486
|
N(this, rt);
|
|
487
|
+
N(this, Y);
|
|
489
488
|
N(this, nt);
|
|
490
|
-
|
|
489
|
+
N(this, ot);
|
|
490
|
+
j(this, b, e.queryCache || new mr()), j(this, K, e.mutationCache || new pr()), j(this, Z, e.defaultOptions || {}), j(this, et, /* @__PURE__ */ new Map()), j(this, rt, /* @__PURE__ */ new Map()), j(this, Y, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
|
|
493
|
+
bt(this, Y)._++, h(this, Y) === 1 && (j(this, nt, We.subscribe(async (e) => {
|
|
494
494
|
e && (await this.resumePausedMutations(), h(this, b).onFocus());
|
|
495
|
-
})), j(this,
|
|
495
|
+
})), j(this, ot, At.subscribe(async (e) => {
|
|
496
496
|
e && (await this.resumePausedMutations(), h(this, b).onOnline());
|
|
497
497
|
})));
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
500
|
var e, t;
|
|
501
|
-
|
|
501
|
+
bt(this, Y)._--, h(this, Y) === 0 && ((e = h(this, nt)) == null || e.call(this), j(this, nt, void 0), (t = h(this, ot)) == null || t.call(this), j(this, ot, void 0));
|
|
502
502
|
}
|
|
503
503
|
isFetching(e) {
|
|
504
504
|
return h(this, b).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -635,25 +635,25 @@ var b, K, Z, tt, et, Y, rt, nt, ge, cr = (ge = class {
|
|
|
635
635
|
j(this, Z, e);
|
|
636
636
|
}
|
|
637
637
|
setQueryDefaults(e, t) {
|
|
638
|
-
h(this,
|
|
638
|
+
h(this, et).set(Ut(e), {
|
|
639
639
|
queryKey: e,
|
|
640
640
|
defaultOptions: t
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
getQueryDefaults(e) {
|
|
644
|
-
const t = [...h(this,
|
|
644
|
+
const t = [...h(this, et).values()], r = {};
|
|
645
645
|
return t.forEach((n) => {
|
|
646
646
|
Kt(e, n.queryKey) && Object.assign(r, n.defaultOptions);
|
|
647
647
|
}), r;
|
|
648
648
|
}
|
|
649
649
|
setMutationDefaults(e, t) {
|
|
650
|
-
h(this,
|
|
650
|
+
h(this, rt).set(Ut(e), {
|
|
651
651
|
mutationKey: e,
|
|
652
652
|
defaultOptions: t
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
getMutationDefaults(e) {
|
|
656
|
-
const t = [...h(this,
|
|
656
|
+
const t = [...h(this, rt).values()], r = {};
|
|
657
657
|
return t.forEach((n) => {
|
|
658
658
|
Kt(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
|
|
659
659
|
}), r;
|
|
@@ -683,7 +683,7 @@ var b, K, Z, tt, et, Y, rt, nt, ge, cr = (ge = class {
|
|
|
683
683
|
clear() {
|
|
684
684
|
h(this, b).clear(), h(this, K).clear();
|
|
685
685
|
}
|
|
686
|
-
}, b = new WeakMap(), K = new WeakMap(), Z = new WeakMap(),
|
|
686
|
+
}, b = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), et = new WeakMap(), rt = new WeakMap(), Y = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), ge);
|
|
687
687
|
const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resolve().then(() => Oo)), jr = B(() => Promise.resolve().then(() => Wn)), yr = B(() => Promise.resolve().then(() => qn)), kr = B(() => Promise.resolve().then(() => Zr)), wr = B(() => Promise.resolve().then(() => Rr)), vr = B(() => Promise.resolve().then(() => hn)), Nr = B(() => Promise.resolve().then(() => dn)), Cr = B(() => Promise.resolve().then(() => mo)), Ir = B(() => Promise.resolve().then(() => Gr)), Mr = B(() => Promise.resolve().then(() => Pn)), Sr = B(() => Promise.resolve().then(() => Dr)), _r = B(() => Promise.resolve().then(() => Bo)), Or = {
|
|
688
688
|
header: wr,
|
|
689
689
|
seoHeader: Cr,
|
|
@@ -723,9 +723,9 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
723
723
|
n.show();
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
}, [e]),
|
|
726
|
+
}, [e]), tt = ({ handlerOptions: e, className: t, ...r }) => {
|
|
727
727
|
const n = Fr(e);
|
|
728
|
-
return /* @__PURE__ */ o.jsx(
|
|
728
|
+
return /* @__PURE__ */ o.jsx(wt, { className: a(t), onClick: n, ...r, children: r.children });
|
|
729
729
|
}, Br = D(
|
|
730
730
|
"flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
|
|
731
731
|
{
|
|
@@ -766,7 +766,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
766
766
|
}
|
|
767
767
|
)
|
|
768
768
|
] }),
|
|
769
|
-
d && m && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ o.jsx(
|
|
769
|
+
d && m && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ o.jsx(tt, { intent: "primary", className: a("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
|
|
770
770
|
] }),
|
|
771
771
|
(n || m) && r && /* @__PURE__ */ o.jsx("div", { className: a("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r && _.isObject(r) ? /* @__PURE__ */ o.jsx("img", { className: a("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: r.alt }) : r })
|
|
772
772
|
]
|
|
@@ -797,7 +797,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
797
797
|
}, Symbol.toStringTag, { value: "Module" })), Hr = ({ variant: e, details: t }) => {
|
|
798
798
|
switch (e) {
|
|
799
799
|
case "withButton":
|
|
800
|
-
return /* @__PURE__ */ o.jsx(
|
|
800
|
+
return /* @__PURE__ */ o.jsx(tt, { ...t });
|
|
801
801
|
case "withPhone":
|
|
802
802
|
return /* @__PURE__ */ o.jsx(ye, { classes: { root: "items-end" }, ...t, phone: It(t.phone) });
|
|
803
803
|
default:
|
|
@@ -846,7 +846,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
846
846
|
),
|
|
847
847
|
children: [
|
|
848
848
|
r.enabled && /* @__PURE__ */ o.jsx(
|
|
849
|
-
|
|
849
|
+
tt,
|
|
850
850
|
{
|
|
851
851
|
className: a("w-full desktop:max-w-[216px]", t == null ? void 0 : t.primary),
|
|
852
852
|
size: "lg",
|
|
@@ -855,7 +855,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
855
855
|
}
|
|
856
856
|
),
|
|
857
857
|
(n == null ? void 0 : n.enabled) && /* @__PURE__ */ o.jsx(
|
|
858
|
-
|
|
858
|
+
tt,
|
|
859
859
|
{
|
|
860
860
|
intent: "secondary",
|
|
861
861
|
size: "lg",
|
|
@@ -866,7 +866,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
866
866
|
]
|
|
867
867
|
}
|
|
868
868
|
);
|
|
869
|
-
},
|
|
869
|
+
}, kt = ({ details: e, classes: t }) => {
|
|
870
870
|
const { variant: r, items: n } = e ?? {};
|
|
871
871
|
return /* @__PURE__ */ o.jsx("div", { className: a("flex items-center justify-center pb-8", t == null ? void 0 : t.root), children: /* @__PURE__ */ o.jsx(
|
|
872
872
|
"div",
|
|
@@ -916,13 +916,13 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
916
916
|
style: { backgroundColor: x ?? "#d9edff" },
|
|
917
917
|
className: a("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
918
918
|
children: [
|
|
919
|
-
/* @__PURE__ */ o.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: m ?
|
|
919
|
+
/* @__PURE__ */ o.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: m ? it({
|
|
920
920
|
imgProps: {
|
|
921
921
|
className: "h-full w-full object-cover object-center",
|
|
922
922
|
...l
|
|
923
923
|
},
|
|
924
924
|
renderImageCb: u
|
|
925
|
-
}) :
|
|
925
|
+
}) : it({
|
|
926
926
|
imgProps: {
|
|
927
927
|
className: "h-full w-full object-cover object-center",
|
|
928
928
|
...d
|
|
@@ -950,7 +950,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
950
950
|
/* @__PURE__ */ o.jsx(Ie, { buttonConfig: r })
|
|
951
951
|
] }) }),
|
|
952
952
|
(n == null ? void 0 : n.enabled) && p && /* @__PURE__ */ o.jsx(
|
|
953
|
-
|
|
953
|
+
kt,
|
|
954
954
|
{
|
|
955
955
|
classes: {
|
|
956
956
|
root: "mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:rounded-md desktop:p-0"
|
|
@@ -963,7 +963,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
963
963
|
}
|
|
964
964
|
),
|
|
965
965
|
(n == null ? void 0 : n.enabled) && p && /* @__PURE__ */ o.jsx(
|
|
966
|
-
|
|
966
|
+
kt,
|
|
967
967
|
{
|
|
968
968
|
classes: {
|
|
969
969
|
root: "px-4 pt-4 mobile:bg-color-white desktop:hidden"
|
|
@@ -1029,7 +1029,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1029
1029
|
"relative flex h-[356px] justify-center desktop:hidden desktop:h-[456px] desktop:w-[550px]",
|
|
1030
1030
|
i == null ? void 0 : i.imageContainer
|
|
1031
1031
|
),
|
|
1032
|
-
children:
|
|
1032
|
+
children: it({
|
|
1033
1033
|
imgProps: {
|
|
1034
1034
|
className: "h-full object-contain",
|
|
1035
1035
|
...u
|
|
@@ -1045,7 +1045,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1045
1045
|
"relative flex h-[356px] justify-center mobile:hidden desktop:h-[456px] desktop:w-[550px]",
|
|
1046
1046
|
i == null ? void 0 : i.imageContainer
|
|
1047
1047
|
),
|
|
1048
|
-
children:
|
|
1048
|
+
children: it({
|
|
1049
1049
|
imgProps: {
|
|
1050
1050
|
className: "h-full object-contain",
|
|
1051
1051
|
...l
|
|
@@ -1056,7 +1056,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1056
1056
|
)
|
|
1057
1057
|
] }),
|
|
1058
1058
|
(n == null ? void 0 : n.enabled) && m && /* @__PURE__ */ o.jsx(
|
|
1059
|
-
|
|
1059
|
+
kt,
|
|
1060
1060
|
{
|
|
1061
1061
|
classes: {
|
|
1062
1062
|
root: "mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:rounded-md desktop:p-0"
|
|
@@ -1066,7 +1066,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1066
1066
|
)
|
|
1067
1067
|
] }),
|
|
1068
1068
|
(n == null ? void 0 : n.enabled) && m && /* @__PURE__ */ o.jsx(
|
|
1069
|
-
|
|
1069
|
+
kt,
|
|
1070
1070
|
{
|
|
1071
1071
|
classes: {
|
|
1072
1072
|
root: "px-4 pt-4 mobile:bg-color-white desktop:hidden"
|
|
@@ -1088,12 +1088,13 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1088
1088
|
__proto__: null,
|
|
1089
1089
|
Banner: st,
|
|
1090
1090
|
default: st
|
|
1091
|
-
}, Symbol.toStringTag, { value: "Module" })), Vr = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: n }) => /* @__PURE__ */ o.jsx(
|
|
1091
|
+
}, Symbol.toStringTag, { value: "Module" })), Vr = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: n, ...i }) => /* @__PURE__ */ o.jsx(
|
|
1092
1092
|
"a",
|
|
1093
1093
|
{
|
|
1094
1094
|
className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
|
|
1095
1095
|
href: n,
|
|
1096
1096
|
"aria-label": r.replace("social/", ""),
|
|
1097
|
+
...i,
|
|
1097
1098
|
children: /* @__PURE__ */ o.jsx(c, { name: r, className: a("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
|
|
1098
1099
|
},
|
|
1099
1100
|
n
|
|
@@ -1119,8 +1120,8 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1119
1120
|
children: t == null ? void 0 : t.map(
|
|
1120
1121
|
({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: n, links: i }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
|
|
1121
1122
|
/* @__PURE__ */ o.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: n }),
|
|
1122
|
-
/* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: i == null ? void 0 : i.map(({ path: d, label: l }) => /* @__PURE__ */ o.jsx(
|
|
1123
|
-
|
|
1123
|
+
/* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: i == null ? void 0 : i.map(({ path: d, label: l, ...u }) => /* @__PURE__ */ o.jsx(
|
|
1124
|
+
pt,
|
|
1124
1125
|
{
|
|
1125
1126
|
href: d,
|
|
1126
1127
|
"aria-label": l,
|
|
@@ -1129,6 +1130,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1129
1130
|
link: e == null ? void 0 : e.navLink,
|
|
1130
1131
|
icon: e == null ? void 0 : e.navLinkIcon
|
|
1131
1132
|
},
|
|
1133
|
+
...u,
|
|
1132
1134
|
children: l
|
|
1133
1135
|
},
|
|
1134
1136
|
l
|
|
@@ -1151,7 +1153,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1151
1153
|
children: /* @__PURE__ */ o.jsx(c, { name: "brandLogos/logoWhite", className: a("size-full", e == null ? void 0 : e.footerLogoIcon) })
|
|
1152
1154
|
}
|
|
1153
1155
|
), Ur = ({ classes: e }) => /* @__PURE__ */ o.jsx(
|
|
1154
|
-
|
|
1156
|
+
pt,
|
|
1155
1157
|
{
|
|
1156
1158
|
intent: "white",
|
|
1157
1159
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -1339,7 +1341,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1339
1341
|
i
|
|
1340
1342
|
)) })), ee = ({ steppers: e, classes: t }) => {
|
|
1341
1343
|
var x, m;
|
|
1342
|
-
const r = e.length > 1, [n, i] = R(r ? (x = e[0]) == null ? void 0 : x.headline : ""), d =
|
|
1344
|
+
const r = e.length > 1, [n, i] = R(r ? (x = e[0]) == null ? void 0 : x.headline : ""), d = ft(() => e == null ? void 0 : e.map(({ headline: p }) => ({ headline: p })), [e]), l = r ? d == null ? void 0 : d.findIndex((p) => p.headline === n) : 0, u = e[l];
|
|
1343
1345
|
return /* @__PURE__ */ o.jsx("section", { id: g.stepper, "data-test-id": g.stepper, className: t == null ? void 0 : t.root, children: /* @__PURE__ */ o.jsx(T, { className: a(t == null ? void 0 : t.container, "mobile:max-w-[360px]"), children: /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", t == null ? void 0 : t.wrapper), children: [
|
|
1344
1346
|
/* @__PURE__ */ o.jsx(P, { as: "h2", className: a("text-color-dark", t == null ? void 0 : t.headline), children: u.headline }),
|
|
1345
1347
|
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-6 desktop:gap-10", children: [
|
|
@@ -1498,7 +1500,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1498
1500
|
l && /* @__PURE__ */ o.jsx(Ot, { intent: r, headline: e, mobileHidden: !0 }),
|
|
1499
1501
|
/* @__PURE__ */ o.jsx(on, { details: n, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
|
|
1500
1502
|
(t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ o.jsx(
|
|
1501
|
-
|
|
1503
|
+
tt,
|
|
1502
1504
|
{
|
|
1503
1505
|
className: a("w-full px-4 desktop:w-max", d == null ? void 0 : d.button),
|
|
1504
1506
|
size: "lg",
|
|
@@ -1586,7 +1588,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1586
1588
|
}
|
|
1587
1589
|
),
|
|
1588
1590
|
(t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */ o.jsx(
|
|
1589
|
-
|
|
1591
|
+
pt,
|
|
1590
1592
|
{
|
|
1591
1593
|
intent: "blue",
|
|
1592
1594
|
withUnderline: !0,
|
|
@@ -1692,8 +1694,8 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1692
1694
|
}
|
|
1693
1695
|
);
|
|
1694
1696
|
}
|
|
1695
|
-
}, qo = (e) => ln(e), ie = ({ links: e, classes: t }) => /* @__PURE__ */ o.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: n }) => /* @__PURE__ */ o.jsx(
|
|
1696
|
-
|
|
1697
|
+
}, qo = (e) => ln(e), ie = ({ links: e, classes: t }) => /* @__PURE__ */ o.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: n, ...i }) => /* @__PURE__ */ o.jsx(
|
|
1698
|
+
pt,
|
|
1697
1699
|
{
|
|
1698
1700
|
classes: {
|
|
1699
1701
|
link: a("w-max", t == null ? void 0 : t.linkText),
|
|
@@ -1701,6 +1703,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1701
1703
|
},
|
|
1702
1704
|
intent: "dark",
|
|
1703
1705
|
href: r,
|
|
1706
|
+
...i,
|
|
1704
1707
|
children: n
|
|
1705
1708
|
},
|
|
1706
1709
|
r
|
|
@@ -1992,7 +1995,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1992
1995
|
}
|
|
1993
1996
|
}, En = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Bn({ entity: e, classes: t, accordionsConfig: r }) }), ae = ({ headline: e, tabs: t, classes: r, accordionsConfig: n }) => {
|
|
1994
1997
|
var u, x;
|
|
1995
|
-
const [i, d] = R(0), l =
|
|
1998
|
+
const [i, d] = R(0), l = ft(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
|
|
1996
1999
|
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ o.jsx("section", { id: g.usefulInfo, "data-test-id": g.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsxs(T, { className: a(r == null ? void 0 : r.container), children: [
|
|
1997
2000
|
/* @__PURE__ */ o.jsx(P, { className: a(r == null ? void 0 : r.headline), as: "h2", children: e }),
|
|
1998
2001
|
/* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ o.jsx(pn, { tabsNames: l, activeTab: i, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
|
|
@@ -2190,7 +2193,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2190
2193
|
/* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children: u == null ? void 0 : u.map((C, L) => {
|
|
2191
2194
|
const X = C.type === "submit" && n.type === "checkbox" ? !m : !1;
|
|
2192
2195
|
return /* @__PURE__ */ Ct(
|
|
2193
|
-
|
|
2196
|
+
wt,
|
|
2194
2197
|
{
|
|
2195
2198
|
...C,
|
|
2196
2199
|
key: L,
|
|
@@ -2252,7 +2255,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2252
2255
|
l == null ? void 0 : l.map((M, E) => {
|
|
2253
2256
|
const z = M.type === "submit" && r.type === "checkbox" ? !m : !1;
|
|
2254
2257
|
return /* @__PURE__ */ Ct(
|
|
2255
|
-
|
|
2258
|
+
wt,
|
|
2256
2259
|
{
|
|
2257
2260
|
...M,
|
|
2258
2261
|
key: E,
|
|
@@ -2348,7 +2351,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2348
2351
|
/* @__PURE__ */ o.jsx(P, { as: "h2", children: ut()[e].title }),
|
|
2349
2352
|
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: ut()[e].description })
|
|
2350
2353
|
] }),
|
|
2351
|
-
/* @__PURE__ */ o.jsx(
|
|
2354
|
+
/* @__PURE__ */ o.jsx(wt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: ut()[e].button.text })
|
|
2352
2355
|
] }) }) }), Te = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ o.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Un = [
|
|
2353
2356
|
{
|
|
2354
2357
|
label: "Главная",
|
|
@@ -2362,7 +2365,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2362
2365
|
label: "В Тольятти",
|
|
2363
2366
|
disabled: !0
|
|
2364
2367
|
}
|
|
2365
|
-
],
|
|
2368
|
+
], yt = (e, t, r, n) => e.map((i, d) => {
|
|
2366
2369
|
const l = d === n;
|
|
2367
2370
|
return /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
2368
2371
|
/* @__PURE__ */ o.jsx(
|
|
@@ -2380,7 +2383,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2380
2383
|
}), Kn = ({ separator: e, ellipsis: t, classes: r, breadcrumbs: n = Un }) => {
|
|
2381
2384
|
const [i, d] = R(!1), l = Dt(null);
|
|
2382
2385
|
dr(l, () => d(!1));
|
|
2383
|
-
const { first: u, middle: x, last: m } =
|
|
2386
|
+
const { first: u, middle: x, last: m } = ft(() => {
|
|
2384
2387
|
let f = [], I = [], y = [];
|
|
2385
2388
|
return t && (f = n.slice(0, t), I = n.slice(t, n.length - t), y = n.slice(n.length - t)), { first: f, middle: I, last: y };
|
|
2386
2389
|
}, [n, t]), p = e ?? /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowRight", className: a("size-4", r == null ? void 0 : r.separator) });
|
|
@@ -2398,7 +2401,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2398
2401
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2399
2402
|
// render hidden breadcrumbs
|
|
2400
2403
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2401
|
-
|
|
2404
|
+
yt(u, p, r == null ? void 0 : r.breadcrumb),
|
|
2402
2405
|
p,
|
|
2403
2406
|
x.length > 0 && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2404
2407
|
/* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
|
|
@@ -2432,15 +2435,15 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2432
2435
|
] }),
|
|
2433
2436
|
p
|
|
2434
2437
|
] }),
|
|
2435
|
-
|
|
2438
|
+
yt(m, p, r == null ? void 0 : r.breadcrumb, m.length - 1)
|
|
2436
2439
|
] })
|
|
2437
2440
|
) : (
|
|
2438
2441
|
// otherwise render all breadcrumbs
|
|
2439
|
-
|
|
2442
|
+
yt(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
|
|
2440
2443
|
) })
|
|
2441
2444
|
) : (
|
|
2442
2445
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2443
|
-
|
|
2446
|
+
yt(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
|
|
2444
2447
|
)
|
|
2445
2448
|
}
|
|
2446
2449
|
);
|
|
@@ -2498,8 +2501,8 @@ const Zn = (e, t) => {
|
|
|
2498
2501
|
}
|
|
2499
2502
|
),
|
|
2500
2503
|
/* @__PURE__ */ o.jsx("ul", { className: "w-[328px]", children: i.children.map((u) => {
|
|
2501
|
-
var x;
|
|
2502
|
-
return /* @__PURE__ */ o.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ o.jsx("a", { href: (x = u.link) == null ? void 0 : x.href, className: "w-full text-16", children: u.title }) }, u.title);
|
|
2504
|
+
var x, m;
|
|
2505
|
+
return /* @__PURE__ */ o.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ o.jsx("a", { href: (x = u.link) == null ? void 0 : x.href, target: (m = u.link) == null ? void 0 : m.target, className: "w-full text-16", children: u.title }) }, u.title);
|
|
2503
2506
|
}) })
|
|
2504
2507
|
] }, i.title);
|
|
2505
2508
|
}) })
|
|
@@ -2706,7 +2709,7 @@ const Zn = (e, t) => {
|
|
|
2706
2709
|
})), lo = ({ categories: e, helpers: t, phone: r, ...n }) => {
|
|
2707
2710
|
const i = ao(e), [d, l] = R(i[0]), u = (m) => {
|
|
2708
2711
|
_.isUndefined(m) || _.isArray(m) || l(m);
|
|
2709
|
-
}, x =
|
|
2712
|
+
}, x = ft(() => {
|
|
2710
2713
|
var m;
|
|
2711
2714
|
return _.isUndefined(d) || _.isArray(d) ? [] : ((m = e.find((p) => p.title === d.value)) == null ? void 0 : m.children) ?? [];
|
|
2712
2715
|
}, [d, e]);
|
|
@@ -2868,7 +2871,7 @@ const Zn = (e, t) => {
|
|
|
2868
2871
|
)
|
|
2869
2872
|
] }), ko = ({ assistHint: e, buttonsConfig: t, bottomDescription: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { children: [
|
|
2870
2873
|
e && /* @__PURE__ */ o.jsx(yo, { ...e, classes: n == null ? void 0 : n.assistHint }),
|
|
2871
|
-
/* @__PURE__ */ o.jsx("div", { className: a("flex items-center gap-4 mobile:flex-col", n == null ? void 0 : n.buttonsWrapper), children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ o.jsx(
|
|
2874
|
+
/* @__PURE__ */ o.jsx("div", { className: a("flex items-center gap-4 mobile:flex-col", n == null ? void 0 : n.buttonsWrapper), children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ o.jsx(tt, { className: "w-full", ...i }, d)) }),
|
|
2872
2875
|
r && /* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-m mt-4 text-color-secondary", n == null ? void 0 : n.bottomDescription), children: r })
|
|
2873
2876
|
] }), wo = ({
|
|
2874
2877
|
rootDescription: e,
|
|
@@ -3040,7 +3043,7 @@ const Zn = (e, t) => {
|
|
|
3040
3043
|
] }) });
|
|
3041
3044
|
}, xe = ({ calculators: e, headline: t, classes: r }) => {
|
|
3042
3045
|
var m;
|
|
3043
|
-
const n = e.length > 1, [i, d] = R(n ? (m = e[0]) == null ? void 0 : m.name : ""), l =
|
|
3046
|
+
const n = e.length > 1, [i, d] = R(n ? (m = e[0]) == null ? void 0 : m.name : ""), l = ft(() => e == null ? void 0 : e.map(({ name: p, label: f }) => ({ name: p, label: f })), [e]), u = n ? l == null ? void 0 : l.findIndex((p) => p.name === i) : 0, x = e[u];
|
|
3044
3047
|
return /* @__PURE__ */ o.jsx("section", { id: g.calculator, "data-test-id": g.calculator, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsx(T, { className: a(r == null ? void 0 : r.container), children: /* @__PURE__ */ o.jsxs("div", { className: a(r == null ? void 0 : r.wrapper), children: [
|
|
3045
3048
|
/* @__PURE__ */ o.jsx(P, { className: a("mb-12", r == null ? void 0 : r.headline), as: "h2", children: t }),
|
|
3046
3049
|
n && /* @__PURE__ */ o.jsx(
|
|
@@ -3067,7 +3070,7 @@ const Zn = (e, t) => {
|
|
|
3067
3070
|
__proto__: null,
|
|
3068
3071
|
Calculator: xe,
|
|
3069
3072
|
default: xe
|
|
3070
|
-
}, Symbol.toStringTag, { value: "Module" })), To = ({ linksList: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex flex-wrap items-center gap-4 desktop:mt-12 desktop:gap-8", t == null ? void 0 : t.list), children: e == null ? void 0 : e.map((r, n) => /* @__PURE__ */ o.jsx(
|
|
3073
|
+
}, Symbol.toStringTag, { value: "Module" })), To = ({ linksList: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex flex-wrap items-center gap-4 desktop:mt-12 desktop:gap-8", t == null ? void 0 : t.list), children: e == null ? void 0 : e.map((r, n) => /* @__PURE__ */ o.jsx(pt, { withUnderline: !0, size: "md", classes: t == null ? void 0 : t.customLink, ...r }, n)) }), Fo = ({
|
|
3071
3074
|
heading: e,
|
|
3072
3075
|
buttonsGroup: t,
|
|
3073
3076
|
imageMobile: r,
|
|
@@ -3080,16 +3083,22 @@ const Zn = (e, t) => {
|
|
|
3080
3083
|
return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", l == null ? void 0 : l.wrapper), children: [
|
|
3081
3084
|
/* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4 mobile:mb-2", l == null ? void 0 : l.textBlock), children: [
|
|
3082
3085
|
/* @__PURE__ */ o.jsx(P, { as: "h2", className: a(l == null ? void 0 : l.heading), children: e }),
|
|
3083
|
-
i && /* @__PURE__ */ o.jsx(
|
|
3086
|
+
i && /* @__PURE__ */ o.jsx(
|
|
3087
|
+
"p",
|
|
3088
|
+
{
|
|
3089
|
+
dangerouslySetInnerHTML: { __html: i },
|
|
3090
|
+
className: a("desk-body-regular-l text-color-dark", l == null ? void 0 : l.description)
|
|
3091
|
+
}
|
|
3092
|
+
)
|
|
3084
3093
|
] }),
|
|
3085
|
-
/* @__PURE__ */ o.jsx("div", { className: a("h-full w-full desktop:hidden", l == null ? void 0 : l.imageMobileWrapper), children:
|
|
3094
|
+
/* @__PURE__ */ o.jsx("div", { className: a("h-full w-full desktop:hidden", l == null ? void 0 : l.imageMobileWrapper), children: it({
|
|
3086
3095
|
imgProps: {
|
|
3087
3096
|
className: a("object-contain w-full h-full", l == null ? void 0 : l.imageMobile),
|
|
3088
3097
|
...r
|
|
3089
3098
|
},
|
|
3090
3099
|
renderImageCb: n
|
|
3091
3100
|
}) }),
|
|
3092
|
-
u && /* @__PURE__ */ o.jsx("div", { className: a("mt-2 flex items-center gap-3 mobile:flex-col desktop:mt-8 desktop:gap-8", l == null ? void 0 : l.buttonsGroup), children: t == null ? void 0 : t.map((m, p) => /* @__PURE__ */ o.jsx(
|
|
3101
|
+
u && /* @__PURE__ */ o.jsx("div", { className: a("mt-2 flex items-center gap-3 mobile:flex-col desktop:mt-8 desktop:gap-8", l == null ? void 0 : l.buttonsGroup), children: t == null ? void 0 : t.map((m, p) => /* @__PURE__ */ o.jsx(tt, { className: "w-full desktop:w-[216px]", ...m }, p)) }),
|
|
3093
3102
|
x && /* @__PURE__ */ o.jsx(To, { linksList: d, classes: l == null ? void 0 : l.linksList })
|
|
3094
3103
|
] });
|
|
3095
3104
|
}, he = (e) => {
|
|
@@ -3109,7 +3118,7 @@ const Zn = (e, t) => {
|
|
|
3109
3118
|
className: a("h-[200px] w-full max-w-[432px] mobile:hidden", d == null ? void 0 : d.imageDesktopWrapper, {
|
|
3110
3119
|
"h-[238px]": t === "md"
|
|
3111
3120
|
}),
|
|
3112
|
-
children:
|
|
3121
|
+
children: it({
|
|
3113
3122
|
imgProps: {
|
|
3114
3123
|
className: a("object-contain w-full h-full", d == null ? void 0 : d.imageDesktop),
|
|
3115
3124
|
...i
|
|
@@ -3132,7 +3141,7 @@ export {
|
|
|
3132
3141
|
Lr as BannerWithSeparateImg,
|
|
3133
3142
|
Jt as Benefit,
|
|
3134
3143
|
Kn as Breadcrumbs,
|
|
3135
|
-
|
|
3144
|
+
tt as ButtonWithHandlers,
|
|
3136
3145
|
xe as Calculator,
|
|
3137
3146
|
_o as CalculatorView,
|
|
3138
3147
|
le as DynamicForm,
|