@emabuild/core 0.1.3 → 0.1.5

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,7 +1,8 @@
1
1
  import { html as p, LitElement as $, css as k } from "lit";
2
2
  import { property as b, customElement as C, state as pt } from "lit/decorators.js";
3
3
  import { unsafeHTML as U } from "lit/directives/unsafe-html.js";
4
- function ht() {
4
+ import { styleMap as ht } from "lit/directives/style-map.js";
5
+ function ut() {
5
6
  const e = {};
6
7
  return {
7
8
  getCounters() {
@@ -18,7 +19,7 @@ function ht() {
18
19
  }
19
20
  };
20
21
  }
21
- class ut {
22
+ class gt {
22
23
  constructor() {
23
24
  this.listeners = /* @__PURE__ */ new Map();
24
25
  }
@@ -45,7 +46,7 @@ class ut {
45
46
  t ? this.listeners.delete(t) : this.listeners.clear();
46
47
  }
47
48
  }
48
- class gt {
49
+ class ft {
49
50
  constructor(t = 50) {
50
51
  this.undoStack = [], this.redoStack = [], this.maxHistory = t;
51
52
  }
@@ -78,7 +79,7 @@ class gt {
78
79
  this.undoStack = [], this.redoStack = [];
79
80
  }
80
81
  }
81
- function ft() {
82
+ function bt() {
82
83
  return {
83
84
  counters: { u_row: 0, u_column: 0 },
84
85
  body: {
@@ -123,7 +124,7 @@ function ft() {
123
124
  schemaVersion: 16
124
125
  };
125
126
  }
126
- function bt(e, t) {
127
+ function mt(e, t) {
127
128
  const o = e.next("u_row"), n = t.map(() => {
128
129
  const i = e.next("u_column");
129
130
  return {
@@ -156,7 +157,7 @@ function bt(e, t) {
156
157
  }
157
158
  };
158
159
  }
159
- function mt(e, t, o = {}) {
160
+ function xt(e, t, o = {}) {
160
161
  const n = e.next(`u_content_${t}`), i = `u_content_${t}_${n}`;
161
162
  return {
162
163
  id: i,
@@ -188,21 +189,21 @@ function W(e, t) {
188
189
  if (i) return i;
189
190
  }
190
191
  }
191
- function xt(e, t) {
192
+ function yt(e, t) {
192
193
  for (const o of e.body.rows)
193
194
  for (const n of o.columns)
194
195
  if (n.contents.some((i) => i.id === t)) return n;
195
196
  }
196
- function yt(e, t) {
197
+ function wt(e, t) {
197
198
  for (const o of e.body.rows)
198
199
  if (o.columns.some((n) => n.id === t)) return o;
199
200
  }
200
201
  function q(e, t) {
201
202
  return e.body.rows.findIndex((o) => o.id === t);
202
203
  }
203
- class wt {
204
+ class vt {
204
205
  constructor() {
205
- this.history = new gt(), this.counterManager = ht(), this.subscribers = /* @__PURE__ */ new Set(), this.channelSubscribers = /* @__PURE__ */ new Map(), this.events = new ut(), this._selectedId = null, this._hoveredId = null, this._viewMode = "desktop", this._activeTab = "content", this.design = ft();
206
+ this.history = new ft(), this.counterManager = ut(), this.subscribers = /* @__PURE__ */ new Set(), this.channelSubscribers = /* @__PURE__ */ new Map(), this.events = new gt(), this._selectedId = null, this._hoveredId = null, this._viewMode = "desktop", this._activeTab = "content", this.design = bt();
206
207
  }
207
208
  // ── Subscriptions ──────────────────────────────────────────
208
209
  /** Subscribe to ALL state changes (legacy). Returns an unsubscribe function. */
@@ -426,20 +427,20 @@ class wt {
426
427
  return W(this.design, t);
427
428
  }
428
429
  findParentColumn(t) {
429
- return xt(this.design, t);
430
+ return yt(this.design, t);
430
431
  }
431
432
  findParentRow(t) {
432
- return yt(this.design, t);
433
+ return wt(this.design, t);
433
434
  }
434
435
  // ── Factory Methods (delegate to design-factory) ───────────
435
436
  /** Create a new row with the given column layout */
436
437
  createRow(t) {
437
- const o = bt(this.counterManager, t);
438
+ const o = mt(this.counterManager, t);
438
439
  return this.syncCounters(), o;
439
440
  }
440
441
  /** Create a new content block for the given tool type */
441
442
  createContent(t, o = {}) {
442
- const n = mt(this.counterManager, t, o);
443
+ const n = xt(this.counterManager, t, o);
443
444
  return this.syncCounters(), n;
444
445
  }
445
446
  // ── Private Helpers ────────────────────────────────────────
@@ -450,7 +451,7 @@ class wt {
450
451
  this.events.emit("design:updated", { type: t, item: o });
451
452
  }
452
453
  }
453
- class vt {
454
+ class $t {
454
455
  constructor() {
455
456
  this.tools = /* @__PURE__ */ new Map(), this.lazyLoaders = /* @__PURE__ */ new Map(), this.lazyMeta = /* @__PURE__ */ new Map(), this.loadingPromises = /* @__PURE__ */ new Map();
456
457
  }
@@ -535,7 +536,7 @@ class vt {
535
536
  return this.tools.get(t)?.options ?? {};
536
537
  }
537
538
  }
538
- const z = {
539
+ const L = {
539
540
  /** ID of the content currently being dragged (null if not dragging content) */
540
541
  draggingContentId: null,
541
542
  startContentDrag(e) {
@@ -588,10 +589,10 @@ function et(e, t) {
588
589
  n.matches?.(t) && o.push(n);
589
590
  }), o;
590
591
  }
591
- class $t {
592
+ class kt {
592
593
  constructor(t, o, n) {
593
594
  this.currentDrop = null, this.contentIndicator = null, this.rowIndicator = null, this.onDragOver = (i) => {
594
- const s = i.dataTransfer?.types || [], r = s.includes("application/maileditor-tool"), a = s.includes("application/maileditor-layout"), d = s.includes("application/maileditor-content") || !!z.draggingContentId;
595
+ const s = i.dataTransfer?.types || [], r = s.includes("application/maileditor-tool"), a = s.includes("application/maileditor-layout"), d = s.includes("application/maileditor-content") || !!L.draggingContentId;
595
596
  !r && !d && !a || (i.preventDefault(), i.dataTransfer.dropEffect = r || a ? "copy" : "move", a ? (this.currentDrop = this.findRowDropTarget(i.clientY), I(this.contentIndicator), this.showRowIndicator()) : (this.currentDrop = this.findContentDropTarget(i.clientX, i.clientY), I(this.rowIndicator), this.showContentIndicator()));
596
597
  }, this.onDrop = (i) => {
597
598
  i.preventDefault(), this.hideAllIndicators();
@@ -605,7 +606,7 @@ class $t {
605
606
  this.handleToolDrop(a, s), this.reset();
606
607
  return;
607
608
  }
608
- const d = i.dataTransfer?.getData("application/maileditor-content") || z.draggingContentId;
609
+ const d = i.dataTransfer?.getData("application/maileditor-content") || L.draggingContentId;
609
610
  d && this.handleContentDrop(d, s), this.reset();
610
611
  }, this.onDragEnd = () => {
611
612
  this.hideAllIndicators(), this.reset();
@@ -703,7 +704,7 @@ class $t {
703
704
  I(this.contentIndicator), I(this.rowIndicator);
704
705
  }
705
706
  reset() {
706
- this.currentDrop = null, z.reset();
707
+ this.currentDrop = null, L.reset();
707
708
  }
708
709
  }
709
710
  function l(e, t, o = "") {
@@ -723,7 +724,7 @@ function nt(e) {
723
724
  }
724
725
  return {};
725
726
  }
726
- function kt(e) {
727
+ function Ct(e) {
727
728
  const t = e.action;
728
729
  if (t && typeof t == "object") {
729
730
  const o = t.values;
@@ -769,7 +770,7 @@ function Y(e, t = "arial,helvetica,sans-serif") {
769
770
  }
770
771
  return t;
771
772
  }
772
- function me(e, t) {
773
+ function ye(e, t) {
773
774
  if (typeof e != "string") return t;
774
775
  try {
775
776
  return JSON.parse(e);
@@ -777,7 +778,7 @@ function me(e, t) {
777
778
  return t;
778
779
  }
779
780
  }
780
- function L(e, t) {
781
+ function z(e, t) {
781
782
  const { padding: o, align: n = "left", extraTdStyle: i = "" } = t;
782
783
  return `<table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
783
784
  <tbody><tr><td style="${`padding:${o};font-family:arial,helvetica,sans-serif;${i}`}" align="${n}">
@@ -785,7 +786,7 @@ function L(e, t) {
785
786
  </td></tr></tbody>
786
787
  </table>`;
787
788
  }
788
- function Ct(e, t, o) {
789
+ function _t(e, t, o) {
789
790
  const { bgColor: n, textColor: i, fontSize: s, fontWeight: r, borderRadius: a } = o, d = parseInt(a) || 0;
790
791
  if (d <= 0) return "";
791
792
  const c = Math.round(d / 20 * 100);
@@ -796,7 +797,7 @@ function Ct(e, t, o) {
796
797
  </v:roundrect>
797
798
  <![endif]-->`;
798
799
  }
799
- const _t = {
800
+ const Dt = {
800
801
  name: "text",
801
802
  label: "Text",
802
803
  icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 7V4h16v3"/><path d="M9 20h6"/><path d="M12 4v16"/></svg>',
@@ -868,10 +869,11 @@ const _t = {
868
869
  },
869
870
  renderHtml(e) {
870
871
  const t = l(e, "containerPadding", "10px"), o = l(e, "backgroundColor"), n = l(e, "color", "#000000"), i = l(e, "lineHeight", "140%"), s = l(e, "textAlign", "left"), r = l(e, "text"), a = o ? `background-color:${o};` : "", d = `<div style="font-size:14px;color:${n};line-height:${i};text-align:${s};">${r}</div>`;
871
- return L(d, { padding: t, extraTdStyle: a });
872
+ return z(d, { padding: t, extraTdStyle: a });
872
873
  }
873
874
  }
874
- }, Dt = {
875
+ };
876
+ const St = {
875
877
  name: "heading",
876
878
  label: "Heading",
877
879
  icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 12h12"/><path d="M6 4v16"/><path d="M18 4v16"/></svg>',
@@ -903,6 +905,7 @@ const _t = {
903
905
  defaultValue: "22px",
904
906
  widget: "dropdown",
905
907
  widgetParams: { options: [
908
+ { label: "12px", value: "12px" },
906
909
  { label: "14px", value: "14px" },
907
910
  { label: "16px", value: "16px" },
908
911
  { label: "18px", value: "18px" },
@@ -973,19 +976,24 @@ const _t = {
973
976
  },
974
977
  renderer: {
975
978
  renderEditor(e) {
976
- const t = l(e, "containerPadding", "10px"), o = l(e, "fontSize", "22px"), n = l(e, "color", "#000000"), i = l(e, "textAlign", "left"), s = l(e, "fontWeight", "700"), r = l(e, "lineHeight", "140%"), a = Y(e), d = it(e, "Heading");
977
- return p`
978
- <div style="padding:${t};font-size:${o};color:${n};text-align:${i};font-weight:${s};line-height:${r};font-family:${a};">
979
- ${U(d)}
980
- </div>
981
- `;
979
+ const t = {
980
+ padding: l(e, "containerPadding", "10px"),
981
+ fontSize: l(e, "fontSize", "22px"),
982
+ color: l(e, "color", "#000000"),
983
+ textAlign: l(e, "textAlign", "left"),
984
+ fontWeight: l(e, "fontWeight", "700"),
985
+ lineHeight: l(e, "lineHeight", "140%"),
986
+ letterSpacing: l(e, "letterSpacing", "normal"),
987
+ fontFamily: Y(e)
988
+ }, o = it(e, "Heading");
989
+ return p`<div style=${ht(t)}>${U(o)}</div>`;
982
990
  },
983
991
  renderHtml(e) {
984
992
  const t = l(e, "containerPadding", "10px"), o = l(e, "fontSize", "22px"), n = l(e, "color", "#000000"), i = l(e, "textAlign", "left"), s = l(e, "fontWeight", "700"), r = l(e, "lineHeight", "140%"), a = l(e, "letterSpacing", "normal"), d = Y(e), c = l(e, "headingType", "h1"), h = it(e, "Heading"), g = `<${c} style="margin:0;font-size:${o};color:${n};text-align:${i};font-weight:${s};line-height:${r};letter-spacing:${a};font-family:${d};">${h}</${c}>`;
985
- return L(g, { padding: t });
993
+ return z(g, { padding: t });
986
994
  }
987
995
  }
988
- }, St = {
996
+ }, Rt = {
989
997
  name: "paragraph",
990
998
  label: "Paragraph",
991
999
  icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/><line x1="3" y1="14" x2="17" y2="14"/></svg>',
@@ -1033,10 +1041,10 @@ const _t = {
1033
1041
  },
1034
1042
  renderHtml(e) {
1035
1043
  const t = l(e, "containerPadding", "10px"), o = l(e, "color", "#374151"), n = l(e, "lineHeight", "160%"), i = l(e, "textAlign", "left"), s = l(e, "letterSpacing", "normal"), r = `<div style="font-size:14px;color:${o};line-height:${n};text-align:${i};letter-spacing:${s};word-wrap:break-word;">${l(e, "text")}</div>`;
1036
- return L(r, { padding: t });
1044
+ return z(r, { padding: t });
1037
1045
  }
1038
1046
  }
1039
- }, Rt = {
1047
+ }, Tt = {
1040
1048
  name: "image",
1041
1049
  label: "Image",
1042
1050
  icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>',
@@ -1101,14 +1109,14 @@ const _t = {
1101
1109
  return o ? p`<div style="padding:${t};text-align:${a};"><img src=${o} alt=${n} style="display:inline-block;max-width:100%;width:${s};border-radius:${r};border:0;" /></div>` : p`<div style="padding:${t};text-align:${a};"><div style="background:#f1f5f9;border:2px dashed #cbd5e1;border-radius:8px;padding:40px 20px;text-align:center;color:#94a3b8;font-size:13px;">No image set. Enter a URL in the property panel.</div></div>`;
1102
1110
  },
1103
1111
  renderHtml(e, t) {
1104
- const o = l(e, "containerPadding", "10px"), n = ot(e.src), i = l(e, "alt"), s = kt(e), r = nt(e.src), a = r.maxWidth || l(e, "width", "100%"), d = l(e, "borderRadius", "0px"), c = l(e, "textAlign", l(e, "align", "center"));
1112
+ const o = l(e, "containerPadding", "10px"), n = ot(e.src), i = l(e, "alt"), s = Ct(e), r = nt(e.src), a = r.maxWidth || l(e, "width", "100%"), d = l(e, "borderRadius", "0px"), c = l(e, "textAlign", l(e, "align", "center"));
1105
1113
  let h;
1106
1114
  a.includes("%") ? h = Math.round(t.columnWidth * (parseFloat(a) / 100)) : a === "auto" ? h = r.width || t.columnWidth : h = parseInt(a) || t.columnWidth;
1107
1115
  const g = d !== "0px" ? `border-radius:${d};` : "", u = `<img align="${c}" border="0" src="${n}" alt="${i}" title="${i}" style="display:block;border:0;height:auto;width:100%;max-width:${h}px;${g}" width="${h}" />`, f = s.href ? `<a href="${s.href}" target="${s.target}" style="text-decoration:none;">${u}</a>` : u;
1108
- return L(f, { padding: o, align: c });
1116
+ return z(f, { padding: o, align: c });
1109
1117
  }
1110
1118
  }
1111
- }, Tt = {
1119
+ }, It = {
1112
1120
  name: "button",
1113
1121
  label: "Button",
1114
1122
  icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="7" width="20" height="10" rx="2"/><path d="M12 7v10"/><path d="m8 12 4-3 4 3"/></svg>',
@@ -1203,16 +1211,16 @@ const _t = {
1203
1211
  `;
1204
1212
  },
1205
1213
  renderHtml(e) {
1206
- const t = l(e, "containerPadding", "10px"), o = l(e, "backgroundColor", "#3b82f6"), n = l(e, "textColor", "#ffffff"), i = l(e, "fontSize", "14px"), s = l(e, "fontWeight", "700"), r = l(e, "borderRadius", "4px"), a = l(e, "buttonPadding", "10px 20px"), d = l(e, "text", "Click Me"), c = l(e, "textAlign", "center"), h = l(e, "href", "#"), g = l(e, "target", "_blank"), u = l(e, "borderWidth", "0px"), f = l(e, "borderColor", o), y = u !== "0px" ? `border:${u} solid ${f};` : "border:none;", x = Ct(d, h, { bgColor: o, textColor: n, fontSize: i, fontWeight: s, borderRadius: r }), m = x ? `${x}
1214
+ const t = l(e, "containerPadding", "10px"), o = l(e, "backgroundColor", "#3b82f6"), n = l(e, "textColor", "#ffffff"), i = l(e, "fontSize", "14px"), s = l(e, "fontWeight", "700"), r = l(e, "borderRadius", "4px"), a = l(e, "buttonPadding", "10px 20px"), d = l(e, "text", "Click Me"), c = l(e, "textAlign", "center"), h = l(e, "href", "#"), g = l(e, "target", "_blank"), u = l(e, "borderWidth", "0px"), f = l(e, "borderColor", o), y = u !== "0px" ? `border:${u} solid ${f};` : "border:none;", x = _t(d, h, { bgColor: o, textColor: n, fontSize: i, fontWeight: s, borderRadius: r }), m = x ? `${x}
1207
1215
  <!--[if !mso]><!-->` : "<!--[if !mso]><!-->", v = `<div align="${c}">
1208
1216
  ${m}
1209
1217
  <a href="${h}" target="${g}" style="display:inline-block;text-decoration:none;text-align:center;color:${n};background-color:${o};border-radius:${r};font-size:${i};font-weight:${s};padding:${a};font-family:arial,helvetica,sans-serif;${y}mso-border-alt:none;"><span style="line-height:120%;">${d}</span></a>
1210
1218
  <!--<![endif]-->
1211
1219
  </div>`;
1212
- return L(v, { padding: t, align: c });
1220
+ return z(v, { padding: t, align: c });
1213
1221
  }
1214
1222
  }
1215
- }, It = {
1223
+ }, Mt = {
1216
1224
  name: "divider",
1217
1225
  label: "Divider",
1218
1226
  icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="2" y1="12" x2="22" y2="12"/></svg>',
@@ -1264,47 +1272,47 @@ const _t = {
1264
1272
  },
1265
1273
  renderHtml(e) {
1266
1274
  const t = l(e, "containerPadding", "10px"), o = l(e, "width", "100%"), n = `${l(e, "borderTopWidth", "1px")} ${l(e, "borderTopStyle", "solid")} ${l(e, "borderTopColor", "#cccccc")}`, i = `<table role="presentation" border="0" cellpadding="0" cellspacing="0" width="${o}" style="border-collapse:collapse;border-top:${n};"><tbody><tr><td style="font-size:0;line-height:0;">&nbsp;</td></tr></tbody></table>`;
1267
- return L(i, { padding: t, align: "center" });
1275
+ return z(i, { padding: t, align: "center" });
1268
1276
  }
1269
1277
  }
1270
- }, Mt = [
1271
- _t,
1278
+ }, Pt = [
1272
1279
  Dt,
1273
1280
  St,
1274
1281
  Rt,
1275
1282
  Tt,
1276
- It
1283
+ It,
1284
+ Mt
1277
1285
  ], st = [
1278
1286
  {
1279
1287
  meta: { name: "html", label: "HTML", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>', position: 6 },
1280
- loader: () => import("./html-tool-BKv8imO8.js").then((e) => e.htmlTool)
1288
+ loader: () => import("./html-tool-D4ay2h-U.js").then((e) => e.htmlTool)
1281
1289
  },
1282
1290
  {
1283
1291
  meta: { name: "social", label: "Social", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"/><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"/></svg>', position: 8 },
1284
- loader: () => import("./social-tool-BlbbjEP9.js").then((e) => e.socialTool)
1292
+ loader: () => import("./social-tool-B8Jg2yE-.js").then((e) => e.socialTool)
1285
1293
  },
1286
1294
  {
1287
1295
  meta: { name: "menu", label: "Menu", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="4" y1="6" x2="20" y2="6"/><line x1="4" y1="12" x2="20" y2="12"/><line x1="4" y1="18" x2="20" y2="18"/></svg>', position: 9 },
1288
- loader: () => import("./menu-tool-DL7b9bp2.js").then((e) => e.menuTool)
1296
+ loader: () => import("./menu-tool-KvGDbaYD.js").then((e) => e.menuTool)
1289
1297
  },
1290
1298
  {
1291
1299
  meta: { name: "video", label: "Video", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>', position: 10 },
1292
- loader: () => import("./video-tool-DK978htk.js").then((e) => e.videoTool)
1300
+ loader: () => import("./video-tool-CdGVmZxz.js").then((e) => e.videoTool)
1293
1301
  },
1294
1302
  {
1295
1303
  meta: { name: "timer", label: "Timer", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>', position: 11 },
1296
- loader: () => import("./timer-tool-D6palusx.js").then((e) => e.timerTool)
1304
+ loader: () => import("./timer-tool-Ck1ERDW-.js").then((e) => e.timerTool)
1297
1305
  },
1298
1306
  {
1299
1307
  meta: { name: "table", label: "Table", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18"/><path d="M3 15h18"/><path d="M9 3v18"/><path d="M15 3v18"/></svg>', position: 12 },
1300
- loader: () => import("./table-tool-DwFJnQBX.js").then((e) => e.tableTool)
1308
+ loader: () => import("./table-tool-BzpD08dq.js").then((e) => e.tableTool)
1301
1309
  },
1302
1310
  {
1303
1311
  meta: { name: "form", label: "Form", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M7 7h10"/><path d="M7 12h10"/><path d="M7 17h6"/></svg>', position: 13 },
1304
- loader: () => import("./form-tool-DVWF0Cn-.js").then((e) => e.formTool)
1312
+ loader: () => import("./form-tool-CduLiZgt.js").then((e) => e.formTool)
1305
1313
  }
1306
1314
  ];
1307
- function Pt(e, t, o) {
1315
+ function Et(e, t, o) {
1308
1316
  const n = o.backgroundColor || "#e7e7e7", i = o.contentWidth || "600px", s = o.fontFamily?.value || "arial,helvetica,sans-serif", r = o.textColor || "#000000", a = o.preheaderText || "" || "&zwnj;", d = `<div style="display:none;font-size:1px;color:${n};line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;">${a}${"&zwnj;&nbsp;".repeat(80)}</div>`;
1309
1317
  return `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1310
1318
  <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
@@ -1355,7 +1363,7 @@ function Pt(e, t, o) {
1355
1363
  </body>
1356
1364
  </html>`;
1357
1365
  }
1358
- function Et(e, t, o) {
1366
+ function zt(e, t, o) {
1359
1367
  const n = parseInt(t.contentWidth || "600"), i = e.values.backgroundColor || "", s = e.values.columnsBackgroundColor || "", r = e.values.padding || "0px", a = e.cells.reduce((m, w) => m + w, 0), d = i ? `background-color:${i};` : "", c = e.values.backgroundImage;
1360
1368
  let h = "";
1361
1369
  if (c?.url) {
@@ -1402,7 +1410,7 @@ function Lt(e, t, o, n, i) {
1402
1410
  </div>
1403
1411
  </div>`;
1404
1412
  }
1405
- function zt(e) {
1413
+ function Vt(e) {
1406
1414
  return `
1407
1415
  @media only screen and (min-width: ${e + 20}px) {
1408
1416
  .u_row .u_column { display: inline-block !important; }
@@ -1451,7 +1459,7 @@ function zt(e) {
1451
1459
  .u_hide_mobile { display: block !important; }
1452
1460
  }`;
1453
1461
  }
1454
- const Vt = [
1462
+ const At = [
1455
1463
  "box-sizing",
1456
1464
  "float",
1457
1465
  "overflow-wrap",
@@ -1467,20 +1475,20 @@ const Vt = [
1467
1475
  "display:\\s*flex",
1468
1476
  "display:\\s*grid",
1469
1477
  "gap"
1470
- ], At = new RegExp(
1471
- `(?:;\\s*|^\\s*)(${Vt.join("|")})\\s*:[^;]*;?`,
1478
+ ], Bt = new RegExp(
1479
+ `(?:;\\s*|^\\s*)(${At.join("|")})\\s*:[^;]*;?`,
1472
1480
  "gi"
1473
- ), Bt = /var\(--[^)]*\)/gi;
1474
- function Ot(e) {
1481
+ ), Ot = /var\(--[^)]*\)/gi;
1482
+ function Ht(e) {
1475
1483
  return e.replace(/style="([^"]*)"/gi, (t, o) => {
1476
1484
  let n = o;
1477
- return n = n.replace(At, ""), n = n.replace(Bt, "inherit"), n = n.replace(/;\s*;/g, ";").replace(/^\s*;\s*/, "").replace(/;\s*$/, "").trim(), n ? `style="${n}"` : "";
1485
+ return n = n.replace(Bt, ""), n = n.replace(Ot, "inherit"), n = n.replace(/;\s*;/g, ";").replace(/^\s*;\s*/, "").replace(/;\s*$/, "").trim(), n ? `style="${n}"` : "";
1478
1486
  });
1479
1487
  }
1480
- function Ht(e, t, o) {
1481
- const n = e.body.values, i = parseInt(n.contentWidth || "600"), s = e.body.rows.map((u) => Et(u, n, t)).join(`
1482
- `), r = zt(i), a = Ot(s);
1483
- let d = Pt(a, r, n);
1488
+ function jt(e, t, o) {
1489
+ const n = e.body.values, i = parseInt(n.contentWidth || "600"), s = e.body.rows.map((u) => zt(u, n, t)).join(`
1490
+ `), r = Vt(i), a = Ht(s);
1491
+ let d = Et(a, r, n);
1484
1492
  if (o?.mergeTags)
1485
1493
  for (const [u, f] of Object.entries(o.mergeTags))
1486
1494
  d = d.replaceAll(`{{${u}}}`, f);
@@ -1521,10 +1529,10 @@ class T {
1521
1529
  }));
1522
1530
  }
1523
1531
  }
1524
- var jt = Object.defineProperty, Wt = Object.getOwnPropertyDescriptor, at = (e, t, o, n) => {
1525
- for (var i = n > 1 ? void 0 : n ? Wt(t, o) : t, s = e.length - 1, r; s >= 0; s--)
1532
+ var Wt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, at = (e, t, o, n) => {
1533
+ for (var i = n > 1 ? void 0 : n ? Ut(t, o) : t, s = e.length - 1, r; s >= 0; s--)
1526
1534
  (r = e[s]) && (i = (n ? r(t, o, i) : r(i)) || i);
1527
- return n && i && jt(t, o, i), i;
1535
+ return n && i && Wt(t, o, i), i;
1528
1536
  };
1529
1537
  let V = class extends $ {
1530
1538
  constructor() {
@@ -1657,10 +1665,10 @@ at([
1657
1665
  V = at([
1658
1666
  C("me-inline-toolbar")
1659
1667
  ], V);
1660
- var Ut = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, O = (e, t, o, n) => {
1661
- for (var i = n > 1 ? void 0 : n ? Ft(t, o) : t, s = e.length - 1, r; s >= 0; s--)
1668
+ var Ft = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, O = (e, t, o, n) => {
1669
+ for (var i = n > 1 ? void 0 : n ? Nt(t, o) : t, s = e.length - 1, r; s >= 0; s--)
1662
1670
  (r = e[s]) && (i = (n ? r(t, o, i) : r(i)) || i);
1663
- return n && i && Ut(t, o, i), i;
1671
+ return n && i && Ft(t, o, i), i;
1664
1672
  };
1665
1673
  const rt = /* @__PURE__ */ new Set(["text", "heading", "paragraph"]);
1666
1674
  function lt(e) {
@@ -1673,9 +1681,9 @@ let D = class extends $ {
1673
1681
  e.preventDefault();
1674
1682
  return;
1675
1683
  }
1676
- e.dataTransfer.setData("application/maileditor-content", this.content.id), e.dataTransfer.effectAllowed = "move", this.style.opacity = "0.4", z.startContentDrag(this.content.id);
1684
+ e.dataTransfer.setData("application/maileditor-content", this.content.id), e.dataTransfer.effectAllowed = "move", this.style.opacity = "0.4", L.startContentDrag(this.content.id);
1677
1685
  }, this._onDragEnd = () => {
1678
- this.style.opacity = "1", z.reset();
1686
+ this.style.opacity = "1", L.reset();
1679
1687
  }, this.handleInlineInput = () => {
1680
1688
  this.saveDebounceTimer && clearTimeout(this.saveDebounceTimer), this.saveDebounceTimer = setTimeout(() => this.saveInlineContent(), 500), this.showToolbar();
1681
1689
  }, this.handleInlineBlur = (e) => {
@@ -1869,10 +1877,10 @@ O([
1869
1877
  D = O([
1870
1878
  C("me-content-renderer")
1871
1879
  ], D);
1872
- var Nt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, H = (e, t, o, n) => {
1873
- for (var i = n > 1 ? void 0 : n ? qt(t, o) : t, s = e.length - 1, r; s >= 0; s--)
1880
+ var qt = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor, H = (e, t, o, n) => {
1881
+ for (var i = n > 1 ? void 0 : n ? Gt(t, o) : t, s = e.length - 1, r; s >= 0; s--)
1874
1882
  (r = e[s]) && (i = (n ? r(t, o, i) : r(i)) || i);
1875
- return n && i && Nt(t, o, i), i;
1883
+ return n && i && qt(t, o, i), i;
1876
1884
  };
1877
1885
  let S = class extends $ {
1878
1886
  constructor() {
@@ -1948,10 +1956,10 @@ H([
1948
1956
  S = H([
1949
1957
  C("me-column-renderer")
1950
1958
  ], S);
1951
- var Gt = Object.defineProperty, Kt = Object.getOwnPropertyDescriptor, F = (e, t, o, n) => {
1952
- for (var i = n > 1 ? void 0 : n ? Kt(t, o) : t, s = e.length - 1, r; s >= 0; s--)
1959
+ var Kt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, F = (e, t, o, n) => {
1960
+ for (var i = n > 1 ? void 0 : n ? Yt(t, o) : t, s = e.length - 1, r; s >= 0; s--)
1953
1961
  (r = e[s]) && (i = (n ? r(t, o, i) : r(i)) || i);
1954
- return n && i && Gt(t, o, i), i;
1962
+ return n && i && Kt(t, o, i), i;
1955
1963
  };
1956
1964
  let R = class extends $ {
1957
1965
  constructor() {
@@ -1981,7 +1989,13 @@ let R = class extends $ {
1981
1989
  }
1982
1990
  render() {
1983
1991
  if (!this.store) return p``;
1984
- const { row: e, store: t, toolRegistry: o } = this, n = e.values.backgroundColor || "transparent", i = e.values.columnsBackgroundColor || "transparent", s = e.values.padding || "0px", r = e.cells.reduce((x, m) => x + m, 0), a = e.values.backgroundImage, d = typeof a == "object" && a?.url ? a.url : "", c = d ? `background-image:url('${d}');background-size:${a?.cover ? "cover" : "contain"};background-position:${a?.center ? "center" : "top left"};background-repeat:${a?.repeat ? "repeat" : "no-repeat"};` : "", h = t.viewMode, g = !!e.values.hideDesktop, u = !!e.values.hideMobile, f = h === "desktop" && g || h === "mobile" && u, y = g ? "Hidden on desktop" : u ? "Hidden on mobile" : "";
1992
+ const { row: e, store: t, toolRegistry: o } = this, n = e.values.backgroundColor || "transparent", i = e.values.columnsBackgroundColor || "transparent", s = e.values.padding || "0px", r = e.cells.reduce((x, m) => x + m, 0), a = e.values.backgroundImage, d = typeof a == "object" && a?.url ? a.url : "";
1993
+ let c = "";
1994
+ if (d) {
1995
+ const x = a.repeat === !0 || a.repeat === "repeat" ? "repeat" : "no-repeat", m = a.cover === !0 ? "cover" : a.fullWidth === !0 ? "100% auto" : "auto", w = a.center !== !1 ? "center" : "top left";
1996
+ c = `background-image:url('${d}');background-size:${m};background-position:${w};background-repeat:${x};`;
1997
+ }
1998
+ const h = t.viewMode, g = !!e.values.hideDesktop, u = !!e.values.hideMobile, f = h === "desktop" && g || h === "mobile" && u, y = g ? "Hidden on desktop" : u ? "Hidden on mobile" : "";
1985
1999
  return this.classList.toggle("hidden-in-view", f), this.setAttribute("draggable", "true"), this.dataset.rowId = e.id, p`
1986
2000
  ${f ? p`<div class="row-hidden-badge">${y}</div>` : ""}
1987
2001
  <div class="row-actions">
@@ -2094,10 +2108,10 @@ F([
2094
2108
  R = F([
2095
2109
  C("me-row-renderer")
2096
2110
  ], R);
2097
- var Yt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, J = (e, t, o, n) => {
2098
- for (var i = n > 1 ? void 0 : n ? Jt(t, o) : t, s = e.length - 1, r; s >= 0; s--)
2111
+ var Jt = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, J = (e, t, o, n) => {
2112
+ for (var i = n > 1 ? void 0 : n ? Xt(t, o) : t, s = e.length - 1, r; s >= 0; s--)
2099
2113
  (r = e[s]) && (i = (n ? r(t, o, i) : r(i)) || i);
2100
- return n && i && Yt(t, o, i), i;
2114
+ return n && i && Jt(t, o, i), i;
2101
2115
  };
2102
2116
  let M = class extends $ {
2103
2117
  constructor() {
@@ -2215,10 +2229,10 @@ J([
2215
2229
  M = J([
2216
2230
  C("me-editor-canvas")
2217
2231
  ], M);
2218
- var Xt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, dt = (e, t, o, n) => {
2219
- for (var i = n > 1 ? void 0 : n ? Qt(t, o) : t, s = e.length - 1, r; s >= 0; s--)
2232
+ var Qt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, dt = (e, t, o, n) => {
2233
+ for (var i = n > 1 ? void 0 : n ? Zt(t, o) : t, s = e.length - 1, r; s >= 0; s--)
2220
2234
  (r = e[s]) && (i = (n ? r(t, o, i) : r(i)) || i);
2221
- return n && i && Xt(t, o, i), i;
2235
+ return n && i && Qt(t, o, i), i;
2222
2236
  };
2223
2237
  const G = [
2224
2238
  // System / email-safe fonts
@@ -2368,10 +2382,10 @@ dt([
2368
2382
  A = dt([
2369
2383
  C("me-body-settings")
2370
2384
  ], A);
2371
- var Zt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, X = (e, t, o, n) => {
2372
- for (var i = n > 1 ? void 0 : n ? te(t, o) : t, s = e.length - 1, r; s >= 0; s--)
2385
+ var te = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, X = (e, t, o, n) => {
2386
+ for (var i = n > 1 ? void 0 : n ? ee(t, o) : t, s = e.length - 1, r; s >= 0; s--)
2373
2387
  (r = e[s]) && (i = (n ? r(t, o, i) : r(i)) || i);
2374
- return n && i && Zt(t, o, i), i;
2388
+ return n && i && te(t, o, i), i;
2375
2389
  };
2376
2390
  let P = class extends $ {
2377
2391
  constructor() {
@@ -2608,7 +2622,7 @@ X([
2608
2622
  P = X([
2609
2623
  C("me-editor-sidebar")
2610
2624
  ], P);
2611
- function ee(e, t, o) {
2625
+ function oe(e, t, o) {
2612
2626
  const n = e && /^#[0-9a-fA-F]{3,8}$/.test(e) ? e : "#000000";
2613
2627
  return p`
2614
2628
  <div class="prop-row">
@@ -2622,7 +2636,7 @@ function ee(e, t, o) {
2622
2636
  </div>
2623
2637
  `;
2624
2638
  }
2625
- function oe(e, t, o, n) {
2639
+ function ne(e, t, o, n) {
2626
2640
  const i = n?.options || [];
2627
2641
  return p`
2628
2642
  <div class="prop-row">
@@ -2633,7 +2647,7 @@ function oe(e, t, o, n) {
2633
2647
  </div>
2634
2648
  `;
2635
2649
  }
2636
- function ne(e, t, o) {
2650
+ function ie(e, t, o) {
2637
2651
  return p`
2638
2652
  <div class="prop-row">
2639
2653
  <label class="prop-label">${o}</label>
@@ -2648,15 +2662,15 @@ function ne(e, t, o) {
2648
2662
  </div>
2649
2663
  `;
2650
2664
  }
2651
- function ie(e) {
2665
+ function se(e) {
2652
2666
  const t = (e || "0px").split(/\s+/).map((r) => parseInt(r) || 0), o = t[0], n = t[1] ?? o, i = t[2] ?? o, s = t[3] ?? n;
2653
2667
  return [o, n, i, s];
2654
2668
  }
2655
- function se(e, t, o, n) {
2669
+ function re(e, t, o, n) {
2656
2670
  return e === t && t === o && o === n ? `${e}px` : e === o && t === n ? `${e}px ${t}px` : `${e}px ${t}px ${o}px ${n}px`;
2657
2671
  }
2658
- function re(e, t, o) {
2659
- const [n, i, s, r] = ie(e), a = (c, h, g, u) => t(se(c, h, g, u));
2672
+ function le(e, t, o) {
2673
+ const [n, i, s, r] = se(e), a = (c, h, g, u) => t(re(c, h, g, u));
2660
2674
  return p`
2661
2675
  <div class="prop-row">
2662
2676
  <label class="prop-label">${o}</label>
@@ -2678,7 +2692,7 @@ function re(e, t, o) {
2678
2692
  </div>
2679
2693
  `;
2680
2694
  }
2681
- function le(e, t, o) {
2695
+ function ae(e, t, o) {
2682
2696
  return p`
2683
2697
  <div class="prop-row">
2684
2698
  <div class="prop-toggle">
@@ -2689,7 +2703,7 @@ function le(e, t, o) {
2689
2703
  </div>
2690
2704
  `;
2691
2705
  }
2692
- function ae(e, t, o) {
2706
+ function de(e, t, o) {
2693
2707
  return p`
2694
2708
  <div class="prop-row">
2695
2709
  <label class="prop-label">${o}</label>
@@ -2698,7 +2712,7 @@ function ae(e, t, o) {
2698
2712
  </div>
2699
2713
  `;
2700
2714
  }
2701
- function de(e, t, o) {
2715
+ function ce(e, t, o) {
2702
2716
  return p`
2703
2717
  <div class="prop-row">
2704
2718
  <label class="prop-label">${o}</label>
@@ -2710,10 +2724,10 @@ function de(e, t, o) {
2710
2724
  </div>
2711
2725
  `;
2712
2726
  }
2713
- var ce = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, Q = (e, t, o, n) => {
2714
- for (var i = n > 1 ? void 0 : n ? pe(t, o) : t, s = e.length - 1, r; s >= 0; s--)
2727
+ var pe = Object.defineProperty, he = Object.getOwnPropertyDescriptor, Q = (e, t, o, n) => {
2728
+ for (var i = n > 1 ? void 0 : n ? he(t, o) : t, s = e.length - 1, r; s >= 0; s--)
2715
2729
  (r = e[s]) && (i = (n ? r(t, o, i) : r(i)) || i);
2716
- return n && i && ce(t, o, i), i;
2730
+ return n && i && pe(t, o, i), i;
2717
2731
  };
2718
2732
  let E = class extends $ {
2719
2733
  constructor() {
@@ -2764,20 +2778,20 @@ let E = class extends $ {
2764
2778
  const n = e.values[t] ?? o.defaultValue, i = this.onChange(e.id, t);
2765
2779
  switch (o.widget) {
2766
2780
  case "color_picker":
2767
- return ee(n, i, o.label);
2781
+ return oe(n, i, o.label);
2768
2782
  case "toggle":
2769
- return le(n, i, o.label);
2783
+ return ae(n, i, o.label);
2770
2784
  case "rich_text":
2771
- return de(n, i, o.label);
2785
+ return ce(n, i, o.label);
2772
2786
  case "dropdown":
2773
- return oe(n, i, o.label, o.widgetParams);
2787
+ return ne(n, i, o.label, o.widgetParams);
2774
2788
  case "alignment":
2775
- return ne(n, i, o.label);
2789
+ return ie(n, i, o.label);
2776
2790
  case "padding":
2777
- return re(n, i, o.label);
2791
+ return le(n, i, o.label);
2778
2792
  case "text":
2779
2793
  default:
2780
- return ae(n, i, o.label);
2794
+ return de(n, i, o.label);
2781
2795
  }
2782
2796
  }
2783
2797
  };
@@ -2824,14 +2838,14 @@ Q([
2824
2838
  E = Q([
2825
2839
  C("me-property-panel")
2826
2840
  ], E);
2827
- var he = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, ct = (e, t, o, n) => {
2828
- for (var i = n > 1 ? void 0 : n ? ue(t, o) : t, s = e.length - 1, r; s >= 0; s--)
2841
+ var ue = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, ct = (e, t, o, n) => {
2842
+ for (var i = n > 1 ? void 0 : n ? ge(t, o) : t, s = e.length - 1, r; s >= 0; s--)
2829
2843
  (r = e[s]) && (i = (n ? r(t, o, i) : r(i)) || i);
2830
- return n && i && he(t, o, i), i;
2844
+ return n && i && ue(t, o, i), i;
2831
2845
  };
2832
2846
  let B = class extends $ {
2833
2847
  constructor() {
2834
- super(...arguments), this.options = {}, this.store = new wt(), this.toolRegistry = new vt(), this.dragManager = null, this.callbacks = /* @__PURE__ */ new Map(), this.unsubscribe = null, this._handleKeydown = (e) => {
2848
+ super(...arguments), this.options = {}, this.store = new vt(), this.toolRegistry = new $t(), this.dragManager = null, this.callbacks = /* @__PURE__ */ new Map(), this.unsubscribe = null, this._handleKeydown = (e) => {
2835
2849
  const t = e.metaKey || e.ctrlKey, n = e.composedPath().some((i) => {
2836
2850
  const s = i?.tagName;
2837
2851
  return s === "INPUT" || s === "TEXTAREA" || s === "SELECT";
@@ -2843,7 +2857,7 @@ let B = class extends $ {
2843
2857
  super.connectedCallback(), this.registerBuiltInTools(), this.applyOptions(), this.setAttribute("tabindex", "0"), this.addEventListener("keydown", this._handleKeydown);
2844
2858
  }
2845
2859
  firstUpdated() {
2846
- this.dragManager = new $t(this.store, this.toolRegistry, this.shadowRoot), this.dragManager.attach(), this.store.events.on("design:loaded", (e) => {
2860
+ this.dragManager = new kt(this.store, this.toolRegistry, this.shadowRoot), this.dragManager.attach(), this.store.events.on("design:loaded", (e) => {
2847
2861
  this.dispatchEvent(new CustomEvent("design:loaded", { detail: e, bubbles: !0, composed: !0 }));
2848
2862
  }), this.store.events.on("design:updated", (e) => {
2849
2863
  this.dispatchEvent(new CustomEvent("design:updated", { detail: e, bubbles: !0, composed: !0 }));
@@ -2874,7 +2888,7 @@ let B = class extends $ {
2874
2888
  const n = /* @__PURE__ */ new Map();
2875
2889
  for (const i of this.toolRegistry.getAll())
2876
2890
  n.set(i.name, (s, r) => i.renderer.renderHtml(s, r));
2877
- t(Ht(e, n, o));
2891
+ t(jt(e, n, o));
2878
2892
  }
2879
2893
  async exportHtmlAsync(e) {
2880
2894
  return new Promise((t) => this.exportHtml(t, e));
@@ -2916,7 +2930,7 @@ let B = class extends $ {
2916
2930
  });
2917
2931
  }
2918
2932
  registerBuiltInTools() {
2919
- for (const e of Mt)
2933
+ for (const e of Pt)
2920
2934
  this.toolRegistry.register(e);
2921
2935
  for (const { meta: e, loader: t } of st)
2922
2936
  this.toolRegistry.registerLazy(e, t);
@@ -2974,14 +2988,14 @@ _("me-editor-sidebar", P);
2974
2988
  _("me-body-settings", A);
2975
2989
  _("me-property-panel", E);
2976
2990
  _("me-inline-toolbar", V);
2977
- const xe = customElements.get("mail-editor") !== void 0;
2991
+ const we = customElements.get("mail-editor") !== void 0;
2978
2992
  export {
2979
- xe as E,
2993
+ we as E,
2980
2994
  B as M,
2981
- vt as T,
2982
- wt as a,
2983
- L as e,
2984
- me as j,
2995
+ $t as T,
2996
+ vt as a,
2997
+ z as e,
2998
+ ye as j,
2985
2999
  l as s
2986
3000
  };
2987
- //# sourceMappingURL=index-CcfSPqXh.js.map
3001
+ //# sourceMappingURL=index-BoKIXJKv.js.map