@templatical/editor 0.16.2 → 0.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/{AiFeatureMenu-DfTYyExg.js → AiFeatureMenu-CcGRd1xE.js} +1 -1
  2. package/dist/{CloudEditor-BQyZ_nFg.js → CloudEditor-CUIWUMp5.js} +6 -6
  3. package/dist/{CollaboratorBar-DeP7K-zk.js → CollaboratorBar-DmxqeBYZ.js} +1 -1
  4. package/dist/ColorPicker-Gs4BMVog.js +474 -0
  5. package/dist/{CountdownToolbar-nY9H0BKd.js → CountdownToolbar-92w1YySJ.js} +2 -2
  6. package/dist/{ModuleBrowserModal-CkeYw1e3.js → ModuleBrowserModal-DsehjLvh.js} +4 -4
  7. package/dist/{ModulePreviewCanvas-BIMFyYaa.js → ModulePreviewCanvas-BBfuS8VW.js} +1 -1
  8. package/dist/{NumberWithSuffix-BoZyUoNz.js → NumberWithSuffix-BxSRfI8b.js} +1 -1
  9. package/dist/{ParagraphEditor-DGsTFMxg.js → ParagraphEditor-vgvQxicC.js} +4 -4
  10. package/dist/{RichTextEditorContent-BB_n8vgB.js → RichTextEditorContent-Dza2oPvh.js} +1 -1
  11. package/dist/{SaveModuleDialog-Cypt_qOB.js → SaveModuleDialog-DNWGCHlS.js} +2 -2
  12. package/dist/{SnapshotHistory-DQTH8TCS.js → SnapshotHistory-BLmnNLg1.js} +2 -2
  13. package/dist/{TestEmailModal-DqxrL-U9.js → TestEmailModal-D6v1hgY2.js} +2 -2
  14. package/dist/{TitleEditor-DoGgnrcb.js → TitleEditor-DPdzOQpq.js} +2 -2
  15. package/dist/{TplModal-Ca-29YDD.js → TplModal-DObT0uxf.js} +1 -1
  16. package/dist/{blockTypeIcons-DVJXg5si.js → blockTypeIcons-B9f5fH_5.js} +1 -1
  17. package/dist/bundle-stats.json +6 -6
  18. package/dist/cdn/chunks/{AiFeatureMenu-roPglhox.js → AiFeatureMenu-CyUCHd9I.js} +8 -8
  19. package/dist/cdn/chunks/{AiFeatureMenu-roPglhox.js.map → AiFeatureMenu-CyUCHd9I.js.map} +1 -1
  20. package/dist/cdn/chunks/{BlockIssueBadge-DW_Tt7Wg.js → BlockIssueBadge-BAa_dI-c.js} +5 -5
  21. package/dist/cdn/chunks/{BlockIssueBadge-DW_Tt7Wg.js.map → BlockIssueBadge-BAa_dI-c.js.map} +1 -1
  22. package/dist/cdn/chunks/{CloudEditor-CX6y1k3C.js → CloudEditor-ClfgLU48.js} +159 -159
  23. package/dist/cdn/chunks/{CloudEditor-CX6y1k3C.js.map → CloudEditor-ClfgLU48.js.map} +1 -1
  24. package/dist/cdn/chunks/{CollaboratorBar-Dyrab63H.js → CollaboratorBar-DCc5SL0P.js} +3 -3
  25. package/dist/cdn/chunks/{CollaboratorBar-Dyrab63H.js.map → CollaboratorBar-DCc5SL0P.js.map} +1 -1
  26. package/dist/cdn/chunks/ColorPicker-Pi-1fR8c.js +471 -0
  27. package/dist/cdn/chunks/ColorPicker-Pi-1fR8c.js.map +1 -0
  28. package/dist/cdn/chunks/{CountdownBlock-Bul4tczj.js → CountdownBlock-Bj7aoBUU.js} +4 -4
  29. package/dist/cdn/chunks/{CountdownBlock-Bul4tczj.js.map → CountdownBlock-Bj7aoBUU.js.map} +1 -1
  30. package/dist/cdn/chunks/{CountdownToolbar-DYvATR0J.js → CountdownToolbar-B1oniVq1.js} +4 -4
  31. package/dist/cdn/chunks/{CountdownToolbar-DYvATR0J.js.map → CountdownToolbar-B1oniVq1.js.map} +1 -1
  32. package/dist/cdn/chunks/{IssuesPanel-BhHU-hq3.js → IssuesPanel-BXLVRo-c.js} +7 -7
  33. package/dist/cdn/chunks/{IssuesPanel-BhHU-hq3.js.map → IssuesPanel-BXLVRo-c.js.map} +1 -1
  34. package/dist/cdn/chunks/{ModuleBrowserModal-BGd5Ryyx.js → ModuleBrowserModal-C7BkJvzf.js} +6 -6
  35. package/dist/cdn/chunks/{ModuleBrowserModal-BGd5Ryyx.js.map → ModuleBrowserModal-C7BkJvzf.js.map} +1 -1
  36. package/dist/cdn/chunks/{ModulePreviewCanvas-Hx6SCCjB.js → ModulePreviewCanvas-BJn-ZHlC.js} +10 -10
  37. package/dist/cdn/chunks/{ModulePreviewCanvas-Hx6SCCjB.js.map → ModulePreviewCanvas-BJn-ZHlC.js.map} +1 -1
  38. package/dist/cdn/chunks/{NumberWithSuffix-BImuhc9K.js → NumberWithSuffix-CkOxH3F7.js} +2 -2
  39. package/dist/cdn/chunks/{NumberWithSuffix-BImuhc9K.js.map → NumberWithSuffix-CkOxH3F7.js.map} +1 -1
  40. package/dist/cdn/chunks/{ParagraphEditor-K2vENidm.js → ParagraphEditor-4cMKKC-V.js} +146 -146
  41. package/dist/cdn/chunks/{ParagraphEditor-K2vENidm.js.map → ParagraphEditor-4cMKKC-V.js.map} +1 -1
  42. package/dist/cdn/chunks/{RichTextEditorContent-B_w3u5lN.js → RichTextEditorContent-7RZe4tbj.js} +6 -6
  43. package/dist/cdn/chunks/{RichTextEditorContent-B_w3u5lN.js.map → RichTextEditorContent-7RZe4tbj.js.map} +1 -1
  44. package/dist/cdn/chunks/{SaveModuleDialog-Cw-182CB.js → SaveModuleDialog-mr9A4j6G.js} +4 -4
  45. package/dist/cdn/chunks/{SaveModuleDialog-Cw-182CB.js.map → SaveModuleDialog-mr9A4j6G.js.map} +1 -1
  46. package/dist/cdn/chunks/{TitleEditor-CUKlo_Zj.js → TitleEditor-Cqw2jvuc.js} +8 -8
  47. package/dist/cdn/chunks/{TitleEditor-CUKlo_Zj.js.map → TitleEditor-Cqw2jvuc.js.map} +1 -1
  48. package/dist/cdn/chunks/{blockTypeIcons-Cx1FAqL6.js → blockTypeIcons-B_xRBxSU.js} +8 -8
  49. package/dist/cdn/chunks/{blockTypeIcons-Cx1FAqL6.js.map → blockTypeIcons-B_xRBxSU.js.map} +1 -1
  50. package/dist/cdn/chunks/{extensions-DSxG2wYf.js → extensions-Btyx_IMf.js} +19 -19
  51. package/dist/cdn/chunks/{extensions-DSxG2wYf.js.map → extensions-Btyx_IMf.js.map} +1 -1
  52. package/dist/cdn/chunks/{features-C-cjT_8L.js → features-Dwb5aTLg.js} +18 -16
  53. package/dist/cdn/chunks/features-Dwb5aTLg.js.map +1 -0
  54. package/dist/cdn/chunks/{icons-ay0_fN-T.js → icons-Dhqh5lYQ.js} +2 -2
  55. package/dist/cdn/chunks/{icons-ay0_fN-T.js.map → icons-Dhqh5lYQ.js.map} +1 -1
  56. package/dist/cdn/chunks/{media-library-CkmqPdO4.js → media-library-DRodsf2D.js} +101 -101
  57. package/dist/cdn/chunks/{media-library-CkmqPdO4.js.map → media-library-DRodsf2D.js.map} +1 -1
  58. package/dist/cdn/chunks/{quality-CDNrMw2A.js → quality-A_V2Iqu_.js} +435 -435
  59. package/dist/cdn/chunks/{quality-CDNrMw2A.js.map → quality-A_V2Iqu_.js.map} +1 -1
  60. package/dist/cdn/chunks/{renderer-JQ91A09w.js → renderer-BM_-zceB.js} +11 -11
  61. package/dist/cdn/chunks/{renderer-JQ91A09w.js.map → renderer-BM_-zceB.js.map} +1 -1
  62. package/dist/cdn/chunks/{src-Cehu7Hqx.js → src-DSomxPI-.js} +4 -4
  63. package/dist/cdn/chunks/{src-Cehu7Hqx.js.map → src-DSomxPI-.js.map} +1 -1
  64. package/dist/cdn/chunks/{styles-DBjy3lz9.js → styles--UXn88wH.js} +829 -829
  65. package/dist/cdn/chunks/{styles-DBjy3lz9.js.map → styles--UXn88wH.js.map} +1 -1
  66. package/dist/cdn/editor.js +29 -29
  67. package/dist/{dist-CFOQvhSC.js → color-DhoxCSMv.js} +9 -1
  68. package/dist/{styles-mvx3k1hf.js → styles-CPt6RYEc.js} +6 -6
  69. package/dist/templatical-editor.js +3 -3
  70. package/dist/{useEditorCore-DtZkR7Vk.js → useEditorCore-CSfeEwCj.js} +196 -202
  71. package/package.json +7 -7
  72. package/dist/ColorPicker-CXAbjTaG.js +0 -446
  73. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js +0 -443
  74. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js.map +0 -1
  75. package/dist/cdn/chunks/features-C-cjT_8L.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { A as e, C as t, H as n, M as r, V as i, Z as a, ct as o, g as s, h as c, it as l, j as u, l as d, m as f, n as p, ot as m, p as h, r as g, s as _, st as v, v as ee, x as y, y as b } from "./chunks/draggable-D840DIZB.js";
2
- import { $ as x, A as S, An as C, Fn as w, Qn as T, Sn as E, Y as D, ot as O } from "./chunks/features-C-cjT_8L.js";
3
- import { S as te } from "./chunks/icons-ay0_fN-T.js";
4
- import { a as ne, c as re, d as ie, f as ae, i as oe, l as se, n as ce, o as le, r as ue, s as de, t as fe, u as pe } from "./chunks/styles-DBjy3lz9.js";
2
+ import { $n as x, A as S, Cn as C, In as w, Y as T, et as E, jn as D, st as O } from "./chunks/features-Dwb5aTLg.js";
3
+ import { S as te } from "./chunks/icons-Dhqh5lYQ.js";
4
+ import { a as ne, c as re, d as ie, f as ae, i as oe, l as se, n as ce, o as le, r as ue, s as de, t as fe, u as pe } from "./chunks/styles--UXn88wH.js";
5
5
  //#region src/Editor.vue?vue&type=script&setup=true&lang.ts
6
6
  var me = ["data-tpl-theme"], k = {
7
7
  class: "tpl-header tpl:absolute tpl:top-0 tpl:right-0 tpl:left-0 tpl:z-50 tpl:grid tpl:h-14 tpl:grid-cols-[1fr_auto_1fr] tpl:items-center tpl:px-4 tpl:shadow-[var(--tpl-shadow-md)] tpl:border-b tpl:border-[var(--tpl-border)]",
@@ -19,12 +19,12 @@ var me = ["data-tpl-theme"], k = {
19
19
  shadowRoot: {}
20
20
  },
21
21
  setup(t, { expose: g }) {
22
- let y = t, x = E({
22
+ let y = t, x = C({
23
23
  content: y.config.content,
24
24
  templateDefaults: y.config.templateDefaults
25
- }), C = a(null), w = S({
25
+ }), w = a(null), E = S({
26
26
  editor: x,
27
- containerEl: C,
27
+ containerEl: w,
28
28
  config: {
29
29
  uiTheme: y.config.uiTheme,
30
30
  theme: y.config.theme,
@@ -42,23 +42,23 @@ var me = ["data-tpl-theme"], k = {
42
42
  fontsManager: y.fontsManager,
43
43
  autoSaveOptions: y.config.onChange ? { onChange: () => y.config.onChange(JSON.parse(JSON.stringify(x.state.content))) } : null,
44
44
  editorRoot: y.shadowRoot
45
- }), { showNotice: T } = D(() => y.config.smallScreenNotice);
45
+ }), { showNotice: D } = T(() => y.config.smallScreenNotice);
46
46
  return e(async () => {
47
47
  await y.fontsManager.loadCustomFonts();
48
48
  }), u(() => {
49
- y.fontsManager.cleanupFontLinks(), w.destroy();
49
+ y.fontsManager.cleanupFontLinks(), E.destroy();
50
50
  }), g({
51
51
  getContent: () => x.content.value,
52
52
  setContent: (e) => x.setContent(e),
53
53
  setTheme: (e) => x.setUiTheme(e),
54
- renderCustomBlock: w.registry.renderCustomBlock,
55
- getCustomBlockStylesheet: (e) => w.registry.getDefinition(e)?.stylesheet
54
+ renderCustomBlock: E.registry.renderCustomBlock,
55
+ getCustomBlockStylesheet: (e) => E.registry.getDefinition(e)?.stylesheet
56
56
  }), (e, a) => (r(), s("div", {
57
57
  ref_key: "rootEl",
58
- ref: C,
58
+ ref: w,
59
59
  class: m(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": l(x).state.darkMode }]),
60
- "data-tpl-theme": l(w).resolvedTheme.value,
61
- style: v(l(w).themeStyles.value),
60
+ "data-tpl-theme": l(E).resolvedTheme.value,
61
+ style: v(l(E).themeStyles.value),
62
62
  onDragover: a[5] ||= d(() => {}, ["prevent"]),
63
63
  onDrop: a[6] ||= d(() => {}, ["prevent"])
64
64
  }, [
@@ -86,15 +86,15 @@ var me = ["data-tpl-theme"], k = {
86
86
  class: m(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", [l(x).state.previewMode ? "tpl:left-0 tpl:right-0" : "tpl:left-12 tpl:right-[320px]", "tpl:top-14"]]),
87
87
  style: { transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)" }
88
88
  }, [h("div", j, [b(p, { name: "tpl-restore-btn" }, {
89
- default: i(() => [l(w).conditionPreview.hasHiddenBlocks.value ? (r(), s("button", {
89
+ default: i(() => [l(E).conditionPreview.hasHiddenBlocks.value ? (r(), s("button", {
90
90
  key: 0,
91
91
  class: "tpl:absolute tpl:left-1/2 tpl:top-2 tpl:-translate-x-1/2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-full tpl:border tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:whitespace-nowrap tpl:shadow-md tpl:hover:opacity-80 tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)] tpl:border-[var(--tpl-warning)]",
92
92
  style: { "backdrop-filter": "blur(8px)" },
93
- onClick: a[0] ||= (e) => l(w).conditionPreview.reset()
93
+ onClick: a[0] ||= (e) => l(E).conditionPreview.reset()
94
94
  }, [b(l(te), {
95
95
  size: 13,
96
96
  "stroke-width": 2
97
- }), ee(" " + o(l(w).t.blockSettings.restoreHiddenBlocks), 1)])) : c("", !0)]),
97
+ }), ee(" " + o(l(E).t.blockSettings.restoreHiddenBlocks), 1)])) : c("", !0)]),
98
98
  _: 1
99
99
  })]), h("div", M, [b(ie, {
100
100
  viewport: l(x).state.viewport,
@@ -120,27 +120,27 @@ var me = ["data-tpl-theme"], k = {
120
120
  role: "status",
121
121
  "aria-live": "polite",
122
122
  "aria-atomic": "true",
123
- "aria-label": l(w).t.landmarks.reorderAnnouncements
124
- }, o(l(w).keyboardReorder.announcement.value), 9, N),
123
+ "aria-label": l(E).t.landmarks.reorderAnnouncements
124
+ }, o(l(E).keyboardReorder.announcement.value), 9, N),
125
125
  n(b(re, {
126
126
  "selected-block": l(x).selectedBlock.value,
127
127
  settings: l(x).content.value.settings,
128
128
  onUpdateBlock: a[1] ||= (e) => l(x).updateBlock(l(x).state.selectedBlockId, e),
129
129
  onDeleteBlock: a[2] ||= () => {
130
- l(x).state.selectedBlockId && l(w).blockActions.deleteBlock(l(x).state.selectedBlockId);
130
+ l(x).state.selectedBlockId && l(E).blockActions.deleteBlock(l(x).state.selectedBlockId);
131
131
  },
132
132
  onDuplicateBlock: a[3] ||= () => {
133
- l(x).selectedBlock.value && l(w).blockActions.duplicateBlock(l(x).selectedBlock.value);
133
+ l(x).selectedBlock.value && l(E).blockActions.duplicateBlock(l(x).selectedBlock.value);
134
134
  },
135
135
  onUpdateSettings: a[4] ||= (e) => l(x).updateSettings(e)
136
136
  }, null, 8, ["selected-block", "settings"]), [[_, !l(x).state.previewMode]]),
137
137
  h("div", {
138
- ref: (e) => l(w).popoverRoot.value = e,
138
+ ref: (e) => l(E).popoverRoot.value = e,
139
139
  class: "tpl-popover-root"
140
140
  }, null, 512),
141
141
  b(ce),
142
142
  b(fe),
143
- l(T) ? (r(), f(de, { key: 1 })) : c("", !0)
143
+ l(D) ? (r(), f(de, { key: 1 })) : c("", !0)
144
144
  ], 46, me));
145
145
  }
146
146
  }), [["__scopeId", "data-v-f848fa43"]]), F = /* #__PURE__ */ Object.assign({
@@ -199,7 +199,7 @@ function ye() {
199
199
  async function be(e) {
200
200
  let t;
201
201
  try {
202
- t = await import("./chunks/renderer-JQ91A09w.js").then((e) => e.t);
202
+ t = await import("./chunks/renderer-BM_-zceB.js").then((e) => e.t);
203
203
  } catch {
204
204
  throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
205
205
  }
@@ -245,7 +245,7 @@ function X(e) {
245
245
  async function we(e) {
246
246
  let n = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
247
247
  if (!n) throw Error(`[Templatical] Container element not found: ${e.container}`);
248
- let r = await G(e.locale ?? "en"), i = x(e.fonts);
248
+ let r = await G(e.locale ?? "en"), i = E(e.fonts);
249
249
  X(n);
250
250
  let o = q(n, e.shadowDom ?? !0), s = a(null), c = g({ setup() {
251
251
  return () => t(P, {
@@ -263,7 +263,7 @@ async function we(e) {
263
263
  }), Y = n;
264
264
  let l = {
265
265
  getContent() {
266
- return C(s.value ? s.value.getContent() : e.content ?? w());
266
+ return D(s.value ? s.value.getContent() : e.content ?? w());
267
267
  },
268
268
  setContent(t) {
269
269
  s.value && s.value.setContent(t), e.content = t;
@@ -290,13 +290,13 @@ function $(e) {
290
290
  async function Te(e) {
291
291
  let n = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
292
292
  if (!n) throw Error(`[Templatical] Container element not found: ${e.container}`);
293
- let { default: r } = await import("./chunks/CloudEditor-CX6y1k3C.js"), [i, o] = await Promise.all([G(e.locale ?? "en"), he(e.locale ?? "en")]), s = x(e.fonts);
293
+ let { default: r } = await import("./chunks/CloudEditor-ClfgLU48.js"), [i, o] = await Promise.all([G(e.locale ?? "en"), he(e.locale ?? "en")]), s = E(e.fonts);
294
294
  $(n);
295
295
  let c = q(n, e.shadowDom ?? !0), l = a(null);
296
296
  return await new Promise((a, u) => {
297
297
  let d = setTimeout(() => {
298
298
  u(/* @__PURE__ */ Error("[Templatical] Cloud editor initialization timed out"));
299
- }, T), f = g({ setup() {
299
+ }, x), f = g({ setup() {
300
300
  return () => t(r, {
301
301
  config: e,
302
302
  translations: i,
@@ -316,7 +316,7 @@ async function Te(e) {
316
316
  }), Q = n;
317
317
  }), {
318
318
  getContent() {
319
- return C(l.value ? l.value.getContent() : e.content ?? w());
319
+ return D(l.value ? l.value.getContent() : e.content ?? w());
320
320
  },
321
321
  setContent(e) {
322
322
  l.value && l.value.setContent(e);
@@ -340,6 +340,6 @@ function Ee() {
340
340
  Y && X(Y);
341
341
  }
342
342
  //#endregion
343
- export { H as getBaseLocale, ye as getSupportedCloudLocales, ve as getSupportedLocales, we as init, Te as initCloud, _e as isCloudLocaleSupported, ge as isLocaleSupported, Ee as unmount, x as useFonts };
343
+ export { H as getBaseLocale, ye as getSupportedCloudLocales, ve as getSupportedLocales, we as init, Te as initCloud, _e as isCloudLocaleSupported, ge as isLocaleSupported, Ee as unmount, E as useFonts };
344
344
 
345
345
  //# sourceMappingURL=editor.js.map
@@ -248,4 +248,12 @@ function N(e, n = {}) {
248
248
  };
249
249
  }
250
250
  //#endregion
251
- export { A as a, S as i, j as n, N as r, w as t };
251
+ //#region src/utils/color.ts
252
+ function P(e) {
253
+ let t = /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i.exec(e.trim());
254
+ if (!t) return e;
255
+ let n = (e) => Number(e).toString(16).padStart(2, "0");
256
+ return `#${n(t[1])}${n(t[2])}${n(t[3])}`;
257
+ }
258
+ //#endregion
259
+ export { S as a, N as i, w as n, A as o, j as r, P as t };
@@ -1,7 +1,7 @@
1
1
  import { A as e, Dt as t, Et as n, H as r, I as i, K as a, N as o, O as s, Ot as c, R as l, W as u, Y as d, _ as f, c as p, d as m, g as h, h as g, j as _, l as v, m as y, nt as b, q as x, r as S, s as C, u as w, w as T, x as E, y as D, z as O } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as k, c as A, o as j, s as M, t as N } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
3
  import { C as P, D as F, E as I, O as L, k as R, o as z, r as B, s as V, u as ee, w as te } from "./dist-DoRIUsfz.js";
4
- import { C as ne, F as H, I as re, L as ie, M as ae, N as oe, O as se, P as ce, R as le, _ as ue, a as de, c as fe, f as pe, g as me, h as he, i as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, s as Ce, u as we, v as Te, y as Ee, z as De } from "./useEditorCore-DtZkR7Vk.js";
4
+ import { C as ne, F as H, I as re, L as ie, M as ae, N as oe, O as se, P as ce, R as le, _ as ue, a as de, c as fe, f as pe, g as me, h as he, i as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, s as Ce, u as we, v as Te, y as Ee, z as De } from "./useEditorCore-CSfeEwCj.js";
5
5
  import { c as Oe, m as ke } from "./dist-DYv_Pttj.js";
6
6
  import { D as Ae, F as je, I as Me, L as Ne, N as Pe, P as Fe, T as Ie, a as Le, d as Re, f as ze, g as Be, k as Ve, m as He, n as Ue, o as We, p as Ge, s as Ke, u as qe, w as Je, x as Ye } from "./keys-BbDgCU6K.js";
7
7
  import { t as U } from "./useI18n-eR1yVW0v.js";
@@ -9,7 +9,7 @@ import { t as W } from "./createLucideIcon-Bh9xOmlW.js";
9
9
  import { n as Xe, t as Ze } from "./scan-line-QgyDIgn_.js";
10
10
  import { t as Qe } from "./chevron-down-ByXpufZD.js";
11
11
  import { t as $e } from "./circle-alert-CjcAORUw.js";
12
- import { i as et, n as tt, r as nt, t as rt } from "./blockTypeIcons-DVJXg5si.js";
12
+ import { i as et, n as tt, r as nt, t as rt } from "./blockTypeIcons-B9f5fH_5.js";
13
13
  import { n as it, t as at } from "./refresh-cw--lvWGy0_.js";
14
14
  import { t as ot } from "./image-up-Bj_nes3f.js";
15
15
  import { t as st } from "./info-BhSQCxBV.js";
@@ -27,10 +27,10 @@ import { t as bt } from "./useAliveFlag-C43EhZFY.js";
27
27
  import { t as xt } from "./readableTextColor-f8Kykfnh.js";
28
28
  import { t as St } from "./CountdownBlock-173fiO5Z.js";
29
29
  import { t as Ct } from "./usePopoverRoot-C1j0D7cc.js";
30
- import { _ as wt, f as G, g as Tt, h as K, i as Et, l as Dt, m as q, n as Ot, p as J, t as Y, u as kt } from "./ColorPicker-CXAbjTaG.js";
30
+ import { _ as wt, f as G, g as Tt, h as K, i as Et, l as Dt, m as q, n as Ot, p as J, t as Y, u as kt } from "./ColorPicker-Gs4BMVog.js";
31
31
  import { n as At, r as jt } from "./MergeTagSuggestion-DrT3LiZ4.js";
32
- import { n as X, r as Z, t as Mt } from "./NumberWithSuffix-BoZyUoNz.js";
33
- import { t as Nt } from "./TplModal-Ca-29YDD.js";
32
+ import { n as X, r as Z, t as Mt } from "./NumberWithSuffix-BxSRfI8b.js";
33
+ import { t as Nt } from "./TplModal-DObT0uxf.js";
34
34
  var Pt = W("circle", [["circle", {
35
35
  cx: "12",
36
36
  cy: "12",
@@ -3267,7 +3267,7 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
3267
3267
  "duplicate"
3268
3268
  ],
3269
3269
  setup(e, { emit: t }) {
3270
- let n = h(() => import("./CountdownToolbar-nY9H0BKd.js")), r = e, i = t, { t: a } = U(), l = Ne(Be, "Toolbar"), u = E(Re, []), d = C(() => r.block.type), f = C(() => L(r.block)), _ = C(() => {
3270
+ let n = h(() => import("./CountdownToolbar-92w1YySJ.js")), r = e, i = t, { t: a } = U(), l = Ne(Be, "Toolbar"), u = E(Re, []), d = C(() => r.block.type), f = C(() => L(r.block)), _ = C(() => {
3271
3271
  if (f.value) return u.find((e) => e.type === r.block.customType);
3272
3272
  }), y = C(() => f.value ? _.value?.name ?? r.block.customType : le(d.value, a)), x = l.fonts;
3273
3273
  function T(e) {
@@ -2,8 +2,8 @@ import { D as e, Dt as t, E as n, Et as r, O as i, Ot as a, R as o, Y as s, _ as
2
2
  import { c as v, n as y, o as b, t as ee } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
3
  import { r as x } from "./timeouts-Bmi_yePw.js";
4
4
  import { P as S, d as C } from "./dist-DoRIUsfz.js";
5
- import { B as w, b as te, t as ne, w as T } from "./useEditorCore-DtZkR7Vk.js";
6
- import { a as re, c as ie, d as ae, f as oe, i as E, l as D, n as O, o as se, p as ce, r as k, s as le, t as ue, u as de } from "./styles-mvx3k1hf.js";
5
+ import { B as w, b as te, t as ne, w as T } from "./useEditorCore-CSfeEwCj.js";
6
+ import { a as re, c as ie, d as ae, f as oe, i as E, l as D, n as O, o as se, p as ce, r as k, s as le, t as ue, u as de } from "./styles-CPt6RYEc.js";
7
7
  import { t as fe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
8
  //#region src/Editor.vue?vue&type=script&setup=true&lang.ts
9
9
  var pe = ["data-tpl-theme"], me = {
@@ -293,7 +293,7 @@ function $(e) {
293
293
  async function Te(e) {
294
294
  let t = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
295
295
  if (!t) throw Error(`[Templatical] Container element not found: ${e.container}`);
296
- let { default: n } = await import("./CloudEditor-BQyZ_nFg.js"), [r, i] = await Promise.all([G(e.locale ?? "en"), he(e.locale ?? "en")]), a = T(e.fonts);
296
+ let { default: n } = await import("./CloudEditor-CUIWUMp5.js"), [r, i] = await Promise.all([G(e.locale ?? "en"), he(e.locale ?? "en")]), a = T(e.fonts);
297
297
  $(t);
298
298
  let o = q(t, e.shadowDom ?? !0), c = s(null);
299
299
  return await new Promise((s, l) => {