@scbt-ecom/ui 0.86.0 → 0.86.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ButtonWithHandlersProps } from '../../buttonWithHandlers';
|
|
1
2
|
import { LinksListClasses, LinksListProps } from './LinksList';
|
|
2
|
-
import { ButtonProps } from '../../../shared/ui';
|
|
3
3
|
import { RenderImage } from '../../../shared/utils';
|
|
4
4
|
export type RootContentClasses = {
|
|
5
5
|
wrapper?: string;
|
|
@@ -14,7 +14,7 @@ export type RootContentClasses = {
|
|
|
14
14
|
export interface RootContentProps extends Omit<LinksListProps, 'classes'> {
|
|
15
15
|
heading: string;
|
|
16
16
|
description?: string;
|
|
17
|
-
buttonsGroup?:
|
|
17
|
+
buttonsGroup?: ButtonWithHandlersProps[];
|
|
18
18
|
imageMobile: RenderImage['imgProps'];
|
|
19
19
|
renderImageCb?: RenderImage['renderImageCb'];
|
|
20
20
|
classes?: RootContentClasses;
|
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,12 +14,12 @@ 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
|
|
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-Bz84dAoh.js";
|
|
18
18
|
import { c as a, T as _ } from "./typeGuards-CSiImkUY.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
|
|
22
|
+
import { s as nr, c as It, r as it, a as or, l as ir } from "./renderImage-D1GvKq_K.js";
|
|
23
23
|
import { u as lt, b as Ht, a as dr, g as Mt, F as ar } from "./useDebounce-CEu2ysPk.js";
|
|
24
24
|
import { z as ve, Z as Rt } from "./index-BO81H324.js";
|
|
25
25
|
import { au as Ne } from "./utils-CnDzHNQ6.js";
|
|
@@ -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"
|
|
@@ -1120,7 +1120,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1120
1120
|
({ 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
1121
|
/* @__PURE__ */ o.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: n }),
|
|
1122
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
|
+
pt,
|
|
1124
1124
|
{
|
|
1125
1125
|
href: d,
|
|
1126
1126
|
"aria-label": l,
|
|
@@ -1151,7 +1151,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1151
1151
|
children: /* @__PURE__ */ o.jsx(c, { name: "brandLogos/logoWhite", className: a("size-full", e == null ? void 0 : e.footerLogoIcon) })
|
|
1152
1152
|
}
|
|
1153
1153
|
), Ur = ({ classes: e }) => /* @__PURE__ */ o.jsx(
|
|
1154
|
-
|
|
1154
|
+
pt,
|
|
1155
1155
|
{
|
|
1156
1156
|
intent: "white",
|
|
1157
1157
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -1339,7 +1339,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1339
1339
|
i
|
|
1340
1340
|
)) })), ee = ({ steppers: e, classes: t }) => {
|
|
1341
1341
|
var x, m;
|
|
1342
|
-
const r = e.length > 1, [n, i] = R(r ? (x = e[0]) == null ? void 0 : x.headline : ""), d =
|
|
1342
|
+
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
1343
|
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
1344
|
/* @__PURE__ */ o.jsx(P, { as: "h2", className: a("text-color-dark", t == null ? void 0 : t.headline), children: u.headline }),
|
|
1345
1345
|
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-6 desktop:gap-10", children: [
|
|
@@ -1498,7 +1498,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1498
1498
|
l && /* @__PURE__ */ o.jsx(Ot, { intent: r, headline: e, mobileHidden: !0 }),
|
|
1499
1499
|
/* @__PURE__ */ o.jsx(on, { details: n, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
|
|
1500
1500
|
(t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ o.jsx(
|
|
1501
|
-
|
|
1501
|
+
tt,
|
|
1502
1502
|
{
|
|
1503
1503
|
className: a("w-full px-4 desktop:w-max", d == null ? void 0 : d.button),
|
|
1504
1504
|
size: "lg",
|
|
@@ -1586,7 +1586,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1586
1586
|
}
|
|
1587
1587
|
),
|
|
1588
1588
|
(t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */ o.jsx(
|
|
1589
|
-
|
|
1589
|
+
pt,
|
|
1590
1590
|
{
|
|
1591
1591
|
intent: "blue",
|
|
1592
1592
|
withUnderline: !0,
|
|
@@ -1693,7 +1693,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1693
1693
|
);
|
|
1694
1694
|
}
|
|
1695
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
|
-
|
|
1696
|
+
pt,
|
|
1697
1697
|
{
|
|
1698
1698
|
classes: {
|
|
1699
1699
|
link: a("w-max", t == null ? void 0 : t.linkText),
|
|
@@ -1992,7 +1992,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1992
1992
|
}
|
|
1993
1993
|
}, 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
1994
|
var u, x;
|
|
1995
|
-
const [i, d] = R(0), l =
|
|
1995
|
+
const [i, d] = R(0), l = ft(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
|
|
1996
1996
|
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
1997
|
/* @__PURE__ */ o.jsx(P, { className: a(r == null ? void 0 : r.headline), as: "h2", children: e }),
|
|
1998
1998
|
/* @__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 +2190,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2190
2190
|
/* @__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
2191
|
const X = C.type === "submit" && n.type === "checkbox" ? !m : !1;
|
|
2192
2192
|
return /* @__PURE__ */ Ct(
|
|
2193
|
-
|
|
2193
|
+
wt,
|
|
2194
2194
|
{
|
|
2195
2195
|
...C,
|
|
2196
2196
|
key: L,
|
|
@@ -2252,7 +2252,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2252
2252
|
l == null ? void 0 : l.map((M, E) => {
|
|
2253
2253
|
const z = M.type === "submit" && r.type === "checkbox" ? !m : !1;
|
|
2254
2254
|
return /* @__PURE__ */ Ct(
|
|
2255
|
-
|
|
2255
|
+
wt,
|
|
2256
2256
|
{
|
|
2257
2257
|
...M,
|
|
2258
2258
|
key: E,
|
|
@@ -2348,7 +2348,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2348
2348
|
/* @__PURE__ */ o.jsx(P, { as: "h2", children: ut()[e].title }),
|
|
2349
2349
|
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: ut()[e].description })
|
|
2350
2350
|
] }),
|
|
2351
|
-
/* @__PURE__ */ o.jsx(
|
|
2351
|
+
/* @__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
2352
|
] }) }) }), 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
2353
|
{
|
|
2354
2354
|
label: "Главная",
|
|
@@ -2362,7 +2362,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2362
2362
|
label: "В Тольятти",
|
|
2363
2363
|
disabled: !0
|
|
2364
2364
|
}
|
|
2365
|
-
],
|
|
2365
|
+
], yt = (e, t, r, n) => e.map((i, d) => {
|
|
2366
2366
|
const l = d === n;
|
|
2367
2367
|
return /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
2368
2368
|
/* @__PURE__ */ o.jsx(
|
|
@@ -2380,7 +2380,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2380
2380
|
}), Kn = ({ separator: e, ellipsis: t, classes: r, breadcrumbs: n = Un }) => {
|
|
2381
2381
|
const [i, d] = R(!1), l = Dt(null);
|
|
2382
2382
|
dr(l, () => d(!1));
|
|
2383
|
-
const { first: u, middle: x, last: m } =
|
|
2383
|
+
const { first: u, middle: x, last: m } = ft(() => {
|
|
2384
2384
|
let f = [], I = [], y = [];
|
|
2385
2385
|
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
2386
|
}, [n, t]), p = e ?? /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowRight", className: a("size-4", r == null ? void 0 : r.separator) });
|
|
@@ -2398,7 +2398,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2398
2398
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2399
2399
|
// render hidden breadcrumbs
|
|
2400
2400
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2401
|
-
|
|
2401
|
+
yt(u, p, r == null ? void 0 : r.breadcrumb),
|
|
2402
2402
|
p,
|
|
2403
2403
|
x.length > 0 && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2404
2404
|
/* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
|
|
@@ -2432,15 +2432,15 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2432
2432
|
] }),
|
|
2433
2433
|
p
|
|
2434
2434
|
] }),
|
|
2435
|
-
|
|
2435
|
+
yt(m, p, r == null ? void 0 : r.breadcrumb, m.length - 1)
|
|
2436
2436
|
] })
|
|
2437
2437
|
) : (
|
|
2438
2438
|
// otherwise render all breadcrumbs
|
|
2439
|
-
|
|
2439
|
+
yt(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
|
|
2440
2440
|
) })
|
|
2441
2441
|
) : (
|
|
2442
2442
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2443
|
-
|
|
2443
|
+
yt(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
|
|
2444
2444
|
)
|
|
2445
2445
|
}
|
|
2446
2446
|
);
|
|
@@ -2706,7 +2706,7 @@ const Zn = (e, t) => {
|
|
|
2706
2706
|
})), lo = ({ categories: e, helpers: t, phone: r, ...n }) => {
|
|
2707
2707
|
const i = ao(e), [d, l] = R(i[0]), u = (m) => {
|
|
2708
2708
|
_.isUndefined(m) || _.isArray(m) || l(m);
|
|
2709
|
-
}, x =
|
|
2709
|
+
}, x = ft(() => {
|
|
2710
2710
|
var m;
|
|
2711
2711
|
return _.isUndefined(d) || _.isArray(d) ? [] : ((m = e.find((p) => p.title === d.value)) == null ? void 0 : m.children) ?? [];
|
|
2712
2712
|
}, [d, e]);
|
|
@@ -2868,7 +2868,7 @@ const Zn = (e, t) => {
|
|
|
2868
2868
|
)
|
|
2869
2869
|
] }), ko = ({ assistHint: e, buttonsConfig: t, bottomDescription: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { children: [
|
|
2870
2870
|
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(
|
|
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(tt, { className: "w-full", ...i }, d)) }),
|
|
2872
2872
|
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
2873
|
] }), wo = ({
|
|
2874
2874
|
rootDescription: e,
|
|
@@ -3040,7 +3040,7 @@ const Zn = (e, t) => {
|
|
|
3040
3040
|
] }) });
|
|
3041
3041
|
}, xe = ({ calculators: e, headline: t, classes: r }) => {
|
|
3042
3042
|
var m;
|
|
3043
|
-
const n = e.length > 1, [i, d] = R(n ? (m = e[0]) == null ? void 0 : m.name : ""), l =
|
|
3043
|
+
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
3044
|
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
3045
|
/* @__PURE__ */ o.jsx(P, { className: a("mb-12", r == null ? void 0 : r.headline), as: "h2", children: t }),
|
|
3046
3046
|
n && /* @__PURE__ */ o.jsx(
|
|
@@ -3067,7 +3067,7 @@ const Zn = (e, t) => {
|
|
|
3067
3067
|
__proto__: null,
|
|
3068
3068
|
Calculator: xe,
|
|
3069
3069
|
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(
|
|
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(pt, { withUnderline: !0, size: "md", classes: t == null ? void 0 : t.customLink, ...r }, n)) }), Fo = ({
|
|
3071
3071
|
heading: e,
|
|
3072
3072
|
buttonsGroup: t,
|
|
3073
3073
|
imageMobile: r,
|
|
@@ -3080,16 +3080,22 @@ const Zn = (e, t) => {
|
|
|
3080
3080
|
return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", l == null ? void 0 : l.wrapper), children: [
|
|
3081
3081
|
/* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4 mobile:mb-2", l == null ? void 0 : l.textBlock), children: [
|
|
3082
3082
|
/* @__PURE__ */ o.jsx(P, { as: "h2", className: a(l == null ? void 0 : l.heading), children: e }),
|
|
3083
|
-
i && /* @__PURE__ */ o.jsx(
|
|
3083
|
+
i && /* @__PURE__ */ o.jsx(
|
|
3084
|
+
"p",
|
|
3085
|
+
{
|
|
3086
|
+
dangerouslySetInnerHTML: { __html: i },
|
|
3087
|
+
className: a("desk-body-regular-l text-color-dark", l == null ? void 0 : l.description)
|
|
3088
|
+
}
|
|
3089
|
+
)
|
|
3084
3090
|
] }),
|
|
3085
|
-
/* @__PURE__ */ o.jsx("div", { className: a("h-full w-full desktop:hidden", l == null ? void 0 : l.imageMobileWrapper), children:
|
|
3091
|
+
/* @__PURE__ */ o.jsx("div", { className: a("h-full w-full desktop:hidden", l == null ? void 0 : l.imageMobileWrapper), children: it({
|
|
3086
3092
|
imgProps: {
|
|
3087
3093
|
className: a("object-contain w-full h-full", l == null ? void 0 : l.imageMobile),
|
|
3088
3094
|
...r
|
|
3089
3095
|
},
|
|
3090
3096
|
renderImageCb: n
|
|
3091
3097
|
}) }),
|
|
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(
|
|
3098
|
+
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
3099
|
x && /* @__PURE__ */ o.jsx(To, { linksList: d, classes: l == null ? void 0 : l.linksList })
|
|
3094
3100
|
] });
|
|
3095
3101
|
}, he = (e) => {
|
|
@@ -3109,7 +3115,7 @@ const Zn = (e, t) => {
|
|
|
3109
3115
|
className: a("h-[200px] w-full max-w-[432px] mobile:hidden", d == null ? void 0 : d.imageDesktopWrapper, {
|
|
3110
3116
|
"h-[238px]": t === "md"
|
|
3111
3117
|
}),
|
|
3112
|
-
children:
|
|
3118
|
+
children: it({
|
|
3113
3119
|
imgProps: {
|
|
3114
3120
|
className: a("object-contain w-full h-full", d == null ? void 0 : d.imageDesktop),
|
|
3115
3121
|
...i
|
|
@@ -3132,7 +3138,7 @@ export {
|
|
|
3132
3138
|
Lr as BannerWithSeparateImg,
|
|
3133
3139
|
Jt as Benefit,
|
|
3134
3140
|
Kn as Breadcrumbs,
|
|
3135
|
-
|
|
3141
|
+
tt as ButtonWithHandlers,
|
|
3136
3142
|
xe as Calculator,
|
|
3137
3143
|
_o as CalculatorView,
|
|
3138
3144
|
le as DynamicForm,
|