webim-adapter 0.18.0 → 0.20.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 +605 -353
- package/build/webim-embed.js +3 -2
- package/build/webim-ssr.js +375 -123
- 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: ee, filterBlur: L, filterGrayscale: te, filterBrightness: R, 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: ee, filterBlur: L, filterGrayscale: te, filterBrightness: R, filterContrast: ne, filterSaturate: re } = 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
|
-
L !== 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 z = F(I);
|
|
54
|
+
L !== void 0 && z.push(`blur(${p(L)})`), te !== void 0 && z.push(`grayscale(${te}%)`), R !== void 0 && z.push(`brightness(${R}%)`), ne !== void 0 && z.push(`contrast(${ne}%)`), re !== void 0 && z.push(`saturate(${re}%)`), z.length && (t.filter = z.join(" "));
|
|
55
|
+
let ie = F(ee);
|
|
56
|
+
ie.length && (t.backdropFilter = ie.join(" "), t.WebkitBackdropFilter = t.backdropFilter);
|
|
57
|
+
let { textStrokeWidth: ae, textStrokeColor: oe } = t;
|
|
58
|
+
delete t.textStrokeWidth, delete t.textStrokeColor, (ae !== void 0 || oe !== void 0) && (t.WebkitTextStroke = `${p(ae ?? 1)} ${oe || "currentColor"}`);
|
|
59
|
+
let { clipText: se } = t;
|
|
60
|
+
delete t.clipText, se && (t.WebkitBackgroundClip = "text", t.backgroundClip = "text", t.WebkitTextFillColor = "transparent");
|
|
61
|
+
let { transitions: ce, transitionDuration: B, transitionEasing: V, transitionProperty: le } = t, H = (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(ce) ? ce : []).filter((e) => e && e.on !== !1).map((e) => `${e.property || "all"} ${H(e.duration ?? 200)} ${e.easing || "ease"}`);
|
|
64
|
+
if (B !== void 0 && U.push(`${le || "all"} ${H(B)} ${V || "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: W, overlayOpacity: ue } = t;
|
|
70
|
+
if (delete t.overlayColor, delete t.overlayOpacity, W) {
|
|
71
|
+
let e = `color-mix(in srgb, ${W} ${ue ?? 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: G } = t;
|
|
76
76
|
delete t.backgroundLayers;
|
|
77
|
-
let
|
|
78
|
-
if (
|
|
77
|
+
let de = (Array.isArray(G) ? G : []).filter((e) => e && e.on !== !1);
|
|
78
|
+
if (de.length) {
|
|
79
79
|
let e = [], n = [], r = [], i = [], a = [];
|
|
80
|
-
for (let t of
|
|
80
|
+
for (let t of de) 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 R = 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 ne({ apiUrl: e, tenant: t, slug: n, locale: r, preview: i, token: a, page: o, fetch: s }) {
|
|
317
317
|
if (!e) throw Error("fetchPage: apiUrl is required");
|
|
318
318
|
if (!n) throw Error("fetchPage: slug is required");
|
|
319
319
|
let c = s ?? fetch, l = e.replace(/\/$/, ""), u = {
|
|
@@ -445,14 +445,14 @@ new Map([
|
|
|
445
445
|
fallback: "sans-serif"
|
|
446
446
|
}
|
|
447
447
|
].map((e) => [e.family, e]));
|
|
448
|
-
function
|
|
448
|
+
function re(e) {
|
|
449
449
|
return e.length ? `https://fonts.googleapis.com/css2?${e.map((e) => `family=${e.replace(/ /g, "+")}:wght@100..900`).join("&")}&display=swap` : null;
|
|
450
450
|
}
|
|
451
|
-
var
|
|
451
|
+
var z = (e) => re([e]), ie = (e) => {
|
|
452
452
|
let t = typeof e == "string" && e.match(/^"([^"]+)"/);
|
|
453
453
|
return t ? t[1] : null;
|
|
454
454
|
};
|
|
455
|
-
function
|
|
455
|
+
function ae(e, t) {
|
|
456
456
|
let n = /* @__PURE__ */ new Set(), r = (e) => {
|
|
457
457
|
for (let t of Object.values(e || {})) for (let e of [
|
|
458
458
|
"style",
|
|
@@ -460,7 +460,7 @@ function ie(e, t) {
|
|
|
460
460
|
"pressed",
|
|
461
461
|
"focused"
|
|
462
462
|
]) {
|
|
463
|
-
let r =
|
|
463
|
+
let r = ie(t.props?.[e]?.fontFamily);
|
|
464
464
|
r && n.add(r);
|
|
465
465
|
}
|
|
466
466
|
};
|
|
@@ -470,7 +470,7 @@ function ie(e, t) {
|
|
|
470
470
|
}
|
|
471
471
|
//#endregion
|
|
472
472
|
//#region ../ui/src/components/builder/locale.js
|
|
473
|
-
var
|
|
473
|
+
var oe = /* @__PURE__ */ new Set([
|
|
474
474
|
"ar",
|
|
475
475
|
"he",
|
|
476
476
|
"fa",
|
|
@@ -481,22 +481,22 @@ var ae = /* @__PURE__ */ new Set([
|
|
|
481
481
|
"yi",
|
|
482
482
|
"dv",
|
|
483
483
|
"ckb"
|
|
484
|
-
]),
|
|
484
|
+
]), se = (e) => oe.has(String(e || "").toLowerCase().split(/[-_]/)[0]) ? "rtl" : "ltr", ce = (e, t) => e === "ltr" || e === "rtl" ? e : t ? se(t) : void 0, B = t({
|
|
485
485
|
tenant: "",
|
|
486
486
|
apiUrl: "/api",
|
|
487
487
|
locale: "",
|
|
488
488
|
settings: null
|
|
489
|
-
}),
|
|
489
|
+
}), V = t(null), le = (e) => {
|
|
490
490
|
let t = Number(e?.__page);
|
|
491
491
|
if (Number.isFinite(t) && t >= 1) return Math.floor(t);
|
|
492
492
|
if (typeof window > "u") return 1;
|
|
493
493
|
let n = Number(new URLSearchParams(window.location.search).get("page"));
|
|
494
494
|
return Number.isFinite(n) && n >= 1 ? Math.floor(n) : 1;
|
|
495
|
-
},
|
|
496
|
-
function
|
|
495
|
+
}, H = t(null), U = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
496
|
+
function W(e, t) {
|
|
497
497
|
if (t) return t.includes(".") ? t.split(".").reduce((e, t) => e && typeof e == "object" ? e[t] : void 0, e) : e?.[t];
|
|
498
498
|
}
|
|
499
|
-
var
|
|
499
|
+
var ue = (e) => {
|
|
500
500
|
let t = [];
|
|
501
501
|
for (let [n, r] of Object.entries(e ?? {})) {
|
|
502
502
|
if (!/^[\w-]+$/.test(n)) continue;
|
|
@@ -506,36 +506,36 @@ var le = (e) => {
|
|
|
506
506
|
}
|
|
507
507
|
return t;
|
|
508
508
|
};
|
|
509
|
-
function
|
|
509
|
+
function G(e) {
|
|
510
510
|
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(" ") : "";
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
let n = t?.data ?? {}, r =
|
|
512
|
+
function de(e, t) {
|
|
513
|
+
let n = t?.data ?? {}, r = ue(n);
|
|
514
514
|
if (!r.length) return e;
|
|
515
|
-
let i = RegExp(`:(${r.map(
|
|
515
|
+
let i = RegExp(`:(${r.map(U).sort((e, t) => t.length - e.length).join("|")})`, "g"), a = (e) => typeof e == "string" ? e.replace(i, (e, t) => G(W(n, t))) : Array.isArray(e) ? e.map(a) : e && typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([e, t]) => [e, a(t)])) : e;
|
|
516
516
|
return a(e);
|
|
517
517
|
}
|
|
518
|
-
var
|
|
518
|
+
var fe = {
|
|
519
519
|
margin: 0,
|
|
520
520
|
fontWeight: 700,
|
|
521
521
|
lineHeight: 1.2,
|
|
522
522
|
fontFamily: "var(--page-heading-font, inherit)"
|
|
523
|
-
},
|
|
523
|
+
}, pe = { margin: 0 }, K = {
|
|
524
524
|
display: "inline-block",
|
|
525
525
|
textDecoration: "none",
|
|
526
526
|
cursor: "pointer",
|
|
527
527
|
backgroundColor: "var(--page-accent, #111827)",
|
|
528
528
|
color: "var(--page-accent-text, #ffffff)"
|
|
529
|
-
},
|
|
529
|
+
}, me = {
|
|
530
530
|
flexGrow: 1,
|
|
531
531
|
display: "flex",
|
|
532
532
|
flexDirection: "column",
|
|
533
533
|
position: "relative"
|
|
534
|
-
},
|
|
534
|
+
}, he = {
|
|
535
535
|
display: "flex",
|
|
536
536
|
flexDirection: "column"
|
|
537
537
|
};
|
|
538
|
-
function
|
|
538
|
+
function ge({ style: e }) {
|
|
539
539
|
let t = e?.backgroundVideo;
|
|
540
540
|
if (!t) return null;
|
|
541
541
|
let n = {
|
|
@@ -561,7 +561,7 @@ function he({ style: e }) {
|
|
|
561
561
|
background: r
|
|
562
562
|
} })] });
|
|
563
563
|
}
|
|
564
|
-
var
|
|
564
|
+
var _e = (e, t) => e?.backgroundVideo ? {
|
|
565
565
|
position: "relative",
|
|
566
566
|
...t,
|
|
567
567
|
...h(e)
|
|
@@ -569,24 +569,24 @@ var ge = (e, t) => e?.backgroundVideo ? {
|
|
|
569
569
|
...t,
|
|
570
570
|
...h(e)
|
|
571
571
|
};
|
|
572
|
-
function
|
|
572
|
+
function ve({ style: e, nodeRef: t, children: n }) {
|
|
573
573
|
return /* @__PURE__ */ d("div", {
|
|
574
574
|
ref: t,
|
|
575
575
|
style: {
|
|
576
|
-
...
|
|
576
|
+
...me,
|
|
577
577
|
...h(e)
|
|
578
578
|
},
|
|
579
|
-
children: [/* @__PURE__ */ u(
|
|
579
|
+
children: [/* @__PURE__ */ u(ge, { style: e }), n]
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function ye({ style: e, nodeRef: t, children: n }) {
|
|
583
583
|
return /* @__PURE__ */ d("section", {
|
|
584
584
|
ref: t,
|
|
585
|
-
style:
|
|
586
|
-
children: [/* @__PURE__ */ u(
|
|
585
|
+
style: _e(e, he),
|
|
586
|
+
children: [/* @__PURE__ */ u(ge, { style: e }), n]
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function be({ style: e, freeLayout: t, nodeRef: n, children: r }) {
|
|
590
590
|
let i = t ? {
|
|
591
591
|
position: "relative",
|
|
592
592
|
minHeight: 240
|
|
@@ -595,32 +595,32 @@ function ye({ style: e, freeLayout: t, nodeRef: n, children: r }) {
|
|
|
595
595
|
ref: n,
|
|
596
596
|
style: i ? {
|
|
597
597
|
...i,
|
|
598
|
-
...
|
|
599
|
-
} :
|
|
600
|
-
children: [/* @__PURE__ */ u(
|
|
598
|
+
..._e(e)
|
|
599
|
+
} : _e(e),
|
|
600
|
+
children: [/* @__PURE__ */ u(ge, { style: e }), r]
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function xe({ text: e, parts: t, tag: n = "h2", style: r, linked: i, nodeRef: a }) {
|
|
604
604
|
return /* @__PURE__ */ u(n, {
|
|
605
605
|
ref: a,
|
|
606
606
|
style: {
|
|
607
|
-
...
|
|
607
|
+
...fe,
|
|
608
608
|
...h(r)
|
|
609
609
|
},
|
|
610
|
-
children:
|
|
610
|
+
children: q(t, e, i)
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
|
-
var
|
|
613
|
+
var Se = {
|
|
614
614
|
fontFamily: j.mono.value,
|
|
615
615
|
background: "rgba(148, 163, 184, 0.18)",
|
|
616
616
|
padding: "1px 5px",
|
|
617
617
|
borderRadius: 4,
|
|
618
618
|
fontSize: "0.9em"
|
|
619
619
|
};
|
|
620
|
-
function
|
|
620
|
+
function Ce(e, t = [], n, r) {
|
|
621
621
|
let i = e;
|
|
622
622
|
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", {
|
|
623
|
-
style:
|
|
623
|
+
style: Se,
|
|
624
624
|
children: i
|
|
625
625
|
})), 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", {
|
|
626
626
|
href: n,
|
|
@@ -630,13 +630,13 @@ function Se(e, t = [], n, r) {
|
|
|
630
630
|
children: i
|
|
631
631
|
})), i;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function q(t, n, r) {
|
|
634
634
|
return t?.length ? t.map((t, n) => {
|
|
635
635
|
if (t.slot) return /* @__PURE__ */ u(e, { children: r?.[t.slot] ?? null }, n);
|
|
636
|
-
if (t.parts) return /* @__PURE__ */ u(e, { children:
|
|
636
|
+
if (t.parts) return /* @__PURE__ */ u(e, { children: q(t.parts, "", r) }, n);
|
|
637
637
|
let i = t.text;
|
|
638
638
|
return t.sup ? i = /* @__PURE__ */ u("sup", { children: i }) : t.sub && (i = /* @__PURE__ */ u("sub", { children: i })), t.code && (i = /* @__PURE__ */ u("code", {
|
|
639
|
-
style:
|
|
639
|
+
style: Se,
|
|
640
640
|
children: i
|
|
641
641
|
})), 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", {
|
|
642
642
|
style: {
|
|
@@ -653,13 +653,13 @@ function J(t, n, r) {
|
|
|
653
653
|
})), /* @__PURE__ */ u(e, { children: i }, n);
|
|
654
654
|
}) : n;
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function we({ parts: e, text: t, marks: n, href: r, target: i, style: a }) {
|
|
657
657
|
return /* @__PURE__ */ u("span", {
|
|
658
658
|
style: h(a),
|
|
659
|
-
children: e?.length ?
|
|
659
|
+
children: e?.length ? q(e, t) : Ce(t, n, r, i)
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
var
|
|
662
|
+
var Te = {
|
|
663
663
|
h1: 40,
|
|
664
664
|
h2: 32,
|
|
665
665
|
h3: 26,
|
|
@@ -667,7 +667,7 @@ var we = {
|
|
|
667
667
|
h5: 19,
|
|
668
668
|
h6: 16
|
|
669
669
|
};
|
|
670
|
-
function
|
|
670
|
+
function Ee({ align: e = "center", width: t, wrap: n } = {}) {
|
|
671
671
|
let r = t ? `${t}%` : void 0;
|
|
672
672
|
if (e === "full") return { width: "100%" };
|
|
673
673
|
let i = e === "left" || e === "right";
|
|
@@ -701,8 +701,8 @@ function Te({ align: e = "center", width: t, wrap: n } = {}) {
|
|
|
701
701
|
marginRight: "auto"
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
let r = n ?? ((e, n) =>
|
|
704
|
+
function De(e = [], t, n) {
|
|
705
|
+
let r = n ?? ((e, n) => q(e, n, t));
|
|
706
706
|
return e.map((t, n) => {
|
|
707
707
|
let i = {
|
|
708
708
|
marginTop: 0,
|
|
@@ -724,7 +724,7 @@ function Ee(e = [], t, n) {
|
|
|
724
724
|
marginLeft: 0,
|
|
725
725
|
marginRight: 0,
|
|
726
726
|
...i,
|
|
727
|
-
...
|
|
727
|
+
...Ee(t)
|
|
728
728
|
},
|
|
729
729
|
children: [t.href ? /* @__PURE__ */ u("a", {
|
|
730
730
|
href: t.href,
|
|
@@ -743,16 +743,16 @@ function Ee(e = [], t, n) {
|
|
|
743
743
|
})]
|
|
744
744
|
}, n);
|
|
745
745
|
}
|
|
746
|
-
if (t.type === "video") return
|
|
746
|
+
if (t.type === "video") return Re(t.url) ? /* @__PURE__ */ u("div", {
|
|
747
747
|
style: {
|
|
748
748
|
...i,
|
|
749
|
-
...
|
|
749
|
+
...Ee({
|
|
750
750
|
align: t.align,
|
|
751
751
|
wrap: t.wrap,
|
|
752
752
|
width: t.width ?? 100
|
|
753
753
|
})
|
|
754
754
|
},
|
|
755
|
-
children: /* @__PURE__ */ u(
|
|
755
|
+
children: /* @__PURE__ */ u(ze, {
|
|
756
756
|
url: t.url,
|
|
757
757
|
autoplay: t.autoplay,
|
|
758
758
|
muted: t.muted,
|
|
@@ -814,17 +814,17 @@ function Ee(e = [], t, n) {
|
|
|
814
814
|
}
|
|
815
815
|
if (t.type === "quote") return /* @__PURE__ */ u("blockquote", {
|
|
816
816
|
style: {
|
|
817
|
-
...
|
|
817
|
+
...ke,
|
|
818
818
|
...i
|
|
819
819
|
},
|
|
820
820
|
children: r(t.parts, t.text)
|
|
821
821
|
}, n);
|
|
822
|
-
if (
|
|
822
|
+
if (Te[t.type]) {
|
|
823
823
|
let e = t.type;
|
|
824
824
|
return /* @__PURE__ */ u(e, {
|
|
825
825
|
style: {
|
|
826
|
-
...
|
|
827
|
-
fontSize:
|
|
826
|
+
...fe,
|
|
827
|
+
fontSize: Te[t.type],
|
|
828
828
|
...i
|
|
829
829
|
},
|
|
830
830
|
children: r(t.parts, t.text)
|
|
@@ -832,39 +832,39 @@ function Ee(e = [], t, n) {
|
|
|
832
832
|
}
|
|
833
833
|
return /* @__PURE__ */ u("p", {
|
|
834
834
|
style: {
|
|
835
|
-
...
|
|
835
|
+
...pe,
|
|
836
836
|
...i
|
|
837
837
|
},
|
|
838
838
|
children: r(t.parts, t.text)
|
|
839
839
|
}, n);
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Oe({ content: e, style: t, linked: n, nodeRef: r }) {
|
|
843
843
|
return /* @__PURE__ */ u("div", {
|
|
844
844
|
ref: r,
|
|
845
845
|
style: {
|
|
846
846
|
display: "flow-root",
|
|
847
847
|
...h(t)
|
|
848
848
|
},
|
|
849
|
-
children:
|
|
849
|
+
children: De(e, n)
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
|
-
var
|
|
852
|
+
var ke = {
|
|
853
853
|
margin: 0,
|
|
854
854
|
padding: "8px 0 8px 20px",
|
|
855
855
|
borderLeft: "4px solid var(--page-accent, rgba(148, 163, 184, 0.6))"
|
|
856
856
|
};
|
|
857
|
-
function
|
|
857
|
+
function Ae({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
|
|
858
858
|
return /* @__PURE__ */ u("blockquote", {
|
|
859
859
|
ref: i,
|
|
860
860
|
style: {
|
|
861
|
-
...
|
|
861
|
+
...ke,
|
|
862
862
|
...h(n)
|
|
863
863
|
},
|
|
864
|
-
children:
|
|
864
|
+
children: q(t, e, r)
|
|
865
865
|
});
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function je({ ordered: e, items: t = [], style: n, nodeRef: r }) {
|
|
868
868
|
return /* @__PURE__ */ u(e ? "ol" : "ul", {
|
|
869
869
|
ref: r,
|
|
870
870
|
style: {
|
|
@@ -874,53 +874,53 @@ function Ae({ ordered: e, items: t = [], style: n, nodeRef: r }) {
|
|
|
874
874
|
},
|
|
875
875
|
children: t.map((e, t) => /* @__PURE__ */ u("li", {
|
|
876
876
|
style: { marginBottom: 4 },
|
|
877
|
-
children:
|
|
877
|
+
children: q(e.parts, e.text)
|
|
878
878
|
}, t))
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function Me({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
|
|
882
882
|
return /* @__PURE__ */ u("p", {
|
|
883
883
|
ref: i,
|
|
884
884
|
style: {
|
|
885
|
-
...
|
|
885
|
+
...pe,
|
|
886
886
|
...h(n)
|
|
887
887
|
},
|
|
888
|
-
children:
|
|
888
|
+
children: q(t, e, r)
|
|
889
889
|
});
|
|
890
890
|
}
|
|
891
|
-
var
|
|
891
|
+
var Ne = {
|
|
892
892
|
color: "var(--page-accent, inherit)",
|
|
893
893
|
textDecoration: "underline",
|
|
894
894
|
textUnderlineOffset: 3,
|
|
895
895
|
cursor: "pointer"
|
|
896
896
|
};
|
|
897
|
-
function
|
|
897
|
+
function Pe({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRef: o }) {
|
|
898
898
|
return /* @__PURE__ */ u("a", {
|
|
899
899
|
ref: o,
|
|
900
900
|
href: n || "#",
|
|
901
901
|
target: r || void 0,
|
|
902
902
|
rel: r === "_blank" ? "noopener noreferrer" : void 0,
|
|
903
903
|
style: {
|
|
904
|
-
...
|
|
904
|
+
...Ne,
|
|
905
905
|
...h(i)
|
|
906
906
|
},
|
|
907
|
-
children:
|
|
907
|
+
children: q(t, e, a)
|
|
908
908
|
});
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function Fe({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRef: o }) {
|
|
911
911
|
return /* @__PURE__ */ u("a", {
|
|
912
912
|
ref: o,
|
|
913
913
|
href: n || "#",
|
|
914
914
|
target: r || void 0,
|
|
915
915
|
rel: r === "_blank" ? "noopener noreferrer" : void 0,
|
|
916
916
|
style: {
|
|
917
|
-
...
|
|
917
|
+
...K,
|
|
918
918
|
...h(i)
|
|
919
919
|
},
|
|
920
|
-
children:
|
|
920
|
+
children: q(t, e, a)
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Ie({ src: e, alt: t, style: n, nodeRef: r }) {
|
|
924
924
|
return e ? /* @__PURE__ */ u("img", {
|
|
925
925
|
ref: r,
|
|
926
926
|
src: e,
|
|
@@ -932,7 +932,7 @@ function Fe({ src: e, alt: t, style: n, nodeRef: r }) {
|
|
|
932
932
|
}
|
|
933
933
|
}) : null;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Le({ src: e, poster: t, controls: n = !0, autoplay: r = !1, loop: i = !1, muted: a = !1, style: o, nodeRef: s }) {
|
|
936
936
|
return e ? /* @__PURE__ */ u("video", {
|
|
937
937
|
ref: s,
|
|
938
938
|
src: e,
|
|
@@ -950,9 +950,9 @@ function Ie({ src: e, poster: t, controls: n = !0, autoplay: r = !1, loop: i = !
|
|
|
950
950
|
}
|
|
951
951
|
}) : null;
|
|
952
952
|
}
|
|
953
|
-
var
|
|
954
|
-
function
|
|
955
|
-
let c =
|
|
953
|
+
var Re = (e = "") => (e.match(/(?:youtu\.be\/|v=|embed\/|shorts\/|live\/)([\w-]{11})/) || e.match(/^([\w-]{11})$/))?.[1];
|
|
954
|
+
function ze({ url: e, autoplay: t = !1, muted: n = !1, loop: r = !1, controls: i = !0, start: a, style: o, nodeRef: s }) {
|
|
955
|
+
let c = Re(e);
|
|
956
956
|
if (!c) return null;
|
|
957
957
|
let l = new URLSearchParams({ rel: "0" });
|
|
958
958
|
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", {
|
|
@@ -978,7 +978,7 @@ function Re({ url: e, autoplay: t = !1, muted: n = !1, loop: r = !1, controls: i
|
|
|
978
978
|
})
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Be({ src: e, title: t, allowFullscreen: n = !0, style: r, nodeRef: i }) {
|
|
982
982
|
return e ? /* @__PURE__ */ u("iframe", {
|
|
983
983
|
ref: i,
|
|
984
984
|
src: e,
|
|
@@ -994,7 +994,7 @@ function ze({ src: e, title: t, allowFullscreen: n = !0, style: r, nodeRef: i })
|
|
|
994
994
|
}
|
|
995
995
|
}) : null;
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function Ve({ code: e, runScripts: t = !0, style: n, nodeRef: r }) {
|
|
998
998
|
let [a, o] = c(null);
|
|
999
999
|
return i(() => {
|
|
1000
1000
|
a && (a.innerHTML = e || "", t && a.querySelectorAll("script").forEach((e) => {
|
|
@@ -1013,7 +1013,7 @@ function Be({ code: e, runScripts: t = !0, style: n, nodeRef: r }) {
|
|
|
1013
1013
|
style: h(n)
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function He({ height: e, nodeRef: t }) {
|
|
1017
1017
|
return /* @__PURE__ */ u("div", {
|
|
1018
1018
|
ref: t,
|
|
1019
1019
|
style: {
|
|
@@ -1023,7 +1023,7 @@ function Ve({ height: e, nodeRef: t }) {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function Ue({ style: e, nodeRef: t }) {
|
|
1027
1027
|
return /* @__PURE__ */ u("div", {
|
|
1028
1028
|
ref: t,
|
|
1029
1029
|
style: {
|
|
@@ -1034,7 +1034,7 @@ function He({ style: e, nodeRef: t }) {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
|
-
var
|
|
1037
|
+
var We = {
|
|
1038
1038
|
position: "absolute",
|
|
1039
1039
|
top: "50%",
|
|
1040
1040
|
transform: "translateY(-50%)",
|
|
@@ -1051,7 +1051,7 @@ var Ue = {
|
|
|
1051
1051
|
alignItems: "center",
|
|
1052
1052
|
justifyContent: "center",
|
|
1053
1053
|
padding: 0
|
|
1054
|
-
},
|
|
1054
|
+
}, Ge = {
|
|
1055
1055
|
bottom: {
|
|
1056
1056
|
inset: "auto 0 0 0",
|
|
1057
1057
|
padding: "40px 24px 20px",
|
|
@@ -1070,8 +1070,8 @@ var Ue = {
|
|
|
1070
1070
|
padding: 24,
|
|
1071
1071
|
textShadow: "0 2px 12px rgba(0, 0, 0, 0.6)"
|
|
1072
1072
|
}
|
|
1073
|
-
},
|
|
1074
|
-
function
|
|
1073
|
+
}, Ke = 48;
|
|
1074
|
+
function qe({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, height: a = 320, swipe: o = !0, style: s, nodeRef: f }) {
|
|
1075
1075
|
let [p, m] = c(0), [g, _] = c(!1), [v, y] = c(null), b = e ? Math.min(p, e - 1) : 0;
|
|
1076
1076
|
if (i(() => {
|
|
1077
1077
|
if (!n || g || v || e < 2) return;
|
|
@@ -1087,7 +1087,7 @@ function Ke({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1087
1087
|
let x = (t) => m((t + e) % e), S = () => {
|
|
1088
1088
|
if (!v) return;
|
|
1089
1089
|
let { dx: e } = v;
|
|
1090
|
-
y(null), e < -48 ? x(b + 1) : e >
|
|
1090
|
+
y(null), e < -48 ? x(b + 1) : e > Ke && x(b - 1);
|
|
1091
1091
|
};
|
|
1092
1092
|
return /* @__PURE__ */ d("div", {
|
|
1093
1093
|
ref: f,
|
|
@@ -1135,7 +1135,7 @@ function Ke({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1135
1135
|
type: "button",
|
|
1136
1136
|
"aria-label": "Previous slide",
|
|
1137
1137
|
style: {
|
|
1138
|
-
...
|
|
1138
|
+
...We,
|
|
1139
1139
|
left: 12
|
|
1140
1140
|
},
|
|
1141
1141
|
onClick: () => x(b - 1),
|
|
@@ -1145,7 +1145,7 @@ function Ke({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1145
1145
|
type: "button",
|
|
1146
1146
|
"aria-label": "Next slide",
|
|
1147
1147
|
style: {
|
|
1148
|
-
...
|
|
1148
|
+
...We,
|
|
1149
1149
|
right: 12
|
|
1150
1150
|
},
|
|
1151
1151
|
onClick: () => x(b + 1),
|
|
@@ -1179,7 +1179,7 @@ function Ke({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1179
1179
|
] })]
|
|
1180
1180
|
});
|
|
1181
1181
|
}
|
|
1182
|
-
var
|
|
1182
|
+
var Je = (e, t) => ({
|
|
1183
1183
|
position: "absolute",
|
|
1184
1184
|
inset: 0,
|
|
1185
1185
|
backgroundImage: e ? `url(${e})` : "none",
|
|
@@ -1187,18 +1187,18 @@ var qe = (e, t) => ({
|
|
|
1187
1187
|
backgroundSize: "cover",
|
|
1188
1188
|
backgroundPosition: "center"
|
|
1189
1189
|
});
|
|
1190
|
-
function
|
|
1191
|
-
return e.length ? /* @__PURE__ */ u(
|
|
1190
|
+
function Ye({ slides: e = [], captionPosition: t = "bottom", captionAlign: n = "left", ...r }) {
|
|
1191
|
+
return e.length ? /* @__PURE__ */ u(qe, {
|
|
1192
1192
|
...r,
|
|
1193
1193
|
count: e.length,
|
|
1194
1194
|
renderSlide: (r) => {
|
|
1195
1195
|
let i = e[r];
|
|
1196
|
-
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style:
|
|
1196
|
+
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style: Je(i.image) }), (i.title || i.text) && /* @__PURE__ */ d("div", {
|
|
1197
1197
|
style: {
|
|
1198
1198
|
position: "absolute",
|
|
1199
1199
|
color: "#fff",
|
|
1200
1200
|
textAlign: n,
|
|
1201
|
-
...
|
|
1201
|
+
...Ge[t] ?? Ge.bottom
|
|
1202
1202
|
},
|
|
1203
1203
|
children: [i.title && /* @__PURE__ */ u("div", {
|
|
1204
1204
|
style: {
|
|
@@ -1218,13 +1218,13 @@ function Je({ slides: e = [], captionPosition: t = "bottom", captionAlign: n = "
|
|
|
1218
1218
|
}
|
|
1219
1219
|
}) : null;
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return e.length ? /* @__PURE__ */ u(
|
|
1221
|
+
function Xe({ slides: e = [], linked: t, ...n }) {
|
|
1222
|
+
return e.length ? /* @__PURE__ */ u(qe, {
|
|
1223
1223
|
...n,
|
|
1224
1224
|
count: e.length,
|
|
1225
1225
|
renderSlide: (n) => {
|
|
1226
1226
|
let r = e[n];
|
|
1227
|
-
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style:
|
|
1227
|
+
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style: Je(r.image, r.color) }), /* @__PURE__ */ u("div", {
|
|
1228
1228
|
style: {
|
|
1229
1229
|
position: "absolute",
|
|
1230
1230
|
inset: 0,
|
|
@@ -1236,7 +1236,7 @@ function Ye({ slides: e = [], linked: t, ...n }) {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
}) : null;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function Ze({ images: e = [], columns: t = 3, gap: n = 8, showNames: r = !1, lightbox: a = !0, style: o, nodeRef: s, inert: f }) {
|
|
1240
1240
|
let p = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.src) : [], m = Math.max(0, Number(n) || 0), g = f ? (e) => e.preventDefault() : void 0, [_, v] = c(null), y = a && !f && _ !== null && p[_];
|
|
1241
1241
|
i(() => {
|
|
1242
1242
|
if (!y) return;
|
|
@@ -1435,19 +1435,19 @@ function Xe({ images: e = [], columns: t = 3, gap: n = 8, showNames: r = !1, lig
|
|
|
1435
1435
|
]
|
|
1436
1436
|
});
|
|
1437
1437
|
}
|
|
1438
|
-
var
|
|
1438
|
+
var Qe = {
|
|
1439
1439
|
color: "inherit",
|
|
1440
1440
|
textDecoration: "none",
|
|
1441
1441
|
fontSize: 14,
|
|
1442
1442
|
opacity: .85
|
|
1443
|
-
},
|
|
1443
|
+
}, $e = {
|
|
1444
1444
|
background: "var(--page-bg, #ffffff)",
|
|
1445
1445
|
color: "var(--page-text, #111827)",
|
|
1446
1446
|
border: "1px solid rgba(148, 163, 184, 0.25)",
|
|
1447
1447
|
boxShadow: "0 16px 40px rgba(15, 23, 42, 0.16)",
|
|
1448
1448
|
zIndex: 60
|
|
1449
1449
|
};
|
|
1450
|
-
function
|
|
1450
|
+
function et({ brand: t, logo: n, brandHref: r, brandTarget: a, links: o = [], style: s, nodeRef: f, menu: p = "auto", breakpoint: m = 768 }) {
|
|
1451
1451
|
let [g, _] = c(null), [v, y] = c(!1), [b, x] = c(!1), [S, C] = c(null);
|
|
1452
1452
|
i(() => {
|
|
1453
1453
|
if (!g) return;
|
|
@@ -1457,7 +1457,7 @@ function Qe({ brand: t, logo: n, brandHref: r, brandTarget: a, links: o = [], st
|
|
|
1457
1457
|
let w = p === "hamburger" || p === "auto" && v, T = (e, t) => /* @__PURE__ */ d("a", {
|
|
1458
1458
|
href: e.href || "#",
|
|
1459
1459
|
style: {
|
|
1460
|
-
...
|
|
1460
|
+
...Qe,
|
|
1461
1461
|
display: "block",
|
|
1462
1462
|
...t
|
|
1463
1463
|
},
|
|
@@ -1545,7 +1545,7 @@ function Qe({ brand: t, logo: n, brandHref: r, brandTarget: a, links: o = [], st
|
|
|
1545
1545
|
let t = e.children ?? [];
|
|
1546
1546
|
if (!t.length) return /* @__PURE__ */ u("a", {
|
|
1547
1547
|
href: e.href || "#",
|
|
1548
|
-
style:
|
|
1548
|
+
style: Qe,
|
|
1549
1549
|
children: e.label
|
|
1550
1550
|
}, e.key);
|
|
1551
1551
|
let n = e.type === "mega";
|
|
@@ -1559,7 +1559,7 @@ function Qe({ brand: t, logo: n, brandHref: r, brandTarget: a, links: o = [], st
|
|
|
1559
1559
|
children: [/* @__PURE__ */ d("a", {
|
|
1560
1560
|
href: e.href || "#",
|
|
1561
1561
|
style: {
|
|
1562
|
-
...
|
|
1562
|
+
...Qe,
|
|
1563
1563
|
cursor: "pointer"
|
|
1564
1564
|
},
|
|
1565
1565
|
children: [
|
|
@@ -1575,7 +1575,7 @@ function Qe({ brand: t, logo: n, brandHref: r, brandTarget: a, links: o = [], st
|
|
|
1575
1575
|
]
|
|
1576
1576
|
}), S === e.key && (n ? /* @__PURE__ */ u("div", {
|
|
1577
1577
|
style: {
|
|
1578
|
-
|
|
1578
|
+
...$e,
|
|
1579
1579
|
position: "absolute",
|
|
1580
1580
|
left: 0,
|
|
1581
1581
|
right: 0,
|
|
@@ -1591,7 +1591,7 @@ function Qe({ brand: t, logo: n, brandHref: r, brandTarget: a, links: o = [], st
|
|
|
1591
1591
|
}))
|
|
1592
1592
|
}) : /* @__PURE__ */ u("div", {
|
|
1593
1593
|
style: {
|
|
1594
|
-
|
|
1594
|
+
...$e,
|
|
1595
1595
|
position: "absolute",
|
|
1596
1596
|
top: "100%",
|
|
1597
1597
|
left: 0,
|
|
@@ -1620,7 +1620,7 @@ function Qe({ brand: t, logo: n, brandHref: r, brandTarget: a, links: o = [], st
|
|
|
1620
1620
|
children: o.map((t) => /* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u("a", {
|
|
1621
1621
|
href: t.href || "#",
|
|
1622
1622
|
style: {
|
|
1623
|
-
...
|
|
1623
|
+
...Qe,
|
|
1624
1624
|
padding: "10px 4px",
|
|
1625
1625
|
fontWeight: (t.children ?? []).length ? 600 : 400,
|
|
1626
1626
|
opacity: 1
|
|
@@ -1631,7 +1631,7 @@ function Qe({ brand: t, logo: n, brandHref: r, brandTarget: a, links: o = [], st
|
|
|
1631
1631
|
]
|
|
1632
1632
|
});
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function tt({ tabs: e = [], linked: t, style: n, nodeRef: r }) {
|
|
1635
1635
|
let [i, a] = c(0), o = e.length ? Math.min(i, e.length - 1) : 0;
|
|
1636
1636
|
return e.length ? /* @__PURE__ */ d("div", {
|
|
1637
1637
|
ref: r,
|
|
@@ -1671,7 +1671,7 @@ function $e({ tabs: e = [], linked: t, style: n, nodeRef: r }) {
|
|
|
1671
1671
|
}, e.key))]
|
|
1672
1672
|
}) : null;
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function nt({ items: e = [], linked: t, multiple: n = !1, style: r, nodeRef: i }) {
|
|
1675
1675
|
let [a, o] = c(() => new Set(e.length ? [e[0].key] : []));
|
|
1676
1676
|
if (!e.length) return null;
|
|
1677
1677
|
let s = (e) => o((t) => {
|
|
@@ -1728,15 +1728,15 @@ function et({ items: e = [], linked: t, multiple: n = !1, style: r, nodeRef: i }
|
|
|
1728
1728
|
})
|
|
1729
1729
|
});
|
|
1730
1730
|
}
|
|
1731
|
-
var
|
|
1731
|
+
var rt = {
|
|
1732
1732
|
display: "flex",
|
|
1733
1733
|
flexDirection: "column",
|
|
1734
1734
|
gap: "12px"
|
|
1735
|
-
},
|
|
1735
|
+
}, J = {
|
|
1736
1736
|
fontSize: "14px",
|
|
1737
1737
|
fontWeight: 500,
|
|
1738
1738
|
color: "var(--page-text, #111827)"
|
|
1739
|
-
},
|
|
1739
|
+
}, Y = {
|
|
1740
1740
|
padding: "10px 12px",
|
|
1741
1741
|
border: "1px solid #d1d5db",
|
|
1742
1742
|
borderRadius: "6px",
|
|
@@ -1746,18 +1746,18 @@ var tt = {
|
|
|
1746
1746
|
boxSizing: "border-box",
|
|
1747
1747
|
backgroundColor: "#ffffff",
|
|
1748
1748
|
color: "#111827"
|
|
1749
|
-
},
|
|
1749
|
+
}, it = {
|
|
1750
1750
|
display: "flex",
|
|
1751
1751
|
alignItems: "center",
|
|
1752
1752
|
gap: "8px",
|
|
1753
1753
|
fontSize: "14px",
|
|
1754
1754
|
color: "var(--page-text, #111827)"
|
|
1755
|
-
},
|
|
1755
|
+
}, X = (e) => e ? {
|
|
1756
1756
|
readOnly: !0,
|
|
1757
1757
|
tabIndex: -1,
|
|
1758
1758
|
onMouseDown: (e) => e.preventDefault()
|
|
1759
1759
|
} : {};
|
|
1760
|
-
function
|
|
1760
|
+
function at(e, t) {
|
|
1761
1761
|
if (!e) return !0;
|
|
1762
1762
|
let n = t[e.field], r = n == null || n === "" ? "" : String(n), i = e.value ?? "";
|
|
1763
1763
|
switch (e.op) {
|
|
@@ -1771,11 +1771,11 @@ function rt(e, t) {
|
|
|
1771
1771
|
default: return !1;
|
|
1772
1772
|
}
|
|
1773
1773
|
}
|
|
1774
|
-
var
|
|
1774
|
+
var ot = {
|
|
1775
1775
|
display: "flex",
|
|
1776
1776
|
flexDirection: "column",
|
|
1777
1777
|
gap: 6
|
|
1778
|
-
},
|
|
1778
|
+
}, st = {
|
|
1779
1779
|
font: "inherit",
|
|
1780
1780
|
fontSize: 15,
|
|
1781
1781
|
padding: "10px 12px",
|
|
@@ -1786,16 +1786,16 @@ var it = {
|
|
|
1786
1786
|
width: "100%",
|
|
1787
1787
|
boxSizing: "border-box"
|
|
1788
1788
|
};
|
|
1789
|
-
function
|
|
1789
|
+
function ct(e, t) {
|
|
1790
1790
|
let n = Array.isArray(e?.options) ? e.options : [];
|
|
1791
1791
|
if (!e?.parentField) return n;
|
|
1792
1792
|
let r = t?.[e.parentField];
|
|
1793
1793
|
return r ? n.filter((e) => typeof e == "string" ? !1 : !e.parent || e.parent === r) : [];
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1795
|
+
function lt({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
1796
1796
|
let a = /* @__PURE__ */ d("span", {
|
|
1797
1797
|
style: {
|
|
1798
|
-
...
|
|
1798
|
+
...J,
|
|
1799
1799
|
fontSize: 14
|
|
1800
1800
|
},
|
|
1801
1801
|
children: [e.label, e.required ? " *" : ""]
|
|
@@ -1804,7 +1804,7 @@ function st({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
1804
1804
|
required: e.required || void 0,
|
|
1805
1805
|
placeholder: e.placeholder || void 0,
|
|
1806
1806
|
disabled: r || void 0,
|
|
1807
|
-
style:
|
|
1807
|
+
style: st,
|
|
1808
1808
|
value: t ?? "",
|
|
1809
1809
|
onChange: (t) => n(e.name, t.target.value)
|
|
1810
1810
|
};
|
|
@@ -1833,7 +1833,7 @@ function st({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
1833
1833
|
borderRadius: 8,
|
|
1834
1834
|
display: "block"
|
|
1835
1835
|
}
|
|
1836
|
-
}) : null : e.type === "video" ? e.src ? /youtube\.com|youtu\.be|vimeo\.com/i.test(e.src) ? /* @__PURE__ */ u(
|
|
1836
|
+
}) : null : e.type === "video" ? e.src ? /youtube\.com|youtu\.be|vimeo\.com/i.test(e.src) ? /* @__PURE__ */ u(ze, {
|
|
1837
1837
|
url: e.src,
|
|
1838
1838
|
style: { width: "100%" }
|
|
1839
1839
|
}) : /* @__PURE__ */ u("video", {
|
|
@@ -1845,14 +1845,14 @@ function st({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
1845
1845
|
display: "block"
|
|
1846
1846
|
}
|
|
1847
1847
|
}) : null : /* @__PURE__ */ d("label", {
|
|
1848
|
-
style:
|
|
1848
|
+
style: ot,
|
|
1849
1849
|
children: [
|
|
1850
1850
|
a,
|
|
1851
1851
|
e.type === "textarea" || e.multiline ? /* @__PURE__ */ u("textarea", {
|
|
1852
1852
|
...o,
|
|
1853
1853
|
rows: 4,
|
|
1854
1854
|
style: {
|
|
1855
|
-
...
|
|
1855
|
+
...st,
|
|
1856
1856
|
resize: "vertical"
|
|
1857
1857
|
}
|
|
1858
1858
|
}) : e.type === "select" ? /* @__PURE__ */ d("select", {
|
|
@@ -1861,7 +1861,7 @@ function st({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
1861
1861
|
children: [/* @__PURE__ */ u("option", {
|
|
1862
1862
|
value: "",
|
|
1863
1863
|
children: e.placeholder || "—"
|
|
1864
|
-
}),
|
|
1864
|
+
}), ct(e, i).map((e, t) => /* @__PURE__ */ u("option", {
|
|
1865
1865
|
value: typeof e == "string" ? e : e.value,
|
|
1866
1866
|
children: typeof e == "string" ? e : e.label ?? e.value
|
|
1867
1867
|
}, t))]
|
|
@@ -1908,8 +1908,8 @@ function st({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
1908
1908
|
]
|
|
1909
1909
|
});
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1912
|
-
let { tenant: b, apiUrl: x } = r(
|
|
1911
|
+
function ut({ 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 }) {
|
|
1912
|
+
let { tenant: b, apiUrl: x } = r(B), [S, C] = c("form"), [w, T] = c(null), [E, D] = c({}), [O, k] = c(0), A = g ? y || "form" : S;
|
|
1913
1913
|
i(() => {
|
|
1914
1914
|
if (!f || !s) return;
|
|
1915
1915
|
let e = !0;
|
|
@@ -1930,9 +1930,9 @@ function ct({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
1930
1930
|
section: e,
|
|
1931
1931
|
fields: []
|
|
1932
1932
|
}) : j[j.length - 1].fields.push(e);
|
|
1933
|
-
let M = j.filter((e) => e.section || e.fields.length), N = M.filter((e) => !e.section ||
|
|
1933
|
+
let M = j.filter((e) => e.section || e.fields.length), N = M.filter((e) => !e.section || at(e.section.condition, E)).map((e) => ({
|
|
1934
1934
|
...e,
|
|
1935
|
-
fields: e.fields.filter((e) =>
|
|
1935
|
+
fields: e.fields.filter((e) => at(e.condition, E))
|
|
1936
1936
|
})), P = M.length > 1, F = Math.min(O, Math.max(0, N.length - 1)), I = P ? N[F]?.fields ?? [] : N.flatMap((e) => e.fields), ee = I.filter((e) => {
|
|
1937
1937
|
let t = E[e.name];
|
|
1938
1938
|
return e.required && (t == null || t === "" || t === !1);
|
|
@@ -1990,11 +1990,11 @@ function ct({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
1990
1990
|
}
|
|
1991
1991
|
},
|
|
1992
1992
|
style: {
|
|
1993
|
-
...
|
|
1993
|
+
...rt,
|
|
1994
1994
|
display: A === "success" ? "none" : "flex"
|
|
1995
1995
|
},
|
|
1996
1996
|
children: f && s ? /* @__PURE__ */ d(l, { children: [
|
|
1997
|
-
P && /* @__PURE__ */ u(
|
|
1997
|
+
P && /* @__PURE__ */ u(jt, {
|
|
1998
1998
|
steps: N.map((e) => ({ label: e.section?.label ?? "Start" })),
|
|
1999
1999
|
active: F + 1,
|
|
2000
2000
|
style: { marginBottom: 8 }
|
|
@@ -2007,7 +2007,7 @@ function ct({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
2007
2007
|
},
|
|
2008
2008
|
children: N[F].section.help
|
|
2009
2009
|
}),
|
|
2010
|
-
I.map((e) => /* @__PURE__ */ u(
|
|
2010
|
+
I.map((e) => /* @__PURE__ */ u(lt, {
|
|
2011
2011
|
field: e,
|
|
2012
2012
|
value: E[e.name],
|
|
2013
2013
|
values: E,
|
|
@@ -2026,7 +2026,7 @@ function ct({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
2026
2026
|
disabled: g || void 0,
|
|
2027
2027
|
onClick: () => k(F - 1),
|
|
2028
2028
|
style: {
|
|
2029
|
-
...
|
|
2029
|
+
...K,
|
|
2030
2030
|
background: "transparent",
|
|
2031
2031
|
color: "inherit",
|
|
2032
2032
|
border: 0,
|
|
@@ -2039,7 +2039,7 @@ function ct({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
2039
2039
|
disabled: g || ee.length > 0,
|
|
2040
2040
|
onClick: () => k(F + 1),
|
|
2041
2041
|
style: {
|
|
2042
|
-
...
|
|
2042
|
+
...K,
|
|
2043
2043
|
border: 0,
|
|
2044
2044
|
padding: "10px 22px",
|
|
2045
2045
|
borderRadius: 8,
|
|
@@ -2053,7 +2053,7 @@ function ct({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
2053
2053
|
type: "submit",
|
|
2054
2054
|
disabled: g || void 0,
|
|
2055
2055
|
style: {
|
|
2056
|
-
...
|
|
2056
|
+
...K,
|
|
2057
2057
|
border: 0,
|
|
2058
2058
|
padding: "10px 22px",
|
|
2059
2059
|
borderRadius: 8,
|
|
@@ -2080,24 +2080,36 @@ function ct({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
2080
2080
|
]
|
|
2081
2081
|
});
|
|
2082
2082
|
}
|
|
2083
|
-
var
|
|
2084
|
-
|
|
2085
|
-
if (
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
}
|
|
2090
|
-
|
|
2091
|
-
|
|
2083
|
+
var Z = null, dt = null, ft = (e) => {
|
|
2084
|
+
let t = typeof e == "string" && e.trim() ? e.trim() : "";
|
|
2085
|
+
if (Z && dt === t) return Z;
|
|
2086
|
+
if (Z && typeof window < "u") {
|
|
2087
|
+
for (let e of ["grecaptcha", "___grecaptcha_cfg"]) try {
|
|
2088
|
+
delete window[e];
|
|
2089
|
+
} catch {
|
|
2090
|
+
window[e] = void 0;
|
|
2091
|
+
}
|
|
2092
|
+
document.querySelectorAll("script[src*=\"recaptcha\"]").forEach((e) => e.remove());
|
|
2093
|
+
}
|
|
2094
|
+
return dt = t, Z = new Promise((e) => {
|
|
2095
|
+
if (typeof window > "u") return;
|
|
2096
|
+
if (window.grecaptcha?.render) return e(window.grecaptcha);
|
|
2097
|
+
window.__webimRecaptchaReady = () => e(window.grecaptcha);
|
|
2098
|
+
let n = document.createElement("script");
|
|
2099
|
+
n.src = `https://www.google.com/recaptcha/api.js?onload=__webimRecaptchaReady&render=explicit${t ? `&hl=${encodeURIComponent(t)}` : ""}`, n.async = !0, document.head.appendChild(n);
|
|
2100
|
+
}), Z;
|
|
2101
|
+
};
|
|
2102
|
+
function pt({ siteKey: e, theme: t, size: n, hl: a, style: o, nodeRef: c, inert: l }) {
|
|
2103
|
+
let f = r(B), p = f?.settings && typeof f.settings == "object" ? f.settings["google.recaptchaKey"] : "", m = typeof e == "string" && e.trim() || (typeof p == "string" ? p.trim() : ""), g = s(null);
|
|
2092
2104
|
if (i(() => {
|
|
2093
|
-
if (
|
|
2105
|
+
if (l || !m || !g.current) return;
|
|
2094
2106
|
let e = !0;
|
|
2095
|
-
return
|
|
2096
|
-
if (!(!e || g.current || !
|
|
2097
|
-
g.current =
|
|
2107
|
+
return ft(a).then((r) => {
|
|
2108
|
+
if (!(!e || !g.current || !r?.render)) {
|
|
2109
|
+
g.current.innerHTML = "";
|
|
2098
2110
|
try {
|
|
2099
|
-
r.render(
|
|
2100
|
-
sitekey:
|
|
2111
|
+
r.render(g.current, {
|
|
2112
|
+
sitekey: m,
|
|
2101
2113
|
theme: t === "dark" ? "dark" : "light",
|
|
2102
2114
|
size: n === "compact" ? "compact" : "normal"
|
|
2103
2115
|
});
|
|
@@ -2107,15 +2119,16 @@ function dt({ siteKey: e, theme: t, size: n, style: a, nodeRef: o, inert: c }) {
|
|
|
2107
2119
|
e = !1;
|
|
2108
2120
|
};
|
|
2109
2121
|
}, [
|
|
2110
|
-
|
|
2111
|
-
|
|
2122
|
+
l,
|
|
2123
|
+
m,
|
|
2112
2124
|
t,
|
|
2113
|
-
n
|
|
2114
|
-
|
|
2125
|
+
n,
|
|
2126
|
+
a
|
|
2127
|
+
]), l) {
|
|
2115
2128
|
let e = t === "dark";
|
|
2116
2129
|
return /* @__PURE__ */ d("div", {
|
|
2117
|
-
ref:
|
|
2118
|
-
style: h(
|
|
2130
|
+
ref: c,
|
|
2131
|
+
style: h(o),
|
|
2119
2132
|
children: [/* @__PURE__ */ d("div", {
|
|
2120
2133
|
style: {
|
|
2121
2134
|
width: n === "compact" ? 164 : 302,
|
|
@@ -2154,7 +2167,7 @@ function dt({ siteKey: e, theme: t, size: n, style: a, nodeRef: o, inert: c }) {
|
|
|
2154
2167
|
children: "reCAPTCHA"
|
|
2155
2168
|
})
|
|
2156
2169
|
]
|
|
2157
|
-
}), !
|
|
2170
|
+
}), !m && /* @__PURE__ */ u("div", {
|
|
2158
2171
|
style: {
|
|
2159
2172
|
marginTop: 6,
|
|
2160
2173
|
fontSize: 11,
|
|
@@ -2164,23 +2177,23 @@ function dt({ siteKey: e, theme: t, size: n, style: a, nodeRef: o, inert: c }) {
|
|
|
2164
2177
|
})]
|
|
2165
2178
|
});
|
|
2166
2179
|
}
|
|
2167
|
-
return
|
|
2168
|
-
ref:
|
|
2169
|
-
style: h(
|
|
2170
|
-
children: /* @__PURE__ */ u("div", { ref:
|
|
2180
|
+
return m ? /* @__PURE__ */ u("div", {
|
|
2181
|
+
ref: c,
|
|
2182
|
+
style: h(o),
|
|
2183
|
+
children: /* @__PURE__ */ u("div", { ref: g })
|
|
2171
2184
|
}) : null;
|
|
2172
2185
|
}
|
|
2173
|
-
function
|
|
2186
|
+
function mt({ text: e, parts: t, style: n, nodeRef: r, linked: i }) {
|
|
2174
2187
|
return /* @__PURE__ */ u("label", {
|
|
2175
2188
|
ref: r,
|
|
2176
2189
|
style: {
|
|
2177
|
-
...
|
|
2190
|
+
...J,
|
|
2178
2191
|
...h(n)
|
|
2179
2192
|
},
|
|
2180
|
-
children:
|
|
2193
|
+
children: q(t, e, i)
|
|
2181
2194
|
});
|
|
2182
2195
|
}
|
|
2183
|
-
function
|
|
2196
|
+
function ht({ type: e = "text", name: t, placeholder: n, required: r, style: i, nodeRef: a, inert: o }) {
|
|
2184
2197
|
return /* @__PURE__ */ u("input", {
|
|
2185
2198
|
ref: a,
|
|
2186
2199
|
type: e,
|
|
@@ -2188,13 +2201,13 @@ function pt({ type: e = "text", name: t, placeholder: n, required: r, style: i,
|
|
|
2188
2201
|
placeholder: n,
|
|
2189
2202
|
required: !o && !!r,
|
|
2190
2203
|
style: {
|
|
2191
|
-
...
|
|
2204
|
+
...Y,
|
|
2192
2205
|
...h(i)
|
|
2193
2206
|
},
|
|
2194
|
-
...
|
|
2207
|
+
...X(o)
|
|
2195
2208
|
});
|
|
2196
2209
|
}
|
|
2197
|
-
function
|
|
2210
|
+
function gt({ name: e, placeholder: t, rows: n = 4, required: r, style: i, nodeRef: a, inert: o }) {
|
|
2198
2211
|
return /* @__PURE__ */ u("textarea", {
|
|
2199
2212
|
ref: a,
|
|
2200
2213
|
name: e || void 0,
|
|
@@ -2202,18 +2215,18 @@ function mt({ name: e, placeholder: t, rows: n = 4, required: r, style: i, nodeR
|
|
|
2202
2215
|
rows: n,
|
|
2203
2216
|
required: !o && !!r,
|
|
2204
2217
|
style: {
|
|
2205
|
-
...
|
|
2218
|
+
...Y,
|
|
2206
2219
|
resize: "vertical",
|
|
2207
2220
|
...h(i)
|
|
2208
2221
|
},
|
|
2209
|
-
...
|
|
2222
|
+
...X(o)
|
|
2210
2223
|
});
|
|
2211
2224
|
}
|
|
2212
|
-
function
|
|
2225
|
+
function _t({ kind: e = "checkbox", label: t, name: n, value: r, required: i, style: a, nodeRef: o, inert: s }) {
|
|
2213
2226
|
return /* @__PURE__ */ d("label", {
|
|
2214
2227
|
ref: o,
|
|
2215
2228
|
style: {
|
|
2216
|
-
...
|
|
2229
|
+
...it,
|
|
2217
2230
|
...h(a)
|
|
2218
2231
|
},
|
|
2219
2232
|
children: [/* @__PURE__ */ u("input", {
|
|
@@ -2230,7 +2243,7 @@ function ht({ kind: e = "checkbox", label: t, name: n, value: r, required: i, st
|
|
|
2230
2243
|
}), t]
|
|
2231
2244
|
});
|
|
2232
2245
|
}
|
|
2233
|
-
function
|
|
2246
|
+
function vt({ name: e, placeholder: t, options: n = [], required: r, style: i, nodeRef: a, inert: o }) {
|
|
2234
2247
|
return /* @__PURE__ */ d("select", {
|
|
2235
2248
|
ref: a,
|
|
2236
2249
|
name: e || void 0,
|
|
@@ -2239,7 +2252,7 @@ function gt({ name: e, placeholder: t, options: n = [], required: r, style: i, n
|
|
|
2239
2252
|
onMouseDown: o ? (e) => e.preventDefault() : void 0,
|
|
2240
2253
|
tabIndex: o ? -1 : void 0,
|
|
2241
2254
|
style: {
|
|
2242
|
-
...
|
|
2255
|
+
...Y,
|
|
2243
2256
|
appearance: "auto",
|
|
2244
2257
|
...h(i)
|
|
2245
2258
|
},
|
|
@@ -2253,12 +2266,12 @@ function gt({ name: e, placeholder: t, options: n = [], required: r, style: i, n
|
|
|
2253
2266
|
}, t))]
|
|
2254
2267
|
});
|
|
2255
2268
|
}
|
|
2256
|
-
function
|
|
2269
|
+
function yt({ name: e, accept: t, required: n, text: r = "Choose a file…", style: i, nodeRef: a, inert: o }) {
|
|
2257
2270
|
let [s, l] = c(null);
|
|
2258
2271
|
return /* @__PURE__ */ d("label", {
|
|
2259
2272
|
ref: a,
|
|
2260
2273
|
style: {
|
|
2261
|
-
...
|
|
2274
|
+
...Y,
|
|
2262
2275
|
display: "flex",
|
|
2263
2276
|
alignItems: "center",
|
|
2264
2277
|
gap: "8px",
|
|
@@ -2285,12 +2298,12 @@ function _t({ name: e, accept: t, required: n, text: r = "Choose a file…", sty
|
|
|
2285
2298
|
]
|
|
2286
2299
|
});
|
|
2287
2300
|
}
|
|
2288
|
-
function
|
|
2301
|
+
function bt({ text: e = "Submit", style: t, nodeRef: n, inert: r }) {
|
|
2289
2302
|
return /* @__PURE__ */ u("button", {
|
|
2290
2303
|
ref: n,
|
|
2291
2304
|
type: r ? "button" : "submit",
|
|
2292
2305
|
style: {
|
|
2293
|
-
...
|
|
2306
|
+
...K,
|
|
2294
2307
|
border: 0,
|
|
2295
2308
|
cursor: "pointer",
|
|
2296
2309
|
alignSelf: "flex-start",
|
|
@@ -2305,7 +2318,7 @@ function vt({ text: e = "Submit", style: t, nodeRef: n, inert: r }) {
|
|
|
2305
2318
|
children: e
|
|
2306
2319
|
});
|
|
2307
2320
|
}
|
|
2308
|
-
function
|
|
2321
|
+
function xt({ cols: e = 2, rows: t = 1, style: n, nodeRef: r, linked: i }) {
|
|
2309
2322
|
let a = Math.max(1, (Number(e) || 1) * (Number(t) || 1));
|
|
2310
2323
|
return /* @__PURE__ */ u("div", {
|
|
2311
2324
|
ref: r,
|
|
@@ -2322,8 +2335,8 @@ function yt({ cols: e = 2, rows: t = 1, style: n, nodeRef: r, linked: i }) {
|
|
|
2322
2335
|
}, t))
|
|
2323
2336
|
});
|
|
2324
2337
|
}
|
|
2325
|
-
function
|
|
2326
|
-
let { tenant: v, apiUrl: y, locale: b } = r(
|
|
2338
|
+
function St({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, imageField: o, titleField: s = "name", textField: l, custom: f, templateId: p, paged: m, style: g, nodeRef: _ }) {
|
|
2339
|
+
let { tenant: v, apiUrl: y, locale: b } = r(B), x = r(H), S = r(V), C = S?.[e], w = m ? le(S) : 1, [T, E] = c(null);
|
|
2327
2340
|
if (i(() => {
|
|
2328
2341
|
if (!e || C) return;
|
|
2329
2342
|
let n = !0, r = new URLSearchParams();
|
|
@@ -2366,7 +2379,7 @@ function bt({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
|
|
|
2366
2379
|
},
|
|
2367
2380
|
children: O.map((e) => /* @__PURE__ */ u("div", {
|
|
2368
2381
|
style: { minWidth: 0 },
|
|
2369
|
-
children: x.render(p, (t) =>
|
|
2382
|
+
children: x.render(p, (t) => de(t, e))
|
|
2370
2383
|
}, e.id ?? e?.data?.slug))
|
|
2371
2384
|
}) : /* @__PURE__ */ u("div", {
|
|
2372
2385
|
ref: _,
|
|
@@ -2376,7 +2389,7 @@ function bt({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
|
|
|
2376
2389
|
...h(g)
|
|
2377
2390
|
},
|
|
2378
2391
|
children: O.map((e) => {
|
|
2379
|
-
let t = o ?
|
|
2392
|
+
let t = o ? W(e?.data, o) : null, r = s ? G(W(e?.data, s)) : null, i = l ? W(e?.data, l) : null, a = Array.isArray(i) ? i : null, c = a || i == null ? null : G(i), f = n === "list";
|
|
2380
2393
|
return /* @__PURE__ */ d("div", {
|
|
2381
2394
|
style: {
|
|
2382
2395
|
display: "flex",
|
|
@@ -2423,7 +2436,7 @@ function bt({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
|
|
|
2423
2436
|
lineHeight: 1.55,
|
|
2424
2437
|
opacity: .85
|
|
2425
2438
|
},
|
|
2426
|
-
children:
|
|
2439
|
+
children: De(a)
|
|
2427
2440
|
})
|
|
2428
2441
|
]
|
|
2429
2442
|
})]
|
|
@@ -2431,7 +2444,7 @@ function bt({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
|
|
|
2431
2444
|
})
|
|
2432
2445
|
});
|
|
2433
2446
|
}
|
|
2434
|
-
function
|
|
2447
|
+
function Ct({ items: e = [], separator: t = "/", style: n, nodeRef: r }) {
|
|
2435
2448
|
return e.length ? /* @__PURE__ */ u("nav", {
|
|
2436
2449
|
ref: r,
|
|
2437
2450
|
"aria-label": "Breadcrumb",
|
|
@@ -2481,8 +2494,8 @@ function xt({ items: e = [], separator: t = "/", style: n, nodeRef: r }) {
|
|
|
2481
2494
|
})
|
|
2482
2495
|
}) : null;
|
|
2483
2496
|
}
|
|
2484
|
-
function
|
|
2485
|
-
let { tenant: _, apiUrl: v } = r(
|
|
2497
|
+
function wt({ pages: e = 5, current: t = 1, prevNext: n = !0, href: a = "#", source: o, pageSize: s = 6, align: l, hideEmpty: f, inert: p, style: m, nodeRef: g }) {
|
|
2498
|
+
let { tenant: _, apiUrl: v } = r(B), y = r(V), [b, x] = c(null), S = o ? Number(y?.[`${o}:total`]) : NaN;
|
|
2486
2499
|
i(() => {
|
|
2487
2500
|
if (!o || Number.isFinite(S)) return;
|
|
2488
2501
|
let e = !0, t = o.startsWith("api:") ? `${v}/data/${encodeURIComponent(o.slice(4))}` : `${v}/dynamic/${encodeURIComponent(o)}?limit=1`;
|
|
@@ -2501,7 +2514,7 @@ function St({ pages: e = 5, current: t = 1, prevNext: n = !0, href: a = "#", sou
|
|
|
2501
2514
|
]);
|
|
2502
2515
|
let C = Math.max(1, Number(s) || 6), w = Number.isFinite(S) ? S : b;
|
|
2503
2516
|
if (o && w === null || o && f && !(w > 0)) return null;
|
|
2504
|
-
let T = Math.min(Math.max(o ? Math.ceil(w / C) : Number(e) || 1, 1), 50), E = Math.min(Math.max(o ?
|
|
2517
|
+
let T = Math.min(Math.max(o ? Math.ceil(w / C) : Number(e) || 1, 1), 50), E = Math.min(Math.max(o ? le(y) : Number(t) || 1, 1), T), D = (e) => {
|
|
2505
2518
|
if (o) {
|
|
2506
2519
|
if (typeof window < "u") {
|
|
2507
2520
|
let t = new URLSearchParams(window.location.search);
|
|
@@ -2566,7 +2579,243 @@ function St({ pages: e = 5, current: t = 1, prevNext: n = !0, href: a = "#", sou
|
|
|
2566
2579
|
]
|
|
2567
2580
|
});
|
|
2568
2581
|
}
|
|
2569
|
-
|
|
2582
|
+
var Tt = "webim.page_mode", Et = () => {
|
|
2583
|
+
if (typeof window > "u") return "auto";
|
|
2584
|
+
try {
|
|
2585
|
+
let e = window.localStorage.getItem(Tt);
|
|
2586
|
+
return e === "light" || e === "dark" ? e : "auto";
|
|
2587
|
+
} catch {
|
|
2588
|
+
return "auto";
|
|
2589
|
+
}
|
|
2590
|
+
}, Dt = (e) => {
|
|
2591
|
+
let t = {
|
|
2592
|
+
width: 16,
|
|
2593
|
+
height: 16,
|
|
2594
|
+
viewBox: "0 0 24 24",
|
|
2595
|
+
fill: "none",
|
|
2596
|
+
stroke: "currentColor",
|
|
2597
|
+
strokeWidth: 2,
|
|
2598
|
+
strokeLinecap: "round",
|
|
2599
|
+
strokeLinejoin: "round",
|
|
2600
|
+
"aria-hidden": !0
|
|
2601
|
+
};
|
|
2602
|
+
return e === "light" ? /* @__PURE__ */ d("svg", {
|
|
2603
|
+
...t,
|
|
2604
|
+
children: [/* @__PURE__ */ u("circle", {
|
|
2605
|
+
cx: "12",
|
|
2606
|
+
cy: "12",
|
|
2607
|
+
r: "4"
|
|
2608
|
+
}), /* @__PURE__ */ u("path", { d: "M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4" })]
|
|
2609
|
+
}) : e === "dark" ? /* @__PURE__ */ u("svg", {
|
|
2610
|
+
...t,
|
|
2611
|
+
children: /* @__PURE__ */ u("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" })
|
|
2612
|
+
}) : /* @__PURE__ */ d("svg", {
|
|
2613
|
+
...t,
|
|
2614
|
+
children: [/* @__PURE__ */ u("rect", {
|
|
2615
|
+
x: "2",
|
|
2616
|
+
y: "3",
|
|
2617
|
+
width: "20",
|
|
2618
|
+
height: "14",
|
|
2619
|
+
rx: "2"
|
|
2620
|
+
}), /* @__PURE__ */ u("path", { d: "M8 21h8M12 17v4" })]
|
|
2621
|
+
});
|
|
2622
|
+
}, Q = {
|
|
2623
|
+
light: "Light theme",
|
|
2624
|
+
dark: "Dark theme",
|
|
2625
|
+
auto: "Follow the device theme"
|
|
2626
|
+
};
|
|
2627
|
+
function Ot({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
|
|
2628
|
+
let [o, l] = c(a ? "auto" : Et), d = s(null), f = (e) => {
|
|
2629
|
+
d.current = e, typeof r == "function" && r(e);
|
|
2630
|
+
};
|
|
2631
|
+
i(() => {
|
|
2632
|
+
if (a) return;
|
|
2633
|
+
let e = d.current?.closest?.(".webim-page");
|
|
2634
|
+
e && (o === "light" || o === "dark" ? e.setAttribute("data-webim-mode", o) : e.removeAttribute("data-webim-mode"));
|
|
2635
|
+
try {
|
|
2636
|
+
o === "auto" ? window.localStorage.removeItem(Tt) : window.localStorage.setItem(Tt, o);
|
|
2637
|
+
} catch {}
|
|
2638
|
+
}, [o, a]);
|
|
2639
|
+
let p = t === !1 ? ["light", "dark"] : [
|
|
2640
|
+
"light",
|
|
2641
|
+
"dark",
|
|
2642
|
+
"auto"
|
|
2643
|
+
], m = p.includes(o) ? o : p[0], g = {
|
|
2644
|
+
appearance: "none",
|
|
2645
|
+
border: 0,
|
|
2646
|
+
margin: 0,
|
|
2647
|
+
display: "inline-flex",
|
|
2648
|
+
alignItems: "center",
|
|
2649
|
+
justifyContent: "center",
|
|
2650
|
+
background: "transparent",
|
|
2651
|
+
color: "inherit",
|
|
2652
|
+
font: "inherit",
|
|
2653
|
+
cursor: a ? "default" : "pointer",
|
|
2654
|
+
borderRadius: 999
|
|
2655
|
+
};
|
|
2656
|
+
if (e === "buttons") return /* @__PURE__ */ u("div", {
|
|
2657
|
+
ref: f,
|
|
2658
|
+
role: "group",
|
|
2659
|
+
"aria-label": "Theme",
|
|
2660
|
+
style: {
|
|
2661
|
+
display: "inline-flex",
|
|
2662
|
+
alignItems: "center",
|
|
2663
|
+
gap: 2,
|
|
2664
|
+
padding: 3,
|
|
2665
|
+
borderRadius: 999,
|
|
2666
|
+
border: "1px solid rgba(148, 163, 184, 0.4)",
|
|
2667
|
+
...h(n)
|
|
2668
|
+
},
|
|
2669
|
+
children: p.map((e) => /* @__PURE__ */ u("button", {
|
|
2670
|
+
type: "button",
|
|
2671
|
+
title: Q[e],
|
|
2672
|
+
"aria-label": Q[e],
|
|
2673
|
+
"aria-pressed": e === m,
|
|
2674
|
+
onClick: a ? void 0 : () => l(e),
|
|
2675
|
+
style: {
|
|
2676
|
+
...g,
|
|
2677
|
+
width: 28,
|
|
2678
|
+
height: 28,
|
|
2679
|
+
color: e === m ? "var(--page-accent-text, #ffffff)" : "inherit",
|
|
2680
|
+
background: e === m ? "var(--page-accent, #111827)" : "transparent",
|
|
2681
|
+
opacity: e === m ? 1 : .7
|
|
2682
|
+
},
|
|
2683
|
+
children: Dt(e)
|
|
2684
|
+
}, e))
|
|
2685
|
+
});
|
|
2686
|
+
let _ = p[(p.indexOf(m) + 1) % p.length];
|
|
2687
|
+
return /* @__PURE__ */ u("button", {
|
|
2688
|
+
ref: f,
|
|
2689
|
+
type: "button",
|
|
2690
|
+
title: Q[m],
|
|
2691
|
+
"aria-label": `Theme: ${Q[m]} — switch to ${Q[_]}`,
|
|
2692
|
+
onClick: a ? void 0 : () => l(_),
|
|
2693
|
+
style: {
|
|
2694
|
+
...g,
|
|
2695
|
+
width: 36,
|
|
2696
|
+
height: 36,
|
|
2697
|
+
border: "1px solid rgba(148, 163, 184, 0.4)",
|
|
2698
|
+
...h(n)
|
|
2699
|
+
},
|
|
2700
|
+
children: Dt(m)
|
|
2701
|
+
});
|
|
2702
|
+
}
|
|
2703
|
+
var kt = {
|
|
2704
|
+
facebook: {
|
|
2705
|
+
label: "Facebook",
|
|
2706
|
+
color: "#1877f2",
|
|
2707
|
+
d: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
|
|
2708
|
+
},
|
|
2709
|
+
instagram: {
|
|
2710
|
+
label: "Instagram",
|
|
2711
|
+
color: "#e4405f",
|
|
2712
|
+
d: "M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06zm0 5.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"
|
|
2713
|
+
},
|
|
2714
|
+
x: {
|
|
2715
|
+
label: "X (Twitter)",
|
|
2716
|
+
color: "#000000",
|
|
2717
|
+
d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"
|
|
2718
|
+
},
|
|
2719
|
+
linkedin: {
|
|
2720
|
+
label: "LinkedIn",
|
|
2721
|
+
color: "#0a66c2",
|
|
2722
|
+
d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
|
|
2723
|
+
},
|
|
2724
|
+
youtube: {
|
|
2725
|
+
label: "YouTube",
|
|
2726
|
+
color: "#ff0000",
|
|
2727
|
+
d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
|
|
2728
|
+
},
|
|
2729
|
+
tiktok: {
|
|
2730
|
+
label: "TikTok",
|
|
2731
|
+
color: "#000000",
|
|
2732
|
+
d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
|
|
2733
|
+
},
|
|
2734
|
+
whatsapp: {
|
|
2735
|
+
label: "WhatsApp",
|
|
2736
|
+
color: "#25d366",
|
|
2737
|
+
d: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"
|
|
2738
|
+
},
|
|
2739
|
+
telegram: {
|
|
2740
|
+
label: "Telegram",
|
|
2741
|
+
color: "#26a5e4",
|
|
2742
|
+
d: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
|
|
2743
|
+
},
|
|
2744
|
+
pinterest: {
|
|
2745
|
+
label: "Pinterest",
|
|
2746
|
+
color: "#bd081c",
|
|
2747
|
+
d: "M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.03-.655 2.569-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 01.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z"
|
|
2748
|
+
},
|
|
2749
|
+
github: {
|
|
2750
|
+
label: "GitHub",
|
|
2751
|
+
color: "#181717",
|
|
2752
|
+
d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
|
|
2753
|
+
},
|
|
2754
|
+
discord: {
|
|
2755
|
+
label: "Discord",
|
|
2756
|
+
color: "#5865f2",
|
|
2757
|
+
d: "M20.317 4.37a19.791 19.791 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.865-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.736 19.736 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.058a.082.082 0 00.031.056 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.873-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.107 13.107 0 01-1.872-.892.077.077 0 01-.008-.128c.126-.094.252-.192.372-.291a.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.009c.12.099.246.198.373.292a.077.077 0 01-.006.127 12.299 12.299 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.839 19.839 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.331c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"
|
|
2758
|
+
},
|
|
2759
|
+
email: {
|
|
2760
|
+
label: "E-mail",
|
|
2761
|
+
color: "#64748b",
|
|
2762
|
+
d: "M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"
|
|
2763
|
+
},
|
|
2764
|
+
website: {
|
|
2765
|
+
label: "Website",
|
|
2766
|
+
color: "#64748b",
|
|
2767
|
+
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"
|
|
2768
|
+
}
|
|
2769
|
+
};
|
|
2770
|
+
function At({ links: e = [], variant: t, color: n, size: r, gap: i, newTab: a, style: o, nodeRef: s, inert: c }) {
|
|
2771
|
+
let l = Array.isArray(e) ? e.filter((e) => e && kt[e.network]) : [];
|
|
2772
|
+
if (!l.length) return null;
|
|
2773
|
+
let d = Math.min(Math.max(Number(r) || 18, 10), 64), f = Math.round(d * 1.9), p = Number.isFinite(Number(i)) ? Number(i) : 10, m = (e) => n === "accent" ? "var(--page-accent, #111827)" : n === "inherit" ? "currentColor" : e.color, g = c ? (e) => e.preventDefault() : void 0;
|
|
2774
|
+
return /* @__PURE__ */ u("div", {
|
|
2775
|
+
ref: s,
|
|
2776
|
+
style: {
|
|
2777
|
+
display: "flex",
|
|
2778
|
+
flexWrap: "wrap",
|
|
2779
|
+
alignItems: "center",
|
|
2780
|
+
gap: p,
|
|
2781
|
+
...h(o)
|
|
2782
|
+
},
|
|
2783
|
+
children: l.map((e, r) => {
|
|
2784
|
+
let i = kt[e.network], o = t !== "outline" && t !== "plain", s = o ? n === "accent" ? "var(--page-accent-text, #ffffff)" : n === "inherit" ? "var(--page-bg, #ffffff)" : "#ffffff" : m(i);
|
|
2785
|
+
return /* @__PURE__ */ u("a", {
|
|
2786
|
+
href: e.url || "#",
|
|
2787
|
+
onClick: g,
|
|
2788
|
+
"aria-label": e.label || i.label,
|
|
2789
|
+
title: e.label || i.label,
|
|
2790
|
+
...a !== !1 && !c ? {
|
|
2791
|
+
target: "_blank",
|
|
2792
|
+
rel: "noopener noreferrer"
|
|
2793
|
+
} : {},
|
|
2794
|
+
style: {
|
|
2795
|
+
display: "inline-flex",
|
|
2796
|
+
alignItems: "center",
|
|
2797
|
+
justifyContent: "center",
|
|
2798
|
+
width: t === "plain" ? d : f,
|
|
2799
|
+
height: t === "plain" ? d : f,
|
|
2800
|
+
borderRadius: "50%",
|
|
2801
|
+
background: o ? m(i) : "transparent",
|
|
2802
|
+
border: t === "outline" ? `1px solid ${m(i)}` : "none",
|
|
2803
|
+
color: "inherit",
|
|
2804
|
+
textDecoration: "none"
|
|
2805
|
+
},
|
|
2806
|
+
children: /* @__PURE__ */ u("svg", {
|
|
2807
|
+
width: d,
|
|
2808
|
+
height: d,
|
|
2809
|
+
viewBox: "0 0 24 24",
|
|
2810
|
+
fill: s,
|
|
2811
|
+
"aria-hidden": !0,
|
|
2812
|
+
children: /* @__PURE__ */ u("path", { d: i.d })
|
|
2813
|
+
})
|
|
2814
|
+
}, `${e.network}-${r}`);
|
|
2815
|
+
})
|
|
2816
|
+
});
|
|
2817
|
+
}
|
|
2818
|
+
function jt({ steps: t = [], active: n = 1, vertical: r = !1, style: i, nodeRef: a }) {
|
|
2570
2819
|
if (!t.length) return null;
|
|
2571
2820
|
let o = Math.min(Math.max(Number(n) || 1, 1), t.length), s = (e) => ({
|
|
2572
2821
|
width: 32,
|
|
@@ -2644,7 +2893,7 @@ function Ct({ steps: t = [], active: n = 1, vertical: r = !1, style: i, nodeRef:
|
|
|
2644
2893
|
})
|
|
2645
2894
|
});
|
|
2646
2895
|
}
|
|
2647
|
-
var
|
|
2896
|
+
var Mt = {
|
|
2648
2897
|
small: {
|
|
2649
2898
|
w: 132,
|
|
2650
2899
|
h: 46,
|
|
@@ -2666,10 +2915,10 @@ var wt = {
|
|
|
2666
2915
|
title: 12.5,
|
|
2667
2916
|
avatar: 46
|
|
2668
2917
|
}
|
|
2669
|
-
},
|
|
2670
|
-
|
|
2671
|
-
function
|
|
2672
|
-
let r =
|
|
2918
|
+
}, Nt = (e) => Mt[e] ?? Mt.medium;
|
|
2919
|
+
Mt.medium.w, Mt.medium.h;
|
|
2920
|
+
function Pt(e, { size: t = "medium", horizontal: n = !1 } = {}) {
|
|
2921
|
+
let r = Nt(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 = [];
|
|
2673
2922
|
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);
|
|
2674
2923
|
let d = /* @__PURE__ */ new Map(), f = (e, t) => {
|
|
2675
2924
|
if (t.has(e.id)) return 0;
|
|
@@ -2721,19 +2970,19 @@ function Et(e, { size: t = "medium", horizontal: n = !1 } = {}) {
|
|
|
2721
2970
|
horizontal: n
|
|
2722
2971
|
};
|
|
2723
2972
|
}
|
|
2724
|
-
var
|
|
2973
|
+
var Ft = (e, t) => {
|
|
2725
2974
|
let n = String(e ?? "");
|
|
2726
2975
|
return n.length > t ? `${n.slice(0, t - 1)}…` : n;
|
|
2727
|
-
},
|
|
2976
|
+
}, It = (e) => {
|
|
2728
2977
|
let t = /^#([0-9a-f]{6}|[0-9a-f]{3})$/i.exec(String(e ?? "").trim());
|
|
2729
2978
|
if (!t) return "#ffffff";
|
|
2730
2979
|
let n = t[1];
|
|
2731
2980
|
n.length === 3 && (n = [...n].map((e) => e + e).join(""));
|
|
2732
2981
|
let r = parseInt(n, 16);
|
|
2733
2982
|
return .299 * (r >> 16 & 255) + .587 * (r >> 8 & 255) + .114 * (r & 255) > 150 ? "#111827" : "#ffffff";
|
|
2734
|
-
},
|
|
2735
|
-
function
|
|
2736
|
-
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 ? "" :
|
|
2983
|
+
}, Lt = (e) => !!(e?.cv?.trim?.() || e?.photo);
|
|
2984
|
+
function Rt(e, t = {}) {
|
|
2985
|
+
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 ? "" : G(e);
|
|
2737
2986
|
return n.map((e) => {
|
|
2738
2987
|
let n = e.data ?? {}, a = r(n[t.parentField]), o = a && typeof a == "object" ? a.id ?? null : a || null;
|
|
2739
2988
|
return {
|
|
@@ -2747,11 +2996,11 @@ function At(e, t = {}) {
|
|
|
2747
2996
|
};
|
|
2748
2997
|
});
|
|
2749
2998
|
}
|
|
2750
|
-
var
|
|
2999
|
+
var zt = {
|
|
2751
3000
|
size: 36,
|
|
2752
3001
|
pad: 10
|
|
2753
3002
|
};
|
|
2754
|
-
function
|
|
3003
|
+
function Bt({ node: e, onClose: t }) {
|
|
2755
3004
|
return i(() => {
|
|
2756
3005
|
let e = (e) => e.key === "Escape" && t();
|
|
2757
3006
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
@@ -2869,8 +3118,8 @@ function Mt({ node: e, onClose: t }) {
|
|
|
2869
3118
|
})
|
|
2870
3119
|
});
|
|
2871
3120
|
}
|
|
2872
|
-
function
|
|
2873
|
-
let x = a(), [S, C] = c(null), { tenant: w, apiUrl: T } = r(
|
|
3121
|
+
function Vt({ 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 }) {
|
|
3122
|
+
let x = a(), [S, C] = c(null), { tenant: w, apiUrl: T } = r(B), E = r(V)?.[t], [D, O] = c(null);
|
|
2874
3123
|
i(() => {
|
|
2875
3124
|
if (!t || E) return;
|
|
2876
3125
|
let e = !0;
|
|
@@ -2886,14 +3135,14 @@ function Nt({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
2886
3135
|
T,
|
|
2887
3136
|
E
|
|
2888
3137
|
]);
|
|
2889
|
-
let k = t ?
|
|
3138
|
+
let k = t ? Rt(E ?? D ?? [], {
|
|
2890
3139
|
nameField: n,
|
|
2891
3140
|
titleField: o,
|
|
2892
3141
|
photoField: s,
|
|
2893
3142
|
parentField: f,
|
|
2894
3143
|
cvField: p,
|
|
2895
3144
|
hrefField: m
|
|
2896
|
-
}) : e, A =
|
|
3145
|
+
}) : e, A = Nt(g), { boxes: j, links: M, width: N, height: P } = Pt(k, {
|
|
2897
3146
|
size: g,
|
|
2898
3147
|
horizontal: _
|
|
2899
3148
|
});
|
|
@@ -2939,7 +3188,7 @@ function Nt({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
2939
3188
|
stroke: "rgba(148, 163, 184, 0.7)",
|
|
2940
3189
|
strokeWidth: "1.5"
|
|
2941
3190
|
}, t)), j.map(({ node: e, x: t, y: n }) => {
|
|
2942
|
-
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 ?
|
|
3191
|
+
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 ? It(e.color) : r ? "var(--page-accent-text, #ffffff)" : "var(--page-text, #111827)", c = i ? It(e.color2) : s, f = b && (Lt(e) || e.href), p = () => Lt(e) ? C(e) : window.open(e.href, "_blank", "noreferrer"), m = e.photo ? t + zt.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);
|
|
2943
3192
|
return /* @__PURE__ */ d("g", {
|
|
2944
3193
|
onClick: f ? p : void 0,
|
|
2945
3194
|
style: f ? { cursor: "pointer" } : void 0,
|
|
@@ -3003,13 +3252,13 @@ function Nt({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
3003
3252
|
e.photo && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("clipPath", {
|
|
3004
3253
|
id: `${x}-${e.id}`,
|
|
3005
3254
|
children: /* @__PURE__ */ u("circle", {
|
|
3006
|
-
cx: t +
|
|
3255
|
+
cx: t + zt.pad + A.avatar / 2,
|
|
3007
3256
|
cy: n + A.h / 2,
|
|
3008
3257
|
r: A.avatar / 2
|
|
3009
3258
|
})
|
|
3010
3259
|
}), /* @__PURE__ */ u("image", {
|
|
3011
3260
|
href: e.photo,
|
|
3012
|
-
x: t +
|
|
3261
|
+
x: t + zt.pad,
|
|
3013
3262
|
y: n + (A.h - A.avatar) / 2,
|
|
3014
3263
|
width: A.avatar,
|
|
3015
3264
|
height: A.avatar,
|
|
@@ -3023,7 +3272,7 @@ function Nt({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
3023
3272
|
fontSize: A.title,
|
|
3024
3273
|
fontWeight: "600",
|
|
3025
3274
|
fill: s,
|
|
3026
|
-
children:
|
|
3275
|
+
children: Ft(e.title, g + 4)
|
|
3027
3276
|
}), e.name && /* @__PURE__ */ u("text", {
|
|
3028
3277
|
x: m,
|
|
3029
3278
|
y: n + _ + _ / 2 + A.name * .35,
|
|
@@ -3031,7 +3280,7 @@ function Nt({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
3031
3280
|
fontSize: A.name,
|
|
3032
3281
|
fontWeight: "600",
|
|
3033
3282
|
fill: c,
|
|
3034
|
-
children:
|
|
3283
|
+
children: Ft(e.name, g)
|
|
3035
3284
|
})] }) : /* @__PURE__ */ d(l, { children: [v[0] && /* @__PURE__ */ u("text", {
|
|
3036
3285
|
x: m,
|
|
3037
3286
|
y: n + (v[1] ? A.h * .43 : A.h * .57),
|
|
@@ -3039,7 +3288,7 @@ function Nt({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
3039
3288
|
fontSize: A.name,
|
|
3040
3289
|
fontWeight: "600",
|
|
3041
3290
|
fill: s,
|
|
3042
|
-
children:
|
|
3291
|
+
children: Ft(v[0], g)
|
|
3043
3292
|
}), v[1] && /* @__PURE__ */ u("text", {
|
|
3044
3293
|
x: m,
|
|
3045
3294
|
y: n + A.h * .73,
|
|
@@ -3047,19 +3296,19 @@ function Nt({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
3047
3296
|
fontSize: A.title,
|
|
3048
3297
|
opacity: "0.7",
|
|
3049
3298
|
fill: s,
|
|
3050
|
-
children:
|
|
3299
|
+
children: Ft(v[1], g + 4)
|
|
3051
3300
|
})] })
|
|
3052
3301
|
]
|
|
3053
3302
|
}, e.id);
|
|
3054
3303
|
})]
|
|
3055
|
-
}), S && /* @__PURE__ */ u(
|
|
3304
|
+
}), S && /* @__PURE__ */ u(Bt, {
|
|
3056
3305
|
node: S,
|
|
3057
3306
|
onClose: () => C(null)
|
|
3058
3307
|
})]
|
|
3059
3308
|
});
|
|
3060
3309
|
}
|
|
3061
|
-
function
|
|
3062
|
-
let { tenant: _, apiUrl: v } = r(
|
|
3310
|
+
function Ht({ columns: e = [], rows: t = [], source: n, limit: a = 10, striped: o = !0, bordered: s = !1, compact: l = !1, paged: f, emptyText: p, style: m, nodeRef: g }) {
|
|
3311
|
+
let { tenant: _, apiUrl: v } = r(B), y = r(V), b = y?.[n], x = f ? le(y) : 1, [S, C] = c(null);
|
|
3063
3312
|
if (i(() => {
|
|
3064
3313
|
if (!n || b) return;
|
|
3065
3314
|
let e = !0, t = Math.max(1, Number(a) || 10), r = f && !n.startsWith("api:") ? `?offset=${(x - 1) * t}&limit=${t}` : "", i = n.startsWith("api:") ? `${v}/data/${encodeURIComponent(n.slice(4))}` : `${v}/dynamic/${encodeURIComponent(n)}${r}`;
|
|
@@ -3078,7 +3327,7 @@ function Pt({ columns: e = [], rows: t = [], source: n, limit: a = 10, striped:
|
|
|
3078
3327
|
x,
|
|
3079
3328
|
a
|
|
3080
3329
|
]), !e.length) return null;
|
|
3081
|
-
let w = Math.max(1, Number(a) || 10), T = n ? f ? b || n.startsWith("api:") ? (b ?? S ?? []).slice((x - 1) * w, x * w) : (S ?? []).slice(0, w) : (b ?? S ?? []).slice(0, w) : null, E = T ? T.map((t) => e.map((e) =>
|
|
3330
|
+
let w = Math.max(1, Number(a) || 10), T = n ? f ? b || n.startsWith("api:") ? (b ?? S ?? []).slice((x - 1) * w, x * w) : (S ?? []).slice(0, w) : (b ?? S ?? []).slice(0, w) : null, E = T ? T.map((t) => e.map((e) => G(W(t?.data, e.field)))) : t, D = !!n && !(n && !b && S === null) && E.length === 0, O = l ? "6px 10px" : "10px 14px", k = "1px solid rgba(148, 163, 184, 0.35)", A = s ? { border: k } : { borderBottom: k };
|
|
3082
3331
|
return /* @__PURE__ */ u("div", {
|
|
3083
3332
|
ref: g,
|
|
3084
3333
|
style: {
|
|
@@ -3124,76 +3373,78 @@ function Pt({ columns: e = [], rows: t = [], source: n, limit: a = 10, striped:
|
|
|
3124
3373
|
})
|
|
3125
3374
|
});
|
|
3126
3375
|
}
|
|
3127
|
-
var
|
|
3128
|
-
PageRoot:
|
|
3129
|
-
Section:
|
|
3130
|
-
Container:
|
|
3131
|
-
Heading:
|
|
3132
|
-
TextBlock:
|
|
3133
|
-
ButtonBlock:
|
|
3134
|
-
ImageBlock:
|
|
3135
|
-
Spacer:
|
|
3136
|
-
Divider:
|
|
3137
|
-
SliderBlock:
|
|
3138
|
-
CanvasSlider:
|
|
3139
|
-
TabsBlock:
|
|
3140
|
-
QuickStack:
|
|
3141
|
-
CollectionList:
|
|
3142
|
-
BreadcrumbsBlock:
|
|
3143
|
-
PaginationBlock:
|
|
3144
|
-
StepperBlock:
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3376
|
+
var Ut = {
|
|
3377
|
+
PageRoot: ve,
|
|
3378
|
+
Section: ye,
|
|
3379
|
+
Container: be,
|
|
3380
|
+
Heading: xe,
|
|
3381
|
+
TextBlock: Me,
|
|
3382
|
+
ButtonBlock: Fe,
|
|
3383
|
+
ImageBlock: Ie,
|
|
3384
|
+
Spacer: He,
|
|
3385
|
+
Divider: Ue,
|
|
3386
|
+
SliderBlock: Ye,
|
|
3387
|
+
CanvasSlider: Xe,
|
|
3388
|
+
TabsBlock: tt,
|
|
3389
|
+
QuickStack: xt,
|
|
3390
|
+
CollectionList: St,
|
|
3391
|
+
BreadcrumbsBlock: Ct,
|
|
3392
|
+
PaginationBlock: wt,
|
|
3393
|
+
StepperBlock: jt,
|
|
3394
|
+
SocialLinksBlock: At,
|
|
3395
|
+
ThemeModeBlock: Ot,
|
|
3396
|
+
OrgChartBlock: Vt,
|
|
3397
|
+
TableBlock: Ht,
|
|
3398
|
+
MasonryBlock: Ze,
|
|
3399
|
+
AccordionBlock: nt,
|
|
3400
|
+
NavbarBlock: et,
|
|
3401
|
+
ListBlock: je,
|
|
3402
|
+
TextSpan: we,
|
|
3403
|
+
QuoteBlock: Ae,
|
|
3404
|
+
TextLink: Pe,
|
|
3405
|
+
RichTextBlock: Oe,
|
|
3406
|
+
RichContentBlock: Oe,
|
|
3407
|
+
VideoBlock: Le,
|
|
3408
|
+
YouTubeBlock: ze,
|
|
3409
|
+
IframeBlock: Be,
|
|
3410
|
+
EmbedBlock: Ve,
|
|
3411
|
+
FormBlock: ut,
|
|
3412
|
+
FormLabel: mt,
|
|
3413
|
+
FormInput: ht,
|
|
3414
|
+
FormTextarea: gt,
|
|
3415
|
+
FormCheckbox: (e) => /* @__PURE__ */ u(_t, {
|
|
3165
3416
|
kind: "checkbox",
|
|
3166
3417
|
...e
|
|
3167
3418
|
}),
|
|
3168
|
-
FormRadio: (e) => /* @__PURE__ */ u(
|
|
3419
|
+
FormRadio: (e) => /* @__PURE__ */ u(_t, {
|
|
3169
3420
|
kind: "radio",
|
|
3170
3421
|
...e
|
|
3171
3422
|
}),
|
|
3172
|
-
FormSelect:
|
|
3173
|
-
FormFile:
|
|
3174
|
-
FormRecaptcha:
|
|
3175
|
-
FormSubmit:
|
|
3176
|
-
},
|
|
3423
|
+
FormSelect: vt,
|
|
3424
|
+
FormFile: yt,
|
|
3425
|
+
FormRecaptcha: pt,
|
|
3426
|
+
FormSubmit: bt
|
|
3427
|
+
}, Wt = {
|
|
3177
3428
|
id: "auth",
|
|
3178
3429
|
label: "Accounts",
|
|
3179
3430
|
category: "Apps",
|
|
3180
3431
|
keys: ["SiteLoginForm", "SiteAccountMenu"],
|
|
3181
3432
|
ssr: "shell",
|
|
3182
3433
|
settings: ["site.authRedirect"]
|
|
3183
|
-
},
|
|
3434
|
+
}, Gt = t({
|
|
3184
3435
|
user: null,
|
|
3185
3436
|
status: "idle",
|
|
3186
3437
|
ensure: () => {},
|
|
3187
3438
|
refresh: () => {},
|
|
3188
3439
|
signOut: () => {}
|
|
3189
|
-
}),
|
|
3190
|
-
let e = r(
|
|
3440
|
+
}), Kt = () => {
|
|
3441
|
+
let e = r(Gt);
|
|
3191
3442
|
return i(() => {
|
|
3192
3443
|
e.ensure();
|
|
3193
3444
|
}, [e]), e;
|
|
3194
3445
|
};
|
|
3195
|
-
function
|
|
3196
|
-
let d = r(
|
|
3446
|
+
function qt({ children: e, initialUser: t, disabled: i, apiUrl: a, tenant: l }) {
|
|
3447
|
+
let d = r(B), 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}`, {
|
|
3197
3448
|
...t,
|
|
3198
3449
|
credentials: "include",
|
|
3199
3450
|
headers: {
|
|
@@ -3225,19 +3476,19 @@ function zt({ children: e, initialUser: t, disabled: i, apiUrl: a, tenant: l })
|
|
|
3225
3476
|
b,
|
|
3226
3477
|
x
|
|
3227
3478
|
]);
|
|
3228
|
-
return /* @__PURE__ */ u(
|
|
3479
|
+
return /* @__PURE__ */ u(Gt.Provider, {
|
|
3229
3480
|
value: C,
|
|
3230
3481
|
children: e
|
|
3231
3482
|
});
|
|
3232
3483
|
}
|
|
3233
|
-
function
|
|
3234
|
-
let { status: n } =
|
|
3484
|
+
function Jt({ when: e, children: t }) {
|
|
3485
|
+
let { status: n } = Kt();
|
|
3235
3486
|
return !e || e === "always" ? t : n === "idle" || n === "loading" ? null : e === "user" == (n === "user") ? t : null;
|
|
3236
3487
|
}
|
|
3237
3488
|
//#endregion
|
|
3238
3489
|
//#region ../ui/src/components/builder/apps/auth/views.jsx
|
|
3239
|
-
function
|
|
3240
|
-
let { tenant: g, apiUrl: _, settings: v } = r(
|
|
3490
|
+
function Yt({ 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 }) {
|
|
3491
|
+
let { tenant: g, apiUrl: _, settings: v } = r(B), [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) => {
|
|
3241
3492
|
if (e.preventDefault(), f) return;
|
|
3242
3493
|
let n = new FormData(e.currentTarget);
|
|
3243
3494
|
w(!0), S("");
|
|
@@ -3285,20 +3536,20 @@ function Vt({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
3285
3536
|
children: [
|
|
3286
3537
|
T ? /* @__PURE__ */ d("label", {
|
|
3287
3538
|
style: {
|
|
3288
|
-
...
|
|
3539
|
+
...J,
|
|
3289
3540
|
display: "grid",
|
|
3290
3541
|
gap: 6
|
|
3291
3542
|
},
|
|
3292
3543
|
children: [a, /* @__PURE__ */ u("input", {
|
|
3293
3544
|
name: "name",
|
|
3294
3545
|
type: "text",
|
|
3295
|
-
style:
|
|
3296
|
-
...
|
|
3546
|
+
style: Y,
|
|
3547
|
+
...X(f)
|
|
3297
3548
|
})]
|
|
3298
3549
|
}) : null,
|
|
3299
3550
|
/* @__PURE__ */ d("label", {
|
|
3300
3551
|
style: {
|
|
3301
|
-
...
|
|
3552
|
+
...J,
|
|
3302
3553
|
display: "grid",
|
|
3303
3554
|
gap: 6
|
|
3304
3555
|
},
|
|
@@ -3306,13 +3557,13 @@ function Vt({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
3306
3557
|
name: "email",
|
|
3307
3558
|
type: "email",
|
|
3308
3559
|
required: !f,
|
|
3309
|
-
style:
|
|
3310
|
-
...
|
|
3560
|
+
style: Y,
|
|
3561
|
+
...X(f)
|
|
3311
3562
|
})]
|
|
3312
3563
|
}),
|
|
3313
3564
|
/* @__PURE__ */ d("label", {
|
|
3314
3565
|
style: {
|
|
3315
|
-
...
|
|
3566
|
+
...J,
|
|
3316
3567
|
display: "grid",
|
|
3317
3568
|
gap: 6
|
|
3318
3569
|
},
|
|
@@ -3320,15 +3571,15 @@ function Vt({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
3320
3571
|
name: "password",
|
|
3321
3572
|
type: "password",
|
|
3322
3573
|
required: !f,
|
|
3323
|
-
style:
|
|
3324
|
-
...
|
|
3574
|
+
style: Y,
|
|
3575
|
+
...X(f)
|
|
3325
3576
|
})]
|
|
3326
3577
|
}),
|
|
3327
3578
|
/* @__PURE__ */ u("button", {
|
|
3328
3579
|
type: f ? "button" : "submit",
|
|
3329
3580
|
disabled: C || void 0,
|
|
3330
3581
|
style: {
|
|
3331
|
-
...
|
|
3582
|
+
...K,
|
|
3332
3583
|
border: 0,
|
|
3333
3584
|
padding: "10px 22px",
|
|
3334
3585
|
borderRadius: 8,
|
|
@@ -3360,8 +3611,8 @@ function Vt({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
3360
3611
|
]
|
|
3361
3612
|
});
|
|
3362
3613
|
}
|
|
3363
|
-
function
|
|
3364
|
-
let { user: c, status: l, signOut: f } =
|
|
3614
|
+
function Xt({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !1, style: r, nodeRef: i, inert: a, linked: o, show: s }) {
|
|
3615
|
+
let { user: c, status: l, signOut: f } = Kt(), p = a ? s || "user" : l, m = a ? {
|
|
3365
3616
|
name: "Ada Lovelace",
|
|
3366
3617
|
email: "ada@example.com"
|
|
3367
3618
|
} : c;
|
|
@@ -3382,7 +3633,7 @@ function Ht({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
3382
3633
|
children: [
|
|
3383
3634
|
/* @__PURE__ */ d("span", {
|
|
3384
3635
|
style: {
|
|
3385
|
-
...
|
|
3636
|
+
...J,
|
|
3386
3637
|
fontWeight: 600
|
|
3387
3638
|
},
|
|
3388
3639
|
children: [
|
|
@@ -3393,7 +3644,7 @@ function Ht({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
3393
3644
|
}),
|
|
3394
3645
|
n && m?.email ? /* @__PURE__ */ u("span", {
|
|
3395
3646
|
style: {
|
|
3396
|
-
...
|
|
3647
|
+
...J,
|
|
3397
3648
|
opacity: .7
|
|
3398
3649
|
},
|
|
3399
3650
|
children: m.email
|
|
@@ -3402,14 +3653,14 @@ function Ht({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
3402
3653
|
type: "button",
|
|
3403
3654
|
onClick: a ? void 0 : f,
|
|
3404
3655
|
style: {
|
|
3405
|
-
...
|
|
3656
|
+
...K,
|
|
3406
3657
|
border: 0,
|
|
3407
3658
|
padding: "8px 16px",
|
|
3408
3659
|
borderRadius: 8,
|
|
3409
3660
|
fontSize: 14,
|
|
3410
3661
|
cursor: a ? "default" : "pointer"
|
|
3411
3662
|
},
|
|
3412
|
-
...
|
|
3663
|
+
...X(a),
|
|
3413
3664
|
children: t
|
|
3414
3665
|
})
|
|
3415
3666
|
]
|
|
@@ -3426,42 +3677,42 @@ function Ht({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
3426
3677
|
}
|
|
3427
3678
|
//#endregion
|
|
3428
3679
|
//#region ../ui/src/components/builder/apps/index.js
|
|
3429
|
-
var
|
|
3430
|
-
SiteLoginForm:
|
|
3431
|
-
SiteAccountMenu:
|
|
3680
|
+
var Zt = [Wt], Qt = {
|
|
3681
|
+
SiteLoginForm: Yt,
|
|
3682
|
+
SiteAccountMenu: Xt
|
|
3432
3683
|
};
|
|
3433
|
-
new Set(
|
|
3684
|
+
new Set(Zt.filter((e) => e.ssr === "shell").flatMap((e) => e.keys));
|
|
3434
3685
|
//#endregion
|
|
3435
3686
|
//#region ../ui/src/components/builder/plugins/runtime.js
|
|
3436
|
-
var
|
|
3437
|
-
function
|
|
3438
|
-
if (
|
|
3687
|
+
var $t = /* @__PURE__ */ new Map();
|
|
3688
|
+
function en(e) {
|
|
3689
|
+
if ($t.has(e)) return $t.get(e);
|
|
3439
3690
|
let t = URL.createObjectURL(new Blob([e], { type: "text/javascript" })), n = import(
|
|
3440
3691
|
/* @vite-ignore */
|
|
3441
3692
|
/* webpackIgnore: true */
|
|
3442
3693
|
t
|
|
3443
3694
|
).finally(() => URL.revokeObjectURL(t));
|
|
3444
|
-
return
|
|
3695
|
+
return $t.set(e, n), n;
|
|
3445
3696
|
}
|
|
3446
|
-
function
|
|
3697
|
+
function tn(e) {
|
|
3447
3698
|
let t = e && typeof e == "object" ? e.builder_plugins : null, n = t && typeof t == "object" ? t.plugins : null;
|
|
3448
3699
|
return n && typeof n == "object" ? n : {};
|
|
3449
3700
|
}
|
|
3450
3701
|
//#endregion
|
|
3451
3702
|
//#region ../ui/src/components/builder/plugins/view.jsx
|
|
3452
|
-
async function
|
|
3453
|
-
let n = await
|
|
3703
|
+
async function nn(e, t) {
|
|
3704
|
+
let n = await en(e);
|
|
3454
3705
|
return (Array.isArray(n?.default?.blocks) ? n.default.blocks : []).find((e) => e?.id === t && typeof e.mount == "function") ?? null;
|
|
3455
3706
|
}
|
|
3456
|
-
var
|
|
3707
|
+
var rn = {
|
|
3457
3708
|
padding: "10px 12px",
|
|
3458
3709
|
border: "1px dashed rgba(148, 163, 184, 0.5)",
|
|
3459
3710
|
borderRadius: 8,
|
|
3460
3711
|
fontSize: 12,
|
|
3461
3712
|
opacity: .6
|
|
3462
3713
|
};
|
|
3463
|
-
function
|
|
3464
|
-
let c = r(
|
|
3714
|
+
function an({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
|
|
3715
|
+
let c = r(B), l = tn(c?.settings)[e], f = s(null), p = s(null), m = {
|
|
3465
3716
|
tenant: c?.tenant ?? "",
|
|
3466
3717
|
apiUrl: c?.apiUrl ?? "/api",
|
|
3467
3718
|
locale: c?.locale ?? "",
|
|
@@ -3473,7 +3724,7 @@ function Xt({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
|
|
|
3473
3724
|
let e = f.current;
|
|
3474
3725
|
if (!l?.code || !e) return;
|
|
3475
3726
|
let n = !0;
|
|
3476
|
-
return
|
|
3727
|
+
return nn(l.code, t).then((e) => {
|
|
3477
3728
|
if (!(!n || !e || !f.current)) {
|
|
3478
3729
|
p.current = e;
|
|
3479
3730
|
try {
|
|
@@ -3503,7 +3754,7 @@ function Xt({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
|
|
|
3503
3754
|
}) : /* @__PURE__ */ d("div", {
|
|
3504
3755
|
ref: o,
|
|
3505
3756
|
style: {
|
|
3506
|
-
...
|
|
3757
|
+
...rn,
|
|
3507
3758
|
...h(a)
|
|
3508
3759
|
},
|
|
3509
3760
|
children: [
|
|
@@ -3515,10 +3766,10 @@ function Xt({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
|
|
|
3515
3766
|
}
|
|
3516
3767
|
//#endregion
|
|
3517
3768
|
//#region ../ui/src/components/builder/render.jsx
|
|
3518
|
-
var
|
|
3519
|
-
...
|
|
3520
|
-
...
|
|
3521
|
-
PluginBlock:
|
|
3769
|
+
var on = {
|
|
3770
|
+
...Ut,
|
|
3771
|
+
...Qt,
|
|
3772
|
+
PluginBlock: an
|
|
3522
3773
|
};
|
|
3523
3774
|
function $(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
|
|
3524
3775
|
let o = n[t];
|
|
@@ -3530,7 +3781,7 @@ function $(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
|
|
|
3530
3781
|
let c = new Set(i).add(n);
|
|
3531
3782
|
return /* @__PURE__ */ u(e, { children: $(s.template.rootId, s.template.nodes, r, c, a) }, t);
|
|
3532
3783
|
}
|
|
3533
|
-
let l =
|
|
3784
|
+
let l = on[s];
|
|
3534
3785
|
if (!l) return null;
|
|
3535
3786
|
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, {
|
|
3536
3787
|
...c,
|
|
@@ -3541,15 +3792,16 @@ function $(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
|
|
|
3541
3792
|
},
|
|
3542
3793
|
children: d.length ? d : void 0
|
|
3543
3794
|
}, t);
|
|
3544
|
-
return c.when && c.when !== "always" ? /* @__PURE__ */ u(
|
|
3795
|
+
return c.when && c.when !== "always" ? /* @__PURE__ */ u(Jt, {
|
|
3545
3796
|
when: c.when,
|
|
3546
3797
|
children: m
|
|
3547
3798
|
}, t) : m;
|
|
3548
3799
|
}
|
|
3549
3800
|
//#endregion
|
|
3550
3801
|
//#region ../ui/src/components/builder/PageRenderer.jsx
|
|
3551
|
-
var
|
|
3552
|
-
|
|
3802
|
+
var sn = (e) => Object.entries(e).map(([e, t]) => `${e}: ${t};`).join(" "), cn = (e) => `.webim-page[data-webim-mode="light"] { ${Object.entries(F(e.light)).map(([e, t]) => `${e}: ${t} !important;`).join(" ")} }
|
|
3803
|
+
.webim-page[data-webim-mode="dark"] { ${Object.entries(F(e.dark)).map(([e, t]) => `${e}: ${t} !important;`).join(" ")} }`;
|
|
3804
|
+
function ln({ 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 }) {
|
|
3553
3805
|
let _ = s?.js?.trim();
|
|
3554
3806
|
if (i(() => {
|
|
3555
3807
|
if (!_) return;
|
|
@@ -3558,38 +3810,41 @@ function $t({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
|
|
|
3558
3810
|
}, [_]), !e?.ROOT) return null;
|
|
3559
3811
|
let v = {
|
|
3560
3812
|
lang: p || void 0,
|
|
3561
|
-
dir:
|
|
3813
|
+
dir: ce(m, p)
|
|
3562
3814
|
}, y = ".webim-page, .webim-page *, .webim-page *::before, .webim-page *::after { box-sizing: border-box; }", b = {
|
|
3563
3815
|
minHeight: "100%",
|
|
3564
3816
|
display: "flex",
|
|
3565
3817
|
flexDirection: "column"
|
|
3566
|
-
}, 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 =
|
|
3818
|
+
}, 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 = ae(e, n).map((e) => /* @__PURE__ */ u("link", {
|
|
3567
3819
|
rel: "stylesheet",
|
|
3568
3820
|
precedence: "default",
|
|
3569
|
-
href:
|
|
3570
|
-
}, e));
|
|
3571
|
-
|
|
3821
|
+
href: z(e)
|
|
3822
|
+
}, e)), k = P(t), A = cn(k);
|
|
3823
|
+
return r === "auto" ? /* @__PURE__ */ u(B.Provider, {
|
|
3572
3824
|
value: {
|
|
3573
3825
|
tenant: c || "",
|
|
3574
3826
|
apiUrl: l || "/api",
|
|
3575
3827
|
locale: p || "",
|
|
3576
3828
|
settings: h ?? null
|
|
3577
3829
|
},
|
|
3578
|
-
children: /* @__PURE__ */ u(
|
|
3830
|
+
children: /* @__PURE__ */ u(qt, {
|
|
3579
3831
|
initialUser: g,
|
|
3580
|
-
children: /* @__PURE__ */ u(
|
|
3832
|
+
children: /* @__PURE__ */ u(V.Provider, {
|
|
3581
3833
|
value: f ?? null,
|
|
3582
|
-
children: /* @__PURE__ */ u(
|
|
3834
|
+
children: /* @__PURE__ */ u(H.Provider, {
|
|
3583
3835
|
value: S,
|
|
3584
3836
|
children: /* @__PURE__ */ d("div", {
|
|
3585
3837
|
...v,
|
|
3586
3838
|
className: "webim-page",
|
|
3587
3839
|
style: {
|
|
3588
3840
|
...b,
|
|
3589
|
-
...
|
|
3841
|
+
...I(t),
|
|
3590
3842
|
...a
|
|
3591
3843
|
},
|
|
3592
3844
|
children: [
|
|
3845
|
+
/* @__PURE__ */ u("style", { children: `.webim-page { ${sn(F(k.light))} }
|
|
3846
|
+
@media (prefers-color-scheme: dark) { .webim-page { ${sn(F(k.dark))} } }` }),
|
|
3847
|
+
/* @__PURE__ */ u("style", { children: A }),
|
|
3593
3848
|
O,
|
|
3594
3849
|
/* @__PURE__ */ u("style", { children: y }),
|
|
3595
3850
|
C && /* @__PURE__ */ u("style", { children: C }),
|
|
@@ -3601,33 +3856,30 @@ function $t({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
|
|
|
3601
3856
|
})
|
|
3602
3857
|
})
|
|
3603
3858
|
})
|
|
3604
|
-
})
|
|
3605
|
-
let k = P(t);
|
|
3606
|
-
return /* @__PURE__ */ u(V.Provider, {
|
|
3859
|
+
}) : /* @__PURE__ */ u(B.Provider, {
|
|
3607
3860
|
value: {
|
|
3608
3861
|
tenant: c || "",
|
|
3609
3862
|
apiUrl: l || "/api",
|
|
3610
3863
|
locale: p || "",
|
|
3611
3864
|
settings: h ?? null
|
|
3612
3865
|
},
|
|
3613
|
-
children: /* @__PURE__ */ u(
|
|
3866
|
+
children: /* @__PURE__ */ u(qt, {
|
|
3614
3867
|
initialUser: g,
|
|
3615
|
-
children: /* @__PURE__ */ u(
|
|
3868
|
+
children: /* @__PURE__ */ u(V.Provider, {
|
|
3616
3869
|
value: f ?? null,
|
|
3617
|
-
children: /* @__PURE__ */ u(
|
|
3870
|
+
children: /* @__PURE__ */ u(H.Provider, {
|
|
3618
3871
|
value: S,
|
|
3619
3872
|
children: /* @__PURE__ */ d("div", {
|
|
3620
3873
|
...v,
|
|
3621
3874
|
className: "webim-page",
|
|
3622
3875
|
style: {
|
|
3623
3876
|
...b,
|
|
3624
|
-
...
|
|
3877
|
+
...ee(t, r),
|
|
3625
3878
|
...a
|
|
3626
3879
|
},
|
|
3627
3880
|
children: [
|
|
3628
|
-
/* @__PURE__ */ u("style", { children: `.webim-page { ${Qt(F(k.light))} }
|
|
3629
|
-
@media (prefers-color-scheme: dark) { .webim-page { ${Qt(F(k.dark))} } }` }),
|
|
3630
3881
|
O,
|
|
3882
|
+
/* @__PURE__ */ u("style", { children: A }),
|
|
3631
3883
|
/* @__PURE__ */ u("style", { children: y }),
|
|
3632
3884
|
C && /* @__PURE__ */ u("style", { children: C }),
|
|
3633
3885
|
w && /* @__PURE__ */ u("style", { children: w }),
|
|
@@ -3642,8 +3894,8 @@ function $t({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
|
|
|
3642
3894
|
}
|
|
3643
3895
|
//#endregion
|
|
3644
3896
|
//#region src/WebimContent.jsx
|
|
3645
|
-
function
|
|
3646
|
-
return e?.blocks?.ROOT ? /* @__PURE__ */ u(
|
|
3897
|
+
function un({ bundle: e, mode: t = "auto", style: n }) {
|
|
3898
|
+
return e?.blocks?.ROOT ? /* @__PURE__ */ u(ln, {
|
|
3647
3899
|
blocks: e.blocks,
|
|
3648
3900
|
theme: e.theme,
|
|
3649
3901
|
components: e.components,
|
|
@@ -3660,7 +3912,7 @@ function en({ bundle: e, mode: t = "auto", style: n }) {
|
|
|
3660
3912
|
}
|
|
3661
3913
|
//#endregion
|
|
3662
3914
|
//#region src/WebimPage.jsx
|
|
3663
|
-
function
|
|
3915
|
+
function dn({ 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 }) {
|
|
3664
3916
|
let [g, _] = c({ status: "loading" }), v = s({
|
|
3665
3917
|
onLoad: m,
|
|
3666
3918
|
onError: h
|
|
@@ -3670,7 +3922,7 @@ function tn({ apiUrl: e, tenant: t, slug: n, locale: r, preview: a, token: o, mo
|
|
|
3670
3922
|
onError: h
|
|
3671
3923
|
}, i(() => {
|
|
3672
3924
|
let i = !0;
|
|
3673
|
-
return _({ status: "loading" }),
|
|
3925
|
+
return _({ status: "loading" }), ne({
|
|
3674
3926
|
apiUrl: e,
|
|
3675
3927
|
tenant: t,
|
|
3676
3928
|
slug: n,
|
|
@@ -3697,11 +3949,11 @@ function tn({ apiUrl: e, tenant: t, slug: n, locale: r, preview: a, token: o, mo
|
|
|
3697
3949
|
r,
|
|
3698
3950
|
a,
|
|
3699
3951
|
o
|
|
3700
|
-
]), g.status === "loading" ? f : g.status === "error" ? typeof p == "function" ? p(g.error) : p : /* @__PURE__ */ u(
|
|
3952
|
+
]), g.status === "loading" ? f : g.status === "error" ? typeof p == "function" ? p(g.error) : p : /* @__PURE__ */ u(un, {
|
|
3701
3953
|
bundle: g.bundle,
|
|
3702
3954
|
mode: l,
|
|
3703
3955
|
style: d
|
|
3704
3956
|
});
|
|
3705
3957
|
}
|
|
3706
3958
|
//#endregion
|
|
3707
|
-
export {
|
|
3959
|
+
export { ln as PageRenderer, un as WebimContent, dn as WebimPage, ne as fetchPage, De as renderRichContent, L as resolveTheme };
|