@charisol/plexo-sdk 1.1.13 → 1.1.14

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.
Files changed (50) hide show
  1. package/dist/{compiler-BgBUwMe0.js → compiler-1K7XytEa.js} +116 -146
  2. package/dist/compiler.js +1 -1
  3. package/dist/compilerClient.js +94 -72
  4. package/dist/{iconSvgStatic-D5PrYZfC.js → iconSvgStatic-CUYMC8Am.js} +247 -145
  5. package/dist/index.js +2 -2
  6. package/dist/social-icons/applemusic.png +0 -0
  7. package/dist/social-icons/applepodcasts.png +0 -0
  8. package/dist/social-icons/behance.png +0 -0
  9. package/dist/social-icons/bluesky.png +0 -0
  10. package/dist/social-icons/buymeacoffee.png +0 -0
  11. package/dist/social-icons/clubhouse.png +0 -0
  12. package/dist/social-icons/discord.png +0 -0
  13. package/dist/social-icons/dribbble.png +0 -0
  14. package/dist/social-icons/facebook.png +0 -0
  15. package/dist/social-icons/fallback.png +0 -0
  16. package/dist/social-icons/goodreads.png +0 -0
  17. package/dist/social-icons/instagram.png +0 -0
  18. package/dist/social-icons/kakaotalk.png +0 -0
  19. package/dist/social-icons/kofi.png +0 -0
  20. package/dist/social-icons/line.png +0 -0
  21. package/dist/social-icons/linkedin.png +0 -0
  22. package/dist/social-icons/mastodon.png +0 -0
  23. package/dist/social-icons/messenger.png +0 -0
  24. package/dist/social-icons/patreon.png +0 -0
  25. package/dist/social-icons/pinterest.png +0 -0
  26. package/dist/social-icons/producthunt.png +0 -0
  27. package/dist/social-icons/quora.png +0 -0
  28. package/dist/social-icons/reddit.png +0 -0
  29. package/dist/social-icons/signal.png +0 -0
  30. package/dist/social-icons/snapchat.png +0 -0
  31. package/dist/social-icons/soundcloud.png +0 -0
  32. package/dist/social-icons/spotify.png +0 -0
  33. package/dist/social-icons/substack.png +0 -0
  34. package/dist/social-icons/telegram.png +0 -0
  35. package/dist/social-icons/threads.png +0 -0
  36. package/dist/social-icons/tiktok.png +0 -0
  37. package/dist/social-icons/tripadvisor.png +0 -0
  38. package/dist/social-icons/tumblr.png +0 -0
  39. package/dist/social-icons/twitch.png +0 -0
  40. package/dist/social-icons/viber.png +0 -0
  41. package/dist/social-icons/vimeo.png +0 -0
  42. package/dist/social-icons/vk.png +0 -0
  43. package/dist/social-icons/wechat.png +0 -0
  44. package/dist/social-icons/whatsapp.png +0 -0
  45. package/dist/social-icons/x.png +0 -0
  46. package/dist/social-icons/yelp.png +0 -0
  47. package/dist/social-icons/youtube.png +0 -0
  48. package/dist/utilities/playground.constants.d.ts +1 -0
  49. package/dist/utilities/socialBrandIcons.d.ts +9 -6
  50. package/package.json +6 -3
@@ -1,6 +1,6 @@
1
- import { a as e, b as t, c as n, d as r, f as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m } from "./iconSvgStatic-D5PrYZfC.js";
1
+ import { a as e, b as t, c as n, d as r, f as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, v as h } from "./iconSvgStatic-CUYMC8Am.js";
2
2
  //#region src/utilities/playground.constants.ts
3
- var h = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, g = [
3
+ var g = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, _ = [
4
4
  {
5
5
  id: "all",
6
6
  label: "All sources"
@@ -17,7 +17,7 @@ var h = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, g
17
17
  id: "pixabay",
18
18
  label: "Pixabay"
19
19
  }
20
- ], _ = [
20
+ ], v = [
21
21
  {
22
22
  id: "surface-book",
23
23
  label: "Surface Book",
@@ -84,40 +84,10 @@ var h = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, g
84
84
  width: 375,
85
85
  category: "mobile"
86
86
  }
87
- ], v = 1280, y = [
88
- {
89
- id: "facebook",
90
- label: "Facebook"
91
- },
92
- {
93
- id: "instagram",
94
- label: "Instagram"
95
- },
96
- {
97
- id: "linkedin",
98
- label: "LinkedIn"
99
- },
100
- {
101
- id: "x",
102
- label: "X"
103
- },
104
- {
105
- id: "youtube",
106
- label: "YouTube"
107
- },
108
- {
109
- id: "pinterest",
110
- label: "Pinterest"
111
- },
112
- {
113
- id: "whatsapp",
114
- label: "WhatsApp"
115
- },
116
- {
117
- id: "tiktok",
118
- label: "TikTok"
119
- }
120
- ], b = [
87
+ ], y = 1280, b = Object.entries(h).map(([e, t]) => ({
88
+ id: e,
89
+ label: t.label
90
+ })), x = [
121
91
  {
122
92
  label: "Text",
123
93
  value: "text"
@@ -150,7 +120,7 @@ var h = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, g
150
120
  label: "Checkbox",
151
121
  value: "checkbox"
152
122
  }
153
- ], x = [
123
+ ], S = [
154
124
  {
155
125
  label: "1 Column",
156
126
  widths: ["100%"],
@@ -199,7 +169,7 @@ var h = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, g
199
169
  "25%"
200
170
  ]
201
171
  }
202
- ], S = [
172
+ ], C = [
203
173
  {
204
174
  label: "Roboto",
205
175
  value: "'Roboto', sans-serif",
@@ -600,8 +570,8 @@ var h = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, g
600
570
  value: "'Great Vibes', cursive",
601
571
  style: "handwriting"
602
572
  }
603
- ], C = new Map(S.map((e) => [e.value, e.label]));
604
- function w(e, t = []) {
573
+ ], w = new Map(C.map((e) => [e.value, e.label]));
574
+ function T(e, t = []) {
605
575
  let n = /* @__PURE__ */ new Set(), r = (e) => {
606
576
  if (!e) return;
607
577
  let t = Array.isArray(e.columns) ? e.columns : [];
@@ -619,17 +589,17 @@ function w(e, t = []) {
619
589
  for (let e of t) typeof e == "string" && e.trim() && n.add(e.trim());
620
590
  return n;
621
591
  }
622
- function T(e) {
592
+ function E(e) {
623
593
  let t = /* @__PURE__ */ new Set();
624
594
  for (let n of e) {
625
- let e = C.get(n);
595
+ let e = w.get(n);
626
596
  e && t.add(e);
627
597
  }
628
598
  return t.size === 0 ? null : `https://fonts.googleapis.com/css?family=${Array.from(t).map((e) => `${encodeURIComponent(e).replace(/%20/g, "+")}:400,700`).join("|")}&display=swap`;
629
599
  }
630
600
  //#endregion
631
601
  //#region src/utilities/responsiveDefaults.ts
632
- var ee = {
602
+ var D = {
633
603
  tablet: {
634
604
  thresholdPx: 24,
635
605
  scale: .85,
@@ -640,7 +610,7 @@ var ee = {
640
610
  scale: .7,
641
611
  floorPx: 14
642
612
  }
643
- }, te = {
613
+ }, ee = {
644
614
  tablet: {
645
615
  thresholdPx: 320,
646
616
  scale: .8,
@@ -651,7 +621,7 @@ var ee = {
651
621
  scale: .55,
652
622
  floorPx: 140
653
623
  }
654
- }, E = {
624
+ }, O = {
655
625
  tablet: {
656
626
  thresholdPx: 48,
657
627
  scale: .75,
@@ -662,7 +632,7 @@ var ee = {
662
632
  scale: .55,
663
633
  floorPx: 16
664
634
  }
665
- }, D = {
635
+ }, k = {
666
636
  tablet: {
667
637
  thresholdPx: 500,
668
638
  scale: 1,
@@ -673,11 +643,11 @@ var ee = {
673
643
  scale: 1,
674
644
  floorPx: 0
675
645
  }
676
- }, O = ["fontSize"], k = [
646
+ }, A = ["fontSize"], j = [
677
647
  "height",
678
648
  "minHeight",
679
649
  "maxHeight"
680
- ], A = [
650
+ ], M = [
681
651
  "padding",
682
652
  "paddingTop",
683
653
  "paddingBottom",
@@ -686,8 +656,8 @@ var ee = {
686
656
  "margin",
687
657
  "marginTop",
688
658
  "marginBottom"
689
- ], j = ["width", "maxWidth"];
690
- function M(e) {
659
+ ], N = ["width", "maxWidth"];
660
+ function P(e) {
691
661
  if (typeof e == "number" && Number.isFinite(e)) return e;
692
662
  if (typeof e != "string") return null;
693
663
  let t = e.trim().match(/^(-?\d+(?:\.\d+)?)px$/);
@@ -695,48 +665,48 @@ function M(e) {
695
665
  let n = parseFloat(t[1]);
696
666
  return Number.isFinite(n) ? n : null;
697
667
  }
698
- function N(e, t) {
668
+ function F(e, t) {
699
669
  return e < t.thresholdPx ? null : Math.max(Math.round(e * t.scale), t.floorPx);
700
670
  }
701
- function P(e, t) {
671
+ function I(e, t) {
702
672
  if (!e || typeof e != "object") return {};
703
673
  let n = {};
704
- for (let r of O) {
705
- let i = M(e[r]);
674
+ for (let r of A) {
675
+ let i = P(e[r]);
706
676
  if (i === null) continue;
707
- let a = N(i, ee[t]);
677
+ let a = F(i, D[t]);
708
678
  a !== null && (n[r] = `${a}px`);
709
679
  }
710
- for (let r of k) {
711
- let i = M(e[r]);
680
+ for (let r of j) {
681
+ let i = P(e[r]);
712
682
  if (i === null) continue;
713
- let a = N(i, te[t]);
683
+ let a = F(i, ee[t]);
714
684
  a !== null && (n[r] = `${a}px`);
715
685
  }
716
- for (let r of A) {
717
- let i = M(e[r]);
686
+ for (let r of M) {
687
+ let i = P(e[r]);
718
688
  if (i === null) continue;
719
- let a = N(i, E[t]);
689
+ let a = F(i, O[t]);
720
690
  a !== null && (n[r] = `${a}px`);
721
691
  }
722
- for (let r of j) {
723
- let i = M(e[r]);
724
- i !== null && i >= D[t].thresholdPx && (n[r] = "100%");
692
+ for (let r of N) {
693
+ let i = P(e[r]);
694
+ i !== null && i >= k[t].thresholdPx && (n[r] = "100%");
725
695
  }
726
696
  return n;
727
697
  }
728
- function F(e, t, n) {
698
+ function L(e, t, n) {
729
699
  let r = e || {};
730
700
  return n ? {
731
701
  ...r,
732
- ...P(r, n),
702
+ ...I(r, n),
733
703
  ...t || {}
734
704
  } : r;
735
705
  }
736
706
  //#endregion
737
707
  //#region src/utilities/compiler.ts
738
- var I = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif";
739
- function L(e) {
708
+ var R = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif";
709
+ function z(e) {
740
710
  if (!e || typeof e != "object") return null;
741
711
  if (Array.isArray(e.columns) && e.columns.length > 0) return e;
742
712
  let t = (e.type || "").toLowerCase(), n = e.props || e.content || e.attributes || e.data || e.payload || e, r = e.style || {};
@@ -990,7 +960,7 @@ function L(e) {
990
960
  }
991
961
  }
992
962
  }
993
- var R = (e = {}) => !e || typeof e != "object" ? "" : Object.entries(e).filter(([e, t]) => t != null && t !== "").map(([e, t]) => {
963
+ var B = (e = {}) => !e || typeof e != "object" ? "" : Object.entries(e).filter(([e, t]) => t != null && t !== "").map(([e, t]) => {
994
964
  let n = e.replace(/([A-Z])/g, "-$1").toLowerCase(), r = t;
995
965
  return typeof t == "number" && [
996
966
  "padding",
@@ -1001,25 +971,25 @@ var R = (e = {}) => !e || typeof e != "object" ? "" : Object.entries(e).filter((
1001
971
  "width",
1002
972
  "height"
1003
973
  ].some((t) => e.toLowerCase().includes(t)) && (r = `${t}px`), `${n}: ${r};`;
1004
- }).join(" "), z = (e = {}) => R(e).replace(/;(\s|$)/g, " !important;$1");
1005
- function B(e) {
974
+ }).join(" "), V = (e = {}) => B(e).replace(/;(\s|$)/g, " !important;$1");
975
+ function H(e) {
1006
976
  if (typeof e != "string") return !1;
1007
977
  let t = e.toLowerCase();
1008
978
  return t.includes("javascript:") || t.includes("vbscript:") || t.includes("expression") || t.includes("url(") || t.includes("@import") || t.includes("-moz-binding") || t.includes("behavior") || t.includes("</style") || /\\/.test(e);
1009
979
  }
1010
- function V(e, t, n, r, i) {
980
+ function U(e, t, n, r, i) {
1011
981
  let a = {
1012
- ...P(n, r),
982
+ ...I(n, r),
1013
983
  ...i || {}
1014
984
  };
1015
- for (let e of Object.keys(a)) B(a[e]) && delete a[e];
985
+ for (let e of Object.keys(a)) H(a[e]) && delete a[e];
1016
986
  if (Object.keys(a).length === 0) return;
1017
- let o = z(a);
987
+ let o = V(a);
1018
988
  if (!o) return;
1019
989
  let s = String(t).replace(/["\\]/g, "");
1020
990
  e[r].push(`[data-plexo-id="${s}"] { ${o} }`);
1021
991
  }
1022
- function H(e, t) {
992
+ function W(e, t) {
1023
993
  if (e.type !== "menu" || !t || t.textAlign === void 0) return t;
1024
994
  let n = t.textAlign === "center" ? "center" : t.textAlign === "right" ? "flex-end" : "flex-start";
1025
995
  return {
@@ -1027,7 +997,7 @@ function H(e, t) {
1027
997
  justifyContent: n
1028
998
  };
1029
999
  }
1030
- var U = () => ({
1000
+ var G = () => ({
1031
1001
  backgroundColor: "#ffffff",
1032
1002
  borderRadius: "20px",
1033
1003
  width: "100%",
@@ -1050,11 +1020,11 @@ var U = () => ({
1050
1020
  buttonPaddingRight: "14px",
1051
1021
  buttonFontSize: "13px",
1052
1022
  buttonFontWeight: "700"
1053
- }), W = (e) => (e || "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), G = (e, t) => {
1023
+ }), K = (e) => (e || "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), q = (e, t) => {
1054
1024
  if (typeof t != "string") return "";
1055
1025
  let n = t.trim();
1056
- return n ? ` ${e}="${W(n)}"` : "";
1057
- }, K = [
1026
+ return n ? ` ${e}="${K(n)}"` : "";
1027
+ }, J = [
1058
1028
  "fieldSpacing",
1059
1029
  "buttonBackgroundColor",
1060
1030
  "buttonTextColor",
@@ -1074,9 +1044,9 @@ var U = () => ({
1074
1044
  "buttonWidth",
1075
1045
  "buttonHeight",
1076
1046
  "buttonAlign"
1077
- ], q = (e) => {
1047
+ ], Y = (e) => {
1078
1048
  if (!e || typeof e != "object") return "";
1079
- let t = e.kind || "text", n = W(e.name || e.label || "field"), r = e.required ? " required" : "", i = R({
1049
+ let t = e.kind || "text", n = K(e.name || e.label || "field"), r = e.required ? " required" : "", i = B({
1080
1050
  fontSize: e.fontSize || "13px",
1081
1051
  borderRadius: e.borderRadius || "12px",
1082
1052
  borderWidth: e.borderWidth || "1px",
@@ -1084,19 +1054,19 @@ var U = () => ({
1084
1054
  borderStyle: "solid",
1085
1055
  color: e.inputTextColor
1086
1056
  }), a = e.showLabel === !1 ? "" : `<label style="display: block; margin-bottom: 4px; font-size: ${e.fontSize || "12px"}; font-weight: ${e.labelFontWeight || "700"}; color: ${e.labelColor || "inherit"};">${e.label || ""}${e.required ? " <span style=\"color:#e11d48;\">*</span>" : ""}</label>`;
1087
- return t === "textarea" ? `${a}<textarea name="${n}" placeholder="${W(e.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r}></textarea>` : t === "select" ? `${a}<select name="${n}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r}>${(Array.isArray(e.options) ? e.options : []).map((e) => `<option value="${W(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>` : t === "radio" || t === "checkbox" ? `${a}<div style="display: flex; flex-wrap: wrap; gap: 8px;">${(Array.isArray(e.options) && e.options.length > 0 ? e.options : [{
1057
+ return t === "textarea" ? `${a}<textarea name="${n}" placeholder="${K(e.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r}></textarea>` : t === "select" ? `${a}<select name="${n}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r}>${(Array.isArray(e.options) ? e.options : []).map((e) => `<option value="${K(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>` : t === "radio" || t === "checkbox" ? `${a}<div style="display: flex; flex-wrap: wrap; gap: 8px;">${(Array.isArray(e.options) && e.options.length > 0 ? e.options : [{
1088
1058
  label: e.label || "Option",
1089
1059
  value: e.name || "option"
1090
- }]).map((r) => `<label style="display: inline-flex; align-items: center; gap: 6px; font-size: ${e.fontSize || "12px"};"><input type="${t}" name="${n}" value="${W(r?.value ?? "")}" />${r?.label ?? r?.value ?? ""}</label>`).join("")}</div>` : `${a}<input type="${W(t)}" name="${n}" placeholder="${W(e.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r} />`;
1060
+ }]).map((r) => `<label style="display: inline-flex; align-items: center; gap: 6px; font-size: ${e.fontSize || "12px"};"><input type="${t}" name="${n}" value="${K(r?.value ?? "")}" />${r?.label ?? r?.value ?? ""}</label>`).join("")}</div>` : `${a}<input type="${K(t)}" name="${n}" placeholder="${K(e.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r} />`;
1091
1061
  };
1092
- function J(e, t, n) {
1062
+ function X(e, t, n) {
1093
1063
  if (e === "none") return "";
1094
- let r = W(t);
1064
+ let r = K(t);
1095
1065
  return e === "plus" ? `<span data-acc-icon style="font-size: 14px; line-height: 1; font-weight: 700; color: ${r};">${n ? "−" : "+"}</span>` : e === "arrow" ? `<span data-acc-icon style="font-size: 14px; line-height: 1; display: inline-block; color: ${r}; transform: ${n ? "rotate(90deg)" : "none"}; transition: transform 0.2s ease;">›</span>` : `<svg data-acc-icon width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="${r}" stroke-width="2.5" style="flex-shrink: 0; transform: ${n ? "rotate(180deg)" : "none"}; transition: transform 0.2s ease;"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"/></svg>`;
1096
1066
  }
1097
- function Y(e, t, n) {
1067
+ function Z(e, t, n) {
1098
1068
  return e.map((r, i) => {
1099
- let a = i === e.length - 1, o = R({ borderBottom: n.showDividers && !a ? `1px solid ${t.dividerColor || "#e2e8f0"}` : void 0 }), s = R({
1069
+ let a = i === e.length - 1, o = B({ borderBottom: n.showDividers && !a ? `1px solid ${t.dividerColor || "#e2e8f0"}` : void 0 }), s = B({
1100
1070
  display: "flex",
1101
1071
  alignItems: "center",
1102
1072
  gap: "8px",
@@ -1113,35 +1083,35 @@ function Y(e, t, n) {
1113
1083
  border: "none",
1114
1084
  font: "inherit",
1115
1085
  background: void 0
1116
- }), c = R({
1086
+ }), c = B({
1117
1087
  display: "grid",
1118
1088
  gridTemplateRows: r.defaultOpen ? "1fr" : "0fr",
1119
1089
  transition: n.animated ? "grid-template-rows 0.25s ease" : void 0,
1120
1090
  backgroundColor: t.contentBackgroundColor || "#ffffff"
1121
- }), l = R({
1091
+ }), l = B({
1122
1092
  padding: t.contentPadding || "14px",
1123
1093
  color: t.contentTextColor || "#475569",
1124
1094
  fontSize: t.contentFontSize || "13px",
1125
1095
  whiteSpace: "pre-wrap"
1126
- }), u = J(n.iconStyle, t.iconColor || "#64748b", !!r.defaultOpen), d = W(r.title), f = W(r.content), p = r.children.length ? `<div class="plexo-acc-group" style="margin-top: 10px;">${Y(r.children, t, n)}</div>` : "";
1096
+ }), u = X(n.iconStyle, t.iconColor || "#64748b", !!r.defaultOpen), d = K(r.title), f = K(r.content), p = r.children.length ? `<div class="plexo-acc-group" style="margin-top: 10px;">${Z(r.children, t, n)}</div>` : "";
1127
1097
  return `<div class="plexo-acc-item" style="${o}"><button type="button" data-acc-header data-acc-open="${r.defaultOpen ? "1" : "0"}" style="${s}"><span style="flex: 1;">${d}</span>${u}</button><div data-acc-panel style="${c}"><div style="overflow: hidden;"><div style="${l}">${f}${p}</div></div></div></div>`;
1128
1098
  }).join("");
1129
1099
  }
1130
- function X(e) {
1100
+ function te(e) {
1131
1101
  return `<!-- Unsupported block ${String(e)} -->`;
1132
1102
  }
1133
- var Z = (t) => {
1103
+ var ne = (t) => {
1134
1104
  if (!t || typeof t != "object") return "";
1135
- let h = t.style || {}, g = R(t.type === "form_container" ? {
1136
- ...U(),
1105
+ let h = t.style || {}, g = B(t.type === "form_container" ? {
1106
+ ...G(),
1137
1107
  ...h
1138
- } : h), _ = t.attributes || {}, v = ` data-plexo-id="${W(t.id)}"`;
1108
+ } : h), _ = t.attributes || {}, v = ` data-plexo-id="${K(t.id)}"`;
1139
1109
  switch (t.type) {
1140
1110
  case "heading": return `<h2${v} style="margin-top: 0; margin-bottom: 8px; ${g}">${_.text || "Heading"}</h2>`;
1141
1111
  case "paragraph": return `<p${v} style="margin-top: 0; margin-bottom: 12px; ${g}">${_.text || "Paragraph text content."}</p>`;
1142
1112
  case "text": return `<div${v} style="${g}">${_.text || ""}</div>`;
1143
1113
  case "button": {
1144
- let n = e(t), r = R({
1114
+ let n = e(t), r = B({
1145
1115
  ...h,
1146
1116
  width: n.width,
1147
1117
  height: n.height
@@ -1149,7 +1119,7 @@ var Z = (t) => {
1149
1119
  return `<div style="text-align: ${h.textAlign || "center"};"><a${v} href="${_.href || "#"}" target="${_.openInNewTab ? "_blank" : "_self"}" style="display: inline-block; text-decoration: none; ${r}">${_.text || "Button"}</a></div>`;
1150
1120
  }
1151
1121
  case "image": {
1152
- let e = s(t), n = h.textAlign === "center" ? "margin: 0 auto; display: block;" : h.textAlign === "right" ? "margin-left: auto; display: block;" : "display: inline-block;", r = R({
1122
+ let e = s(t), n = h.textAlign === "center" ? "margin: 0 auto; display: block;" : h.textAlign === "right" ? "margin-left: auto; display: block;" : "display: inline-block;", r = B({
1153
1123
  ...h,
1154
1124
  width: e.width,
1155
1125
  height: e.height
@@ -1164,12 +1134,12 @@ var Z = (t) => {
1164
1134
  </div>`;
1165
1135
  case "form_container": {
1166
1136
  let e = {
1167
- ...U(),
1137
+ ...G(),
1168
1138
  ...h
1169
1139
  }, n = {};
1170
- for (let t of Object.keys(e)) K.includes(t) || (n[t] = e[t]);
1140
+ for (let t of Object.keys(e)) J.includes(t) || (n[t] = e[t]);
1171
1141
  n.height = u(t);
1172
- let r = R(n), i = p(Array.isArray(_.fields) ? _.fields : []), a = e.fieldSpacing || "12px", s = i.map((e) => `<div style="margin-bottom: ${a};">${q(e)}</div>`).join(""), c = _.buttonAutoWidth === !1 ? e.buttonWidth || "100%" : "auto", l = e.buttonAlign === "left" ? "flex-start" : e.buttonAlign === "right" ? "flex-end" : "center", d = _.buttonAutoHeight === !1 && e.buttonHeight || "auto", f = R({
1142
+ let r = B(n), i = p(Array.isArray(_.fields) ? _.fields : []), a = e.fieldSpacing || "12px", s = i.map((e) => `<div style="margin-bottom: ${a};">${Y(e)}</div>`).join(""), c = _.buttonAutoWidth === !1 ? e.buttonWidth || "100%" : "auto", l = e.buttonAlign === "left" ? "flex-start" : e.buttonAlign === "right" ? "flex-end" : "center", d = _.buttonAutoHeight === !1 && e.buttonHeight || "auto", f = B({
1173
1143
  backgroundColor: e.buttonBackgroundColor,
1174
1144
  color: e.buttonTextColor,
1175
1145
  borderRadius: e.buttonBorderRadius,
@@ -1186,15 +1156,15 @@ var Z = (t) => {
1186
1156
  width: c,
1187
1157
  height: d
1188
1158
  });
1189
- return `<form${v} action="${W(_.actionUrl || _.action || "#")}" method="${W(_.method || "POST")}" style="${r}">${s}<div style="display: flex; width: 100%; justify-content: ${l};"><button type="submit" style="border: 0; cursor: pointer; ${f}">${_.submitLabel || "Submit"}</button></div></form>`;
1159
+ return `<form${v} action="${K(_.actionUrl || _.action || "#")}" method="${K(_.method || "POST")}" style="${r}">${s}<div style="display: flex; width: 100%; justify-content: ${l};"><button type="submit" style="border: 0; cursor: pointer; ${f}">${_.submitLabel || "Submit"}</button></div></form>`;
1190
1160
  }
1191
1161
  case "input": {
1192
- let e = _.inputType || _.type || "text", t = W(_.name || _.fieldName || "field"), n = W(_.placeholder || ""), r = _.required ? " required" : "";
1193
- return `<input${v} type="${W(e)}" name="${t}" placeholder="${n}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${g}"${r} />`;
1162
+ let e = _.inputType || _.type || "text", t = K(_.name || _.fieldName || "field"), n = K(_.placeholder || ""), r = _.required ? " required" : "";
1163
+ return `<input${v} type="${K(e)}" name="${t}" placeholder="${n}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${g}"${r} />`;
1194
1164
  }
1195
- case "textarea": return `<textarea${v} name="${W(_.name || _.fieldName || "field")}" placeholder="${W(_.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${g}"${_.required ? " required" : ""}></textarea>`;
1196
- case "select": return `<select${v} name="${W(_.name || _.fieldName || "field")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${g}"${_.required ? " required" : ""}>${(Array.isArray(_.options) ? _.options : []).map((e) => `<option value="${W(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>`;
1197
- case "html": return `<div${v} style="${R({
1165
+ case "textarea": return `<textarea${v} name="${K(_.name || _.fieldName || "field")}" placeholder="${K(_.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${g}"${_.required ? " required" : ""}></textarea>`;
1166
+ case "select": return `<select${v} name="${K(_.name || _.fieldName || "field")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${g}"${_.required ? " required" : ""}>${(Array.isArray(_.options) ? _.options : []).map((e) => `<option value="${K(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>`;
1167
+ case "html": return `<div${v} style="${B({
1198
1168
  ...h,
1199
1169
  height: n(t, "auto")
1200
1170
  })}">${_.htmlContent || _.text || ""}</div>`;
@@ -1206,12 +1176,12 @@ var Z = (t) => {
1206
1176
  case "blog_categories":
1207
1177
  case "blog_comments":
1208
1178
  case "blog_post_list": {
1209
- let e = t.type.replace(/^blog_/, "").replace(/_([a-z])/g, (e, t) => t.toUpperCase()), n = R(h);
1210
- return `<div${v} data-plexo-blog-${e}="true"${G("data-plexo-blog-prefix", _.prefix)} style="${n}"></div>`;
1179
+ let e = t.type.replace(/^blog_/, "").replace(/_([a-z])/g, (e, t) => t.toUpperCase()), n = B(h);
1180
+ return `<div${v} data-plexo-blog-${e}="true"${q("data-plexo-blog-prefix", _.prefix)} style="${n}"></div>`;
1211
1181
  }
1212
1182
  case "social": {
1213
1183
  let e = i(t), n = h.textAlign === "center" ? "center" : h.textAlign === "right" ? "flex-end" : "flex-start";
1214
- return `<div${v} style="${R({
1184
+ return `<div${v} style="${B({
1215
1185
  padding: h.padding,
1216
1186
  margin: h.margin,
1217
1187
  display: "flex",
@@ -1219,7 +1189,7 @@ var Z = (t) => {
1219
1189
  gap: h.iconSpacing || "8px",
1220
1190
  justifyContent: n
1221
1191
  })}">${e.map((e) => {
1222
- let t = R({
1192
+ let t = B({
1223
1193
  width: e.size,
1224
1194
  height: e.size,
1225
1195
  padding: "8px",
@@ -1231,33 +1201,33 @@ var Z = (t) => {
1231
1201
  justifyContent: "center",
1232
1202
  overflow: "hidden"
1233
1203
  });
1234
- return `<a href="${W(e.url)}" style="${t} text-decoration: none;">${l(e.provider, e.color)}</a>`;
1204
+ return `<a href="${K(e.url)}" style="${t} text-decoration: none;">${l(e.provider, e.color)}</a>`;
1235
1205
  }).join("")}</div>`;
1236
1206
  }
1237
1207
  case "menu": {
1238
1208
  let e = r(t), n = h.textAlign === "center" ? "center" : h.textAlign === "right" ? "flex-end" : "flex-start";
1239
- return `<div${v} style="${R({
1209
+ return `<div${v} style="${B({
1240
1210
  ...h,
1241
1211
  display: "flex",
1242
1212
  flexWrap: "wrap",
1243
1213
  gap: "16px",
1244
1214
  justifyContent: n
1245
- })}">${e.map((e) => `<a href="${W(e.href)}" style="text-decoration: none; color: inherit; font-weight: ${h.fontWeight || 600};">${W(e.label)}</a>`).join("")}</div>`;
1215
+ })}">${e.map((e) => `<a href="${K(e.href)}" style="text-decoration: none; color: inherit; font-weight: ${h.fontWeight || 600};">${K(e.label)}</a>`).join("")}</div>`;
1246
1216
  }
1247
1217
  case "icon": {
1248
- let e = h.fontSize || `${_.iconSize || 48}px`, t = h.color || "#1e293b", n = parseInt(String(e), 10) || 48, r = m(_.iconName, n, t), i = h.textAlign === "right" ? "flex-end" : h.textAlign === "left" ? "flex-start" : "center", a = R({
1218
+ let e = h.fontSize || `${_.iconSize || 48}px`, t = h.color || "#1e293b", n = parseInt(String(e), 10) || 48, r = m(_.iconName, n, t), i = h.textAlign === "right" ? "flex-end" : h.textAlign === "left" ? "flex-start" : "center", a = B({
1249
1219
  padding: h.padding,
1250
1220
  margin: h.margin,
1251
1221
  display: "flex",
1252
1222
  justifyContent: i
1253
1223
  }), o = typeof _.href == "string" ? _.href.trim() : "", s = `<span style="display: inline-flex; align-items: center; justify-content: center; color: ${t};">${r}</span>`;
1254
- return `<div style="${a}">${o ? `<a${v} href="${W(o)}" target="${_.openInNewTab ? "_blank" : "_self"}" style="text-decoration: none;">${s}</a>` : `<span${v}>${s}</span>`}</div>`;
1224
+ return `<div style="${a}">${o ? `<a${v} href="${K(o)}" target="${_.openInNewTab ? "_blank" : "_self"}" style="text-decoration: none;">${s}</a>` : `<span${v}>${s}</span>`}</div>`;
1255
1225
  }
1256
1226
  case "table": {
1257
1227
  let e = d(t), n = `${h.borderWidth || "1px"} ${h.borderStyle || "solid"} ${h.borderColor || "#cbd5e1"}`, r = (t, r, i) => {
1258
1228
  let a = i ? "th" : "td", o = i ? h.headerBgColor || "#f8fafc" : e.striped && r % 2 == 1 ? "#f8fafc" : h.contentBgColor || "#ffffff", s = i ? h.headerTextColor || "#1e293b" : h.contentTextColor || "#475569", c = i ? h.headerTextAlign || "left" : h.contentTextAlign || "left";
1259
1229
  return `<tr>${t.map((e) => {
1260
- let t = R({
1230
+ let t = B({
1261
1231
  padding: h.cellPadding || "8px",
1262
1232
  border: n,
1263
1233
  backgroundColor: o,
@@ -1269,11 +1239,11 @@ var Z = (t) => {
1269
1239
  });
1270
1240
  return `<${a} style="${t}">${e || "&nbsp;"}</${a}>`;
1271
1241
  }).join("")}</tr>`;
1272
- }, i = e.enableHeader && e.cells.length > 0 ? `<thead>${r(e.cells[0], 0, !0)}</thead>` : "", a = +!!e.enableHeader, o = e.enableFooter ? e.cells.length - 1 : e.cells.length, s = e.cells.slice(a, Math.max(a, o)).map((e, t) => r(e, t, !1)).join(""), c = e.enableFooter && e.cells.length > a ? `<tfoot>${r(e.cells[e.cells.length - 1], e.cells.length - 1, !1)}</tfoot>` : "", l = R({
1242
+ }, i = e.enableHeader && e.cells.length > 0 ? `<thead>${r(e.cells[0], 0, !0)}</thead>` : "", a = +!!e.enableHeader, o = e.enableFooter ? e.cells.length - 1 : e.cells.length, s = e.cells.slice(a, Math.max(a, o)).map((e, t) => r(e, t, !1)).join(""), c = e.enableFooter && e.cells.length > a ? `<tfoot>${r(e.cells[e.cells.length - 1], e.cells.length - 1, !1)}</tfoot>` : "", l = B({
1273
1243
  borderCollapse: "collapse",
1274
1244
  width: "100%"
1275
1245
  });
1276
- return `<div${v} style="${R({
1246
+ return `<div${v} style="${B({
1277
1247
  padding: h.padding,
1278
1248
  margin: h.margin,
1279
1249
  overflowX: "auto"
@@ -1281,33 +1251,33 @@ var Z = (t) => {
1281
1251
  }
1282
1252
  case "video": {
1283
1253
  let e = a(_.videoUrl), t = _.linkType === "email" ? `mailto:${_.href || ""}` : _.href || _.videoUrl || "#", n = _.target || "_blank";
1284
- return `<div${v} style="${R({
1254
+ return `<div${v} style="${B({
1285
1255
  padding: h.padding,
1286
1256
  margin: h.margin,
1287
1257
  borderRadius: h.borderRadius,
1288
1258
  overflow: "hidden"
1289
- })}"><a href="${W(t)}" target="${W(n)}" style="position: relative; display: block; text-decoration: none;"><img src="${W(e.thumbnailUrl)}" alt="${W(_.alt || "Video preview")}" style="width: 100%; display: block;" /><span style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 9999px; background: rgba(15, 23, 42, 0.75); display: flex; align-items: center; justify-content: center;"><span style="width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #ffffff; margin-left: 4px;"></span></span></a></div>`;
1259
+ })}"><a href="${K(t)}" target="${K(n)}" style="position: relative; display: block; text-decoration: none;"><img src="${K(e.thumbnailUrl)}" alt="${K(_.alt || "Video preview")}" style="width: 100%; display: block;" /><span style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 9999px; background: rgba(15, 23, 42, 0.75); display: flex; align-items: center; justify-content: center;"><span style="width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #ffffff; margin-left: 4px;"></span></span></a></div>`;
1290
1260
  }
1291
1261
  case "timer": {
1292
- let e = _.showLabels !== !1, n = R({
1262
+ let e = _.showLabels !== !1, n = B({
1293
1263
  fontFamily: h.digitsFontFamily,
1294
1264
  fontSize: h.digitsFontSize || "40px",
1295
1265
  color: h.digitsColor || "#1e293b",
1296
1266
  fontWeight: "800"
1297
- }), r = R({
1267
+ }), r = B({
1298
1268
  fontFamily: h.labelsFontFamily,
1299
1269
  fontSize: h.labelsFontSize || "16px",
1300
1270
  color: h.labelsColor || "#64748b"
1301
- }), i = R({
1271
+ }), i = B({
1302
1272
  backgroundColor: h.backgroundColor || "#f8fafc",
1303
1273
  borderRadius: h.borderRadius || "8px",
1304
1274
  padding: h.padding || "16px",
1305
1275
  textAlign: "center"
1306
- }), a = (t, i, a) => `<div style="display: inline-flex; flex-direction: column; align-items: center; padding: 0 10px;"><span data-unit="${t}" style="${n}">${a}</span>${e ? `<span style="${r}">${i}</span>` : ""}</div>`, o = c(_.targetDate), s = W(_.targetDate || "2026-12-31T23:59:59"), l = `<script>(function(){var wrap=document.querySelector(${JSON.stringify(`[data-plexo-id="${t.id}"]`)});if(!wrap)return;var target=new Date(wrap.getAttribute('data-plexo-target')).getTime();function pad(n){return String(n).padStart(2,'0');}function tick(){var diff=target-Date.now();var d=wrap.querySelector('[data-unit="days"]'),h=wrap.querySelector('[data-unit="hours"]'),m=wrap.querySelector('[data-unit="minutes"]'),s=wrap.querySelector('[data-unit="seconds"]');if(diff<=0){[d,h,m,s].forEach(function(n){if(n)n.textContent='00';});clearInterval(iv);return;}var total=Math.floor(diff/1000);if(d)d.textContent=pad(Math.floor(total/86400));if(h)h.textContent=pad(Math.floor(total%86400/3600));if(m)m.textContent=pad(Math.floor(total%3600/60));if(s)s.textContent=pad(total%60);}tick();var iv=setInterval(tick,1000);})();<\/script>`;
1276
+ }), a = (t, i, a) => `<div style="display: inline-flex; flex-direction: column; align-items: center; padding: 0 10px;"><span data-unit="${t}" style="${n}">${a}</span>${e ? `<span style="${r}">${i}</span>` : ""}</div>`, o = c(_.targetDate), s = K(_.targetDate || "2026-12-31T23:59:59"), l = `<script>(function(){var wrap=document.querySelector(${JSON.stringify(`[data-plexo-id="${t.id}"]`)});if(!wrap)return;var target=new Date(wrap.getAttribute('data-plexo-target')).getTime();function pad(n){return String(n).padStart(2,'0');}function tick(){var diff=target-Date.now();var d=wrap.querySelector('[data-unit="days"]'),h=wrap.querySelector('[data-unit="hours"]'),m=wrap.querySelector('[data-unit="minutes"]'),s=wrap.querySelector('[data-unit="seconds"]');if(diff<=0){[d,h,m,s].forEach(function(n){if(n)n.textContent='00';});clearInterval(iv);return;}var total=Math.floor(diff/1000);if(d)d.textContent=pad(Math.floor(total/86400));if(h)h.textContent=pad(Math.floor(total%86400/3600));if(m)m.textContent=pad(Math.floor(total%3600/60));if(s)s.textContent=pad(total%60);}tick();var iv=setInterval(tick,1000);})();<\/script>`;
1307
1277
  return `<div${v} data-plexo-target="${s}" style="${i}"><div>${a("days", "Days", o.days)}${a("hours", "Hours", o.hours)}${a("minutes", "Mins", o.minutes)}${a("seconds", "Secs", o.seconds)}</div>${l}</div>`;
1308
1278
  }
1309
1279
  case "carousel": {
1310
- let e = Array.isArray(_.images) ? _.images : [], n = R({
1280
+ let e = Array.isArray(_.images) ? _.images : [], n = B({
1311
1281
  padding: h.padding || "10px",
1312
1282
  margin: h.margin,
1313
1283
  backgroundColor: h.backgroundColor,
@@ -1316,38 +1286,38 @@ var Z = (t) => {
1316
1286
  borderRadius: "12px"
1317
1287
  });
1318
1288
  if (e.length === 0) return `<div${v} style="${n}"><div style="padding: 40px; text-align: center; color: #94a3b8;">No images in carousel</div></div>`;
1319
- let r = Math.min(e.length - 1, Math.max(0, parseInt(String(_.activeIdx), 10) || 0)), i = e.map((e, t) => `<div data-slide-idx="${t}" style="display: ${t === r ? "block" : "none"};"><img src="${W(e.src)}" alt="${W(e.alt || e.caption || "")}" style="width: 100%; display: block;" />${e.caption ? `<div style="padding: 8px; text-align: center; background: rgba(15, 23, 42, 0.8); color: #fff; font-size: 12px; font-weight: 600;">${W(e.caption)}</div>` : ""}</div>`).join(""), a = e.length > 1 ? `<div style="display: flex; gap: 6px; justify-content: center; padding: 8px 0;">${e.map((e, t) => `<button type="button" data-dot-idx="${t}" style="width: 8px; height: 8px; border-radius: 9999px; border: none; background: ${t === r ? "#4f46e5" : "#cbd5e1"}; cursor: pointer;"></button>`).join("")}</div>` : "";
1289
+ let r = Math.min(e.length - 1, Math.max(0, parseInt(String(_.activeIdx), 10) || 0)), i = e.map((e, t) => `<div data-slide-idx="${t}" style="display: ${t === r ? "block" : "none"};"><img src="${K(e.src)}" alt="${K(e.alt || e.caption || "")}" style="width: 100%; display: block;" />${e.caption ? `<div style="padding: 8px; text-align: center; background: rgba(15, 23, 42, 0.8); color: #fff; font-size: 12px; font-weight: 600;">${K(e.caption)}</div>` : ""}</div>`).join(""), a = e.length > 1 ? `<div style="display: flex; gap: 6px; justify-content: center; padding: 8px 0;">${e.map((e, t) => `<button type="button" data-dot-idx="${t}" style="width: 8px; height: 8px; border-radius: 9999px; border: none; background: ${t === r ? "#4f46e5" : "#cbd5e1"}; cursor: pointer;"></button>`).join("")}</div>` : "";
1320
1290
  return `<div${v} data-active-idx="${r}" style="${n}">${e.length > 1 ? "<button type=\"button\" data-nav=\"prev\" style=\"position: absolute; left: 8px; top: 40%; transform: translateY(-50%); border: none; background: rgba(15, 23, 42, 0.6); color: #fff; width: 28px; height: 28px; border-radius: 9999px; cursor: pointer;\">‹</button><button type=\"button\" data-nav=\"next\" style=\"position: absolute; right: 8px; top: 40%; transform: translateY(-50%); border: none; background: rgba(15, 23, 42, 0.6); color: #fff; width: 28px; height: 28px; border-radius: 9999px; cursor: pointer;\">›</button>" : ""}${i}${a}${`<script>(function(){var wrap=document.querySelector(${JSON.stringify(`[data-plexo-id="${t.id}"]`)});if(!wrap)return;var slides=wrap.querySelectorAll('[data-slide-idx]');var dots=wrap.querySelectorAll('[data-dot-idx]');function show(n){var idx=(n+slides.length)%slides.length;slides.forEach(function(s,i){s.style.display=i===idx?'block':'none';});dots.forEach(function(d,i){d.style.background=i===idx?'#4f46e5':'#cbd5e1';});wrap.setAttribute('data-active-idx',String(idx));}var prev=wrap.querySelector('[data-nav="prev"]');var next=wrap.querySelector('[data-nav="next"]');if(prev)prev.addEventListener('click',function(){show(parseInt(wrap.getAttribute('data-active-idx')||'0',10)-1);});if(next)next.addEventListener('click',function(){show(parseInt(wrap.getAttribute('data-active-idx')||'0',10)+1);});dots.forEach(function(d,i){d.addEventListener('click',function(){show(i);});});})();<\/script>`}</div>`;
1321
1291
  }
1322
1292
  case "accordion": {
1323
- let e = f(t), n = _.mode === "multi" ? "multi" : "single", r = _.iconStyle || "chevron", i = _.iconPosition === "left", a = _.showDividers !== !1, o = _.animation !== "none", s = R({
1293
+ let e = f(t), n = _.mode === "multi" ? "multi" : "single", r = _.iconStyle || "chevron", i = _.iconPosition === "left", a = _.showDividers !== !1, o = _.animation !== "none", s = B({
1324
1294
  border: `${h.borderWidth || "1px"} ${h.borderStyle || "solid"} ${h.borderColor || "#e2e8f0"}`,
1325
1295
  borderRadius: h.borderRadius || "10px",
1326
1296
  overflow: "hidden",
1327
1297
  margin: h.margin
1328
1298
  });
1329
- return e.length === 0 ? `<div${v} style="${s}"></div>` : `<div${v} data-acc-mode="${n}" data-acc-icon-style="${r}" style="${s}"><div class="plexo-acc-group">${Y(e, h, {
1299
+ return e.length === 0 ? `<div${v} style="${s}"></div>` : `<div${v} data-acc-mode="${n}" data-acc-icon-style="${r}" style="${s}"><div class="plexo-acc-group">${Z(e, h, {
1330
1300
  iconStyle: r,
1331
1301
  iconOnLeft: i,
1332
1302
  showDividers: a,
1333
1303
  animated: o
1334
1304
  })}</div>${`<script>(function(){var root=document.querySelector(${JSON.stringify(`[data-plexo-id="${t.id}"]`)});if(!root)return;var mode=root.getAttribute('data-acc-mode')||'single';var iconStyle=root.getAttribute('data-acc-icon-style')||'chevron';function setIconState(icon,open){if(!icon)return;if(iconStyle==='plus'){icon.textContent=open?'−':'+';}else if(iconStyle==='arrow'){icon.style.transform=open?'rotate(90deg)':'';}else if(iconStyle==='chevron'){icon.style.transform=open?'rotate(180deg)':'';}}var headers=root.querySelectorAll('[data-acc-header]');headers.forEach(function(header){header.addEventListener('click',function(){var item=header.parentElement;var group=item.parentElement;var panel=item.children[1];var isOpen=header.getAttribute('data-acc-open')==='1';if(mode!=='multi'&&group){Array.prototype.forEach.call(group.children,function(sib){if(sib===item)return;var sh=sib.children[0];var sp=sib.children[1];if(sh){sh.setAttribute('data-acc-open','0');setIconState(sh.querySelector('[data-acc-icon]'),false);}if(sp)sp.style.gridTemplateRows='0fr';});}var next=!isOpen;header.setAttribute('data-acc-open',next?'1':'0');panel.style.gridTemplateRows=next?'1fr':'0fr';setIconState(header.querySelector('[data-acc-icon]'),next);});});})();<\/script>`}</div>`;
1335
1305
  }
1336
- default: return X(t.type);
1306
+ default: return te(t.type);
1337
1307
  }
1338
1308
  }, Q = (e, n) => {
1339
1309
  if (!e || typeof e != "object") return "";
1340
- let r = L(e);
1310
+ let r = z(e);
1341
1311
  if (!r) return `\n <!-- ROW SKIPPED (type="${typeof e.type == "string" ? e.type : "unknown"}"${e.id ? `, id="${e.id}"` : ""}): this row has no 'columns' array and its shorthand content (e.g. a list of items/links) can't be auto-converted without losing data. Provide a fully hydrated row with 'columns' and 'elements' instead. -->`;
1342
- let i = R(r.style || {}), a = G("id", r.htmlId), o = G("class", r.htmlClass), s = r.id || `row-${Math.random().toString(36).substring(2, 9)}`;
1343
- V(n, s, r.style, "tablet", r.styleTablet), V(n, s, r.style, "mobile", r.styleMobile);
1312
+ let i = B(r.style || {}), a = q("id", r.htmlId), o = q("class", r.htmlClass), s = r.id || `row-${Math.random().toString(36).substring(2, 9)}`;
1313
+ U(n, s, r.style, "tablet", r.styleTablet), U(n, s, r.style, "mobile", r.styleMobile);
1344
1314
  let c = `\n <!-- ROW START: ${r.id || "row"} -->`;
1345
1315
  c += `\n <div data-plexo-id="${s}"${a}${o} class="plexo-row" style="display: flex; flex-wrap: wrap; margin-left: -8px; margin-right: -8px; ${i}">`;
1346
1316
  let l = Array.isArray(r.columns) ? r.columns : [];
1347
1317
  for (let e of l) {
1348
1318
  if (!e) continue;
1349
- let r = e.styles || e.style || {}, i = R(r), a = r.gap || "16px", o = G("id", e.attrs?.htmlId), s = e.attrs?.htmlClass ? ` ${e.attrs.htmlClass}` : "", l = e.id || `col-${Math.random().toString(36).substring(2, 9)}`;
1350
- V(n, l, r, "tablet", e.stylesTablet), V(n, l, r, "mobile", e.stylesMobile), c += `\n <!-- COLUMN START: ${e.id || "col"} -->`, c += `\n <div data-plexo-id="${l}"${o} class="plexo-col${s}" style="box-sizing: border-box; padding-left: 8px; padding-right: 8px; width: ${e.width || "100%"}; --plexo-col-gap: ${a}; ${i}">`;
1319
+ let r = e.styles || e.style || {}, i = B(r), a = r.gap || "16px", o = q("id", e.attrs?.htmlId), s = e.attrs?.htmlClass ? ` ${e.attrs.htmlClass}` : "", l = e.id || `col-${Math.random().toString(36).substring(2, 9)}`;
1320
+ U(n, l, r, "tablet", e.stylesTablet), U(n, l, r, "mobile", e.stylesMobile), c += `\n <!-- COLUMN START: ${e.id || "col"} -->`, c += `\n <div data-plexo-id="${l}"${o} class="plexo-col${s}" style="box-sizing: border-box; padding-left: 8px; padding-right: 8px; width: ${e.width || "100%"}; --plexo-col-gap: ${a}; ${i}">`;
1351
1321
  let u = Array.isArray(e.elements) ? e.elements : [], d = Array.isArray(e.nestedRows) ? e.nestedRows : [], f = new Map(u.map((e) => [e.id, e])), p = new Map(d.map((e) => [e.id, e]));
1352
1322
  for (let r of t({
1353
1323
  ...e,
@@ -1356,8 +1326,8 @@ var Z = (t) => {
1356
1326
  })) {
1357
1327
  let e = f.get(r);
1358
1328
  if (e) {
1359
- let t = e.attributes || {}, r = typeof t.htmlClassNames == "string" ? t.htmlClassNames : typeof t.htmlClass == "string" ? t.htmlClass : typeof t.className == "string" ? t.className : "", i = G("id", t.htmlId), o = G("class", r), s = e.style?.display, l = s === "inline-block" || s === "inline" || s === "inline-flex" ? `margin-bottom: ${a}; display: ${s}; vertical-align: top;` : `margin-bottom: ${a};`;
1360
- V(n, e.id, e.style, "tablet", H(e, e.styleTablet)), V(n, e.id, e.style, "mobile", H(e, e.styleMobile)), c += `\n <div${i}${o} style="${l}">`, c += `\n ${Z(e)}`, c += "\n </div>";
1329
+ let t = e.attributes || {}, r = typeof t.htmlClassNames == "string" ? t.htmlClassNames : typeof t.htmlClass == "string" ? t.htmlClass : typeof t.className == "string" ? t.className : "", i = q("id", t.htmlId), o = q("class", r), s = e.style?.display, l = s === "inline-block" || s === "inline" || s === "inline-flex" ? `margin-bottom: ${a}; display: ${s}; vertical-align: top;` : `margin-bottom: ${a};`;
1330
+ U(n, e.id, e.style, "tablet", W(e, e.styleTablet)), U(n, e.id, e.style, "mobile", W(e, e.styleMobile)), c += `\n <div${i}${o} style="${l}">`, c += `\n ${ne(e)}`, c += "\n </div>";
1361
1331
  continue;
1362
1332
  }
1363
1333
  let t = p.get(r);
@@ -1394,7 +1364,7 @@ var Z = (t) => {
1394
1364
  "favicon"
1395
1365
  ], a = {};
1396
1366
  for (let e of Object.keys(r)) i.includes(e) || (a[e] = r[e]);
1397
- let o = R(a), s = typeof r.htmlTitle == "string" && r.htmlTitle.trim() ? r.htmlTitle.trim() : typeof e?.name == "string" && e.name.trim() ? e.name.trim() : "Plexo Rendered Page", c = G("id", r.htmlId), l = G("class", r.htmlClass), u = typeof r.customCss == "string" && r.customCss.trim() ? r.customCss.trim() : "", d = typeof r.customJs == "string" && r.customJs.trim() ? r.customJs.trim() : "", f = typeof r.favicon == "string" && r.favicon.trim() ? r.favicon.trim() : "", p = Array.isArray(n.rows) ? n.rows : Array.isArray(t.rows) ? t.rows : Array.isArray(e.rows) ? e.rows : [], m = T(w(p, [r.fontFamily])), h = {
1367
+ let o = B(a), s = typeof r.htmlTitle == "string" && r.htmlTitle.trim() ? r.htmlTitle.trim() : typeof e?.name == "string" && e.name.trim() ? e.name.trim() : "Plexo Rendered Page", c = q("id", r.htmlId), l = q("class", r.htmlClass), u = typeof r.customCss == "string" && r.customCss.trim() ? r.customCss.trim() : "", d = typeof r.customJs == "string" && r.customJs.trim() ? r.customJs.trim() : "", f = typeof r.favicon == "string" && r.favicon.trim() ? r.favicon.trim() : "", p = Array.isArray(n.rows) ? n.rows : Array.isArray(t.rows) ? t.rows : Array.isArray(e.rows) ? e.rows : [], m = E(T(p, [r.fontFamily])), h = {
1398
1368
  tablet: [],
1399
1369
  mobile: []
1400
1370
  }, g = "";
@@ -1403,12 +1373,12 @@ var Z = (t) => {
1403
1373
  <html>
1404
1374
  <head>
1405
1375
  <meta charset="utf-8">
1406
- <title>${W(s)}</title>
1407
- ${f ? `<link rel="icon" href="${W(f)}">` : ""}
1376
+ <title>${K(s)}</title>
1377
+ ${f ? `<link rel="icon" href="${K(f)}">` : ""}
1408
1378
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
1409
1379
  ${m ? `<link rel="stylesheet" href="${m}">` : ""}
1410
1380
  <style>
1411
- body { margin: 0; font-family: ${I}; }
1381
+ body { margin: 0; font-family: ${R}; }
1412
1382
  .plexo-row {
1413
1383
  display: flex;
1414
1384
  flex-wrap: wrap;
@@ -1438,14 +1408,14 @@ ${d ? ` <script>\n${d}\n <\/script>` : ""}
1438
1408
  </body>
1439
1409
  </html>`, y = y.replace(/<span[^>]*data-merge-val="([^"]*)"[^>]*>[\s\S]*?<\/span>/gi, "$1"), y;
1440
1410
  };
1441
- function ne(e) {
1411
+ function re(e) {
1442
1412
  return $(e).replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
1443
1413
  }
1444
- function re(e) {
1414
+ function ie(e) {
1445
1415
  return $(e);
1446
1416
  }
1447
- function ie(e) {
1417
+ function ae(e) {
1448
1418
  return e;
1449
1419
  }
1450
1420
  //#endregion
1451
- export { S as _, re as a, g as b, U as c, F as d, T as f, b as g, _ as h, $ as i, z as l, x as m, K as n, ne as o, w as p, V as r, L as s, I as t, ie as u, v, h as x, y };
1421
+ export { C as _, ie as a, _ as b, G as c, L as d, E as f, x as g, v as h, $ as i, V as l, S as m, J as n, re as o, T as p, U as r, z as s, R as t, ae as u, y as v, g as x, b as y };