@scbt-ecom/ui 0.81.0 → 0.81.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widget.js +129 -116
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
package/dist/widget.js
CHANGED
|
@@ -4,22 +4,22 @@ var He = (t) => {
|
|
|
4
4
|
};
|
|
5
5
|
var Et = (t, e, o) => e in t ? Ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
6
6
|
var ve = (t, e, o) => Et(t, typeof e != "symbol" ? e + "" : e, o), Ne = (t, e, o) => e.has(t) || He("Cannot " + o);
|
|
7
|
-
var x = (t, e, o) => (Ne(t, e, "read from private field"), o ? o.call(t) : e.get(t)), M = (t, e, o) => e.has(t) ? He("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o),
|
|
7
|
+
var x = (t, e, o) => (Ne(t, e, "read from private field"), o ? o.call(t) : e.get(t)), M = (t, e, o) => e.has(t) ? He("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), k = (t, e, o, n) => (Ne(t, e, "write to private field"), n ? n.call(t, o) : e.set(t, o), o), W = (t, e, o) => (Ne(t, e, "access private method"), o);
|
|
8
8
|
var ce = (t, e, o, n) => ({
|
|
9
9
|
set _(i) {
|
|
10
|
-
|
|
10
|
+
k(t, e, i, o);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return x(t, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as ft, h as bt, Q as Bt, n as O, m as ze, R as Pt, c as Dt, a as Le, b as $, e as Rt, d as Ht, f as zt, g as Lt, o as Qe, r as Ve, i as Qt, j as $e, p as Ae, s as Vt, k as r, B as ge, l as E, q as F, P as gt, t as $t, H as D, I as b, C as je, u as _e, L as At, v as Te, A as
|
|
16
|
+
import { S as ft, h as bt, Q as Bt, n as O, m as ze, R as Pt, c as Dt, a as Le, b as $, e as Rt, d as Ht, f as zt, g as Lt, o as Qe, r as Ve, i as Qt, j as $e, p as Ae, s as Vt, k as r, B as ge, l as E, q as F, P as gt, t as $t, H as D, I as b, C as je, u as _e, L as At, v as Te, A as ie, w as jt, x as qt, y as Wt, U as ye, D as Ut, z as Se, E as Kt, M as Zt } from "./index-BatWr8jg.js";
|
|
17
17
|
import { c as l, T as S } from "./typeGuards-CSiImkUY.js";
|
|
18
18
|
import * as ue from "react";
|
|
19
19
|
import { lazy as B, useCallback as yt, useState as q, useMemo as se, createElement as Oe, useRef as Fe, useReducer as Xt, memo as Ee, forwardRef as Yt, useEffect as qe } from "react";
|
|
20
20
|
import { i as We } from "./isClient-C9aZtt2Q.js";
|
|
21
21
|
import { s as Jt, c as ke, a as Gt } from "./capitalize-B7CPmCdk.js";
|
|
22
|
-
import { u as
|
|
22
|
+
import { u as ae, b as Be, a as er, f as we, F as tr } from "./useDebounce-maGDilFr.js";
|
|
23
23
|
import { z as st, Z as Pe } from "./index-DQTqhWTt.js";
|
|
24
24
|
import { o as kt } from "./utils-Bu1Zg675.js";
|
|
25
25
|
import { a as rr, u as nr } from "./useFieldsProgress-egXj013a.js";
|
|
@@ -28,7 +28,7 @@ var z, ht, or = (ht = class extends ft {
|
|
|
28
28
|
constructor(e = {}) {
|
|
29
29
|
super();
|
|
30
30
|
M(this, z);
|
|
31
|
-
this.config = e,
|
|
31
|
+
this.config = e, k(this, z, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
33
|
build(e, o, n) {
|
|
34
34
|
const i = o.queryKey, a = o.queryHash ?? bt(i, o);
|
|
@@ -103,7 +103,7 @@ var z, ht, or = (ht = class extends ft {
|
|
|
103
103
|
M(this, L);
|
|
104
104
|
M(this, T);
|
|
105
105
|
M(this, G);
|
|
106
|
-
this.mutationId = e.mutationId,
|
|
106
|
+
this.mutationId = e.mutationId, k(this, T, e.mutationCache), k(this, L, []), this.state = e.state || ar(), this.setOptions(e.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
108
|
setOptions(e) {
|
|
109
109
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -119,7 +119,7 @@ var z, ht, or = (ht = class extends ft {
|
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
removeObserver(e) {
|
|
122
|
-
|
|
122
|
+
k(this, L, x(this, L).filter((o) => o !== e)), this.scheduleGc(), x(this, T).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
125
|
observer: e
|
|
@@ -134,11 +134,11 @@ var z, ht, or = (ht = class extends ft {
|
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(e) {
|
|
137
|
-
var a, d, u, m, h, p, c,
|
|
137
|
+
var a, d, u, m, h, p, c, y, f, w, g, v, _, R, C, I, H, V, xe, le;
|
|
138
138
|
const o = () => {
|
|
139
139
|
W(this, Q, U).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
k(this, G, Dt({
|
|
142
142
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
143
143
|
onFail: (N, pe) => {
|
|
144
144
|
W(this, Q, U).call(this, { type: "failed", failureCount: N, error: pe });
|
|
@@ -177,14 +177,14 @@ var z, ht, or = (ht = class extends ft {
|
|
|
177
177
|
e,
|
|
178
178
|
this.state.context,
|
|
179
179
|
this
|
|
180
|
-
)), await ((
|
|
180
|
+
)), await ((y = (c = this.options).onSuccess) == null ? void 0 : y.call(c, N, e, this.state.context)), await ((w = (f = x(this, T).config).onSettled) == null ? void 0 : w.call(
|
|
181
181
|
f,
|
|
182
182
|
N,
|
|
183
183
|
null,
|
|
184
184
|
this.state.variables,
|
|
185
185
|
this.state.context,
|
|
186
186
|
this
|
|
187
|
-
)), await ((
|
|
187
|
+
)), await ((v = (g = this.options).onSettled) == null ? void 0 : v.call(g, N, null, e, this.state.context)), W(this, Q, U).call(this, { type: "success", data: N }), N;
|
|
188
188
|
} catch (N) {
|
|
189
189
|
try {
|
|
190
190
|
throw await ((R = (_ = x(this, T).config).onError) == null ? void 0 : R.call(
|
|
@@ -302,7 +302,7 @@ var A, P, he, pt, lr = (pt = class extends ft {
|
|
|
302
302
|
M(this, A);
|
|
303
303
|
M(this, P);
|
|
304
304
|
M(this, he);
|
|
305
|
-
this.config = e,
|
|
305
|
+
this.config = e, k(this, A, /* @__PURE__ */ new Set()), k(this, P, /* @__PURE__ */ new Map()), k(this, he, 0);
|
|
306
306
|
}
|
|
307
307
|
build(e, o, n) {
|
|
308
308
|
const i = new ir({
|
|
@@ -397,20 +397,20 @@ function fe(t) {
|
|
|
397
397
|
function Ue(t) {
|
|
398
398
|
return {
|
|
399
399
|
onFetch: (e, o) => {
|
|
400
|
-
var p, c,
|
|
401
|
-
const n = e.options, i = (
|
|
400
|
+
var p, c, y, f, w;
|
|
401
|
+
const n = e.options, i = (y = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : y.direction, a = ((f = e.state.data) == null ? void 0 : f.pages) || [], d = ((w = e.state.data) == null ? void 0 : w.pageParams) || [];
|
|
402
402
|
let u = { pages: [], pageParams: [] }, m = 0;
|
|
403
403
|
const h = async () => {
|
|
404
|
-
let
|
|
405
|
-
const
|
|
404
|
+
let g = !1;
|
|
405
|
+
const v = (C) => {
|
|
406
406
|
Object.defineProperty(C, "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
|
}, _ = Rt(e.options, e.fetchOptions), R = async (C, I, H) => {
|
|
413
|
-
if (
|
|
413
|
+
if (g)
|
|
414
414
|
return Promise.reject();
|
|
415
415
|
if (I == null && C.pages.length)
|
|
416
416
|
return Promise.resolve(C);
|
|
@@ -421,7 +421,7 @@ function Ue(t) {
|
|
|
421
421
|
direction: H ? "backward" : "forward",
|
|
422
422
|
meta: e.options.meta
|
|
423
423
|
};
|
|
424
|
-
|
|
424
|
+
v(V);
|
|
425
425
|
const xe = await _(
|
|
426
426
|
V
|
|
427
427
|
), { maxPages: le } = e.options, N = H ? Ht : zt;
|
|
@@ -448,9 +448,9 @@ function Ue(t) {
|
|
|
448
448
|
return u;
|
|
449
449
|
};
|
|
450
450
|
e.options.persister ? e.fetchFn = () => {
|
|
451
|
-
var
|
|
452
|
-
return (
|
|
453
|
-
|
|
451
|
+
var g, v;
|
|
452
|
+
return (v = (g = e.options).persister) == null ? void 0 : v.call(
|
|
453
|
+
g,
|
|
454
454
|
h,
|
|
455
455
|
{
|
|
456
456
|
client: e.client,
|
|
@@ -477,28 +477,28 @@ function dr(t, { pages: e, pageParams: o }) {
|
|
|
477
477
|
var n;
|
|
478
478
|
return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, o[0], o) : void 0;
|
|
479
479
|
}
|
|
480
|
-
var s, K, Z,
|
|
480
|
+
var s, K, Z, ee, te, X, re, ne, ct, ur = (ct = class {
|
|
481
481
|
constructor(t = {}) {
|
|
482
482
|
M(this, s);
|
|
483
483
|
M(this, K);
|
|
484
484
|
M(this, Z);
|
|
485
|
+
M(this, ee);
|
|
485
486
|
M(this, te);
|
|
486
|
-
M(this, re);
|
|
487
487
|
M(this, X);
|
|
488
|
+
M(this, re);
|
|
488
489
|
M(this, ne);
|
|
489
|
-
|
|
490
|
-
w(this, s, t.queryCache || new or()), w(this, K, t.mutationCache || new lr()), w(this, Z, t.defaultOptions || {}), w(this, te, /* @__PURE__ */ new Map()), w(this, re, /* @__PURE__ */ new Map()), w(this, X, 0);
|
|
490
|
+
k(this, s, t.queryCache || new or()), k(this, K, t.mutationCache || new lr()), k(this, Z, t.defaultOptions || {}), k(this, ee, /* @__PURE__ */ new Map()), k(this, te, /* @__PURE__ */ new Map()), k(this, X, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
ce(this, X)._++, x(this, X) === 1 && (
|
|
493
|
+
ce(this, X)._++, x(this, X) === 1 && (k(this, re, Lt.subscribe(async (t) => {
|
|
494
494
|
t && (await this.resumePausedMutations(), x(this, s).onFocus());
|
|
495
|
-
})),
|
|
495
|
+
})), k(this, ne, Qe.subscribe(async (t) => {
|
|
496
496
|
t && (await this.resumePausedMutations(), x(this, s).onOnline());
|
|
497
497
|
})));
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
500
|
var t, e;
|
|
501
|
-
ce(this, X)._--, x(this, X) === 0 && ((t = x(this,
|
|
501
|
+
ce(this, X)._--, x(this, X) === 0 && ((t = x(this, re)) == null || t.call(this), k(this, re, void 0), (e = x(this, ne)) == null || e.call(this), k(this, ne, void 0));
|
|
502
502
|
}
|
|
503
503
|
isFetching(t) {
|
|
504
504
|
return x(this, s).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -632,28 +632,28 @@ var s, K, Z, te, re, X, ne, oe, ct, ur = (ct = class {
|
|
|
632
632
|
return x(this, Z);
|
|
633
633
|
}
|
|
634
634
|
setDefaultOptions(t) {
|
|
635
|
-
|
|
635
|
+
k(this, Z, t);
|
|
636
636
|
}
|
|
637
637
|
setQueryDefaults(t, e) {
|
|
638
|
-
x(this,
|
|
638
|
+
x(this, ee).set($e(t), {
|
|
639
639
|
queryKey: t,
|
|
640
640
|
defaultOptions: e
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
getQueryDefaults(t) {
|
|
644
|
-
const e = [...x(this,
|
|
644
|
+
const e = [...x(this, ee).values()], o = {};
|
|
645
645
|
return e.forEach((n) => {
|
|
646
646
|
Ae(t, n.queryKey) && Object.assign(o, n.defaultOptions);
|
|
647
647
|
}), o;
|
|
648
648
|
}
|
|
649
649
|
setMutationDefaults(t, e) {
|
|
650
|
-
x(this,
|
|
650
|
+
x(this, te).set($e(t), {
|
|
651
651
|
mutationKey: t,
|
|
652
652
|
defaultOptions: e
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
getMutationDefaults(t) {
|
|
656
|
-
const e = [...x(this,
|
|
656
|
+
const e = [...x(this, te).values()], o = {};
|
|
657
657
|
return e.forEach((n) => {
|
|
658
658
|
Ae(t, n.mutationKey) && Object.assign(o, n.defaultOptions);
|
|
659
659
|
}), o;
|
|
@@ -683,7 +683,7 @@ var s, K, Z, te, re, X, ne, oe, ct, ur = (ct = class {
|
|
|
683
683
|
clear() {
|
|
684
684
|
x(this, s).clear(), x(this, K).clear();
|
|
685
685
|
}
|
|
686
|
-
}, s = new WeakMap(), K = new WeakMap(), Z = new WeakMap(),
|
|
686
|
+
}, s = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), X = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), ct);
|
|
687
687
|
const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resolve().then(() => yo)), xr = B(() => Promise.resolve().then(() => En)), pr = B(() => Promise.resolve().then(() => Pn)), cr = B(() => Promise.resolve().then(() => Lr)), fr = B(() => Promise.resolve().then(() => Sr)), br = B(() => Promise.resolve().then(() => tn)), gr = B(() => Promise.resolve().then(() => Zr)), jr = B(() => Promise.resolve().then(() => Gn)), yr = B(() => Promise.resolve().then(() => Vr)), sr = B(() => Promise.resolve().then(() => Nn)), kr = B(() => Promise.resolve().then(() => _r)), wr = {
|
|
688
688
|
header: fr,
|
|
689
689
|
seoHeader: jr,
|
|
@@ -697,7 +697,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
697
697
|
usefulInfo: sr,
|
|
698
698
|
interLinking: br,
|
|
699
699
|
footer: cr
|
|
700
|
-
}, vr = Object.keys(wr),
|
|
700
|
+
}, vr = Object.keys(wr), j = vr.reduce(
|
|
701
701
|
(t, e) => (t[e] = e, t),
|
|
702
702
|
{}
|
|
703
703
|
), Nr = (t) => yt(() => {
|
|
@@ -747,7 +747,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
747
747
|
variant: u,
|
|
748
748
|
color: m
|
|
749
749
|
}) => {
|
|
750
|
-
const { isDesktop: h } =
|
|
750
|
+
const { isDesktop: h } = ae();
|
|
751
751
|
return /* @__PURE__ */ r.jsxs(
|
|
752
752
|
"li",
|
|
753
753
|
{
|
|
@@ -780,7 +780,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
780
780
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
|
-
}), Ze = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id:
|
|
783
|
+
}), Ze = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: l("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(F, { className: n == null ? void 0 : n.container, children: [
|
|
784
784
|
/* @__PURE__ */ r.jsx(
|
|
785
785
|
"div",
|
|
786
786
|
{
|
|
@@ -807,8 +807,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
807
807
|
return /* @__PURE__ */ r.jsx(
|
|
808
808
|
"header",
|
|
809
809
|
{
|
|
810
|
-
id:
|
|
811
|
-
"data-test-id":
|
|
810
|
+
id: j.header,
|
|
811
|
+
"data-test-id": j.header,
|
|
812
812
|
className: l("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", n == null ? void 0 : n.header),
|
|
813
813
|
children: /* @__PURE__ */ r.jsx(F, { className: l(n == null ? void 0 : n.container), children: /* @__PURE__ */ r.jsxs("div", { className: l("flex items-center justify-between gap-5", n == null ? void 0 : n.wrapper), children: [
|
|
814
814
|
/* @__PURE__ */ r.jsx(
|
|
@@ -845,27 +845,27 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
845
845
|
color: m,
|
|
846
846
|
renderImage: h
|
|
847
847
|
}) => {
|
|
848
|
-
var
|
|
849
|
-
const { isDesktop: p, isMobile: c } =
|
|
848
|
+
var v;
|
|
849
|
+
const { isDesktop: p, isMobile: c } = ae(), { primary: y, secondary: f } = o || {}, w = (_) => h ? h(_) : /* @__PURE__ */ r.jsx("img", { ..._ }), g = /* @__PURE__ */ r.jsx(
|
|
850
850
|
"div",
|
|
851
851
|
{
|
|
852
852
|
className: l(
|
|
853
853
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
854
854
|
i == null ? void 0 : i.advantageContainer
|
|
855
855
|
),
|
|
856
|
-
children: (n == null ? void 0 : n.details) && ((
|
|
856
|
+
children: (n == null ? void 0 : n.details) && ((v = n == null ? void 0 : n.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...n })
|
|
857
857
|
}
|
|
858
858
|
);
|
|
859
859
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
860
860
|
/* @__PURE__ */ r.jsxs(
|
|
861
861
|
"section",
|
|
862
862
|
{
|
|
863
|
-
id:
|
|
864
|
-
"data-test-id":
|
|
863
|
+
id: j.banner,
|
|
864
|
+
"data-test-id": j.banner,
|
|
865
865
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
866
866
|
className: l("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
867
867
|
children: [
|
|
868
|
-
/* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children:
|
|
868
|
+
/* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: w(c ? { src: a.src, alt: u, className: l("h-full w-full object-cover object-center") } : {
|
|
869
869
|
src: d.src,
|
|
870
870
|
alt: u,
|
|
871
871
|
className: l("h-full w-full object-cover object-center")
|
|
@@ -897,13 +897,13 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
897
897
|
i == null ? void 0 : i.group
|
|
898
898
|
),
|
|
899
899
|
children: [
|
|
900
|
-
|
|
900
|
+
y.enabled && /* @__PURE__ */ r.jsx(
|
|
901
901
|
Y,
|
|
902
902
|
{
|
|
903
903
|
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
904
904
|
size: "lg",
|
|
905
905
|
intent: "primary",
|
|
906
|
-
...
|
|
906
|
+
...y.buttonContent
|
|
907
907
|
}
|
|
908
908
|
),
|
|
909
909
|
(f == null ? void 0 : f.enabled) && /* @__PURE__ */ r.jsx(
|
|
@@ -911,19 +911,19 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
911
911
|
{
|
|
912
912
|
intent: "secondary",
|
|
913
913
|
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
914
|
-
...
|
|
914
|
+
...y.buttonContent
|
|
915
915
|
}
|
|
916
916
|
)
|
|
917
917
|
]
|
|
918
918
|
}
|
|
919
919
|
)
|
|
920
920
|
] }) }),
|
|
921
|
-
p && (n == null ? void 0 : n.enabled) &&
|
|
921
|
+
p && (n == null ? void 0 : n.enabled) && g
|
|
922
922
|
] })
|
|
923
923
|
]
|
|
924
924
|
}
|
|
925
925
|
),
|
|
926
|
-
c && (n == null ? void 0 : n.enabled) &&
|
|
926
|
+
c && (n == null ? void 0 : n.enabled) && g
|
|
927
927
|
] });
|
|
928
928
|
}, Ye = ({
|
|
929
929
|
headTitle: t,
|
|
@@ -937,14 +937,14 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
937
937
|
color: m,
|
|
938
938
|
renderImage: h
|
|
939
939
|
}) => {
|
|
940
|
-
var
|
|
941
|
-
const {
|
|
940
|
+
var f, w;
|
|
941
|
+
const { primary: p, secondary: c } = o || {}, y = (g) => h ? h(g) : /* @__PURE__ */ r.jsx("img", { ...g });
|
|
942
942
|
return /* @__PURE__ */ r.jsxs(
|
|
943
943
|
"section",
|
|
944
944
|
{
|
|
945
|
-
id:
|
|
945
|
+
id: j.banner,
|
|
946
946
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
947
|
-
"data-test-id":
|
|
947
|
+
"data-test-id": j.banner,
|
|
948
948
|
className: l("", i == null ? void 0 : i.root),
|
|
949
949
|
children: [
|
|
950
950
|
/* @__PURE__ */ r.jsxs(F, { className: l("relative desktop:h-[456px]", i == null ? void 0 : i.container), children: [
|
|
@@ -971,25 +971,25 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
971
971
|
{
|
|
972
972
|
className: l(
|
|
973
973
|
"grid-buttons-apply absolute bottom-6 left-1/2 z-10 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
|
|
974
|
-
{ "flex items-center gap-4":
|
|
974
|
+
{ "flex items-center gap-4": c == null ? void 0 : c.enabled },
|
|
975
975
|
i == null ? void 0 : i.group
|
|
976
976
|
),
|
|
977
977
|
children: [
|
|
978
|
-
|
|
978
|
+
p.enabled && /* @__PURE__ */ r.jsx(
|
|
979
979
|
Y,
|
|
980
980
|
{
|
|
981
981
|
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
982
982
|
size: "lg",
|
|
983
983
|
intent: "primary",
|
|
984
|
-
...
|
|
984
|
+
...p.buttonContent
|
|
985
985
|
}
|
|
986
986
|
),
|
|
987
|
-
(
|
|
987
|
+
(c == null ? void 0 : c.enabled) && /* @__PURE__ */ r.jsx(
|
|
988
988
|
Y,
|
|
989
989
|
{
|
|
990
990
|
intent: "secondary",
|
|
991
991
|
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
992
|
-
...
|
|
992
|
+
...p.buttonContent
|
|
993
993
|
}
|
|
994
994
|
)
|
|
995
995
|
]
|
|
@@ -999,8 +999,21 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
999
999
|
/* @__PURE__ */ r.jsx(
|
|
1000
1000
|
"div",
|
|
1001
1001
|
{
|
|
1002
|
-
className: l(
|
|
1003
|
-
|
|
1002
|
+
className: l(
|
|
1003
|
+
"relative flex h-[356px] justify-center desktop:hidden desktop:h-[456px] desktop:w-[550px]",
|
|
1004
|
+
i == null ? void 0 : i.imageContainer
|
|
1005
|
+
),
|
|
1006
|
+
children: y({ src: a.src, alt: u, className: l("h-full object-contain") })
|
|
1007
|
+
}
|
|
1008
|
+
),
|
|
1009
|
+
/* @__PURE__ */ r.jsx(
|
|
1010
|
+
"div",
|
|
1011
|
+
{
|
|
1012
|
+
className: l(
|
|
1013
|
+
"relative flex h-[356px] justify-center mobile:hidden desktop:h-[456px] desktop:w-[550px]",
|
|
1014
|
+
i == null ? void 0 : i.imageContainer
|
|
1015
|
+
),
|
|
1016
|
+
children: y({
|
|
1004
1017
|
src: d.src,
|
|
1005
1018
|
alt: u,
|
|
1006
1019
|
className: l("h-full object-contain")
|
|
@@ -1015,7 +1028,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1015
1028
|
"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",
|
|
1016
1029
|
i == null ? void 0 : i.advantageContainer
|
|
1017
1030
|
),
|
|
1018
|
-
children: (n == null ? void 0 : n.details) && ((
|
|
1031
|
+
children: (n == null ? void 0 : n.details) && ((f = n == null ? void 0 : n.details) == null ? void 0 : f.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...n })
|
|
1019
1032
|
}
|
|
1020
1033
|
)
|
|
1021
1034
|
] }),
|
|
@@ -1026,7 +1039,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1026
1039
|
"flex items-center justify-center bg-color-white 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",
|
|
1027
1040
|
i == null ? void 0 : i.advantageContainer
|
|
1028
1041
|
),
|
|
1029
|
-
children: (n == null ? void 0 : n.details) && ((
|
|
1042
|
+
children: (n == null ? void 0 : n.details) && ((w = n == null ? void 0 : n.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...n })
|
|
1030
1043
|
}
|
|
1031
1044
|
)
|
|
1032
1045
|
]
|
|
@@ -1188,8 +1201,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1188
1201
|
}) => /* @__PURE__ */ r.jsx(
|
|
1189
1202
|
"footer",
|
|
1190
1203
|
{
|
|
1191
|
-
id:
|
|
1192
|
-
"data-test-id":
|
|
1204
|
+
id: j.footer,
|
|
1205
|
+
"data-test-id": j.footer,
|
|
1193
1206
|
className: l("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1194
1207
|
children: /* @__PURE__ */ r.jsx(F, { className: l(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ r.jsxs("div", { className: l("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1195
1208
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -1268,7 +1281,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1268
1281
|
]
|
|
1269
1282
|
}
|
|
1270
1283
|
);
|
|
1271
|
-
}, et = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id:
|
|
1284
|
+
}, et = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ r.jsx(F, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
|
|
1272
1285
|
/* @__PURE__ */ r.jsx(D, { as: "h2", className: l("text-color-dark", n == null ? void 0 : n.headline), children: t }),
|
|
1273
1286
|
/* @__PURE__ */ r.jsx(
|
|
1274
1287
|
"div",
|
|
@@ -1392,7 +1405,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1392
1405
|
classes: a
|
|
1393
1406
|
}) => {
|
|
1394
1407
|
const d = o === "fourItems", u = o === "twoItems", m = i && "url" in i && S.isObject(i) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
|
|
1395
|
-
return /* @__PURE__ */ r.jsx("section", { id:
|
|
1408
|
+
return /* @__PURE__ */ r.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: l(a == null ? void 0 : a.root), children: /* @__PURE__ */ r.jsxs(F, { className: l(a == null ? void 0 : a.container), children: [
|
|
1396
1409
|
u && /* @__PURE__ */ r.jsx(Ce, { intent: o, headline: t }),
|
|
1397
1410
|
/* @__PURE__ */ r.jsxs(
|
|
1398
1411
|
"div",
|
|
@@ -1514,7 +1527,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1514
1527
|
}
|
|
1515
1528
|
)
|
|
1516
1529
|
] }), rt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes: a }) => {
|
|
1517
|
-
const { isMobile: d } =
|
|
1530
|
+
const { isMobile: d } = ae();
|
|
1518
1531
|
return /* @__PURE__ */ r.jsx(vt, { isLoading: o, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1519
1532
|
"div",
|
|
1520
1533
|
{
|
|
@@ -1538,7 +1551,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1538
1551
|
}
|
|
1539
1552
|
) });
|
|
1540
1553
|
}, nt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes: a }) => {
|
|
1541
|
-
const { isMobile: d } =
|
|
1554
|
+
const { isMobile: d } = ae();
|
|
1542
1555
|
return /* @__PURE__ */ r.jsx(vt, { isLoading: o, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1543
1556
|
"div",
|
|
1544
1557
|
{
|
|
@@ -1620,14 +1633,14 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1620
1633
|
o
|
|
1621
1634
|
)) }), Jr = ({ groupLabel: t, links: e, mobileAccordionProps: o, classes: n }) => {
|
|
1622
1635
|
var a, d, u;
|
|
1623
|
-
const { isMobile: i } =
|
|
1636
|
+
const { isMobile: i } = ae();
|
|
1624
1637
|
return /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-2", n == null ? void 0 : n.columnGroup), children: [
|
|
1625
1638
|
!i && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1626
1639
|
/* @__PURE__ */ r.jsx("h5", { className: l("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.columnGroupHeading), children: t }),
|
|
1627
1640
|
/* @__PURE__ */ r.jsx(ot, { links: e, classes: n == null ? void 0 : n.linksList }, "desktop")
|
|
1628
1641
|
] }),
|
|
1629
1642
|
i && /* @__PURE__ */ r.jsx(
|
|
1630
|
-
|
|
1643
|
+
ie,
|
|
1631
1644
|
{
|
|
1632
1645
|
defaultOpen: !0,
|
|
1633
1646
|
label: t,
|
|
@@ -1668,11 +1681,11 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1668
1681
|
return /* @__PURE__ */ r.jsx(
|
|
1669
1682
|
"section",
|
|
1670
1683
|
{
|
|
1671
|
-
id:
|
|
1672
|
-
"data-test-id":
|
|
1684
|
+
id: j.interLinking,
|
|
1685
|
+
"data-test-id": j.interLinking,
|
|
1673
1686
|
className: l("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
|
|
1674
1687
|
children: /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsx(
|
|
1675
|
-
|
|
1688
|
+
ie,
|
|
1676
1689
|
{
|
|
1677
1690
|
defaultOpen: d,
|
|
1678
1691
|
label: /* @__PURE__ */ r.jsx(D, { as: "h4", className: l("text-left", a == null ? void 0 : a.headline), children: o }),
|
|
@@ -1709,7 +1722,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1709
1722
|
i
|
|
1710
1723
|
)) }), nn = (t) => t.variant === "HTML", on = (t) => t.variant === "DOCUMENTS", an = (t) => t.variant === "TABLE", ln = ({ html: t, config: e, classes: o, accordionConfig: n }) => {
|
|
1711
1724
|
const i = /* @__PURE__ */ r.jsx("div", { className: l(o == null ? void 0 : o.html), dangerouslySetInnerHTML: { __html: t ?? "" } });
|
|
1712
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1725
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(ie, { label: e == null ? void 0 : e.accordionTitle, ...n, children: (n == null ? void 0 : n.children) ?? i }) : i });
|
|
1713
1726
|
}, dn = (t, e) => ({
|
|
1714
1727
|
rows: t == null ? void 0 : t.map(({ row: o }) => ({
|
|
1715
1728
|
row: o == null ? void 0 : o.map((n, i) => {
|
|
@@ -1824,7 +1837,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1824
1837
|
}
|
|
1825
1838
|
)
|
|
1826
1839
|
] });
|
|
1827
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1840
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ r.jsx(ie, { label: n == null ? void 0 : n.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || h }) : h });
|
|
1828
1841
|
}, jn = {
|
|
1829
1842
|
documentFilled: "files/documentFilled",
|
|
1830
1843
|
documentOutline: "files/documentOutline"
|
|
@@ -1866,7 +1879,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1866
1879
|
/* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ r.jsx(sn, { iconType: n, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
|
|
1867
1880
|
i && /* @__PURE__ */ r.jsx("div", { className: l("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1868
1881
|
] });
|
|
1869
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1882
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(ie, { label: e == null ? void 0 : e.accordionTitle, ...d, children: (d == null ? void 0 : d.children) || u }) : u });
|
|
1870
1883
|
}, wn = ({ entity: t, classes: e, accordionsConfig: o }) => {
|
|
1871
1884
|
var n, i, a;
|
|
1872
1885
|
switch (!0) {
|
|
@@ -1907,7 +1920,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1907
1920
|
}, vn = ({ entity: t, classes: e, accordionsConfig: o }) => /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: wn({ entity: t, classes: e, accordionsConfig: o }) }), at = ({ headline: t, tabs: e, classes: o, accordionsConfig: n }) => {
|
|
1908
1921
|
var u, m;
|
|
1909
1922
|
const [i, a] = q(0), d = se(() => e == null ? void 0 : e.map((h) => h == null ? void 0 : h.tabName), [e]) ?? [];
|
|
1910
|
-
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id:
|
|
1923
|
+
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: l(o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(F, { className: l(o == null ? void 0 : o.container), children: [
|
|
1911
1924
|
/* @__PURE__ */ r.jsx(D, { className: l(o == null ? void 0 : o.headline), as: "h2", children: t }),
|
|
1912
1925
|
/* @__PURE__ */ r.jsx("div", { className: l("mt-6 flex flex-col gap-2 desktop:mt-12", o == null ? void 0 : o.tabsWrapper), children: /* @__PURE__ */ r.jsx(rn, { tabsNames: d, activeTab: i, setActiveTab: a, classes: o == null ? void 0 : o.tabs }) }),
|
|
1913
1926
|
/* @__PURE__ */ r.jsx("div", { className: l("mt-6 flex flex-col gap-6", o == null ? void 0 : o.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ r.jsx(vn, { accordionsConfig: n, ...h, classes: o == null ? void 0 : o.entityClasses }, p)) })
|
|
@@ -2001,7 +2014,7 @@ class Fo extends Cn {
|
|
|
2001
2014
|
return Mn ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
|
|
2002
2015
|
}
|
|
2003
2016
|
}
|
|
2004
|
-
const
|
|
2017
|
+
const oe = ({ html: t, as: e, ...o }) => {
|
|
2005
2018
|
const n = e ?? "div";
|
|
2006
2019
|
return /* @__PURE__ */ r.jsx(n, { dangerouslySetInnerHTML: { __html: t }, ...o });
|
|
2007
2020
|
}, In = (t, e) => t.enabled ? e.map((o) => ({
|
|
@@ -2026,7 +2039,7 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2026
2039
|
return n[i.name] = a, n;
|
|
2027
2040
|
}, {});
|
|
2028
2041
|
return kt(o);
|
|
2029
|
-
}, On = new ur(), Mt = ({ children: t }) => /* @__PURE__ */ r.jsx(qt, { client: On, children: t }), Fn = (t, e, o, n) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(
|
|
2042
|
+
}, On = new ur(), Mt = ({ children: t }) => /* @__PURE__ */ r.jsx(qt, { client: On, children: t }), Fn = (t, e, o, n) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(oe, { html: t.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ r.jsxs(
|
|
2030
2043
|
"label",
|
|
2031
2044
|
{
|
|
2032
2045
|
className: l(
|
|
@@ -2036,7 +2049,7 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2036
2049
|
),
|
|
2037
2050
|
children: [
|
|
2038
2051
|
/* @__PURE__ */ r.jsx(ye.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: e, onCheckedChange: o }),
|
|
2039
|
-
/* @__PURE__ */ r.jsx(
|
|
2052
|
+
/* @__PURE__ */ r.jsx(oe, { html: t.content, as: "div", className: n == null ? void 0 : n.content })
|
|
2040
2053
|
]
|
|
2041
2054
|
}
|
|
2042
2055
|
), lt = ({
|
|
@@ -2050,14 +2063,14 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2050
2063
|
buttonGroup: u
|
|
2051
2064
|
}) => {
|
|
2052
2065
|
var R, C;
|
|
2053
|
-
const { submitCallback: m } = a || {}, [h, p] = q(!1), c = Re(t),
|
|
2066
|
+
const { submitCallback: m } = a || {}, [h, p] = q(!1), c = Re(t), y = Pe.getZodDefaults(c), { control: f, handleSubmit: w } = Be({
|
|
2054
2067
|
schema: c,
|
|
2055
|
-
defaultValues:
|
|
2068
|
+
defaultValues: y,
|
|
2056
2069
|
mode: "onBlur"
|
|
2057
|
-
}),
|
|
2070
|
+
}), g = In(o, t), v = rr({ control: f, fields: g || [], schema: c }), _ = (I) => {
|
|
2058
2071
|
m && m({ ...I, agree: h });
|
|
2059
2072
|
};
|
|
2060
|
-
return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx("section", { id:
|
|
2073
|
+
return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx("section", { id: j.form, "data-test-id": j.form, className: l("w-full", d == null ? void 0 : d.root), children: /* @__PURE__ */ r.jsxs(
|
|
2061
2074
|
F,
|
|
2062
2075
|
{
|
|
2063
2076
|
className: l(
|
|
@@ -2085,15 +2098,15 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2085
2098
|
/* @__PURE__ */ r.jsxs(
|
|
2086
2099
|
"form",
|
|
2087
2100
|
{
|
|
2088
|
-
onSubmit:
|
|
2101
|
+
onSubmit: w(_),
|
|
2089
2102
|
className: l("flex w-full flex-col gap-y-6", "desktop:gap-y-8", d == null ? void 0 : d.form),
|
|
2090
2103
|
children: [
|
|
2091
2104
|
o.enabled && /* @__PURE__ */ r.jsx(
|
|
2092
2105
|
Wt,
|
|
2093
2106
|
{
|
|
2094
|
-
progress:
|
|
2095
|
-
topContent: /* @__PURE__ */ r.jsx(
|
|
2096
|
-
bottomContent: /* @__PURE__ */ r.jsx(
|
|
2107
|
+
progress: v,
|
|
2108
|
+
topContent: /* @__PURE__ */ r.jsx(oe, { html: o.title }),
|
|
2109
|
+
bottomContent: /* @__PURE__ */ r.jsx(oe, { html: o.subtitle }),
|
|
2097
2110
|
maxPercent: o.maxPercent,
|
|
2098
2111
|
classes: d == null ? void 0 : d.progressBar
|
|
2099
2112
|
}
|
|
@@ -2130,7 +2143,7 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2130
2143
|
__proto__: null,
|
|
2131
2144
|
DynamicForm: lt,
|
|
2132
2145
|
default: lt
|
|
2133
|
-
}, Symbol.toStringTag, { value: "Module" })), Bn = (t, e, o, n) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(
|
|
2146
|
+
}, Symbol.toStringTag, { value: "Module" })), Bn = (t, e, o, n) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(oe, { html: t.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ r.jsxs(
|
|
2134
2147
|
"label",
|
|
2135
2148
|
{
|
|
2136
2149
|
className: l(
|
|
@@ -2140,7 +2153,7 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2140
2153
|
),
|
|
2141
2154
|
children: [
|
|
2142
2155
|
/* @__PURE__ */ r.jsx(ye.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: e, onCheckedChange: o }),
|
|
2143
|
-
/* @__PURE__ */ r.jsx(
|
|
2156
|
+
/* @__PURE__ */ r.jsx(oe, { html: t.content, as: "div", className: n == null ? void 0 : n.content })
|
|
2144
2157
|
]
|
|
2145
2158
|
}
|
|
2146
2159
|
), dt = ({
|
|
@@ -2153,22 +2166,22 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2153
2166
|
buttonGroup: d,
|
|
2154
2167
|
...u
|
|
2155
2168
|
}) => {
|
|
2156
|
-
const { submitCallback: m } = n ?? {}, [h, p] = q(!1), c = Re(t),
|
|
2169
|
+
const { submitCallback: m } = n ?? {}, [h, p] = q(!1), c = Re(t), y = Pe.getZodDefaults(c), { control: f, handleSubmit: w } = Be({
|
|
2157
2170
|
schema: c,
|
|
2158
|
-
defaultValues:
|
|
2171
|
+
defaultValues: y,
|
|
2159
2172
|
mode: "onBlur"
|
|
2160
|
-
}),
|
|
2161
|
-
m && m({ ...
|
|
2173
|
+
}), g = (v) => {
|
|
2174
|
+
m && m({ ...v, agree: h });
|
|
2162
2175
|
};
|
|
2163
|
-
return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx(Ut, { id: i, title: e, ...u, children: /* @__PURE__ */ r.jsxs("form", { onSubmit:
|
|
2176
|
+
return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx(Ut, { id: i, title: e, ...u, children: /* @__PURE__ */ r.jsxs("form", { onSubmit: w(g), className: "flex flex-col gap-6", children: [
|
|
2164
2177
|
/* @__PURE__ */ r.jsx(De, { control: f, fields: t }),
|
|
2165
2178
|
Bn(o, h, p, a == null ? void 0 : a.approvement),
|
|
2166
|
-
d == null ? void 0 : d.map((
|
|
2167
|
-
const R =
|
|
2179
|
+
d == null ? void 0 : d.map((v, _) => {
|
|
2180
|
+
const R = v.type === "submit" && o.type === "checkbox" ? !h : !1;
|
|
2168
2181
|
return /* @__PURE__ */ Oe(
|
|
2169
2182
|
ge,
|
|
2170
2183
|
{
|
|
2171
|
-
...
|
|
2184
|
+
...v,
|
|
2172
2185
|
key: _,
|
|
2173
2186
|
disabled: R,
|
|
2174
2187
|
className: l(
|
|
@@ -2278,7 +2291,7 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2278
2291
|
}
|
|
2279
2292
|
], be = (t, e, o, n) => t.map((i, a) => {
|
|
2280
2293
|
const d = a === n;
|
|
2281
|
-
return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-
|
|
2294
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
2282
2295
|
/* @__PURE__ */ r.jsx(
|
|
2283
2296
|
It,
|
|
2284
2297
|
{
|
|
@@ -2295,8 +2308,8 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2295
2308
|
const [i, a] = q(!1), d = Fe(null);
|
|
2296
2309
|
er(d, () => a(!1));
|
|
2297
2310
|
const { first: u, middle: m, last: h } = se(() => {
|
|
2298
|
-
let c = [],
|
|
2299
|
-
return e && (c = n.slice(0, e),
|
|
2311
|
+
let c = [], y = [], f = [];
|
|
2312
|
+
return e && (c = n.slice(0, e), y = n.slice(e, n.length - e), f = n.slice(n.length - e)), { first: c, middle: y, last: f };
|
|
2300
2313
|
}, [n, e]), p = t ?? /* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: l("size-4", o == null ? void 0 : o.separator) });
|
|
2301
2314
|
return /* @__PURE__ */ r.jsx(
|
|
2302
2315
|
"div",
|
|
@@ -2574,7 +2587,7 @@ const Hn = (t, e) => {
|
|
|
2574
2587
|
/* @__PURE__ */ r.jsx(Wn, { categories: n.current.children })
|
|
2575
2588
|
] });
|
|
2576
2589
|
}, Zn = ({ category: t }) => /* @__PURE__ */ r.jsx(
|
|
2577
|
-
|
|
2590
|
+
ie,
|
|
2578
2591
|
{
|
|
2579
2592
|
label: t.title ?? "",
|
|
2580
2593
|
icon: /* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
@@ -2629,7 +2642,7 @@ const Hn = (t, e) => {
|
|
|
2629
2642
|
{
|
|
2630
2643
|
...n,
|
|
2631
2644
|
className: l(
|
|
2632
|
-
"absolute z-
|
|
2645
|
+
"absolute z-10 w-full max-w-[calc(636px-32px)]",
|
|
2633
2646
|
"absolute left-1/2 top-full bg-color-white p-4",
|
|
2634
2647
|
"-translate-x-1/2 overflow-x-hidden",
|
|
2635
2648
|
"flex flex-col items-center justify-center gap-y-4"
|
|
@@ -2689,8 +2702,8 @@ const Hn = (t, e) => {
|
|
|
2689
2702
|
}
|
|
2690
2703
|
);
|
|
2691
2704
|
}, ut = ({ categories: t, helpers: e, phone: o, breadcrumbs: n }) => {
|
|
2692
|
-
const { isMobile: i } =
|
|
2693
|
-
return /* @__PURE__ */ r.jsx("div", { id:
|
|
2705
|
+
const { isMobile: i } = ae();
|
|
2706
|
+
return /* @__PURE__ */ r.jsx("div", { id: j.seoHeader, "data-test-id": j.seoHeader, className: "w-full bg-color-white", children: /* @__PURE__ */ r.jsxs(F, { className: "mx-auto w-full", children: [
|
|
2694
2707
|
/* @__PURE__ */ r.jsx(Jn, { categories: t.map((a) => a.children).flat(), helpers: e, phone: o }),
|
|
2695
2708
|
/* @__PURE__ */ r.jsx(Kn, { categories: t, helpers: e, phone: o }),
|
|
2696
2709
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2795,10 +2808,10 @@ const Hn = (t, e) => {
|
|
|
2795
2808
|
slidersGroupConfig: t,
|
|
2796
2809
|
additionalSliderGroupConfig: e
|
|
2797
2810
|
}) => {
|
|
2798
|
-
const [o, n] = q(!1), { watch: i, setValue: a } = we(), d = t == null ? void 0 : t.fields.find(({ args: _ }) => _.name === "sum"), { args: u } = d || {}, { max: m, name: h, defaultValue: p } = u || {}, c = i(h), { min:
|
|
2811
|
+
const [o, n] = q(!1), { watch: i, setValue: a } = we(), d = t == null ? void 0 : t.fields.find(({ args: _ }) => _.name === "sum"), { args: u } = d || {}, { max: m, name: h, defaultValue: p } = u || {}, c = i(h), { min: y, name: f } = (e == null ? void 0 : e.args) ?? {}, w = i(f), g = Number(m ?? 0) - (c ?? p);
|
|
2799
2812
|
return qe(() => {
|
|
2800
|
-
|
|
2801
|
-
}, [
|
|
2813
|
+
w > g && a(f, g);
|
|
2814
|
+
}, [g, w, a, c]), qe(() => {
|
|
2802
2815
|
Number(m) === c && n(!1);
|
|
2803
2816
|
}, [n, m, c]), {
|
|
2804
2817
|
sliderVisible: o,
|
|
@@ -2807,9 +2820,9 @@ const Hn = (t, e) => {
|
|
|
2807
2820
|
sumName: h,
|
|
2808
2821
|
sumDefaultValue: p,
|
|
2809
2822
|
sumValue: c,
|
|
2810
|
-
additionalSliderMax:
|
|
2823
|
+
additionalSliderMax: g,
|
|
2811
2824
|
onCheckedChange: () => {
|
|
2812
|
-
n((_) => !_),
|
|
2825
|
+
n((_) => !_), w <= 0 && a(f, y), Number(m) === c && (a(h ?? "", c - xo), a(f, y));
|
|
2813
2826
|
},
|
|
2814
2827
|
sliderSumExist: !S.isObjectEmpty(d == null ? void 0 : d.args),
|
|
2815
2828
|
sliderSumCorrectType: (d == null ? void 0 : d.args.componentType) === "algorithmic" || (d == null ? void 0 : d.args.componentType) === "step"
|
|
@@ -2913,7 +2926,7 @@ const Hn = (t, e) => {
|
|
|
2913
2926
|
}, mt = ({ calculators: t, headline: e }) => {
|
|
2914
2927
|
var m;
|
|
2915
2928
|
const o = t.length > 1, [n, i] = q(o ? (m = t[0]) == null ? void 0 : m.name : ""), a = se(() => t == null ? void 0 : t.map(({ name: h, label: p }) => ({ name: h, label: p })), [t]), d = o ? a == null ? void 0 : a.findIndex((h) => h.name === n) : 0, u = t[d];
|
|
2916
|
-
return /* @__PURE__ */ r.jsx("section", { id:
|
|
2929
|
+
return /* @__PURE__ */ r.jsx("section", { id: j.calculator, children: /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2917
2930
|
/* @__PURE__ */ r.jsx(D, { className: "mb-12", as: "h2", children: e }),
|
|
2918
2931
|
o && /* @__PURE__ */ r.jsx(
|
|
2919
2932
|
go,
|
|
@@ -2954,7 +2967,7 @@ export {
|
|
|
2954
2967
|
De as FieldMapper,
|
|
2955
2968
|
Ge as Footer,
|
|
2956
2969
|
Fo as HTMLParser,
|
|
2957
|
-
|
|
2970
|
+
oe as HTMLRenderer,
|
|
2958
2971
|
Xe as Header,
|
|
2959
2972
|
it as InterLinking,
|
|
2960
2973
|
vr as KEYS_OF_WIDGET_LIST,
|
|
@@ -2964,6 +2977,6 @@ export {
|
|
|
2964
2977
|
at as UsefulInfo,
|
|
2965
2978
|
wr as WIDGET_LIST_MAP,
|
|
2966
2979
|
On as queryClient,
|
|
2967
|
-
|
|
2980
|
+
j as widgetIds
|
|
2968
2981
|
};
|
|
2969
2982
|
//# sourceMappingURL=widget.js.map
|