@scbt-ecom/ui 0.43.0 → 0.44.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 +13 -14
- package/dist/hooks.js.map +1 -1
- package/dist/index-DV_MMMPA.js +41785 -0
- package/dist/index-DV_MMMPA.js.map +1 -0
- package/dist/isClient-C9aZtt2Q.js +5 -0
- package/dist/{isClient-D-a29gNu.js.map → isClient-C9aZtt2Q.js.map} +1 -1
- package/dist/shared/ui/formElements/controlled/checkbox/CheckboxControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/checkbox/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dadata/address/DadataAddress.d.ts +5 -4
- package/dist/shared/ui/formElements/controlled/dadata/address/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dadata/auto/DadataAuto.d.ts +5 -4
- package/dist/shared/ui/formElements/controlled/dadata/auto/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dadata/country/DadataCountry.d.ts +5 -4
- package/dist/shared/ui/formElements/controlled/dadata/country/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dadata/fio/DadataFio.d.ts +5 -4
- package/dist/shared/ui/formElements/controlled/dadata/fio/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dadata/index.d.ts +5 -5
- package/dist/shared/ui/formElements/controlled/dadata/party/DadataOrganization.d.ts +5 -4
- package/dist/shared/ui/formElements/controlled/dadata/party/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dayPickerControl/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/editor/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/index.d.ts +27 -107
- package/dist/shared/ui/formElements/controlled/input/InputControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/input/MaskInputControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/input/index.d.ts +2 -2
- package/dist/shared/ui/formElements/controlled/inputCurrency/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/radio/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/select/SelectControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/select/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/slider/SliderControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/slider/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/switch/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/uploader/UploaderControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/uploader/index.d.ts +1 -1
- package/dist/shared/ui/phoneView/PhoneView.d.ts +1 -1
- package/dist/shared/validation/dadata/dadata.validators.d.ts +1 -0
- package/dist/{cn-DIfn7EPB.js → typeGuards-yOWv7RXH.js} +130 -106
- package/dist/typeGuards-yOWv7RXH.js.map +1 -0
- package/dist/ui.js +335 -33184
- package/dist/ui.js.map +1 -1
- package/dist/useDebounce-QgEEiWs9.js +1190 -0
- package/dist/useDebounce-QgEEiWs9.js.map +1 -0
- package/dist/{utils-Baa0uHhG.js → utils-DnWHDMk6.js} +125 -125
- package/dist/{utils-Baa0uHhG.js.map → utils-DnWHDMk6.js.map} +1 -1
- package/dist/utils.js +4 -5
- package/dist/utils.js.map +1 -1
- package/dist/validation.js +76 -76
- package/dist/widget.js +127 -123
- package/dist/widget.js.map +1 -1
- package/dist/widgets/fieldMapper/FieldMapper.d.ts +8 -0
- package/dist/widgets/fieldMapper/index.d.ts +2 -0
- package/dist/widgets/fieldMapper/model/types.d.ts +9 -0
- package/dist/widgets/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/CustomLink-BrBUFe53.js +0 -8946
- package/dist/CustomLink-BrBUFe53.js.map +0 -1
- package/dist/cn-DIfn7EPB.js.map +0 -1
- package/dist/isClient-D-a29gNu.js +0 -5
- package/dist/typeGuards-B82KZ2oS.js +0 -27
- package/dist/typeGuards-B82KZ2oS.js.map +0 -1
- package/dist/useDebounce-CIcYhLoU.js +0 -1167
- package/dist/useDebounce-CIcYhLoU.js.map +0 -1
- package/dist/useDevice-L83kSsN7.js +0 -28
- package/dist/useDevice-L83kSsN7.js.map +0 -1
- /package/dist/{shared/ui/phoneView → widgets/footer/model}/helpers.d.ts +0 -0
package/dist/widget.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as t, B as w, H as f, c as
|
|
2
|
-
import { s as
|
|
3
|
-
import { c as p } from "./
|
|
4
|
-
import {
|
|
1
|
+
import { j as t, B as w, H as f, c as h, R as k, P as H, b as L, I as j, C as y, S as W, a as D, L as O, d as I, A as N, e as V } from "./index-DV_MMMPA.js";
|
|
2
|
+
import { s as S } from "./scrollToElement-B-reg4jF.js";
|
|
3
|
+
import { c as p } from "./typeGuards-yOWv7RXH.js";
|
|
4
|
+
import { a as b } from "./useDebounce-QgEEiWs9.js";
|
|
5
5
|
import * as g from "react";
|
|
6
|
-
import { useState as
|
|
7
|
-
const
|
|
6
|
+
import { useState as G, useMemo as U, createElement as $ } from "react";
|
|
7
|
+
const Z = h(
|
|
8
8
|
"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",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -15,7 +15,7 @@ const U = u(
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
),
|
|
18
|
+
), q = ({
|
|
19
19
|
description: r,
|
|
20
20
|
title: e,
|
|
21
21
|
img: o,
|
|
@@ -24,14 +24,14 @@ const U = u(
|
|
|
24
24
|
withButton: i,
|
|
25
25
|
buttonText: x,
|
|
26
26
|
intent: l,
|
|
27
|
-
cardColor:
|
|
27
|
+
cardColor: u
|
|
28
28
|
}) => {
|
|
29
29
|
const { isDesktop: a } = b(), m = /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
30
30
|
w,
|
|
31
31
|
{
|
|
32
32
|
intent: "primary",
|
|
33
33
|
className: p("desktop:w-[200px]", n == null ? void 0 : n.button),
|
|
34
|
-
onClick: () =>
|
|
34
|
+
onClick: () => S("personal_form"),
|
|
35
35
|
size: "lg",
|
|
36
36
|
children: x
|
|
37
37
|
}
|
|
@@ -39,7 +39,7 @@ const U = u(
|
|
|
39
39
|
return /* @__PURE__ */ t.jsxs(
|
|
40
40
|
"li",
|
|
41
41
|
{
|
|
42
|
-
className: p(
|
|
42
|
+
className: p(Z({ intent: l }), { "pb-0": d }, { "pb-12": !d }, u, n == null ? void 0 : n.root),
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", n == null ? void 0 : n.wrapper), children: [
|
|
45
45
|
/* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col gap-4", n == null ? void 0 : n.textContainer), children: [
|
|
@@ -53,7 +53,7 @@ const U = u(
|
|
|
53
53
|
},
|
|
54
54
|
o
|
|
55
55
|
);
|
|
56
|
-
},
|
|
56
|
+
}, J = h("grid gap-4", {
|
|
57
57
|
variants: {
|
|
58
58
|
intent: {
|
|
59
59
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -61,20 +61,20 @@ const U = u(
|
|
|
61
61
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
}),
|
|
64
|
+
}), Gt = ({ heading: r, cards: e, classes: o, intent: d }) => /* @__PURE__ */ t.jsx("section", { className: p("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ t.jsxs(k, { className: o == null ? void 0 : o.container, children: [
|
|
65
65
|
/* @__PURE__ */ t.jsx(f, { className: p("mb-8", o == null ? void 0 : o.heading), as: "h2", children: r }),
|
|
66
|
-
/* @__PURE__ */ t.jsx("ul", { className: p(
|
|
67
|
-
] }) }),
|
|
66
|
+
/* @__PURE__ */ t.jsx("ul", { className: p(J({ intent: d }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ t.jsx(q, { intent: d, classes: o == null ? void 0 : o.item, ...n }, n.img)) })
|
|
67
|
+
] }) }), K = (r) => {
|
|
68
68
|
const { variant: e, details: o } = r;
|
|
69
69
|
switch (e) {
|
|
70
70
|
case "withButton":
|
|
71
71
|
return /* @__PURE__ */ t.jsx(w, { intent: "secondary", size: "sm", ...o, children: (o == null ? void 0 : o.children) || "Оформить заявку" });
|
|
72
72
|
case "withPhone":
|
|
73
|
-
return /* @__PURE__ */ t.jsx(H, { ...o });
|
|
73
|
+
return /* @__PURE__ */ t.jsx(H, { classes: { root: "items-end" }, ...o });
|
|
74
74
|
default:
|
|
75
75
|
return null;
|
|
76
76
|
}
|
|
77
|
-
},
|
|
77
|
+
}, Ut = ({ logoPath: r = "/", logoType: e = "main", config: o, classes: d }) => /* @__PURE__ */ t.jsx("header", { className: p("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", d == null ? void 0 : d.header), children: /* @__PURE__ */ t.jsx(k, { className: p(d == null ? void 0 : d.container), children: /* @__PURE__ */ t.jsxs("div", { className: p("flex items-center justify-between gap-5", d == null ? void 0 : d.wrapper), children: [
|
|
78
78
|
/* @__PURE__ */ t.jsx(
|
|
79
79
|
"a",
|
|
80
80
|
{
|
|
@@ -89,7 +89,7 @@ const U = u(
|
|
|
89
89
|
children: L[e]
|
|
90
90
|
}
|
|
91
91
|
),
|
|
92
|
-
|
|
92
|
+
K(o)
|
|
93
93
|
] }) }) }), E = ({ buttonsConfig: r, classes: e, className: o }) => {
|
|
94
94
|
var n;
|
|
95
95
|
const d = (r == null ? void 0 : r.secondary) && r.secondary.children;
|
|
@@ -118,7 +118,7 @@ const U = u(
|
|
|
118
118
|
]
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
|
-
},
|
|
121
|
+
}, Q = ({
|
|
122
122
|
headTitle: r,
|
|
123
123
|
subtitle: e,
|
|
124
124
|
buttonsConfig: o,
|
|
@@ -128,7 +128,7 @@ const U = u(
|
|
|
128
128
|
imgSets: x
|
|
129
129
|
}) => {
|
|
130
130
|
var m;
|
|
131
|
-
const { isDesktop: l, isMobile:
|
|
131
|
+
const { isDesktop: l, isMobile: u } = b(), a = /* @__PURE__ */ t.jsx(
|
|
132
132
|
"div",
|
|
133
133
|
{
|
|
134
134
|
"data-id": "banner-advantages",
|
|
@@ -187,7 +187,7 @@ const U = u(
|
|
|
187
187
|
l && a
|
|
188
188
|
] })
|
|
189
189
|
] }),
|
|
190
|
-
|
|
190
|
+
u && a
|
|
191
191
|
] });
|
|
192
192
|
}, B = ({
|
|
193
193
|
headTitle: r,
|
|
@@ -199,7 +199,7 @@ const U = u(
|
|
|
199
199
|
imgSets: x
|
|
200
200
|
}) => {
|
|
201
201
|
var m;
|
|
202
|
-
const { isDesktop: l, isMobile:
|
|
202
|
+
const { isDesktop: l, isMobile: u } = b(), a = /* @__PURE__ */ t.jsx(
|
|
203
203
|
"div",
|
|
204
204
|
{
|
|
205
205
|
"data-id": "banner-advantages",
|
|
@@ -243,14 +243,14 @@ const U = u(
|
|
|
243
243
|
] }),
|
|
244
244
|
l && a
|
|
245
245
|
] }) }),
|
|
246
|
-
|
|
246
|
+
u && a
|
|
247
247
|
] });
|
|
248
|
-
},
|
|
248
|
+
}, $t = ({ bannerVariant: r, ...e }) => {
|
|
249
249
|
switch (r) {
|
|
250
250
|
case "separateImg":
|
|
251
251
|
return /* @__PURE__ */ t.jsx(B, { ...e });
|
|
252
252
|
case "fullImg":
|
|
253
|
-
return /* @__PURE__ */ t.jsx(
|
|
253
|
+
return /* @__PURE__ */ t.jsx(Q, { ...e });
|
|
254
254
|
default:
|
|
255
255
|
return /* @__PURE__ */ t.jsx(B, { ...e });
|
|
256
256
|
}
|
|
@@ -281,7 +281,7 @@ const U = u(
|
|
|
281
281
|
))
|
|
282
282
|
}
|
|
283
283
|
);
|
|
284
|
-
},
|
|
284
|
+
}, X = ({ socialsLinks: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: p("mt-4 flex items-center gap-2 desktop:mt-6", e == null ? void 0 : e.socialRoot), children: r == null ? void 0 : r.map(({ iconName: o, href: d }) => /* @__PURE__ */ t.jsx(
|
|
285
285
|
"a",
|
|
286
286
|
{
|
|
287
287
|
className: p("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
@@ -290,19 +290,19 @@ const U = u(
|
|
|
290
290
|
children: /* @__PURE__ */ t.jsx(j, { name: o, className: p("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
291
291
|
},
|
|
292
292
|
d
|
|
293
|
-
)) }),
|
|
293
|
+
)) }), Y = (r) => `${r[0]} ${r.slice(1, 4)} ${r.slice(4, 7)}-${r.slice(7, 9)}-${r.slice(9)}`, A = ({ phones: r, classes: e }) => /* @__PURE__ */ t.jsx("div", { className: p("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: r == null ? void 0 : r.map(({ phone: o, text: d }) => /* @__PURE__ */ t.jsx(
|
|
294
294
|
H,
|
|
295
295
|
{
|
|
296
|
-
phone: o,
|
|
296
|
+
phone: Y(o),
|
|
297
297
|
text: d,
|
|
298
298
|
classes: {
|
|
299
|
-
|
|
299
|
+
root: p(e == null ? void 0 : e.phoneWrapper),
|
|
300
300
|
text: p("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
301
301
|
link: p("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
304
|
o
|
|
305
|
-
)) }),
|
|
305
|
+
)) }), P = ({ classes: r, config: e }) => {
|
|
306
306
|
const { details: o } = e || {};
|
|
307
307
|
return /* @__PURE__ */ t.jsx(
|
|
308
308
|
"div",
|
|
@@ -332,13 +332,13 @@ const U = u(
|
|
|
332
332
|
)
|
|
333
333
|
}
|
|
334
334
|
);
|
|
335
|
-
},
|
|
335
|
+
}, s = ({ text: r, classes: e }) => /* @__PURE__ */ t.jsx(
|
|
336
336
|
"div",
|
|
337
337
|
{
|
|
338
338
|
className: p("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
|
|
339
339
|
dangerouslySetInnerHTML: { __html: r }
|
|
340
340
|
}
|
|
341
|
-
),
|
|
341
|
+
), tt = ({ classes: r }) => /* @__PURE__ */ t.jsx(
|
|
342
342
|
"a",
|
|
343
343
|
{
|
|
344
344
|
"aria-label": "logo",
|
|
@@ -346,7 +346,7 @@ const U = u(
|
|
|
346
346
|
className: p("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", r == null ? void 0 : r.footerLogo),
|
|
347
347
|
children: /* @__PURE__ */ t.jsx(j, { name: "brandLogos/logoWhite", className: p("size-full", r == null ? void 0 : r.footerLogoIcon) })
|
|
348
348
|
}
|
|
349
|
-
),
|
|
349
|
+
), et = ({ classes: r }) => /* @__PURE__ */ t.jsx(
|
|
350
350
|
y,
|
|
351
351
|
{
|
|
352
352
|
intent: "white",
|
|
@@ -360,7 +360,7 @@ const U = u(
|
|
|
360
360
|
},
|
|
361
361
|
children: "Карта сайта"
|
|
362
362
|
}
|
|
363
|
-
),
|
|
363
|
+
), rt = ({ text: r, classes: e }) => {
|
|
364
364
|
const [o, d] = g.useState(!1), [n, i] = g.useState(!1), x = g.useRef(null);
|
|
365
365
|
return g.useEffect(() => {
|
|
366
366
|
const l = x.current;
|
|
@@ -388,7 +388,7 @@ const U = u(
|
|
|
388
388
|
}
|
|
389
389
|
)
|
|
390
390
|
] });
|
|
391
|
-
},
|
|
391
|
+
}, Zt = ({
|
|
392
392
|
renderBlocks: {
|
|
393
393
|
withSocialsLinks: r = !0,
|
|
394
394
|
withPhones: e = !0,
|
|
@@ -399,7 +399,7 @@ const U = u(
|
|
|
399
399
|
} = {},
|
|
400
400
|
socialsLinks: x = [],
|
|
401
401
|
phones: l = [],
|
|
402
|
-
ligal:
|
|
402
|
+
ligal: u,
|
|
403
403
|
copyright: a = "",
|
|
404
404
|
classes: m,
|
|
405
405
|
config: v
|
|
@@ -413,15 +413,15 @@ const U = u(
|
|
|
413
413
|
),
|
|
414
414
|
children: [
|
|
415
415
|
/* @__PURE__ */ t.jsxs("div", { className: p(m == null ? void 0 : m.footerSocialBlock), children: [
|
|
416
|
-
/* @__PURE__ */ t.jsx(
|
|
417
|
-
r && /* @__PURE__ */ t.jsx(
|
|
416
|
+
/* @__PURE__ */ t.jsx(tt, { classes: m == null ? void 0 : m.footerLogo }),
|
|
417
|
+
r && /* @__PURE__ */ t.jsx(X, { socialsLinks: x, classes: m == null ? void 0 : m.socialLinks })
|
|
418
418
|
] }),
|
|
419
|
-
e && /* @__PURE__ */ t.jsx(
|
|
419
|
+
e && /* @__PURE__ */ t.jsx(A, { phones: l, classes: m == null ? void 0 : m.phonesBlock })
|
|
420
420
|
]
|
|
421
421
|
}
|
|
422
422
|
),
|
|
423
|
-
o && /* @__PURE__ */ t.jsx(
|
|
424
|
-
i && /* @__PURE__ */ t.jsx(
|
|
423
|
+
o && /* @__PURE__ */ t.jsx(P, { config: v, classes: m == null ? void 0 : m.navLinks }),
|
|
424
|
+
i && /* @__PURE__ */ t.jsx(rt, { text: u || "" }),
|
|
425
425
|
/* @__PURE__ */ t.jsxs(
|
|
426
426
|
"div",
|
|
427
427
|
{
|
|
@@ -430,12 +430,12 @@ const U = u(
|
|
|
430
430
|
m == null ? void 0 : m.footerBottom
|
|
431
431
|
),
|
|
432
432
|
children: [
|
|
433
|
-
d && /* @__PURE__ */ t.jsx(
|
|
434
|
-
n && /* @__PURE__ */ t.jsx(
|
|
433
|
+
d && /* @__PURE__ */ t.jsx(s, { text: a, classes: m == null ? void 0 : m.copyright }),
|
|
434
|
+
n && /* @__PURE__ */ t.jsx(et, { classes: m == null ? void 0 : m.siteMap })
|
|
435
435
|
]
|
|
436
436
|
}
|
|
437
437
|
)
|
|
438
|
-
] }) }) }),
|
|
438
|
+
] }) }) }), ot = ({ classes: r, index: e, variant: o, title: d, description: n }) => {
|
|
439
439
|
const i = o === "withTitleAndDescription" && d;
|
|
440
440
|
return /* @__PURE__ */ t.jsxs(
|
|
441
441
|
"div",
|
|
@@ -468,7 +468,7 @@ const U = u(
|
|
|
468
468
|
]
|
|
469
469
|
}
|
|
470
470
|
);
|
|
471
|
-
},
|
|
471
|
+
}, qt = ({ headline: r, config: e, classes: o }) => {
|
|
472
472
|
const { variant: d, details: n } = e;
|
|
473
473
|
return /* @__PURE__ */ t.jsx(W, { className: o == null ? void 0 : o.root, children: /* @__PURE__ */ t.jsx(k, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
474
474
|
/* @__PURE__ */ t.jsx(f, { as: "h2", className: p("text-color-dark", o == null ? void 0 : o.headline), children: r }),
|
|
@@ -479,11 +479,11 @@ const U = u(
|
|
|
479
479
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
480
480
|
o == null ? void 0 : o.stepsWrapper
|
|
481
481
|
),
|
|
482
|
-
children: n == null ? void 0 : n.map((i, x) => /* @__PURE__ */ t.jsx(
|
|
482
|
+
children: n == null ? void 0 : n.map((i, x) => /* @__PURE__ */ t.jsx(ot, { variant: d, ...i, index: x + 1, classes: o == null ? void 0 : o.step }, i.description))
|
|
483
483
|
}
|
|
484
484
|
)
|
|
485
485
|
] }) }) });
|
|
486
|
-
},
|
|
486
|
+
}, nt = h("", {
|
|
487
487
|
variants: {
|
|
488
488
|
intent: {
|
|
489
489
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -499,7 +499,7 @@ const U = u(
|
|
|
499
499
|
defaultVariants: {
|
|
500
500
|
intent: "twoItems"
|
|
501
501
|
}
|
|
502
|
-
}),
|
|
502
|
+
}), dt = h("", {
|
|
503
503
|
variants: {
|
|
504
504
|
intent: {
|
|
505
505
|
twoItems: "",
|
|
@@ -531,7 +531,7 @@ const U = u(
|
|
|
531
531
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
532
532
|
}
|
|
533
533
|
]
|
|
534
|
-
}),
|
|
534
|
+
}), it = h("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
535
535
|
variants: {
|
|
536
536
|
intent: {
|
|
537
537
|
twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
|
|
@@ -541,7 +541,7 @@ const U = u(
|
|
|
541
541
|
defaultVariants: {
|
|
542
542
|
intent: "twoItems"
|
|
543
543
|
}
|
|
544
|
-
}),
|
|
544
|
+
}), pt = h("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
545
545
|
variants: {
|
|
546
546
|
intent: {
|
|
547
547
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -567,7 +567,7 @@ const U = u(
|
|
|
567
567
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
568
568
|
}
|
|
569
569
|
]
|
|
570
|
-
}),
|
|
570
|
+
}), xt = ({ data: r, intent: e }) => {
|
|
571
571
|
const {
|
|
572
572
|
title: o,
|
|
573
573
|
description: d,
|
|
@@ -575,15 +575,15 @@ const U = u(
|
|
|
575
575
|
enabled: !1
|
|
576
576
|
}
|
|
577
577
|
} = r;
|
|
578
|
-
return /* @__PURE__ */ t.jsx("li", { className: p(
|
|
578
|
+
return /* @__PURE__ */ t.jsx("li", { className: p(it({ intent: e })), children: /* @__PURE__ */ t.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
579
579
|
/* @__PURE__ */ t.jsxs("div", { className: p("mb-2 flex items-center gap-2"), children: [
|
|
580
580
|
/* @__PURE__ */ t.jsx("h4", { className: p("mob-title-bold-m text-color-dark"), children: o }),
|
|
581
581
|
n.enabled && /* @__PURE__ */ t.jsx(D, { triggerElement: /* @__PURE__ */ t.jsx(j, { className: p("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: n == null ? void 0 : n.text })
|
|
582
582
|
] }),
|
|
583
583
|
/* @__PURE__ */ t.jsx("div", { className: p("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: d } })
|
|
584
584
|
] }) });
|
|
585
|
-
}, C = ({ intent: r, headline: e, desktopHidden: o = !1, mobileHidden: d = !1 }) => /* @__PURE__ */ t.jsx("h2", { className: p(
|
|
586
|
-
const { intent: x = "twoItems", details: l } = d,
|
|
585
|
+
}, C = ({ intent: r, headline: e, desktopHidden: o = !1, mobileHidden: d = !1 }) => /* @__PURE__ */ t.jsx("h2", { className: p(nt({ intent: r, desktopHidden: o, mobileHidden: d })), children: e }), mt = ({ details: r, intent: e, withButton: o }) => /* @__PURE__ */ t.jsx("ul", { className: p(dt({ intent: e, withButton: o })), children: r == null ? void 0 : r.map((d, n) => /* @__PURE__ */ t.jsx(xt, { intent: e, data: d }, n)) }), Jt = ({ headline: r, buttonConfig: e, withButton: o = !1, config: d, imageComponent: n, classes: i }) => {
|
|
586
|
+
const { intent: x = "twoItems", details: l } = d, u = x === "fourItems", a = x === "twoItems";
|
|
587
587
|
return /* @__PURE__ */ t.jsx("section", { className: p(i == null ? void 0 : i.root), children: /* @__PURE__ */ t.jsxs(k, { className: p(i == null ? void 0 : i.container), children: [
|
|
588
588
|
a && /* @__PURE__ */ t.jsx(C, { intent: x, headline: r }),
|
|
589
589
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -594,15 +594,15 @@ const U = u(
|
|
|
594
594
|
i == null ? void 0 : i.contentContainer
|
|
595
595
|
),
|
|
596
596
|
children: [
|
|
597
|
-
|
|
598
|
-
/* @__PURE__ */ t.jsx("div", { className: p(
|
|
597
|
+
u && /* @__PURE__ */ t.jsx(C, { intent: x, headline: r, desktopHidden: !0 }),
|
|
598
|
+
/* @__PURE__ */ t.jsx("div", { className: p(pt({ intent: x, withButton: o }), i == null ? void 0 : i.imgContainer), children: n }),
|
|
599
599
|
/* @__PURE__ */ t.jsxs(
|
|
600
600
|
"div",
|
|
601
601
|
{
|
|
602
602
|
className: p("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", i == null ? void 0 : i.textWithBtnContainer),
|
|
603
603
|
children: [
|
|
604
|
-
|
|
605
|
-
/* @__PURE__ */ t.jsx(
|
|
604
|
+
u && /* @__PURE__ */ t.jsx(C, { intent: x, headline: r, mobileHidden: !0 }),
|
|
605
|
+
/* @__PURE__ */ t.jsx(mt, { details: l, intent: x, withButton: o }),
|
|
606
606
|
o && /* @__PURE__ */ t.jsx(
|
|
607
607
|
w,
|
|
608
608
|
{
|
|
@@ -620,7 +620,7 @@ const U = u(
|
|
|
620
620
|
}
|
|
621
621
|
)
|
|
622
622
|
] }) });
|
|
623
|
-
},
|
|
623
|
+
}, c = {
|
|
624
624
|
ESIA: "esia",
|
|
625
625
|
MOBILE_ID: "mobileId",
|
|
626
626
|
COMBINE: "combine"
|
|
@@ -646,7 +646,7 @@ const U = u(
|
|
|
646
646
|
}
|
|
647
647
|
)
|
|
648
648
|
}
|
|
649
|
-
),
|
|
649
|
+
), lt = ({ ...r }) => /* @__PURE__ */ t.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: [
|
|
650
650
|
/* @__PURE__ */ t.jsx(
|
|
651
651
|
"path",
|
|
652
652
|
{
|
|
@@ -722,11 +722,11 @@ const U = u(
|
|
|
722
722
|
/* @__PURE__ */ t.jsx(R, { mainLink: r, subLink: e, isMobile: x, classes: i == null ? void 0 : i.links }),
|
|
723
723
|
/* @__PURE__ */ t.jsx(j, { name: "arrows/arrowRight", className: p("mobile:hidden", i == null ? void 0 : i.arrowIcon) })
|
|
724
724
|
] }),
|
|
725
|
-
d && /* @__PURE__ */ t.jsx(
|
|
725
|
+
d && /* @__PURE__ */ t.jsx(I, { className: p("bg-color-positive", i == null ? void 0 : i.badge), children: d })
|
|
726
726
|
]
|
|
727
727
|
}
|
|
728
728
|
) });
|
|
729
|
-
},
|
|
729
|
+
}, M = ({ mainLink: r, subLink: e, isLoading: o, badge: d, loaderProps: n, classes: i }) => {
|
|
730
730
|
const { isMobile: x } = b();
|
|
731
731
|
return /* @__PURE__ */ t.jsx(F, { isLoading: o, loaderProps: n, classes: i == null ? void 0 : i.authWrapper, children: /* @__PURE__ */ t.jsxs(
|
|
732
732
|
"div",
|
|
@@ -738,21 +738,21 @@ const U = u(
|
|
|
738
738
|
),
|
|
739
739
|
children: [
|
|
740
740
|
/* @__PURE__ */ t.jsxs("div", { className: p("flex items-center gap-1 desktop:gap-4", i == null ? void 0 : i.textContent), children: [
|
|
741
|
-
/* @__PURE__ */ t.jsx(
|
|
741
|
+
/* @__PURE__ */ t.jsx(lt, { className: p("size-7 desktop:size-8", i == null ? void 0 : i.esiaLogo) }),
|
|
742
742
|
/* @__PURE__ */ t.jsx(R, { mainLink: r, subLink: e, isMobile: x, classes: i == null ? void 0 : i.links }),
|
|
743
743
|
/* @__PURE__ */ t.jsx(j, { name: "arrows/arrowRight", className: p("mobile:hidden", i == null ? void 0 : i.arrowIcon) })
|
|
744
744
|
] }),
|
|
745
|
-
d && /* @__PURE__ */ t.jsx(
|
|
745
|
+
d && /* @__PURE__ */ t.jsx(I, { className: p("bg-color-positive", i == null ? void 0 : i.badge), children: d })
|
|
746
746
|
]
|
|
747
747
|
}
|
|
748
748
|
) });
|
|
749
|
-
},
|
|
749
|
+
}, at = (r) => {
|
|
750
750
|
switch (r.mode) {
|
|
751
|
-
case
|
|
752
|
-
return /* @__PURE__ */ t.jsx(
|
|
753
|
-
case
|
|
751
|
+
case c.ESIA:
|
|
752
|
+
return /* @__PURE__ */ t.jsx(M, { ...r });
|
|
753
|
+
case c.MOBILE_ID:
|
|
754
754
|
return /* @__PURE__ */ t.jsx(T, { ...r });
|
|
755
|
-
case
|
|
755
|
+
case c.COMBINE:
|
|
756
756
|
default:
|
|
757
757
|
const { esiaConfig: e, mobileIdConfig: o, subtitle: d, badge: n, classes: i } = r, x = !d && !n ? g.Fragment : "div";
|
|
758
758
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -765,11 +765,11 @@ const U = u(
|
|
|
765
765
|
children: [
|
|
766
766
|
/* @__PURE__ */ t.jsxs(x, { className: p("flex w-full items-center justify-between gap-2", i == null ? void 0 : i.topContent), children: [
|
|
767
767
|
d && /* @__PURE__ */ t.jsx("h5", { className: p("desk-body-regular-l flex flex-1 text-color-dark", i == null ? void 0 : i.subtitle), children: d }),
|
|
768
|
-
n && /* @__PURE__ */ t.jsx(
|
|
768
|
+
n && /* @__PURE__ */ t.jsx(I, { className: p("bg-color-positive", i == null ? void 0 : i.badge), children: n })
|
|
769
769
|
] }),
|
|
770
770
|
/* @__PURE__ */ t.jsxs("div", { className: p("grid w-full grid-cols-2 gap-2 desktop:gap-4", i == null ? void 0 : i.authWrapper), children: [
|
|
771
771
|
/* @__PURE__ */ t.jsx(
|
|
772
|
-
|
|
772
|
+
M,
|
|
773
773
|
{
|
|
774
774
|
...e,
|
|
775
775
|
classes: {
|
|
@@ -795,7 +795,7 @@ const U = u(
|
|
|
795
795
|
}
|
|
796
796
|
);
|
|
797
797
|
}
|
|
798
|
-
},
|
|
798
|
+
}, Kt = (r) => at(r), _ = ({ links: r, classes: e }) => /* @__PURE__ */ t.jsx("nav", { className: p("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: r == null ? void 0 : r.map(({ path: o, label: d }) => /* @__PURE__ */ t.jsx(
|
|
799
799
|
y,
|
|
800
800
|
{
|
|
801
801
|
classes: {
|
|
@@ -807,13 +807,13 @@ const U = u(
|
|
|
807
807
|
children: d
|
|
808
808
|
},
|
|
809
809
|
o
|
|
810
|
-
)) }),
|
|
810
|
+
)) }), ut = ({ groupLabel: r, links: e, mobileAccordionProps: o, classes: d }) => {
|
|
811
811
|
var i, x, l;
|
|
812
812
|
const { isMobile: n } = b();
|
|
813
813
|
return /* @__PURE__ */ t.jsxs("div", { className: p("flex flex-col gap-2", d == null ? void 0 : d.columnGroup), children: [
|
|
814
814
|
!n && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
815
815
|
/* @__PURE__ */ t.jsx("h5", { className: p("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", d == null ? void 0 : d.columnGroupHeading), children: r }),
|
|
816
|
-
/* @__PURE__ */ t.jsx(
|
|
816
|
+
/* @__PURE__ */ t.jsx(_, { links: e, classes: d == null ? void 0 : d.linksList }, "desktop")
|
|
817
817
|
] }),
|
|
818
818
|
n && /* @__PURE__ */ t.jsx(
|
|
819
819
|
N,
|
|
@@ -829,11 +829,11 @@ const U = u(
|
|
|
829
829
|
},
|
|
830
830
|
contentInner: p("py-2 px-4", (l = o == null ? void 0 : o.classes) == null ? void 0 : l.contentInner)
|
|
831
831
|
},
|
|
832
|
-
children: /* @__PURE__ */ t.jsx(
|
|
832
|
+
children: /* @__PURE__ */ t.jsx(_, { links: e, classes: d == null ? void 0 : d.linksList }, "mobile")
|
|
833
833
|
}
|
|
834
834
|
)
|
|
835
835
|
] });
|
|
836
|
-
},
|
|
836
|
+
}, ht = ({ column: r, mobileAccordionProps: e, classes: o }) => /* @__PURE__ */ t.jsx("div", { className: p("flex flex-col gap-4 desktop:gap-6", o == null ? void 0 : o.column), children: r == null ? void 0 : r.map((d) => /* @__PURE__ */ t.jsx(ut, { ...e, ...d, classes: o == null ? void 0 : o.columnGroup }, d.groupLabel)) }), ft = h("grid gap-4 grid-cols-1", {
|
|
837
837
|
variants: {
|
|
838
838
|
variant: {
|
|
839
839
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -844,8 +844,8 @@ const U = u(
|
|
|
844
844
|
defaultVariants: {
|
|
845
845
|
variant: "fourCols"
|
|
846
846
|
}
|
|
847
|
-
}),
|
|
848
|
-
var l,
|
|
847
|
+
}), Qt = ({ config: r, headline: e, mobileAccordionProps: o, rootAccordionProps: d, classes: n }) => {
|
|
848
|
+
var l, u, a;
|
|
849
849
|
const { variant: i, details: x } = r;
|
|
850
850
|
return /* @__PURE__ */ t.jsx("section", { id: "inter-linking", className: p("min-w-full desktop:min-w-[1140px]", n == null ? void 0 : n.root), children: /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsx(
|
|
851
851
|
N,
|
|
@@ -856,14 +856,14 @@ const U = u(
|
|
|
856
856
|
classes: {
|
|
857
857
|
...d == null ? void 0 : d.classes,
|
|
858
858
|
header: {
|
|
859
|
-
trigger: p("bg-color-blue-grey-100", (
|
|
859
|
+
trigger: p("bg-color-blue-grey-100", (u = (l = d == null ? void 0 : d.classes) == null ? void 0 : l.header) == null ? void 0 : u.trigger)
|
|
860
860
|
},
|
|
861
861
|
content: p("max-w-full bg-color-blue-grey-100 relative", (a = d == null ? void 0 : d.classes) == null ? void 0 : a.content)
|
|
862
862
|
},
|
|
863
|
-
children: /* @__PURE__ */ t.jsx("div", { className: p(
|
|
863
|
+
children: /* @__PURE__ */ t.jsx("div", { className: p(ft({ variant: i }), n == null ? void 0 : n.columnsWrapper), children: x == null ? void 0 : x.map((m, v) => /* @__PURE__ */ t.jsx(ht, { ...m, ...o, classes: n == null ? void 0 : n.column }, v)) })
|
|
864
864
|
}
|
|
865
865
|
) }) });
|
|
866
|
-
},
|
|
866
|
+
}, jt = ({ tabsNames: r, activeTab: e, setActiveTab: o }) => /* @__PURE__ */ t.jsx("div", { className: "hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", children: r && r.map((d, n) => /* @__PURE__ */ t.jsx(
|
|
867
867
|
"button",
|
|
868
868
|
{
|
|
869
869
|
onClick: () => o(n),
|
|
@@ -876,10 +876,10 @@ const U = u(
|
|
|
876
876
|
children: d
|
|
877
877
|
},
|
|
878
878
|
d
|
|
879
|
-
)) }),
|
|
879
|
+
)) }), kt = (r) => r.variant === "HTML", bt = (r) => r.variant === "DOCUMENTS", gt = (r) => r.variant === "TABLE", wt = ({ html: r, config: e }) => {
|
|
880
880
|
const o = /* @__PURE__ */ t.jsx("div", { dangerouslySetInnerHTML: { __html: r ?? "" } });
|
|
881
881
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ t.jsx(N, { label: e == null ? void 0 : e.accordionTitle, children: o }) : o });
|
|
882
|
-
},
|
|
882
|
+
}, Nt = (r, e) => ({
|
|
883
883
|
rows: r == null ? void 0 : r.map(({ row: o }) => ({
|
|
884
884
|
row: o == null ? void 0 : o.map((d, n) => {
|
|
885
885
|
var i;
|
|
@@ -889,21 +889,21 @@ const U = u(
|
|
|
889
889
|
};
|
|
890
890
|
})
|
|
891
891
|
}))
|
|
892
|
-
}),
|
|
892
|
+
}), yt = h("flex flex-col", {
|
|
893
893
|
variants: {
|
|
894
894
|
columnsVariant: {
|
|
895
895
|
twoCols: "w-full max-w-[656px]",
|
|
896
896
|
threeCols: "w-full max-w-[768px]"
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
|
-
}),
|
|
899
|
+
}), vt = h("grid px-4 mb-4", {
|
|
900
900
|
variants: {
|
|
901
901
|
columnsVariant: {
|
|
902
902
|
twoCols: "grid-cols-2 gap-16",
|
|
903
903
|
threeCols: "grid-cols-3 gap-12"
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
-
}),
|
|
906
|
+
}), Ct = ({ headings: r, columnsVariant: e }) => /* @__PURE__ */ t.jsx("div", { className: p(vt({ columnsVariant: e })), children: r == null ? void 0 : r.map((o) => /* @__PURE__ */ t.jsx("div", { className: "text-color-secondary", children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), ct = h("grid items-center", {
|
|
907
907
|
variants: {
|
|
908
908
|
columnsVariant: {
|
|
909
909
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -914,14 +914,14 @@ const U = u(
|
|
|
914
914
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
}),
|
|
917
|
+
}), It = ({ row: r, tableVariant: e, columnsVariant: o, rowIndex: d }) => /* @__PURE__ */ t.jsx("div", { className: p(ct({ columnsVariant: o, tableVariant: e }), { "border-none": d === 0 }), children: r == null ? void 0 : r.map(({ cell: n }, i) => /* @__PURE__ */ t.jsx("div", { className: p("desk-body-regular-l text-color-dark", { "font-medium": i !== 0 }), children: n && n }, i)) }), Bt = h("flex flex-col gap-2", {
|
|
918
918
|
variants: {
|
|
919
919
|
tableVariant: {
|
|
920
920
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
921
921
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
}),
|
|
924
|
+
}), Tt = ({ row: r, tableVariant: e, columnsVariant: o, headingsExist: d }) => /* @__PURE__ */ t.jsx("div", { className: p(Bt({ tableVariant: e })), children: r == null ? void 0 : r.map(({ cell: n, heading: i }, x) => /* @__PURE__ */ t.jsxs("div", { className: p("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !d }), children: [
|
|
925
925
|
i && /* @__PURE__ */ t.jsx("div", { className: "mob-body-regular-l text-color-secondary", children: i }),
|
|
926
926
|
/* @__PURE__ */ t.jsx(
|
|
927
927
|
"div",
|
|
@@ -932,33 +932,33 @@ const U = u(
|
|
|
932
932
|
children: n
|
|
933
933
|
}
|
|
934
934
|
)
|
|
935
|
-
] }, x)) }),
|
|
935
|
+
] }, x)) }), Mt = ({ tableVariant: r, rows: e, headings: o, columnsVariant: d }) => {
|
|
936
936
|
var l;
|
|
937
|
-
const { isDesktop: n } = b(), i = ((l =
|
|
937
|
+
const { isDesktop: n } = b(), i = ((l = Nt(e, o)) == null ? void 0 : l.rows) ?? [], x = !!(o && o.length > 0);
|
|
938
938
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
939
|
-
n && x && /* @__PURE__ */ t.jsx(
|
|
940
|
-
n ? /* @__PURE__ */ t.jsx(t.Fragment, { children: e == null ? void 0 : e.map((
|
|
941
|
-
|
|
939
|
+
n && x && /* @__PURE__ */ t.jsx(Ct, { headings: o, columnsVariant: d }),
|
|
940
|
+
n ? /* @__PURE__ */ t.jsx(t.Fragment, { children: e == null ? void 0 : e.map((u, a) => /* @__PURE__ */ t.jsx(It, { rowIndex: a, tableVariant: r, columnsVariant: d, ...u }, a)) }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: i == null ? void 0 : i.map((u, a) => /* @__PURE__ */ t.jsx(
|
|
941
|
+
Tt,
|
|
942
942
|
{
|
|
943
943
|
headingsExist: x,
|
|
944
944
|
tableVariant: r,
|
|
945
945
|
columnsVariant: d,
|
|
946
|
-
...
|
|
946
|
+
...u
|
|
947
947
|
},
|
|
948
948
|
a
|
|
949
949
|
)) })
|
|
950
950
|
] });
|
|
951
|
-
},
|
|
952
|
-
const l = /* @__PURE__ */ t.jsxs("div", { className: p(
|
|
951
|
+
}, _t = ({ tableVariant: r, description: e, columnsVariant: o, config: d, rows: n, title: i, headings: x }) => {
|
|
952
|
+
const l = /* @__PURE__ */ t.jsxs("div", { className: p(yt({ columnsVariant: o })), children: [
|
|
953
953
|
i && /* @__PURE__ */ t.jsx(f, { as: "h4", className: "mb-4 desktop:mb-6", children: i }),
|
|
954
|
-
/* @__PURE__ */ t.jsx(
|
|
954
|
+
/* @__PURE__ */ t.jsx(Mt, { tableVariant: r, rows: n, headings: x, columnsVariant: o }),
|
|
955
955
|
e && /* @__PURE__ */ t.jsx("div", { className: "mt-2 [&&]:desk-body-regular-m desktop:mt-2", dangerouslySetInnerHTML: { __html: e ?? "" } })
|
|
956
956
|
] });
|
|
957
957
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: d && (d != null && d.isAccordion) && (d != null && d.accordionTitle) ? /* @__PURE__ */ t.jsx(N, { label: d == null ? void 0 : d.accordionTitle, children: l }) : l });
|
|
958
|
-
},
|
|
958
|
+
}, Ht = {
|
|
959
959
|
documentFilled: "files/documentFilled",
|
|
960
960
|
documentOutline: "files/documentOutline"
|
|
961
|
-
},
|
|
961
|
+
}, Et = h("size-8 transition-colors", {
|
|
962
962
|
variants: {
|
|
963
963
|
iconType: {
|
|
964
964
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -968,7 +968,7 @@ const U = u(
|
|
|
968
968
|
defaultVariants: {
|
|
969
969
|
iconType: "documentOutline"
|
|
970
970
|
}
|
|
971
|
-
}),
|
|
971
|
+
}), zt = ({ label: r, size: e, url: o, iconType: d }) => /* @__PURE__ */ t.jsxs(
|
|
972
972
|
"a",
|
|
973
973
|
{
|
|
974
974
|
href: o,
|
|
@@ -979,7 +979,7 @@ const U = u(
|
|
|
979
979
|
"group flex w-full cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus"
|
|
980
980
|
),
|
|
981
981
|
children: [
|
|
982
|
-
/* @__PURE__ */ t.jsx(j, { name:
|
|
982
|
+
/* @__PURE__ */ t.jsx(j, { name: Ht[d], className: p(Et({ iconType: d })) }),
|
|
983
983
|
/* @__PURE__ */ t.jsxs("div", { className: p("flex flex-1 flex-col"), children: [
|
|
984
984
|
/* @__PURE__ */ t.jsx("p", { className: p("desk-body-medium-l text-color-dark"), children: r }),
|
|
985
985
|
/* @__PURE__ */ t.jsxs("div", { className: p("desk-body-regular-m text-color-disabled"), children: [
|
|
@@ -989,45 +989,49 @@ const U = u(
|
|
|
989
989
|
] })
|
|
990
990
|
]
|
|
991
991
|
}
|
|
992
|
-
),
|
|
992
|
+
), Ft = ({ docs: r, config: e, title: o, iconType: d, description: n }) => {
|
|
993
993
|
const i = /* @__PURE__ */ t.jsxs("div", { className: "flex max-w-[680px] flex-col", children: [
|
|
994
994
|
o && /* @__PURE__ */ t.jsx(f, { as: "h3", className: "mb-4", children: o }),
|
|
995
|
-
/* @__PURE__ */ t.jsx("div", { className: "gap- flex flex-col gap-4", children: r == null ? void 0 : r.map((x) => /* @__PURE__ */ t.jsx(
|
|
995
|
+
/* @__PURE__ */ t.jsx("div", { className: "gap- flex flex-col gap-4", children: r == null ? void 0 : r.map((x) => /* @__PURE__ */ t.jsx(zt, { iconType: d, ...x }, x.label)) }),
|
|
996
996
|
n && /* @__PURE__ */ t.jsx("div", { className: "mt-4", dangerouslySetInnerHTML: { __html: n ?? "" } })
|
|
997
997
|
] });
|
|
998
998
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ t.jsx(N, { label: e == null ? void 0 : e.accordionTitle, children: i }) : i });
|
|
999
|
-
},
|
|
999
|
+
}, Rt = (r) => {
|
|
1000
1000
|
var e, o, d;
|
|
1001
1001
|
switch (!0) {
|
|
1002
|
-
case
|
|
1003
|
-
return (e = r.details) == null ? void 0 : e.map((n, i) => /* @__PURE__ */ t.jsx(
|
|
1004
|
-
case
|
|
1005
|
-
return (o = r.details) == null ? void 0 : o.map((n, i) => /* @__PURE__ */ t.jsx(
|
|
1006
|
-
case
|
|
1007
|
-
return (d = r.details) == null ? void 0 : d.map((n, i) => /* @__PURE__ */ t.jsx(
|
|
1002
|
+
case kt(r):
|
|
1003
|
+
return (e = r.details) == null ? void 0 : e.map((n, i) => /* @__PURE__ */ t.jsx(wt, { ...n }, i));
|
|
1004
|
+
case bt(r):
|
|
1005
|
+
return (o = r.details) == null ? void 0 : o.map((n, i) => /* @__PURE__ */ t.jsx(Ft, { ...n }, i));
|
|
1006
|
+
case gt(r):
|
|
1007
|
+
return (d = r.details) == null ? void 0 : d.map((n, i) => /* @__PURE__ */ t.jsx(_t, { ...n }, i));
|
|
1008
1008
|
default:
|
|
1009
1009
|
return null;
|
|
1010
1010
|
}
|
|
1011
|
-
},
|
|
1011
|
+
}, Lt = ({ entity: r }) => /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-6", children: Rt(r) }), Xt = ({ headline: r, tabs: e }) => {
|
|
1012
1012
|
var i, x;
|
|
1013
|
-
const [o, d] =
|
|
1013
|
+
const [o, d] = G(0), n = U(() => e == null ? void 0 : e.map((l) => l == null ? void 0 : l.tabName), [e]) ?? [];
|
|
1014
1014
|
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ t.jsx("section", { id: "useful-info", className: "pb-[64px] desktop:pb-20", children: /* @__PURE__ */ t.jsxs(k, { children: [
|
|
1015
1015
|
/* @__PURE__ */ t.jsx(f, { as: "h2", children: r }),
|
|
1016
|
-
/* @__PURE__ */ t.jsx("div", { className: "mt-6 flex flex-col gap-2 desktop:mt-12", children: /* @__PURE__ */ t.jsx(
|
|
1017
|
-
/* @__PURE__ */ t.jsx("div", { className: "mt-6 flex flex-col gap-6", children: (x = (i = e == null ? void 0 : e[o]) == null ? void 0 : i.contents) == null ? void 0 : x.map((l,
|
|
1016
|
+
/* @__PURE__ */ t.jsx("div", { className: "mt-6 flex flex-col gap-2 desktop:mt-12", children: /* @__PURE__ */ t.jsx(jt, { tabsNames: n, activeTab: o, setActiveTab: d }) }),
|
|
1017
|
+
/* @__PURE__ */ t.jsx("div", { className: "mt-6 flex flex-col gap-6", children: (x = (i = e == null ? void 0 : e[o]) == null ? void 0 : i.contents) == null ? void 0 : x.map((l, u) => /* @__PURE__ */ t.jsx(Lt, { ...l }, u)) })
|
|
1018
1018
|
] }) });
|
|
1019
|
-
}
|
|
1019
|
+
}, Yt = ({ fields: r, control: e }) => r.map(({ type: o, args: d }) => {
|
|
1020
|
+
const n = V[o];
|
|
1021
|
+
return /* @__PURE__ */ $(n, { ...d, key: d.name, control: e });
|
|
1022
|
+
});
|
|
1020
1023
|
export {
|
|
1021
1024
|
z as Advantages,
|
|
1022
|
-
|
|
1023
|
-
|
|
1025
|
+
Kt as AuthProvider,
|
|
1026
|
+
$t as Banner,
|
|
1024
1027
|
B as BannerWithSeparateImg,
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1028
|
+
Gt as Benefit,
|
|
1029
|
+
Yt as FieldMapper,
|
|
1030
|
+
Zt as Footer,
|
|
1031
|
+
Ut as Header,
|
|
1032
|
+
Qt as InterLinking,
|
|
1033
|
+
Jt as LongBanner,
|
|
1034
|
+
qt as Stepper,
|
|
1035
|
+
Xt as UsefulInfo
|
|
1032
1036
|
};
|
|
1033
1037
|
//# sourceMappingURL=widget.js.map
|