webim-adapter 0.9.0 → 0.12.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/build/webim-adapter.js +484 -367
- package/build/webim-embed.js +2 -2
- package/build/webim-ssr.js +830 -713
- package/package.json +1 -1
package/build/webim-adapter.js
CHANGED
|
@@ -48,36 +48,36 @@ function h(e) {
|
|
|
48
48
|
color: j,
|
|
49
49
|
inset: M
|
|
50
50
|
})), N.length && (t.boxShadow = N.join(", "));
|
|
51
|
-
let P = (e) => e.type === "blur" ? `blur(${p(e.v ?? 0)})` : e.type === "hue-rotate" ? `hue-rotate(${h(e.v ?? 0)})` : `${e.type}(${e.v ?? 100}%)`, F = (e) => (Array.isArray(e) ? e : []).filter((e) => e && e.on !== !1 && e.type).map(P), { filters: I, backdropFilters: L, filterBlur: R, filterGrayscale: ee, filterBrightness: z, filterContrast:
|
|
51
|
+
let P = (e) => e.type === "blur" ? `blur(${p(e.v ?? 0)})` : e.type === "hue-rotate" ? `hue-rotate(${h(e.v ?? 0)})` : `${e.type}(${e.v ?? 100}%)`, F = (e) => (Array.isArray(e) ? e : []).filter((e) => e && e.on !== !1 && e.type).map(P), { filters: I, backdropFilters: L, filterBlur: R, filterGrayscale: ee, filterBrightness: z, filterContrast: te, filterSaturate: ne } = t;
|
|
52
52
|
delete t.filters, delete t.backdropFilters, delete t.filterBlur, delete t.filterGrayscale, delete t.filterBrightness, delete t.filterContrast, delete t.filterSaturate;
|
|
53
|
-
let
|
|
54
|
-
R !== void 0 &&
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
let { textStrokeWidth:
|
|
58
|
-
delete t.textStrokeWidth, delete t.textStrokeColor, (
|
|
59
|
-
let { clipText:
|
|
60
|
-
delete t.clipText,
|
|
61
|
-
let { transitions:
|
|
53
|
+
let B = F(I);
|
|
54
|
+
R !== void 0 && B.push(`blur(${p(R)})`), ee !== void 0 && B.push(`grayscale(${ee}%)`), z !== void 0 && B.push(`brightness(${z}%)`), te !== void 0 && B.push(`contrast(${te}%)`), ne !== void 0 && B.push(`saturate(${ne}%)`), B.length && (t.filter = B.join(" "));
|
|
55
|
+
let re = F(L);
|
|
56
|
+
re.length && (t.backdropFilter = re.join(" "), t.WebkitBackdropFilter = t.backdropFilter);
|
|
57
|
+
let { textStrokeWidth: ie, textStrokeColor: ae } = t;
|
|
58
|
+
delete t.textStrokeWidth, delete t.textStrokeColor, (ie !== void 0 || ae !== void 0) && (t.WebkitTextStroke = `${p(ie ?? 1)} ${ae || "currentColor"}`);
|
|
59
|
+
let { clipText: oe } = t;
|
|
60
|
+
delete t.clipText, oe && (t.WebkitBackgroundClip = "text", t.backgroundClip = "text", t.WebkitTextFillColor = "transparent");
|
|
61
|
+
let { transitions: se, transitionDuration: V, transitionEasing: H, transitionProperty: ce } = t, le = (e) => typeof e == "number" || !Number.isNaN(Number(e)) ? `${Number(e)}ms` : e;
|
|
62
62
|
delete t.transitions, delete t.transitionDuration, delete t.transitionEasing, delete t.transitionProperty;
|
|
63
|
-
let
|
|
64
|
-
if (
|
|
63
|
+
let U = (Array.isArray(se) ? se : []).filter((e) => e && e.on !== !1).map((e) => `${e.property || "all"} ${le(e.duration ?? 200)} ${e.easing || "ease"}`);
|
|
64
|
+
if (V !== void 0 && U.push(`${ce || "all"} ${le(V)} ${H || "ease"}`), U.length && (t.transition = U.join(", ")), t.textDecoration !== void 0 && (t.textDecorationLine = t.textDecoration, delete t.textDecoration), t.backgroundImage && !String(t.backgroundImage).includes("(") && (t.backgroundImage = `url("${t.backgroundImage}")`), n) {
|
|
65
65
|
let e = `${i || "rgba(0,0,0,0.5)"}, ${a || "transparent"}`, o = n === "radial" ? `radial-gradient(circle, ${e})` : `linear-gradient(${r ?? 180}deg, ${e})`;
|
|
66
66
|
t.backgroundImage = t.backgroundImage ? `${o}, ${t.backgroundImage}` : o;
|
|
67
67
|
}
|
|
68
68
|
delete t.backgroundVideo;
|
|
69
|
-
let { overlayColor:
|
|
70
|
-
if (delete t.overlayColor, delete t.overlayOpacity,
|
|
71
|
-
let e = `color-mix(in srgb, ${
|
|
69
|
+
let { overlayColor: ue, overlayOpacity: W } = t;
|
|
70
|
+
if (delete t.overlayColor, delete t.overlayOpacity, ue) {
|
|
71
|
+
let e = `color-mix(in srgb, ${ue} ${W ?? 50}%, transparent)`, n = `linear-gradient(${e}, ${e})`;
|
|
72
72
|
t.backgroundImage = t.backgroundImage ? `${n}, ${t.backgroundImage}` : n;
|
|
73
73
|
}
|
|
74
74
|
t.backgroundImage && (t.backgroundSize ??= "cover", t.backgroundPosition ??= "center", t.backgroundRepeat ??= "no-repeat");
|
|
75
|
-
let { backgroundLayers:
|
|
75
|
+
let { backgroundLayers: de } = t;
|
|
76
76
|
delete t.backgroundLayers;
|
|
77
|
-
let
|
|
78
|
-
if (
|
|
77
|
+
let G = (Array.isArray(de) ? de : []).filter((e) => e && e.on !== !1);
|
|
78
|
+
if (G.length) {
|
|
79
79
|
let e = [], n = [], r = [], i = [], a = [];
|
|
80
|
-
for (let t of
|
|
80
|
+
for (let t of G) if (t.kind === "linear") e.push(`linear-gradient(${t.angle ?? 180}deg, ${t.from || "rgba(0,0,0,0.5)"}, ${t.to || "transparent"})`), n.push("auto"), r.push("0% 0%"), i.push("repeat"), a.push("scroll");
|
|
81
81
|
else if (t.kind === "radial") e.push(`radial-gradient(circle, ${t.from || "rgba(0,0,0,0.5)"}, ${t.to || "transparent"})`), n.push("auto"), r.push("0% 0%"), i.push("repeat"), a.push("scroll");
|
|
82
82
|
else {
|
|
83
83
|
if (!t.src) continue;
|
|
@@ -313,7 +313,7 @@ var z = async (e) => {
|
|
|
313
313
|
if (!e.ok || t?.success === !1) throw Error(t?.error?.message || `Request failed (${e.status})`);
|
|
314
314
|
return t?.payload ?? t;
|
|
315
315
|
};
|
|
316
|
-
async function
|
|
316
|
+
async function te({ apiUrl: e, tenant: t, slug: n, locale: r, preview: i, token: a, fetch: o }) {
|
|
317
317
|
if (!e) throw Error("fetchPage: apiUrl is required");
|
|
318
318
|
if (!n) throw Error("fetchPage: slug is required");
|
|
319
319
|
let s = o ?? fetch, c = e.replace(/\/$/, ""), l = {
|
|
@@ -438,14 +438,14 @@ new Map([
|
|
|
438
438
|
fallback: "sans-serif"
|
|
439
439
|
}
|
|
440
440
|
].map((e) => [e.family, e]));
|
|
441
|
-
function
|
|
441
|
+
function ne(e) {
|
|
442
442
|
return e.length ? `https://fonts.googleapis.com/css2?${e.map((e) => `family=${e.replace(/ /g, "+")}:wght@100..900`).join("&")}&display=swap` : null;
|
|
443
443
|
}
|
|
444
|
-
var
|
|
444
|
+
var B = (e) => ne([e]), re = (e) => {
|
|
445
445
|
let t = typeof e == "string" && e.match(/^"([^"]+)"/);
|
|
446
446
|
return t ? t[1] : null;
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function ie(e, t) {
|
|
449
449
|
let n = /* @__PURE__ */ new Set(), r = (e) => {
|
|
450
450
|
for (let t of Object.values(e || {})) for (let e of [
|
|
451
451
|
"style",
|
|
@@ -453,7 +453,7 @@ function re(e, t) {
|
|
|
453
453
|
"pressed",
|
|
454
454
|
"focused"
|
|
455
455
|
]) {
|
|
456
|
-
let r =
|
|
456
|
+
let r = re(t.props?.[e]?.fontFamily);
|
|
457
457
|
r && n.add(r);
|
|
458
458
|
}
|
|
459
459
|
};
|
|
@@ -463,7 +463,7 @@ function re(e, t) {
|
|
|
463
463
|
}
|
|
464
464
|
//#endregion
|
|
465
465
|
//#region ../ui/src/components/builder/locale.js
|
|
466
|
-
var
|
|
466
|
+
var ae = /* @__PURE__ */ new Set([
|
|
467
467
|
"ar",
|
|
468
468
|
"he",
|
|
469
469
|
"fa",
|
|
@@ -474,16 +474,16 @@ var ie = /* @__PURE__ */ new Set([
|
|
|
474
474
|
"yi",
|
|
475
475
|
"dv",
|
|
476
476
|
"ckb"
|
|
477
|
-
]),
|
|
477
|
+
]), oe = (e) => ae.has(String(e || "").toLowerCase().split(/[-_]/)[0]) ? "rtl" : "ltr", se = (e, t) => e === "ltr" || e === "rtl" ? e : t ? oe(t) : void 0, V = t({
|
|
478
478
|
tenant: "",
|
|
479
479
|
apiUrl: "/api",
|
|
480
480
|
locale: "",
|
|
481
481
|
settings: null
|
|
482
|
-
}),
|
|
483
|
-
function
|
|
482
|
+
}), H = t(null), ce = t(null), le = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
483
|
+
function U(e, t) {
|
|
484
484
|
if (t) return t.includes(".") ? t.split(".").reduce((e, t) => e && typeof e == "object" ? e[t] : void 0, e) : e?.[t];
|
|
485
485
|
}
|
|
486
|
-
var
|
|
486
|
+
var ue = (e) => {
|
|
487
487
|
let t = [];
|
|
488
488
|
for (let [n, r] of Object.entries(e ?? {})) {
|
|
489
489
|
if (!/^[\w-]+$/.test(n)) continue;
|
|
@@ -493,36 +493,36 @@ var ce = (e) => {
|
|
|
493
493
|
}
|
|
494
494
|
return t;
|
|
495
495
|
};
|
|
496
|
-
function
|
|
496
|
+
function W(e) {
|
|
497
497
|
return e == null ? "" : typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : typeof e == "object" && !Array.isArray(e) && ("label" in e || "name" in e || "slug" in e) ? String(e.label ?? e.name ?? e.slug ?? "") : Array.isArray(e) ? e.map((e) => typeof e == "string" ? e : Array.isArray(e?.parts) ? e.parts.map((e) => e?.text ?? "").join("") : Array.isArray(e?.items) ? e.items.map((e) => e?.text ?? "").join(" ") : e && (e.label != null || e.name != null || e.slug != null) ? String(e.label ?? e.name ?? e.slug) : "").filter(Boolean).join(" ") : "";
|
|
498
498
|
}
|
|
499
|
-
function
|
|
500
|
-
let n = t?.data ?? {}, r =
|
|
499
|
+
function de(e, t) {
|
|
500
|
+
let n = t?.data ?? {}, r = ue(n);
|
|
501
501
|
if (!r.length) return e;
|
|
502
|
-
let i = RegExp(`:(${r.map(
|
|
502
|
+
let i = RegExp(`:(${r.map(le).sort((e, t) => t.length - e.length).join("|")})`, "g"), a = (e) => typeof e == "string" ? e.replace(i, (e, t) => W(U(n, t))) : Array.isArray(e) ? e.map(a) : e && typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([e, t]) => [e, a(t)])) : e;
|
|
503
503
|
return a(e);
|
|
504
504
|
}
|
|
505
|
-
var
|
|
505
|
+
var G = {
|
|
506
506
|
margin: 0,
|
|
507
507
|
fontWeight: 700,
|
|
508
508
|
lineHeight: 1.2,
|
|
509
509
|
fontFamily: "var(--page-heading-font, inherit)"
|
|
510
|
-
},
|
|
510
|
+
}, fe = { margin: 0 }, K = {
|
|
511
511
|
display: "inline-block",
|
|
512
512
|
textDecoration: "none",
|
|
513
513
|
cursor: "pointer",
|
|
514
514
|
backgroundColor: "var(--page-accent, #111827)",
|
|
515
515
|
color: "var(--page-accent-text, #ffffff)"
|
|
516
|
-
},
|
|
516
|
+
}, pe = {
|
|
517
517
|
flexGrow: 1,
|
|
518
518
|
display: "flex",
|
|
519
519
|
flexDirection: "column",
|
|
520
520
|
position: "relative"
|
|
521
|
-
},
|
|
521
|
+
}, me = {
|
|
522
522
|
display: "flex",
|
|
523
523
|
flexDirection: "column"
|
|
524
524
|
};
|
|
525
|
-
function
|
|
525
|
+
function he({ style: e }) {
|
|
526
526
|
let t = e?.backgroundVideo;
|
|
527
527
|
if (!t) return null;
|
|
528
528
|
let n = {
|
|
@@ -548,7 +548,7 @@ function pe({ style: e }) {
|
|
|
548
548
|
background: r
|
|
549
549
|
} })] });
|
|
550
550
|
}
|
|
551
|
-
var
|
|
551
|
+
var ge = (e, t) => e?.backgroundVideo ? {
|
|
552
552
|
position: "relative",
|
|
553
553
|
...t,
|
|
554
554
|
...h(e)
|
|
@@ -556,24 +556,24 @@ var me = (e, t) => e?.backgroundVideo ? {
|
|
|
556
556
|
...t,
|
|
557
557
|
...h(e)
|
|
558
558
|
};
|
|
559
|
-
function
|
|
559
|
+
function _e({ style: e, nodeRef: t, children: n }) {
|
|
560
560
|
return /* @__PURE__ */ d("div", {
|
|
561
561
|
ref: t,
|
|
562
562
|
style: {
|
|
563
|
-
...
|
|
563
|
+
...pe,
|
|
564
564
|
...h(e)
|
|
565
565
|
},
|
|
566
|
-
children: [/* @__PURE__ */ u(
|
|
566
|
+
children: [/* @__PURE__ */ u(he, { style: e }), n]
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function ve({ style: e, nodeRef: t, children: n }) {
|
|
570
570
|
return /* @__PURE__ */ d("section", {
|
|
571
571
|
ref: t,
|
|
572
|
-
style:
|
|
573
|
-
children: [/* @__PURE__ */ u(
|
|
572
|
+
style: ge(e, me),
|
|
573
|
+
children: [/* @__PURE__ */ u(he, { style: e }), n]
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function ye({ style: e, freeLayout: t, nodeRef: n, children: r }) {
|
|
577
577
|
let i = t ? {
|
|
578
578
|
position: "relative",
|
|
579
579
|
minHeight: 240
|
|
@@ -582,32 +582,32 @@ function _e({ style: e, freeLayout: t, nodeRef: n, children: r }) {
|
|
|
582
582
|
ref: n,
|
|
583
583
|
style: i ? {
|
|
584
584
|
...i,
|
|
585
|
-
...
|
|
586
|
-
} :
|
|
587
|
-
children: [/* @__PURE__ */ u(
|
|
585
|
+
...ge(e)
|
|
586
|
+
} : ge(e),
|
|
587
|
+
children: [/* @__PURE__ */ u(he, { style: e }), r]
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function be({ text: e, parts: t, tag: n = "h2", style: r, linked: i, nodeRef: a }) {
|
|
591
591
|
return /* @__PURE__ */ u(n, {
|
|
592
592
|
ref: a,
|
|
593
593
|
style: {
|
|
594
|
-
...
|
|
594
|
+
...G,
|
|
595
595
|
...h(r)
|
|
596
596
|
},
|
|
597
|
-
children:
|
|
597
|
+
children: q(t, e, i)
|
|
598
598
|
});
|
|
599
599
|
}
|
|
600
|
-
var
|
|
600
|
+
var xe = {
|
|
601
601
|
fontFamily: j.mono.value,
|
|
602
602
|
background: "rgba(148, 163, 184, 0.18)",
|
|
603
603
|
padding: "1px 5px",
|
|
604
604
|
borderRadius: 4,
|
|
605
605
|
fontSize: "0.9em"
|
|
606
606
|
};
|
|
607
|
-
function
|
|
607
|
+
function Se(e, t = [], n, r) {
|
|
608
608
|
let i = e;
|
|
609
609
|
return t.includes("sup") ? i = /* @__PURE__ */ u("sup", { children: i }) : t.includes("sub") && (i = /* @__PURE__ */ u("sub", { children: i })), t.includes("code") && (i = /* @__PURE__ */ u("code", {
|
|
610
|
-
style:
|
|
610
|
+
style: xe,
|
|
611
611
|
children: i
|
|
612
612
|
})), t.includes("strike") && (i = /* @__PURE__ */ u("s", { children: i })), t.includes("underline") && (i = /* @__PURE__ */ u("u", { children: i })), t.includes("italic") && (i = /* @__PURE__ */ u("em", { children: i })), t.includes("bold") && (i = /* @__PURE__ */ u("strong", { children: i })), n && (i = /* @__PURE__ */ u("a", {
|
|
613
613
|
href: n,
|
|
@@ -617,13 +617,13 @@ function be(e, t = [], n, r) {
|
|
|
617
617
|
children: i
|
|
618
618
|
})), i;
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function q(t, n, r) {
|
|
621
621
|
return t?.length ? t.map((t, n) => {
|
|
622
622
|
if (t.slot) return /* @__PURE__ */ u(e, { children: r?.[t.slot] ?? null }, n);
|
|
623
|
-
if (t.parts) return /* @__PURE__ */ u(e, { children:
|
|
623
|
+
if (t.parts) return /* @__PURE__ */ u(e, { children: q(t.parts, "", r) }, n);
|
|
624
624
|
let i = t.text;
|
|
625
625
|
return t.sup ? i = /* @__PURE__ */ u("sup", { children: i }) : t.sub && (i = /* @__PURE__ */ u("sub", { children: i })), t.code && (i = /* @__PURE__ */ u("code", {
|
|
626
|
-
style:
|
|
626
|
+
style: xe,
|
|
627
627
|
children: i
|
|
628
628
|
})), t.strike && (i = /* @__PURE__ */ u("s", { children: i })), t.underline && (i = /* @__PURE__ */ u("u", { children: i })), t.italic && (i = /* @__PURE__ */ u("em", { children: i })), t.bold && (i = /* @__PURE__ */ u("strong", { children: i })), (t.color || t.background) && (i = /* @__PURE__ */ u("span", {
|
|
629
629
|
style: {
|
|
@@ -640,13 +640,13 @@ function Y(t, n, r) {
|
|
|
640
640
|
})), /* @__PURE__ */ u(e, { children: i }, n);
|
|
641
641
|
}) : n;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function Ce({ parts: e, text: t, marks: n, href: r, target: i, style: a }) {
|
|
644
644
|
return /* @__PURE__ */ u("span", {
|
|
645
645
|
style: h(a),
|
|
646
|
-
children: e?.length ?
|
|
646
|
+
children: e?.length ? q(e, t) : Se(t, n, r, i)
|
|
647
647
|
});
|
|
648
648
|
}
|
|
649
|
-
var
|
|
649
|
+
var we = {
|
|
650
650
|
h1: 40,
|
|
651
651
|
h2: 32,
|
|
652
652
|
h3: 26,
|
|
@@ -654,7 +654,7 @@ var Se = {
|
|
|
654
654
|
h5: 19,
|
|
655
655
|
h6: 16
|
|
656
656
|
};
|
|
657
|
-
function
|
|
657
|
+
function Te({ align: e = "center", width: t, wrap: n } = {}) {
|
|
658
658
|
let r = t ? `${t}%` : void 0;
|
|
659
659
|
if (e === "full") return { width: "100%" };
|
|
660
660
|
let i = e === "left" || e === "right";
|
|
@@ -688,8 +688,8 @@ function Ce({ align: e = "center", width: t, wrap: n } = {}) {
|
|
|
688
688
|
marginRight: "auto"
|
|
689
689
|
};
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
let r = n ?? ((e, n) =>
|
|
691
|
+
function Ee(e = [], t, n) {
|
|
692
|
+
let r = n ?? ((e, n) => q(e, n, t));
|
|
693
693
|
return e.map((t, n) => {
|
|
694
694
|
let i = {
|
|
695
695
|
marginTop: 0,
|
|
@@ -711,7 +711,7 @@ function we(e = [], t, n) {
|
|
|
711
711
|
marginLeft: 0,
|
|
712
712
|
marginRight: 0,
|
|
713
713
|
...i,
|
|
714
|
-
...
|
|
714
|
+
...Te(t)
|
|
715
715
|
},
|
|
716
716
|
children: [t.href ? /* @__PURE__ */ u("a", {
|
|
717
717
|
href: t.href,
|
|
@@ -730,16 +730,16 @@ function we(e = [], t, n) {
|
|
|
730
730
|
})]
|
|
731
731
|
}, n);
|
|
732
732
|
}
|
|
733
|
-
if (t.type === "video") return
|
|
733
|
+
if (t.type === "video") return Le(t.url) ? /* @__PURE__ */ u("div", {
|
|
734
734
|
style: {
|
|
735
735
|
...i,
|
|
736
|
-
...
|
|
736
|
+
...Te({
|
|
737
737
|
align: t.align,
|
|
738
738
|
wrap: t.wrap,
|
|
739
739
|
width: t.width ?? 100
|
|
740
740
|
})
|
|
741
741
|
},
|
|
742
|
-
children: /* @__PURE__ */ u(
|
|
742
|
+
children: /* @__PURE__ */ u(Re, {
|
|
743
743
|
url: t.url,
|
|
744
744
|
autoplay: t.autoplay,
|
|
745
745
|
muted: t.muted,
|
|
@@ -768,17 +768,17 @@ function we(e = [], t, n) {
|
|
|
768
768
|
}
|
|
769
769
|
if (t.type === "quote") return /* @__PURE__ */ u("blockquote", {
|
|
770
770
|
style: {
|
|
771
|
-
...
|
|
771
|
+
...Oe,
|
|
772
772
|
...i
|
|
773
773
|
},
|
|
774
774
|
children: r(t.parts, t.text)
|
|
775
775
|
}, n);
|
|
776
|
-
if (
|
|
776
|
+
if (we[t.type]) {
|
|
777
777
|
let e = t.type;
|
|
778
778
|
return /* @__PURE__ */ u(e, {
|
|
779
779
|
style: {
|
|
780
|
-
...
|
|
781
|
-
fontSize:
|
|
780
|
+
...G,
|
|
781
|
+
fontSize: we[t.type],
|
|
782
782
|
...i
|
|
783
783
|
},
|
|
784
784
|
children: r(t.parts, t.text)
|
|
@@ -786,39 +786,39 @@ function we(e = [], t, n) {
|
|
|
786
786
|
}
|
|
787
787
|
return /* @__PURE__ */ u("p", {
|
|
788
788
|
style: {
|
|
789
|
-
...
|
|
789
|
+
...fe,
|
|
790
790
|
...i
|
|
791
791
|
},
|
|
792
792
|
children: r(t.parts, t.text)
|
|
793
793
|
}, n);
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function De({ content: e, style: t, linked: n, nodeRef: r }) {
|
|
797
797
|
return /* @__PURE__ */ u("div", {
|
|
798
798
|
ref: r,
|
|
799
799
|
style: {
|
|
800
800
|
display: "flow-root",
|
|
801
801
|
...h(t)
|
|
802
802
|
},
|
|
803
|
-
children:
|
|
803
|
+
children: Ee(e, n)
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
|
-
var
|
|
806
|
+
var Oe = {
|
|
807
807
|
margin: 0,
|
|
808
808
|
padding: "8px 0 8px 20px",
|
|
809
809
|
borderLeft: "4px solid var(--page-accent, rgba(148, 163, 184, 0.6))"
|
|
810
810
|
};
|
|
811
|
-
function
|
|
811
|
+
function ke({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
|
|
812
812
|
return /* @__PURE__ */ u("blockquote", {
|
|
813
813
|
ref: i,
|
|
814
814
|
style: {
|
|
815
|
-
...
|
|
815
|
+
...Oe,
|
|
816
816
|
...h(n)
|
|
817
817
|
},
|
|
818
|
-
children:
|
|
818
|
+
children: q(t, e, r)
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function Ae({ ordered: e, items: t = [], style: n, nodeRef: r }) {
|
|
822
822
|
return /* @__PURE__ */ u(e ? "ol" : "ul", {
|
|
823
823
|
ref: r,
|
|
824
824
|
style: {
|
|
@@ -828,53 +828,53 @@ function Oe({ ordered: e, items: t = [], style: n, nodeRef: r }) {
|
|
|
828
828
|
},
|
|
829
829
|
children: t.map((e, t) => /* @__PURE__ */ u("li", {
|
|
830
830
|
style: { marginBottom: 4 },
|
|
831
|
-
children:
|
|
831
|
+
children: q(e.parts, e.text)
|
|
832
832
|
}, t))
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function je({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
|
|
836
836
|
return /* @__PURE__ */ u("p", {
|
|
837
837
|
ref: i,
|
|
838
838
|
style: {
|
|
839
|
-
...
|
|
839
|
+
...fe,
|
|
840
840
|
...h(n)
|
|
841
841
|
},
|
|
842
|
-
children:
|
|
842
|
+
children: q(t, e, r)
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
var
|
|
845
|
+
var Me = {
|
|
846
846
|
color: "var(--page-accent, inherit)",
|
|
847
847
|
textDecoration: "underline",
|
|
848
848
|
textUnderlineOffset: 3,
|
|
849
849
|
cursor: "pointer"
|
|
850
850
|
};
|
|
851
|
-
function
|
|
851
|
+
function Ne({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRef: o }) {
|
|
852
852
|
return /* @__PURE__ */ u("a", {
|
|
853
853
|
ref: o,
|
|
854
854
|
href: n || "#",
|
|
855
855
|
target: r || void 0,
|
|
856
856
|
rel: r === "_blank" ? "noopener noreferrer" : void 0,
|
|
857
857
|
style: {
|
|
858
|
-
...
|
|
858
|
+
...Me,
|
|
859
859
|
...h(i)
|
|
860
860
|
},
|
|
861
|
-
children:
|
|
861
|
+
children: q(t, e, a)
|
|
862
862
|
});
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Pe({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRef: o }) {
|
|
865
865
|
return /* @__PURE__ */ u("a", {
|
|
866
866
|
ref: o,
|
|
867
867
|
href: n || "#",
|
|
868
868
|
target: r || void 0,
|
|
869
869
|
rel: r === "_blank" ? "noopener noreferrer" : void 0,
|
|
870
870
|
style: {
|
|
871
|
-
...
|
|
871
|
+
...K,
|
|
872
872
|
...h(i)
|
|
873
873
|
},
|
|
874
|
-
children:
|
|
874
|
+
children: q(t, e, a)
|
|
875
875
|
});
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function Fe({ src: e, alt: t, style: n, nodeRef: r }) {
|
|
878
878
|
return e ? /* @__PURE__ */ u("img", {
|
|
879
879
|
ref: r,
|
|
880
880
|
src: e,
|
|
@@ -886,7 +886,7 @@ function Ne({ src: e, alt: t, style: n, nodeRef: r }) {
|
|
|
886
886
|
}
|
|
887
887
|
}) : null;
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function Ie({ src: e, poster: t, controls: n = !0, autoplay: r = !1, loop: i = !1, muted: a = !1, style: o, nodeRef: s }) {
|
|
890
890
|
return e ? /* @__PURE__ */ u("video", {
|
|
891
891
|
ref: s,
|
|
892
892
|
src: e,
|
|
@@ -904,9 +904,9 @@ function Pe({ src: e, poster: t, controls: n = !0, autoplay: r = !1, loop: i = !
|
|
|
904
904
|
}
|
|
905
905
|
}) : null;
|
|
906
906
|
}
|
|
907
|
-
var
|
|
908
|
-
function
|
|
909
|
-
let c =
|
|
907
|
+
var Le = (e = "") => (e.match(/(?:youtu\.be\/|v=|embed\/|shorts\/|live\/)([\w-]{11})/) || e.match(/^([\w-]{11})$/))?.[1];
|
|
908
|
+
function Re({ url: e, autoplay: t = !1, muted: n = !1, loop: r = !1, controls: i = !0, start: a, style: o, nodeRef: s }) {
|
|
909
|
+
let c = Le(e);
|
|
910
910
|
if (!c) return null;
|
|
911
911
|
let l = new URLSearchParams({ rel: "0" });
|
|
912
912
|
return t && l.set("autoplay", "1"), (n || t) && l.set("mute", "1"), i || l.set("controls", "0"), r && (l.set("loop", "1"), l.set("playlist", c)), Number(a) > 0 && l.set("start", String(Math.floor(Number(a)))), /* @__PURE__ */ u("div", {
|
|
@@ -932,7 +932,7 @@ function Ie({ url: e, autoplay: t = !1, muted: n = !1, loop: r = !1, controls: i
|
|
|
932
932
|
})
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function ze({ src: e, title: t, allowFullscreen: n = !0, style: r, nodeRef: i }) {
|
|
936
936
|
return e ? /* @__PURE__ */ u("iframe", {
|
|
937
937
|
ref: i,
|
|
938
938
|
src: e,
|
|
@@ -948,7 +948,7 @@ function Le({ src: e, title: t, allowFullscreen: n = !0, style: r, nodeRef: i })
|
|
|
948
948
|
}
|
|
949
949
|
}) : null;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Be({ code: e, runScripts: t = !0, style: n, nodeRef: r }) {
|
|
952
952
|
let [a, o] = c(null);
|
|
953
953
|
return i(() => {
|
|
954
954
|
a && (a.innerHTML = e || "", t && a.querySelectorAll("script").forEach((e) => {
|
|
@@ -967,7 +967,7 @@ function Re({ code: e, runScripts: t = !0, style: n, nodeRef: r }) {
|
|
|
967
967
|
style: h(n)
|
|
968
968
|
});
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function Ve({ height: e, nodeRef: t }) {
|
|
971
971
|
return /* @__PURE__ */ u("div", {
|
|
972
972
|
ref: t,
|
|
973
973
|
style: {
|
|
@@ -977,7 +977,7 @@ function ze({ height: e, nodeRef: t }) {
|
|
|
977
977
|
}
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function He({ style: e, nodeRef: t }) {
|
|
981
981
|
return /* @__PURE__ */ u("div", {
|
|
982
982
|
ref: t,
|
|
983
983
|
style: {
|
|
@@ -988,7 +988,7 @@ function Be({ style: e, nodeRef: t }) {
|
|
|
988
988
|
}
|
|
989
989
|
});
|
|
990
990
|
}
|
|
991
|
-
var
|
|
991
|
+
var Ue = {
|
|
992
992
|
position: "absolute",
|
|
993
993
|
top: "50%",
|
|
994
994
|
transform: "translateY(-50%)",
|
|
@@ -1005,7 +1005,7 @@ var Ve = {
|
|
|
1005
1005
|
alignItems: "center",
|
|
1006
1006
|
justifyContent: "center",
|
|
1007
1007
|
padding: 0
|
|
1008
|
-
},
|
|
1008
|
+
}, We = {
|
|
1009
1009
|
bottom: {
|
|
1010
1010
|
inset: "auto 0 0 0",
|
|
1011
1011
|
padding: "40px 24px 20px",
|
|
@@ -1024,8 +1024,8 @@ var Ve = {
|
|
|
1024
1024
|
padding: 24,
|
|
1025
1025
|
textShadow: "0 2px 12px rgba(0, 0, 0, 0.6)"
|
|
1026
1026
|
}
|
|
1027
|
-
},
|
|
1028
|
-
function
|
|
1027
|
+
}, Ge = 48;
|
|
1028
|
+
function Ke({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, height: a = 320, swipe: o = !0, style: s, nodeRef: f }) {
|
|
1029
1029
|
let [p, m] = c(0), [g, _] = c(!1), [v, y] = c(null), b = e ? Math.min(p, e - 1) : 0;
|
|
1030
1030
|
if (i(() => {
|
|
1031
1031
|
if (!n || g || v || e < 2) return;
|
|
@@ -1041,7 +1041,7 @@ function We({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1041
1041
|
let x = (t) => m((t + e) % e), S = () => {
|
|
1042
1042
|
if (!v) return;
|
|
1043
1043
|
let { dx: e } = v;
|
|
1044
|
-
y(null), e < -48 ? x(b + 1) : e >
|
|
1044
|
+
y(null), e < -48 ? x(b + 1) : e > Ge && x(b - 1);
|
|
1045
1045
|
};
|
|
1046
1046
|
return /* @__PURE__ */ d("div", {
|
|
1047
1047
|
ref: f,
|
|
@@ -1089,7 +1089,7 @@ function We({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1089
1089
|
type: "button",
|
|
1090
1090
|
"aria-label": "Previous slide",
|
|
1091
1091
|
style: {
|
|
1092
|
-
...
|
|
1092
|
+
...Ue,
|
|
1093
1093
|
left: 12
|
|
1094
1094
|
},
|
|
1095
1095
|
onClick: () => x(b - 1),
|
|
@@ -1099,7 +1099,7 @@ function We({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1099
1099
|
type: "button",
|
|
1100
1100
|
"aria-label": "Next slide",
|
|
1101
1101
|
style: {
|
|
1102
|
-
...
|
|
1102
|
+
...Ue,
|
|
1103
1103
|
right: 12
|
|
1104
1104
|
},
|
|
1105
1105
|
onClick: () => x(b + 1),
|
|
@@ -1133,7 +1133,7 @@ function We({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1133
1133
|
] })]
|
|
1134
1134
|
});
|
|
1135
1135
|
}
|
|
1136
|
-
var
|
|
1136
|
+
var qe = (e, t) => ({
|
|
1137
1137
|
position: "absolute",
|
|
1138
1138
|
inset: 0,
|
|
1139
1139
|
backgroundImage: e ? `url(${e})` : "none",
|
|
@@ -1141,18 +1141,18 @@ var Ge = (e, t) => ({
|
|
|
1141
1141
|
backgroundSize: "cover",
|
|
1142
1142
|
backgroundPosition: "center"
|
|
1143
1143
|
});
|
|
1144
|
-
function
|
|
1145
|
-
return e.length ? /* @__PURE__ */ u(
|
|
1144
|
+
function Je({ slides: e = [], captionPosition: t = "bottom", captionAlign: n = "left", ...r }) {
|
|
1145
|
+
return e.length ? /* @__PURE__ */ u(Ke, {
|
|
1146
1146
|
...r,
|
|
1147
1147
|
count: e.length,
|
|
1148
1148
|
renderSlide: (r) => {
|
|
1149
1149
|
let i = e[r];
|
|
1150
|
-
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style:
|
|
1150
|
+
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style: qe(i.image) }), (i.title || i.text) && /* @__PURE__ */ d("div", {
|
|
1151
1151
|
style: {
|
|
1152
1152
|
position: "absolute",
|
|
1153
1153
|
color: "#fff",
|
|
1154
1154
|
textAlign: n,
|
|
1155
|
-
...
|
|
1155
|
+
...We[t] ?? We.bottom
|
|
1156
1156
|
},
|
|
1157
1157
|
children: [i.title && /* @__PURE__ */ u("div", {
|
|
1158
1158
|
style: {
|
|
@@ -1172,13 +1172,13 @@ function Ke({ slides: e = [], captionPosition: t = "bottom", captionAlign: n = "
|
|
|
1172
1172
|
}
|
|
1173
1173
|
}) : null;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return e.length ? /* @__PURE__ */ u(
|
|
1175
|
+
function Ye({ slides: e = [], linked: t, ...n }) {
|
|
1176
|
+
return e.length ? /* @__PURE__ */ u(Ke, {
|
|
1177
1177
|
...n,
|
|
1178
1178
|
count: e.length,
|
|
1179
1179
|
renderSlide: (n) => {
|
|
1180
1180
|
let r = e[n];
|
|
1181
|
-
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style:
|
|
1181
|
+
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style: qe(r.image, r.color) }), /* @__PURE__ */ u("div", {
|
|
1182
1182
|
style: {
|
|
1183
1183
|
position: "absolute",
|
|
1184
1184
|
inset: 0,
|
|
@@ -1190,29 +1190,29 @@ function qe({ slides: e = [], linked: t, ...n }) {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
}) : null;
|
|
1192
1192
|
}
|
|
1193
|
-
var
|
|
1193
|
+
var J = {
|
|
1194
1194
|
color: "inherit",
|
|
1195
1195
|
textDecoration: "none",
|
|
1196
1196
|
fontSize: 14,
|
|
1197
1197
|
opacity: .85
|
|
1198
|
-
},
|
|
1198
|
+
}, Xe = {
|
|
1199
1199
|
background: "var(--page-bg, #ffffff)",
|
|
1200
1200
|
color: "var(--page-text, #111827)",
|
|
1201
1201
|
border: "1px solid rgba(148, 163, 184, 0.25)",
|
|
1202
1202
|
boxShadow: "0 16px 40px rgba(15, 23, 42, 0.16)",
|
|
1203
1203
|
zIndex: 60
|
|
1204
1204
|
};
|
|
1205
|
-
function
|
|
1206
|
-
let [
|
|
1205
|
+
function Ze({ brand: t, logo: n, brandHref: r, brandTarget: a, links: o = [], style: s, nodeRef: f, menu: p = "auto", breakpoint: m = 768 }) {
|
|
1206
|
+
let [g, _] = c(null), [v, y] = c(!1), [b, x] = c(!1), [S, C] = c(null);
|
|
1207
1207
|
i(() => {
|
|
1208
|
-
if (!
|
|
1209
|
-
let e = new ResizeObserver(() => g
|
|
1210
|
-
return e.observe(
|
|
1211
|
-
}, [
|
|
1212
|
-
let
|
|
1208
|
+
if (!g) return;
|
|
1209
|
+
let e = new ResizeObserver(() => y(g.offsetWidth < m));
|
|
1210
|
+
return e.observe(g), () => e.disconnect();
|
|
1211
|
+
}, [g, m]);
|
|
1212
|
+
let w = p === "hamburger" || p === "auto" && v, T = (e, t) => /* @__PURE__ */ d("a", {
|
|
1213
1213
|
href: e.href || "#",
|
|
1214
1214
|
style: {
|
|
1215
|
-
...
|
|
1215
|
+
...J,
|
|
1216
1216
|
display: "block",
|
|
1217
1217
|
...t
|
|
1218
1218
|
},
|
|
@@ -1228,7 +1228,7 @@ function Xe({ brand: t, logo: n, links: r = [], style: a, nodeRef: o, menu: s =
|
|
|
1228
1228
|
}, e.key);
|
|
1229
1229
|
return /* @__PURE__ */ d("nav", {
|
|
1230
1230
|
ref: (e) => {
|
|
1231
|
-
|
|
1231
|
+
_(e), f && f(e);
|
|
1232
1232
|
},
|
|
1233
1233
|
style: {
|
|
1234
1234
|
display: "flex",
|
|
@@ -1238,30 +1238,47 @@ function Xe({ brand: t, logo: n, links: r = [], style: a, nodeRef: o, menu: s =
|
|
|
1238
1238
|
padding: "14px 24px",
|
|
1239
1239
|
width: "100%",
|
|
1240
1240
|
position: "relative",
|
|
1241
|
-
...h(
|
|
1241
|
+
...h(s)
|
|
1242
1242
|
},
|
|
1243
1243
|
children: [
|
|
1244
|
-
n
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1244
|
+
(n || t) && (() => {
|
|
1245
|
+
let e = /* @__PURE__ */ d(l, { children: [n && /* @__PURE__ */ u("img", {
|
|
1246
|
+
src: n,
|
|
1247
|
+
alt: t || "Logo",
|
|
1248
|
+
style: {
|
|
1249
|
+
height: 28,
|
|
1250
|
+
display: "block"
|
|
1251
|
+
}
|
|
1252
|
+
}), t && /* @__PURE__ */ u("span", {
|
|
1253
|
+
style: {
|
|
1254
|
+
fontWeight: 700,
|
|
1255
|
+
fontSize: 18,
|
|
1256
|
+
fontFamily: "var(--page-heading-font, inherit)"
|
|
1257
|
+
},
|
|
1258
|
+
children: t
|
|
1259
|
+
})] }), i = {
|
|
1260
|
+
display: "flex",
|
|
1261
|
+
alignItems: "center",
|
|
1262
|
+
gap: 10,
|
|
1263
|
+
color: "inherit",
|
|
1264
|
+
textDecoration: "none"
|
|
1265
|
+
};
|
|
1266
|
+
return r ? /* @__PURE__ */ u("a", {
|
|
1267
|
+
href: r,
|
|
1268
|
+
target: a || void 0,
|
|
1269
|
+
rel: a === "_blank" ? "noopener noreferrer" : void 0,
|
|
1270
|
+
style: i,
|
|
1271
|
+
children: e
|
|
1272
|
+
}) : /* @__PURE__ */ u("div", {
|
|
1273
|
+
style: i,
|
|
1274
|
+
children: e
|
|
1275
|
+
});
|
|
1276
|
+
})(),
|
|
1260
1277
|
/* @__PURE__ */ u("div", { style: { flexGrow: 1 } }),
|
|
1261
|
-
|
|
1278
|
+
w ? /* @__PURE__ */ u("button", {
|
|
1262
1279
|
type: "button",
|
|
1263
|
-
"aria-label":
|
|
1264
|
-
onClick: () =>
|
|
1280
|
+
"aria-label": b ? "Close menu" : "Open menu",
|
|
1281
|
+
onClick: () => x(!b),
|
|
1265
1282
|
style: {
|
|
1266
1283
|
background: "transparent",
|
|
1267
1284
|
border: 0,
|
|
@@ -1271,7 +1288,7 @@ function Xe({ brand: t, logo: n, links: r = [], style: a, nodeRef: o, menu: s =
|
|
|
1271
1288
|
lineHeight: 1,
|
|
1272
1289
|
padding: 4
|
|
1273
1290
|
},
|
|
1274
|
-
children:
|
|
1291
|
+
children: b ? "✕" : "☰"
|
|
1275
1292
|
}) : /* @__PURE__ */ u("div", {
|
|
1276
1293
|
style: {
|
|
1277
1294
|
display: "flex",
|
|
@@ -1279,11 +1296,11 @@ function Xe({ brand: t, logo: n, links: r = [], style: a, nodeRef: o, menu: s =
|
|
|
1279
1296
|
alignItems: "center",
|
|
1280
1297
|
flexWrap: "wrap"
|
|
1281
1298
|
},
|
|
1282
|
-
children:
|
|
1299
|
+
children: o.map((e) => {
|
|
1283
1300
|
let t = e.children ?? [];
|
|
1284
1301
|
if (!t.length) return /* @__PURE__ */ u("a", {
|
|
1285
1302
|
href: e.href || "#",
|
|
1286
|
-
style:
|
|
1303
|
+
style: J,
|
|
1287
1304
|
children: e.label
|
|
1288
1305
|
}, e.key);
|
|
1289
1306
|
let n = e.type === "mega";
|
|
@@ -1292,12 +1309,12 @@ function Xe({ brand: t, logo: n, links: r = [], style: a, nodeRef: o, menu: s =
|
|
|
1292
1309
|
position: n ? "static" : "relative",
|
|
1293
1310
|
display: "inline-flex"
|
|
1294
1311
|
},
|
|
1295
|
-
onMouseEnter: () =>
|
|
1296
|
-
onMouseLeave: () =>
|
|
1312
|
+
onMouseEnter: () => C(e.key),
|
|
1313
|
+
onMouseLeave: () => C(null),
|
|
1297
1314
|
children: [/* @__PURE__ */ d("a", {
|
|
1298
1315
|
href: e.href || "#",
|
|
1299
1316
|
style: {
|
|
1300
|
-
...
|
|
1317
|
+
...J,
|
|
1301
1318
|
cursor: "pointer"
|
|
1302
1319
|
},
|
|
1303
1320
|
children: [
|
|
@@ -1311,9 +1328,9 @@ function Xe({ brand: t, logo: n, links: r = [], style: a, nodeRef: o, menu: s =
|
|
|
1311
1328
|
children: "▼"
|
|
1312
1329
|
})
|
|
1313
1330
|
]
|
|
1314
|
-
}),
|
|
1331
|
+
}), S === e.key && (n ? /* @__PURE__ */ u("div", {
|
|
1315
1332
|
style: {
|
|
1316
|
-
...
|
|
1333
|
+
...Xe,
|
|
1317
1334
|
position: "absolute",
|
|
1318
1335
|
left: 0,
|
|
1319
1336
|
right: 0,
|
|
@@ -1323,13 +1340,13 @@ function Xe({ brand: t, logo: n, links: r = [], style: a, nodeRef: o, menu: s =
|
|
|
1323
1340
|
gridTemplateColumns: "repeat(auto-fit, minmax(170px, 1fr))",
|
|
1324
1341
|
gap: 16
|
|
1325
1342
|
},
|
|
1326
|
-
children: t.map((e) =>
|
|
1343
|
+
children: t.map((e) => T(e, {
|
|
1327
1344
|
padding: "6px 8px",
|
|
1328
1345
|
borderRadius: 6
|
|
1329
1346
|
}))
|
|
1330
1347
|
}) : /* @__PURE__ */ u("div", {
|
|
1331
1348
|
style: {
|
|
1332
|
-
...
|
|
1349
|
+
...Xe,
|
|
1333
1350
|
position: "absolute",
|
|
1334
1351
|
top: "100%",
|
|
1335
1352
|
left: 0,
|
|
@@ -1339,7 +1356,7 @@ function Xe({ brand: t, logo: n, links: r = [], style: a, nodeRef: o, menu: s =
|
|
|
1339
1356
|
display: "flex",
|
|
1340
1357
|
flexDirection: "column"
|
|
1341
1358
|
},
|
|
1342
|
-
children: t.map((e) =>
|
|
1359
|
+
children: t.map((e) => T(e, {
|
|
1343
1360
|
padding: "8px 12px",
|
|
1344
1361
|
borderRadius: 6
|
|
1345
1362
|
}))
|
|
@@ -1347,7 +1364,7 @@ function Xe({ brand: t, logo: n, links: r = [], style: a, nodeRef: o, menu: s =
|
|
|
1347
1364
|
}, e.key);
|
|
1348
1365
|
})
|
|
1349
1366
|
}),
|
|
1350
|
-
|
|
1367
|
+
w && b && /* @__PURE__ */ u("div", {
|
|
1351
1368
|
style: {
|
|
1352
1369
|
flexBasis: "100%",
|
|
1353
1370
|
width: "100%",
|
|
@@ -1355,21 +1372,21 @@ function Xe({ brand: t, logo: n, links: r = [], style: a, nodeRef: o, menu: s =
|
|
|
1355
1372
|
flexDirection: "column",
|
|
1356
1373
|
paddingTop: 10
|
|
1357
1374
|
},
|
|
1358
|
-
children:
|
|
1375
|
+
children: o.map((t) => /* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u("a", {
|
|
1359
1376
|
href: t.href || "#",
|
|
1360
1377
|
style: {
|
|
1361
|
-
...
|
|
1378
|
+
...J,
|
|
1362
1379
|
padding: "10px 4px",
|
|
1363
1380
|
fontWeight: (t.children ?? []).length ? 600 : 400,
|
|
1364
1381
|
opacity: 1
|
|
1365
1382
|
},
|
|
1366
1383
|
children: t.label
|
|
1367
|
-
}), (t.children ?? []).map((e) =>
|
|
1384
|
+
}), (t.children ?? []).map((e) => T(e, { padding: "8px 4px 8px 22px" }))] }, t.key))
|
|
1368
1385
|
})
|
|
1369
1386
|
]
|
|
1370
1387
|
});
|
|
1371
1388
|
}
|
|
1372
|
-
function
|
|
1389
|
+
function Qe({ tabs: e = [], linked: t, style: n, nodeRef: r }) {
|
|
1373
1390
|
let [i, a] = c(0), o = e.length ? Math.min(i, e.length - 1) : 0;
|
|
1374
1391
|
return e.length ? /* @__PURE__ */ d("div", {
|
|
1375
1392
|
ref: r,
|
|
@@ -1409,7 +1426,7 @@ function Ze({ tabs: e = [], linked: t, style: n, nodeRef: r }) {
|
|
|
1409
1426
|
}, e.key))]
|
|
1410
1427
|
}) : null;
|
|
1411
1428
|
}
|
|
1412
|
-
function
|
|
1429
|
+
function $e({ items: e = [], linked: t, multiple: n = !1, style: r, nodeRef: i }) {
|
|
1413
1430
|
let [a, o] = c(() => new Set(e.length ? [e[0].key] : []));
|
|
1414
1431
|
if (!e.length) return null;
|
|
1415
1432
|
let s = (e) => o((t) => {
|
|
@@ -1466,15 +1483,15 @@ function Qe({ items: e = [], linked: t, multiple: n = !1, style: r, nodeRef: i }
|
|
|
1466
1483
|
})
|
|
1467
1484
|
});
|
|
1468
1485
|
}
|
|
1469
|
-
var
|
|
1486
|
+
var et = {
|
|
1470
1487
|
display: "flex",
|
|
1471
1488
|
flexDirection: "column",
|
|
1472
1489
|
gap: "12px"
|
|
1473
|
-
},
|
|
1490
|
+
}, Y = {
|
|
1474
1491
|
fontSize: "14px",
|
|
1475
1492
|
fontWeight: 500,
|
|
1476
1493
|
color: "var(--page-text, #111827)"
|
|
1477
|
-
},
|
|
1494
|
+
}, X = {
|
|
1478
1495
|
padding: "10px 12px",
|
|
1479
1496
|
border: "1px solid #d1d5db",
|
|
1480
1497
|
borderRadius: "6px",
|
|
@@ -1484,18 +1501,18 @@ var $e = {
|
|
|
1484
1501
|
boxSizing: "border-box",
|
|
1485
1502
|
backgroundColor: "#ffffff",
|
|
1486
1503
|
color: "#111827"
|
|
1487
|
-
},
|
|
1504
|
+
}, tt = {
|
|
1488
1505
|
display: "flex",
|
|
1489
1506
|
alignItems: "center",
|
|
1490
1507
|
gap: "8px",
|
|
1491
1508
|
fontSize: "14px",
|
|
1492
1509
|
color: "var(--page-text, #111827)"
|
|
1493
|
-
},
|
|
1510
|
+
}, Z = (e) => e ? {
|
|
1494
1511
|
readOnly: !0,
|
|
1495
1512
|
tabIndex: -1,
|
|
1496
1513
|
onMouseDown: (e) => e.preventDefault()
|
|
1497
1514
|
} : {};
|
|
1498
|
-
function
|
|
1515
|
+
function nt(e, t) {
|
|
1499
1516
|
if (!e) return !0;
|
|
1500
1517
|
let n = t[e.field], r = n == null || n === "" ? "" : String(n), i = e.value ?? "";
|
|
1501
1518
|
switch (e.op) {
|
|
@@ -1509,11 +1526,11 @@ function tt(e, t) {
|
|
|
1509
1526
|
default: return !1;
|
|
1510
1527
|
}
|
|
1511
1528
|
}
|
|
1512
|
-
var
|
|
1529
|
+
var rt = {
|
|
1513
1530
|
display: "flex",
|
|
1514
1531
|
flexDirection: "column",
|
|
1515
1532
|
gap: 6
|
|
1516
|
-
},
|
|
1533
|
+
}, it = {
|
|
1517
1534
|
font: "inherit",
|
|
1518
1535
|
fontSize: 15,
|
|
1519
1536
|
padding: "10px 12px",
|
|
@@ -1524,16 +1541,16 @@ var nt = {
|
|
|
1524
1541
|
width: "100%",
|
|
1525
1542
|
boxSizing: "border-box"
|
|
1526
1543
|
};
|
|
1527
|
-
function
|
|
1544
|
+
function at(e, t) {
|
|
1528
1545
|
let n = Array.isArray(e?.options) ? e.options : [];
|
|
1529
1546
|
if (!e?.parentField) return n;
|
|
1530
1547
|
let r = t?.[e.parentField];
|
|
1531
1548
|
return r ? n.filter((e) => typeof e == "string" ? !1 : !e.parent || e.parent === r) : [];
|
|
1532
1549
|
}
|
|
1533
|
-
function
|
|
1550
|
+
function ot({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
1534
1551
|
let a = /* @__PURE__ */ d("span", {
|
|
1535
1552
|
style: {
|
|
1536
|
-
...
|
|
1553
|
+
...Y,
|
|
1537
1554
|
fontSize: 14
|
|
1538
1555
|
},
|
|
1539
1556
|
children: [e.label, e.required ? " *" : ""]
|
|
@@ -1542,7 +1559,7 @@ function at({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
1542
1559
|
required: e.required || void 0,
|
|
1543
1560
|
placeholder: e.placeholder || void 0,
|
|
1544
1561
|
disabled: r || void 0,
|
|
1545
|
-
style:
|
|
1562
|
+
style: it,
|
|
1546
1563
|
value: t ?? "",
|
|
1547
1564
|
onChange: (t) => n(e.name, t.target.value)
|
|
1548
1565
|
};
|
|
@@ -1571,7 +1588,7 @@ function at({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
1571
1588
|
borderRadius: 8,
|
|
1572
1589
|
display: "block"
|
|
1573
1590
|
}
|
|
1574
|
-
}) : null : e.type === "video" ? e.src ? /youtube\.com|youtu\.be|vimeo\.com/i.test(e.src) ? /* @__PURE__ */ u(
|
|
1591
|
+
}) : null : e.type === "video" ? e.src ? /youtube\.com|youtu\.be|vimeo\.com/i.test(e.src) ? /* @__PURE__ */ u(Re, {
|
|
1575
1592
|
url: e.src,
|
|
1576
1593
|
style: { width: "100%" }
|
|
1577
1594
|
}) : /* @__PURE__ */ u("video", {
|
|
@@ -1583,14 +1600,14 @@ function at({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
1583
1600
|
display: "block"
|
|
1584
1601
|
}
|
|
1585
1602
|
}) : null : /* @__PURE__ */ d("label", {
|
|
1586
|
-
style:
|
|
1603
|
+
style: rt,
|
|
1587
1604
|
children: [
|
|
1588
1605
|
a,
|
|
1589
1606
|
e.type === "textarea" || e.multiline ? /* @__PURE__ */ u("textarea", {
|
|
1590
1607
|
...o,
|
|
1591
1608
|
rows: 4,
|
|
1592
1609
|
style: {
|
|
1593
|
-
...
|
|
1610
|
+
...it,
|
|
1594
1611
|
resize: "vertical"
|
|
1595
1612
|
}
|
|
1596
1613
|
}) : e.type === "select" ? /* @__PURE__ */ d("select", {
|
|
@@ -1599,7 +1616,7 @@ function at({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
1599
1616
|
children: [/* @__PURE__ */ u("option", {
|
|
1600
1617
|
value: "",
|
|
1601
1618
|
children: e.placeholder || "—"
|
|
1602
|
-
}),
|
|
1619
|
+
}), at(e, i).map((e, t) => /* @__PURE__ */ u("option", {
|
|
1603
1620
|
value: typeof e == "string" ? e : e.value,
|
|
1604
1621
|
children: typeof e == "string" ? e : e.label ?? e.value
|
|
1605
1622
|
}, t))]
|
|
@@ -1646,8 +1663,8 @@ function at({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
1646
1663
|
]
|
|
1647
1664
|
});
|
|
1648
1665
|
}
|
|
1649
|
-
function
|
|
1650
|
-
let { tenant: b, apiUrl: x } = r(
|
|
1666
|
+
function st({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s, auto: f, submitLabel: p, nodeRef: m, inert: g, children: _, linked: v, show: y }) {
|
|
1667
|
+
let { tenant: b, apiUrl: x } = r(V), [S, C] = c("form"), [w, T] = c(null), [E, D] = c({}), [O, k] = c(0), A = g ? y || "form" : S;
|
|
1651
1668
|
i(() => {
|
|
1652
1669
|
if (!f || !s) return;
|
|
1653
1670
|
let e = !0;
|
|
@@ -1668,9 +1685,9 @@ function ot({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
1668
1685
|
section: e,
|
|
1669
1686
|
fields: []
|
|
1670
1687
|
}) : j[j.length - 1].fields.push(e);
|
|
1671
|
-
let M = j.filter((e) => e.section || e.fields.length), N = M.filter((e) => !e.section ||
|
|
1688
|
+
let M = j.filter((e) => e.section || e.fields.length), N = M.filter((e) => !e.section || nt(e.section.condition, E)).map((e) => ({
|
|
1672
1689
|
...e,
|
|
1673
|
-
fields: e.fields.filter((e) =>
|
|
1690
|
+
fields: e.fields.filter((e) => nt(e.condition, E))
|
|
1674
1691
|
})), P = M.length > 1, F = Math.min(O, Math.max(0, N.length - 1)), I = P ? N[F]?.fields ?? [] : N.flatMap((e) => e.fields), L = I.filter((e) => {
|
|
1675
1692
|
let t = E[e.name];
|
|
1676
1693
|
return e.required && (t == null || t === "" || t === !1);
|
|
@@ -1728,11 +1745,11 @@ function ot({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
1728
1745
|
}
|
|
1729
1746
|
},
|
|
1730
1747
|
style: {
|
|
1731
|
-
|
|
1748
|
+
...et,
|
|
1732
1749
|
display: A === "success" ? "none" : "flex"
|
|
1733
1750
|
},
|
|
1734
1751
|
children: f && s ? /* @__PURE__ */ d(l, { children: [
|
|
1735
|
-
P && /* @__PURE__ */ u(
|
|
1752
|
+
P && /* @__PURE__ */ u(St, {
|
|
1736
1753
|
steps: N.map((e) => ({ label: e.section?.label ?? "Start" })),
|
|
1737
1754
|
active: F + 1,
|
|
1738
1755
|
style: { marginBottom: 8 }
|
|
@@ -1745,7 +1762,7 @@ function ot({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
1745
1762
|
},
|
|
1746
1763
|
children: N[F].section.help
|
|
1747
1764
|
}),
|
|
1748
|
-
I.map((e) => /* @__PURE__ */ u(
|
|
1765
|
+
I.map((e) => /* @__PURE__ */ u(ot, {
|
|
1749
1766
|
field: e,
|
|
1750
1767
|
value: E[e.name],
|
|
1751
1768
|
values: E,
|
|
@@ -1764,7 +1781,7 @@ function ot({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
1764
1781
|
disabled: g || void 0,
|
|
1765
1782
|
onClick: () => k(F - 1),
|
|
1766
1783
|
style: {
|
|
1767
|
-
...
|
|
1784
|
+
...K,
|
|
1768
1785
|
background: "transparent",
|
|
1769
1786
|
color: "inherit",
|
|
1770
1787
|
border: 0,
|
|
@@ -1777,7 +1794,7 @@ function ot({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
1777
1794
|
disabled: g || L.length > 0,
|
|
1778
1795
|
onClick: () => k(F + 1),
|
|
1779
1796
|
style: {
|
|
1780
|
-
...
|
|
1797
|
+
...K,
|
|
1781
1798
|
border: 0,
|
|
1782
1799
|
padding: "10px 22px",
|
|
1783
1800
|
borderRadius: 8,
|
|
@@ -1791,7 +1808,7 @@ function ot({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
1791
1808
|
type: "submit",
|
|
1792
1809
|
disabled: g || void 0,
|
|
1793
1810
|
style: {
|
|
1794
|
-
...
|
|
1811
|
+
...K,
|
|
1795
1812
|
border: 0,
|
|
1796
1813
|
padding: "10px 22px",
|
|
1797
1814
|
borderRadius: 8,
|
|
@@ -1818,17 +1835,107 @@ function ot({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
1818
1835
|
]
|
|
1819
1836
|
});
|
|
1820
1837
|
}
|
|
1821
|
-
|
|
1838
|
+
var ct = null, lt = () => ct || (ct = new Promise((e) => {
|
|
1839
|
+
if (typeof window > "u") return;
|
|
1840
|
+
if (window.grecaptcha?.render) return e(window.grecaptcha);
|
|
1841
|
+
window.__webimRecaptchaReady = () => e(window.grecaptcha);
|
|
1842
|
+
let t = document.createElement("script");
|
|
1843
|
+
t.src = "https://www.google.com/recaptcha/api.js?onload=__webimRecaptchaReady&render=explicit", t.async = !0, document.head.appendChild(t);
|
|
1844
|
+
}), ct);
|
|
1845
|
+
function ut({ siteKey: e, theme: t, size: n, style: a, nodeRef: o, inert: c }) {
|
|
1846
|
+
let l = r(V), f = l?.settings && typeof l.settings == "object" ? l.settings["google.recaptchaKey"] : "", p = typeof e == "string" && e.trim() || (typeof f == "string" ? f.trim() : ""), m = s(null), g = s(!1);
|
|
1847
|
+
if (i(() => {
|
|
1848
|
+
if (c || !p || g.current || !m.current) return;
|
|
1849
|
+
let e = !0;
|
|
1850
|
+
return lt().then((r) => {
|
|
1851
|
+
if (!(!e || g.current || !m.current || !r?.render)) {
|
|
1852
|
+
g.current = !0;
|
|
1853
|
+
try {
|
|
1854
|
+
r.render(m.current, {
|
|
1855
|
+
sitekey: p,
|
|
1856
|
+
theme: t === "dark" ? "dark" : "light",
|
|
1857
|
+
size: n === "compact" ? "compact" : "normal"
|
|
1858
|
+
});
|
|
1859
|
+
} catch {}
|
|
1860
|
+
}
|
|
1861
|
+
}), () => {
|
|
1862
|
+
e = !1;
|
|
1863
|
+
};
|
|
1864
|
+
}, [
|
|
1865
|
+
c,
|
|
1866
|
+
p,
|
|
1867
|
+
t,
|
|
1868
|
+
n
|
|
1869
|
+
]), c) {
|
|
1870
|
+
let e = t === "dark";
|
|
1871
|
+
return /* @__PURE__ */ d("div", {
|
|
1872
|
+
ref: o,
|
|
1873
|
+
style: h(a),
|
|
1874
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1875
|
+
style: {
|
|
1876
|
+
width: n === "compact" ? 164 : 302,
|
|
1877
|
+
boxSizing: "border-box",
|
|
1878
|
+
padding: "12px 14px",
|
|
1879
|
+
display: "flex",
|
|
1880
|
+
alignItems: "center",
|
|
1881
|
+
gap: 12,
|
|
1882
|
+
borderRadius: 4,
|
|
1883
|
+
border: `1px solid ${e ? "#52565b" : "#d3d3d3"}`,
|
|
1884
|
+
background: e ? "#222528" : "#f9f9f9",
|
|
1885
|
+
color: e ? "#f1f1f1" : "#282828",
|
|
1886
|
+
fontSize: 14,
|
|
1887
|
+
fontFamily: "Roboto, Arial, sans-serif"
|
|
1888
|
+
},
|
|
1889
|
+
children: [
|
|
1890
|
+
/* @__PURE__ */ u("span", { style: {
|
|
1891
|
+
width: 24,
|
|
1892
|
+
height: 24,
|
|
1893
|
+
flexShrink: 0,
|
|
1894
|
+
borderRadius: 3,
|
|
1895
|
+
border: `2px solid ${e ? "#8a8f94" : "#c1c1c1"}`,
|
|
1896
|
+
background: e ? "#2f3337" : "#fff"
|
|
1897
|
+
} }),
|
|
1898
|
+
/* @__PURE__ */ u("span", {
|
|
1899
|
+
style: { flexGrow: 1 },
|
|
1900
|
+
children: "I'm not a robot"
|
|
1901
|
+
}),
|
|
1902
|
+
/* @__PURE__ */ u("span", {
|
|
1903
|
+
style: {
|
|
1904
|
+
fontSize: 9,
|
|
1905
|
+
opacity: .6,
|
|
1906
|
+
textAlign: "center",
|
|
1907
|
+
lineHeight: 1.3
|
|
1908
|
+
},
|
|
1909
|
+
children: "reCAPTCHA"
|
|
1910
|
+
})
|
|
1911
|
+
]
|
|
1912
|
+
}), !p && /* @__PURE__ */ u("div", {
|
|
1913
|
+
style: {
|
|
1914
|
+
marginTop: 6,
|
|
1915
|
+
fontSize: 11,
|
|
1916
|
+
color: "#b45309"
|
|
1917
|
+
},
|
|
1918
|
+
children: "Set the google.recaptchaKey tenant setting (or a site key in Settings) to activate it."
|
|
1919
|
+
})]
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
return p ? /* @__PURE__ */ u("div", {
|
|
1923
|
+
ref: o,
|
|
1924
|
+
style: h(a),
|
|
1925
|
+
children: /* @__PURE__ */ u("div", { ref: m })
|
|
1926
|
+
}) : null;
|
|
1927
|
+
}
|
|
1928
|
+
function dt({ text: e, parts: t, style: n, nodeRef: r, linked: i }) {
|
|
1822
1929
|
return /* @__PURE__ */ u("label", {
|
|
1823
1930
|
ref: r,
|
|
1824
1931
|
style: {
|
|
1825
|
-
...
|
|
1932
|
+
...Y,
|
|
1826
1933
|
...h(n)
|
|
1827
1934
|
},
|
|
1828
|
-
children:
|
|
1935
|
+
children: q(t, e, i)
|
|
1829
1936
|
});
|
|
1830
1937
|
}
|
|
1831
|
-
function
|
|
1938
|
+
function ft({ type: e = "text", name: t, placeholder: n, required: r, style: i, nodeRef: a, inert: o }) {
|
|
1832
1939
|
return /* @__PURE__ */ u("input", {
|
|
1833
1940
|
ref: a,
|
|
1834
1941
|
type: e,
|
|
@@ -1836,13 +1943,13 @@ function ct({ type: e = "text", name: t, placeholder: n, required: r, style: i,
|
|
|
1836
1943
|
placeholder: n,
|
|
1837
1944
|
required: !o && !!r,
|
|
1838
1945
|
style: {
|
|
1839
|
-
...
|
|
1946
|
+
...X,
|
|
1840
1947
|
...h(i)
|
|
1841
1948
|
},
|
|
1842
|
-
...
|
|
1949
|
+
...Z(o)
|
|
1843
1950
|
});
|
|
1844
1951
|
}
|
|
1845
|
-
function
|
|
1952
|
+
function pt({ name: e, placeholder: t, rows: n = 4, required: r, style: i, nodeRef: a, inert: o }) {
|
|
1846
1953
|
return /* @__PURE__ */ u("textarea", {
|
|
1847
1954
|
ref: a,
|
|
1848
1955
|
name: e || void 0,
|
|
@@ -1850,18 +1957,18 @@ function lt({ name: e, placeholder: t, rows: n = 4, required: r, style: i, nodeR
|
|
|
1850
1957
|
rows: n,
|
|
1851
1958
|
required: !o && !!r,
|
|
1852
1959
|
style: {
|
|
1853
|
-
...
|
|
1960
|
+
...X,
|
|
1854
1961
|
resize: "vertical",
|
|
1855
1962
|
...h(i)
|
|
1856
1963
|
},
|
|
1857
|
-
...
|
|
1964
|
+
...Z(o)
|
|
1858
1965
|
});
|
|
1859
1966
|
}
|
|
1860
|
-
function
|
|
1967
|
+
function mt({ kind: e = "checkbox", label: t, name: n, value: r, required: i, style: a, nodeRef: o, inert: s }) {
|
|
1861
1968
|
return /* @__PURE__ */ d("label", {
|
|
1862
1969
|
ref: o,
|
|
1863
1970
|
style: {
|
|
1864
|
-
...
|
|
1971
|
+
...tt,
|
|
1865
1972
|
...h(a)
|
|
1866
1973
|
},
|
|
1867
1974
|
children: [/* @__PURE__ */ u("input", {
|
|
@@ -1878,7 +1985,7 @@ function ut({ kind: e = "checkbox", label: t, name: n, value: r, required: i, st
|
|
|
1878
1985
|
}), t]
|
|
1879
1986
|
});
|
|
1880
1987
|
}
|
|
1881
|
-
function
|
|
1988
|
+
function ht({ name: e, placeholder: t, options: n = [], required: r, style: i, nodeRef: a, inert: o }) {
|
|
1882
1989
|
return /* @__PURE__ */ d("select", {
|
|
1883
1990
|
ref: a,
|
|
1884
1991
|
name: e || void 0,
|
|
@@ -1887,7 +1994,7 @@ function dt({ name: e, placeholder: t, options: n = [], required: r, style: i, n
|
|
|
1887
1994
|
onMouseDown: o ? (e) => e.preventDefault() : void 0,
|
|
1888
1995
|
tabIndex: o ? -1 : void 0,
|
|
1889
1996
|
style: {
|
|
1890
|
-
...
|
|
1997
|
+
...X,
|
|
1891
1998
|
appearance: "auto",
|
|
1892
1999
|
...h(i)
|
|
1893
2000
|
},
|
|
@@ -1901,12 +2008,12 @@ function dt({ name: e, placeholder: t, options: n = [], required: r, style: i, n
|
|
|
1901
2008
|
}, t))]
|
|
1902
2009
|
});
|
|
1903
2010
|
}
|
|
1904
|
-
function
|
|
2011
|
+
function gt({ name: e, accept: t, required: n, text: r = "Choose a file…", style: i, nodeRef: a, inert: o }) {
|
|
1905
2012
|
let [s, l] = c(null);
|
|
1906
2013
|
return /* @__PURE__ */ d("label", {
|
|
1907
2014
|
ref: a,
|
|
1908
2015
|
style: {
|
|
1909
|
-
...
|
|
2016
|
+
...X,
|
|
1910
2017
|
display: "flex",
|
|
1911
2018
|
alignItems: "center",
|
|
1912
2019
|
gap: "8px",
|
|
@@ -1933,12 +2040,12 @@ function ft({ name: e, accept: t, required: n, text: r = "Choose a file…", sty
|
|
|
1933
2040
|
]
|
|
1934
2041
|
});
|
|
1935
2042
|
}
|
|
1936
|
-
function
|
|
2043
|
+
function _t({ text: e = "Submit", style: t, nodeRef: n, inert: r }) {
|
|
1937
2044
|
return /* @__PURE__ */ u("button", {
|
|
1938
2045
|
ref: n,
|
|
1939
2046
|
type: r ? "button" : "submit",
|
|
1940
2047
|
style: {
|
|
1941
|
-
...
|
|
2048
|
+
...K,
|
|
1942
2049
|
border: 0,
|
|
1943
2050
|
cursor: "pointer",
|
|
1944
2051
|
alignSelf: "flex-start",
|
|
@@ -1953,7 +2060,7 @@ function pt({ text: e = "Submit", style: t, nodeRef: n, inert: r }) {
|
|
|
1953
2060
|
children: e
|
|
1954
2061
|
});
|
|
1955
2062
|
}
|
|
1956
|
-
function
|
|
2063
|
+
function vt({ cols: e = 2, rows: t = 1, style: n, nodeRef: r, linked: i }) {
|
|
1957
2064
|
let a = Math.max(1, (Number(e) || 1) * (Number(t) || 1));
|
|
1958
2065
|
return /* @__PURE__ */ u("div", {
|
|
1959
2066
|
ref: r,
|
|
@@ -1970,8 +2077,8 @@ function mt({ cols: e = 2, rows: t = 1, style: n, nodeRef: r, linked: i }) {
|
|
|
1970
2077
|
}, t))
|
|
1971
2078
|
});
|
|
1972
2079
|
}
|
|
1973
|
-
function
|
|
1974
|
-
let { tenant: _, apiUrl: v, locale: y } = r(
|
|
2080
|
+
function yt({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, imageField: o, titleField: s = "name", textField: l, custom: f, templateId: p, style: m, nodeRef: g }) {
|
|
2081
|
+
let { tenant: _, apiUrl: v, locale: y } = r(V), b = r(ce), x = r(H)?.[e], [S, C] = c(null);
|
|
1975
2082
|
if (i(() => {
|
|
1976
2083
|
if (!e || x) return;
|
|
1977
2084
|
let t = !0, n = e.startsWith("api:") ? `${v}/data/${encodeURIComponent(e.slice(4))}` : `${v}/dynamic/${encodeURIComponent(e)}${y ? `?locale=${encodeURIComponent(y)}` : ""}`;
|
|
@@ -2006,7 +2113,7 @@ function ht({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
|
|
|
2006
2113
|
},
|
|
2007
2114
|
children: w.map((e) => /* @__PURE__ */ u("div", {
|
|
2008
2115
|
style: { minWidth: 0 },
|
|
2009
|
-
children: b.render(p, (t) =>
|
|
2116
|
+
children: b.render(p, (t) => de(t, e))
|
|
2010
2117
|
}, e.id ?? e?.data?.slug))
|
|
2011
2118
|
}) : /* @__PURE__ */ u("div", {
|
|
2012
2119
|
ref: g,
|
|
@@ -2016,7 +2123,7 @@ function ht({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
|
|
|
2016
2123
|
...h(m)
|
|
2017
2124
|
},
|
|
2018
2125
|
children: w.map((e) => {
|
|
2019
|
-
let t = o ?
|
|
2126
|
+
let t = o ? U(e?.data, o) : null, r = s ? W(U(e?.data, s)) : null, i = l ? U(e?.data, l) : null, a = Array.isArray(i) ? i : null, c = a || i == null ? null : W(i), f = n === "list";
|
|
2020
2127
|
return /* @__PURE__ */ d("div", {
|
|
2021
2128
|
style: {
|
|
2022
2129
|
display: "flex",
|
|
@@ -2063,7 +2170,7 @@ function ht({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
|
|
|
2063
2170
|
lineHeight: 1.55,
|
|
2064
2171
|
opacity: .85
|
|
2065
2172
|
},
|
|
2066
|
-
children:
|
|
2173
|
+
children: Ee(a)
|
|
2067
2174
|
})
|
|
2068
2175
|
]
|
|
2069
2176
|
})]
|
|
@@ -2071,7 +2178,7 @@ function ht({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
|
|
|
2071
2178
|
})
|
|
2072
2179
|
});
|
|
2073
2180
|
}
|
|
2074
|
-
function
|
|
2181
|
+
function bt({ items: e = [], separator: t = "/", style: n, nodeRef: r }) {
|
|
2075
2182
|
return e.length ? /* @__PURE__ */ u("nav", {
|
|
2076
2183
|
ref: r,
|
|
2077
2184
|
"aria-label": "Breadcrumb",
|
|
@@ -2121,7 +2228,7 @@ function gt({ items: e = [], separator: t = "/", style: n, nodeRef: r }) {
|
|
|
2121
2228
|
})
|
|
2122
2229
|
}) : null;
|
|
2123
2230
|
}
|
|
2124
|
-
function
|
|
2231
|
+
function xt({ pages: e = 5, current: t = 1, prevNext: n = !0, href: r = "#", style: i, nodeRef: a }) {
|
|
2125
2232
|
let o = Math.min(Math.max(Number(e) || 1, 1), 50), s = Math.min(Math.max(Number(t) || 1, 1), o), c = (e) => r && r !== "#" ? r.replace("{page}", String(e)) : "#", l = (e) => ({
|
|
2126
2233
|
display: "inline-flex",
|
|
2127
2234
|
alignItems: "center",
|
|
@@ -2174,7 +2281,7 @@ function _t({ pages: e = 5, current: t = 1, prevNext: n = !0, href: r = "#", sty
|
|
|
2174
2281
|
]
|
|
2175
2282
|
});
|
|
2176
2283
|
}
|
|
2177
|
-
function
|
|
2284
|
+
function St({ steps: t = [], active: n = 1, vertical: r = !1, style: i, nodeRef: a }) {
|
|
2178
2285
|
if (!t.length) return null;
|
|
2179
2286
|
let o = Math.min(Math.max(Number(n) || 1, 1), t.length), s = (e) => ({
|
|
2180
2287
|
width: 32,
|
|
@@ -2252,7 +2359,7 @@ function vt({ steps: t = [], active: n = 1, vertical: r = !1, style: i, nodeRef:
|
|
|
2252
2359
|
})
|
|
2253
2360
|
});
|
|
2254
2361
|
}
|
|
2255
|
-
var
|
|
2362
|
+
var Ct = {
|
|
2256
2363
|
small: {
|
|
2257
2364
|
w: 132,
|
|
2258
2365
|
h: 46,
|
|
@@ -2274,10 +2381,10 @@ var yt = {
|
|
|
2274
2381
|
title: 12.5,
|
|
2275
2382
|
avatar: 46
|
|
2276
2383
|
}
|
|
2277
|
-
},
|
|
2278
|
-
|
|
2279
|
-
function
|
|
2280
|
-
let r =
|
|
2384
|
+
}, wt = (e) => Ct[e] ?? Ct.medium;
|
|
2385
|
+
Ct.medium.w, Ct.medium.h;
|
|
2386
|
+
function Tt(e, { size: t = "medium", horizontal: n = !1 } = {}) {
|
|
2387
|
+
let r = wt(t), i = n ? r.h : r.w, a = n ? 16 : 20, o = (n ? r.w : r.h) + (n ? 56 : 48), s = Array.isArray(e) ? e.filter((e) => e && e.id) : [], c = new Set(s.map((e) => e.id)), l = /* @__PURE__ */ new Map(), u = [];
|
|
2281
2388
|
for (let e of s) e.parent && c.has(e.parent) && e.parent !== e.id ? (l.has(e.parent) || l.set(e.parent, []), l.get(e.parent).push(e)) : u.push(e);
|
|
2282
2389
|
let d = /* @__PURE__ */ new Map(), f = (e, t) => {
|
|
2283
2390
|
if (t.has(e.id)) return 0;
|
|
@@ -2329,19 +2436,19 @@ function xt(e, { size: t = "medium", horizontal: n = !1 } = {}) {
|
|
|
2329
2436
|
horizontal: n
|
|
2330
2437
|
};
|
|
2331
2438
|
}
|
|
2332
|
-
var
|
|
2439
|
+
var Q = (e, t) => {
|
|
2333
2440
|
let n = String(e ?? "");
|
|
2334
2441
|
return n.length > t ? `${n.slice(0, t - 1)}…` : n;
|
|
2335
|
-
},
|
|
2442
|
+
}, Et = (e) => {
|
|
2336
2443
|
let t = /^#([0-9a-f]{6}|[0-9a-f]{3})$/i.exec(String(e ?? "").trim());
|
|
2337
2444
|
if (!t) return "#ffffff";
|
|
2338
2445
|
let n = t[1];
|
|
2339
2446
|
n.length === 3 && (n = [...n].map((e) => e + e).join(""));
|
|
2340
2447
|
let r = parseInt(n, 16);
|
|
2341
2448
|
return .299 * (r >> 16 & 255) + .587 * (r >> 8 & 255) + .114 * (r & 255) > 150 ? "#111827" : "#ffffff";
|
|
2342
|
-
},
|
|
2343
|
-
function
|
|
2344
|
-
let n = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.id) : [], r = (e) => Array.isArray(e) ? e[0] : e, i = (e) => e == null ? "" :
|
|
2449
|
+
}, Dt = (e) => !!(e?.cv?.trim?.() || e?.photo);
|
|
2450
|
+
function Ot(e, t = {}) {
|
|
2451
|
+
let n = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.id) : [], r = (e) => Array.isArray(e) ? e[0] : e, i = (e) => e == null ? "" : W(e);
|
|
2345
2452
|
return n.map((e) => {
|
|
2346
2453
|
let n = e.data ?? {}, a = r(n[t.parentField]), o = a && typeof a == "object" ? a.id ?? null : a || null;
|
|
2347
2454
|
return {
|
|
@@ -2355,11 +2462,11 @@ function Tt(e, t = {}) {
|
|
|
2355
2462
|
};
|
|
2356
2463
|
});
|
|
2357
2464
|
}
|
|
2358
|
-
var
|
|
2465
|
+
var kt = {
|
|
2359
2466
|
size: 36,
|
|
2360
2467
|
pad: 10
|
|
2361
2468
|
};
|
|
2362
|
-
function
|
|
2469
|
+
function At({ node: e, onClose: t }) {
|
|
2363
2470
|
return i(() => {
|
|
2364
2471
|
let e = (e) => e.key === "Escape" && t();
|
|
2365
2472
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
@@ -2477,8 +2584,8 @@ function Dt({ node: e, onClose: t }) {
|
|
|
2477
2584
|
})
|
|
2478
2585
|
});
|
|
2479
2586
|
}
|
|
2480
|
-
function
|
|
2481
|
-
let x = a(), [S, C] = c(null), { tenant: w, apiUrl: T } = r(
|
|
2587
|
+
function jt({ nodes: e = [], source: t, nameField: n, titleField: o, photoField: s, parentField: f, cvField: p, hrefField: m, size: g = "medium", horizontal: _ = !1, style: v, nodeRef: y, interactive: b = !0 }) {
|
|
2588
|
+
let x = a(), [S, C] = c(null), { tenant: w, apiUrl: T } = r(V), E = r(H)?.[t], [D, O] = c(null);
|
|
2482
2589
|
i(() => {
|
|
2483
2590
|
if (!t || E) return;
|
|
2484
2591
|
let e = !0;
|
|
@@ -2494,14 +2601,14 @@ function Ot({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
2494
2601
|
T,
|
|
2495
2602
|
E
|
|
2496
2603
|
]);
|
|
2497
|
-
let k = t ?
|
|
2604
|
+
let k = t ? Ot(E ?? D ?? [], {
|
|
2498
2605
|
nameField: n,
|
|
2499
2606
|
titleField: o,
|
|
2500
2607
|
photoField: s,
|
|
2501
2608
|
parentField: f,
|
|
2502
2609
|
cvField: p,
|
|
2503
2610
|
hrefField: m
|
|
2504
|
-
}) : e, A =
|
|
2611
|
+
}) : e, A = wt(g), { boxes: j, links: M, width: N, height: P } = Tt(k, {
|
|
2505
2612
|
size: g,
|
|
2506
2613
|
horizontal: _
|
|
2507
2614
|
});
|
|
@@ -2547,7 +2654,7 @@ function Ot({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
2547
2654
|
stroke: "rgba(148, 163, 184, 0.7)",
|
|
2548
2655
|
strokeWidth: "1.5"
|
|
2549
2656
|
}, t)), j.map(({ node: e, x: t, y: n }) => {
|
|
2550
|
-
let r = F.has(e.id), i = !!e.color2, a = !!e.color || r || i, o = e.color || (r ? "var(--page-accent, #4f46e5)" : "var(--page-bg, #ffffff)"), s = e.color ?
|
|
2657
|
+
let r = F.has(e.id), i = !!e.color2, a = !!e.color || r || i, o = e.color || (r ? "var(--page-accent, #4f46e5)" : "var(--page-bg, #ffffff)"), s = e.color ? Et(e.color) : r ? "var(--page-accent-text, #ffffff)" : "var(--page-text, #111827)", c = i ? Et(e.color2) : s, f = b && (Dt(e) || e.href), p = () => Dt(e) ? C(e) : window.open(e.href, "_blank", "noreferrer"), m = e.photo ? t + kt.pad + A.avatar + 8 : t + A.w / 2, h = e.photo ? "start" : "middle", g = e.photo ? Math.floor((A.w - A.avatar - 26) / 7) : Math.floor(A.w / 7.6), _ = A.h / 2, v = [e.name, e.title].map((e) => String(e ?? "").trim()).filter(Boolean);
|
|
2551
2658
|
return /* @__PURE__ */ d("g", {
|
|
2552
2659
|
onClick: f ? p : void 0,
|
|
2553
2660
|
style: f ? { cursor: "pointer" } : void 0,
|
|
@@ -2611,13 +2718,13 @@ function Ot({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
2611
2718
|
e.photo && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("clipPath", {
|
|
2612
2719
|
id: `${x}-${e.id}`,
|
|
2613
2720
|
children: /* @__PURE__ */ u("circle", {
|
|
2614
|
-
cx: t +
|
|
2721
|
+
cx: t + kt.pad + A.avatar / 2,
|
|
2615
2722
|
cy: n + A.h / 2,
|
|
2616
2723
|
r: A.avatar / 2
|
|
2617
2724
|
})
|
|
2618
2725
|
}), /* @__PURE__ */ u("image", {
|
|
2619
2726
|
href: e.photo,
|
|
2620
|
-
x: t +
|
|
2727
|
+
x: t + kt.pad,
|
|
2621
2728
|
y: n + (A.h - A.avatar) / 2,
|
|
2622
2729
|
width: A.avatar,
|
|
2623
2730
|
height: A.avatar,
|
|
@@ -2631,7 +2738,7 @@ function Ot({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
2631
2738
|
fontSize: A.title,
|
|
2632
2739
|
fontWeight: "600",
|
|
2633
2740
|
fill: s,
|
|
2634
|
-
children:
|
|
2741
|
+
children: Q(e.title, g + 4)
|
|
2635
2742
|
}), e.name && /* @__PURE__ */ u("text", {
|
|
2636
2743
|
x: m,
|
|
2637
2744
|
y: n + _ + _ / 2 + A.name * .35,
|
|
@@ -2639,7 +2746,7 @@ function Ot({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
2639
2746
|
fontSize: A.name,
|
|
2640
2747
|
fontWeight: "600",
|
|
2641
2748
|
fill: c,
|
|
2642
|
-
children:
|
|
2749
|
+
children: Q(e.name, g)
|
|
2643
2750
|
})] }) : /* @__PURE__ */ d(l, { children: [v[0] && /* @__PURE__ */ u("text", {
|
|
2644
2751
|
x: m,
|
|
2645
2752
|
y: n + (v[1] ? A.h * .43 : A.h * .57),
|
|
@@ -2647,7 +2754,7 @@ function Ot({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
2647
2754
|
fontSize: A.name,
|
|
2648
2755
|
fontWeight: "600",
|
|
2649
2756
|
fill: s,
|
|
2650
|
-
children:
|
|
2757
|
+
children: Q(v[0], g)
|
|
2651
2758
|
}), v[1] && /* @__PURE__ */ u("text", {
|
|
2652
2759
|
x: m,
|
|
2653
2760
|
y: n + A.h * .73,
|
|
@@ -2655,19 +2762,19 @@ function Ot({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
2655
2762
|
fontSize: A.title,
|
|
2656
2763
|
opacity: "0.7",
|
|
2657
2764
|
fill: s,
|
|
2658
|
-
children:
|
|
2765
|
+
children: Q(v[1], g + 4)
|
|
2659
2766
|
})] })
|
|
2660
2767
|
]
|
|
2661
2768
|
}, e.id);
|
|
2662
2769
|
})]
|
|
2663
|
-
}), S && /* @__PURE__ */ u(
|
|
2770
|
+
}), S && /* @__PURE__ */ u(At, {
|
|
2664
2771
|
node: S,
|
|
2665
2772
|
onClose: () => C(null)
|
|
2666
2773
|
})]
|
|
2667
2774
|
});
|
|
2668
2775
|
}
|
|
2669
|
-
function
|
|
2670
|
-
let { tenant: m, apiUrl: g } = r(
|
|
2776
|
+
function Mt({ columns: e = [], rows: t = [], source: n, limit: a = 10, striped: o = !0, bordered: s = !1, compact: l = !1, style: f, nodeRef: p }) {
|
|
2777
|
+
let { tenant: m, apiUrl: g } = r(V), _ = r(H)?.[n], [v, y] = c(null);
|
|
2671
2778
|
if (i(() => {
|
|
2672
2779
|
if (!n || _) return;
|
|
2673
2780
|
let e = !0, t = n.startsWith("api:") ? `${g}/data/${encodeURIComponent(n.slice(4))}` : `${g}/dynamic/${encodeURIComponent(n)}`;
|
|
@@ -2680,7 +2787,7 @@ function kt({ columns: e = [], rows: t = [], source: n, limit: a = 10, striped:
|
|
|
2680
2787
|
g,
|
|
2681
2788
|
_
|
|
2682
2789
|
]), !e.length) return null;
|
|
2683
|
-
let b = n ? (_ ?? v ?? []).slice(0, Math.max(1, Number(a) || 10)) : null, x = b ? b.map((t) => e.map((e) =>
|
|
2790
|
+
let b = n ? (_ ?? v ?? []).slice(0, Math.max(1, Number(a) || 10)) : null, x = b ? b.map((t) => e.map((e) => W(U(t?.data, e.field)))) : t, S = l ? "6px 10px" : "10px 14px", C = "1px solid rgba(148, 163, 184, 0.35)", w = s ? { border: C } : { borderBottom: C };
|
|
2684
2791
|
return /* @__PURE__ */ u("div", {
|
|
2685
2792
|
ref: p,
|
|
2686
2793
|
style: {
|
|
@@ -2717,68 +2824,75 @@ function kt({ columns: e = [], rows: t = [], source: n, limit: a = 10, striped:
|
|
|
2717
2824
|
})
|
|
2718
2825
|
});
|
|
2719
2826
|
}
|
|
2720
|
-
var
|
|
2721
|
-
PageRoot:
|
|
2722
|
-
Section:
|
|
2723
|
-
Container:
|
|
2724
|
-
Heading:
|
|
2725
|
-
TextBlock:
|
|
2726
|
-
ButtonBlock:
|
|
2727
|
-
ImageBlock:
|
|
2728
|
-
Spacer:
|
|
2729
|
-
Divider:
|
|
2730
|
-
SliderBlock:
|
|
2731
|
-
CanvasSlider:
|
|
2732
|
-
TabsBlock:
|
|
2733
|
-
QuickStack:
|
|
2734
|
-
CollectionList:
|
|
2735
|
-
BreadcrumbsBlock:
|
|
2736
|
-
PaginationBlock:
|
|
2737
|
-
StepperBlock:
|
|
2738
|
-
OrgChartBlock:
|
|
2739
|
-
TableBlock:
|
|
2740
|
-
AccordionBlock:
|
|
2741
|
-
NavbarBlock:
|
|
2742
|
-
ListBlock:
|
|
2743
|
-
TextSpan:
|
|
2744
|
-
QuoteBlock:
|
|
2745
|
-
TextLink:
|
|
2746
|
-
RichTextBlock:
|
|
2747
|
-
RichContentBlock:
|
|
2748
|
-
VideoBlock:
|
|
2749
|
-
YouTubeBlock:
|
|
2750
|
-
IframeBlock:
|
|
2751
|
-
EmbedBlock:
|
|
2752
|
-
FormBlock:
|
|
2753
|
-
FormLabel:
|
|
2754
|
-
FormInput:
|
|
2755
|
-
FormTextarea:
|
|
2756
|
-
FormCheckbox: (e) => /* @__PURE__ */ u(
|
|
2827
|
+
var Nt = {
|
|
2828
|
+
PageRoot: _e,
|
|
2829
|
+
Section: ve,
|
|
2830
|
+
Container: ye,
|
|
2831
|
+
Heading: be,
|
|
2832
|
+
TextBlock: je,
|
|
2833
|
+
ButtonBlock: Pe,
|
|
2834
|
+
ImageBlock: Fe,
|
|
2835
|
+
Spacer: Ve,
|
|
2836
|
+
Divider: He,
|
|
2837
|
+
SliderBlock: Je,
|
|
2838
|
+
CanvasSlider: Ye,
|
|
2839
|
+
TabsBlock: Qe,
|
|
2840
|
+
QuickStack: vt,
|
|
2841
|
+
CollectionList: yt,
|
|
2842
|
+
BreadcrumbsBlock: bt,
|
|
2843
|
+
PaginationBlock: xt,
|
|
2844
|
+
StepperBlock: St,
|
|
2845
|
+
OrgChartBlock: jt,
|
|
2846
|
+
TableBlock: Mt,
|
|
2847
|
+
AccordionBlock: $e,
|
|
2848
|
+
NavbarBlock: Ze,
|
|
2849
|
+
ListBlock: Ae,
|
|
2850
|
+
TextSpan: Ce,
|
|
2851
|
+
QuoteBlock: ke,
|
|
2852
|
+
TextLink: Ne,
|
|
2853
|
+
RichTextBlock: De,
|
|
2854
|
+
RichContentBlock: De,
|
|
2855
|
+
VideoBlock: Ie,
|
|
2856
|
+
YouTubeBlock: Re,
|
|
2857
|
+
IframeBlock: ze,
|
|
2858
|
+
EmbedBlock: Be,
|
|
2859
|
+
FormBlock: st,
|
|
2860
|
+
FormLabel: dt,
|
|
2861
|
+
FormInput: ft,
|
|
2862
|
+
FormTextarea: pt,
|
|
2863
|
+
FormCheckbox: (e) => /* @__PURE__ */ u(mt, {
|
|
2757
2864
|
kind: "checkbox",
|
|
2758
2865
|
...e
|
|
2759
2866
|
}),
|
|
2760
|
-
FormRadio: (e) => /* @__PURE__ */ u(
|
|
2867
|
+
FormRadio: (e) => /* @__PURE__ */ u(mt, {
|
|
2761
2868
|
kind: "radio",
|
|
2762
2869
|
...e
|
|
2763
2870
|
}),
|
|
2764
|
-
FormSelect:
|
|
2765
|
-
FormFile:
|
|
2766
|
-
|
|
2767
|
-
|
|
2871
|
+
FormSelect: ht,
|
|
2872
|
+
FormFile: gt,
|
|
2873
|
+
FormRecaptcha: ut,
|
|
2874
|
+
FormSubmit: _t
|
|
2875
|
+
}, Pt = {
|
|
2768
2876
|
id: "auth",
|
|
2769
2877
|
label: "Accounts",
|
|
2770
2878
|
category: "Apps",
|
|
2771
2879
|
keys: ["SiteLoginForm", "SiteAccountMenu"],
|
|
2772
2880
|
ssr: "shell",
|
|
2773
2881
|
settings: ["apps.auth.redirect"]
|
|
2774
|
-
},
|
|
2882
|
+
}, Ft = t({
|
|
2775
2883
|
user: null,
|
|
2776
|
-
status: "
|
|
2884
|
+
status: "idle",
|
|
2885
|
+
ensure: () => {},
|
|
2777
2886
|
refresh: () => {},
|
|
2778
2887
|
signOut: () => {}
|
|
2779
|
-
}),
|
|
2780
|
-
|
|
2781
|
-
|
|
2888
|
+
}), It = () => {
|
|
2889
|
+
let e = r(Ft);
|
|
2890
|
+
return i(() => {
|
|
2891
|
+
e.ensure();
|
|
2892
|
+
}, [e]), e;
|
|
2893
|
+
};
|
|
2894
|
+
function Lt({ children: e, initialUser: t, disabled: i, apiUrl: a, tenant: l }) {
|
|
2895
|
+
let d = r(V), f = a || d?.apiUrl || "/api", p = l || d?.tenant || "", [m, h] = c(t ?? null), [g, _] = c(t ? "user" : i ? "guest" : "idle"), v = s(!1), y = n((e, t) => fetch(`${f}${e}`, {
|
|
2782
2896
|
...t,
|
|
2783
2897
|
credentials: "include",
|
|
2784
2898
|
headers: {
|
|
@@ -2786,43 +2900,43 @@ function Pt({ children: e, initialUser: t, disabled: a, apiUrl: s, tenant: l })
|
|
|
2786
2900
|
...p ? { "x-tenant": p } : {},
|
|
2787
2901
|
...t?.headers
|
|
2788
2902
|
}
|
|
2789
|
-
}), [f, p]),
|
|
2903
|
+
}), [f, p]), b = n(() => i ? Promise.resolve(null) : y("/site/me").then((e) => e.ok ? e.json() : null).then((e) => {
|
|
2790
2904
|
let t = e?.payload ?? null;
|
|
2791
2905
|
return h(t), _(t ? "user" : "guest"), t;
|
|
2792
|
-
}).catch(() => (h(null), _("guest"), null)), [
|
|
2906
|
+
}).catch(() => (h(null), _("guest"), null)), [y, i]), x = n(() => y("/site/logout", { method: "post" }).catch(() => {}).then(() => {
|
|
2793
2907
|
h(null), _("guest");
|
|
2794
|
-
}), [
|
|
2795
|
-
|
|
2796
|
-
a || t || y();
|
|
2908
|
+
}), [y]), S = n(() => {
|
|
2909
|
+
v.current || i || t || (v.current = !0, _("loading"), b());
|
|
2797
2910
|
}, [
|
|
2798
|
-
|
|
2911
|
+
i,
|
|
2799
2912
|
t,
|
|
2800
|
-
|
|
2801
|
-
])
|
|
2802
|
-
let x = o(() => ({
|
|
2913
|
+
b
|
|
2914
|
+
]), C = o(() => ({
|
|
2803
2915
|
user: m,
|
|
2804
2916
|
status: g,
|
|
2805
|
-
|
|
2806
|
-
|
|
2917
|
+
ensure: S,
|
|
2918
|
+
refresh: b,
|
|
2919
|
+
signOut: x
|
|
2807
2920
|
}), [
|
|
2808
2921
|
m,
|
|
2809
2922
|
g,
|
|
2810
|
-
|
|
2811
|
-
b
|
|
2923
|
+
S,
|
|
2924
|
+
b,
|
|
2925
|
+
x
|
|
2812
2926
|
]);
|
|
2813
|
-
return /* @__PURE__ */ u(
|
|
2814
|
-
value:
|
|
2927
|
+
return /* @__PURE__ */ u(Ft.Provider, {
|
|
2928
|
+
value: C,
|
|
2815
2929
|
children: e
|
|
2816
2930
|
});
|
|
2817
2931
|
}
|
|
2818
|
-
function
|
|
2819
|
-
let { status: n } =
|
|
2820
|
-
return !e || e === "always" ? t : n === "loading" ? null : e === "user" == (n === "user") ? t : null;
|
|
2932
|
+
function Rt({ when: e, children: t }) {
|
|
2933
|
+
let { status: n } = It();
|
|
2934
|
+
return !e || e === "always" ? t : n === "idle" || n === "loading" ? null : e === "user" == (n === "user") ? t : null;
|
|
2821
2935
|
}
|
|
2822
2936
|
//#endregion
|
|
2823
2937
|
//#region ../ui/src/components/builder/apps/auth/views.jsx
|
|
2824
|
-
function
|
|
2825
|
-
let { tenant: g, apiUrl: _, settings: v } = r(
|
|
2938
|
+
function zt({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordLabel: i = "Password", nameLabel: a = "Name", submitLabel: o, style: s, nodeRef: l, inert: f, linked: p, show: m }) {
|
|
2939
|
+
let { tenant: g, apiUrl: _, settings: v } = r(V), [y, b] = c("form"), [x, S] = c(""), [C, w] = c(!1), T = e === "register", E = f ? m || "form" : y, D = (e) => typeof e == "string" && e.startsWith("/") && !e.startsWith("//") ? e : "", O = async (e) => {
|
|
2826
2940
|
if (e.preventDefault(), f) return;
|
|
2827
2941
|
let n = new FormData(e.currentTarget);
|
|
2828
2942
|
w(!0), S("");
|
|
@@ -2870,20 +2984,20 @@ function It({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
2870
2984
|
children: [
|
|
2871
2985
|
T ? /* @__PURE__ */ d("label", {
|
|
2872
2986
|
style: {
|
|
2873
|
-
...
|
|
2987
|
+
...Y,
|
|
2874
2988
|
display: "grid",
|
|
2875
2989
|
gap: 6
|
|
2876
2990
|
},
|
|
2877
2991
|
children: [a, /* @__PURE__ */ u("input", {
|
|
2878
2992
|
name: "name",
|
|
2879
2993
|
type: "text",
|
|
2880
|
-
style:
|
|
2881
|
-
...
|
|
2994
|
+
style: X,
|
|
2995
|
+
...Z(f)
|
|
2882
2996
|
})]
|
|
2883
2997
|
}) : null,
|
|
2884
2998
|
/* @__PURE__ */ d("label", {
|
|
2885
2999
|
style: {
|
|
2886
|
-
...
|
|
3000
|
+
...Y,
|
|
2887
3001
|
display: "grid",
|
|
2888
3002
|
gap: 6
|
|
2889
3003
|
},
|
|
@@ -2891,13 +3005,13 @@ function It({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
2891
3005
|
name: "email",
|
|
2892
3006
|
type: "email",
|
|
2893
3007
|
required: !f,
|
|
2894
|
-
style:
|
|
2895
|
-
...
|
|
3008
|
+
style: X,
|
|
3009
|
+
...Z(f)
|
|
2896
3010
|
})]
|
|
2897
3011
|
}),
|
|
2898
3012
|
/* @__PURE__ */ d("label", {
|
|
2899
3013
|
style: {
|
|
2900
|
-
...
|
|
3014
|
+
...Y,
|
|
2901
3015
|
display: "grid",
|
|
2902
3016
|
gap: 6
|
|
2903
3017
|
},
|
|
@@ -2905,15 +3019,15 @@ function It({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
2905
3019
|
name: "password",
|
|
2906
3020
|
type: "password",
|
|
2907
3021
|
required: !f,
|
|
2908
|
-
style:
|
|
2909
|
-
...
|
|
3022
|
+
style: X,
|
|
3023
|
+
...Z(f)
|
|
2910
3024
|
})]
|
|
2911
3025
|
}),
|
|
2912
3026
|
/* @__PURE__ */ u("button", {
|
|
2913
3027
|
type: f ? "button" : "submit",
|
|
2914
3028
|
disabled: C || void 0,
|
|
2915
3029
|
style: {
|
|
2916
|
-
...
|
|
3030
|
+
...K,
|
|
2917
3031
|
border: 0,
|
|
2918
3032
|
padding: "10px 22px",
|
|
2919
3033
|
borderRadius: 8,
|
|
@@ -2945,8 +3059,8 @@ function It({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
2945
3059
|
]
|
|
2946
3060
|
});
|
|
2947
3061
|
}
|
|
2948
|
-
function
|
|
2949
|
-
let { user: c, status: l, signOut: f } =
|
|
3062
|
+
function Bt({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !1, style: r, nodeRef: i, inert: a, linked: o, show: s }) {
|
|
3063
|
+
let { user: c, status: l, signOut: f } = It(), p = a ? s || "user" : l, m = a ? {
|
|
2950
3064
|
name: "Ada Lovelace",
|
|
2951
3065
|
email: "ada@example.com"
|
|
2952
3066
|
} : c;
|
|
@@ -2967,7 +3081,7 @@ function Lt({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
2967
3081
|
children: [
|
|
2968
3082
|
/* @__PURE__ */ d("span", {
|
|
2969
3083
|
style: {
|
|
2970
|
-
...
|
|
3084
|
+
...Y,
|
|
2971
3085
|
fontWeight: 600
|
|
2972
3086
|
},
|
|
2973
3087
|
children: [
|
|
@@ -2978,7 +3092,7 @@ function Lt({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
2978
3092
|
}),
|
|
2979
3093
|
n && m?.email ? /* @__PURE__ */ u("span", {
|
|
2980
3094
|
style: {
|
|
2981
|
-
...
|
|
3095
|
+
...Y,
|
|
2982
3096
|
opacity: .7
|
|
2983
3097
|
},
|
|
2984
3098
|
children: m.email
|
|
@@ -2987,14 +3101,14 @@ function Lt({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
2987
3101
|
type: "button",
|
|
2988
3102
|
onClick: a ? void 0 : f,
|
|
2989
3103
|
style: {
|
|
2990
|
-
...
|
|
3104
|
+
...K,
|
|
2991
3105
|
border: 0,
|
|
2992
3106
|
padding: "8px 16px",
|
|
2993
3107
|
borderRadius: 8,
|
|
2994
3108
|
fontSize: 14,
|
|
2995
3109
|
cursor: a ? "default" : "pointer"
|
|
2996
3110
|
},
|
|
2997
|
-
...
|
|
3111
|
+
...Z(a),
|
|
2998
3112
|
children: t
|
|
2999
3113
|
})
|
|
3000
3114
|
]
|
|
@@ -3011,16 +3125,16 @@ function Lt({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
3011
3125
|
}
|
|
3012
3126
|
//#endregion
|
|
3013
3127
|
//#region ../ui/src/components/builder/apps/index.js
|
|
3014
|
-
var
|
|
3015
|
-
SiteLoginForm:
|
|
3016
|
-
SiteAccountMenu:
|
|
3128
|
+
var Vt = [Pt], Ht = {
|
|
3129
|
+
SiteLoginForm: zt,
|
|
3130
|
+
SiteAccountMenu: Bt
|
|
3017
3131
|
};
|
|
3018
|
-
new Set(
|
|
3132
|
+
new Set(Vt.filter((e) => e.ssr === "shell").flatMap((e) => e.keys));
|
|
3019
3133
|
//#endregion
|
|
3020
3134
|
//#region ../ui/src/components/builder/render.jsx
|
|
3021
|
-
var
|
|
3022
|
-
...
|
|
3023
|
-
...
|
|
3135
|
+
var Ut = {
|
|
3136
|
+
...Nt,
|
|
3137
|
+
...Ht
|
|
3024
3138
|
};
|
|
3025
3139
|
function $(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
|
|
3026
3140
|
let o = n[t];
|
|
@@ -3032,7 +3146,7 @@ function $(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
|
|
|
3032
3146
|
let c = new Set(i).add(n);
|
|
3033
3147
|
return /* @__PURE__ */ u(e, { children: $(s.template.rootId, s.template.nodes, r, c, a) }, t);
|
|
3034
3148
|
}
|
|
3035
|
-
let l =
|
|
3149
|
+
let l = Ut[s];
|
|
3036
3150
|
if (!l) return null;
|
|
3037
3151
|
let d = (o.nodes ?? []).map((e) => $(e, n, r, i, a)).filter(Boolean), f = Object.entries(o.linkedNodes ?? {}), p = f.length ? Object.fromEntries(f.map(([e, t]) => [e, $(t, n, r, i)])) : void 0, m = /* @__PURE__ */ u(l, {
|
|
3038
3152
|
...c,
|
|
@@ -3043,15 +3157,15 @@ function $(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
|
|
|
3043
3157
|
},
|
|
3044
3158
|
children: d.length ? d : void 0
|
|
3045
3159
|
}, t);
|
|
3046
|
-
return c.when && c.when !== "always" ? /* @__PURE__ */ u(
|
|
3160
|
+
return c.when && c.when !== "always" ? /* @__PURE__ */ u(Rt, {
|
|
3047
3161
|
when: c.when,
|
|
3048
3162
|
children: m
|
|
3049
3163
|
}, t) : m;
|
|
3050
3164
|
}
|
|
3051
3165
|
//#endregion
|
|
3052
3166
|
//#region ../ui/src/components/builder/PageRenderer.jsx
|
|
3053
|
-
var
|
|
3054
|
-
function
|
|
3167
|
+
var Wt = (e) => Object.entries(e).map(([e, t]) => `${e}: ${t};`).join(" ");
|
|
3168
|
+
function Gt({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, custom: s, tenant: c, apiUrl: l, datasets: f, locale: p, direction: m, settings: h, siteUser: g }) {
|
|
3055
3169
|
let _ = s?.js?.trim();
|
|
3056
3170
|
if (i(() => {
|
|
3057
3171
|
if (!_) return;
|
|
@@ -3060,78 +3174,81 @@ function Ht({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
|
|
|
3060
3174
|
}, [_]), !e?.ROOT) return null;
|
|
3061
3175
|
let v = {
|
|
3062
3176
|
lang: p || void 0,
|
|
3063
|
-
dir:
|
|
3064
|
-
}, y = {
|
|
3177
|
+
dir: se(m, p)
|
|
3178
|
+
}, y = ".webim-page, .webim-page *, .webim-page *::before, .webim-page *::after { box-sizing: border-box; }", b = {
|
|
3065
3179
|
minHeight: "100%",
|
|
3066
3180
|
display: "flex",
|
|
3067
3181
|
flexDirection: "column"
|
|
3068
|
-
},
|
|
3182
|
+
}, x = $("ROOT", e, n), S = o(() => ({ render: (t, r) => $(t, e, n, void 0, { mapProps: r }) }), [e, n]), C = D(e, n), w = E(e, n), T = s?.css?.trim(), O = ie(e, n).map((e) => /* @__PURE__ */ u("link", {
|
|
3069
3183
|
rel: "stylesheet",
|
|
3070
3184
|
precedence: "default",
|
|
3071
|
-
href:
|
|
3185
|
+
href: B(e)
|
|
3072
3186
|
}, e));
|
|
3073
|
-
if (r !== "auto") return /* @__PURE__ */ u(
|
|
3187
|
+
if (r !== "auto") return /* @__PURE__ */ u(V.Provider, {
|
|
3074
3188
|
value: {
|
|
3075
3189
|
tenant: c || "",
|
|
3076
3190
|
apiUrl: l || "/api",
|
|
3077
3191
|
locale: p || "",
|
|
3078
3192
|
settings: h ?? null
|
|
3079
3193
|
},
|
|
3080
|
-
children: /* @__PURE__ */ u(
|
|
3194
|
+
children: /* @__PURE__ */ u(Lt, {
|
|
3081
3195
|
initialUser: g,
|
|
3082
|
-
children: /* @__PURE__ */ u(
|
|
3196
|
+
children: /* @__PURE__ */ u(H.Provider, {
|
|
3083
3197
|
value: f ?? null,
|
|
3084
|
-
children: /* @__PURE__ */ u(
|
|
3085
|
-
value:
|
|
3198
|
+
children: /* @__PURE__ */ u(ce.Provider, {
|
|
3199
|
+
value: S,
|
|
3086
3200
|
children: /* @__PURE__ */ d("div", {
|
|
3087
3201
|
...v,
|
|
3202
|
+
className: "webim-page",
|
|
3088
3203
|
style: {
|
|
3089
|
-
...
|
|
3204
|
+
...b,
|
|
3090
3205
|
...L(t, r),
|
|
3091
3206
|
...a
|
|
3092
3207
|
},
|
|
3093
3208
|
children: [
|
|
3094
|
-
|
|
3095
|
-
|
|
3209
|
+
O,
|
|
3210
|
+
/* @__PURE__ */ u("style", { children: y }),
|
|
3096
3211
|
C && /* @__PURE__ */ u("style", { children: C }),
|
|
3097
3212
|
w && /* @__PURE__ */ u("style", { children: w }),
|
|
3098
|
-
|
|
3213
|
+
T && /* @__PURE__ */ u("style", { children: T }),
|
|
3214
|
+
x
|
|
3099
3215
|
]
|
|
3100
3216
|
})
|
|
3101
3217
|
})
|
|
3102
3218
|
})
|
|
3103
3219
|
})
|
|
3104
3220
|
});
|
|
3105
|
-
let
|
|
3106
|
-
return /* @__PURE__ */ u(
|
|
3221
|
+
let k = P(t);
|
|
3222
|
+
return /* @__PURE__ */ u(V.Provider, {
|
|
3107
3223
|
value: {
|
|
3108
3224
|
tenant: c || "",
|
|
3109
3225
|
apiUrl: l || "/api",
|
|
3110
3226
|
locale: p || "",
|
|
3111
3227
|
settings: h ?? null
|
|
3112
3228
|
},
|
|
3113
|
-
children: /* @__PURE__ */ u(
|
|
3229
|
+
children: /* @__PURE__ */ u(Lt, {
|
|
3114
3230
|
initialUser: g,
|
|
3115
|
-
children: /* @__PURE__ */ u(
|
|
3231
|
+
children: /* @__PURE__ */ u(H.Provider, {
|
|
3116
3232
|
value: f ?? null,
|
|
3117
|
-
children: /* @__PURE__ */ u(
|
|
3118
|
-
value:
|
|
3233
|
+
children: /* @__PURE__ */ u(ce.Provider, {
|
|
3234
|
+
value: S,
|
|
3119
3235
|
children: /* @__PURE__ */ d("div", {
|
|
3120
3236
|
...v,
|
|
3121
3237
|
className: "webim-page",
|
|
3122
3238
|
style: {
|
|
3123
|
-
...
|
|
3239
|
+
...b,
|
|
3124
3240
|
...I(t),
|
|
3125
3241
|
...a
|
|
3126
3242
|
},
|
|
3127
3243
|
children: [
|
|
3128
|
-
/* @__PURE__ */ u("style", { children: `.webim-page { ${
|
|
3129
|
-
@media (prefers-color-scheme: dark) { .webim-page { ${
|
|
3130
|
-
|
|
3131
|
-
|
|
3244
|
+
/* @__PURE__ */ u("style", { children: `.webim-page { ${Wt(F(k.light))} }
|
|
3245
|
+
@media (prefers-color-scheme: dark) { .webim-page { ${Wt(F(k.dark))} } }` }),
|
|
3246
|
+
O,
|
|
3247
|
+
/* @__PURE__ */ u("style", { children: y }),
|
|
3132
3248
|
C && /* @__PURE__ */ u("style", { children: C }),
|
|
3133
3249
|
w && /* @__PURE__ */ u("style", { children: w }),
|
|
3134
|
-
|
|
3250
|
+
T && /* @__PURE__ */ u("style", { children: T }),
|
|
3251
|
+
x
|
|
3135
3252
|
]
|
|
3136
3253
|
})
|
|
3137
3254
|
})
|
|
@@ -3141,8 +3258,8 @@ function Ht({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
|
|
|
3141
3258
|
}
|
|
3142
3259
|
//#endregion
|
|
3143
3260
|
//#region src/WebimContent.jsx
|
|
3144
|
-
function
|
|
3145
|
-
return e?.blocks?.ROOT ? /* @__PURE__ */ u(
|
|
3261
|
+
function Kt({ bundle: e, mode: t = "auto", style: n }) {
|
|
3262
|
+
return e?.blocks?.ROOT ? /* @__PURE__ */ u(Gt, {
|
|
3146
3263
|
blocks: e.blocks,
|
|
3147
3264
|
theme: e.theme,
|
|
3148
3265
|
components: e.components,
|
|
@@ -3159,7 +3276,7 @@ function Ut({ bundle: e, mode: t = "auto", style: n }) {
|
|
|
3159
3276
|
}
|
|
3160
3277
|
//#endregion
|
|
3161
3278
|
//#region src/WebimPage.jsx
|
|
3162
|
-
function
|
|
3279
|
+
function qt({ apiUrl: e, tenant: t, slug: n, locale: r, preview: a, token: o, mode: l = "auto", style: d, fallback: f = null, errorFallback: p = null, onLoad: m, onError: h }) {
|
|
3163
3280
|
let [g, _] = c({ status: "loading" }), v = s({
|
|
3164
3281
|
onLoad: m,
|
|
3165
3282
|
onError: h
|
|
@@ -3169,7 +3286,7 @@ function Wt({ apiUrl: e, tenant: t, slug: n, locale: r, preview: a, token: o, mo
|
|
|
3169
3286
|
onError: h
|
|
3170
3287
|
}, i(() => {
|
|
3171
3288
|
let i = !0;
|
|
3172
|
-
return _({ status: "loading" }),
|
|
3289
|
+
return _({ status: "loading" }), te({
|
|
3173
3290
|
apiUrl: e,
|
|
3174
3291
|
tenant: t,
|
|
3175
3292
|
slug: n,
|
|
@@ -3196,11 +3313,11 @@ function Wt({ apiUrl: e, tenant: t, slug: n, locale: r, preview: a, token: o, mo
|
|
|
3196
3313
|
r,
|
|
3197
3314
|
a,
|
|
3198
3315
|
o
|
|
3199
|
-
]), g.status === "loading" ? f : g.status === "error" ? typeof p == "function" ? p(g.error) : p : /* @__PURE__ */ u(
|
|
3316
|
+
]), g.status === "loading" ? f : g.status === "error" ? typeof p == "function" ? p(g.error) : p : /* @__PURE__ */ u(Kt, {
|
|
3200
3317
|
bundle: g.bundle,
|
|
3201
3318
|
mode: l,
|
|
3202
3319
|
style: d
|
|
3203
3320
|
});
|
|
3204
3321
|
}
|
|
3205
3322
|
//#endregion
|
|
3206
|
-
export {
|
|
3323
|
+
export { Gt as PageRenderer, Kt as WebimContent, qt as WebimPage, te as fetchPage, Ee as renderRichContent, R as resolveTheme };
|