@templatical/editor 0.8.5 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/{AiChatSidebar-uhkhnXQd.js → AiChatSidebar-BUKj9n02.js} +4 -4
  2. package/dist/{AiFeatureMenu-DXNKvXP5.js → AiFeatureMenu-Co14YVJt.js} +3 -3
  3. package/dist/{BlockIssueBadge-DM-vXeD6.js → BlockIssueBadge-DThKKeub.js} +2 -2
  4. package/dist/{CloudEditor-BSkPQjwo.js → CloudEditor-CAtw_sFC.js} +217 -216
  5. package/dist/{CollaboratorBar-CP76Sh6c.js → CollaboratorBar-Bc6q0gB9.js} +2 -2
  6. package/dist/{CommentsSidebar-_llWQ4VT.js → CommentsSidebar-DiH4R4F0.js} +3 -3
  7. package/dist/{CountdownBlock-I99sC0C5.js → CountdownBlock-BTPefclD.js} +2 -2
  8. package/dist/{CountdownToolbar-BUhOUiQ9.js → CountdownToolbar-Dvr2icg-.js} +2 -2
  9. package/dist/{DesignReferenceSidebar-CfJqJ7l6.js → DesignReferenceSidebar-BP32MgpS.js} +2 -2
  10. package/dist/{IssuesPanel-4MKZe8yP.js → IssuesPanel-B1LT91IX.js} +2 -2
  11. package/dist/{ModuleBrowserModal-BFQTm6uY.js → ModuleBrowserModal-CWegFoOA.js} +77 -85
  12. package/dist/{ModulePreviewCanvas-DeqMpo73.js → ModulePreviewCanvas-D9WUSSRT.js} +2 -2
  13. package/dist/{NumberWithSuffix-CxMFy_j3.js → NumberWithSuffix-CxUBW_V2.js} +2 -2
  14. package/dist/{ParagraphEditor-DqomSbW3.js → ParagraphEditor-DrAz2yot.js} +115 -115
  15. package/dist/{RichTextEditorContent-B_KCY6T1.js → RichTextEditorContent-gR169m1-.js} +4 -4
  16. package/dist/{SaveModuleDialog-DKcpPeWd.js → SaveModuleDialog-DWidA0c9.js} +6 -6
  17. package/dist/{SnapshotHistory-Z9RQj53S.js → SnapshotHistory-CIo2Jaw-.js} +4 -4
  18. package/dist/{TemplateScoringPanel-BIwEwFxD.js → TemplateScoringPanel-seBvvn8O.js} +2 -2
  19. package/dist/{TestEmailModal-C8DhylO1.js → TestEmailModal-BuCuWp3N.js} +3 -3
  20. package/dist/{TitleEditor-CgLrn6R3.js → TitleEditor-BmW0uMl7.js} +64 -64
  21. package/dist/{TplModal-CbwRwmR3.js → TplModal-YFpBaiLj.js} +4 -4
  22. package/dist/{blockTypeIcons-CccKujXP.js → blockTypeIcons-DCkHXPhx.js} +19 -11
  23. package/dist/bundle-stats.json +8 -8
  24. package/dist/cdn/chunks/{AiFeatureMenu-ChNv7XXj.js → AiFeatureMenu-Dayzk2H7.js} +2 -2
  25. package/dist/cdn/chunks/{AiFeatureMenu-ChNv7XXj.js.map → AiFeatureMenu-Dayzk2H7.js.map} +1 -1
  26. package/dist/cdn/chunks/{BlockIssueBadge-BovmWgok.js → BlockIssueBadge-D_US2wqo.js} +4 -4
  27. package/dist/cdn/chunks/{BlockIssueBadge-BovmWgok.js.map → BlockIssueBadge-D_US2wqo.js.map} +1 -1
  28. package/dist/cdn/chunks/{CloudEditor-CHF_P5OL.js → CloudEditor-CyJItWsK.js} +186 -185
  29. package/dist/cdn/chunks/{CloudEditor-CHF_P5OL.js.map → CloudEditor-CyJItWsK.js.map} +1 -1
  30. package/dist/cdn/chunks/{CollaboratorBar-Bjr5YSh0.js → CollaboratorBar-C4CFs5EJ.js} +3 -3
  31. package/dist/cdn/chunks/{CollaboratorBar-Bjr5YSh0.js.map → CollaboratorBar-C4CFs5EJ.js.map} +1 -1
  32. package/dist/cdn/chunks/{CountdownBlock-KyzvhjMF.js → CountdownBlock-D6lCXhZA.js} +2 -2
  33. package/dist/cdn/chunks/{CountdownBlock-KyzvhjMF.js.map → CountdownBlock-D6lCXhZA.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownToolbar-bJtMHGYz.js → CountdownToolbar-BsGUxoRv.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownToolbar-bJtMHGYz.js.map → CountdownToolbar-BsGUxoRv.js.map} +1 -1
  36. package/dist/cdn/chunks/{IssuesPanel-DFSYTQXy.js → IssuesPanel-DeHTmRDz.js} +5 -5
  37. package/dist/cdn/chunks/{IssuesPanel-DFSYTQXy.js.map → IssuesPanel-DeHTmRDz.js.map} +1 -1
  38. package/dist/cdn/chunks/{ModuleBrowserModal-DS0BGRhZ.js → ModuleBrowserModal-Cgjz4xAz.js} +8 -8
  39. package/dist/cdn/chunks/ModuleBrowserModal-Cgjz4xAz.js.map +1 -0
  40. package/dist/cdn/chunks/{ModulePreviewCanvas-Dwn2cA5a.js → ModulePreviewCanvas-CeS9PsAA.js} +2 -2
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-Dwn2cA5a.js.map → ModulePreviewCanvas-CeS9PsAA.js.map} +1 -1
  42. package/dist/cdn/chunks/{NumberWithSuffix-BNBeHv0P.js → NumberWithSuffix-Bp-idLCc.js} +2 -2
  43. package/dist/cdn/chunks/{NumberWithSuffix-BNBeHv0P.js.map → NumberWithSuffix-Bp-idLCc.js.map} +1 -1
  44. package/dist/cdn/chunks/{ParagraphEditor-C4TrTIOm.js → ParagraphEditor-fM9aFu8T.js} +105 -105
  45. package/dist/cdn/chunks/ParagraphEditor-fM9aFu8T.js.map +1 -0
  46. package/dist/cdn/chunks/{RichTextEditorContent-HNFFL4aK.js → RichTextEditorContent-DwNPE5H5.js} +4 -4
  47. package/dist/cdn/chunks/{RichTextEditorContent-HNFFL4aK.js.map → RichTextEditorContent-DwNPE5H5.js.map} +1 -1
  48. package/dist/cdn/chunks/{SaveModuleDialog-CbHqqeID.js → SaveModuleDialog-BrtDXzIz.js} +4 -4
  49. package/dist/cdn/chunks/SaveModuleDialog-BrtDXzIz.js.map +1 -0
  50. package/dist/cdn/chunks/TitleEditor-D0rSnye0.js +175 -0
  51. package/dist/cdn/chunks/TitleEditor-D0rSnye0.js.map +1 -0
  52. package/dist/cdn/chunks/{blockTypeIcons-BUlgu9JL.js → blockTypeIcons-YOEe5mDE.js} +3 -3
  53. package/dist/cdn/chunks/{blockTypeIcons-BUlgu9JL.js.map → blockTypeIcons-YOEe5mDE.js.map} +1 -1
  54. package/dist/{de-ED7c5RpG.js → cdn/chunks/de-CATfXDKV.js} +14 -1
  55. package/dist/cdn/chunks/{de-ED7c5RpG.js.map → de-CATfXDKV.js.map} +1 -1
  56. package/dist/cdn/chunks/{en-ivilDUn0.js → en-CwCAgYL5.js} +13 -2
  57. package/dist/cdn/chunks/{en-ivilDUn0.js.map → en-CwCAgYL5.js.map} +1 -1
  58. package/dist/cdn/chunks/{extensions-DK_lVs7A.js → extensions-GYsbQFPr.js} +25 -22
  59. package/dist/cdn/chunks/extensions-GYsbQFPr.js.map +1 -0
  60. package/dist/cdn/chunks/{features-LiilsBqW.js → features-D-2kVhHY.js} +1232 -1189
  61. package/dist/cdn/chunks/features-D-2kVhHY.js.map +1 -0
  62. package/dist/cdn/chunks/{icons-Bn2SIR30.js → icons-fZoyKV_s.js} +2 -2
  63. package/dist/cdn/chunks/{icons-Bn2SIR30.js.map → icons-fZoyKV_s.js.map} +1 -1
  64. package/dist/cdn/chunks/{media-library-Bb2PavAd.js → media-library-CO2WOETY.js} +240 -240
  65. package/dist/cdn/chunks/{media-library-Bb2PavAd.js.map → media-library-CO2WOETY.js.map} +1 -1
  66. package/dist/{pt-BR-B5tm2iBl.js → cdn/chunks/pt-BR-D3Mg7AKe.js} +14 -1
  67. package/dist/cdn/chunks/{pt-BR-B5tm2iBl.js.map → pt-BR-D3Mg7AKe.js.map} +1 -1
  68. package/dist/cdn/chunks/{quality-Bpj6kNxR.js → quality-BxPiS-wv.js} +464 -464
  69. package/dist/cdn/chunks/{quality-Bpj6kNxR.js.map → quality-BxPiS-wv.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-CYYyu-Di.js → renderer-7z2t_bYQ.js} +68 -68
  71. package/dist/cdn/chunks/{renderer-CYYyu-Di.js.map → renderer-7z2t_bYQ.js.map} +1 -1
  72. package/dist/cdn/chunks/{src-CQjZnxvw.js → src-ftxPuuQh.js} +4 -4
  73. package/dist/cdn/chunks/{src-CQjZnxvw.js.map → src-ftxPuuQh.js.map} +1 -1
  74. package/dist/cdn/chunks/{styles-5g8XOS68.js → styles-o0HIrw9F.js} +877 -622
  75. package/dist/cdn/chunks/styles-o0HIrw9F.js.map +1 -0
  76. package/dist/cdn/editor.css +1 -1
  77. package/dist/cdn/editor.js +102 -101
  78. package/dist/cdn/editor.js.map +1 -1
  79. package/dist/{cdn/chunks/de-ED7c5RpG.js → de-CATfXDKV.js} +12 -3
  80. package/dist/{dist-HO0vjY5Z.js → dist-CNLAS2v2.js} +130 -124
  81. package/dist/{en-ivilDUn0.js → en-CwCAgYL5.js} +12 -1
  82. package/dist/{extensions-DeNHyWwh.js → extensions-Mj2-D8uK.js} +6 -3
  83. package/dist/{keys-B8K7Z7Ef.js → keys-BiQlvx51.js} +3 -3
  84. package/dist/{cdn/chunks/pt-BR-B5tm2iBl.js → pt-BR-D3Mg7AKe.js} +12 -3
  85. package/dist/style.css +1 -1
  86. package/dist/{styles-Bgqv7rLA.js → styles-CJtcKmsx.js} +857 -601
  87. package/dist/templatical-editor.js +104 -103
  88. package/dist/{useCloudI18n-DFzVgYhJ.js → useCloudI18n-DKWJg6rJ.js} +1 -1
  89. package/dist/{useEditorCore-CaOVDL_m.js → useEditorCore-CEkf_VWX.js} +662 -632
  90. package/dist/{useI18n-CBbStVlD.js → useI18n-Besvmtxy.js} +1 -1
  91. package/dist/useMergeTag-WNzaCpXR.js +44 -0
  92. package/dist/{usePopoverRoot-62PlZQQ3.js → usePopoverRoot-CKt956u-.js} +1 -1
  93. package/package.json +7 -7
  94. package/dist/cdn/chunks/ModuleBrowserModal-DS0BGRhZ.js.map +0 -1
  95. package/dist/cdn/chunks/ParagraphEditor-C4TrTIOm.js.map +0 -1
  96. package/dist/cdn/chunks/SaveModuleDialog-CbHqqeID.js.map +0 -1
  97. package/dist/cdn/chunks/TitleEditor-gr-eBUq_.js +0 -175
  98. package/dist/cdn/chunks/TitleEditor-gr-eBUq_.js.map +0 -1
  99. package/dist/cdn/chunks/extensions-DK_lVs7A.js.map +0 -1
  100. package/dist/cdn/chunks/features-LiilsBqW.js.map +0 -1
  101. package/dist/cdn/chunks/styles-5g8XOS68.js.map +0 -1
  102. package/dist/useMergeTag-RWsgUcSh.js +0 -34
@@ -1,11 +1,11 @@
1
1
  import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
2
- import { An as t, Cn as n, Dn as r, En as i, Fn as a, In as o, Mn as s, Nn as c, On as l, Pn as u, Tn as d, jn as f, kn as p, wn as m } from "./features-LiilsBqW.js";
2
+ import { An as t, Dn as n, En as r, Fn as i, In as a, Ln as o, Mn as s, Nn as c, On as l, Pn as u, Rn as d, Tn as f, jn as p, kn as m } from "./features-D-2kVhHY.js";
3
3
  //#endregion
4
4
  //#region ../renderer/src/render-context.ts
5
5
  var h = `https://unpkg.com/@templatical/renderer@${{
6
6
  name: "@templatical/renderer",
7
7
  description: "Render Templatical email templates to MJML",
8
- version: "0.8.5",
8
+ version: "0.9.0",
9
9
  bugs: "https://github.com/templatical/sdk/issues",
10
10
  dependencies: { "@templatical/types": "workspace:*" },
11
11
  devDependencies: {
@@ -90,9 +90,9 @@ function S(e) {
90
90
  return e === "" ? "" : x(e).replace(/[;{}\r\n]/g, "");
91
91
  }
92
92
  function C(e) {
93
- return e === "" ? "" : w(e, (e) => T(e, "data-merge-tag") ?? T(e, "data-logic-merge-tag"));
93
+ return e === "" ? "" : ee(e, (e) => w(e, "data-merge-tag") ?? w(e, "data-logic-merge-tag"));
94
94
  }
95
- function w(e, t) {
95
+ function ee(e, t) {
96
96
  let n = "", r = 0;
97
97
  for (; r < e.length;) {
98
98
  let i = e.indexOf("<span", r);
@@ -124,31 +124,31 @@ function w(e, t) {
124
124
  }
125
125
  return n;
126
126
  }
127
- function T(e, t) {
127
+ function w(e, t) {
128
128
  let n = RegExp(`(?:^|\\s)${t}="([^"<>]*)"`).exec(e);
129
129
  return n ? n[1] : null;
130
130
  }
131
131
  //#endregion
132
132
  //#region ../renderer/src/padding.ts
133
- function E(e) {
133
+ function T(e) {
134
134
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
135
135
  }
136
136
  //#endregion
137
137
  //#region ../renderer/src/utils.ts
138
- function D(e, t) {
138
+ function E(e, t) {
139
139
  return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${e}"` : "";
140
140
  }
141
141
  //#endregion
142
142
  //#region ../renderer/src/visibility.ts
143
- function O(e) {
143
+ function D(e) {
144
144
  let t = e.visibility;
145
145
  return t ? !t.desktop && !t.tablet && !t.mobile : !1;
146
146
  }
147
- function k(e) {
148
- let t = A(e);
147
+ function O(e) {
148
+ let t = k(e);
149
149
  return t === "" ? "" : ` css-class="${t}"`;
150
150
  }
151
- function A(e) {
151
+ function k(e) {
152
152
  let t = e.visibility;
153
153
  if (!t) return "";
154
154
  let n = [];
@@ -156,39 +156,39 @@ function A(e) {
156
156
  }
157
157
  //#endregion
158
158
  //#region ../renderer/src/renderers/title.ts
159
- function ee(e, t) {
160
- if (O(e)) return "";
161
- let n = E(e.styles.padding), r = D(e.styles.backgroundColor, "container"), i = te(C(e.content)), a = o[e.level] ?? o[2], s = x(e.color), c = e.textAlign, l = ne(e.fontFamily, t), u = k(e), d = `h${o[e.level] ? e.level : 2}`;
159
+ function te(e, t) {
160
+ if (D(e)) return "";
161
+ let n = T(e.styles.padding), r = E(e.styles.backgroundColor, "container"), i = ne(C(e.content)), a = d[e.level] ?? d[2], o = x(e.color), s = e.textAlign, c = re(e.fontFamily, t), l = O(e), u = `h${d[e.level] ? e.level : 2}`;
162
162
  return `<mj-text
163
163
  font-size="${a}px"
164
- color="${s}"
165
- align="${c}"
164
+ color="${o}"
165
+ align="${s}"
166
166
  line-height="1.3"
167
- padding="${n}"${r}${l}${u}
168
- ><${d} style="margin:0;font-size:inherit;color:inherit;line-height:inherit">${i}</${d}></mj-text>`;
167
+ padding="${n}"${r}${c}${l}
168
+ ><${u} style="margin:0;font-size:inherit;color:inherit;line-height:inherit">${i}</${u}></mj-text>`;
169
169
  }
170
- function te(e) {
170
+ function ne(e) {
171
171
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
172
172
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
173
173
  }
174
- function ne(e, t) {
174
+ function re(e, t) {
175
175
  return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
176
176
  }
177
177
  //#endregion
178
178
  //#region ../renderer/src/renderers/paragraph.ts
179
- function re(e, t) {
180
- if (O(e) || e.content.replace(/<\/?p\b[^<>]*>/gi, "").trim() === "") return "";
181
- let n = E(e.styles.padding), r = D(e.styles.backgroundColor, "container"), i = C(e.content);
179
+ function A(e, t) {
180
+ if (D(e) || e.content.replace(/<\/?p\b[^<>]*>/gi, "").trim() === "") return "";
181
+ let n = T(e.styles.padding), r = E(e.styles.backgroundColor, "container"), i = C(e.content);
182
182
  return `<mj-text
183
183
  line-height="1.5"
184
- padding="${n}"${r}${k(e)}
184
+ padding="${n}"${r}${O(e)}
185
185
  >${i}</mj-text>`;
186
186
  }
187
187
  //#endregion
188
188
  //#region ../renderer/src/renderers/image.ts
189
189
  function j(e, t) {
190
- if (O(e) || e.src === "") return "";
191
- let n = E(e.styles.padding), r = D(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = k(e), o = "";
190
+ if (D(e) || e.src === "") return "";
191
+ let n = T(e.styles.padding), r = E(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = O(e), o = "";
192
192
  e.linkUrl && (o = ` href="${x(e.linkUrl)}"`, e.linkOpenInNewTab && (o += " target=\"_blank\" rel=\"noopener\""));
193
193
  let s = x(e.src), c = e.decorative === !0;
194
194
  return `<mj-image
@@ -202,8 +202,8 @@ function j(e, t) {
202
202
  //#endregion
203
203
  //#region ../renderer/src/renderers/button.ts
204
204
  function M(e, t) {
205
- if (O(e)) return "";
206
- let n = E(e.styles.padding), r = D(e.styles.backgroundColor, "container"), i = E(e.buttonPadding), a = e.url === "" ? "" : x(e.url), o = a === "" ? "" : ` href="${a}"`, s = x(e.backgroundColor), c = x(e.textColor), l = e.fontSize, u = e.borderRadius, d = b(e.text);
205
+ if (D(e)) return "";
206
+ let n = T(e.styles.padding), r = E(e.styles.backgroundColor, "container"), i = T(e.buttonPadding), a = e.url === "" ? "" : x(e.url), o = a === "" ? "" : ` href="${a}"`, s = x(e.backgroundColor), c = x(e.textColor), l = e.fontSize, u = e.borderRadius, d = b(e.text);
207
207
  return `<mj-button${o}${e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : ""}
208
208
  background-color="${s}"
209
209
  color="${c}"
@@ -211,7 +211,7 @@ function M(e, t) {
211
211
  font-weight="bold"
212
212
  border-radius="${u}px"
213
213
  inner-padding="${i}"
214
- padding="${n}"${r}${N(e.fontFamily, t)}${k(e)}
214
+ padding="${n}"${r}${N(e.fontFamily, t)}${O(e)}
215
215
  >${d}</mj-button>`;
216
216
  }
217
217
  function N(e, t) {
@@ -220,37 +220,37 @@ function N(e, t) {
220
220
  //#endregion
221
221
  //#region ../renderer/src/renderers/divider.ts
222
222
  function P(e, t) {
223
- if (O(e)) return "";
224
- let n = E(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${x(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : e.width + "px";
223
+ if (D(e)) return "";
224
+ let n = T(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${x(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : e.width + "px";
225
225
  return `<mj-divider
226
226
  border-width="${e.thickness}px"
227
227
  border-style="${e.lineStyle}"
228
228
  border-color="${x(e.color)}"
229
229
  width="${i}"
230
- padding="${n}"${r}${k(e)}
230
+ padding="${n}"${r}${O(e)}
231
231
  />`;
232
232
  }
233
233
  //#endregion
234
234
  //#region ../renderer/src/renderers/spacer.ts
235
235
  function F(e, t) {
236
- return O(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${x(e.styles.backgroundColor)}"` : ""}${k(e)} />`;
236
+ return D(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${x(e.styles.backgroundColor)}"` : ""}${O(e)} />`;
237
237
  }
238
238
  //#endregion
239
239
  //#region ../renderer/src/renderers/html.ts
240
240
  function I(e, t) {
241
- if (O(e) || !t.allowHtmlBlocks) return "";
241
+ if (D(e) || !t.allowHtmlBlocks) return "";
242
242
  let n = e.content;
243
- return n === "" ? "" : `<mj-text${k(e)}>
243
+ return n === "" ? "" : `<mj-text${O(e)}>
244
244
  ${n}
245
245
  </mj-text>`;
246
246
  }
247
247
  //#endregion
248
248
  //#region ../renderer/src/renderers/social.ts
249
249
  function L(e, t) {
250
- if (O(e)) return "";
250
+ if (D(e)) return "";
251
251
  let n = e.icons;
252
252
  if (n.length === 0) return "";
253
- let r = E(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${x(e.styles.backgroundColor)}"` : "", a = k(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = e.spacing, u;
253
+ let r = T(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${x(e.styles.backgroundColor)}"` : "", a = O(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = e.spacing, u;
254
254
  switch (s) {
255
255
  case "small":
256
256
  u = 24;
@@ -293,8 +293,8 @@ ${n.map((e, n) => {
293
293
  //#endregion
294
294
  //#region ../renderer/src/renderers/menu.ts
295
295
  function R(e, t) {
296
- if (O(e) || e.items.length === 0) return "";
297
- let n = E(e.styles.padding), r = D(e.styles.backgroundColor, "container"), i = k(e), a = V(e.fontFamily, t), o = e.textAlign;
296
+ if (D(e) || e.items.length === 0) return "";
297
+ let n = T(e.styles.padding), r = E(e.styles.backgroundColor, "container"), i = O(e), a = V(e.fontFamily, t), o = e.textAlign;
298
298
  return `<mj-text
299
299
  font-size="${e.fontSize}px"
300
300
  color="${x(e.color)}"
@@ -318,8 +318,8 @@ function V(e, t) {
318
318
  //#endregion
319
319
  //#region ../renderer/src/renderers/table.ts
320
320
  function H(e, t) {
321
- if (O(e) || e.rows.length === 0) return "";
322
- let n = E(e.styles.padding), r = D(e.styles.backgroundColor, "container"), i = k(e), a = K(e.fontFamily, t);
321
+ if (D(e) || e.rows.length === 0) return "";
322
+ let n = T(e.styles.padding), r = E(e.styles.backgroundColor, "container"), i = O(e), a = ie(e.fontFamily, t);
323
323
  return `<mj-text
324
324
  font-size="${e.fontSize}px"
325
325
  color="${x(e.color)}"
@@ -347,17 +347,17 @@ function G(e, t, n, r, i) {
347
347
  let s = o.join("; "), c = C(e.content), l = n ? "th" : "td";
348
348
  return `<${l} style="${s}">${c}</${l}>`;
349
349
  }
350
- function K(e, t) {
350
+ function ie(e, t) {
351
351
  return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
352
352
  }
353
353
  //#endregion
354
354
  //#region ../renderer/src/renderers/custom.ts
355
- function ie(e, t) {
356
- if (O(e)) return "";
355
+ function K(e, t) {
356
+ if (D(e)) return "";
357
357
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
358
358
  if (!n || n === "") return "";
359
- let r = k(e);
360
- return `<mj-text${D(e.styles?.backgroundColor, "container")}${r}>
359
+ let r = O(e);
360
+ return `<mj-text${E(e.styles?.backgroundColor, "container")}${r}>
361
361
  ${n}
362
362
  </mj-text>`;
363
363
  }
@@ -391,16 +391,16 @@ function J(e, t) {
391
391
  }
392
392
  //#endregion
393
393
  //#region ../renderer/src/renderers/section.ts
394
- function Y(e, n, r) {
395
- if (O(e)) return "";
396
- let i = e.columns, a = q(i), o = J(i, n.containerWidth), s = E(e.styles.padding), c = D(e.styles.backgroundColor, "native"), l = k(e), u = e.children, d = [];
394
+ function Y(e, t, n) {
395
+ if (D(e)) return "";
396
+ let r = e.columns, i = q(r), a = J(r, t.containerWidth), o = T(e.styles.padding), c = E(e.styles.backgroundColor, "native"), l = O(e), u = e.children, d = [];
397
397
  for (let e = 0; e < u.length; e++) {
398
- let i = u[e], s = a[e] ?? "100%", c = Math.floor(o[e] ?? n.containerWidth), l = ae(i, n.allowHtmlBlocks).filter((e) => !t(e)), f = n.withContainerWidth(c), p = l.map((e) => r(e, f)).filter((e) => e !== "").join("\n");
399
- d.push(`<mj-column width="${s}">
398
+ let r = u[e], o = i[e] ?? "100%", c = Math.floor(a[e] ?? t.containerWidth), l = ae(r, t.allowHtmlBlocks).filter((e) => !s(e)), f = t.withContainerWidth(c), p = l.map((e) => n(e, f)).filter((e) => e !== "").join("\n");
399
+ d.push(`<mj-column width="${o}">
400
400
  ${p === "" ? "<mj-text>&nbsp;</mj-text>" : p}
401
401
  </mj-column>`);
402
402
  }
403
- return `<mj-section${c} padding="${s}"${l}>
403
+ return `<mj-section${c} padding="${o}"${l}>
404
404
  ${d.join("\n")}
405
405
  </mj-section>`;
406
406
  }
@@ -420,10 +420,10 @@ function oe(e, t) {
420
420
  return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
421
421
  }
422
422
  function se(e, t) {
423
- if (O(e)) return "";
423
+ if (D(e)) return "";
424
424
  let n = oe(e.url, e.thumbnailUrl);
425
425
  if (!n) return "";
426
- let r = E(e.styles.padding), i = D(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = k(e);
426
+ let r = T(e.styles.padding), i = E(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = O(e);
427
427
  return `<mj-image
428
428
  src="${x(n)}"
429
429
  alt="${x(e.alt)}"
@@ -437,8 +437,8 @@ function se(e, t) {
437
437
  }
438
438
  //#endregion
439
439
  //#region ../renderer/src/renderers/index.ts
440
- function X(e, o) {
441
- return t(e) ? Y(e, o, X) : u(e) ? ee(e, o) : p(e) ? re(e, o) : r(e) ? j(e, o) : n(e) ? M(e, o) : d(e) ? P(e, o) : s(e) ? F(e, o) : i(e) ? I(e, o) : f(e) ? L(e, o) : l(e) ? R(e, o) : c(e) ? H(e, o) : a(e) ? se(e, o) : m(e) ? ie(e, o) : "";
440
+ function X(e, d) {
441
+ return s(e) ? Y(e, d, X) : a(e) ? te(e, d) : p(e) ? A(e, d) : m(e) ? j(e, d) : f(e) ? M(e, d) : n(e) ? P(e, d) : u(e) ? F(e, d) : l(e) ? I(e, d) : c(e) ? L(e, d) : t(e) ? R(e, d) : i(e) ? H(e, d) : o(e) ? se(e, d) : r(e) ? K(e, d) : "";
442
442
  }
443
443
  //#endregion
444
444
  //#region ../renderer/src/index.ts
@@ -448,14 +448,14 @@ var ce = /* @__PURE__ */ e({
448
448
  convertMergeTagsToValues: () => C,
449
449
  escapeAttr: () => x,
450
450
  escapeHtml: () => b,
451
- getCssClassAttr: () => k,
452
- getCssClasses: () => A,
451
+ getCssClassAttr: () => O,
452
+ getCssClasses: () => k,
453
453
  getWidthPercentages: () => q,
454
454
  getWidthPixels: () => J,
455
- isHiddenOnAll: () => O,
455
+ isHiddenOnAll: () => D,
456
456
  renderBlock: () => X,
457
457
  renderToMjml: () => Z,
458
- toPaddingString: () => E
458
+ toPaddingString: () => T
459
459
  });
460
460
  async function Z(e, t) {
461
461
  let n = t?.customFonts ?? [], r = t?.defaultFallbackFont ?? "Arial, sans-serif", i = t?.allowHtmlBlocks ?? !0, a = de(t?.socialIconsBaseUrl ?? h), o = await he(e, t?.renderCustomBlock), s = new _(e.settings.width, n, r, i, o, a), c = me(e.blocks, i), l = s.resolveFontFamily(e.settings.fontFamily), u = e.settings.backgroundColor, d = c.map((e) => le(e, s)).filter((e) => e !== "").join("\n"), f = pe(n), p = fe(e.settings.preheaderText);
@@ -486,8 +486,8 @@ ${d}
486
486
  </mj-body>
487
487
  </mjml>`;
488
488
  }
489
- function le(e, n) {
490
- return t(e) ? Q(e, X(e, n)) : Q(e, ue(X(e, n)));
489
+ function le(e, t) {
490
+ return s(e) ? Q(e, X(e, t)) : Q(e, ue(X(e, t)));
491
491
  }
492
492
  function Q(e, t) {
493
493
  if (t === "") return "";
@@ -526,16 +526,16 @@ async function he(e, t) {
526
526
  for (let e = 0; e < r.length; e++) n.set(r[e].id, i[e]);
527
527
  return n;
528
528
  }
529
- function $(e, n) {
530
- for (let r of e) {
531
- if (m(r)) {
532
- n.push(r);
529
+ function $(e, t) {
530
+ for (let n of e) {
531
+ if (r(n)) {
532
+ t.push(n);
533
533
  continue;
534
534
  }
535
- if (t(r)) for (let e of r.children) $(e, n);
535
+ if (s(n)) for (let e of n.children) $(e, t);
536
536
  }
537
537
  }
538
538
  //#endregion
539
539
  export { ce as t };
540
540
 
541
- //# sourceMappingURL=renderer-CYYyu-Di.js.map
541
+ //# sourceMappingURL=renderer-7z2t_bYQ.js.map