webim-adapter 1.1.2 → 1.1.3

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.
@@ -254,30 +254,30 @@ function A(e) {
254
254
  R !== void 0 && U.push(`blur(${O(R)})`), z !== void 0 && U.push(`grayscale(${z}%)`), B !== void 0 && U.push(`brightness(${B}%)`), V !== void 0 && U.push(`contrast(${V}%)`), H !== void 0 && U.push(`saturate(${H}%)`), U.length && (t.filter = U.join(" "));
255
255
  let ee = F(L);
256
256
  ee.length && (t.backdropFilter = ee.join(" "), t.WebkitBackdropFilter = t.backdropFilter);
257
- let { textStrokeWidth: te, textStrokeColor: ne } = t;
258
- delete t.textStrokeWidth, delete t.textStrokeColor, (te !== void 0 || ne !== void 0) && (t.WebkitTextStroke = `${O(te ?? 1)} ${ne || "currentColor"}`);
259
- let { clipText: re } = t;
260
- delete t.clipText, re && (t.WebkitBackgroundClip = "text", t.backgroundClip = "text", t.WebkitTextFillColor = "transparent");
261
- let { transitions: W, transitionDuration: G, transitionEasing: K, transitionProperty: ie } = t, ae = (e) => typeof e == "number" || !Number.isNaN(Number(e)) ? `${Number(e)}ms` : e;
257
+ let { textStrokeWidth: W, textStrokeColor: te } = t;
258
+ delete t.textStrokeWidth, delete t.textStrokeColor, (W !== void 0 || te !== void 0) && (t.WebkitTextStroke = `${O(W ?? 1)} ${te || "currentColor"}`);
259
+ let { clipText: ne } = t;
260
+ delete t.clipText, ne && (t.WebkitBackgroundClip = "text", t.backgroundClip = "text", t.WebkitTextFillColor = "transparent");
261
+ let { transitions: G, transitionDuration: K, transitionEasing: q, transitionProperty: re } = t, ie = (e) => typeof e == "number" || !Number.isNaN(Number(e)) ? `${Number(e)}ms` : e;
262
262
  delete t.transitions, delete t.transitionDuration, delete t.transitionEasing, delete t.transitionProperty;
263
- let oe = (Array.isArray(W) ? W : []).filter((e) => e && e.on !== !1).map((e) => `${e.property || "all"} ${ae(e.duration ?? 200)} ${e.easing || "ease"}`);
264
- if (G !== void 0 && oe.push(`${ie || "all"} ${ae(G)} ${K || "ease"}`), oe.length && (t.transition = oe.join(", ")), t.textDecoration !== void 0 && (t.textDecorationLine = t.textDecoration, delete t.textDecoration), t.backgroundImage && !String(t.backgroundImage).includes("(") && (t.backgroundImage = `url("${t.backgroundImage}")`), n) {
263
+ let ae = (Array.isArray(G) ? G : []).filter((e) => e && e.on !== !1).map((e) => `${e.property || "all"} ${ie(e.duration ?? 200)} ${e.easing || "ease"}`);
264
+ if (K !== void 0 && ae.push(`${re || "all"} ${ie(K)} ${q || "ease"}`), ae.length && (t.transition = ae.join(", ")), t.textDecoration !== void 0 && (t.textDecorationLine = t.textDecoration, delete t.textDecoration), t.backgroundImage && !String(t.backgroundImage).includes("(") && (t.backgroundImage = `url("${t.backgroundImage}")`), n) {
265
265
  let e = `${i || "rgba(0,0,0,0.5)"}, ${a || "transparent"}`, o = n === "radial" ? `radial-gradient(circle, ${e})` : `linear-gradient(${r ?? 180}deg, ${e})`;
266
266
  t.backgroundImage = t.backgroundImage ? `${o}, ${t.backgroundImage}` : o;
267
267
  }
268
268
  delete t.backgroundVideo;
269
- let { overlayColor: q, overlayOpacity: se } = t;
270
- if (delete t.overlayColor, delete t.overlayOpacity, q) {
271
- let e = `color-mix(in srgb, ${q} ${se ?? 50}%, transparent)`, n = `linear-gradient(${e}, ${e})`;
269
+ let { overlayColor: J, overlayOpacity: oe } = t;
270
+ if (delete t.overlayColor, delete t.overlayOpacity, J) {
271
+ let e = `color-mix(in srgb, ${J} ${oe ?? 50}%, transparent)`, n = `linear-gradient(${e}, ${e})`;
272
272
  t.backgroundImage = t.backgroundImage ? `${n}, ${t.backgroundImage}` : n;
273
273
  }
274
274
  t.backgroundImage && (t.backgroundSize ??= "cover", t.backgroundPosition ??= "center", t.backgroundRepeat ??= "no-repeat");
275
- let { backgroundLayers: ce } = t;
275
+ let { backgroundLayers: se } = t;
276
276
  delete t.backgroundLayers;
277
- let le = (Array.isArray(ce) ? ce : []).filter((e) => e && e.on !== !1);
278
- if (le.length) {
277
+ let ce = (Array.isArray(se) ? se : []).filter((e) => e && e.on !== !1);
278
+ if (ce.length) {
279
279
  let e = [], n = [], r = [], i = [], a = [];
280
- for (let t of le) 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");
280
+ for (let t of ce) 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");
281
281
  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");
282
282
  else {
283
283
  if (!t.src) continue;
@@ -377,7 +377,7 @@ function U(e, t, n, r = !1) {
377
377
  function ee(e, t, n) {
378
378
  return Object.entries(j).map(([r, i]) => U(e, t?.[r], i, n === r)).filter(Boolean).join("\n");
379
379
  }
380
- var te = [
380
+ var W = [
381
381
  {
382
382
  key: "tablet",
383
383
  max: 991
@@ -390,17 +390,17 @@ var te = [
390
390
  key: "mobile",
391
391
  max: 478
392
392
  }
393
- ], ne = (e) => Object.entries(A(e)).map(([e, t]) => `${H(e)}: ${t} !important;`).join(" ");
394
- function re(e, t) {
395
- return te.map(({ key: n, max: r }) => {
396
- let i = t?.[n] ? ne(t[n]) : "";
393
+ ], te = (e) => Object.entries(A(e)).map(([e, t]) => `${H(e)}: ${t} !important;`).join(" ");
394
+ function ne(e, t) {
395
+ return W.map(({ key: n, max: r }) => {
396
+ let i = t?.[n] ? te(t[n]) : "";
397
397
  return i ? `@media (max-width: ${r}px) { [data-wb="${e}"] { ${i} } }` : "";
398
398
  }).filter(Boolean).join("\n");
399
399
  }
400
- function W(e, t) {
400
+ function G(e, t) {
401
401
  let n = [], r = (e) => {
402
402
  for (let [t, r] of Object.entries(e || {})) {
403
- let e = re(t, r.props);
403
+ let e = ne(t, r.props);
404
404
  e && n.push(e);
405
405
  }
406
406
  };
@@ -408,7 +408,7 @@ function W(e, t) {
408
408
  for (let e of Object.values(t || {})) r(e.template?.nodes);
409
409
  return n.join("\n");
410
410
  }
411
- function G(e, t) {
411
+ function K(e, t) {
412
412
  let n = [], r = (e) => {
413
413
  for (let [t, r] of Object.entries(e || {})) {
414
414
  let e = ee(t, r.props);
@@ -419,15 +419,15 @@ function G(e, t) {
419
419
  for (let e of Object.values(t || {})) r(e.template?.nodes);
420
420
  return n.join("\n");
421
421
  }
422
- var K = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif", ie = {
423
- fontFamily: K,
422
+ var q = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif", re = {
423
+ fontFamily: q,
424
424
  fontStyle: "normal",
425
425
  fontWeight: 400,
426
426
  letterSpacing: "normal",
427
427
  textTransform: "none",
428
428
  lineHeight: 1.4,
429
429
  textShadow: "none"
430
- }, ae = {
430
+ }, ie = {
431
431
  light: {
432
432
  background: "#f2f2f2",
433
433
  surface: "#f2f2f2",
@@ -468,23 +468,23 @@ var K = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Ari
468
468
  contrastText: "#052e2b"
469
469
  }
470
470
  }
471
- }, oe = {
471
+ }, ae = {
472
472
  font: "system",
473
473
  headingFont: "inherit",
474
- light: ae.light,
475
- dark: ae.dark
476
- }, q = {
474
+ light: ie.light,
475
+ dark: ie.dark
476
+ }, J = {
477
477
  system: {
478
478
  label: "System",
479
- value: K
479
+ value: q
480
480
  },
481
481
  inter: {
482
482
  label: "Inter",
483
- value: `"Inter", ${K}`
483
+ value: `"Inter", ${q}`
484
484
  },
485
485
  outfit: {
486
486
  label: "Outfit",
487
- value: `"Outfit", ${K}`
487
+ value: `"Outfit", ${q}`
488
488
  },
489
489
  serif: {
490
490
  label: "Serif",
@@ -494,7 +494,7 @@ var K = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Ari
494
494
  label: "Mono",
495
495
  value: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"
496
496
  }
497
- }, se = (e, t) => q[e]?.value ?? v(e) ?? (typeof e == "string" && e.trim() ? `"${e.trim()}", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif` : t), ce = (e, ...t) => {
497
+ }, oe = (e, t) => J[e]?.value ?? v(e) ?? (typeof e == "string" && e.trim() ? `"${e.trim()}", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif` : t), se = (e, ...t) => {
498
498
  let n = Object.assign({}, e, ...t);
499
499
  return n.primary = {
500
500
  ...e.primary,
@@ -510,20 +510,20 @@ var K = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Ari
510
510
  }), {})
511
511
  }, n;
512
512
  };
513
- function le(e) {
513
+ function ce(e) {
514
514
  let { light: t, dark: n, font: r, headingFont: i, ...a } = e ?? {};
515
515
  return {
516
- font: r ?? oe.font,
517
- headingFont: i ?? oe.headingFont,
518
- light: ce(ae.light, a, t),
519
- dark: ce(ae.dark, n)
516
+ font: r ?? ae.font,
517
+ headingFont: i ?? ae.headingFont,
518
+ light: se(ie.light, a, t),
519
+ dark: se(ie.dark, n)
520
520
  };
521
521
  }
522
- function ue(e) {
522
+ function le(e) {
523
523
  return {
524
524
  "--page-bg": e.background,
525
525
  "--page-surface": e.surface ?? e.background,
526
- "--page-border": e.border ?? ae.light.border,
526
+ "--page-border": e.border ?? ie.light.border,
527
527
  "--page-text": e.text,
528
528
  "--page-accent": e.accent,
529
529
  "--page-accent-text": e.accentText,
@@ -537,23 +537,23 @@ function ue(e) {
537
537
  "--page-secondary-contrast": e.secondary.contrastText
538
538
  };
539
539
  }
540
- function de(e) {
541
- let t = le(e);
540
+ function ue(e) {
541
+ let t = ce(e);
542
542
  return {
543
543
  backgroundColor: "var(--page-bg)",
544
544
  color: "var(--page-text)",
545
- fontFamily: se(t.font, K),
546
- "--page-heading-font": t.headingFont === "inherit" ? "inherit" : se(t.headingFont, "inherit")
545
+ fontFamily: oe(t.font, q),
546
+ "--page-heading-font": t.headingFont === "inherit" ? "inherit" : oe(t.headingFont, "inherit")
547
547
  };
548
548
  }
549
- function fe(e, t = "light") {
550
- let n = le(e);
549
+ function de(e, t = "light") {
550
+ let n = ce(e);
551
551
  return {
552
- ...de(e),
553
- ...ue(n[t] ?? n.light)
552
+ ...ue(e),
553
+ ...le(n[t] ?? n.light)
554
554
  };
555
555
  }
556
- function J(e, t) {
556
+ function fe(e, t) {
557
557
  return e?.themeRef && t?.[e.themeRef] || e?.theme;
558
558
  }
559
559
  function pe(e, t) {
@@ -571,7 +571,7 @@ function me({ page: e, settings: t, tenant: n, apiUrl: r, locale: i }) {
571
571
  title: e.title,
572
572
  slug: e.slug,
573
573
  blocks: i && o.i18n?.[i]?.blocks || e.blocks,
574
- theme: J(o, a.builder_themes?.themes),
574
+ theme: fe(o, a.builder_themes?.themes),
575
575
  components: a.builder_components?.components ?? {},
576
576
  custom: o.custom,
577
577
  animations: o.animations,
@@ -780,7 +780,7 @@ function Le({ text: e, parts: t, tag: n = "h2", style: r, linked: i, nodeRef: a
780
780
  });
781
781
  }
782
782
  var Re = {
783
- fontFamily: q.mono.value,
783
+ fontFamily: J.mono.value,
784
784
  background: "rgba(148, 163, 184, 0.18)",
785
785
  padding: "1px 5px",
786
786
  borderRadius: 4,
@@ -847,8 +847,29 @@ var He = {
847
847
  h4: 22,
848
848
  h5: 19,
849
849
  h6: 16
850
- };
851
- function Ue({ align: e = "center", width: t, wrap: n } = {}) {
850
+ }, Ue = [
851
+ "left",
852
+ "center",
853
+ "right",
854
+ "justify"
855
+ ];
856
+ function We(e, t, n) {
857
+ let r = e && e.cellStyles;
858
+ if (!r || typeof r != "object" || Array.isArray(r)) return {};
859
+ let i = r[`${t}:${n}`];
860
+ return i && typeof i == "object" && !Array.isArray(i) ? i : {};
861
+ }
862
+ function Ge(e, t) {
863
+ let n = e || {}, r = typeof n.bold == "boolean" ? n.bold : !!t;
864
+ return {
865
+ textAlign: Ue.includes(n.align) ? n.align : "left",
866
+ fontWeight: r ? 700 : 400,
867
+ fontStyle: n.italic ? "italic" : void 0,
868
+ color: typeof n.color == "string" && n.color ? n.color : void 0,
869
+ backgroundColor: typeof n.bg == "string" && n.bg ? n.bg : void 0
870
+ };
871
+ }
872
+ function Ke({ align: e = "center", width: t, wrap: n } = {}) {
852
873
  let r = t ? `${t}%` : void 0;
853
874
  if (e === "full") return { width: "100%" };
854
875
  let i = e === "left" || e === "right";
@@ -882,7 +903,7 @@ function Ue({ align: e = "center", width: t, wrap: n } = {}) {
882
903
  marginRight: "auto"
883
904
  };
884
905
  }
885
- function We(e = [], t, n) {
906
+ function qe(e = [], t, n) {
886
907
  let r = n ?? ((e, n) => Be(e, n, t));
887
908
  return e.map((t, n) => {
888
909
  let i = {
@@ -905,7 +926,7 @@ function We(e = [], t, n) {
905
926
  marginLeft: 0,
906
927
  marginRight: 0,
907
928
  ...i,
908
- ...Ue(t)
929
+ ...Ke(t)
909
930
  },
910
931
  children: [t.href ? /* @__PURE__ */ u("a", {
911
932
  href: t.href,
@@ -924,16 +945,16 @@ function We(e = [], t, n) {
924
945
  })]
925
946
  }, n);
926
947
  }
927
- if (t.type === "video") return tt(t.url) ? /* @__PURE__ */ u("div", {
948
+ if (t.type === "video") return it(t.url) ? /* @__PURE__ */ u("div", {
928
949
  style: {
929
950
  ...i,
930
- ...Ue({
951
+ ...Ke({
931
952
  align: t.align,
932
953
  wrap: t.wrap,
933
954
  width: t.width ?? 100
934
955
  })
935
956
  },
936
- children: /* @__PURE__ */ u(nt, {
957
+ children: /* @__PURE__ */ u(at, {
937
958
  url: t.url,
938
959
  autoplay: t.autoplay,
939
960
  muted: t.muted,
@@ -994,9 +1015,11 @@ function We(e = [], t, n) {
994
1015
  let r = t.header !== !1, a = {
995
1016
  border: t.borders === !1 ? void 0 : "1px solid rgba(148, 163, 184, 0.4)",
996
1017
  padding: "6px 10px",
997
- textAlign: "left",
998
1018
  verticalAlign: "top"
999
- }, o = r ? e.slice(1) : e, s = Array.isArray(t.widths) ? t.widths : null;
1019
+ }, o = r ? e.slice(1) : e, s = Array.isArray(t.widths) ? t.widths : null, c = (e, n, r) => ({
1020
+ ...a,
1021
+ ...Ge(We(t, e, n), r)
1022
+ });
1000
1023
  return /* @__PURE__ */ d("table", {
1001
1024
  style: {
1002
1025
  ...i,
@@ -1008,16 +1031,13 @@ function We(e = [], t, n) {
1008
1031
  children: [
1009
1032
  s && /* @__PURE__ */ u("colgroup", { children: s.map((e, t) => /* @__PURE__ */ u("col", { style: { width: `${e}%` } }, t)) }),
1010
1033
  r && /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", { children: e[0].map((e, t) => /* @__PURE__ */ u("th", {
1011
- style: {
1012
- ...a,
1013
- fontWeight: 700
1014
- },
1034
+ style: c(0, t, !0),
1015
1035
  children: e
1016
1036
  }, t)) }) }),
1017
- /* @__PURE__ */ u("tbody", { children: o.map((e, t) => /* @__PURE__ */ u("tr", { children: e.map((e, t) => /* @__PURE__ */ u("td", {
1018
- style: a,
1037
+ /* @__PURE__ */ u("tbody", { children: o.map((e, t) => /* @__PURE__ */ u("tr", { children: e.map((e, n) => /* @__PURE__ */ u("td", {
1038
+ style: c(r ? t + 1 : t, n, !1),
1019
1039
  children: e
1020
- }, t)) }, t)) })
1040
+ }, n)) }, t)) })
1021
1041
  ]
1022
1042
  }, n);
1023
1043
  }
@@ -1036,7 +1056,7 @@ function We(e = [], t, n) {
1036
1056
  }
1037
1057
  if (t.type === "quote") return /* @__PURE__ */ u("blockquote", {
1038
1058
  style: {
1039
- ...Ke,
1059
+ ...Ye,
1040
1060
  ...i
1041
1061
  },
1042
1062
  children: r(t.parts, t.text)
@@ -1061,32 +1081,32 @@ function We(e = [], t, n) {
1061
1081
  }, n);
1062
1082
  });
1063
1083
  }
1064
- function Ge({ content: e, style: t, linked: n, nodeRef: r }) {
1084
+ function Je({ content: e, style: t, linked: n, nodeRef: r }) {
1065
1085
  return /* @__PURE__ */ u("div", {
1066
1086
  ref: r,
1067
1087
  style: {
1068
1088
  display: "flow-root",
1069
1089
  ...A(t)
1070
1090
  },
1071
- children: We(e, n)
1091
+ children: qe(e, n)
1072
1092
  });
1073
1093
  }
1074
- var Ke = {
1094
+ var Ye = {
1075
1095
  margin: 0,
1076
1096
  padding: "8px 0 8px 20px",
1077
1097
  borderLeft: "4px solid var(--page-accent, rgba(148, 163, 184, 0.6))"
1078
1098
  };
1079
- function qe({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
1099
+ function Xe({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
1080
1100
  return /* @__PURE__ */ u("blockquote", {
1081
1101
  ref: i,
1082
1102
  style: {
1083
- ...Ke,
1103
+ ...Ye,
1084
1104
  ...A(n)
1085
1105
  },
1086
1106
  children: Be(t, e, r)
1087
1107
  });
1088
1108
  }
1089
- function Je({ ordered: e, items: t = [], style: n, nodeRef: r }) {
1109
+ function Ze({ ordered: e, items: t = [], style: n, nodeRef: r }) {
1090
1110
  return /* @__PURE__ */ u(e ? "ol" : "ul", {
1091
1111
  ref: r,
1092
1112
  style: {
@@ -1100,7 +1120,7 @@ function Je({ ordered: e, items: t = [], style: n, nodeRef: r }) {
1100
1120
  }, t))
1101
1121
  });
1102
1122
  }
1103
- function Ye({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
1123
+ function Qe({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
1104
1124
  return /* @__PURE__ */ u("p", {
1105
1125
  ref: i,
1106
1126
  style: {
@@ -1110,26 +1130,26 @@ function Ye({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
1110
1130
  children: Be(t, e, r)
1111
1131
  });
1112
1132
  }
1113
- var Xe = {
1133
+ var $e = {
1114
1134
  color: "var(--page-accent, inherit)",
1115
1135
  textDecoration: "underline",
1116
1136
  textUnderlineOffset: 3,
1117
1137
  cursor: "pointer"
1118
1138
  };
1119
- function Ze({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRef: o }) {
1139
+ function et({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRef: o }) {
1120
1140
  return /* @__PURE__ */ u("a", {
1121
1141
  ref: o,
1122
1142
  href: n || "#",
1123
1143
  target: r || void 0,
1124
1144
  rel: r === "_blank" ? "noopener noreferrer" : void 0,
1125
1145
  style: {
1126
- ...Xe,
1146
+ ...$e,
1127
1147
  ...A(i)
1128
1148
  },
1129
1149
  children: Be(t, e, a)
1130
1150
  });
1131
1151
  }
1132
- function Qe({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRef: o }) {
1152
+ function tt({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRef: o }) {
1133
1153
  return /* @__PURE__ */ u("a", {
1134
1154
  ref: o,
1135
1155
  href: n || "#",
@@ -1142,7 +1162,7 @@ function Qe({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRe
1142
1162
  children: Be(t, e, a)
1143
1163
  });
1144
1164
  }
1145
- function $e({ src: e, alt: t, style: n, nodeRef: r }) {
1165
+ function nt({ src: e, alt: t, style: n, nodeRef: r }) {
1146
1166
  return e ? /* @__PURE__ */ u("img", {
1147
1167
  ref: r,
1148
1168
  src: e,
@@ -1154,7 +1174,7 @@ function $e({ src: e, alt: t, style: n, nodeRef: r }) {
1154
1174
  }
1155
1175
  }) : null;
1156
1176
  }
1157
- function et({ src: e, poster: t, controls: n = !0, autoplay: r = !1, loop: i = !1, muted: a = !1, style: o, nodeRef: s }) {
1177
+ function rt({ src: e, poster: t, controls: n = !0, autoplay: r = !1, loop: i = !1, muted: a = !1, style: o, nodeRef: s }) {
1158
1178
  return e ? /* @__PURE__ */ u("video", {
1159
1179
  ref: s,
1160
1180
  src: e,
@@ -1172,9 +1192,9 @@ function et({ src: e, poster: t, controls: n = !0, autoplay: r = !1, loop: i = !
1172
1192
  }
1173
1193
  }) : null;
1174
1194
  }
1175
- var tt = (e = "") => (e.match(/(?:youtu\.be\/|v=|embed\/|shorts\/|live\/)([\w-]{11})/) || e.match(/^([\w-]{11})$/))?.[1];
1176
- function nt({ url: e, autoplay: t = !1, muted: n = !1, loop: r = !1, controls: i = !0, start: a, style: o, nodeRef: s }) {
1177
- let c = tt(e);
1195
+ var it = (e = "") => (e.match(/(?:youtu\.be\/|v=|embed\/|shorts\/|live\/)([\w-]{11})/) || e.match(/^([\w-]{11})$/))?.[1];
1196
+ function at({ url: e, autoplay: t = !1, muted: n = !1, loop: r = !1, controls: i = !0, start: a, style: o, nodeRef: s }) {
1197
+ let c = it(e);
1178
1198
  if (!c) return null;
1179
1199
  let l = new URLSearchParams({ rel: "0" });
1180
1200
  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", {
@@ -1200,7 +1220,7 @@ function nt({ url: e, autoplay: t = !1, muted: n = !1, loop: r = !1, controls: i
1200
1220
  })
1201
1221
  });
1202
1222
  }
1203
- function rt({ src: e, title: t, allowFullscreen: n = !0, style: r, nodeRef: i }) {
1223
+ function ot({ src: e, title: t, allowFullscreen: n = !0, style: r, nodeRef: i }) {
1204
1224
  return e ? /* @__PURE__ */ u("iframe", {
1205
1225
  ref: i,
1206
1226
  src: e,
@@ -1216,7 +1236,7 @@ function rt({ src: e, title: t, allowFullscreen: n = !0, style: r, nodeRef: i })
1216
1236
  }
1217
1237
  }) : null;
1218
1238
  }
1219
- function it({ code: e, runScripts: t = !0, style: n, nodeRef: r }) {
1239
+ function st({ code: e, runScripts: t = !0, style: n, nodeRef: r }) {
1220
1240
  let [a, o] = c(null);
1221
1241
  return i(() => {
1222
1242
  a && (a.innerHTML = e || "", t && a.querySelectorAll("script").forEach((e) => {
@@ -1235,7 +1255,7 @@ function it({ code: e, runScripts: t = !0, style: n, nodeRef: r }) {
1235
1255
  style: A(n)
1236
1256
  });
1237
1257
  }
1238
- function at({ height: e, nodeRef: t }) {
1258
+ function ct({ height: e, nodeRef: t }) {
1239
1259
  return /* @__PURE__ */ u("div", {
1240
1260
  ref: t,
1241
1261
  style: {
@@ -1245,7 +1265,7 @@ function at({ height: e, nodeRef: t }) {
1245
1265
  }
1246
1266
  });
1247
1267
  }
1248
- function ot({ style: e, nodeRef: t }) {
1268
+ function lt({ style: e, nodeRef: t }) {
1249
1269
  return /* @__PURE__ */ u("div", {
1250
1270
  ref: t,
1251
1271
  style: {
@@ -1256,7 +1276,7 @@ function ot({ style: e, nodeRef: t }) {
1256
1276
  }
1257
1277
  });
1258
1278
  }
1259
- var st = {
1279
+ var ut = {
1260
1280
  position: "absolute",
1261
1281
  top: "50%",
1262
1282
  transform: "translateY(-50%)",
@@ -1273,7 +1293,7 @@ var st = {
1273
1293
  alignItems: "center",
1274
1294
  justifyContent: "center",
1275
1295
  padding: 0
1276
- }, ct = {
1296
+ }, dt = {
1277
1297
  bottom: {
1278
1298
  inset: "auto 0 0 0",
1279
1299
  padding: "40px 24px 20px",
@@ -1292,8 +1312,8 @@ var st = {
1292
1312
  padding: 24,
1293
1313
  textShadow: "0 2px 12px rgba(0, 0, 0, 0.6)"
1294
1314
  }
1295
- }, lt = 48;
1296
- function ut({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, height: a = 320, swipe: o = !0, style: s, nodeRef: f }) {
1315
+ }, ft = 48;
1316
+ function pt({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, height: a = 320, swipe: o = !0, style: s, nodeRef: f }) {
1297
1317
  let [p, m] = c(0), [h, g] = c(!1), [_, v] = c(null), y = e ? Math.min(p, e - 1) : 0;
1298
1318
  if (i(() => {
1299
1319
  if (!n || h || _ || e < 2) return;
@@ -1309,7 +1329,7 @@ function ut({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
1309
1329
  let b = (t) => m((t + e) % e), x = () => {
1310
1330
  if (!_) return;
1311
1331
  let { dx: e } = _;
1312
- v(null), e < -48 ? b(y + 1) : e > lt && b(y - 1);
1332
+ v(null), e < -48 ? b(y + 1) : e > ft && b(y - 1);
1313
1333
  };
1314
1334
  return /* @__PURE__ */ d("div", {
1315
1335
  ref: f,
@@ -1357,7 +1377,7 @@ function ut({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
1357
1377
  type: "button",
1358
1378
  "aria-label": "Previous slide",
1359
1379
  style: {
1360
- ...st,
1380
+ ...ut,
1361
1381
  left: 12
1362
1382
  },
1363
1383
  onClick: () => b(y - 1),
@@ -1367,7 +1387,7 @@ function ut({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
1367
1387
  type: "button",
1368
1388
  "aria-label": "Next slide",
1369
1389
  style: {
1370
- ...st,
1390
+ ...ut,
1371
1391
  right: 12
1372
1392
  },
1373
1393
  onClick: () => b(y + 1),
@@ -1401,7 +1421,7 @@ function ut({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
1401
1421
  ] })]
1402
1422
  });
1403
1423
  }
1404
- var dt = (e, t) => ({
1424
+ var mt = (e, t) => ({
1405
1425
  position: "absolute",
1406
1426
  inset: 0,
1407
1427
  backgroundImage: e ? `url(${e})` : "none",
@@ -1409,18 +1429,18 @@ var dt = (e, t) => ({
1409
1429
  backgroundSize: "cover",
1410
1430
  backgroundPosition: "center"
1411
1431
  });
1412
- function ft({ slides: e = [], captionPosition: t = "bottom", captionAlign: n = "left", ...r }) {
1413
- return e.length ? /* @__PURE__ */ u(ut, {
1432
+ function ht({ slides: e = [], captionPosition: t = "bottom", captionAlign: n = "left", ...r }) {
1433
+ return e.length ? /* @__PURE__ */ u(pt, {
1414
1434
  ...r,
1415
1435
  count: e.length,
1416
1436
  renderSlide: (r) => {
1417
1437
  let i = e[r];
1418
- return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style: dt(i.image) }), (i.title || i.text) && /* @__PURE__ */ d("div", {
1438
+ return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style: mt(i.image) }), (i.title || i.text) && /* @__PURE__ */ d("div", {
1419
1439
  style: {
1420
1440
  position: "absolute",
1421
1441
  color: "#fff",
1422
1442
  textAlign: n,
1423
- ...ct[t] ?? ct.bottom
1443
+ ...dt[t] ?? dt.bottom
1424
1444
  },
1425
1445
  children: [i.title && /* @__PURE__ */ u("div", {
1426
1446
  style: {
@@ -1440,13 +1460,13 @@ function ft({ slides: e = [], captionPosition: t = "bottom", captionAlign: n = "
1440
1460
  }
1441
1461
  }) : null;
1442
1462
  }
1443
- function pt({ slides: e = [], linked: t, ...n }) {
1444
- return e.length ? /* @__PURE__ */ u(ut, {
1463
+ function gt({ slides: e = [], linked: t, ...n }) {
1464
+ return e.length ? /* @__PURE__ */ u(pt, {
1445
1465
  ...n,
1446
1466
  count: e.length,
1447
1467
  renderSlide: (n) => {
1448
1468
  let r = e[n];
1449
- return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style: dt(r.image, r.color) }), /* @__PURE__ */ u("div", {
1469
+ return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style: mt(r.image, r.color) }), /* @__PURE__ */ u("div", {
1450
1470
  style: {
1451
1471
  position: "absolute",
1452
1472
  inset: 0,
@@ -1458,23 +1478,23 @@ function pt({ slides: e = [], linked: t, ...n }) {
1458
1478
  }
1459
1479
  }) : null;
1460
1480
  }
1461
- var mt = 256, ht = (e) => Math.log(Math.tan(Math.PI / 4 + Math.max(-85, Math.min(85, e)) * Math.PI / 360)), gt = (e, t, n) => {
1462
- let r = mt * 2 ** n;
1481
+ var _t = 256, vt = (e) => Math.log(Math.tan(Math.PI / 4 + Math.max(-85, Math.min(85, e)) * Math.PI / 360)), yt = (e, t, n) => {
1482
+ let r = _t * 2 ** n;
1463
1483
  return {
1464
1484
  x: (Number(t) + 180) / 360 * r,
1465
- y: (.5 - ht(Number(e)) / (2 * Math.PI)) * r
1485
+ y: (.5 - vt(Number(e)) / (2 * Math.PI)) * r
1466
1486
  };
1467
1487
  }, $ = (e, t) => {
1468
1488
  if (e === "" || e == null) return null;
1469
1489
  let n = Number(e);
1470
1490
  return Number.isFinite(n) && Math.abs(n) <= t ? n : null;
1471
- }, _t = (e) => !!e && $(e.lat, 90) !== null && $(e.lng, 180) !== null;
1472
- function vt(e, t, n = "directions", r = "") {
1491
+ }, bt = (e) => !!e && $(e.lat, 90) !== null && $(e.lng, 180) !== null;
1492
+ function xt(e, t, n = "directions", r = "") {
1473
1493
  let i = `${e},${t}`;
1474
1494
  return n === "place" ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(i)}${r ? "&query_place_id=" : ""}` : `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(i)}`;
1475
1495
  }
1476
- var yt = (e, t, n = 13) => `https://www.openstreetmap.org/?mlat=${e}&mlon=${t}#map=${Math.round(Number(n) || 13)}/${e}/${t}`;
1477
- function bt({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize: o = 22, pinLink: l = "directions", link: f = !1, label: p = "", style: m, nodeRef: h, inert: g }) {
1496
+ var St = (e, t, n = 13) => `https://www.openstreetmap.org/?mlat=${e}&mlon=${t}#map=${Math.round(Number(n) || 13)}/${e}/${t}`;
1497
+ function Ct({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize: o = 22, pinLink: l = "directions", link: f = !1, label: p = "", style: m, nodeRef: h, inert: g }) {
1478
1498
  let _ = s(null), [v, y] = c(1200);
1479
1499
  i(() => {
1480
1500
  let e = _.current;
@@ -1484,7 +1504,7 @@ function bt({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
1484
1504
  let n = new ResizeObserver(t);
1485
1505
  return n.observe(e), () => n.disconnect();
1486
1506
  }, []);
1487
- let b = (Array.isArray(e) ? e : []).filter(_t), x = _t({
1507
+ let b = (Array.isArray(e) ? e : []).filter(bt), x = bt({
1488
1508
  lat: t,
1489
1509
  lng: n
1490
1510
  }) ? {
@@ -1496,7 +1516,7 @@ function bt({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
1496
1516
  } : null, S = Math.max(80, Number(a) || 320), C = $(r, 19) ? Math.min(Math.max(Math.round(Number(r)), 1), 19) : (() => {
1497
1517
  if (b.length < 2) return 13;
1498
1518
  for (let e = 19; e >= 1; e--) {
1499
- let t = b.map((t) => gt($(t.lat, 90), $(t.lng, 180), e)), n = Math.max(...t.map((e) => e.x)) - Math.min(...t.map((e) => e.x)), r = Math.max(...t.map((e) => e.y)) - Math.min(...t.map((e) => e.y));
1519
+ let t = b.map((t) => yt($(t.lat, 90), $(t.lng, 180), e)), n = Math.max(...t.map((e) => e.x)) - Math.min(...t.map((e) => e.x)), r = Math.max(...t.map((e) => e.y)) - Math.min(...t.map((e) => e.y));
1500
1520
  if (n <= v * .8 && r <= S * .7) return e;
1501
1521
  }
1502
1522
  return 1;
@@ -1520,12 +1540,12 @@ function bt({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
1520
1540
  },
1521
1541
  children: "Set the coordinates in Settings"
1522
1542
  });
1523
- let T = gt(x.lat, x.lng, C), E = {
1543
+ let T = yt(x.lat, x.lng, C), E = {
1524
1544
  x: T.x - v / 2,
1525
1545
  y: T.y - S / 2
1526
1546
  }, D = [], O = [];
1527
- for (let e = Math.floor(E.x / mt); e <= Math.floor((E.x + v) / mt); e++) D.push(e);
1528
- for (let e = Math.floor(E.y / mt); e <= Math.floor((E.y + S) / mt); e++) O.push(e);
1547
+ for (let e = Math.floor(E.x / _t); e <= Math.floor((E.x + v) / _t); e++) D.push(e);
1548
+ for (let e = Math.floor(E.y / _t); e <= Math.floor((E.y + S) / _t); e++) O.push(e);
1529
1549
  let k = 2 ** C;
1530
1550
  return /* @__PURE__ */ d("div", {
1531
1551
  ref: (e) => {
@@ -1548,22 +1568,22 @@ function bt({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
1548
1568
  return e < 0 || e >= k ? null : /* @__PURE__ */ u("img", {
1549
1569
  src: `https://tile.openstreetmap.org/${C}/${n}/${e}.png`,
1550
1570
  alt: "",
1551
- width: mt,
1552
- height: mt,
1571
+ width: _t,
1572
+ height: _t,
1553
1573
  loading: "lazy",
1554
1574
  style: {
1555
1575
  position: "absolute",
1556
- left: Math.round(t * mt - E.x),
1557
- top: Math.round(e * mt - E.y),
1558
- width: mt,
1559
- height: mt,
1576
+ left: Math.round(t * _t - E.x),
1577
+ top: Math.round(e * _t - E.y),
1578
+ width: _t,
1579
+ height: _t,
1560
1580
  userSelect: "none",
1561
1581
  pointerEvents: "none"
1562
1582
  }
1563
1583
  }, `${t}-${e}`);
1564
1584
  })),
1565
1585
  b.map((e, t) => {
1566
- let n = gt($(e.lat, 90), $(e.lng, 180), C), r = n.x - E.x, i = n.y - E.y, a = e.color || "var(--page-accent, #dc2626)", s = l === "none" || g ? null : vt($(e.lat, 90), $(e.lng, 180), l, e.title);
1586
+ let n = yt($(e.lat, 90), $(e.lng, 180), C), r = n.x - E.x, i = n.y - E.y, a = e.color || "var(--page-accent, #dc2626)", s = l === "none" || g ? null : xt($(e.lat, 90), $(e.lng, 180), l, e.title);
1567
1587
  return /* @__PURE__ */ d(s ? "a" : "span", {
1568
1588
  href: s || void 0,
1569
1589
  target: s ? "_blank" : void 0,
@@ -1602,8 +1622,8 @@ function bt({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
1602
1622
  viewBox: "0 0 24 24",
1603
1623
  fill: a,
1604
1624
  style: { display: "block" },
1605
- children: [/* @__PURE__ */ u("path", { d: "M12 22s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11z" }), xt[e.icon] ? /* @__PURE__ */ u("path", {
1606
- d: xt[e.icon],
1625
+ children: [/* @__PURE__ */ u("path", { d: "M12 22s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11z" }), wt[e.icon] ? /* @__PURE__ */ u("path", {
1626
+ d: wt[e.icon],
1607
1627
  transform: "translate(12 10.5) scale(0.46) translate(-12 -12)",
1608
1628
  fill: "none",
1609
1629
  stroke: "#fff",
@@ -1639,7 +1659,7 @@ function bt({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
1639
1659
  })
1640
1660
  ]
1641
1661
  }), f ? /* @__PURE__ */ u("a", {
1642
- href: yt(x.lat, x.lng, C),
1662
+ href: St(x.lat, x.lng, C),
1643
1663
  target: "_blank",
1644
1664
  rel: "noopener noreferrer",
1645
1665
  onClick: g ? (e) => e.preventDefault() : void 0,
@@ -1653,7 +1673,7 @@ function bt({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
1653
1673
  }) : null]
1654
1674
  });
1655
1675
  }
1656
- var xt = {
1676
+ var wt = {
1657
1677
  check: "M4 12l5 5L20 6",
1658
1678
  close: "M6 6l12 12M18 6L6 18",
1659
1679
  plus: "M12 5v14M5 12h14",
@@ -1750,8 +1770,8 @@ var xt = {
1750
1770
  droplet: "M12 3s6 6.4 6 10.5a6 6 0 0 1-12 0C6 9.4 12 3 12 3z",
1751
1771
  leaf: "M4 20c0-8 6-14 16-14 0 10-6 14-12 14H4zM8 16c2-4 5-6 8-7"
1752
1772
  };
1753
- function St({ name: e = "star", paths: t, fill: n = !1, size: r = 24, stroke: i = 2, color: a = "", href: o = "", target: s = "", label: c = "", style: l, nodeRef: d, inert: f }) {
1754
- let p = Array.isArray(t) ? t.filter((e) => typeof e == "string" && e.trim()) : [], m = n && p.length > 0, h = p.length ? p : [xt[e] ?? xt.star], g = Math.min(Math.max(Number(r) || 24, 8), 240), _ = a === "accent" ? "var(--page-accent, currentColor)" : a || "currentColor", v = /* @__PURE__ */ u("svg", {
1773
+ function Tt({ name: e = "star", paths: t, fill: n = !1, size: r = 24, stroke: i = 2, color: a = "", href: o = "", target: s = "", label: c = "", style: l, nodeRef: d, inert: f }) {
1774
+ let p = Array.isArray(t) ? t.filter((e) => typeof e == "string" && e.trim()) : [], m = n && p.length > 0, h = p.length ? p : [wt[e] ?? wt.star], g = Math.min(Math.max(Number(r) || 24, 8), 240), _ = a === "accent" ? "var(--page-accent, currentColor)" : a || "currentColor", v = /* @__PURE__ */ u("svg", {
1755
1775
  viewBox: "0 0 24 24",
1756
1776
  width: g,
1757
1777
  height: g,
@@ -1787,7 +1807,7 @@ function St({ name: e = "star", paths: t, fill: n = !1, size: r = 24, stroke: i
1787
1807
  children: v
1788
1808
  });
1789
1809
  }
1790
- function Ct(e, t = {}, n = 0) {
1810
+ function Et(e, t = {}, n = 0) {
1791
1811
  let r = Array.isArray(e) ? e.filter((e) => e && typeof e == "object") : [], i = (e) => e == null ? "" : Te(e), a = Math.max(0, Number(n) || 0), o = [];
1792
1812
  for (let e of r) {
1793
1813
  let n = e.data ?? e, r = Ce(n, t.imageField), s = (Array.isArray(r) ? r : [r]).map((e) => e && typeof e == "object" ? e.url ?? e.src ?? "" : e).filter((e) => typeof e == "string" && e.trim()), c = t.nameField ? i(Ce(n, t.nameField)) : i(n.name), l = t.hrefField ? i(Ce(n, t.hrefField)) : "";
@@ -1800,7 +1820,7 @@ function Ct(e, t = {}, n = 0) {
1800
1820
  }
1801
1821
  return o;
1802
1822
  }
1803
- function wt({ images: e = [], source: t = "", entry: n = "", imageField: a = "", nameField: o = "", hrefField: s = "", limit: f = 0, emptyText: p = "", columns: m = 3, gap: h = 8, showNames: g = !1, lightbox: _ = !0, style: v, nodeRef: y, inert: b }) {
1823
+ function Dt({ images: e = [], source: t = "", entry: n = "", imageField: a = "", nameField: o = "", hrefField: s = "", limit: f = 0, emptyText: p = "", columns: m = 3, gap: h = 8, showNames: g = !1, lightbox: _ = !0, style: v, nodeRef: y, inert: b }) {
1804
1824
  let { tenant: x, apiUrl: S } = r(Y), C = r(be)?.[t], [w, T] = c(null), [E, D] = c(() => /* @__PURE__ */ new Set());
1805
1825
  i(() => {
1806
1826
  if (!t || C) return;
@@ -1818,7 +1838,7 @@ function wt({ images: e = [], source: t = "", entry: n = "", imageField: a = "",
1818
1838
  C
1819
1839
  ]);
1820
1840
  let O = C ?? w ?? [], k = n ? O.filter((e) => e?.id === n || e?.data?.slug === n || e?.slug === n) : O, j = Math.max(0, Number(f) || 0), M = t ? (() => {
1821
- let e = Ct(k, {
1841
+ let e = Et(k, {
1822
1842
  imageField: a,
1823
1843
  nameField: o,
1824
1844
  hrefField: s
@@ -2023,19 +2043,19 @@ function wt({ images: e = [], source: t = "", entry: n = "", imageField: a = "",
2023
2043
  ]
2024
2044
  });
2025
2045
  }
2026
- var Tt = {
2046
+ var Ot = {
2027
2047
  color: "inherit",
2028
2048
  textDecoration: "none",
2029
2049
  fontSize: 14,
2030
2050
  opacity: .85
2031
- }, Et = {
2051
+ }, kt = {
2032
2052
  background: "var(--page-surface, #f2f2f2)",
2033
2053
  color: "var(--page-text, #111827)",
2034
2054
  border: "1px solid rgba(148, 163, 184, 0.25)",
2035
2055
  boxShadow: "0 16px 40px rgba(15, 23, 42, 0.16)",
2036
2056
  zIndex: 60
2037
2057
  };
2038
- function Dt(e, t = {}, n = "dropdown") {
2058
+ function At(e, t = {}, n = "dropdown") {
2039
2059
  let r = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.id) : [], i = (e) => Array.isArray(e) ? e[0] : e, a = (e) => e == null ? "" : Te(e), o = r.map((e) => {
2040
2060
  let n = e.data ?? {}, r = t.parentField ? i(n[t.parentField]) : null;
2041
2061
  return {
@@ -2077,7 +2097,7 @@ function Dt(e, t = {}, n = "dropdown") {
2077
2097
  type: e.children.length ? n : "link"
2078
2098
  }));
2079
2099
  }
2080
- function Ot({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], style: f, nodeRef: p, menu: m = "auto", breakpoint: h = 768, source: g = "", labelField: _ = "", hrefField: v = "", imageField: y = "", descField: b = "", parentField: x = "", submenu: S = "dropdown" }) {
2100
+ function jt({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], style: f, nodeRef: p, menu: m = "auto", breakpoint: h = 768, source: g = "", labelField: _ = "", hrefField: v = "", imageField: y = "", descField: b = "", parentField: x = "", submenu: S = "dropdown" }) {
2081
2101
  let [C, w] = c(null), [T, E] = c(!1), [D, O] = c(!1), [k, j] = c(null), { tenant: M, apiUrl: N } = r(Y), P = r(be)?.[g], [F, I] = c(null);
2082
2102
  i(() => {
2083
2103
  if (!g || P) return;
@@ -2098,7 +2118,7 @@ function Ot({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
2098
2118
  let e = new ResizeObserver(() => E(C.offsetWidth < h));
2099
2119
  return e.observe(C), () => e.disconnect();
2100
2120
  }, [C, h]);
2101
- let L = g ? Dt(P ?? F ?? [], {
2121
+ let L = g ? At(P ?? F ?? [], {
2102
2122
  labelField: _,
2103
2123
  hrefField: v,
2104
2124
  imageField: y,
@@ -2127,7 +2147,7 @@ function Ot({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
2127
2147
  return /* @__PURE__ */ d("a", {
2128
2148
  href: e.href || "#",
2129
2149
  style: {
2130
- ...Tt,
2150
+ ...Ot,
2131
2151
  display: n ? "block" : "flex",
2132
2152
  alignItems: n ? void 0 : "center",
2133
2153
  gap: n ? void 0 : 10,
@@ -2224,7 +2244,7 @@ function Ot({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
2224
2244
  let t = e.children ?? [];
2225
2245
  if (!t.length) return /* @__PURE__ */ u("a", {
2226
2246
  href: e.href || "#",
2227
- style: Tt,
2247
+ style: Ot,
2228
2248
  children: e.label
2229
2249
  }, e.key);
2230
2250
  let n = e.type === "mega";
@@ -2238,7 +2258,7 @@ function Ot({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
2238
2258
  children: [/* @__PURE__ */ d("a", {
2239
2259
  href: e.href || "#",
2240
2260
  style: {
2241
- ...Tt,
2261
+ ...Ot,
2242
2262
  cursor: "pointer"
2243
2263
  },
2244
2264
  children: [
@@ -2254,7 +2274,7 @@ function Ot({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
2254
2274
  ]
2255
2275
  }), k === e.key && (n ? /* @__PURE__ */ u("div", {
2256
2276
  style: {
2257
- ...Et,
2277
+ ...kt,
2258
2278
  position: "absolute",
2259
2279
  left: 0,
2260
2280
  right: 0,
@@ -2270,7 +2290,7 @@ function Ot({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
2270
2290
  }, !0))
2271
2291
  }) : /* @__PURE__ */ u("div", {
2272
2292
  style: {
2273
- ...Et,
2293
+ ...kt,
2274
2294
  position: "absolute",
2275
2295
  top: "100%",
2276
2296
  left: 0,
@@ -2299,7 +2319,7 @@ function Ot({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
2299
2319
  children: L.map((t) => /* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u("a", {
2300
2320
  href: t.href || "#",
2301
2321
  style: {
2302
- ...Tt,
2322
+ ...Ot,
2303
2323
  padding: "10px 4px",
2304
2324
  fontWeight: (t.children ?? []).length ? 600 : 400,
2305
2325
  opacity: 1
@@ -2310,7 +2330,7 @@ function Ot({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
2310
2330
  ]
2311
2331
  });
2312
2332
  }
2313
- function kt({ tabs: e = [], linked: t, style: n, nodeRef: r }) {
2333
+ function Mt({ tabs: e = [], linked: t, style: n, nodeRef: r }) {
2314
2334
  let [i, a] = c(0), o = e.length ? Math.min(i, e.length - 1) : 0;
2315
2335
  return e.length ? /* @__PURE__ */ d("div", {
2316
2336
  ref: r,
@@ -2350,13 +2370,13 @@ function kt({ tabs: e = [], linked: t, style: n, nodeRef: r }) {
2350
2370
  }, e.key))]
2351
2371
  }) : null;
2352
2372
  }
2353
- function At({ items: e = [], linked: t, multiple: n = !1, icon: r = "", padX: i, padY: a, headerBg: o, headerColor: s, openBg: l, openColor: f, borderColor: p, style: m, nodeRef: h }) {
2373
+ function Nt({ items: e = [], linked: t, multiple: n = !1, icon: r = "", padX: i, padY: a, headerBg: o, headerColor: s, openBg: l, openColor: f, borderColor: p, style: m, nodeRef: h }) {
2354
2374
  let [g, _] = c(() => new Set(e.length ? [e[0].key] : []));
2355
2375
  if (!e.length) return null;
2356
2376
  let v = (e, t) => typeof e == "string" && e ? e : t, y = (e, t) => {
2357
2377
  let n = Number(e);
2358
2378
  return e === "" || e == null || !Number.isFinite(n) ? t : n;
2359
- }, b = xt[r], x = (e) => _((t) => {
2379
+ }, b = wt[r], x = (e) => _((t) => {
2360
2380
  let r = new Set(n ? t : []);
2361
2381
  return t.has(e) ? r.delete(e) : r.add(e), r;
2362
2382
  });
@@ -2431,15 +2451,15 @@ function At({ items: e = [], linked: t, multiple: n = !1, icon: r = "", padX: i,
2431
2451
  })
2432
2452
  });
2433
2453
  }
2434
- var jt = {
2454
+ var Pt = {
2435
2455
  display: "flex",
2436
2456
  flexDirection: "column",
2437
2457
  gap: "12px"
2438
- }, Mt = {
2458
+ }, Ft = {
2439
2459
  fontSize: "14px",
2440
2460
  fontWeight: 500,
2441
2461
  color: "var(--page-text, #111827)"
2442
- }, Nt = {
2462
+ }, It = {
2443
2463
  padding: "10px 12px",
2444
2464
  border: "1px solid var(--page-border, #d1d5db)",
2445
2465
  borderRadius: "6px",
@@ -2449,18 +2469,18 @@ var jt = {
2449
2469
  boxSizing: "border-box",
2450
2470
  backgroundColor: "var(--page-surface, #f2f2f2)",
2451
2471
  color: "var(--page-text, #111827)"
2452
- }, Pt = {
2472
+ }, Lt = {
2453
2473
  display: "flex",
2454
2474
  alignItems: "center",
2455
2475
  gap: "8px",
2456
2476
  fontSize: "14px",
2457
2477
  color: "var(--page-text, #111827)"
2458
- }, Ft = (e) => e ? {
2478
+ }, Rt = (e) => e ? {
2459
2479
  readOnly: !0,
2460
2480
  tabIndex: -1,
2461
2481
  onMouseDown: (e) => e.preventDefault()
2462
2482
  } : {};
2463
- function It(e, t) {
2483
+ function zt(e, t) {
2464
2484
  if (!e) return !0;
2465
2485
  let n = t[e.field], r = n == null || n === "" ? "" : String(n), i = e.value ?? "";
2466
2486
  switch (e.op) {
@@ -2474,11 +2494,11 @@ function It(e, t) {
2474
2494
  default: return !1;
2475
2495
  }
2476
2496
  }
2477
- var Lt = {
2497
+ var Bt = {
2478
2498
  display: "flex",
2479
2499
  flexDirection: "column",
2480
2500
  gap: 6
2481
- }, Rt = {
2501
+ }, Vt = {
2482
2502
  font: "inherit",
2483
2503
  fontSize: 15,
2484
2504
  padding: "10px 12px",
@@ -2489,17 +2509,17 @@ var Lt = {
2489
2509
  width: "100%",
2490
2510
  boxSizing: "border-box"
2491
2511
  };
2492
- function zt(e, t) {
2512
+ function Ht(e, t) {
2493
2513
  let n = Array.isArray(e?.options) ? e.options : [];
2494
2514
  if (!e?.parentField) return n;
2495
2515
  let r = t?.[e.parentField];
2496
2516
  return r ? n.filter((e) => typeof e == "string" ? !1 : !e.parent || e.parent === r) : [];
2497
2517
  }
2498
- var Bt = "g-recaptcha-response", Vt = (e) => e?.type === "recaptcha" ? Bt : e?.name;
2499
- function Ht({ field: e, value: t, onChange: n, inert: r, values: i }) {
2518
+ var Ut = "g-recaptcha-response", Wt = (e) => e?.type === "recaptcha" ? Ut : e?.name;
2519
+ function Gt({ field: e, value: t, onChange: n, inert: r, values: i }) {
2500
2520
  let a = /* @__PURE__ */ d("span", {
2501
2521
  style: {
2502
- ...Mt,
2522
+ ...Ft,
2503
2523
  fontSize: 14
2504
2524
  },
2505
2525
  children: [e.label, e.required ? " *" : ""]
@@ -2508,7 +2528,7 @@ function Ht({ field: e, value: t, onChange: n, inert: r, values: i }) {
2508
2528
  required: e.required || void 0,
2509
2529
  placeholder: e.placeholder || void 0,
2510
2530
  disabled: r || void 0,
2511
- style: Rt,
2531
+ style: Vt,
2512
2532
  value: t ?? "",
2513
2533
  onChange: (t) => n(e.name, t.target.value)
2514
2534
  };
@@ -2537,12 +2557,12 @@ function Ht({ field: e, value: t, onChange: n, inert: r, values: i }) {
2537
2557
  borderRadius: 8,
2538
2558
  display: "block"
2539
2559
  }
2540
- }) : null : e.type === "recaptcha" ? /* @__PURE__ */ u(qt, {
2560
+ }) : null : e.type === "recaptcha" ? /* @__PURE__ */ u(Xt, {
2541
2561
  theme: e.captchaTheme,
2542
2562
  size: e.captchaSize,
2543
2563
  inert: r,
2544
- onChange: (e) => n(Bt, e)
2545
- }) : e.type === "video" ? e.src ? /youtube\.com|youtu\.be|vimeo\.com/i.test(e.src) ? /* @__PURE__ */ u(nt, {
2564
+ onChange: (e) => n(Ut, e)
2565
+ }) : e.type === "video" ? e.src ? /youtube\.com|youtu\.be|vimeo\.com/i.test(e.src) ? /* @__PURE__ */ u(at, {
2546
2566
  url: e.src,
2547
2567
  style: { width: "100%" }
2548
2568
  }) : /* @__PURE__ */ u("video", {
@@ -2554,14 +2574,14 @@ function Ht({ field: e, value: t, onChange: n, inert: r, values: i }) {
2554
2574
  display: "block"
2555
2575
  }
2556
2576
  }) : null : /* @__PURE__ */ d("label", {
2557
- style: Lt,
2577
+ style: Bt,
2558
2578
  children: [
2559
2579
  a,
2560
2580
  e.type === "textarea" || e.multiline ? /* @__PURE__ */ u("textarea", {
2561
2581
  ...o,
2562
2582
  rows: 4,
2563
2583
  style: {
2564
- ...Rt,
2584
+ ...Vt,
2565
2585
  resize: "vertical"
2566
2586
  }
2567
2587
  }) : e.type === "select" ? /* @__PURE__ */ d("select", {
@@ -2570,7 +2590,7 @@ function Ht({ field: e, value: t, onChange: n, inert: r, values: i }) {
2570
2590
  children: [/* @__PURE__ */ u("option", {
2571
2591
  value: "",
2572
2592
  children: e.placeholder || "—"
2573
- }), zt(e, i).map((e, t) => /* @__PURE__ */ u("option", {
2593
+ }), Ht(e, i).map((e, t) => /* @__PURE__ */ u("option", {
2574
2594
  value: typeof e == "string" ? e : e.value,
2575
2595
  children: typeof e == "string" ? e : e.label ?? e.value
2576
2596
  }, t))]
@@ -2617,7 +2637,7 @@ function Ht({ field: e, value: t, onChange: n, inert: r, values: i }) {
2617
2637
  ]
2618
2638
  });
2619
2639
  }
2620
- function Ut({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s, auto: f, submitLabel: p, nodeRef: m, inert: h, children: g, linked: _, show: v }) {
2640
+ function Kt({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s, auto: f, submitLabel: p, nodeRef: m, inert: h, children: g, linked: _, show: v }) {
2621
2641
  let { tenant: y, apiUrl: b } = r(Y), [x, S] = c("form"), [C, w] = c(null), [T, E] = c({}), [D, O] = c(0), k = h ? v || "form" : x;
2622
2642
  i(() => {
2623
2643
  if (!f || !s) return;
@@ -2639,11 +2659,11 @@ function Ut({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
2639
2659
  section: e,
2640
2660
  fields: []
2641
2661
  }) : j[j.length - 1].fields.push(e);
2642
- let M = j.filter((e) => e.section || e.fields.length), N = M.filter((e) => !e.section || It(e.section.condition, T)).map((e) => ({
2662
+ let M = j.filter((e) => e.section || e.fields.length), N = M.filter((e) => !e.section || zt(e.section.condition, T)).map((e) => ({
2643
2663
  ...e,
2644
- fields: e.fields.filter((e) => It(e.condition, T))
2664
+ fields: e.fields.filter((e) => zt(e.condition, T))
2645
2665
  })), P = M.length > 1, F = Math.min(D, Math.max(0, N.length - 1)), I = P ? N[F]?.fields ?? [] : N.flatMap((e) => e.fields), L = I.filter((e) => {
2646
- let t = T[Vt(e)];
2666
+ let t = T[Wt(e)];
2647
2667
  return e.required && (t == null || t === "" || t === !1);
2648
2668
  }), R = F >= N.length - 1, z = (e, t) => E((n) => {
2649
2669
  let r = {
@@ -2699,11 +2719,11 @@ function Ut({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
2699
2719
  }
2700
2720
  },
2701
2721
  style: {
2702
- ...jt,
2722
+ ...Pt,
2703
2723
  display: k === "success" ? "none" : "flex"
2704
2724
  },
2705
2725
  children: f && s ? /* @__PURE__ */ d(l, { children: [
2706
- P && /* @__PURE__ */ u(vn, {
2726
+ P && /* @__PURE__ */ u(xn, {
2707
2727
  steps: N.map((e) => ({ label: e.section?.label ?? "Start" })),
2708
2728
  active: F + 1,
2709
2729
  style: { marginBottom: 8 }
@@ -2716,9 +2736,9 @@ function Ut({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
2716
2736
  },
2717
2737
  children: N[F].section.help
2718
2738
  }),
2719
- I.map((e) => /* @__PURE__ */ u(Ht, {
2739
+ I.map((e) => /* @__PURE__ */ u(Gt, {
2720
2740
  field: e,
2721
- value: T[Vt(e)],
2741
+ value: T[Wt(e)],
2722
2742
  values: T,
2723
2743
  onChange: z,
2724
2744
  inert: h
@@ -2789,10 +2809,10 @@ function Ut({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
2789
2809
  ]
2790
2810
  });
2791
2811
  }
2792
- var Wt = null, Gt = null, Kt = (e) => {
2812
+ var qt = null, Jt = null, Yt = (e) => {
2793
2813
  let t = typeof e == "string" && e.trim() ? e.trim() : "";
2794
- if (Wt && Gt === t) return Wt;
2795
- if (Wt && typeof window < "u") {
2814
+ if (qt && Jt === t) return qt;
2815
+ if (qt && typeof window < "u") {
2796
2816
  for (let e of ["grecaptcha", "___grecaptcha_cfg"]) try {
2797
2817
  delete window[e];
2798
2818
  } catch {
@@ -2800,22 +2820,22 @@ var Wt = null, Gt = null, Kt = (e) => {
2800
2820
  }
2801
2821
  document.querySelectorAll("script[src*=\"recaptcha\"]").forEach((e) => e.remove());
2802
2822
  }
2803
- return Gt = t, Wt = new Promise((e) => {
2823
+ return Jt = t, qt = new Promise((e) => {
2804
2824
  if (typeof window > "u") return;
2805
2825
  if (window.grecaptcha?.render) return e(window.grecaptcha);
2806
2826
  window.__webimRecaptchaReady = () => e(window.grecaptcha);
2807
2827
  let n = document.createElement("script");
2808
2828
  n.src = `https://www.google.com/recaptcha/api.js?onload=__webimRecaptchaReady&render=explicit${t ? `&hl=${encodeURIComponent(t)}` : ""}`, n.async = !0, document.head.appendChild(n);
2809
- }), Wt;
2829
+ }), qt;
2810
2830
  };
2811
- function qt({ siteKey: e, theme: t, size: n, hl: a, style: o, nodeRef: c, inert: l, onChange: f }) {
2831
+ function Xt({ siteKey: e, theme: t, size: n, hl: a, style: o, nodeRef: c, inert: l, onChange: f }) {
2812
2832
  let p = r(Y), m = p?.settings && typeof p.settings == "object" ? p.settings["google.recaptchaKey"] : "", h = typeof e == "string" && e.trim() || (typeof m == "string" ? m.trim() : ""), g = s(null), _ = s(f);
2813
2833
  if (_.current = f, i(() => {
2814
2834
  if (l || !h || !g.current) return;
2815
2835
  let e = !0, r = (t) => {
2816
2836
  e && typeof _.current == "function" && _.current(t);
2817
2837
  };
2818
- return Kt(a).then((i) => {
2838
+ return Yt(a).then((i) => {
2819
2839
  if (!(!e || !g.current || !i?.render)) {
2820
2840
  g.current.innerHTML = "", r("");
2821
2841
  try {
@@ -2897,17 +2917,17 @@ function qt({ siteKey: e, theme: t, size: n, hl: a, style: o, nodeRef: c, inert:
2897
2917
  children: /* @__PURE__ */ u("div", { ref: g })
2898
2918
  }) : null;
2899
2919
  }
2900
- function Jt({ text: e, parts: t, style: n, nodeRef: r, linked: i }) {
2920
+ function Zt({ text: e, parts: t, style: n, nodeRef: r, linked: i }) {
2901
2921
  return /* @__PURE__ */ u("label", {
2902
2922
  ref: r,
2903
2923
  style: {
2904
- ...Mt,
2924
+ ...Ft,
2905
2925
  ...A(n)
2906
2926
  },
2907
2927
  children: Be(t, e, i)
2908
2928
  });
2909
2929
  }
2910
- function Yt({ type: e = "text", name: t, placeholder: n, required: r, style: i, nodeRef: a, inert: o }) {
2930
+ function Qt({ type: e = "text", name: t, placeholder: n, required: r, style: i, nodeRef: a, inert: o }) {
2911
2931
  return /* @__PURE__ */ u("input", {
2912
2932
  ref: a,
2913
2933
  type: e,
@@ -2915,13 +2935,13 @@ function Yt({ type: e = "text", name: t, placeholder: n, required: r, style: i,
2915
2935
  placeholder: n,
2916
2936
  required: !o && !!r,
2917
2937
  style: {
2918
- ...Nt,
2938
+ ...It,
2919
2939
  ...A(i)
2920
2940
  },
2921
- ...Ft(o)
2941
+ ...Rt(o)
2922
2942
  });
2923
2943
  }
2924
- function Xt({ name: e, placeholder: t, rows: n = 4, required: r, style: i, nodeRef: a, inert: o }) {
2944
+ function $t({ name: e, placeholder: t, rows: n = 4, required: r, style: i, nodeRef: a, inert: o }) {
2925
2945
  return /* @__PURE__ */ u("textarea", {
2926
2946
  ref: a,
2927
2947
  name: e || void 0,
@@ -2929,18 +2949,18 @@ function Xt({ name: e, placeholder: t, rows: n = 4, required: r, style: i, nodeR
2929
2949
  rows: n,
2930
2950
  required: !o && !!r,
2931
2951
  style: {
2932
- ...Nt,
2952
+ ...It,
2933
2953
  resize: "vertical",
2934
2954
  ...A(i)
2935
2955
  },
2936
- ...Ft(o)
2956
+ ...Rt(o)
2937
2957
  });
2938
2958
  }
2939
- function Zt({ kind: e = "checkbox", label: t, name: n, value: r, required: i, style: a, nodeRef: o, inert: s }) {
2959
+ function en({ kind: e = "checkbox", label: t, name: n, value: r, required: i, style: a, nodeRef: o, inert: s }) {
2940
2960
  return /* @__PURE__ */ d("label", {
2941
2961
  ref: o,
2942
2962
  style: {
2943
- ...Pt,
2963
+ ...Lt,
2944
2964
  ...A(a)
2945
2965
  },
2946
2966
  children: [/* @__PURE__ */ u("input", {
@@ -2957,7 +2977,7 @@ function Zt({ kind: e = "checkbox", label: t, name: n, value: r, required: i, st
2957
2977
  }), t]
2958
2978
  });
2959
2979
  }
2960
- function Qt({ name: e, placeholder: t, options: n = [], required: r, style: i, nodeRef: a, inert: o }) {
2980
+ function tn({ name: e, placeholder: t, options: n = [], required: r, style: i, nodeRef: a, inert: o }) {
2961
2981
  return /* @__PURE__ */ d("select", {
2962
2982
  ref: a,
2963
2983
  name: e || void 0,
@@ -2966,7 +2986,7 @@ function Qt({ name: e, placeholder: t, options: n = [], required: r, style: i, n
2966
2986
  onMouseDown: o ? (e) => e.preventDefault() : void 0,
2967
2987
  tabIndex: o ? -1 : void 0,
2968
2988
  style: {
2969
- ...Nt,
2989
+ ...It,
2970
2990
  appearance: "auto",
2971
2991
  ...A(i)
2972
2992
  },
@@ -2980,12 +3000,12 @@ function Qt({ name: e, placeholder: t, options: n = [], required: r, style: i, n
2980
3000
  }, t))]
2981
3001
  });
2982
3002
  }
2983
- function $t({ name: e, accept: t, required: n, text: r = "Choose a file…", style: i, nodeRef: a, inert: o }) {
3003
+ function nn({ name: e, accept: t, required: n, text: r = "Choose a file…", style: i, nodeRef: a, inert: o }) {
2984
3004
  let [s, l] = c(null);
2985
3005
  return /* @__PURE__ */ d("label", {
2986
3006
  ref: a,
2987
3007
  style: {
2988
- ...Nt,
3008
+ ...It,
2989
3009
  display: "flex",
2990
3010
  alignItems: "center",
2991
3011
  gap: "8px",
@@ -3012,7 +3032,7 @@ function $t({ name: e, accept: t, required: n, text: r = "Choose a file…", sty
3012
3032
  ]
3013
3033
  });
3014
3034
  }
3015
- function en({ text: e = "Submit", style: t, nodeRef: n, inert: r }) {
3035
+ function rn({ text: e = "Submit", style: t, nodeRef: n, inert: r }) {
3016
3036
  return /* @__PURE__ */ u("button", {
3017
3037
  ref: n,
3018
3038
  type: r ? "button" : "submit",
@@ -3032,7 +3052,7 @@ function en({ text: e = "Submit", style: t, nodeRef: n, inert: r }) {
3032
3052
  children: e
3033
3053
  });
3034
3054
  }
3035
- function tn({ cols: e = 2, rows: t = 1, style: n, nodeRef: r, linked: i }) {
3055
+ function an({ cols: e = 2, rows: t = 1, style: n, nodeRef: r, linked: i }) {
3036
3056
  let a = Math.max(1, (Number(e) || 1) * (Number(t) || 1));
3037
3057
  return /* @__PURE__ */ u("div", {
3038
3058
  ref: r,
@@ -3049,7 +3069,7 @@ function tn({ cols: e = 2, rows: t = 1, style: n, nodeRef: r, linked: i }) {
3049
3069
  }, t))
3050
3070
  });
3051
3071
  }
3052
- function nn({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, imageField: o, titleField: s = "name", textField: l, custom: f, templateId: p, paged: m, filters: h, style: g, nodeRef: _ }) {
3072
+ function on({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, imageField: o, titleField: s = "name", textField: l, custom: f, templateId: p, paged: m, filters: h, style: g, nodeRef: _ }) {
3053
3073
  let { tenant: v, apiUrl: y, locale: b } = r(Y), x = r(Z), S = r(be), [, C] = c(0);
3054
3074
  i(() => {
3055
3075
  if (typeof window > "u") return;
@@ -3160,7 +3180,7 @@ function nn({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
3160
3180
  lineHeight: 1.55,
3161
3181
  opacity: .85
3162
3182
  },
3163
- children: We(a)
3183
+ children: qe(a)
3164
3184
  })
3165
3185
  ]
3166
3186
  })]
@@ -3168,7 +3188,7 @@ function nn({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
3168
3188
  })
3169
3189
  });
3170
3190
  }
3171
- function rn({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, inert: i }) {
3191
+ function sn({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, inert: i }) {
3172
3192
  let a = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && typeof e.name == "string" && e.name) : [], o = i ? {} : Se(), s = {
3173
3193
  height: 34,
3174
3194
  padding: "0 12px",
@@ -3217,7 +3237,7 @@ function rn({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, i
3217
3237
  name: `f_${e.name}`,
3218
3238
  defaultValue: o[e.name] ?? "",
3219
3239
  style: s,
3220
- ...Ft(i),
3240
+ ...Rt(i),
3221
3241
  children: [/* @__PURE__ */ u("option", {
3222
3242
  value: "",
3223
3243
  children: e.label || e.name
@@ -3232,7 +3252,7 @@ function rn({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, i
3232
3252
  name: `f_${e.name}`,
3233
3253
  defaultValue: o[e.name] ?? "",
3234
3254
  style: s,
3235
- ...Ft(i),
3255
+ ...Rt(i),
3236
3256
  children: [
3237
3257
  /* @__PURE__ */ u("option", {
3238
3258
  value: "",
@@ -3253,7 +3273,7 @@ function rn({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, i
3253
3273
  defaultValue: o[e.name] ?? "",
3254
3274
  placeholder: e.label || e.name,
3255
3275
  style: s,
3256
- ...Ft(i)
3276
+ ...Rt(i)
3257
3277
  }, e.name)), /* @__PURE__ */ u("button", {
3258
3278
  type: "submit",
3259
3279
  style: {
@@ -3266,12 +3286,12 @@ function rn({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, i
3266
3286
  fontWeight: 600,
3267
3287
  cursor: i ? "default" : "pointer"
3268
3288
  },
3269
- ...Ft(i),
3289
+ ...Rt(i),
3270
3290
  children: t
3271
3291
  })]
3272
3292
  });
3273
3293
  }
3274
- function an({ items: e = [], separator: t = "/", style: n, nodeRef: r }) {
3294
+ function cn({ items: e = [], separator: t = "/", style: n, nodeRef: r }) {
3275
3295
  return e.length ? /* @__PURE__ */ u("nav", {
3276
3296
  ref: r,
3277
3297
  "aria-label": "Breadcrumb",
@@ -3321,7 +3341,7 @@ function an({ items: e = [], separator: t = "/", style: n, nodeRef: r }) {
3321
3341
  })
3322
3342
  }) : null;
3323
3343
  }
3324
- function on({ 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: h }) {
3344
+ function ln({ 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: h }) {
3325
3345
  let { tenant: g, apiUrl: _ } = r(Y), v = r(be), [y, b] = c(null), x = o ? Number(v?.[`${o}:total`]) : NaN;
3326
3346
  i(() => {
3327
3347
  if (!o || Number.isFinite(x)) return;
@@ -3406,15 +3426,15 @@ function on({ pages: e = 5, current: t = 1, prevNext: n = !0, href: a = "#", sou
3406
3426
  ]
3407
3427
  });
3408
3428
  }
3409
- var sn = "webim.page_mode", cn = () => {
3429
+ var un = "webim.page_mode", dn = () => {
3410
3430
  if (typeof window > "u") return "auto";
3411
3431
  try {
3412
- let e = window.localStorage.getItem(sn);
3432
+ let e = window.localStorage.getItem(un);
3413
3433
  return e === "light" || e === "dark" ? e : "auto";
3414
3434
  } catch {
3415
3435
  return "auto";
3416
3436
  }
3417
- }, ln = (e) => {
3437
+ }, fn = (e) => {
3418
3438
  let t = {
3419
3439
  width: 16,
3420
3440
  height: 16,
@@ -3446,13 +3466,13 @@ var sn = "webim.page_mode", cn = () => {
3446
3466
  rx: "2"
3447
3467
  }), /* @__PURE__ */ u("path", { d: "M8 21h8M12 17v4" })]
3448
3468
  });
3449
- }, un = {
3469
+ }, pn = {
3450
3470
  light: "Light theme",
3451
3471
  dark: "Dark theme",
3452
3472
  auto: "Follow the device theme"
3453
3473
  };
3454
- function dn({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
3455
- let [o, l] = c(a ? "auto" : cn), d = s(null), f = (e) => {
3474
+ function mn({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
3475
+ let [o, l] = c(a ? "auto" : dn), d = s(null), f = (e) => {
3456
3476
  d.current = e, typeof r == "function" && r(e);
3457
3477
  };
3458
3478
  i(() => {
@@ -3460,7 +3480,7 @@ function dn({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
3460
3480
  let e = d.current?.closest?.(".webim-page");
3461
3481
  e && (o === "light" || o === "dark" ? e.setAttribute("data-webim-mode", o) : e.removeAttribute("data-webim-mode"));
3462
3482
  try {
3463
- o === "auto" ? window.localStorage.removeItem(sn) : window.localStorage.setItem(sn, o);
3483
+ o === "auto" ? window.localStorage.removeItem(un) : window.localStorage.setItem(un, o);
3464
3484
  } catch {}
3465
3485
  }, [o, a]);
3466
3486
  let p = t === !1 ? ["light", "dark"] : [
@@ -3495,8 +3515,8 @@ function dn({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
3495
3515
  },
3496
3516
  children: p.map((e) => /* @__PURE__ */ u("button", {
3497
3517
  type: "button",
3498
- title: un[e],
3499
- "aria-label": un[e],
3518
+ title: pn[e],
3519
+ "aria-label": pn[e],
3500
3520
  "aria-pressed": e === m,
3501
3521
  onClick: a ? void 0 : () => l(e),
3502
3522
  style: {
@@ -3507,15 +3527,15 @@ function dn({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
3507
3527
  background: e === m ? "var(--page-accent, #111827)" : "transparent",
3508
3528
  opacity: e === m ? 1 : .7
3509
3529
  },
3510
- children: ln(e)
3530
+ children: fn(e)
3511
3531
  }, e))
3512
3532
  });
3513
3533
  let g = p[(p.indexOf(m) + 1) % p.length];
3514
3534
  return /* @__PURE__ */ u("button", {
3515
3535
  ref: f,
3516
3536
  type: "button",
3517
- title: un[m],
3518
- "aria-label": `Theme: ${un[m]} — switch to ${un[g]}`,
3537
+ title: pn[m],
3538
+ "aria-label": `Theme: ${pn[m]} — switch to ${pn[g]}`,
3519
3539
  onClick: a ? void 0 : () => l(g),
3520
3540
  style: {
3521
3541
  ...h,
@@ -3524,10 +3544,10 @@ function dn({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
3524
3544
  border: "1px solid rgba(148, 163, 184, 0.4)",
3525
3545
  ...A(n)
3526
3546
  },
3527
- children: ln(m)
3547
+ children: fn(m)
3528
3548
  });
3529
3549
  }
3530
- function fn(e) {
3550
+ function hn(e) {
3531
3551
  let t = e?.parentElement;
3532
3552
  for (; t && t !== document.body;) {
3533
3553
  let e = getComputedStyle(t).overflowY;
@@ -3536,7 +3556,7 @@ function fn(e) {
3536
3556
  }
3537
3557
  return window;
3538
3558
  }
3539
- var pn = (e) => e === window ? window.scrollY : e.scrollTop, mn = {
3559
+ var gn = (e) => e === window ? window.scrollY : e.scrollTop, _n = {
3540
3560
  "bottom-right": (e) => ({
3541
3561
  right: e,
3542
3562
  bottom: e
@@ -3551,7 +3571,7 @@ var pn = (e) => e === window ? window.scrollY : e.scrollTop, mn = {
3551
3571
  transform: "translateX(-50%)"
3552
3572
  })
3553
3573
  };
3554
- function hn({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth: o, bg: s, fg: l, style: f, nodeRef: p, inert: m, frame: h, builder: g }) {
3574
+ function vn({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth: o, bg: s, fg: l, style: f, nodeRef: p, inert: m, frame: h, builder: g }) {
3555
3575
  let [_, v] = c(!!m), [y, b] = c(null), x = (e) => {
3556
3576
  b(e), typeof p == "function" && p(e);
3557
3577
  };
@@ -3562,8 +3582,8 @@ function hn({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth
3562
3582
  }
3563
3583
  if (!y) return;
3564
3584
  let e = Number(a) >= 0 ? Number(a) : 300, t = () => {
3565
- let t = fn(y), n = g && !(t === window ? document.documentElement.scrollHeight > window.innerHeight : t.scrollHeight > t.clientHeight);
3566
- v(n || pn(t) > e);
3585
+ let t = hn(y), n = g && !(t === window ? document.documentElement.scrollHeight > window.innerHeight : t.scrollHeight > t.clientHeight);
3586
+ v(n || gn(t) > e);
3567
3587
  };
3568
3588
  return t(), document.addEventListener("scroll", t, {
3569
3589
  capture: !0,
@@ -3577,7 +3597,7 @@ function hn({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth
3577
3597
  ]);
3578
3598
  let S = () => {
3579
3599
  if (m) return;
3580
- let e = fn(y), t = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, n = o === !1 || t ? "auto" : "smooth";
3600
+ let e = hn(y), t = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, n = o === !1 || t ? "auto" : "smooth";
3581
3601
  e === window ? window.scrollTo({
3582
3602
  top: 0,
3583
3603
  behavior: n
@@ -3585,7 +3605,7 @@ function hn({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth
3585
3605
  top: 0,
3586
3606
  behavior: n
3587
3607
  });
3588
- }, C = Number(r) >= 0 ? Number(r) : 24, w = e === "pill", T = t || "Top", E = mn[n] ? n : "bottom-right", D = h ? {
3608
+ }, C = Number(r) >= 0 ? Number(r) : 24, w = e === "pill", T = t || "Top", E = _n[n] ? n : "bottom-right", D = h ? {
3589
3609
  position: "fixed",
3590
3610
  zIndex: 5,
3591
3611
  bottom: (h.bottom ?? 0) + C,
@@ -3598,7 +3618,7 @@ function hn({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth
3598
3618
  } : {
3599
3619
  position: "fixed",
3600
3620
  zIndex: 2147482e3,
3601
- ...mn[E](C)
3621
+ ..._n[E](C)
3602
3622
  };
3603
3623
  return /* @__PURE__ */ d("button", {
3604
3624
  ref: x,
@@ -3649,7 +3669,7 @@ function hn({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth
3649
3669
  }), w ? /* @__PURE__ */ u("span", { children: T }) : null]
3650
3670
  });
3651
3671
  }
3652
- var gn = {
3672
+ var yn = {
3653
3673
  facebook: {
3654
3674
  label: "Facebook",
3655
3675
  color: "#1877f2",
@@ -3716,8 +3736,8 @@ var gn = {
3716
3736
  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"
3717
3737
  }
3718
3738
  };
3719
- function _n({ links: e = [], variant: t, color: n, size: r, gap: i, newTab: a, style: o, nodeRef: s, inert: c }) {
3720
- let l = Array.isArray(e) ? e.filter((e) => e && gn[e.network]) : [];
3739
+ function bn({ links: e = [], variant: t, color: n, size: r, gap: i, newTab: a, style: o, nodeRef: s, inert: c }) {
3740
+ let l = Array.isArray(e) ? e.filter((e) => e && yn[e.network]) : [];
3721
3741
  if (!l.length) return null;
3722
3742
  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, h = c ? (e) => e.preventDefault() : void 0;
3723
3743
  return /* @__PURE__ */ u("div", {
@@ -3730,7 +3750,7 @@ function _n({ links: e = [], variant: t, color: n, size: r, gap: i, newTab: a, s
3730
3750
  ...A(o)
3731
3751
  },
3732
3752
  children: l.map((e, r) => {
3733
- let i = gn[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);
3753
+ let i = yn[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);
3734
3754
  return /* @__PURE__ */ u("a", {
3735
3755
  href: e.url || "#",
3736
3756
  onClick: h,
@@ -3764,7 +3784,7 @@ function _n({ links: e = [], variant: t, color: n, size: r, gap: i, newTab: a, s
3764
3784
  })
3765
3785
  });
3766
3786
  }
3767
- function vn({ steps: t = [], active: n = 1, vertical: r = !1, style: i, nodeRef: a }) {
3787
+ function xn({ steps: t = [], active: n = 1, vertical: r = !1, style: i, nodeRef: a }) {
3768
3788
  if (!t.length) return null;
3769
3789
  let o = Math.min(Math.max(Number(n) || 1, 1), t.length), s = (e) => ({
3770
3790
  width: 32,
@@ -3842,7 +3862,7 @@ function vn({ steps: t = [], active: n = 1, vertical: r = !1, style: i, nodeRef:
3842
3862
  })
3843
3863
  });
3844
3864
  }
3845
- var yn = {
3865
+ var Sn = {
3846
3866
  small: {
3847
3867
  w: 132,
3848
3868
  h: 46,
@@ -3864,21 +3884,21 @@ var yn = {
3864
3884
  title: 12.5,
3865
3885
  avatar: 46
3866
3886
  }
3867
- }, bn = (e) => yn[e] ?? yn.medium;
3868
- yn.medium.w, yn.medium.h;
3869
- var xn = (e) => String(e?.group ?? "").trim(), Sn = (e) => {
3887
+ }, Cn = (e) => Sn[e] ?? Sn.medium;
3888
+ Sn.medium.w, Sn.medium.h;
3889
+ var wn = (e) => String(e?.group ?? "").trim(), Tn = (e) => {
3870
3890
  let t = [], n = /* @__PURE__ */ new Map();
3871
3891
  return e.forEach((e, r) => {
3872
- let i = xn(e) || `#${r}`;
3892
+ let i = wn(e) || `#${r}`;
3873
3893
  n.has(i) || (n.set(i, []), t.push(i)), n.get(i).push(e);
3874
3894
  }), t.flatMap((e) => n.get(e));
3875
3895
  };
3876
- function Cn(e, { size: t = "medium", horizontal: n = !1, groupTitles: r = "top" } = {}) {
3877
- let i = bn(t), a = n ? i.h : i.w, o = n ? 16 : 20, s = (n ? i.w : i.h) + (n ? 56 : 48), c = Array.isArray(e) ? e.filter((e) => e && e.id) : [], l = new Set(c.map((e) => e.id)), u = /* @__PURE__ */ new Map(), d = [];
3896
+ function En(e, { size: t = "medium", horizontal: n = !1, groupTitles: r = "top" } = {}) {
3897
+ let i = Cn(t), a = n ? i.h : i.w, o = n ? 16 : 20, s = (n ? i.w : i.h) + (n ? 56 : 48), c = Array.isArray(e) ? e.filter((e) => e && e.id) : [], l = new Set(c.map((e) => e.id)), u = /* @__PURE__ */ new Map(), d = [];
3878
3898
  for (let e of c) e.parent && l.has(e.parent) && e.parent !== e.id ? (u.has(e.parent) || u.set(e.parent, []), u.get(e.parent).push(e)) : d.push(e);
3879
- d = Sn(d);
3880
- for (let [e, t] of u) u.set(e, Sn(t));
3881
- let f = (e, t) => o + (xn(e) !== xn(t) && (xn(e) || xn(t)) ? 24 : 0), p = /* @__PURE__ */ new Map(), m = (e, t) => {
3899
+ d = Tn(d);
3900
+ for (let [e, t] of u) u.set(e, Tn(t));
3901
+ let f = (e, t) => o + (wn(e) !== wn(t) && (wn(e) || wn(t)) ? 24 : 0), p = /* @__PURE__ */ new Map(), m = (e, t) => {
3882
3902
  if (t.has(e.id)) return 0;
3883
3903
  t.add(e.id);
3884
3904
  let n = u.get(e.id) ?? [], r = n.reduce((e, r, i) => e + m(r, t) + (i ? f(n[i - 1], r) : 0), 0), i = Math.max(a, r);
@@ -3894,7 +3914,7 @@ function Cn(e, { size: t = "medium", horizontal: n = !1, groupTitles: r = "top"
3894
3914
  x: m,
3895
3915
  y: b
3896
3916
  });
3897
- let x = xn(e);
3917
+ let x = wn(e);
3898
3918
  if (x) {
3899
3919
  let t = `${e.parent && l.has(e.parent) && e.parent !== e.id ? e.parent : ""}|${x}`;
3900
3920
  _.has(t) || _.set(t, {
@@ -3968,18 +3988,18 @@ function Cn(e, { size: t = "medium", horizontal: n = !1, groupTitles: r = "top"
3968
3988
  horizontal: n
3969
3989
  };
3970
3990
  }
3971
- var wn = (e, t) => {
3991
+ var Dn = (e, t) => {
3972
3992
  let n = String(e ?? "");
3973
3993
  return n.length > t ? `${n.slice(0, t - 1)}…` : n;
3974
- }, Tn = (e) => {
3994
+ }, On = (e) => {
3975
3995
  let t = /^#([0-9a-f]{6}|[0-9a-f]{3})$/i.exec(String(e ?? "").trim());
3976
3996
  if (!t) return "#ffffff";
3977
3997
  let n = t[1];
3978
3998
  n.length === 3 && (n = [...n].map((e) => e + e).join(""));
3979
3999
  let r = parseInt(n, 16);
3980
4000
  return .299 * (r >> 16 & 255) + .587 * (r >> 8 & 255) + .114 * (r & 255) > 150 ? "#111827" : "#ffffff";
3981
- }, En = (e) => !!(e?.cv?.trim?.() || e?.photo);
3982
- function Dn(e, t = {}) {
4001
+ }, kn = (e) => !!(e?.cv?.trim?.() || e?.photo);
4002
+ function An(e, t = {}) {
3983
4003
  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 ? "" : Te(e);
3984
4004
  return n.map((e) => {
3985
4005
  let n = e.data ?? {}, a = r(n[t.parentField]), o = a && typeof a == "object" ? a.id ?? null : a || null;
@@ -3995,11 +4015,11 @@ function Dn(e, t = {}) {
3995
4015
  };
3996
4016
  });
3997
4017
  }
3998
- var On = {
4018
+ var jn = {
3999
4019
  size: 36,
4000
4020
  pad: 10
4001
4021
  };
4002
- function kn({ node: e, onClose: t }) {
4022
+ function Mn({ node: e, onClose: t }) {
4003
4023
  return i(() => {
4004
4024
  let e = (e) => e.key === "Escape" && t();
4005
4025
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
@@ -4120,7 +4140,7 @@ function kn({ node: e, onClose: t }) {
4120
4140
  })
4121
4141
  });
4122
4142
  }
4123
- function An({ nodes: e = [], source: t, nameField: n, titleField: o, photoField: s, parentField: f, cvField: p, hrefField: m, groupField: h, groupTitles: g = "top", groupBg: _ = "", size: v = "medium", horizontal: y = !1, style: b, nodeRef: x, interactive: S = !0 }) {
4143
+ function Nn({ nodes: e = [], source: t, nameField: n, titleField: o, photoField: s, parentField: f, cvField: p, hrefField: m, groupField: h, groupTitles: g = "top", groupBg: _ = "", size: v = "medium", horizontal: y = !1, style: b, nodeRef: x, interactive: S = !0 }) {
4124
4144
  let C = a(), [w, T] = c(null), { tenant: E, apiUrl: D } = r(Y), O = r(be)?.[t], [k, j] = c(null);
4125
4145
  i(() => {
4126
4146
  if (!t || O) return;
@@ -4137,7 +4157,7 @@ function An({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
4137
4157
  D,
4138
4158
  O
4139
4159
  ]);
4140
- let M = t ? Dn(O ?? k ?? [], {
4160
+ let M = t ? An(O ?? k ?? [], {
4141
4161
  nameField: n,
4142
4162
  titleField: o,
4143
4163
  photoField: s,
@@ -4145,7 +4165,7 @@ function An({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
4145
4165
  cvField: p,
4146
4166
  hrefField: m,
4147
4167
  groupField: h
4148
- }) : e, N = bn(v), { boxes: P, links: F, groups: I, width: L, height: R } = Cn(M, {
4168
+ }) : e, N = Cn(v), { boxes: P, links: F, groups: I, width: L, height: R } = En(M, {
4149
4169
  size: v,
4150
4170
  horizontal: y,
4151
4171
  groupTitles: g
@@ -4203,8 +4223,8 @@ function An({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
4203
4223
  fontSize: N.title + 1,
4204
4224
  fontWeight: "600",
4205
4225
  opacity: "0.55",
4206
- fill: r ? Tn(e.color || _) : "var(--page-text, #111827)",
4207
- children: wn(e.title, Math.floor(e.width / 7))
4226
+ fill: r ? On(e.color || _) : "var(--page-text, #111827)",
4227
+ children: Dn(e.title, Math.floor(e.width / 7))
4208
4228
  })] }, `group-${t}`);
4209
4229
  }),
4210
4230
  F.map((e, t) => /* @__PURE__ */ u("path", {
@@ -4214,7 +4234,7 @@ function An({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
4214
4234
  strokeWidth: "1.5"
4215
4235
  }, t)),
4216
4236
  P.map(({ node: e, x: t, y: n }) => {
4217
- let r = z.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 ? Tn(e.color) : r ? "var(--page-accent-text, #ffffff)" : "var(--page-text, #111827)", c = i ? Tn(e.color2) : s, f = S && (En(e) || e.href), p = () => En(e) ? T(e) : window.open(e.href, "_blank", "noreferrer"), m = e.photo ? t + On.pad + N.avatar + 8 : t + N.w / 2, h = e.photo ? "start" : "middle", g = e.photo ? Math.floor((N.w - N.avatar - 26) / 7) : Math.floor(N.w / 7.6), _ = N.h / 2, v = [e.name, e.title].map((e) => String(e ?? "").trim()).filter(Boolean);
4237
+ let r = z.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 ? On(e.color) : r ? "var(--page-accent-text, #ffffff)" : "var(--page-text, #111827)", c = i ? On(e.color2) : s, f = S && (kn(e) || e.href), p = () => kn(e) ? T(e) : window.open(e.href, "_blank", "noreferrer"), m = e.photo ? t + jn.pad + N.avatar + 8 : t + N.w / 2, h = e.photo ? "start" : "middle", g = e.photo ? Math.floor((N.w - N.avatar - 26) / 7) : Math.floor(N.w / 7.6), _ = N.h / 2, v = [e.name, e.title].map((e) => String(e ?? "").trim()).filter(Boolean);
4218
4238
  return /* @__PURE__ */ d("g", {
4219
4239
  onClick: f ? p : void 0,
4220
4240
  style: f ? { cursor: "pointer" } : void 0,
@@ -4278,13 +4298,13 @@ function An({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
4278
4298
  e.photo && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("clipPath", {
4279
4299
  id: `${C}-${e.id}`,
4280
4300
  children: /* @__PURE__ */ u("circle", {
4281
- cx: t + On.pad + N.avatar / 2,
4301
+ cx: t + jn.pad + N.avatar / 2,
4282
4302
  cy: n + N.h / 2,
4283
4303
  r: N.avatar / 2
4284
4304
  })
4285
4305
  }), /* @__PURE__ */ u("image", {
4286
4306
  href: e.photo,
4287
- x: t + On.pad,
4307
+ x: t + jn.pad,
4288
4308
  y: n + (N.h - N.avatar) / 2,
4289
4309
  width: N.avatar,
4290
4310
  height: N.avatar,
@@ -4298,7 +4318,7 @@ function An({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
4298
4318
  fontSize: N.title,
4299
4319
  fontWeight: "600",
4300
4320
  fill: s,
4301
- children: wn(e.title, g + 4)
4321
+ children: Dn(e.title, g + 4)
4302
4322
  }), e.name && /* @__PURE__ */ u("text", {
4303
4323
  x: m,
4304
4324
  y: n + _ + _ / 2 + N.name * .35,
@@ -4306,7 +4326,7 @@ function An({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
4306
4326
  fontSize: N.name,
4307
4327
  fontWeight: "600",
4308
4328
  fill: c,
4309
- children: wn(e.name, g)
4329
+ children: Dn(e.name, g)
4310
4330
  })] }) : /* @__PURE__ */ d(l, { children: [v[0] && /* @__PURE__ */ u("text", {
4311
4331
  x: m,
4312
4332
  y: n + (v[1] ? N.h * .43 : N.h * .57),
@@ -4314,7 +4334,7 @@ function An({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
4314
4334
  fontSize: N.name,
4315
4335
  fontWeight: "600",
4316
4336
  fill: s,
4317
- children: wn(v[0], g)
4337
+ children: Dn(v[0], g)
4318
4338
  }), v[1] && /* @__PURE__ */ u("text", {
4319
4339
  x: m,
4320
4340
  y: n + N.h * .73,
@@ -4322,19 +4342,19 @@ function An({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
4322
4342
  fontSize: N.title,
4323
4343
  opacity: "0.7",
4324
4344
  fill: s,
4325
- children: wn(v[1], g + 4)
4345
+ children: Dn(v[1], g + 4)
4326
4346
  })] })
4327
4347
  ]
4328
4348
  }, e.id);
4329
4349
  })
4330
4350
  ]
4331
- }), w && /* @__PURE__ */ u(kn, {
4351
+ }), w && /* @__PURE__ */ u(Mn, {
4332
4352
  node: w,
4333
4353
  onClose: () => T(null)
4334
4354
  })]
4335
4355
  });
4336
4356
  }
4337
- function jn({ value: e, onCommit: t, style: n, hint: r }) {
4357
+ function Pn({ value: e, onCommit: t, style: n, hint: r }) {
4338
4358
  let [a, o] = c(!1), l = s(null);
4339
4359
  return i(() => {
4340
4360
  if (!a || !l.current) return;
@@ -4364,7 +4384,7 @@ function jn({ value: e, onCommit: t, style: n, hint: r }) {
4364
4384
  children: e ?? ""
4365
4385
  });
4366
4386
  }
4367
- var Mn = 360, Nn = "\n.wb-tedit-btn {\n cursor: pointer;\n border-radius: 4px;\n font-size: 11px;\n line-height: 16px;\n min-width: 20px;\n text-align: center;\n padding: 1px 4px;\n user-select: none;\n color: #e2e8f0;\n background: rgba(148, 163, 184, 0.16);\n}\n.wb-tedit-btn:hover { background: #4f46e5; color: #fff; }\n.wb-tedit-btn[data-hint] { position: relative; }\n.wb-tedit-btn[data-hint]:hover::after {\n content: attr(data-hint);\n position: absolute;\n bottom: calc(100% + 6px);\n left: 50%;\n transform: translateX(-50%);\n padding: 3px 6px;\n border-radius: 5px;\n background: #1e293b;\n border: 1px solid rgba(148, 163, 184, 0.35);\n color: #e2e8f0;\n font-size: 10px;\n line-height: 14px;\n white-space: nowrap;\n pointer-events: none;\n z-index: 6;\n}\n.wb-tedit-grip { position: absolute; top: 0; right: -3px; width: 6px; height: 100%; cursor: col-resize; }\n.wb-tedit-grip:hover { background: rgba(99, 102, 241, 0.55); }\n.wb-tedit-rowgrip { position: absolute; left: 0; right: 0; bottom: -3px; height: 6px; cursor: row-resize; }\n.wb-tedit-rowgrip:hover { background: rgba(99, 102, 241, 0.55); }\n.wb-tedit-cellon { outline: 2px solid rgba(99, 102, 241, 0.75); outline-offset: -2px; }\n.wb-tedit-bar {\n position: absolute;\n z-index: 5;\n display: flex;\n align-items: center;\n gap: 3px;\n padding: 4px 5px;\n border-radius: 8px;\n background: #0f172a;\n border: 1px solid rgba(148, 163, 184, 0.35);\n box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);\n white-space: nowrap;\n}\n.wb-tedit-sep { width: 1px; align-self: stretch; margin: 0 2px; background: rgba(148, 163, 184, 0.3); }\n.wb-tedit-at { font-size: 10px; color: #94a3b8; padding-right: 2px; }\n", Pn = (e, t) => e && t ? `cell-${e}-${t}` : "", Fn = (e) => {
4387
+ var Fn = 360, In = "\n.wb-tedit-btn {\n cursor: pointer;\n border-radius: 4px;\n font-size: 11px;\n line-height: 16px;\n min-width: 20px;\n text-align: center;\n padding: 1px 4px;\n user-select: none;\n color: #e2e8f0;\n background: rgba(148, 163, 184, 0.16);\n}\n.wb-tedit-btn:hover { background: #4f46e5; color: #fff; }\n.wb-tedit-btn[data-hint] { position: relative; }\n.wb-tedit-btn[data-hint]:hover::after {\n content: attr(data-hint);\n position: absolute;\n bottom: calc(100% + 6px);\n left: 50%;\n transform: translateX(-50%);\n padding: 3px 6px;\n border-radius: 5px;\n background: #1e293b;\n border: 1px solid rgba(148, 163, 184, 0.35);\n color: #e2e8f0;\n font-size: 10px;\n line-height: 14px;\n white-space: nowrap;\n pointer-events: none;\n z-index: 6;\n}\n.wb-tedit-grip { position: absolute; top: 0; right: -3px; width: 6px; height: 100%; cursor: col-resize; }\n.wb-tedit-grip:hover { background: rgba(99, 102, 241, 0.55); }\n.wb-tedit-rowgrip { position: absolute; left: 0; right: 0; bottom: -3px; height: 6px; cursor: row-resize; }\n.wb-tedit-rowgrip:hover { background: rgba(99, 102, 241, 0.55); }\n.wb-tedit-cellon { outline: 2px solid rgba(99, 102, 241, 0.75); outline-offset: -2px; }\n.wb-tedit-bar {\n position: absolute;\n z-index: 5;\n display: flex;\n align-items: center;\n gap: 3px;\n padding: 4px 5px;\n border-radius: 8px;\n background: #0f172a;\n border: 1px solid rgba(148, 163, 184, 0.35);\n box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);\n white-space: nowrap;\n}\n.wb-tedit-sep { width: 1px; align-self: stretch; margin: 0 2px; background: rgba(148, 163, 184, 0.3); }\n.wb-tedit-at { font-size: 10px; color: #94a3b8; padding-right: 2px; }\n", Ln = (e, t) => e && t ? `cell-${e}-${t}` : "", Rn = (e) => {
4368
4388
  if (!e || typeof e != "object") return e ?? "";
4369
4389
  let t = String(e.text ?? "");
4370
4390
  return typeof e.href == "string" && e.href ? /* @__PURE__ */ u("a", {
@@ -4375,7 +4395,7 @@ var Mn = 360, Nn = "\n.wb-tedit-btn {\n cursor: pointer;\n border-radius: 4px;
4375
4395
  children: t
4376
4396
  }) : t;
4377
4397
  };
4378
- function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], colKeys: o = [], heights: f = [], spans: p, linked: m, source: h, limit: g = 10, header: _ = !0, striped: v = !0, bordered: y = !1, compact: b = !1, padX: x, padY: S, paged: C, emptyText: w, stickyHeader: T, headerBg: E, headerColor: D, headerAlign: O, borderColor: k, maxHeight: j, style: M, nodeRef: N, edit: P }) {
4398
+ function zn({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], colKeys: o = [], heights: f = [], spans: p, linked: m, source: h, limit: g = 10, header: _ = !0, striped: v = !0, bordered: y = !1, compact: b = !1, padX: x, padY: S, paged: C, emptyText: w, stickyHeader: T, headerBg: E, headerColor: D, headerAlign: O, borderColor: k, maxHeight: j, style: M, nodeRef: N, edit: P }) {
4379
4399
  let F = s(null), I = s(null), [L, R] = c(null), [z, B] = c(null), V = (e, t) => () => R({
4380
4400
  r: e,
4381
4401
  c: t
@@ -4389,7 +4409,7 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4389
4409
  }
4390
4410
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = {
4391
4411
  top: r.bottom - n.top + 4,
4392
- left: Math.max(0, Math.min(r.left - n.left, n.width - Mn))
4412
+ left: Math.max(0, Math.min(r.left - n.left, n.width - Fn))
4393
4413
  };
4394
4414
  (z?.top !== i.top || z?.left !== i.left) && B(i);
4395
4415
  }), i(() => {
@@ -4399,36 +4419,36 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4399
4419
  };
4400
4420
  return document.addEventListener("mousedown", e, !0), () => document.removeEventListener("mousedown", e, !0);
4401
4421
  }, [P, L]);
4402
- let { tenant: H, apiUrl: U } = r(Y), ee = r(be), te = ee?.[h], ne = C ? xe(ee) : 1, [re, W] = c(null);
4422
+ let { tenant: H, apiUrl: U } = r(Y), ee = r(be), W = ee?.[h], te = C ? xe(ee) : 1, [ne, G] = c(null);
4403
4423
  if (i(() => {
4404
- if (!h || te) return;
4405
- let e = !0, t = Math.max(1, Number(g) || 10), n = C && !h.startsWith("api:") ? `?offset=${(ne - 1) * t}&limit=${t}` : "", r = h.startsWith("api:") ? `${U}/data/${encodeURIComponent(h.slice(4))}` : `${U}/dynamic/${encodeURIComponent(h)}${n}`;
4424
+ if (!h || W) return;
4425
+ let e = !0, t = Math.max(1, Number(g) || 10), n = C && !h.startsWith("api:") ? `?offset=${(te - 1) * t}&limit=${t}` : "", r = h.startsWith("api:") ? `${U}/data/${encodeURIComponent(h.slice(4))}` : `${U}/dynamic/${encodeURIComponent(h)}${n}`;
4406
4426
  return fetch(r, { headers: H ? { "x-tenant": H } : {} }).then((e) => e.json()).then((t) => {
4407
4427
  let n = Array.isArray(t?.payload) ? t.payload : Array.isArray(t?.payload?.data) ? t.payload.data : [];
4408
- return e && W(n);
4409
- }).catch(() => e && W([])), () => {
4428
+ return e && G(n);
4429
+ }).catch(() => e && G([])), () => {
4410
4430
  e = !1;
4411
4431
  };
4412
4432
  }, [
4413
4433
  h,
4414
4434
  H,
4415
4435
  U,
4416
- te,
4436
+ W,
4417
4437
  C,
4418
- ne,
4438
+ te,
4419
4439
  g
4420
4440
  ]), !e.length) return null;
4421
- let G = Math.max(1, Number(g) || 10), K = h ? C ? te || h.startsWith("api:") ? (te ?? re ?? []).slice((ne - 1) * G, ne * G) : (re ?? []).slice(0, G) : (te ?? re ?? []).slice(0, G) : null, ie = K ? K.map((t) => e.map((e) => Te(Ce(t?.data, e.field)))) : t, ae = !!h && !(h && !te && re === null) && ie.length === 0, oe = b ? {
4441
+ let K = Math.max(1, Number(g) || 10), q = h ? C ? W || h.startsWith("api:") ? (W ?? ne ?? []).slice((te - 1) * K, te * K) : (ne ?? []).slice(0, K) : (W ?? ne ?? []).slice(0, K) : null, re = q ? q.map((t) => e.map((e) => Te(Ce(t?.data, e.field)))) : t, ie = !!h && !(h && !W && ne === null) && re.length === 0, ae = b ? {
4422
4442
  y: 6,
4423
4443
  x: 10
4424
4444
  } : {
4425
4445
  y: 10,
4426
4446
  x: 14
4427
- }, q = `${Number.isFinite(Number(S)) && S !== "" ? Number(S) : oe.y}px ${Number.isFinite(Number(x)) && x !== "" ? Number(x) : oe.x}px`, se = `1px solid ${typeof k == "string" && k ? k : "rgba(148, 163, 184, 0.35)"}`, ce = y ? { border: se } : { borderBottom: se }, le = Array.isArray(n) && n.length === e.length && n.every((e) => Number.isFinite(e) && e > 0), ue = [
4447
+ }, J = `${Number.isFinite(Number(S)) && S !== "" ? Number(S) : ae.y}px ${Number.isFinite(Number(x)) && x !== "" ? Number(x) : ae.x}px`, oe = `1px solid ${typeof k == "string" && k ? k : "rgba(148, 163, 184, 0.35)"}`, se = y ? { border: oe } : { borderBottom: oe }, ce = Array.isArray(n) && n.length === e.length && n.every((e) => Number.isFinite(e) && e > 0), le = [
4428
4448
  "left",
4429
4449
  "center",
4430
4450
  "right"
4431
- ], de = (t) => ue.includes(e[t]?.align) ? e[t].align : "", fe = (e) => de(e) || (ue.includes(O) ? O : "left"), J = Number.isFinite(Number(j)) && Number(j) > 0 ? Number(j) : 0, pe = A(M), me = !J && pe && pe.maxHeight !== void 0 ? pe.maxHeight : 0, he = J || me, ge = me ? {
4451
+ ], ue = (t) => le.includes(e[t]?.align) ? e[t].align : "", de = (e) => ue(e) || (le.includes(O) ? O : "left"), fe = Number.isFinite(Number(j)) && Number(j) > 0 ? Number(j) : 0, pe = A(M), me = !fe && pe && pe.maxHeight !== void 0 ? pe.maxHeight : 0, he = fe || me, ge = me ? {
4432
4452
  ...pe,
4433
4453
  maxHeight: void 0
4434
4454
  } : pe, _e = !!P && P.rows !== !1, ve = (t) => (r) => {
@@ -4436,7 +4456,7 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4436
4456
  r.preventDefault(), r.stopPropagation();
4437
4457
  let i = F.current, a = i ? i.clientWidth : 0;
4438
4458
  if (!a) return;
4439
- let o = le ? [...n] : e.map(() => 100 / e.length), s = r.clientX, c = o[t] + o[t + 1], l = (e) => {
4459
+ let o = ce ? [...n] : e.map(() => 100 / e.length), s = r.clientX, c = o[t] + o[t + 1], l = (e) => {
4440
4460
  let n = (e.clientX - s) / a * 100, r = Math.min(c - 5, Math.max(5, o[t] + n)), i = [...o];
4441
4461
  i[t] = Math.round(r * 10) / 10, i[t + 1] = Math.round((c - r) * 10) / 10, P.resize(i);
4442
4462
  }, u = () => {
@@ -4444,8 +4464,8 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4444
4464
  };
4445
4465
  window.addEventListener("pointermove", l), window.addEventListener("pointerup", u);
4446
4466
  }, ye = /* @__PURE__ */ new Set();
4447
- p && ie.forEach((t, n) => e.forEach((e, t) => {
4448
- let r = p[Pn(a[n], o[t])];
4467
+ p && re.forEach((t, n) => e.forEach((e, t) => {
4468
+ let r = p[Ln(a[n], o[t])];
4449
4469
  if (!r) return;
4450
4470
  let i = Math.max(1, Number(r.c) || 1), s = Math.max(1, Number(r.r) || 1);
4451
4471
  for (let e = 0; e < s; e++) for (let r = 0; r < i; r++) (e || r) && ye.add(`${n + e},${t + r}`);
@@ -4468,7 +4488,7 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4468
4488
  },
4469
4489
  onClick: n,
4470
4490
  children: e
4471
- }, t), Z = L && L.r < ie.length && L.c < e.length ? L : null, Q = (e, t) => P?.labels?.[e] ?? t, we = Z ? p?.[Pn(a[Z.r], o[Z.c])] : null, Ee = Math.max(1, Number(we?.c) || 1), De = Math.max(1, Number(we?.r) || 1);
4491
+ }, t), Z = L && L.r < re.length && L.c < e.length ? L : null, Q = (e, t) => P?.labels?.[e] ?? t, we = Z ? p?.[Ln(a[Z.r], o[Z.c])] : null, Ee = Math.max(1, Number(we?.c) || 1), De = Math.max(1, Number(we?.r) || 1);
4472
4492
  return /* @__PURE__ */ d("div", {
4473
4493
  ref: (e) => {
4474
4494
  I.current = e, typeof N == "function" && N(e);
@@ -4479,7 +4499,7 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4479
4499
  ...ge
4480
4500
  },
4481
4501
  children: [
4482
- P && /* @__PURE__ */ u("style", { children: Nn }),
4502
+ P && /* @__PURE__ */ u("style", { children: In }),
4483
4503
  P && Z && z && /* @__PURE__ */ d("div", {
4484
4504
  className: "wb-tedit-bar",
4485
4505
  style: {
@@ -4495,8 +4515,8 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4495
4515
  X("+↑", Q("rowAbove", "Insert row above"), () => P.addRow(Z.r - 1)),
4496
4516
  X("+↓", Q("rowBelow", "Insert row below"), () => P.addRow(Z.r)),
4497
4517
  X("↑", Q("rowUp", "Move row up"), () => P.moveRow(Z.r, -1), Z.r === 0),
4498
- X("↓", Q("rowDown", "Move row down"), () => P.moveRow(Z.r, 1), Z.r >= ie.length - 1),
4499
- X("✕ row", Q("rowDelete", "Delete row"), () => P.dropRow(Z.r), ie.length <= 1),
4518
+ X("↓", Q("rowDown", "Move row down"), () => P.moveRow(Z.r, 1), Z.r >= re.length - 1),
4519
+ X("✕ row", Q("rowDelete", "Delete row"), () => P.dropRow(Z.r), re.length <= 1),
4500
4520
  /* @__PURE__ */ u("span", { className: "wb-tedit-sep" }),
4501
4521
  X("+←", Q("colLeft", "Insert column left"), () => P.addColumn(Z.c - 1)),
4502
4522
  X("+→", Q("colRight", "Insert column right"), () => P.addColumn(Z.c)),
@@ -4505,7 +4525,7 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4505
4525
  X("✕ col", Q("colDelete", "Delete column"), () => P.dropColumn(Z.c), e.length <= 1),
4506
4526
  /* @__PURE__ */ u("span", { className: "wb-tedit-sep" }),
4507
4527
  X("↔", Q("mergeRight", "Merge with the cell on the right"), () => P.merge(Z.r, Z.c, "right"), Z.c + Ee >= e.length),
4508
- X("↕", Q("mergeDown", "Merge with the cell below"), () => P.merge(Z.r, Z.c, "down"), Z.r + De >= ie.length),
4528
+ X("↕", Q("mergeDown", "Merge with the cell below"), () => P.merge(Z.r, Z.c, "down"), Z.r + De >= re.length),
4509
4529
  X("⤫", Q("split", "Split this cell"), () => P.split(Z.r, Z.c), Ee === 1 && De === 1)
4510
4530
  ]
4511
4531
  }),
@@ -4525,17 +4545,17 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4525
4545
  borderCollapse: T && _ !== !1 ? "separate" : "collapse",
4526
4546
  borderSpacing: 0,
4527
4547
  fontSize: 14,
4528
- ...le ? { tableLayout: "fixed" } : null,
4529
- ...y ? { border: se } : {}
4548
+ ...ce ? { tableLayout: "fixed" } : null,
4549
+ ...y ? { border: oe } : {}
4530
4550
  },
4531
4551
  children: [
4532
- le && /* @__PURE__ */ u("colgroup", { children: n.map((e, t) => /* @__PURE__ */ u("col", { style: { width: `${e}%` } }, t)) }),
4552
+ ce && /* @__PURE__ */ u("colgroup", { children: n.map((e, t) => /* @__PURE__ */ u("col", { style: { width: `${e}%` } }, t)) }),
4533
4553
  _ === !1 ? null : /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", { children: e.map((t, n) => /* @__PURE__ */ u("th", {
4534
4554
  className: P ? "wb-tedit-head" : void 0,
4535
4555
  style: {
4536
- textAlign: fe(n),
4556
+ textAlign: de(n),
4537
4557
  fontWeight: 600,
4538
- padding: q,
4558
+ padding: J,
4539
4559
  ...typeof D == "string" && D ? { color: D } : null,
4540
4560
  background: typeof E == "string" && E ? E : T ? "var(--page-surface, #f2f2f2)" : "rgba(148, 163, 184, 0.12)",
4541
4561
  ...T ? {
@@ -4543,9 +4563,9 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4543
4563
  top: 0,
4544
4564
  zIndex: 2
4545
4565
  } : P ? { position: "relative" } : null,
4546
- ...ce
4566
+ ...se
4547
4567
  },
4548
- children: P ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(jn, {
4568
+ children: P ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(Pn, {
4549
4569
  value: t.label ?? t,
4550
4570
  onCommit: (e) => P.header(n, e),
4551
4571
  hint: Q("editCell", "Double-click to edit"),
@@ -4556,16 +4576,16 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4556
4576
  onPointerDown: ve(n)
4557
4577
  })] }) : t.label ?? t
4558
4578
  }, n)) }) }),
4559
- /* @__PURE__ */ d("tbody", { children: [ae && /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", {
4579
+ /* @__PURE__ */ d("tbody", { children: [ie && /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", {
4560
4580
  colSpan: e.length,
4561
4581
  style: {
4562
- padding: q,
4582
+ padding: J,
4563
4583
  textAlign: "center",
4564
4584
  opacity: .6,
4565
- ...ce
4585
+ ...se
4566
4586
  },
4567
4587
  children: w || "No data yet"
4568
- }) }), ie.map((t, n) => /* @__PURE__ */ u("tr", {
4588
+ }) }), re.map((t, n) => /* @__PURE__ */ u("tr", {
4569
4589
  className: P ? "wb-tedit-row" : void 0,
4570
4590
  style: {
4571
4591
  ...v && n % 2 == 1 ? { background: "rgba(148, 163, 184, 0.07)" } : null,
@@ -4573,7 +4593,7 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4573
4593
  },
4574
4594
  children: e.map((e, r) => {
4575
4595
  if (ye.has(`${n},${r}`)) return null;
4576
- let i = Pn(a[n], o[r]), s = m?.[i], c = p?.[i], l = Math.max(1, Number(c?.c) || 1), f = Math.max(1, Number(c?.r) || 1);
4596
+ let i = Ln(a[n], o[r]), s = m?.[i], c = p?.[i], l = Math.max(1, Number(c?.c) || 1), f = Math.max(1, Number(c?.r) || 1);
4577
4597
  return /* @__PURE__ */ d("td", {
4578
4598
  className: P ? `wb-tedit-cell${L?.r === n && L?.c === r ? " wb-tedit-cellon" : ""}` : void 0,
4579
4599
  onMouseDownCapture: _e ? V(n, r) : void 0,
@@ -4581,12 +4601,12 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4581
4601
  colSpan: l > 1 ? l : void 0,
4582
4602
  rowSpan: f > 1 ? f : void 0,
4583
4603
  style: {
4584
- padding: q,
4585
- ...de(r) ? { textAlign: de(r) } : null,
4604
+ padding: J,
4605
+ ...ue(r) ? { textAlign: ue(r) } : null,
4586
4606
  ...P ? { position: "relative" } : null,
4587
- ...ce
4607
+ ...se
4588
4608
  },
4589
- children: [s ?? Fn(t?.[r]), P && _e && /* @__PURE__ */ u("span", {
4609
+ children: [s ?? Rn(t?.[r]), P && _e && /* @__PURE__ */ u("span", {
4590
4610
  className: "wb-tedit-rowgrip",
4591
4611
  title: Q("rowHeight", "Drag to set the row height — double-click to fit the content"),
4592
4612
  onPointerDown: Se(n),
@@ -4601,7 +4621,7 @@ function In({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
4601
4621
  ]
4602
4622
  });
4603
4623
  }
4604
- var Ln = {
4624
+ var Bn = {
4605
4625
  small: {
4606
4626
  cell: 62,
4607
4627
  font: 10.5,
@@ -4626,8 +4646,8 @@ var Ln = {
4626
4646
  pad: 8,
4627
4647
  gap: 4
4628
4648
  }
4629
- }, Rn = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, zn = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Bn = 366;
4630
- function Vn(e, t = {}) {
4649
+ }, Vn = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, Hn = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Un = 366;
4650
+ function Wn(e, t = {}) {
4631
4651
  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 ? "" : Te(e), a = (e) => {
4632
4652
  let t = i(r(e)), n = t ? new Date(t) : null;
4633
4653
  return n && !Number.isNaN(n.getTime()) ? n : null;
@@ -4644,7 +4664,7 @@ function Vn(e, t = {}) {
4644
4664
  } : null;
4645
4665
  }).filter(Boolean);
4646
4666
  }
4647
- function Hn(e) {
4667
+ function Gn(e) {
4648
4668
  return (Array.isArray(e) ? e : []).map((e, t) => {
4649
4669
  let n = e?.start ? new Date(e.start) : null;
4650
4670
  if (!n || Number.isNaN(n.getTime())) return null;
@@ -4659,19 +4679,19 @@ function Hn(e) {
4659
4679
  };
4660
4680
  }).filter(Boolean);
4661
4681
  }
4662
- function Un(e) {
4682
+ function Kn(e) {
4663
4683
  let t = /* @__PURE__ */ new Map();
4664
4684
  for (let n of e) {
4665
- let e = zn(n.start), r = n.end ? zn(n.end) : e, i = Math.min(Math.max(0, Math.round((r - e) / 864e5)), Bn);
4685
+ let e = Hn(n.start), r = n.end ? Hn(n.end) : e, i = Math.min(Math.max(0, Math.round((r - e) / 864e5)), Un);
4666
4686
  for (let r = 0; r <= i; r += 1) {
4667
- let i = Rn(new Date(e.getFullYear(), e.getMonth(), e.getDate() + r));
4687
+ let i = Vn(new Date(e.getFullYear(), e.getMonth(), e.getDate() + r));
4668
4688
  t.has(i) || t.set(i, []), t.get(i).push(n);
4669
4689
  }
4670
4690
  }
4671
4691
  for (let e of t.values()) e.sort((e, t) => e.start - t.start);
4672
4692
  return t;
4673
4693
  }
4674
- function Wn({ events: e = [], source: t = "", titleField: n = "", startField: a = "", endField: o = "", hrefField: s = "", colorField: f = "", variant: p = "month", size: m = "medium", accent: h = "", eventBg: g = "", eventText: _ = "", borderColor: v = "", weekStart: y = "monday", max: b = 3, emptyText: x = "No events", style: S, nodeRef: C, interactive: w = !0 }) {
4694
+ function qn({ events: e = [], source: t = "", titleField: n = "", startField: a = "", endField: o = "", hrefField: s = "", colorField: f = "", variant: p = "month", size: m = "medium", accent: h = "", eventBg: g = "", eventText: _ = "", borderColor: v = "", weekStart: y = "monday", max: b = 3, emptyText: x = "No events", style: S, nodeRef: C, interactive: w = !0 }) {
4675
4695
  let { tenant: T, apiUrl: E, locale: D } = r(Y), O = r(be)?.[t], [k, j] = c(null), [M, N] = c(() => {
4676
4696
  let e = /* @__PURE__ */ new Date();
4677
4697
  return {
@@ -4694,13 +4714,13 @@ function Wn({ events: e = [], source: t = "", titleField: n = "", startField: a
4694
4714
  E,
4695
4715
  O
4696
4716
  ]);
4697
- let P = Ln[m] ?? Ln.medium, F = h || "var(--page-accent, #4f46e5)", I = v || "var(--page-border, rgba(148, 163, 184, 0.35))", L = g || F, R = _ || "var(--page-accent-text, #ffffff)", z = t ? Vn(O ?? k ?? [], {
4717
+ let P = Bn[m] ?? Bn.medium, F = h || "var(--page-accent, #4f46e5)", I = v || "var(--page-border, rgba(148, 163, 184, 0.35))", L = g || F, R = _ || "var(--page-accent-text, #ffffff)", z = t ? Wn(O ?? k ?? [], {
4698
4718
  titleField: n,
4699
4719
  startField: a,
4700
4720
  endField: o,
4701
4721
  hrefField: s,
4702
4722
  colorField: f
4703
- }) : Hn(e), B = Un(z), V = D || void 0, H = (e, t) => {
4723
+ }) : Gn(e), B = Kn(z), V = D || void 0, H = (e, t) => {
4704
4724
  let n = /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("span", { style: {
4705
4725
  width: 6,
4706
4726
  height: 6,
@@ -4747,7 +4767,7 @@ function Wn({ events: e = [], source: t = "", titleField: n = "", startField: a
4747
4767
  year: n.getFullYear(),
4748
4768
  month: n.getMonth()
4749
4769
  };
4750
- }), te = (e, t) => /* @__PURE__ */ u("button", {
4770
+ }), W = (e, t) => /* @__PURE__ */ u("button", {
4751
4771
  type: "button",
4752
4772
  "aria-label": e,
4753
4773
  onClick: () => ee(t),
@@ -4762,7 +4782,7 @@ function Wn({ events: e = [], source: t = "", titleField: n = "", startField: a
4762
4782
  padding: "4px 8px"
4763
4783
  },
4764
4784
  children: t < 0 ? "‹" : "›"
4765
- }), ne = /* @__PURE__ */ d("div", {
4785
+ }), te = /* @__PURE__ */ d("div", {
4766
4786
  style: {
4767
4787
  display: "flex",
4768
4788
  alignItems: "center",
@@ -4779,8 +4799,8 @@ function Wn({ events: e = [], source: t = "", titleField: n = "", startField: a
4779
4799
  },
4780
4800
  children: U
4781
4801
  }),
4782
- te("Previous month", -1),
4783
- te("Next month", 1)
4802
+ W("Previous month", -1),
4803
+ W("Next month", 1)
4784
4804
  ]
4785
4805
  });
4786
4806
  if (p === "list") {
@@ -4796,7 +4816,7 @@ function Wn({ events: e = [], source: t = "", titleField: n = "", startField: a
4796
4816
  width: "100%",
4797
4817
  ...A(S)
4798
4818
  },
4799
- children: [ne, e.length ? /* @__PURE__ */ u("div", {
4819
+ children: [te, e.length ? /* @__PURE__ */ u("div", {
4800
4820
  style: {
4801
4821
  display: "flex",
4802
4822
  flexDirection: "column",
@@ -4832,10 +4852,10 @@ function Wn({ events: e = [], source: t = "", titleField: n = "", startField: a
4832
4852
  })]
4833
4853
  });
4834
4854
  }
4835
- let re = new Date(M.year, M.month, 1), W = y === "sunday" ? 0 : 1, G = (re.getDay() - W + 7) % 7, K = new Date(M.year, M.month + 1, 0).getDate(), ie = Math.ceil((G + K) / 7), ae = Rn(/* @__PURE__ */ new Date()), oe = new Intl.DateTimeFormat(V, { weekday: "short" }), q = [];
4836
- for (let e = 0; e < ie * 7; e += 1) {
4837
- let t = e - G + 1, n = t >= 1 && t <= K, r = Rn(new Date(M.year, M.month, t)), i = n ? B.get(r) ?? [] : [], a = i.slice(0, Math.max(1, b)), o = n && r === ae;
4838
- q.push(/* @__PURE__ */ d("div", {
4855
+ let ne = new Date(M.year, M.month, 1), G = y === "sunday" ? 0 : 1, K = (ne.getDay() - G + 7) % 7, q = new Date(M.year, M.month + 1, 0).getDate(), re = Math.ceil((K + q) / 7), ie = Vn(/* @__PURE__ */ new Date()), ae = new Intl.DateTimeFormat(V, { weekday: "short" }), J = [];
4856
+ for (let e = 0; e < re * 7; e += 1) {
4857
+ let t = e - K + 1, n = t >= 1 && t <= q, r = Vn(new Date(M.year, M.month, t)), i = n ? B.get(r) ?? [] : [], a = i.slice(0, Math.max(1, b)), o = n && r === ie;
4858
+ J.push(/* @__PURE__ */ d("div", {
4839
4859
  style: {
4840
4860
  minHeight: P.cell,
4841
4861
  borderTop: `1px solid ${I}`,
@@ -4878,7 +4898,7 @@ function Wn({ events: e = [], source: t = "", titleField: n = "", startField: a
4878
4898
  ...A(S)
4879
4899
  },
4880
4900
  children: [
4881
- ne,
4901
+ te,
4882
4902
  /* @__PURE__ */ d("div", {
4883
4903
  style: {
4884
4904
  display: "grid",
@@ -4892,19 +4912,19 @@ function Wn({ events: e = [], source: t = "", titleField: n = "", startField: a
4892
4912
  textAlign: "center",
4893
4913
  padding: `0 0 ${P.pad}px`
4894
4914
  },
4895
- children: oe.format(new Date(2024, 0, 7 + W + t))
4896
- }, `head-${t}`)), q]
4915
+ children: ae.format(new Date(2024, 0, 7 + G + t))
4916
+ }, `head-${t}`)), J]
4897
4917
  }),
4898
4918
  /* @__PURE__ */ u("div", { style: { borderTop: `1px solid ${I}` } })
4899
4919
  ]
4900
4920
  });
4901
4921
  }
4902
- var Gn = {
4922
+ var Jn = {
4903
4923
  small: 36,
4904
4924
  medium: 56,
4905
4925
  large: 88
4906
4926
  };
4907
- function Kn(e, t = {}) {
4927
+ function Yn(e, t = {}) {
4908
4928
  let n = Array.isArray(e) ? e.filter((e) => e && typeof e == "object") : [], r = (e) => e == null ? "" : Te(e);
4909
4929
  return n.map((e) => {
4910
4930
  let n = e.data ?? e, i = Ce(n, t.imageField), a = Array.isArray(i) ? i[0] : i, o = a && typeof a == "object" ? a.url ?? a.src ?? "" : a, s = t.nameField ? r(Ce(n, t.nameField)) : r(n.name);
@@ -4915,8 +4935,8 @@ function Kn(e, t = {}) {
4915
4935
  };
4916
4936
  }).filter((e) => e.src);
4917
4937
  }
4918
- function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a = "", hrefField: o = "", variant: f = "step", size: p = "medium", perView: m = 5, gap: h = 48, hold: g = 3, slideMs: _ = 500, direction: v = "left", arrows: y = "show", pauseOnHover: b = !0, grayscale: x = !0, newTab: S = !0, emptyText: C = "", style: w, nodeRef: T, inert: E }) {
4919
- let { tenant: D, apiUrl: O } = r(Y), k = r(be)?.[t], [j, M] = c(null), N = s(null), P = s(null), [F, I] = c(0), [L, R] = c(0), [z, B] = c(0), [V, H] = c(!0), [U, ee] = c(!1), [te, ne] = c(!1);
4938
+ function Xn({ logos: e = [], source: t = "", imageField: n = "", nameField: a = "", hrefField: o = "", variant: f = "step", size: p = "medium", perView: m = 5, gap: h = 48, hold: g = 3, slideMs: _ = 500, direction: v = "left", arrows: y = "show", pauseOnHover: b = !0, grayscale: x = !0, newTab: S = !0, emptyText: C = "", style: w, nodeRef: T, inert: E }) {
4939
+ let { tenant: D, apiUrl: O } = r(Y), k = r(be)?.[t], [j, M] = c(null), N = s(null), P = s(null), [F, I] = c(0), [L, R] = c(0), [z, B] = c(0), [V, H] = c(!0), [U, ee] = c(!1), [W, te] = c(!1);
4920
4940
  i(() => {
4921
4941
  if (!t || k) return;
4922
4942
  let e = !0;
@@ -4933,7 +4953,7 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
4933
4953
  k
4934
4954
  ]), i(() => {
4935
4955
  if (typeof window > "u" || !window.matchMedia) return;
4936
- let e = window.matchMedia("(prefers-reduced-motion: reduce)"), t = () => ne(e.matches);
4956
+ let e = window.matchMedia("(prefers-reduced-motion: reduce)"), t = () => te(e.matches);
4937
4957
  return t(), e.addEventListener?.("change", t), () => e.removeEventListener?.("change", t);
4938
4958
  }, []), i(() => {
4939
4959
  let e = P.current;
@@ -4946,7 +4966,7 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
4946
4966
  let e = N.current;
4947
4967
  if (!e) return;
4948
4968
  let t = !0, n = () => {
4949
- let n = [...e.querySelectorAll("img")].filter((e) => e.complete && e.naturalHeight).map((e) => e.naturalWidth / e.naturalHeight * G);
4969
+ let n = [...e.querySelectorAll("img")].filter((e) => e.complete && e.naturalHeight).map((e) => e.naturalWidth / e.naturalHeight * K);
4950
4970
  t && n.length && R(Math.ceil(Math.max(...n)));
4951
4971
  };
4952
4972
  n();
@@ -4955,12 +4975,12 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
4955
4975
  t = !1, r.forEach((e) => e.removeEventListener("load", n));
4956
4976
  };
4957
4977
  });
4958
- let re = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.src) : [], W = t ? Kn(k ?? j ?? [], {
4978
+ let ne = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.src) : [], G = t ? Yn(k ?? j ?? [], {
4959
4979
  imageField: n,
4960
4980
  nameField: a,
4961
4981
  hrefField: o
4962
- }) : re, G = Gn[p] ?? Gn.medium, K = Number.isFinite(Number(h)) ? Math.max(0, Number(h)) : 48, ae = f === "marquee" ? "step" : f, oe = Math.min(3e4, Math.max(300, (Number(g) || 3) * 1e3)), q = Math.min(3e3, Math.max(100, Number(_) || 500)), se = Math.min(12, Math.max(1, Math.round(Number(m) || 5))), ce = (L || G * 3) + K, le = F ? Math.max(1, Math.floor(F / ce)) : se, ue = Math.min(se, le), de = F ? Math.min(ce, F / ue) : ce;
4963
- if (!W.length) return /* @__PURE__ */ u("div", {
4982
+ }) : ne, K = Jn[p] ?? Jn.medium, q = Number.isFinite(Number(h)) ? Math.max(0, Number(h)) : 48, ie = f === "marquee" ? "step" : f, ae = Math.min(3e4, Math.max(300, (Number(g) || 3) * 1e3)), J = Math.min(3e3, Math.max(100, Number(_) || 500)), oe = Math.min(12, Math.max(1, Math.round(Number(m) || 5))), se = (L || K * 3) + q, ce = F ? Math.max(1, Math.floor(F / se)) : oe, le = Math.min(oe, ce), ue = F ? Math.min(se, F / le) : se;
4983
+ if (!G.length) return /* @__PURE__ */ u("div", {
4964
4984
  ref: T,
4965
4985
  style: {
4966
4986
  width: "100%",
@@ -4972,7 +4992,7 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
4972
4992
  alignItems: "center",
4973
4993
  justifyContent: "center",
4974
4994
  flexWrap: "wrap",
4975
- gap: K
4995
+ gap: q
4976
4996
  },
4977
4997
  children: [
4978
4998
  0,
@@ -4982,16 +5002,16 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
4982
5002
  4
4983
5003
  ].map((e) => /* @__PURE__ */ u("div", {
4984
5004
  style: {
4985
- height: G,
4986
- width: G * 3,
5005
+ height: K,
5006
+ width: K * 3,
4987
5007
  border: "1px dashed var(--page-border, rgba(148, 163, 184, 0.5))",
4988
5008
  borderRadius: 6,
4989
5009
  display: "flex",
4990
5010
  alignItems: "center",
4991
5011
  justifyContent: "center",
4992
- fontSize: Math.max(10, Math.round(G / 4)),
5012
+ fontSize: Math.max(10, Math.round(K / 4)),
4993
5013
  opacity: .45,
4994
- ...ie
5014
+ ...re
4995
5015
  },
4996
5016
  children: "LOGO"
4997
5017
  }, e))
@@ -5005,21 +5025,21 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
5005
5025
  children: C
5006
5026
  }) : null
5007
5027
  });
5008
- let fe = W.length, J = ae === "step" && fe > ue, pe = ae === "slider", me = J && !E && !U && !te, he = v === "right", ge = he ? fe : 0, _e = J ? [...W, ...W] : W, ve = J ? z * de : 0, ye = (e, t, n) => {
5028
+ let de = G.length, fe = ie === "step" && de > le, pe = ie === "slider", me = fe && !E && !U && !W, he = v === "right", ge = he ? de : 0, _e = fe ? [...G, ...G] : G, ve = fe ? z * ue : 0, ye = (e, t, n) => {
5009
5029
  let r = /* @__PURE__ */ u("img", {
5010
5030
  src: e.src,
5011
5031
  alt: e.alt ?? "",
5012
5032
  style: {
5013
- height: G,
5033
+ height: K,
5014
5034
  width: "auto",
5015
5035
  maxWidth: "100%",
5016
5036
  objectFit: "contain",
5017
5037
  display: "block"
5018
5038
  }
5019
- }), i = J ? {
5020
- width: de,
5039
+ }), i = fe ? {
5040
+ width: ue,
5021
5041
  flex: "0 0 auto",
5022
- padding: `0 ${K / 2}px`,
5042
+ padding: `0 ${q / 2}px`,
5023
5043
  justifyContent: "center"
5024
5044
  } : {};
5025
5045
  return e.href && !E ? /* @__PURE__ */ u("a", {
@@ -5048,22 +5068,22 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
5048
5068
  style: {
5049
5069
  display: "flex",
5050
5070
  alignItems: "center",
5051
- ...J ? {
5052
- width: _e.length * de,
5071
+ ...fe ? {
5072
+ width: _e.length * ue,
5053
5073
  transform: `translateX(-${ve}px)`,
5054
- transition: V ? `transform ${q}ms ease` : "none"
5074
+ transition: V ? `transform ${J}ms ease` : "none"
5055
5075
  } : pe ? {
5056
- gap: K,
5076
+ gap: q,
5057
5077
  overflowX: "auto",
5058
5078
  scrollBehavior: "smooth",
5059
5079
  scrollSnapType: "x proximity"
5060
5080
  } : {
5061
- gap: K,
5081
+ gap: q,
5062
5082
  flexWrap: "wrap",
5063
5083
  justifyContent: "center"
5064
5084
  }
5065
5085
  },
5066
- children: _e.map((e, t) => ye(e, t, J && t >= fe))
5086
+ children: _e.map((e, t) => ye(e, t, fe && t >= de))
5067
5087
  }), Se = (e) => {
5068
5088
  if (pe) {
5069
5089
  let t = N.current;
@@ -5074,15 +5094,15 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
5074
5094
  return;
5075
5095
  }
5076
5096
  let t = z + e;
5077
- if (t >= 0 && t <= fe) {
5097
+ if (t >= 0 && t <= de) {
5078
5098
  H(!0), B(t);
5079
5099
  return;
5080
5100
  }
5081
- let n = t < 0 ? fe : 0;
5101
+ let n = t < 0 ? de : 0;
5082
5102
  H(!1), B(n), requestAnimationFrame(() => requestAnimationFrame(() => {
5083
5103
  H(!0), B(n + e);
5084
5104
  }));
5085
- }, X = y === !1 || y === "off" ? "off" : y === "hover" ? "hover" : "show", Z = X !== "off" && (pe ? F > 0 : J), Q = (e) => /* @__PURE__ */ u("button", {
5105
+ }, X = y === !1 || y === "off" ? "off" : y === "hover" ? "hover" : "show", Z = X !== "off" && (pe ? F > 0 : fe), Q = (e) => /* @__PURE__ */ u("button", {
5086
5106
  type: "button",
5087
5107
  "aria-label": e < 0 ? "Previous logos" : "Next logos",
5088
5108
  onClick: () => Se(e),
@@ -5124,10 +5144,10 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
5124
5144
  border: 1px solid var(--page-border, rgba(148, 163, 184, 0.5));
5125
5145
  }
5126
5146
  ` }),
5127
- J ? /* @__PURE__ */ d("div", {
5147
+ fe ? /* @__PURE__ */ d("div", {
5128
5148
  style: {
5129
5149
  position: "relative",
5130
- width: ue * de,
5150
+ width: le * ue,
5131
5151
  maxWidth: "100%",
5132
5152
  margin: "0 auto"
5133
5153
  },
@@ -5144,13 +5164,13 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
5144
5164
  xe,
5145
5165
  Z ? Q(1) : null
5146
5166
  ] }),
5147
- /* @__PURE__ */ u(Jn, {
5167
+ /* @__PURE__ */ u(Zn, {
5148
5168
  running: me,
5149
- every: oe + q,
5150
- slide: q,
5169
+ every: ae + J,
5170
+ slide: J,
5151
5171
  step: he ? -1 : 1,
5152
5172
  index: z,
5153
- total: fe,
5173
+ total: de,
5154
5174
  home: ge,
5155
5175
  setIndex: B,
5156
5176
  setAnimate: H
@@ -5158,7 +5178,7 @@ function qn({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
5158
5178
  ]
5159
5179
  });
5160
5180
  }
5161
- function Jn({ running: e, every: t, slide: n, step: r, index: a, total: o, home: s, setIndex: c, setAnimate: l }) {
5181
+ function Zn({ running: e, every: t, slide: n, step: r, index: a, total: o, home: s, setIndex: c, setAnimate: l }) {
5162
5182
  i(() => {
5163
5183
  if (!e) return;
5164
5184
  let n = setInterval(() => {
@@ -5194,13 +5214,13 @@ function Jn({ running: e, every: t, slide: n, step: r, index: a, total: o, home:
5194
5214
  l
5195
5215
  ]), null;
5196
5216
  }
5197
- var Yn = {
5217
+ var Qn = {
5198
5218
  small: 380,
5199
5219
  medium: 560,
5200
5220
  large: 820,
5201
5221
  full: "100%"
5202
5222
  };
5203
- function Xn({ dialogId: e = "", trigger: t = "button", triggerLabel: n = "Open", openOn: r = "trigger", delay: a = 0, size: o = "medium", title: l = "", showClose: f = !0, backdropClose: p = !0, position: m = "center", actions: h = [], showCloseAction: g = !1, closeLabel: _ = "Close", actionsAlign: v = "right", linked: y, style: b, nodeRef: x, inert: S = !1 }) {
5223
+ function $n({ dialogId: e = "", trigger: t = "button", triggerLabel: n = "Open", openOn: r = "trigger", delay: a = 0, size: o = "medium", title: l = "", showClose: f = !0, backdropClose: p = !0, position: m = "center", actions: h = [], showCloseAction: g = !1, closeLabel: _ = "Close", actionsAlign: v = "right", linked: y, style: b, nodeRef: x, inert: S = !1 }) {
5204
5224
  let [C, w] = c(!1), T = s(null);
5205
5225
  i(() => {
5206
5226
  if (S || !e) return;
@@ -5225,7 +5245,7 @@ function Xn({ dialogId: e = "", trigger: t = "button", triggerLabel: n = "Open",
5225
5245
  document.removeEventListener("keydown", e), document.body.style.overflow = t;
5226
5246
  };
5227
5247
  }, [S, C]);
5228
- let E = Yn[o] ?? Yn.medium, D = (e) => {
5248
+ let E = Qn[o] ?? Qn.medium, D = (e) => {
5229
5249
  let t = {
5230
5250
  padding: "9px 16px",
5231
5251
  borderRadius: 6,
@@ -5394,97 +5414,97 @@ function Xn({ dialogId: e = "", trigger: t = "button", triggerLabel: n = "Open",
5394
5414
  })]
5395
5415
  });
5396
5416
  }
5397
- var Zn = {
5417
+ var er = {
5398
5418
  PageRoot: Pe,
5399
- CalendarBlock: Wn,
5400
- LogoCarousel: qn,
5401
- DialogBlock: Xn,
5419
+ CalendarBlock: qn,
5420
+ LogoCarousel: Xn,
5421
+ DialogBlock: $n,
5402
5422
  Section: Fe,
5403
5423
  Container: Ie,
5404
5424
  Heading: Le,
5405
- TextBlock: Ye,
5406
- ButtonBlock: Qe,
5407
- ImageBlock: $e,
5408
- Spacer: at,
5409
- Divider: ot,
5410
- SliderBlock: ft,
5411
- CanvasSlider: pt,
5412
- TabsBlock: kt,
5413
- QuickStack: tn,
5414
- CollectionList: nn,
5415
- CollectionSearch: rn,
5416
- BreadcrumbsBlock: an,
5417
- PaginationBlock: on,
5418
- StepperBlock: vn,
5419
- SocialLinksBlock: _n,
5420
- ThemeModeBlock: dn,
5421
- ScrollTopBlock: hn,
5422
- OrgChartBlock: An,
5423
- TableBlock: In,
5424
- IconBlock: St,
5425
- MapBlock: bt,
5426
- MasonryBlock: wt,
5427
- AccordionBlock: At,
5428
- NavbarBlock: Ot,
5429
- ListBlock: Je,
5425
+ TextBlock: Qe,
5426
+ ButtonBlock: tt,
5427
+ ImageBlock: nt,
5428
+ Spacer: ct,
5429
+ Divider: lt,
5430
+ SliderBlock: ht,
5431
+ CanvasSlider: gt,
5432
+ TabsBlock: Mt,
5433
+ QuickStack: an,
5434
+ CollectionList: on,
5435
+ CollectionSearch: sn,
5436
+ BreadcrumbsBlock: cn,
5437
+ PaginationBlock: ln,
5438
+ StepperBlock: xn,
5439
+ SocialLinksBlock: bn,
5440
+ ThemeModeBlock: mn,
5441
+ ScrollTopBlock: vn,
5442
+ OrgChartBlock: Nn,
5443
+ TableBlock: zn,
5444
+ IconBlock: Tt,
5445
+ MapBlock: Ct,
5446
+ MasonryBlock: Dt,
5447
+ AccordionBlock: Nt,
5448
+ NavbarBlock: jt,
5449
+ ListBlock: Ze,
5430
5450
  TextSpan: Ve,
5431
- QuoteBlock: qe,
5432
- TextLink: Ze,
5433
- RichTextBlock: Ge,
5434
- RichContentBlock: Ge,
5435
- VideoBlock: et,
5436
- YouTubeBlock: nt,
5437
- IframeBlock: rt,
5438
- EmbedBlock: it,
5439
- FormBlock: Ut,
5440
- FormLabel: Jt,
5441
- FormInput: Yt,
5442
- FormTextarea: Xt,
5443
- FormCheckbox: (e) => /* @__PURE__ */ u(Zt, {
5451
+ QuoteBlock: Xe,
5452
+ TextLink: et,
5453
+ RichTextBlock: Je,
5454
+ RichContentBlock: Je,
5455
+ VideoBlock: rt,
5456
+ YouTubeBlock: at,
5457
+ IframeBlock: ot,
5458
+ EmbedBlock: st,
5459
+ FormBlock: Kt,
5460
+ FormLabel: Zt,
5461
+ FormInput: Qt,
5462
+ FormTextarea: $t,
5463
+ FormCheckbox: (e) => /* @__PURE__ */ u(en, {
5444
5464
  kind: "checkbox",
5445
5465
  ...e
5446
5466
  }),
5447
- FormRadio: (e) => /* @__PURE__ */ u(Zt, {
5467
+ FormRadio: (e) => /* @__PURE__ */ u(en, {
5448
5468
  kind: "radio",
5449
5469
  ...e
5450
5470
  }),
5451
- FormSelect: Qt,
5452
- FormFile: $t,
5453
- FormRecaptcha: qt,
5454
- FormSubmit: en
5455
- }, Qn = {
5471
+ FormSelect: tn,
5472
+ FormFile: nn,
5473
+ FormRecaptcha: Xt,
5474
+ FormSubmit: rn
5475
+ }, tr = {
5456
5476
  id: "auth",
5457
5477
  label: "Accounts",
5458
5478
  category: "Apps",
5459
5479
  keys: ["SiteLoginForm", "SiteAccountMenu"],
5460
5480
  ssr: "shell",
5461
5481
  settings: ["site.authRedirect"]
5462
- }, $n = t({
5482
+ }, nr = t({
5463
5483
  user: null,
5464
5484
  status: "idle",
5465
5485
  ensure: () => {},
5466
5486
  refresh: () => {},
5467
5487
  signOut: () => {}
5468
5488
  });
5469
- function er(e, t) {
5489
+ function rr(e, t) {
5470
5490
  return t ? /^https?:\/\//i.test(t) ? t : `${e.replace(/\/+$/, "")}${t.startsWith("/") ? t : `/${t}`}` : "";
5471
5491
  }
5472
- function tr(e) {
5492
+ function ir(e) {
5473
5493
  let t = e && typeof e == "object" ? e["site.session"] : null, n = t && typeof t == "object" && !Array.isArray(t) ? t : {}, r = (e) => typeof e == "string" ? e.trim() : "", i = r(n.url), a = r(n.mePath), o = r(n.logoutPath);
5474
5494
  return {
5475
5495
  mode: n.mode === "custom" || n.mode === "off" ? n.mode : "system",
5476
5496
  url: i,
5477
5497
  mePath: a,
5478
5498
  logoutPath: o,
5479
- meUrl: er(i, a),
5480
- logoutUrl: er(i, o),
5499
+ meUrl: rr(i, a),
5500
+ logoutUrl: rr(i, o),
5481
5501
  loginPage: r(n.loginPage),
5482
5502
  userPath: r(n.userPath),
5483
5503
  auth: n.auth === "bearer" ? "bearer" : "cookies",
5484
5504
  tokenKey: r(n.tokenKey) || "webim_session_token"
5485
5505
  };
5486
5506
  }
5487
- function nr(e, t) {
5507
+ function ar(e, t) {
5488
5508
  if (!t) return e ?? null;
5489
5509
  let n = e;
5490
5510
  for (let e of t.split(".")) {
@@ -5493,26 +5513,26 @@ function nr(e, t) {
5493
5513
  }
5494
5514
  return n ?? null;
5495
5515
  }
5496
- function rr(e) {
5516
+ function or(e) {
5497
5517
  try {
5498
5518
  return window.localStorage.getItem(e) || "";
5499
5519
  } catch {
5500
5520
  return "";
5501
5521
  }
5502
5522
  }
5503
- function ir(e) {
5523
+ function sr(e) {
5504
5524
  try {
5505
5525
  window.localStorage.removeItem(e);
5506
5526
  } catch {}
5507
5527
  }
5508
- var ar = () => {
5509
- let e = r($n);
5528
+ var cr = () => {
5529
+ let e = r(nr);
5510
5530
  return i(() => {
5511
5531
  e.ensure();
5512
5532
  }, [e]), e;
5513
5533
  };
5514
- function or({ children: e, initialUser: t, disabled: a, apiUrl: l, tenant: d }) {
5515
- let f = r(Y), p = l || f?.apiUrl || "/api", m = d || f?.tenant || "", h = o(() => tr(f?.settings), [f?.settings]), [g, _] = c(t ?? null), [v, y] = c(t ? "user" : a ? "guest" : "idle"), b = s(!1), x = n((e, t) => fetch(`${p}${e}`, {
5534
+ function lr({ children: e, initialUser: t, disabled: a, apiUrl: l, tenant: d }) {
5535
+ let f = r(Y), p = l || f?.apiUrl || "/api", m = d || f?.tenant || "", h = o(() => ir(f?.settings), [f?.settings]), [g, _] = c(t ?? null), [v, y] = c(t ? "user" : a ? "guest" : "idle"), b = s(!1), x = n((e, t) => fetch(`${p}${e}`, {
5516
5536
  ...t,
5517
5537
  credentials: "include",
5518
5538
  headers: {
@@ -5524,9 +5544,9 @@ function or({ children: e, initialUser: t, disabled: a, apiUrl: l, tenant: d })
5524
5544
  if (a) return Promise.resolve(null);
5525
5545
  if (h.mode === "off") return Promise.resolve(S(null));
5526
5546
  if (h.mode === "custom") {
5527
- let e = h.auth === "bearer" ? rr(h.tokenKey) : "";
5547
+ let e = h.auth === "bearer" ? or(h.tokenKey) : "";
5528
5548
  return !h.meUrl || h.auth === "bearer" && !e ? Promise.resolve(S(null)) : fetch(h.meUrl, { ...h.auth === "bearer" ? { headers: { authorization: `Bearer ${e}` } } : { credentials: "include" } }).then((e) => e.ok ? e.json() : null).then((e) => {
5529
- let t = nr(e, h.userPath);
5549
+ let t = ar(e, h.userPath);
5530
5550
  return S(t && typeof t == "object" ? t : null);
5531
5551
  }).catch(() => S(null));
5532
5552
  }
@@ -5539,12 +5559,12 @@ function or({ children: e, initialUser: t, disabled: a, apiUrl: l, tenant: d })
5539
5559
  ]), w = n(() => {
5540
5560
  if (h.mode === "off") return S(null), Promise.resolve();
5541
5561
  if (h.mode === "custom") {
5542
- let e = h.auth === "bearer" ? rr(h.tokenKey) : "";
5562
+ let e = h.auth === "bearer" ? or(h.tokenKey) : "";
5543
5563
  return (h.logoutUrl ? fetch(h.logoutUrl, {
5544
5564
  method: "post",
5545
5565
  ...h.auth === "bearer" ? { headers: e ? { authorization: `Bearer ${e}` } : {} } : { credentials: "include" }
5546
5566
  }).catch(() => {}) : Promise.resolve()).then(() => {
5547
- h.auth === "bearer" && ir(h.tokenKey), S(null);
5567
+ h.auth === "bearer" && sr(h.tokenKey), S(null);
5548
5568
  });
5549
5569
  }
5550
5570
  return x("/site/logout", { method: "post" }).catch(() => {}).then(() => {
@@ -5594,18 +5614,18 @@ function or({ children: e, initialUser: t, disabled: a, apiUrl: l, tenant: d })
5594
5614
  h.loginPage,
5595
5615
  C,
5596
5616
  w
5597
- ]), /* @__PURE__ */ u($n.Provider, {
5617
+ ]), /* @__PURE__ */ u(nr.Provider, {
5598
5618
  value: E,
5599
5619
  children: e
5600
5620
  });
5601
5621
  }
5602
- function sr({ when: e, children: t }) {
5603
- let { status: n } = ar();
5622
+ function ur({ when: e, children: t }) {
5623
+ let { status: n } = cr();
5604
5624
  return !e || e === "always" ? t : n === "idle" || n === "loading" ? null : e === "user" == (n === "user") ? t : null;
5605
5625
  }
5606
5626
  //#endregion
5607
5627
  //#region ../ui/src/components/builder/apps/auth/views.jsx
5608
- function cr({ 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 }) {
5628
+ function dr({ 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 }) {
5609
5629
  let { tenant: h, apiUrl: g, settings: _ } = r(Y), [v, y] = c("form"), [b, x] = c(""), [S, C] = c(!1), w = e === "register", T = f ? m || "form" : v, E = (e) => typeof e == "string" && e.startsWith("/") && !e.startsWith("//") ? e : "", D = async (e) => {
5610
5630
  if (e.preventDefault(), f) return;
5611
5631
  let n = new FormData(e.currentTarget);
@@ -5654,20 +5674,20 @@ function cr({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
5654
5674
  children: [
5655
5675
  w ? /* @__PURE__ */ d("label", {
5656
5676
  style: {
5657
- ...Mt,
5677
+ ...Ft,
5658
5678
  display: "grid",
5659
5679
  gap: 6
5660
5680
  },
5661
5681
  children: [a, /* @__PURE__ */ u("input", {
5662
5682
  name: "name",
5663
5683
  type: "text",
5664
- style: Nt,
5665
- ...Ft(f)
5684
+ style: It,
5685
+ ...Rt(f)
5666
5686
  })]
5667
5687
  }) : null,
5668
5688
  /* @__PURE__ */ d("label", {
5669
5689
  style: {
5670
- ...Mt,
5690
+ ...Ft,
5671
5691
  display: "grid",
5672
5692
  gap: 6
5673
5693
  },
@@ -5675,13 +5695,13 @@ function cr({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
5675
5695
  name: "email",
5676
5696
  type: "email",
5677
5697
  required: !f,
5678
- style: Nt,
5679
- ...Ft(f)
5698
+ style: It,
5699
+ ...Rt(f)
5680
5700
  })]
5681
5701
  }),
5682
5702
  /* @__PURE__ */ d("label", {
5683
5703
  style: {
5684
- ...Mt,
5704
+ ...Ft,
5685
5705
  display: "grid",
5686
5706
  gap: 6
5687
5707
  },
@@ -5689,8 +5709,8 @@ function cr({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
5689
5709
  name: "password",
5690
5710
  type: "password",
5691
5711
  required: !f,
5692
- style: Nt,
5693
- ...Ft(f)
5712
+ style: It,
5713
+ ...Rt(f)
5694
5714
  })]
5695
5715
  }),
5696
5716
  /* @__PURE__ */ u("button", {
@@ -5729,8 +5749,8 @@ function cr({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
5729
5749
  ]
5730
5750
  });
5731
5751
  }
5732
- function lr({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !1, style: r, nodeRef: i, inert: a, linked: o, show: s }) {
5733
- let { user: c, status: l, signOut: f } = ar(), p = a ? s || "user" : l, m = a ? {
5752
+ function fr({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !1, style: r, nodeRef: i, inert: a, linked: o, show: s }) {
5753
+ let { user: c, status: l, signOut: f } = cr(), p = a ? s || "user" : l, m = a ? {
5734
5754
  name: "Ada Lovelace",
5735
5755
  email: "ada@example.com"
5736
5756
  } : c;
@@ -5751,7 +5771,7 @@ function lr({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
5751
5771
  children: [
5752
5772
  /* @__PURE__ */ d("span", {
5753
5773
  style: {
5754
- ...Mt,
5774
+ ...Ft,
5755
5775
  fontWeight: 600
5756
5776
  },
5757
5777
  children: [
@@ -5762,7 +5782,7 @@ function lr({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
5762
5782
  }),
5763
5783
  n && m?.email ? /* @__PURE__ */ u("span", {
5764
5784
  style: {
5765
- ...Mt,
5785
+ ...Ft,
5766
5786
  opacity: .7
5767
5787
  },
5768
5788
  children: m.email
@@ -5778,7 +5798,7 @@ function lr({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
5778
5798
  fontSize: 14,
5779
5799
  cursor: a ? "default" : "pointer"
5780
5800
  },
5781
- ...Ft(a),
5801
+ ...Rt(a),
5782
5802
  children: t
5783
5803
  })
5784
5804
  ]
@@ -5795,40 +5815,40 @@ function lr({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
5795
5815
  }
5796
5816
  //#endregion
5797
5817
  //#region ../ui/src/components/builder/apps/consent/manifest.js
5798
- var ur = {
5818
+ var pr = {
5799
5819
  id: "consent",
5800
5820
  label: "Cookie consent",
5801
5821
  category: "Apps",
5802
5822
  keys: ["CookieConsent"],
5803
5823
  ssr: "shell",
5804
5824
  settings: []
5805
- }, dr = "webim.cookie_consent";
5806
- function fr() {
5825
+ }, mr = "webim.cookie_consent";
5826
+ function hr() {
5807
5827
  try {
5808
- let e = window.localStorage.getItem(dr), t = e ? JSON.parse(e) : null;
5828
+ let e = window.localStorage.getItem(mr), t = e ? JSON.parse(e) : null;
5809
5829
  return t?.choice === "accepted" || t?.choice === "declined" ? t.choice : "";
5810
5830
  } catch {
5811
5831
  return "";
5812
5832
  }
5813
5833
  }
5814
- function pr(e) {
5834
+ function gr(e) {
5815
5835
  try {
5816
5836
  document.querySelectorAll(".webim-page").forEach((t) => t.setAttribute("data-webim-consent", e));
5817
5837
  } catch {}
5818
5838
  }
5819
- function mr(e) {
5839
+ function _r(e) {
5820
5840
  try {
5821
- window.localStorage.setItem(dr, JSON.stringify({
5841
+ window.localStorage.setItem(mr, JSON.stringify({
5822
5842
  choice: e,
5823
5843
  at: (/* @__PURE__ */ new Date()).toISOString()
5824
5844
  }));
5825
5845
  } catch {}
5826
- pr(e);
5846
+ gr(e);
5827
5847
  try {
5828
5848
  window.dispatchEvent(new CustomEvent("webim:consent", { detail: { choice: e } }));
5829
5849
  } catch {}
5830
5850
  }
5831
- var hr = {
5851
+ var vr = {
5832
5852
  bottom: {
5833
5853
  left: 0,
5834
5854
  right: 0,
@@ -5850,18 +5870,18 @@ var hr = {
5850
5870
  maxWidth: 400
5851
5871
  }
5852
5872
  };
5853
- function gr({ message: e, acceptLabel: t, rejectLabel: n, showReject: r, linkLabel: a, linkHref: o, position: s, linked: f, style: p, nodeRef: m, inert: h }) {
5873
+ function yr({ message: e, acceptLabel: t, rejectLabel: n, showReject: r, linkLabel: a, linkHref: o, position: s, linked: f, style: p, nodeRef: m, inert: h }) {
5854
5874
  let [g, _] = c(!!h), [v, y] = c(null), b = (e) => {
5855
5875
  y(e), typeof m == "function" && m(e);
5856
5876
  };
5857
5877
  if (i(() => {
5858
5878
  if (h) return;
5859
- let e = fr();
5860
- e ? pr(e) : _(!0);
5879
+ let e = hr();
5880
+ e ? gr(e) : _(!0);
5861
5881
  }, [h, v]), !g) return null;
5862
5882
  let x = (e) => () => {
5863
- h || (mr(e), _(!1));
5864
- }, S = hr[s] ?? hr.bottom, C = {
5883
+ h || (_r(e), _(!1));
5884
+ }, S = vr[s] ?? vr.bottom, C = {
5865
5885
  appearance: "none",
5866
5886
  font: "inherit",
5867
5887
  fontSize: 14,
@@ -5941,37 +5961,37 @@ function gr({ message: e, acceptLabel: t, rejectLabel: n, showReject: r, linkLab
5941
5961
  }
5942
5962
  //#endregion
5943
5963
  //#region ../ui/src/components/builder/apps/language/manifest.js
5944
- var _r = {
5964
+ var br = {
5945
5965
  id: "language",
5946
5966
  label: "Language",
5947
5967
  category: "Apps",
5948
5968
  keys: ["SiteLanguagePicker"],
5949
5969
  ssr: "prefetch",
5950
5970
  settings: ["locales"]
5951
- }, vr = {
5971
+ }, xr = {
5952
5972
  id: "search",
5953
5973
  label: "Search",
5954
5974
  category: "Apps",
5955
5975
  keys: ["SiteSearch"],
5956
5976
  ssr: "prefetch",
5957
5977
  settings: []
5958
- }, yr = 50, br = 2e3;
5959
- function xr() {
5978
+ }, Sr = 50, Cr = 2e3;
5979
+ function wr() {
5960
5980
  return typeof window > "u" ? "" : new URLSearchParams(window.location.search).get("q") ?? "";
5961
5981
  }
5962
- function Sr(e, t) {
5982
+ function Tr(e, t) {
5963
5983
  let n = e?.data ?? {}, r = [];
5964
5984
  for (let e of Object.values(n)) {
5965
5985
  let t = e == null ? "" : Te(e);
5966
- if (t && r.push(t), r.join(" ").length > br) break;
5986
+ if (t && r.push(t), r.join(" ").length > Cr) break;
5967
5987
  }
5968
- return r.join(" ").slice(0, br).toLocaleLowerCase(t || void 0);
5988
+ return r.join(" ").slice(0, Cr).toLocaleLowerCase(t || void 0);
5969
5989
  }
5970
- function Cr({ placeholder: e = "Search…", buttonLabel: t = "Search", showButton: n = !0, live: a = !1, layout: o = "inline", includePages: l = !0, collections: f = [], limit: p = 10, emptyText: m = "Nothing found", hint: h = "", style: g, nodeRef: _, inert: v = !1, sample: y = !1 }) {
5971
- let { tenant: b, apiUrl: x, locale: S } = r(Y), [C, w] = c(() => xr()), [T, E] = c(() => xr()), [D, O] = c(null), [k, j] = c(!1), M = s(null), N = o === "popup";
5990
+ function Er({ placeholder: e = "Search…", buttonLabel: t = "Search", showButton: n = !0, live: a = !1, layout: o = "inline", includePages: l = !0, collections: f = [], limit: p = 10, emptyText: m = "Nothing found", hint: h = "", style: g, nodeRef: _, inert: v = !1, sample: y = !1 }) {
5991
+ let { tenant: b, apiUrl: x, locale: S } = r(Y), [C, w] = c(() => wr()), [T, E] = c(() => wr()), [D, O] = c(null), [k, j] = c(!1), M = s(null), N = o === "popup";
5972
5992
  i(() => {
5973
5993
  let e = () => {
5974
- let e = xr();
5994
+ let e = wr();
5975
5995
  w(e), E(e);
5976
5996
  };
5977
5997
  return window.addEventListener("popstate", e), window.addEventListener("webim:urlchange", e), () => {
@@ -6022,7 +6042,7 @@ function Cr({ placeholder: e = "Search…", buttonLabel: t = "Search", showButto
6022
6042
  });
6023
6043
  }
6024
6044
  else for (let t of e.rows) {
6025
- if (!Sr(t, S).includes(P)) continue;
6045
+ if (!Tr(t, S).includes(P)) continue;
6026
6046
  let n = t?.data ?? {}, r = Te(n.name) || "Untitled", i = Te(n.slug);
6027
6047
  F.push({
6028
6048
  key: `entry:${t.id}`,
@@ -6031,7 +6051,7 @@ function Cr({ placeholder: e = "Search…", buttonLabel: t = "Search", showButto
6031
6051
  kind: "entry"
6032
6052
  });
6033
6053
  }
6034
- let I = F.slice(0, Math.min(Math.max(1, p), yr)), L = (e) => {
6054
+ let I = F.slice(0, Math.min(Math.max(1, p), Sr)), L = (e) => {
6035
6055
  if (v) {
6036
6056
  e.preventDefault(), w(T), j(!0);
6037
6057
  return;
@@ -6113,7 +6133,7 @@ function Cr({ placeholder: e = "Search…", buttonLabel: t = "Search", showButto
6113
6133
  onChange: (e) => E(e.target.value),
6114
6134
  onFocus: () => P && j(!0),
6115
6135
  style: {
6116
- ...Nt,
6136
+ ...It,
6117
6137
  flexGrow: 1,
6118
6138
  minWidth: 0
6119
6139
  }
@@ -6171,21 +6191,21 @@ function Cr({ placeholder: e = "Search…", buttonLabel: t = "Search", showButto
6171
6191
  }
6172
6192
  //#endregion
6173
6193
  //#region ../ui/src/components/builder/apps/language/views.jsx
6174
- function wr(e) {
6194
+ function Dr(e) {
6175
6195
  let t = e?.locales, n = [typeof t?.default == "string" && t.default.trim() ? t.default.trim() : "", ...Array.isArray(t?.enabled) ? t.enabled : []].filter((e) => typeof e == "string" && e.trim());
6176
6196
  return [...new Set(n.map((e) => e.trim()))];
6177
6197
  }
6178
- var Tr = (e) => e && e.charAt(0).toUpperCase() + e.slice(1);
6179
- function Er(e, t) {
6198
+ var Or = (e) => e && e.charAt(0).toUpperCase() + e.slice(1);
6199
+ function kr(e, t) {
6180
6200
  let n = String(e ?? "").toUpperCase();
6181
6201
  if (t === "code") return n;
6182
6202
  let r = "";
6183
6203
  try {
6184
- r = Tr(new Intl.DisplayNames([e], { type: "language" }).of(e) ?? "");
6204
+ r = Or(new Intl.DisplayNames([e], { type: "language" }).of(e) ?? "");
6185
6205
  } catch {}
6186
6206
  return !r || r.toUpperCase() === n ? n : t === "both" ? `${n} — ${r}` : r;
6187
6207
  }
6188
- function Dr(e, t) {
6208
+ function Ar(e, t) {
6189
6209
  let n = t ? "" : `?locale=${encodeURIComponent(e)}`;
6190
6210
  if (typeof window > "u") return n || "?";
6191
6211
  try {
@@ -6195,8 +6215,8 @@ function Dr(e, t) {
6195
6215
  return n || "/";
6196
6216
  }
6197
6217
  }
6198
- function Or({ variant: e, display: t, separator: n, label: i, style: a, nodeRef: o, inert: s }) {
6199
- let c = r(Y), l = wr(c?.settings), f = l[0] ?? "", p = l.includes(c?.locale) ? c.locale : f, m = {
6218
+ function jr({ variant: e, display: t, separator: n, label: i, style: a, nodeRef: o, inert: s }) {
6219
+ let c = r(Y), l = Dr(c?.settings), f = l[0] ?? "", p = l.includes(c?.locale) ? c.locale : f, m = {
6200
6220
  display: "inline-flex",
6201
6221
  alignItems: "center",
6202
6222
  gap: 8,
@@ -6231,7 +6251,7 @@ function Or({ variant: e, display: t, separator: n, label: i, style: a, nodeRef:
6231
6251
  style: { opacity: .4 },
6232
6252
  children: n ?? "·"
6233
6253
  }), /* @__PURE__ */ u("a", {
6234
- href: Dr(e, e === f),
6254
+ href: Ar(e, e === f),
6235
6255
  hrefLang: e,
6236
6256
  "aria-current": e === p ? "true" : void 0,
6237
6257
  onClick: s ? (e) => e.preventDefault() : void 0,
@@ -6241,7 +6261,7 @@ function Or({ variant: e, display: t, separator: n, label: i, style: a, nodeRef:
6241
6261
  textDecoration: "none",
6242
6262
  cursor: s ? "default" : "pointer"
6243
6263
  },
6244
- children: Er(e, t)
6264
+ children: kr(e, t)
6245
6265
  })]
6246
6266
  }, e))]
6247
6267
  }) : /* @__PURE__ */ d("div", {
@@ -6252,7 +6272,7 @@ function Or({ variant: e, display: t, separator: n, label: i, style: a, nodeRef:
6252
6272
  value: p,
6253
6273
  onChange: s ? void 0 : (e) => {
6254
6274
  let t = e.target.value;
6255
- window.location.assign(Dr(t, t === f));
6275
+ window.location.assign(Ar(t, t === f));
6256
6276
  },
6257
6277
  onKeyDown: s ? (e) => e.preventDefault() : void 0,
6258
6278
  style: {
@@ -6266,57 +6286,57 @@ function Or({ variant: e, display: t, separator: n, label: i, style: a, nodeRef:
6266
6286
  },
6267
6287
  children: l.map((e) => /* @__PURE__ */ u("option", {
6268
6288
  value: e,
6269
- children: Er(e, t)
6289
+ children: kr(e, t)
6270
6290
  }, e))
6271
6291
  })]
6272
6292
  });
6273
6293
  }
6274
6294
  //#endregion
6275
6295
  //#region ../ui/src/components/builder/apps/index.js
6276
- var kr = [
6277
- Qn,
6278
- _r,
6279
- ur,
6280
- vr
6281
- ], Ar = {
6282
- SiteLoginForm: cr,
6283
- SiteAccountMenu: lr,
6284
- SiteLanguagePicker: Or,
6285
- CookieConsent: gr,
6286
- SiteSearch: Cr
6296
+ var Mr = [
6297
+ tr,
6298
+ br,
6299
+ pr,
6300
+ xr
6301
+ ], Nr = {
6302
+ SiteLoginForm: dr,
6303
+ SiteAccountMenu: fr,
6304
+ SiteLanguagePicker: jr,
6305
+ CookieConsent: yr,
6306
+ SiteSearch: Er
6287
6307
  };
6288
- new Set(kr.filter((e) => e.ssr === "shell").flatMap((e) => e.keys));
6308
+ new Set(Mr.filter((e) => e.ssr === "shell").flatMap((e) => e.keys));
6289
6309
  //#endregion
6290
6310
  //#region ../ui/src/components/builder/plugins/runtime.js
6291
- var jr = /* @__PURE__ */ new Map();
6292
- function Mr(e) {
6293
- if (jr.has(e)) return jr.get(e);
6311
+ var Pr = /* @__PURE__ */ new Map();
6312
+ function Fr(e) {
6313
+ if (Pr.has(e)) return Pr.get(e);
6294
6314
  let t = URL.createObjectURL(new Blob([e], { type: "text/javascript" })), n = import(
6295
6315
  /* @vite-ignore */
6296
6316
  /* webpackIgnore: true */
6297
6317
  t
6298
6318
  ).finally(() => URL.revokeObjectURL(t));
6299
- return jr.set(e, n), n;
6319
+ return Pr.set(e, n), n;
6300
6320
  }
6301
- function Nr(e) {
6321
+ function Ir(e) {
6302
6322
  let t = e && typeof e == "object" ? e.builder_plugins : null, n = t && typeof t == "object" ? t.plugins : null;
6303
6323
  return n && typeof n == "object" ? n : {};
6304
6324
  }
6305
6325
  //#endregion
6306
6326
  //#region ../ui/src/components/builder/plugins/view.jsx
6307
- async function Pr(e, t) {
6308
- let n = await Mr(e);
6327
+ async function Lr(e, t) {
6328
+ let n = await Fr(e);
6309
6329
  return (Array.isArray(n?.default?.blocks) ? n.default.blocks : []).find((e) => e?.id === t && typeof e.mount == "function") ?? null;
6310
6330
  }
6311
- var Fr = {
6331
+ var Rr = {
6312
6332
  padding: "10px 12px",
6313
6333
  border: "1px dashed rgba(148, 163, 184, 0.5)",
6314
6334
  borderRadius: 8,
6315
6335
  fontSize: 12,
6316
6336
  opacity: .6
6317
6337
  };
6318
- function Ir({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
6319
- let c = r(Y), l = Nr(c?.settings)[e], f = s(null), p = s(null), m = {
6338
+ function zr({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
6339
+ let c = r(Y), l = Ir(c?.settings)[e], f = s(null), p = s(null), m = {
6320
6340
  tenant: c?.tenant ?? "",
6321
6341
  apiUrl: c?.apiUrl ?? "/api",
6322
6342
  locale: c?.locale ?? "",
@@ -6328,7 +6348,7 @@ function Ir({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
6328
6348
  let e = f.current;
6329
6349
  if (!l?.code || !e) return;
6330
6350
  let n = !0;
6331
- return Pr(l.code, t).then((e) => {
6351
+ return Lr(l.code, t).then((e) => {
6332
6352
  if (!(!n || !e || !f.current)) {
6333
6353
  p.current = e;
6334
6354
  try {
@@ -6358,7 +6378,7 @@ function Ir({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
6358
6378
  }) : /* @__PURE__ */ d("div", {
6359
6379
  ref: o,
6360
6380
  style: {
6361
- ...Fr,
6381
+ ...Rr,
6362
6382
  ...A(a)
6363
6383
  },
6364
6384
  children: [
@@ -6370,12 +6390,12 @@ function Ir({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
6370
6390
  }
6371
6391
  //#endregion
6372
6392
  //#region ../ui/src/components/builder/render.jsx
6373
- var Lr = {
6374
- ...Zn,
6375
- ...Ar,
6376
- PluginBlock: Ir
6393
+ var Br = {
6394
+ ...er,
6395
+ ...Nr,
6396
+ PluginBlock: zr
6377
6397
  };
6378
- function Rr(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
6398
+ function Vr(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
6379
6399
  let o = n[t];
6380
6400
  if (!o || o.hidden) return null;
6381
6401
  let s = o.type?.resolvedName, c = a?.mapProps ? a.mapProps(o.props ?? {}, s) : o.props ?? {};
@@ -6383,11 +6403,11 @@ function Rr(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
6383
6403
  let n = o.props?.componentId, s = r?.[n];
6384
6404
  if (!s?.template || i.has(n)) return null;
6385
6405
  let c = new Set(i).add(n);
6386
- return /* @__PURE__ */ u(e, { children: Rr(s.template.rootId, s.template.nodes, r, c, a) }, t);
6406
+ return /* @__PURE__ */ u(e, { children: Vr(s.template.rootId, s.template.nodes, r, c, a) }, t);
6387
6407
  }
6388
- let l = Lr[s];
6408
+ let l = Br[s];
6389
6409
  if (!l) return null;
6390
- let d = (o.nodes ?? []).map((e) => Rr(e, n, r, i, a)).filter(Boolean), f = Object.entries(o.linkedNodes ?? {}), p = f.length ? Object.fromEntries(f.map(([e, t]) => [e, Rr(t, n, r, i, a)])) : void 0, m = /* @__PURE__ */ u(l, {
6410
+ let d = (o.nodes ?? []).map((e) => Vr(e, n, r, i, a)).filter(Boolean), f = Object.entries(o.linkedNodes ?? {}), p = f.length ? Object.fromEntries(f.map(([e, t]) => [e, Vr(t, n, r, i, a)])) : void 0, m = /* @__PURE__ */ u(l, {
6391
6411
  ...c,
6392
6412
  ...s === "CollectionList" ? { templateId: o.linkedNodes?.card } : null,
6393
6413
  linked: p,
@@ -6396,16 +6416,16 @@ function Rr(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
6396
6416
  },
6397
6417
  children: d.length ? d : void 0
6398
6418
  }, t);
6399
- return c.when && c.when !== "always" ? /* @__PURE__ */ u(sr, {
6419
+ return c.when && c.when !== "always" ? /* @__PURE__ */ u(ur, {
6400
6420
  when: c.when,
6401
6421
  children: m
6402
6422
  }, t) : m;
6403
6423
  }
6404
6424
  //#endregion
6405
6425
  //#region ../ui/src/components/builder/PageRenderer.jsx
6406
- var zr = (e) => Object.entries(e).map(([e, t]) => `${e}: ${t};`).join(" "), Br = (e) => `.webim-page[data-webim-mode="light"] { ${Object.entries(ue(e.light)).map(([e, t]) => `${e}: ${t} !important;`).join(" ")} }
6407
- .webim-page[data-webim-mode="dark"] { ${Object.entries(ue(e.dark)).map(([e, t]) => `${e}: ${t} !important;`).join(" ")} }`;
6408
- function Vr({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, custom: s, animations: c, tenant: l, apiUrl: f, datasets: p, locale: m, direction: h, settings: _, siteUser: v }) {
6426
+ var Hr = (e) => Object.entries(e).map(([e, t]) => `${e}: ${t};`).join(" "), Ur = (e) => `.webim-page[data-webim-mode="light"] { ${Object.entries(le(e.light)).map(([e, t]) => `${e}: ${t} !important;`).join(" ")} }
6427
+ .webim-page[data-webim-mode="dark"] { ${Object.entries(le(e.dark)).map(([e, t]) => `${e}: ${t} !important;`).join(" ")} }`;
6428
+ function Wr({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, custom: s, animations: c, tenant: l, apiUrl: f, datasets: p, locale: m, direction: h, settings: _, siteUser: v }) {
6409
6429
  let b = s?.js?.trim();
6410
6430
  if (i(() => {
6411
6431
  if (!b) return;
@@ -6419,11 +6439,11 @@ function Vr({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
6419
6439
  minHeight: "100%",
6420
6440
  display: "flex",
6421
6441
  flexDirection: "column"
6422
- }, w = Rr("ROOT", e, n), T = o(() => ({ render: (t, r) => Rr(t, e, n, void 0, { mapProps: r }) }), [e, n]), D = G(e, n), O = W(e, n), k = s?.css?.trim(), A = E(c), j = le(t), M = [j.font, j.headingFont].filter((e) => typeof e == "string" && e.trim() && e !== "inherit" && !q[e]), N = [.../* @__PURE__ */ new Set([...y(e, n), ...M])].map((e) => /* @__PURE__ */ u("link", {
6442
+ }, w = Vr("ROOT", e, n), T = o(() => ({ render: (t, r) => Vr(t, e, n, void 0, { mapProps: r }) }), [e, n]), D = K(e, n), O = G(e, n), k = s?.css?.trim(), A = E(c), j = ce(t), M = [j.font, j.headingFont].filter((e) => typeof e == "string" && e.trim() && e !== "inherit" && !J[e]), N = [.../* @__PURE__ */ new Set([...y(e, n), ...M])].map((e) => /* @__PURE__ */ u("link", {
6423
6443
  rel: "stylesheet",
6424
6444
  precedence: "default",
6425
6445
  href: g(e)
6426
- }, e)), P = Br(j);
6446
+ }, e)), P = Ur(j);
6427
6447
  return r === "auto" ? /* @__PURE__ */ u(Y.Provider, {
6428
6448
  value: {
6429
6449
  tenant: l || "",
@@ -6431,7 +6451,7 @@ function Vr({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
6431
6451
  locale: m || "",
6432
6452
  settings: _ ?? null
6433
6453
  },
6434
- children: /* @__PURE__ */ u(or, {
6454
+ children: /* @__PURE__ */ u(lr, {
6435
6455
  initialUser: v,
6436
6456
  children: /* @__PURE__ */ u(be.Provider, {
6437
6457
  value: p ?? null,
@@ -6442,12 +6462,12 @@ function Vr({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
6442
6462
  className: "webim-page",
6443
6463
  style: {
6444
6464
  ...C,
6445
- ...de(t),
6465
+ ...ue(t),
6446
6466
  ...a
6447
6467
  },
6448
6468
  children: [
6449
- /* @__PURE__ */ u("style", { children: `.webim-page { ${zr(ue(j.light))} }
6450
- @media (prefers-color-scheme: dark) { .webim-page { ${zr(ue(j.dark))} } }` }),
6469
+ /* @__PURE__ */ u("style", { children: `.webim-page { ${Hr(le(j.light))} }
6470
+ @media (prefers-color-scheme: dark) { .webim-page { ${Hr(le(j.dark))} } }` }),
6451
6471
  /* @__PURE__ */ u("style", { children: P }),
6452
6472
  N,
6453
6473
  /* @__PURE__ */ u("style", { children: S }),
@@ -6467,7 +6487,7 @@ function Vr({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
6467
6487
  locale: m || "",
6468
6488
  settings: _ ?? null
6469
6489
  },
6470
- children: /* @__PURE__ */ u(or, {
6490
+ children: /* @__PURE__ */ u(lr, {
6471
6491
  initialUser: v,
6472
6492
  children: /* @__PURE__ */ u(be.Provider, {
6473
6493
  value: p ?? null,
@@ -6478,7 +6498,7 @@ function Vr({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
6478
6498
  className: "webim-page",
6479
6499
  style: {
6480
6500
  ...C,
6481
- ...fe(t, r),
6501
+ ...de(t, r),
6482
6502
  ...a
6483
6503
  },
6484
6504
  children: [
@@ -6500,8 +6520,8 @@ function Vr({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
6500
6520
  }
6501
6521
  //#endregion
6502
6522
  //#region src/WebimContent.jsx
6503
- function Hr({ bundle: e, mode: t = "auto", style: n }) {
6504
- return e?.blocks?.ROOT ? /* @__PURE__ */ u(Vr, {
6523
+ function Gr({ bundle: e, mode: t = "auto", style: n }) {
6524
+ return e?.blocks?.ROOT ? /* @__PURE__ */ u(Wr, {
6505
6525
  blocks: e.blocks,
6506
6526
  theme: e.theme,
6507
6527
  components: e.components,
@@ -6519,7 +6539,7 @@ function Hr({ bundle: e, mode: t = "auto", style: n }) {
6519
6539
  }
6520
6540
  //#endregion
6521
6541
  //#region src/WebimPage.jsx
6522
- function Ur({ 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 }) {
6542
+ function Kr({ 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 }) {
6523
6543
  let [g, _] = c({ status: "loading" }), v = s({
6524
6544
  onLoad: m,
6525
6545
  onError: h
@@ -6556,11 +6576,11 @@ function Ur({ apiUrl: e, tenant: t, slug: n, locale: r, preview: a, token: o, mo
6556
6576
  r,
6557
6577
  a,
6558
6578
  o
6559
- ]), g.status === "loading" ? f : g.status === "error" ? typeof p == "function" ? p(g.error) : p : /* @__PURE__ */ u(Hr, {
6579
+ ]), g.status === "loading" ? f : g.status === "error" ? typeof p == "function" ? p(g.error) : p : /* @__PURE__ */ u(Gr, {
6560
6580
  bundle: g.bundle,
6561
6581
  mode: l,
6562
6582
  style: d
6563
6583
  });
6564
6584
  }
6565
6585
  //#endregion
6566
- export { Vr as PageRenderer, Hr as WebimContent, Ur as WebimPage, ge as fetchPage, We as renderRichContent, J as resolveTheme };
6586
+ export { Wr as PageRenderer, Gr as WebimContent, Kr as WebimPage, ge as fetchPage, qe as renderRichContent, fe as resolveTheme };