@charisol/plexo-sdk 1.0.36 → 1.0.38

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.
@@ -1,5 +1,6 @@
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, t as l, u } from "./iconSvgStatic-JHlo_YyU.js";
1
2
  //#region src/utilities/playground.constants.ts
2
- var e = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, t = [
3
+ var d = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, f = [
3
4
  {
4
5
  id: "all",
5
6
  label: "All sources"
@@ -16,7 +17,7 @@ var e = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, t
16
17
  id: "pixabay",
17
18
  label: "Pixabay"
18
19
  }
19
- ], n = [
20
+ ], p = [
20
21
  {
21
22
  id: "surface-book",
22
23
  label: "Surface Book",
@@ -83,7 +84,7 @@ var e = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, t
83
84
  width: 375,
84
85
  category: "mobile"
85
86
  }
86
- ], r = 1280, i = [
87
+ ], m = 1280, h = [
87
88
  {
88
89
  id: "facebook",
89
90
  label: "Facebook"
@@ -116,7 +117,7 @@ var e = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, t
116
117
  id: "tiktok",
117
118
  label: "TikTok"
118
119
  }
119
- ], a = [
120
+ ], g = [
120
121
  {
121
122
  label: "Text",
122
123
  value: "text"
@@ -149,7 +150,7 @@ var e = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, t
149
150
  label: "Checkbox",
150
151
  value: "checkbox"
151
152
  }
152
- ], o = [
153
+ ], _ = [
153
154
  {
154
155
  label: "1 Column",
155
156
  widths: ["100%"],
@@ -198,7 +199,7 @@ var e = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, t
198
199
  "25%"
199
200
  ]
200
201
  }
201
- ], s = [
202
+ ], v = [
202
203
  {
203
204
  label: "Roboto",
204
205
  value: "'Roboto', sans-serif",
@@ -599,8 +600,8 @@ var e = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, t
599
600
  value: "'Great Vibes', cursive",
600
601
  style: "handwriting"
601
602
  }
602
- ], c = new Map(s.map((e) => [e.value, e.label]));
603
- function l(e, t = []) {
603
+ ], y = new Map(v.map((e) => [e.value, e.label]));
604
+ function b(e, t = []) {
604
605
  let n = /* @__PURE__ */ new Set(), r = (e) => {
605
606
  if (!e) return;
606
607
  let t = Array.isArray(e.columns) ? e.columns : [];
@@ -618,17 +619,17 @@ function l(e, t = []) {
618
619
  for (let e of t) typeof e == "string" && e.trim() && n.add(e.trim());
619
620
  return n;
620
621
  }
621
- function u(e) {
622
+ function x(e) {
622
623
  let t = /* @__PURE__ */ new Set();
623
624
  for (let n of e) {
624
- let e = c.get(n);
625
+ let e = y.get(n);
625
626
  e && t.add(e);
626
627
  }
627
628
  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`;
628
629
  }
629
630
  //#endregion
630
631
  //#region src/utilities/responsiveDefaults.ts
631
- var d = {
632
+ var S = {
632
633
  tablet: {
633
634
  thresholdPx: 24,
634
635
  scale: .85,
@@ -639,7 +640,7 @@ var d = {
639
640
  scale: .7,
640
641
  floorPx: 14
641
642
  }
642
- }, f = {
643
+ }, C = {
643
644
  tablet: {
644
645
  thresholdPx: 320,
645
646
  scale: .8,
@@ -650,7 +651,7 @@ var d = {
650
651
  scale: .55,
651
652
  floorPx: 140
652
653
  }
653
- }, p = {
654
+ }, w = {
654
655
  tablet: {
655
656
  thresholdPx: 48,
656
657
  scale: .75,
@@ -661,7 +662,7 @@ var d = {
661
662
  scale: .55,
662
663
  floorPx: 16
663
664
  }
664
- }, m = {
665
+ }, T = {
665
666
  tablet: {
666
667
  thresholdPx: 500,
667
668
  scale: 1,
@@ -672,11 +673,11 @@ var d = {
672
673
  scale: 1,
673
674
  floorPx: 0
674
675
  }
675
- }, h = ["fontSize"], g = [
676
+ }, E = ["fontSize"], D = [
676
677
  "height",
677
678
  "minHeight",
678
679
  "maxHeight"
679
- ], _ = [
680
+ ], O = [
680
681
  "padding",
681
682
  "paddingTop",
682
683
  "paddingBottom",
@@ -685,8 +686,8 @@ var d = {
685
686
  "margin",
686
687
  "marginTop",
687
688
  "marginBottom"
688
- ], v = ["width", "maxWidth"];
689
- function y(e) {
689
+ ], k = ["width", "maxWidth"];
690
+ function A(e) {
690
691
  if (typeof e == "number" && Number.isFinite(e)) return e;
691
692
  if (typeof e != "string") return null;
692
693
  let t = e.trim().match(/^(-?\d+(?:\.\d+)?)px$/);
@@ -694,48 +695,60 @@ function y(e) {
694
695
  let n = parseFloat(t[1]);
695
696
  return Number.isFinite(n) ? n : null;
696
697
  }
697
- function b(e, t) {
698
+ function j(e, t) {
698
699
  return e < t.thresholdPx ? null : Math.max(Math.round(e * t.scale), t.floorPx);
699
700
  }
700
- function x(e, t) {
701
+ function M(e, t) {
701
702
  if (!e || typeof e != "object") return {};
702
703
  let n = {};
703
- for (let r of h) {
704
- let i = y(e[r]);
704
+ for (let r of E) {
705
+ let i = A(e[r]);
705
706
  if (i === null) continue;
706
- let a = b(i, d[t]);
707
+ let a = j(i, S[t]);
707
708
  a !== null && (n[r] = `${a}px`);
708
709
  }
709
- for (let r of g) {
710
- let i = y(e[r]);
710
+ for (let r of D) {
711
+ let i = A(e[r]);
711
712
  if (i === null) continue;
712
- let a = b(i, f[t]);
713
+ let a = j(i, C[t]);
713
714
  a !== null && (n[r] = `${a}px`);
714
715
  }
715
- for (let r of _) {
716
- let i = y(e[r]);
716
+ for (let r of O) {
717
+ let i = A(e[r]);
717
718
  if (i === null) continue;
718
- let a = b(i, p[t]);
719
+ let a = j(i, w[t]);
719
720
  a !== null && (n[r] = `${a}px`);
720
721
  }
721
- for (let r of v) {
722
- let i = y(e[r]);
723
- i !== null && i >= m[t].thresholdPx && (n[r] = "100%");
722
+ for (let r of k) {
723
+ let i = A(e[r]);
724
+ i !== null && i >= T[t].thresholdPx && (n[r] = "100%");
724
725
  }
725
726
  return n;
726
727
  }
727
- function S(e, t, n) {
728
+ function N(e, t, n) {
728
729
  let r = e || {};
729
730
  return n ? {
730
731
  ...r,
731
- ...x(r, n),
732
+ ...M(r, n),
732
733
  ...t || {}
733
734
  } : r;
734
735
  }
735
736
  //#endregion
736
737
  //#region src/utilities/compiler.ts
737
- var C = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif";
738
- function w(e) {
738
+ var P = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif", F = (e) => e === "twitter" ? "x" : e, I = (e, t = "currentColor") => {
739
+ switch (F(e)) {
740
+ case "facebook": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="M14 8h2V4h-2c-2.2 0-4 1.8-4 4v2H8v4h2v6h4v-6h2.5l.5-4H14V8c0-.55.45-1 1-1Z"/></svg>`;
741
+ case "instagram": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><rect x="4" y="4" width="16" height="16" rx="5" ry="5" fill="none" stroke="${t}" stroke-width="2"/><circle cx="12" cy="12" r="3.5" fill="none" stroke="${t}" stroke-width="2"/><circle cx="17" cy="7" r="1" fill="${t}"/></svg>`;
742
+ case "linkedin": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><circle cx="8" cy="9" r="1.25" fill="${t}"/><path fill="${t}" d="M7 11h2v6H7zM11 11h2v.9c.5-.7 1.34-1.15 2.4-1.15 2 0 3.1 1.25 3.1 3.6V17h-2v-2.2c0-1.3-.45-2.05-1.55-2.05-1.2 0-1.85.8-1.85 2.05V17h-2z"/></svg>`;
743
+ case "x": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="M6 5h3.1l3 4.2L15.7 5H18l-4.8 5.5L18.4 18h-3.1l-3.3-4.7L8 18H5.6l5-5.8z"/></svg>`;
744
+ case "youtube": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><rect x="3" y="6.5" width="18" height="11" rx="3" fill="${t}"/><path fill="#fff" d="m10 9 5 3-5 3z"/></svg>`;
745
+ case "pinterest": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="M12 4a8 8 0 0 0-2.9 15.46c-.04-1.17 0-2.58.3-3.82l1.1-4.6s-.27-.56-.27-1.4c0-1.3.75-2.27 1.68-2.27.8 0 1.18.6 1.18 1.3 0 .8-.5 2-.77 3.12-.22.94.47 1.7 1.4 1.7 1.67 0 2.8-2.15 2.8-4.7 0-1.93-1.3-3.37-3.67-3.37-2.68 0-4.35 2-4.35 4.23 0 .77.23 1.34.6 1.77.17.2.2.29.13.53l-.2.8c-.07.25-.3.34-.56.25-1.55-.63-2.27-2.32-2.27-4.22 0-3.14 2.64-6.9 7.89-6.9 4.21 0 6.98 3.05 6.98 6.32 0 4.32-2.4 7.54-5.93 7.54-1.18 0-2.28-.64-2.65-1.37l-.73 2.78c-.26.95-.77 2.14-1.22 2.96A8 8 0 1 0 12 4Z"/></svg>`;
746
+ case "whatsapp": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="M12 4a8 8 0 0 0-6.9 12.04L4 20l4.11-1.06A8 8 0 1 0 12 4Zm4.55 11.36c-.2.56-1.14 1.04-1.57 1.1-.4.06-.92.09-1.48-.08-.34-.11-.78-.25-1.35-.5-2.37-1.03-3.92-3.45-4.04-3.6-.11-.15-.96-1.27-.96-2.42s.6-1.72.8-1.96c.2-.24.45-.3.6-.3h.43c.14 0 .33-.05.51.38.2.48.7 1.67.75 1.79.06.12.1.26.02.42-.07.15-.11.26-.22.39-.11.13-.23.29-.33.39-.11.11-.22.23-.1.45.11.22.52.86 1.11 1.39.76.68 1.4.89 1.62.99.22.11.35.09.48-.06.13-.15.56-.65.72-.88.15-.22.31-.18.52-.11.22.08 1.36.64 1.6.76.23.11.38.17.44.27.06.1.06.61-.14 1.17Z"/></svg>`;
747
+ case "tiktok": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="M14.4 4c.24 1.12.9 2.08 1.86 2.67.7.42 1.52.64 2.35.63V10a6.5 6.5 0 0 1-4.2-1.52v5.24A4.72 4.72 0 1 1 9.7 9v2.6a2.12 2.12 0 1 0 2.1 2.12V4z"/></svg>`;
748
+ default: return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><circle cx="12" cy="12" r="4" fill="${t}"/></svg>`;
749
+ }
750
+ };
751
+ function L(e) {
739
752
  if (!e || typeof e != "object") return null;
740
753
  if (Array.isArray(e.columns) && e.columns.length > 0) return e;
741
754
  let t = (e.type || "").toLowerCase(), n = e.props || e.content || e.attributes || e.data || e.payload || e, r = e.style || {};
@@ -989,7 +1002,7 @@ function w(e) {
989
1002
  }
990
1003
  }
991
1004
  }
992
- var T = (e = {}) => !e || typeof e != "object" ? "" : Object.entries(e).filter(([e, t]) => t != null && t !== "").map(([e, t]) => {
1005
+ var R = (e = {}) => !e || typeof e != "object" ? "" : Object.entries(e).filter(([e, t]) => t != null && t !== "").map(([e, t]) => {
993
1006
  let n = e.replace(/([A-Z])/g, "-$1").toLowerCase(), r = t;
994
1007
  return typeof t == "number" && [
995
1008
  "padding",
@@ -1000,25 +1013,25 @@ var T = (e = {}) => !e || typeof e != "object" ? "" : Object.entries(e).filter((
1000
1013
  "width",
1001
1014
  "height"
1002
1015
  ].some((t) => e.toLowerCase().includes(t)) && (r = `${t}px`), `${n}: ${r};`;
1003
- }).join(" "), E = (e = {}) => T(e).replace(/;(\s|$)/g, " !important;$1");
1004
- function D(e) {
1016
+ }).join(" "), z = (e = {}) => R(e).replace(/;(\s|$)/g, " !important;$1");
1017
+ function B(e) {
1005
1018
  if (typeof e != "string") return !1;
1006
1019
  let t = e.toLowerCase();
1007
1020
  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);
1008
1021
  }
1009
- function O(e, t, n, r, i) {
1022
+ function V(e, t, n, r, i) {
1010
1023
  let a = {
1011
- ...x(n, r),
1024
+ ...M(n, r),
1012
1025
  ...i || {}
1013
1026
  };
1014
- for (let e of Object.keys(a)) D(a[e]) && delete a[e];
1027
+ for (let e of Object.keys(a)) B(a[e]) && delete a[e];
1015
1028
  if (Object.keys(a).length === 0) return;
1016
- let o = E(a);
1029
+ let o = z(a);
1017
1030
  if (!o) return;
1018
1031
  let s = String(t).replace(/["\\]/g, "");
1019
1032
  e[r].push(`[data-plexo-id="${s}"] { ${o} }`);
1020
1033
  }
1021
- var k = () => ({
1034
+ var H = () => ({
1022
1035
  backgroundColor: "#ffffff",
1023
1036
  borderRadius: "20px",
1024
1037
  width: "100%",
@@ -1041,11 +1054,11 @@ var k = () => ({
1041
1054
  buttonPaddingRight: "14px",
1042
1055
  buttonFontSize: "13px",
1043
1056
  buttonFontWeight: "700"
1044
- }), A = (e) => (e || "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), j = (e, t) => {
1057
+ }), U = (e) => (e || "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), W = (e, t) => {
1045
1058
  if (typeof t != "string") return "";
1046
1059
  let n = t.trim();
1047
- return n ? ` ${e}="${A(n)}"` : "";
1048
- }, M = [
1060
+ return n ? ` ${e}="${U(n)}"` : "";
1061
+ }, G = [
1049
1062
  "fieldSpacing",
1050
1063
  "buttonBackgroundColor",
1051
1064
  "buttonTextColor",
@@ -1058,9 +1071,9 @@ var k = () => ({
1058
1071
  "buttonFontWeight",
1059
1072
  "buttonWidth",
1060
1073
  "buttonAlign"
1061
- ], N = (e) => {
1074
+ ], K = (e) => {
1062
1075
  if (!e || typeof e != "object") return "";
1063
- let t = e.kind || "text", n = A(e.name || e.label || "field"), r = e.required ? " required" : "", i = T({
1076
+ let t = e.kind || "text", n = U(e.name || e.label || "field"), r = e.required ? " required" : "", i = R({
1064
1077
  fontSize: e.fontSize || "13px",
1065
1078
  borderRadius: e.borderRadius || "12px",
1066
1079
  borderWidth: e.borderWidth || "1px",
@@ -1068,44 +1081,54 @@ var k = () => ({
1068
1081
  borderStyle: "solid",
1069
1082
  color: e.inputTextColor
1070
1083
  }), 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>`;
1071
- return t === "textarea" ? `${a}<textarea name="${n}" placeholder="${A(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="${A(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 : [{
1084
+ return t === "textarea" ? `${a}<textarea name="${n}" placeholder="${U(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="${U(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 : [{
1072
1085
  label: e.label || "Option",
1073
1086
  value: e.name || "option"
1074
- }]).map((r) => `<label style="display: inline-flex; align-items: center; gap: 6px; font-size: ${e.fontSize || "12px"};"><input type="${t}" name="${n}" value="${A(r?.value ?? "")}" />${r?.label ?? r?.value ?? ""}</label>`).join("")}</div>` : `${a}<input type="${A(t)}" name="${n}" placeholder="${A(e.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r} />`;
1075
- }, P = (e) => {
1076
- if (!e || typeof e != "object") return "";
1077
- let t = e.style || {}, n = T(e.type === "form_container" ? {
1078
- ...k(),
1079
- ...t
1080
- } : t), r = e.attributes || {}, i = ` data-plexo-id="${A(e.id)}"`;
1081
- switch (e.type) {
1082
- case "heading": return `<h2${i} style="margin-top: 0; margin-bottom: 8px; ${n}">${r.text || "Heading"}</h2>`;
1083
- case "paragraph": return `<p${i} style="margin-top: 0; margin-bottom: 12px; ${n}">${r.text || "Paragraph text content."}</p>`;
1084
- case "text": return `<div${i} style="${n}">${r.text || ""}</div>`;
1087
+ }]).map((r) => `<label style="display: inline-flex; align-items: center; gap: 6px; font-size: ${e.fontSize || "12px"};"><input type="${t}" name="${n}" value="${U(r?.value ?? "")}" />${r?.label ?? r?.value ?? ""}</label>`).join("")}</div>` : `${a}<input type="${U(t)}" name="${n}" placeholder="${U(e.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; ${i}"${r} />`;
1088
+ };
1089
+ function q(e) {
1090
+ return `<!-- Unsupported block ${String(e)} -->`;
1091
+ }
1092
+ var J = (d) => {
1093
+ if (!d || typeof d != "object") return "";
1094
+ let f = d.style || {}, p = R(d.type === "form_container" ? {
1095
+ ...H(),
1096
+ ...f
1097
+ } : f), m = d.attributes || {}, h = ` data-plexo-id="${U(d.id)}"`;
1098
+ switch (d.type) {
1099
+ case "heading": return `<h2${h} style="margin-top: 0; margin-bottom: 8px; ${p}">${m.text || "Heading"}</h2>`;
1100
+ case "paragraph": return `<p${h} style="margin-top: 0; margin-bottom: 12px; ${p}">${m.text || "Paragraph text content."}</p>`;
1101
+ case "text": return `<div${h} style="${p}">${m.text || ""}</div>`;
1085
1102
  case "button": {
1086
- let e = r.autoWidth === !1 ? t.width || "100%" : "auto", n = T({
1087
- ...t,
1088
- width: e
1103
+ let e = o(d), t = R({
1104
+ ...f,
1105
+ width: e.width,
1106
+ height: e.height
1089
1107
  });
1090
- return `<div style="text-align: ${t.textAlign || "center"};"><a${i} href="${r.href || "#"}" target="${r.openInNewTab ? "_blank" : "_self"}" style="display: inline-block; text-decoration: none; ${n}">${r.text || "Button"}</a></div>`;
1108
+ return `<div style="text-align: ${f.textAlign || "center"};"><a${h} href="${m.href || "#"}" target="${m.openInNewTab ? "_blank" : "_self"}" style="display: inline-block; text-decoration: none; ${t}">${m.text || "Button"}</a></div>`;
1091
1109
  }
1092
1110
  case "image": {
1093
- let e = t.textAlign === "center" ? "margin: 0 auto; display: block;" : t.textAlign === "right" ? "margin-left: auto; display: block;" : "display: inline-block;";
1094
- return `<img${i} src="${r.src || "https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe"}" alt="${r.alt || ""}" style="${n} ${e}" />`;
1111
+ let e = s(d), t = f.textAlign === "center" ? "margin: 0 auto; display: block;" : f.textAlign === "right" ? "margin-left: auto; display: block;" : "display: inline-block;", n = R({
1112
+ ...f,
1113
+ width: e.width,
1114
+ height: e.height
1115
+ });
1116
+ return `<img${h} src="${m.src || "https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe"}" alt="${m.alt || ""}" style="${n} ${t}" />`;
1095
1117
  }
1096
- case "divider": return `<hr${i} style="border: 0; border-top: ${t.borderWidth || "1px"} ${t.borderStyle || "solid"} ${t.borderColor || "#334155"}; ${n}" />`;
1097
- case "spacer": return `<div${i} style="height: ${t.height || "24px"};"></div>`;
1098
- case "card": return `<div${i} style="${n}">
1099
- <h3 style="margin-top: 0; margin-bottom: 8px; color: #ffffff;">${r.title || "Card Title"}</h3>
1100
- <p style="margin: 0; color: #94a3b8; font-size: 14px;">${r.description || "Card description."}</p>
1118
+ case "divider": return `<hr${h} style="border: 0; border-top: ${f.borderWidth || "1px"} ${f.borderStyle || "solid"} ${f.borderColor || "#334155"}; ${p}" />`;
1119
+ case "spacer": return `<div${h} style="height: ${f.height || "24px"};"></div>`;
1120
+ case "card": return `<div${h} style="${p}">
1121
+ <h3 style="margin-top: 0; margin-bottom: 8px; color: #ffffff;">${m.title || "Card Title"}</h3>
1122
+ <p style="margin: 0; color: #94a3b8; font-size: 14px;">${m.description || "Card description."}</p>
1101
1123
  </div>`;
1102
1124
  case "form_container": {
1103
1125
  let e = {
1104
- ...k(),
1105
- ...t
1106
- }, n = {};
1107
- for (let t of Object.keys(e)) M.includes(t) || (n[t] = e[t]);
1108
- let a = T(n), o = Array.isArray(r.fields) ? r.fields : [], s = e.fieldSpacing || "12px", c = o.map((e) => `<div style="margin-bottom: ${s};">${N(e)}</div>`).join(""), l = r.buttonAutoWidth === !1 ? e.buttonWidth || "100%" : "auto", u = e.buttonAlign === "left" ? "flex-start" : e.buttonAlign === "right" ? "flex-end" : "center", d = T({
1126
+ ...H(),
1127
+ ...f
1128
+ }, t = {};
1129
+ for (let n of Object.keys(e)) G.includes(n) || (t[n] = e[n]);
1130
+ t.height = c(d);
1131
+ let n = R(t), r = i(Array.isArray(m.fields) ? m.fields : []), a = e.fieldSpacing || "12px", o = r.map((e) => `<div style="margin-bottom: ${a};">${K(e)}</div>`).join(""), s = m.buttonAutoWidth === !1 ? e.buttonWidth || "100%" : "auto", l = e.buttonAlign === "left" ? "flex-start" : e.buttonAlign === "right" ? "flex-end" : "center", u = R({
1109
1132
  backgroundColor: e.buttonBackgroundColor,
1110
1133
  color: e.buttonTextColor,
1111
1134
  borderRadius: e.buttonBorderRadius,
@@ -1115,44 +1138,157 @@ var k = () => ({
1115
1138
  paddingRight: e.buttonPaddingRight,
1116
1139
  fontSize: e.buttonFontSize,
1117
1140
  fontWeight: e.buttonFontWeight,
1118
- width: l
1141
+ width: s
1119
1142
  });
1120
- return `<form${i} action="${A(r.actionUrl || r.action || "#")}" method="${A(r.method || "POST")}" style="${a}">${c}<div style="display: flex; width: 100%; justify-content: ${u};"><button type="submit" style="border: 0; cursor: pointer; ${d}">${r.submitLabel || "Submit"}</button></div></form>`;
1143
+ return `<form${h} action="${U(m.actionUrl || m.action || "#")}" method="${U(m.method || "POST")}" style="${n}">${o}<div style="display: flex; width: 100%; justify-content: ${l};"><button type="submit" style="border: 0; cursor: pointer; ${u}">${m.submitLabel || "Submit"}</button></div></form>`;
1121
1144
  }
1122
1145
  case "input": {
1123
- let e = r.inputType || r.type || "text", t = A(r.name || r.fieldName || "field"), a = A(r.placeholder || ""), o = r.required ? " required" : "";
1124
- return `<input${i} type="${A(e)}" name="${t}" placeholder="${a}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${n}"${o} />`;
1146
+ let e = m.inputType || m.type || "text", t = U(m.name || m.fieldName || "field"), n = U(m.placeholder || ""), r = m.required ? " required" : "";
1147
+ return `<input${h} type="${U(e)}" name="${t}" placeholder="${n}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${p}"${r} />`;
1148
+ }
1149
+ case "textarea": return `<textarea${h} name="${U(m.name || m.fieldName || "field")}" placeholder="${U(m.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${p}"${m.required ? " required" : ""}></textarea>`;
1150
+ case "select": return `<select${h} name="${U(m.name || m.fieldName || "field")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${p}"${m.required ? " required" : ""}>${(Array.isArray(m.options) ? m.options : []).map((e) => `<option value="${U(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>`;
1151
+ case "html": return `<div${h} style="${R({
1152
+ ...f,
1153
+ height: e(d, "auto")
1154
+ })}">${m.htmlContent || m.text || ""}</div>`;
1155
+ case "social": {
1156
+ let e = a(d), t = f.textAlign === "center" ? "center" : f.textAlign === "right" ? "flex-end" : "flex-start";
1157
+ return `<div${h} style="${R({
1158
+ padding: f.padding,
1159
+ margin: f.margin,
1160
+ display: "flex",
1161
+ flexWrap: "wrap",
1162
+ gap: f.iconSpacing || "8px",
1163
+ justifyContent: t
1164
+ })}">${e.map((e) => {
1165
+ let t = R({
1166
+ width: e.size,
1167
+ height: e.size,
1168
+ padding: "8px",
1169
+ borderRadius: e.iconType === "square" ? "14px" : "9999px",
1170
+ backgroundColor: e.backgroundColor,
1171
+ color: e.color,
1172
+ display: "inline-flex",
1173
+ alignItems: "center",
1174
+ justifyContent: "center",
1175
+ overflow: "hidden"
1176
+ });
1177
+ return `<a href="${U(e.url)}" style="${t} text-decoration: none;">${I(e.provider, e.color)}</a>`;
1178
+ }).join("")}</div>`;
1125
1179
  }
1126
- case "textarea": return `<textarea${i} name="${A(r.name || r.fieldName || "field")}" placeholder="${A(r.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${n}"${r.required ? " required" : ""}></textarea>`;
1127
- case "select": return `<select${i} name="${A(r.name || r.fieldName || "field")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${n}"${r.required ? " required" : ""}>${(Array.isArray(r.options) ? r.options : []).map((e) => `<option value="${A(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>`;
1128
- case "html": return `<div${i} style="${n}">${r.htmlContent || r.text || ""}</div>`;
1129
- default: return `<!-- Unsupported block ${e.type} -->`;
1180
+ case "menu": {
1181
+ let e = t(d), n = f.textAlign === "center" ? "center" : f.textAlign === "right" ? "flex-end" : "flex-start";
1182
+ return `<div${h} style="${R({
1183
+ ...f,
1184
+ display: "flex",
1185
+ flexWrap: "wrap",
1186
+ gap: "16px",
1187
+ justifyContent: n
1188
+ })}">${e.map((e) => `<a href="${U(e.href)}" style="text-decoration: none; color: inherit; font-weight: ${f.fontWeight || 600};">${U(e.label)}</a>`).join("")}</div>`;
1189
+ }
1190
+ case "icon": {
1191
+ let e = f.fontSize || `${m.iconSize || 48}px`, t = f.color || "#1e293b", n = parseInt(String(e), 10) || 48, r = l(m.iconName, n, t), i = f.textAlign === "right" ? "flex-end" : f.textAlign === "left" ? "flex-start" : "center", a = R({
1192
+ padding: f.padding,
1193
+ margin: f.margin,
1194
+ display: "flex",
1195
+ justifyContent: i
1196
+ }), o = typeof m.href == "string" ? m.href.trim() : "", s = `<span style="display: inline-flex; align-items: center; justify-content: center; color: ${t};">${r}</span>`;
1197
+ return `<div style="${a}">${o ? `<a${h} href="${U(o)}" target="${m.openInNewTab ? "_blank" : "_self"}" style="text-decoration: none;">${s}</a>` : `<span${h}>${s}</span>`}</div>`;
1198
+ }
1199
+ case "table": {
1200
+ let e = u(d), t = `${f.borderWidth || "1px"} ${f.borderStyle || "solid"} ${f.borderColor || "#cbd5e1"}`, n = (n, r, i) => {
1201
+ let a = i ? "th" : "td", o = i ? f.headerBgColor || "#f8fafc" : e.striped && r % 2 == 1 ? "#f8fafc" : f.contentBgColor || "#ffffff", s = i ? f.headerTextColor || "#1e293b" : f.contentTextColor || "#475569", c = i ? f.headerTextAlign || "left" : f.contentTextAlign || "left";
1202
+ return `<tr>${n.map((e) => {
1203
+ let n = R({
1204
+ padding: f.cellPadding || "8px",
1205
+ border: t,
1206
+ backgroundColor: o,
1207
+ color: s,
1208
+ textAlign: c,
1209
+ lineHeight: f.contentLineHeight,
1210
+ letterSpacing: f.contentLetterSpacing,
1211
+ fontWeight: i ? "700" : void 0
1212
+ });
1213
+ return `<${a} style="${n}">${e || "&nbsp;"}</${a}>`;
1214
+ }).join("")}</tr>`;
1215
+ }, r = e.enableHeader && e.cells.length > 0 ? `<thead>${n(e.cells[0], 0, !0)}</thead>` : "", i = +!!e.enableHeader, a = e.enableFooter ? e.cells.length - 1 : e.cells.length, o = e.cells.slice(i, Math.max(i, a)).map((e, t) => n(e, t, !1)).join(""), s = e.enableFooter && e.cells.length > i ? `<tfoot>${n(e.cells[e.cells.length - 1], e.cells.length - 1, !1)}</tfoot>` : "", c = R({
1216
+ borderCollapse: "collapse",
1217
+ width: "100%"
1218
+ });
1219
+ return `<div${h} style="${R({
1220
+ padding: f.padding,
1221
+ margin: f.margin,
1222
+ overflowX: "auto"
1223
+ })}"><table style="${c}">${r}<tbody>${o}</tbody>${s}</table></div>`;
1224
+ }
1225
+ case "video": {
1226
+ let e = r(m.videoUrl), t = m.linkType === "email" ? `mailto:${m.href || ""}` : m.href || m.videoUrl || "#", n = m.target || "_blank";
1227
+ return `<div${h} style="${R({
1228
+ padding: f.padding,
1229
+ margin: f.margin,
1230
+ borderRadius: f.borderRadius,
1231
+ overflow: "hidden"
1232
+ })}"><a href="${U(t)}" target="${U(n)}" style="position: relative; display: block; text-decoration: none;"><img src="${U(e.thumbnailUrl)}" alt="${U(m.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>`;
1233
+ }
1234
+ case "timer": {
1235
+ let e = m.showLabels !== !1, t = R({
1236
+ fontFamily: f.digitsFontFamily,
1237
+ fontSize: f.digitsFontSize || "40px",
1238
+ color: f.digitsColor || "#1e293b",
1239
+ fontWeight: "800"
1240
+ }), r = R({
1241
+ fontFamily: f.labelsFontFamily,
1242
+ fontSize: f.labelsFontSize || "16px",
1243
+ color: f.labelsColor || "#64748b"
1244
+ }), i = R({
1245
+ backgroundColor: f.backgroundColor || "#f8fafc",
1246
+ borderRadius: f.borderRadius || "8px",
1247
+ padding: f.padding || "16px",
1248
+ textAlign: "center"
1249
+ }), a = (n, i, a) => `<div style="display: inline-flex; flex-direction: column; align-items: center; padding: 0 10px;"><span data-unit="${n}" style="${t}">${a}</span>${e ? `<span style="${r}">${i}</span>` : ""}</div>`, o = n(m.targetDate), s = U(m.targetDate || "2026-12-31T23:59:59"), c = `<script>(function(){var wrap=document.querySelector(${JSON.stringify(`[data-plexo-id="${d.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>`;
1250
+ return `<div${h} 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>${c}</div>`;
1251
+ }
1252
+ case "carousel": {
1253
+ let e = Array.isArray(m.images) ? m.images : [], t = R({
1254
+ padding: f.padding || "10px",
1255
+ margin: f.margin,
1256
+ backgroundColor: f.backgroundColor,
1257
+ position: "relative",
1258
+ overflow: "hidden",
1259
+ borderRadius: "12px"
1260
+ });
1261
+ if (e.length === 0) return `<div${h} style="${t}"><div style="padding: 40px; text-align: center; color: #94a3b8;">No images in carousel</div></div>`;
1262
+ let n = Math.min(e.length - 1, Math.max(0, parseInt(String(m.activeIdx), 10) || 0)), r = e.map((e, t) => `<div data-slide-idx="${t}" style="display: ${t === n ? "block" : "none"};"><img src="${U(e.src)}" alt="${U(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;">${U(e.caption)}</div>` : ""}</div>`).join(""), i = 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 === n ? "#4f46e5" : "#cbd5e1"}; cursor: pointer;"></button>`).join("")}</div>` : "";
1263
+ return `<div${h} data-active-idx="${n}" style="${t}">${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>" : ""}${r}${i}${`<script>(function(){var wrap=document.querySelector(${JSON.stringify(`[data-plexo-id="${d.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>`;
1264
+ }
1265
+ default: return q(d.type);
1130
1266
  }
1131
- }, F = (e, t) => {
1267
+ }, Y = (e, t) => {
1132
1268
  if (!e || typeof e != "object") return "";
1133
- let n = w(e);
1269
+ let n = L(e);
1134
1270
  if (!n) 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. -->`;
1135
- let r = T(n.style || {}), i = j("id", n.htmlId), a = j("class", n.htmlClass), o = n.id || `row-${Math.random().toString(36).substring(2, 9)}`;
1136
- O(t, o, n.style, "tablet", n.styleTablet), O(t, o, n.style, "mobile", n.styleMobile);
1271
+ let r = R(n.style || {}), i = W("id", n.htmlId), a = W("class", n.htmlClass), o = n.id || `row-${Math.random().toString(36).substring(2, 9)}`;
1272
+ V(t, o, n.style, "tablet", n.styleTablet), V(t, o, n.style, "mobile", n.styleMobile);
1137
1273
  let s = `\n <!-- ROW START: ${n.id || "row"} -->`;
1138
1274
  s += `\n <div data-plexo-id="${o}"${i}${a} class="plexo-row" style="display: flex; flex-wrap: wrap; margin-left: -8px; margin-right: -8px; ${r}">`;
1139
1275
  let c = Array.isArray(n.columns) ? n.columns : [];
1140
1276
  for (let e of c) {
1141
1277
  if (!e) continue;
1142
- let n = e.styles || e.style || {}, r = T(n), i = j("id", e.attrs?.htmlId), a = e.attrs?.htmlClass ? ` ${e.attrs.htmlClass}` : "", o = e.id || `col-${Math.random().toString(36).substring(2, 9)}`;
1143
- O(t, o, n, "tablet", e.stylesTablet), O(t, o, n, "mobile", e.stylesMobile), s += `\n <!-- COLUMN START: ${e.id || "col"} -->`, s += `\n <div data-plexo-id="${o}"${i} class="plexo-col${a}" style="box-sizing: border-box; padding-left: 8px; padding-right: 8px; width: ${e.width || "100%"}; ${r}">`;
1278
+ let n = e.styles || e.style || {}, r = R(n), i = W("id", e.attrs?.htmlId), a = e.attrs?.htmlClass ? ` ${e.attrs.htmlClass}` : "", o = e.id || `col-${Math.random().toString(36).substring(2, 9)}`;
1279
+ V(t, o, n, "tablet", e.stylesTablet), V(t, o, n, "mobile", e.stylesMobile), s += `\n <!-- COLUMN START: ${e.id || "col"} -->`, s += `\n <div data-plexo-id="${o}"${i} class="plexo-col${a}" style="box-sizing: border-box; padding-left: 8px; padding-right: 8px; width: ${e.width || "100%"}; ${r}">`;
1144
1280
  let c = Array.isArray(e.elements) ? e.elements : [];
1145
1281
  for (let e of c) {
1146
1282
  if (!e) continue;
1147
- let n = e.attributes || {}, r = typeof n.htmlClassNames == "string" ? n.htmlClassNames : typeof n.htmlClass == "string" ? n.htmlClass : typeof n.className == "string" ? n.className : "", i = j("id", n.htmlId), a = j("class", r), o = e.style?.display, c = o === "inline-block" || o === "inline" || o === "inline-flex" ? `margin-bottom: 16px; display: ${o}; vertical-align: top;` : "margin-bottom: 16px;";
1148
- O(t, e.id, e.style, "tablet", e.styleTablet), O(t, e.id, e.style, "mobile", e.styleMobile), s += `\n <div${i}${a} style="${c}">`, s += `\n ${P(e)}`, s += "\n </div>";
1283
+ let n = e.attributes || {}, r = typeof n.htmlClassNames == "string" ? n.htmlClassNames : typeof n.htmlClass == "string" ? n.htmlClass : typeof n.className == "string" ? n.className : "", i = W("id", n.htmlId), a = W("class", r), o = e.style?.display, c = o === "inline-block" || o === "inline" || o === "inline-flex" ? `margin-bottom: 16px; display: ${o}; vertical-align: top;` : "margin-bottom: 16px;";
1284
+ V(t, e.id, e.style, "tablet", e.styleTablet), V(t, e.id, e.style, "mobile", e.styleMobile), s += `\n <div${i}${a} style="${c}">`, s += `\n ${J(e)}`, s += "\n </div>";
1149
1285
  }
1150
1286
  let l = Array.isArray(e.nestedRows) ? e.nestedRows : [];
1151
- for (let e of l) s += F(e, t);
1287
+ for (let e of l) s += Y(e, t);
1152
1288
  s += "\n </div>";
1153
1289
  }
1154
1290
  return s += "\n </div>", s;
1155
- }, I = (e) => {
1291
+ }, X = (e) => {
1156
1292
  if (!e || typeof e != "object") return "<!-- Empty template -->";
1157
1293
  let t = e.designJson || e.template || e, n = t.body || (Array.isArray(t.rows) ? {
1158
1294
  style: t.style || {},
@@ -1179,20 +1315,20 @@ var k = () => ({
1179
1315
  "textColor"
1180
1316
  ], a = {};
1181
1317
  for (let e of Object.keys(r)) i.includes(e) || (a[e] = r[e]);
1182
- let o = T(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 = j("id", r.htmlId), d = j("class", r.htmlClass), f = typeof r.customCss == "string" && r.customCss.trim() ? r.customCss.trim() : "", p = typeof r.customJs == "string" && r.customJs.trim() ? r.customJs.trim() : "", m = Array.isArray(n.rows) ? n.rows : Array.isArray(t.rows) ? t.rows : Array.isArray(e.rows) ? e.rows : [], h = u(l(m, [r.fontFamily])), g = {
1318
+ 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 = W("id", r.htmlId), l = W("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 = Array.isArray(n.rows) ? n.rows : Array.isArray(t.rows) ? t.rows : Array.isArray(e.rows) ? e.rows : [], p = x(b(f, [r.fontFamily])), m = {
1183
1319
  tablet: [],
1184
1320
  mobile: []
1185
- }, _ = "";
1186
- for (let e of m) _ += F(e, g);
1187
- let v = g.tablet.length ? `\n ${g.tablet.join("\n ")}` : "", y = g.mobile.length ? `\n ${g.mobile.join("\n ")}` : "", b = `<!DOCTYPE html>
1321
+ }, h = "";
1322
+ for (let e of f) h += Y(e, m);
1323
+ let g = m.tablet.length ? `\n ${m.tablet.join("\n ")}` : "", _ = m.mobile.length ? `\n ${m.mobile.join("\n ")}` : "", v = `<!DOCTYPE html>
1188
1324
  <html>
1189
1325
  <head>
1190
1326
  <meta charset="utf-8">
1191
- <title>${A(s)}</title>
1327
+ <title>${U(s)}</title>
1192
1328
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
1193
- ${h ? `<link rel="stylesheet" href="${h}">` : ""}
1329
+ ${p ? `<link rel="stylesheet" href="${p}">` : ""}
1194
1330
  <style>
1195
- body { margin: 0; font-family: ${C}; }
1331
+ body { margin: 0; font-family: ${P}; }
1196
1332
  .plexo-row {
1197
1333
  display: flex;
1198
1334
  flex-wrap: wrap;
@@ -1200,7 +1336,7 @@ var k = () => ({
1200
1336
  /* Tablet: auto-scaled fonts/heights/spacing (see utilities/responsiveDefaults.ts) and
1201
1337
  any explicit per-element styleTablet/stylesTablet override — columns stay side by
1202
1338
  side at this width. */
1203
- @media (min-width: 769px) and (max-width: 1024px) {${v}
1339
+ @media (min-width: 769px) and (max-width: 1024px) {${g}
1204
1340
  }
1205
1341
  @media (max-width: 768px) {
1206
1342
  .plexo-row {
@@ -1210,26 +1346,26 @@ var k = () => ({
1210
1346
  width: 100% !important;
1211
1347
  max-width: 100% !important;
1212
1348
  margin-bottom: 16px;
1213
- }${y}
1349
+ }${_}
1214
1350
  }
1215
1351
  </style>
1216
- ${f ? `<style>\n${f}\n </style>` : ""}
1352
+ ${u ? `<style>\n${u}\n </style>` : ""}
1217
1353
  </head>
1218
- <body${c}${d} style="${o}">
1354
+ <body${c}${l} style="${o}">
1219
1355
  <div style="max-width: 1200px; margin: 0 auto; width: 100%;">`;
1220
- return b += _, b += `\n </div>
1221
- ${p ? ` <script>\n${p}\n <\/script>` : ""}
1356
+ return v += h, v += `\n </div>
1357
+ ${d ? ` <script>\n${d}\n <\/script>` : ""}
1222
1358
  </body>
1223
- </html>`, b = b.replace(/<span[^>]*data-merge-val="([^"]*)"[^>]*>[\s\S]*?<\/span>/gi, "$1"), b;
1359
+ </html>`, v = v.replace(/<span[^>]*data-merge-val="([^"]*)"[^>]*>[\s\S]*?<\/span>/gi, "$1"), v;
1224
1360
  };
1225
- function L(e) {
1226
- return I(e).replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
1361
+ function Z(e) {
1362
+ return X(e).replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
1227
1363
  }
1228
- function R(e) {
1229
- return I(e);
1364
+ function Q(e) {
1365
+ return X(e);
1230
1366
  }
1231
- function z(e) {
1367
+ function $(e) {
1232
1368
  return e;
1233
1369
  }
1234
1370
  //#endregion
1235
- export { s as _, R as a, t as b, k as c, S as d, u as f, a as g, n as h, I as i, E as l, o as m, M as n, L as o, l as p, O as r, w as s, C as t, z as u, r as v, e as x, i as y };
1371
+ export { v as _, Q as a, f as b, H as c, N as d, x as f, g, p as h, X as i, z as l, _ as m, G as n, Z as o, b as p, V as r, L as s, P as t, $ as u, m as v, d as x, h as y };