@aswin.dev/editor 0.7.3 → 0.7.6

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 (93) hide show
  1. package/dist/{AiChatSidebar-Dt5pvG5t.js → AiChatSidebar-DM2ri7KX.js} +1 -1
  2. package/dist/{AiFeatureMenu-BipxcGap.js → AiFeatureMenu-BrZBJ0R5.js} +1 -1
  3. package/dist/{CloudEditor-CnUX0IOW.js → CloudEditor-BRpzzfQn.js} +8 -8
  4. package/dist/{CollaboratorBar-NaaZTjbs.js → CollaboratorBar-DsRXj3Kn.js} +1 -1
  5. package/dist/CountdownToolbar-B9IAZzeV.js +194 -0
  6. package/dist/{DesignReferenceSidebar-CZg97bbj.js → DesignReferenceSidebar-B1iw3Bb7.js} +1 -1
  7. package/dist/{ModuleBrowserModal-D2EVdexc.js → ModuleBrowserModal-DVnd1dqR.js} +4 -4
  8. package/dist/{ModulePreviewCanvas-P3N-nxkU.js → ModulePreviewCanvas-D9jBAoBQ.js} +29 -29
  9. package/dist/{ParagraphEditor-BbRuKhWv.js → ParagraphEditor-CO3V0H_V.js} +7 -7
  10. package/dist/{SaveModuleDialog-DLZa3m3O.js → SaveModuleDialog-CboNFwIA.js} +2 -2
  11. package/dist/{NumberWithSuffix-CihczoAd.js → SlidingPillSelect-DfcBdJqN.js} +122 -106
  12. package/dist/{SnapshotHistory-Csg1_jXi.js → SnapshotHistory-C26pvPre.js} +1 -1
  13. package/dist/{TestEmailModal-m3okLbJz.js → TestEmailModal-B4OoUWb_.js} +2 -2
  14. package/dist/{TitleEditor-CtJIS5ER.js → TitleEditor-DU_QWG_m.js} +2 -2
  15. package/dist/{TplModal-CQCrKeKP.js → TplModal-Dr6Do8oU.js} +1 -1
  16. package/dist/{blockTypeIcons-Dah0pgt-.js → blockTypeIcons-cRDr36gk.js} +48 -30
  17. package/dist/bundle-stats.json +6 -6
  18. package/dist/cdn/chunks/{AccessibilityPanel-Bt_fD7QT.js → AccessibilityPanel-Csd47zqI.js} +9 -9
  19. package/dist/cdn/chunks/{AccessibilityPanel-Bt_fD7QT.js.map → AccessibilityPanel-Csd47zqI.js.map} +1 -1
  20. package/dist/cdn/chunks/{AiFeatureMenu-Bn-0rgfr.js → AiFeatureMenu-BlnZF5pf.js} +7 -7
  21. package/dist/cdn/chunks/{AiFeatureMenu-Bn-0rgfr.js.map → AiFeatureMenu-BlnZF5pf.js.map} +1 -1
  22. package/dist/cdn/chunks/{BlockA11yBadge-Cj18Iw0p.js → BlockA11yBadge-VY8NqI9n.js} +4 -4
  23. package/dist/cdn/chunks/{BlockA11yBadge-Cj18Iw0p.js.map → BlockA11yBadge-VY8NqI9n.js.map} +1 -1
  24. package/dist/cdn/chunks/{CloudEditor-56lVcdot.js → CloudEditor-D0TrKlva.js} +178 -178
  25. package/dist/cdn/chunks/{CloudEditor-56lVcdot.js.map → CloudEditor-D0TrKlva.js.map} +1 -1
  26. package/dist/cdn/chunks/{CollaboratorBar-B7DCV3xp.js → CollaboratorBar-BhMNTI_h.js} +3 -3
  27. package/dist/cdn/chunks/{CollaboratorBar-B7DCV3xp.js.map → CollaboratorBar-BhMNTI_h.js.map} +1 -1
  28. package/dist/cdn/chunks/CountdownToolbar-DsP6O1fl.js +196 -0
  29. package/dist/cdn/chunks/CountdownToolbar-DsP6O1fl.js.map +1 -0
  30. package/dist/cdn/chunks/{ModuleBrowserModal-CiIY7ZGv.js → ModuleBrowserModal-CpYPeiKv.js} +8 -8
  31. package/dist/cdn/chunks/{ModuleBrowserModal-CiIY7ZGv.js.map → ModuleBrowserModal-CpYPeiKv.js.map} +1 -1
  32. package/dist/cdn/chunks/{ModulePreviewCanvas-M7_OGV2m.js → ModulePreviewCanvas-BIYYnqUq.js} +24 -24
  33. package/dist/cdn/chunks/{ModulePreviewCanvas-M7_OGV2m.js.map → ModulePreviewCanvas-BIYYnqUq.js.map} +1 -1
  34. package/dist/cdn/chunks/{ParagraphEditor-1XJOpiLX.js → ParagraphEditor-ZV5SYYw8.js} +53 -53
  35. package/dist/cdn/chunks/{ParagraphEditor-1XJOpiLX.js.map → ParagraphEditor-ZV5SYYw8.js.map} +1 -1
  36. package/dist/cdn/chunks/{RichTextEditorContent-C2q8sbp2.js → RichTextEditorContent-Dx05ETtt.js} +4 -4
  37. package/dist/cdn/chunks/{RichTextEditorContent-C2q8sbp2.js.map → RichTextEditorContent-Dx05ETtt.js.map} +1 -1
  38. package/dist/cdn/chunks/{SaveModuleDialog-BNxh1jPT.js → SaveModuleDialog-DJEEK7Wb.js} +23 -23
  39. package/dist/cdn/chunks/{SaveModuleDialog-BNxh1jPT.js.map → SaveModuleDialog-DJEEK7Wb.js.map} +1 -1
  40. package/dist/cdn/chunks/{NumberWithSuffix-DfVBnsgc.js → SlidingPillSelect-BhPCkqVu.js} +132 -116
  41. package/dist/cdn/chunks/SlidingPillSelect-BhPCkqVu.js.map +1 -0
  42. package/dist/cdn/chunks/{TitleEditor-IF7VzLTk.js → TitleEditor-fu1A87Ld.js} +21 -21
  43. package/dist/cdn/chunks/{TitleEditor-IF7VzLTk.js.map → TitleEditor-fu1A87Ld.js.map} +1 -1
  44. package/dist/cdn/chunks/blockTypeIcons-CJirTS-q.js +25 -0
  45. package/dist/cdn/chunks/blockTypeIcons-CJirTS-q.js.map +1 -0
  46. package/dist/cdn/chunks/{de-B05yW8Gi.js → de-BsYijc0r.js} +49 -2
  47. package/dist/cdn/chunks/de-BsYijc0r.js.map +1 -0
  48. package/dist/cdn/chunks/{en-BII7695P.js → en-DMu9hPIC.js} +49 -2
  49. package/dist/cdn/chunks/en-DMu9hPIC.js.map +1 -0
  50. package/dist/cdn/chunks/{extensions-B0eT-yjf.js → extensions-BbFKsjyT.js} +26 -26
  51. package/dist/cdn/chunks/{extensions-B0eT-yjf.js.map → extensions-BbFKsjyT.js.map} +1 -1
  52. package/dist/cdn/chunks/{features-BrvE2Fzv.js → features-uApxwJMz.js} +1953 -1836
  53. package/dist/cdn/chunks/features-uApxwJMz.js.map +1 -0
  54. package/dist/cdn/chunks/{icons-C7wtAD8p.js → icons-DZb4EX9m.js} +26 -9
  55. package/dist/cdn/chunks/icons-DZb4EX9m.js.map +1 -0
  56. package/dist/cdn/chunks/{media-library-Cl5XuaKy.js → media-library-B3g52j8R.js} +529 -529
  57. package/dist/cdn/chunks/{media-library-Cl5XuaKy.js.map → media-library-B3g52j8R.js.map} +1 -1
  58. package/dist/cdn/chunks/{quality-Va91a3N8.js → quality-Ug5lFGHP.js} +288 -288
  59. package/dist/cdn/chunks/{quality-Va91a3N8.js.map → quality-Ug5lFGHP.js.map} +1 -1
  60. package/dist/cdn/chunks/{renderer-si0Zgxeb.js → renderer-jXCdXjV-.js} +19 -19
  61. package/dist/cdn/chunks/{renderer-si0Zgxeb.js.map → renderer-jXCdXjV-.js.map} +1 -1
  62. package/dist/cdn/chunks/{src-BLyYIbdZ.js → src-FMtH5ZvJ.js} +9 -9
  63. package/dist/cdn/chunks/{src-BLyYIbdZ.js.map → src-FMtH5ZvJ.js.map} +1 -1
  64. package/dist/cdn/chunks/{styles-C6BQLT9F.js → styles-Co9vw4ag.js} +1332 -1101
  65. package/dist/cdn/chunks/styles-Co9vw4ag.js.map +1 -0
  66. package/dist/cdn/chunks/{tiptap-D8whBv5F.js → tiptap-qXOh0vzV.js} +2 -2
  67. package/dist/cdn/chunks/{tiptap-D8whBv5F.js.map → tiptap-qXOh0vzV.js.map} +1 -1
  68. package/dist/cdn/editor.css +1 -1
  69. package/dist/cdn/editor.js +85 -85
  70. package/dist/cdn/editor.js.map +1 -1
  71. package/dist/{cloud-BoS0J0vs.js → cloud-COUuu_KE.js} +1 -1
  72. package/dist/{de-C74F9xK3.js → de-CR1qAkAm.js} +48 -1
  73. package/dist/{dist-C2grMquk.js → dist-DP82Y0rs.js} +155 -131
  74. package/dist/{en-B24jVTeO.js → en-jbnp1n6M.js} +48 -1
  75. package/dist/{extensions-DsmjHqBF.js → extensions-Bg22D6c8.js} +16 -16
  76. package/dist/index.d.ts +10 -10
  77. package/dist/style.css +1 -1
  78. package/dist/{styles-BMFMtR9R.js → styles-DgL0UYj0.js} +1456 -1225
  79. package/dist/templatical-editor.js +6 -6
  80. package/dist/{useEditorCore-CtNAo0uy.js → useEditorCore-CSlYQZWx.js} +1756 -1661
  81. package/dist/{useMergeTag-2vTcVpNo.js → useMergeTag-BVL3A4OO.js} +4 -4
  82. package/package.json +7 -7
  83. package/dist/CountdownToolbar-CbhSp_uq.js +0 -210
  84. package/dist/cdn/chunks/CountdownToolbar-BtaD3d3-.js +0 -212
  85. package/dist/cdn/chunks/CountdownToolbar-BtaD3d3-.js.map +0 -1
  86. package/dist/cdn/chunks/NumberWithSuffix-DfVBnsgc.js.map +0 -1
  87. package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js +0 -24
  88. package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js.map +0 -1
  89. package/dist/cdn/chunks/de-B05yW8Gi.js.map +0 -1
  90. package/dist/cdn/chunks/en-BII7695P.js.map +0 -1
  91. package/dist/cdn/chunks/features-BrvE2Fzv.js.map +0 -1
  92. package/dist/cdn/chunks/icons-C7wtAD8p.js.map +0 -1
  93. package/dist/cdn/chunks/styles-C6BQLT9F.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { C as e, F as t, G as n, H as r, I as i, M as a, N as o, P as s, Q as c, S as l, W as u, _ as d, b as f, ct as p, d as m, dt as h, f as g, ft as _, g as v, h as y, l as b, m as x, n as S, rt as C, tt as w, ut as T, v as E, x as D, y as O } from "./draggable-C-1_gch3.js";
2
- import { $ as k, At as A, Bt as j, C as M, D as N, Ft as P, Ht as ee, Jt as F, Kn as I, Mn as te, Rn as L, Rt as ne, S as R, St as z, Wt as B, Yt as re, _ as ie, an as ae, at as V, b as oe, c as se, d as H, dn as ce, f as U, fn as W, g as G, gt as K, h as q, in as le, jt as J, k as Y, l as X, m as ue, on as de, or as fe, p as pe, pt as me, qt as he, rt as Z, sn as Q, u as ge, ut as $, v as _e, wn as ve, x as ye, xt as be, y as xe, zn as Se } from "./features-BrvE2Fzv.js";
3
- import { E as Ce, T as we } from "./icons-C7wtAD8p.js";
4
- import { a as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, l as Me, m as Ne, n as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze } from "./styles-C6BQLT9F.js";
2
+ import { Bn as ee, C as k, Ct as A, D as j, Gt as M, It as N, Jt as P, Mt as F, Nn as I, S as L, St as R, Tn as z, Ut as B, Vt as V, Xt as te, Yt as H, _ as ne, _t as U, an as re, b as ie, c as W, cn as G, d as K, dt as q, et as J, f as Y, fn as ae, g as oe, h as se, it as X, jt as Z, k as ce, l as le, m as ue, mt as de, on as fe, ot as pe, p as me, pn as he, qn as Q, sn as ge, sr as $, u as _e, v as ve, x as ye, y as be, zn as xe, zt as Se } from "./features-uApxwJMz.js";
3
+ import { D as Ce, E as we } from "./icons-DZb4EX9m.js";
4
+ import { a as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, l as Me, m as Ne, n as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze } from "./styles-Co9vw4ag.js";
5
5
  import { d as Be } from "./styleConstants-DfcU8u_r.js";
6
6
  //#region src/cloud/composables/useSnapshotPreview.ts
7
7
  function Ve(e) {
@@ -11,7 +11,7 @@ function Ve(e) {
11
11
  });
12
12
  let f = x(() => l.value !== null), p = x(() => s.value?.snapshots.value ?? []), m = x(() => s.value?.isLoading.value ?? !1), h = x(() => s.value?.isRestoring.value ?? !1);
13
13
  function g() {
14
- n.state.template?.id && !s.value && (s.value = pe({
14
+ n.state.template?.id && !s.value && (s.value = me({
15
15
  authManager: t,
16
16
  templateId: n.state.template.id,
17
17
  onRestore: _,
@@ -84,7 +84,7 @@ function He() {
84
84
  function m(t) {
85
85
  c.value = !1, e.value = e.value === t ? null : t;
86
86
  }
87
- return W(l, () => {
87
+ return he(l, () => {
88
88
  c.value = !1;
89
89
  }), {
90
90
  activePanel: e,
@@ -107,9 +107,9 @@ function He() {
107
107
  //#endregion
108
108
  //#region src/cloud/composables/useCollabUndoWarning.ts
109
109
  function Ue(e) {
110
- let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = w(!1), a = w(!1), { start: o } = ve(() => {
110
+ let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = w(!1), a = w(!1), { start: o } = z(() => {
111
111
  a.value = !1;
112
- }, fe, { immediate: !1 });
112
+ }, $, { immediate: !1 });
113
113
  function s() {
114
114
  i.value || !t.value || n() === 0 || !r.value || (i.value = !0, a.value = !0, o());
115
115
  }
@@ -121,7 +121,7 @@ function Ue(e) {
121
121
  //#endregion
122
122
  //#region src/cloud/composables/useCloudFeatureFlags.ts
123
123
  function We(e) {
124
- let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = x(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = x(() => t.hasFeature("test_email")), o = x(() => !!r.state.template?.id), s = x(() => t.hasFeature("white_label")), c = x(() => t.config.value?.limits.max_templates ?? null), l = x(() => t.config.value?.template_count ?? 0), u = w(!1), d = w("idle"), f = w(""), { start: p } = ve(() => {
124
+ let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = x(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = x(() => t.hasFeature("test_email")), o = x(() => !!r.state.template?.id), s = x(() => t.hasFeature("white_label")), c = x(() => t.config.value?.limits.max_templates ?? null), l = x(() => t.config.value?.template_count ?? 0), u = w(!1), d = w("idle"), f = w(""), { start: p } = z(() => {
125
125
  d.value = "idle";
126
126
  }, 3e3, { immediate: !1 });
127
127
  return {
@@ -180,29 +180,29 @@ function Ge(e) {
180
180
  //#endregion
181
181
  //#region src/cloud/composables/useCloudInitialization.ts
182
182
  function Ke(e) {
183
- let { config: n, translations: i, fontsManager: a, emit: o, getCommentsSidebar: s } = e, c = w(!0), l = w(!1), u = w(null), d = !1, f = { value: null }, p = null, m = null, h = new N({
183
+ let { config: n, translations: i, fontsManager: a, emit: o, getCommentsSidebar: s } = e, c = w(!0), l = w(!1), u = w(null), d = !1, f = { value: null }, p = null, m = null, h = new j({
184
184
  ...n.auth,
185
185
  onError: n.onError
186
- }), g = ge({
186
+ }), g = _e({
187
187
  authManager: h,
188
188
  onError: n.onError
189
- }), _ = w(/* @__PURE__ */ new Map()), v = R({
189
+ }), _ = w(/* @__PURE__ */ new Map()), v = L({
190
190
  authManager: h,
191
191
  defaultFontFamily: n.fonts?.defaultFont,
192
192
  templateDefaults: n.templateDefaults,
193
193
  onError: n.onError,
194
194
  lockedBlocks: _
195
- }), y = q({
195
+ }), y = se({
196
196
  authManager: h,
197
197
  onError: n.onError
198
198
  });
199
- n.mcp?.enabled && se({
199
+ n.mcp?.enabled && W({
200
200
  editor: v,
201
201
  channel: y.channel,
202
202
  onOperation: n.mcp.onOperation
203
203
  });
204
204
  let b = null;
205
- n.collaboration?.enabled && (b = ie({
205
+ n.collaboration?.enabled && (b = ne({
206
206
  authManager: h,
207
207
  editor: v,
208
208
  channel: y.channel,
@@ -213,8 +213,8 @@ function Ke(e) {
213
213
  onBlockUnlocked: n.collaboration.onBlockUnlocked
214
214
  }), r(() => b.lockedBlocks.value, (e) => {
215
215
  _.value = e;
216
- }, { immediate: !0 }), G(v, b));
217
- let S = x(() => !!n.collaboration?.enabled && g.hasFeature("collaboration")), C = Y({
216
+ }, { immediate: !0 }), oe(v, b));
217
+ let S = x(() => !!n.collaboration?.enabled && g.hasFeature("collaboration")), C = ce({
218
218
  editor: v,
219
219
  config: {
220
220
  uiTheme: n.uiTheme,
@@ -259,32 +259,32 @@ function Ke(e) {
259
259
  onError: n.onError
260
260
  });
261
261
  p = E;
262
- let D = He(), O = ye(n.ai), A = We({
262
+ let D = He(), O = ye(n.ai), ee = We({
263
263
  planConfigInstance: g,
264
264
  aiConfig: O,
265
265
  editor: v
266
- }), j = Ge({
266
+ }), k = Ge({
267
267
  onRequestMedia: n.onRequestMedia,
268
268
  mediaLibraryOpen: D.mediaLibraryOpen,
269
269
  mediaLibraryAccept: D.mediaLibraryAccept
270
270
  });
271
- k({
271
+ J({
272
272
  onBlockMove: v.moveBlock,
273
273
  onBlockAdd: v.addBlock
274
274
  });
275
- let M = H({
275
+ let A = K({
276
276
  authManager: h,
277
277
  getFontsConfig: () => n.fonts,
278
278
  canUseCustomFonts: () => g.hasFeature("custom_fonts")
279
- }), P = U({
279
+ }), N = Y({
280
280
  authManager: h,
281
281
  getTemplateId: () => v.state.template?.id ?? null,
282
282
  save: () => v.save(),
283
- exportHtml: (e) => M.exportHtml(e),
283
+ exportHtml: (e) => A.exportHtml(e),
284
284
  onError: n.onError,
285
285
  isAuthReady: l,
286
286
  onBeforeTestEmail: n.onBeforeTestEmail
287
- }), F = xe({
287
+ }), F = be({
288
288
  authManager: h,
289
289
  getTemplateId: () => v.state.template?.id ?? null,
290
290
  getSocketId: () => y.getSocketId(),
@@ -293,55 +293,55 @@ function Ke(e) {
293
293
  isAuthReady: l,
294
294
  hasCommentingFeature: () => n.commenting !== !1 && g.hasFeature("commenting")
295
295
  });
296
- _e({
296
+ ve({
297
297
  comments: F,
298
298
  channel: y.channel
299
299
  });
300
300
  let I = ue({
301
301
  authManager: h,
302
302
  onError: n.onError
303
- }), te = w(!1), L = w(null), z = w(!1), ae = oe({
303
+ }), R = w(!1), z = w(null), V = w(!1), H = ie({
304
304
  authManager: h,
305
305
  getTemplateId: () => v.state.template?.id ?? null
306
306
  });
307
- function V(e) {
307
+ function U(e) {
308
308
  D.commentsOpen.value = !0, queueMicrotask(() => {
309
309
  s()?.filterByBlock(e);
310
310
  });
311
311
  }
312
- t(le, j.handleRequestMedia), t(B, h), t(ee, O), t(re, F), t(de, I), t(Q, ae), t(he, {
312
+ t(re, k.handleRequestMedia), t(M, h), t(B, O), t(te, F), t(ge, I), t(G, H), t(P, {
313
313
  plan: g,
314
314
  ai: O,
315
315
  comments: {
316
316
  getBlockCount: (e) => F.commentCountByBlock.value.get(e) ?? 0,
317
- openForBlock: V
317
+ openForBlock: U
318
318
  },
319
319
  savedModules: {
320
320
  openSaveDialog: (e) => {
321
- L.value = e ?? null, te.value = !0;
321
+ z.value = e ?? null, R.value = !0;
322
322
  },
323
323
  openBrowser: () => {
324
- z.value = !0;
324
+ V.value = !0;
325
325
  },
326
326
  moduleCount: x(() => I.modules.value.length)
327
327
  }
328
328
  });
329
- function ce(e) {
329
+ function q(e) {
330
330
  g.hasFeature("theme_customization") && (C.themeOverrides.value = e);
331
331
  }
332
- function W(e) {
332
+ function ae(e) {
333
333
  v.setUiTheme(e);
334
334
  }
335
- async function K() {
335
+ async function X() {
336
336
  c.value = !0, u.value = null;
337
337
  try {
338
338
  if (await h.initialize(), d) return;
339
339
  l.value = !0;
340
- let e = await X({ authManager: h });
340
+ let e = await le({ authManager: h });
341
341
  if (d) return;
342
342
  if (!e.api.ok) throw Error("Health check failed: API is not reachable");
343
343
  if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
344
- if (e.websocket.ok || ne.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await g.fetchConfig(), d) return;
344
+ if (e.websocket.ok || Se.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await g.fetchConfig(), d) return;
345
345
  a.setCustomFontsEnabled(g.hasFeature("custom_fonts")), n.customBlocks?.length && g.hasFeature("custom_blocks") && C.registerCustomBlocks(n.customBlocks), n.theme && g.hasFeature("theme_customization") && (C.themeOverrides.value = n.theme), n.modules !== !1 && g.hasFeature("saved_modules") && I.loadModules(), o("ready");
346
346
  } catch (e) {
347
347
  if (d) return;
@@ -351,7 +351,7 @@ function Ke(e) {
351
351
  d || (c.value = !1);
352
352
  }
353
353
  }
354
- function J() {
354
+ function Z() {
355
355
  d = !0, a.cleanupFontLinks(), y.disconnect(), C.destroy(), n.onUnmount?.();
356
356
  }
357
357
  return {
@@ -367,32 +367,32 @@ function Ke(e) {
367
367
  editor: v,
368
368
  core: C,
369
369
  aiConfig: O,
370
- featureFlags: A,
371
- mediaLib: j,
372
- exporter: M,
373
- testEmail: P,
370
+ featureFlags: ee,
371
+ mediaLib: k,
372
+ exporter: A,
373
+ testEmail: N,
374
374
  commentsInstance: F,
375
375
  savedModulesHeadless: I,
376
- scoringInstance: ae,
376
+ scoringInstance: H,
377
377
  panelState: D,
378
378
  snapshotPreview: E,
379
379
  collabWarning: T,
380
- showSaveModuleDialog: te,
381
- showModuleBrowserModal: z,
382
- saveModulePreSelectedBlockId: L,
380
+ showSaveModuleDialog: R,
381
+ showModuleBrowserModal: V,
382
+ saveModulePreSelectedBlockId: z,
383
383
  onSaveHook: f,
384
- initialize: K,
385
- destroy: J,
386
- setThemeOverrides: ce,
387
- setUiTheme: W,
388
- openCommentsForBlock: V
384
+ initialize: X,
385
+ destroy: Z,
386
+ setThemeOverrides: q,
387
+ setUiTheme: ae,
388
+ openCommentsForBlock: U
389
389
  };
390
390
  }
391
391
  //#endregion
392
392
  //#region src/utils/preRenderCustomBlocks.ts
393
393
  async function qe(e, t) {
394
394
  let n = async (e) => {
395
- if (I(e)) {
395
+ if (Q(e)) {
396
396
  let n = e;
397
397
  try {
398
398
  n.renderedHtml = await t.renderCustomBlock(n);
@@ -412,7 +412,7 @@ async function qe(e, t) {
412
412
  function Je(e) {
413
413
  let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
414
414
  function u() {
415
- return M(i.config.value.websocket);
415
+ return k(i.config.value.websocket);
416
416
  }
417
417
  async function d(e) {
418
418
  let i = await n.create(e);
@@ -483,7 +483,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
483
483
  },
484
484
  emits: ["cancel", "confirm"],
485
485
  setup(e, { emit: t }) {
486
- let n = t, { t: r } = Z();
486
+ let n = t, { t: r } = X();
487
487
  return (t, a) => (s(), v(S, {
488
488
  "enter-active-class": "tpl:transition-opacity tpl:duration-150",
489
489
  "leave-active-class": "tpl:transition-opacity tpl:duration-150",
@@ -498,7 +498,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
498
498
  class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
499
499
  onClick: a[2] ||= m((e) => n("cancel"), ["self"])
500
500
  }, [y("div", Ze, [
501
- y("header", Qe, [D(p($), {
501
+ y("header", Qe, [D(p(q), {
502
502
  size: 18,
503
503
  "stroke-width": 2,
504
504
  class: "tpl:text-[var(--tpl-warning)]"
@@ -565,7 +565,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
565
565
  },
566
566
  emits: ["save"],
567
567
  setup(e) {
568
- let t = l(() => import("./CollaboratorBar-B7DCV3xp.js")), n = l(() => import("./features-BrvE2Fzv.js").then((e) => e.r)), r = l(() => import("./AiFeatureMenu-Bn-0rgfr.js")), { t: i, format: a } = Z();
568
+ let t = l(() => import("./CollaboratorBar-BhMNTI_h.js")), n = l(() => import("./features-uApxwJMz.js").then((e) => e.r)), r = l(() => import("./AiFeatureMenu-BlnZF5pf.js")), { t: i, format: a } = X();
569
569
  return (o, c) => (s(), E("header", ot, [
570
570
  y("div", st, [e.featureFlags.templateLimit.value === null ? d("", !0) : (s(), E("span", ct, _(p(a)(p(i).header.templatesUsed, {
571
571
  used: e.featureFlags.templateCount.value,
@@ -611,10 +611,10 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
611
611
  "aria-live": "assertive",
612
612
  class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
613
613
  "data-tooltip": e.featureFlags.saveErrorMessage.value
614
- }, [D(p(J), {
614
+ }, [D(p(F), {
615
615
  size: 12,
616
616
  "stroke-width": 2.5
617
- }), f(" " + _(p(i).header.saveFailed), 1)], 8, dt)) : e.featureFlags.saveStatus.value === "saved" ? (s(), E("div", ft, [D(p(P), {
617
+ }), f(" " + _(p(i).header.saveFailed), 1)], 8, dt)) : e.featureFlags.saveStatus.value === "saved" ? (s(), E("div", ft, [D(p(N), {
618
618
  size: 12,
619
619
  "stroke-width": 2.5
620
620
  }), f(" " + _(p(i).header.saved), 1)])) : e.editor.state.isDirty ? (s(), E("div", pt, [c[4] ||= y("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), f(" " + _(p(i).header.unsaved), 1)])) : d("", !0),
@@ -630,7 +630,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
630
630
  }),
631
631
  onClick: c[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
632
632
  }, [
633
- D(p(be), {
633
+ D(p(R), {
634
634
  size: 16,
635
635
  "stroke-width": 2
636
636
  }),
@@ -645,7 +645,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
645
645
  "aria-expanded": e.panelState.aiMenuOpen.value,
646
646
  class: T(["tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200", e.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
647
647
  onClick: c[1] ||= m((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
648
- }, [D(p(me), {
648
+ }, [D(p(de), {
649
649
  size: 16,
650
650
  "stroke-width": 2,
651
651
  class: "tpl-ai-btn-icon"
@@ -673,12 +673,12 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
673
673
  },
674
674
  disabled: e.testEmail.isSending.value || !e.featureFlags.hasTemplateSaved.value,
675
675
  onClick: c[2] ||= (t) => e.panelState.testEmailModalOpen.value = !0
676
- }, [e.testEmail.isSending.value ? (s(), v(p(z), {
676
+ }, [e.testEmail.isSending.value ? (s(), v(p(A), {
677
677
  key: 1,
678
678
  class: "tpl-spinner",
679
679
  size: 16,
680
680
  "stroke-width": 2
681
- })) : (s(), v(p(K), {
681
+ })) : (s(), v(p(U), {
682
682
  key: 0,
683
683
  size: 16,
684
684
  "stroke-width": 2
@@ -692,7 +692,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
692
692
  },
693
693
  disabled: e.isSaveDisabled,
694
694
  onClick: c[3] ||= (e) => o.$emit("save")
695
- }, [e.isSaving ? (s(), v(p(z), {
695
+ }, [e.isSaving ? (s(), v(p(A), {
696
696
  key: 1,
697
697
  class: "tpl-spinner",
698
698
  size: 16,
@@ -728,7 +728,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
728
728
  "module-insert"
729
729
  ],
730
730
  setup(e, { expose: t, emit: n }) {
731
- let r = l(() => import("./features-BrvE2Fzv.js").then((e) => e.s)), i = l(() => import("./features-BrvE2Fzv.js").then((e) => e.o)), a = l(() => import("./features-BrvE2Fzv.js").then((e) => e.a)), o = l(() => import("./features-BrvE2Fzv.js").then((e) => e.n)), c = l(() => import("./features-BrvE2Fzv.js").then((e) => e.t)), u = l(() => import("./SaveModuleDialog-BNxh1jPT.js")), f = l(() => import("./ModuleBrowserModal-CiIY7ZGv.js")), m = l(async () => (await import("./src-BLyYIbdZ.js")).MediaLibraryModal), h = e;
731
+ let r = l(() => import("./features-uApxwJMz.js").then((e) => e.s)), i = l(() => import("./features-uApxwJMz.js").then((e) => e.o)), a = l(() => import("./features-uApxwJMz.js").then((e) => e.a)), o = l(() => import("./features-uApxwJMz.js").then((e) => e.n)), c = l(() => import("./features-uApxwJMz.js").then((e) => e.t)), u = l(() => import("./SaveModuleDialog-DJEEK7Wb.js")), f = l(() => import("./ModuleBrowserModal-CpYPeiKv.js")), m = l(async () => (await import("./src-FMtH5ZvJ.js")).MediaLibraryModal), h = e;
732
732
  function _(e) {
733
733
  e === void 0 || !h.editor.content.value.settings.popup || h.editor.updateSettings({ width: e });
734
734
  }
@@ -831,7 +831,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
831
831
  },
832
832
  emits: ["retry"],
833
833
  setup(e, { emit: t }) {
834
- let n = t, { t: r } = Z();
834
+ let n = t, { t: r } = X();
835
835
  function i(e) {
836
836
  return "isUnauthorized" in e && e.isUnauthorized ? r.error.authFailed : "isNotFound" in e && e.isNotFound ? r.error.templateNotFound : r.error.defaultMessage;
837
837
  }
@@ -839,7 +839,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
839
839
  return "isNotFound" in e && !!e.isNotFound;
840
840
  }
841
841
  return (t, o) => e.visible && e.error ? (s(), E("div", Et, [
842
- y("div", Dt, [D(p(J), {
842
+ y("div", Dt, [D(p(F), {
843
843
  size: 32,
844
844
  "stroke-width": 1.5,
845
845
  class: "tpl:text-[var(--tpl-danger)]"
@@ -860,8 +860,8 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
860
860
  props: { visible: { type: Boolean } },
861
861
  emits: ["cancel", "confirm"],
862
862
  setup(e, { emit: t }) {
863
- let n = t, { t: r } = Z();
864
- return (t, i) => e.visible ? (s(), E("div", Mt, [y("div", Nt, [D(p(A), {
863
+ let n = t, { t: r } = X();
864
+ return (t, i) => e.visible ? (s(), E("div", Mt, [y("div", Nt, [D(p(Z), {
865
865
  size: 18,
866
866
  "stroke-width": 2,
867
867
  class: "tpl:text-[var(--tpl-primary)]"
@@ -888,13 +888,13 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
888
888
  __name: "CollabUndoToast",
889
889
  props: { visible: { type: Boolean } },
890
890
  setup(e) {
891
- let { t } = j();
891
+ let { t } = V();
892
892
  return (n, r) => e.visible ? (s(), E("div", It, _(p(t).history.collabWarning), 1)) : d("", !0);
893
893
  }
894
894
  }), Rt = ["data-tpl-theme"], zt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Bt = {
895
895
  key: 0,
896
896
  class: "tpl-popup-browser-frame tpl:flex tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-xl tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-xl)]"
897
- }, Vt = ["aria-label"], Ht = /* @__PURE__ */ V(/* @__PURE__ */ e({
897
+ }, Vt = ["aria-label"], Ht = /* @__PURE__ */ pe(/* @__PURE__ */ e({
898
898
  __name: "CloudEditor",
899
899
  props: {
900
900
  config: {},
@@ -905,54 +905,54 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
905
905
  emits: ["ready"],
906
906
  setup(e, { expose: i, emit: c }) {
907
907
  let l = e;
908
- t(F, l.cloudTranslations);
908
+ t(H, l.cloudTranslations);
909
909
  let m = c, C = w(null), k = w(null), A = Ke({
910
910
  config: l.config,
911
911
  translations: l.translations,
912
912
  fontsManager: l.fontsManager,
913
913
  emit: m,
914
914
  getCommentsSidebar: () => C.value ? { filterByBlock: C.value.filterCommentsByBlock } : null
915
- }), { isInitializing: j, isAuthReady: M, initError: N, planConfigInstance: P, websocket: ee, collaboration: I, isCollaborationEnabled: ne, editor: R, core: z, featureFlags: B, mediaLib: re, exporter: ie, testEmail: V, commentsInstance: oe, savedModulesHeadless: se, panelState: H, snapshotPreview: U, collabWarning: W, showSaveModuleDialog: G, showModuleBrowserModal: K, saveModulePreSelectedBlockId: q, setThemeOverrides: le, setUiTheme: J } = A, Y = w("blocks");
916
- t(ae, Y);
917
- let X = x(() => ce(l.config.editorType) === "popup"), ue = x(() => X.value && Y.value === "displayRules"), de = x(() => X.value && Y.value === "schedule"), fe = x(() => Y.value === "design"), pe = x(() => X.value && (ue.value || de.value || fe.value)), me = x(() => ue.value || de.value);
918
- r(() => [M.value, R.content.value.settings.popup], ([e]) => {
919
- if (!e || !X.value || R.content.value.settings.popup) return;
920
- let t = Se();
921
- R.updateSettings({
915
+ }), { isInitializing: j, isAuthReady: M, initError: N, planConfigInstance: P, websocket: F, collaboration: L, isCollaborationEnabled: R, editor: z, core: B, featureFlags: V, mediaLib: te, exporter: ne, testEmail: U, commentsInstance: re, savedModulesHeadless: ie, panelState: W, snapshotPreview: G, collabWarning: K, showSaveModuleDialog: q, showModuleBrowserModal: J, saveModulePreSelectedBlockId: Y, setThemeOverrides: oe, setUiTheme: se } = A, X = w("blocks");
916
+ t(fe, X);
917
+ let Z = x(() => ae(l.config.editorType) === "popup"), ce = x(() => Z.value && X.value === "displayRules"), le = x(() => Z.value && X.value === "schedule"), ue = x(() => X.value === "design"), de = x(() => Z.value && (ce.value || le.value || ue.value)), pe = x(() => ce.value || le.value);
918
+ r(() => [M.value, z.content.value.settings.popup], ([e]) => {
919
+ if (!e || !Z.value || z.content.value.settings.popup) return;
920
+ let t = ee();
921
+ z.updateSettings({
922
922
  popup: t,
923
- width: L[t.design.sizePreset]
923
+ width: xe[t.design.sizePreset]
924
924
  });
925
925
  }, { immediate: !0 });
926
- async function he(e) {
926
+ async function me(e) {
927
927
  try {
928
- await V.sendTestEmail(e), H.testEmailModalOpen.value = !1;
928
+ await U.sendTestEmail(e), W.testEmailModalOpen.value = !1;
929
929
  } catch {}
930
930
  }
931
- function Z(e, t) {
931
+ function he(e, t) {
932
932
  for (let n = 0; n < e.content.length; n++) {
933
- let r = te(e.content[n]), i = t === void 0 ? void 0 : t + n;
934
- R.addBlock(r, void 0, void 0, i);
933
+ let r = I(e.content[n]), i = t === void 0 ? void 0 : t + n;
934
+ z.addBlock(r, void 0, void 0, i);
935
935
  }
936
- K.value = !1;
936
+ J.value = !1;
937
937
  }
938
938
  let Q = Je({
939
939
  config: l.config,
940
- editor: R,
941
- websocket: ee,
940
+ editor: z,
941
+ websocket: F,
942
942
  planConfigInstance: P,
943
- snapshotPreview: U,
944
- core: z,
945
- exporter: ie,
946
- featureFlags: B,
943
+ snapshotPreview: G,
944
+ core: B,
945
+ exporter: ne,
946
+ featureFlags: V,
947
947
  isDestroyed: A.isDestroyed
948
948
  }), ge = x(() => {
949
- if (R.state.previewMode) return ["tpl:left-0", "tpl:right-0"];
950
- let e = H.rightPanelOpen.value ? "tpl:right-[680px]" : "tpl:right-[320px]";
951
- if (!X.value) return ["tpl:left-12", e];
949
+ if (z.state.previewMode) return ["tpl:left-0", "tpl:right-0"];
950
+ let e = W.rightPanelOpen.value ? "tpl:right-[680px]" : "tpl:right-[320px]";
951
+ if (!Z.value) return ["tpl:left-12", e];
952
952
  let t;
953
- return t = Y.value === "blocks" ? "tpl:left-[272px]" : fe.value ? "tpl:left-[392px]" : "tpl:left-[72px]", [t, pe.value ? "tpl:right-0" : e];
953
+ return t = X.value === "blocks" ? "tpl:left-[272px]" : ue.value ? "tpl:left-[392px]" : "tpl:left-[72px]", [t, de.value ? "tpl:right-0" : e];
954
954
  }), $ = Ye({
955
- issues: z.accessibilityLint ? z.accessibilityLint.issues : w([]),
955
+ issues: B.accessibilityLint ? B.accessibilityLint.issues : w([]),
956
956
  planConfig: P.config
957
957
  });
958
958
  async function _e() {
@@ -963,28 +963,28 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
963
963
  }), o(() => {
964
964
  A.destroy();
965
965
  }), i({
966
- getContent: () => R.content.value,
967
- setContent: (e) => R.setContent(e),
968
- setTheme: J,
969
- setThemeOverrides: le,
966
+ getContent: () => z.content.value,
967
+ setContent: (e) => z.setContent(e),
968
+ setTheme: se,
969
+ setThemeOverrides: oe,
970
970
  undo: () => {
971
- W.showCollabUndoWarning(), z.history.undo();
971
+ K.showCollabUndoWarning(), B.history.undo();
972
972
  },
973
- redo: () => z.history.redo(),
974
- canUndo: () => z.history.canUndo.value,
975
- canRedo: () => z.history.canRedo.value,
973
+ redo: () => B.history.redo(),
974
+ canUndo: () => B.history.canUndo.value,
975
+ canRedo: () => B.history.canRedo.value,
976
976
  create: Q.createTemplate,
977
977
  load: Q.loadTemplate,
978
978
  save: Q.saveTemplate,
979
- sendTestEmail: V.sendTestEmail,
979
+ sendTestEmail: U.sendTestEmail,
980
980
  startTour: (e) => k.value?.start(e),
981
981
  dismissTour: () => k.value?.dismiss(),
982
982
  resetTourDismissed: () => je(l.config.tour),
983
983
  isTourDismissed: () => l.config.tour ? Te(l.config.tour) : !0
984
984
  }), (t, r) => (s(), E("div", {
985
- class: T(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": p(R).state.darkMode }]),
986
- "data-tpl-theme": p(z).resolvedTheme.value,
987
- style: h(p(z).themeStyles.value)
985
+ class: T(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": p(z).state.darkMode }]),
986
+ "data-tpl-theme": p(B).resolvedTheme.value,
987
+ style: h(p(B).themeStyles.value)
988
988
  }, [
989
989
  D(S, {
990
990
  "enter-active-class": "tpl:transition-opacity tpl:duration-200",
@@ -994,7 +994,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
994
994
  "leave-from-class": "tpl:opacity-100",
995
995
  "leave-to-class": "tpl:opacity-0"
996
996
  }, {
997
- default: u(() => [D(Tt, { visible: p(j) || p(R).state.isLoading }, null, 8, ["visible"])]),
997
+ default: u(() => [D(Tt, { visible: p(j) || p(z).state.isLoading }, null, 8, ["visible"])]),
998
998
  _: 1
999
999
  }),
1000
1000
  D(S, {
@@ -1017,18 +1017,18 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1017
1017
  _: 1
1018
1018
  }),
1019
1019
  D(bt, {
1020
- editor: p(R),
1021
- "on-before-history-undo": p(W).showCollabUndoWarning,
1022
- "feature-flags": p(B),
1023
- "panel-state": p(H),
1024
- "snapshot-preview": p(U),
1025
- "comments-instance": p(oe),
1026
- "test-email": p(V),
1027
- websocket: p(ee),
1028
- collaboration: p(I),
1029
- "is-collaboration-enabled": p(ne),
1030
- "is-saving": p(R).state.isSaving || p(B).isSaveExporting.value,
1031
- "is-save-disabled": p(R).state.isSaving || p(B).isSaveExporting.value || !p(R).state.isDirty,
1020
+ editor: p(z),
1021
+ "on-before-history-undo": p(K).showCollabUndoWarning,
1022
+ "feature-flags": p(V),
1023
+ "panel-state": p(W),
1024
+ "snapshot-preview": p(G),
1025
+ "comments-instance": p(re),
1026
+ "test-email": p(U),
1027
+ websocket: p(F),
1028
+ collaboration: p(L),
1029
+ "is-collaboration-enabled": p(R),
1030
+ "is-saving": p(z).state.isSaving || p(V).isSaveExporting.value,
1031
+ "is-save-disabled": p(z).state.isSaving || p(V).isSaveExporting.value || !p(z).state.isDirty,
1032
1032
  onSave: _e
1033
1033
  }, null, 8, [
1034
1034
  "editor",
@@ -1056,9 +1056,9 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1056
1056
  "onConfirm"
1057
1057
  ]),
1058
1058
  D(Ft, {
1059
- visible: p(U).isPreviewingSnapshot.value,
1060
- onCancel: p(U).cancelPreview,
1061
- onConfirm: p(U).confirmRestoreSnapshot
1059
+ visible: p(G).isPreviewingSnapshot.value,
1060
+ onCancel: p(G).cancelPreview,
1061
+ onConfirm: p(G).confirmRestoreSnapshot
1062
1062
  }, null, 8, [
1063
1063
  "visible",
1064
1064
  "onCancel",
@@ -1072,21 +1072,21 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1072
1072
  "leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
1073
1073
  "leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
1074
1074
  }, {
1075
- default: u(() => [D(Lt, { visible: p(W).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1075
+ default: u(() => [D(Lt, { visible: p(K).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1076
1076
  _: 1
1077
1077
  }),
1078
- n(D(Fe, null, null, 512), [[b, !p(R).state.previewMode]]),
1078
+ n(D(Fe, null, null, 512), [[b, !p(z).state.previewMode]]),
1079
1079
  y("div", {
1080
- class: T(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [...ge.value, p(U).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1080
+ class: T(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [...ge.value, p(G).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1081
1081
  style: h({
1082
1082
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
1083
- backgroundColor: me.value ? "var(--tpl-bg)" : "var(--tpl-canvas-bg)"
1083
+ backgroundColor: pe.value ? "var(--tpl-bg)" : "var(--tpl-canvas-bg)"
1084
1084
  })
1085
- }, [X.value && Y.value === "displayRules" ? (s(), v(Pe, { key: 0 })) : X.value && Y.value === "schedule" ? (s(), v(Re, {
1085
+ }, [Z.value && X.value === "displayRules" ? (s(), v(Pe, { key: 0 })) : Z.value && X.value === "schedule" ? (s(), v(Re, {
1086
1086
  key: 1,
1087
1087
  layout: "standalone"
1088
1088
  })) : (s(), E(g, { key: 2 }, [y("div", zt, [D(S, { name: "tpl-restore-btn" }, {
1089
- default: u(() => [p(z).conditionPreview.hasHiddenBlocks.value ? (s(), E("button", {
1089
+ default: u(() => [p(B).conditionPreview.hasHiddenBlocks.value ? (s(), E("button", {
1090
1090
  key: 0,
1091
1091
  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",
1092
1092
  style: {
@@ -1095,26 +1095,26 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1095
1095
  "border-color": "var(--tpl-warning)",
1096
1096
  "backdrop-filter": "blur(8px)"
1097
1097
  },
1098
- onClick: r[0] ||= (e) => p(z).conditionPreview.reset()
1098
+ onClick: r[0] ||= (e) => p(B).conditionPreview.reset()
1099
1099
  }, [D(p(Ce), {
1100
1100
  size: 13,
1101
1101
  "stroke-width": 2
1102
- }), f(" " + _(p(z).t.blockSettings.restoreHiddenBlocks), 1)])) : d("", !0)]),
1102
+ }), f(" " + _(p(B).t.blockSettings.restoreHiddenBlocks), 1)])) : d("", !0)]),
1103
1103
  _: 1
1104
- })]), y("main", { class: T(["tpl-main tpl:flex tpl:w-full tpl:flex-col", X.value ? "tpl:gap-3 tpl:px-4 tpl:pt-4 tpl:pb-6" : "tpl:items-center tpl:gap-3 tpl:p-8"]) }, [D(Ne, {
1105
- "preview-mode": p(R).state.previewMode,
1104
+ })]), y("main", { class: T(["tpl-main tpl:flex tpl:w-full tpl:flex-col", Z.value ? "tpl:gap-3 tpl:px-4 tpl:pt-4 tpl:pb-6" : "tpl:items-center tpl:gap-3 tpl:p-8"]) }, [D(Ne, {
1105
+ "preview-mode": p(z).state.previewMode,
1106
1106
  "multi-page-canvas": e.config.multiPageCanvas ?? !1
1107
- }, null, 8, ["preview-mode", "multi-page-canvas"]), X.value ? (s(), E("div", Bt, [r[11] ||= O("<div class=\"tpl-popup-browser-bar tpl:relative tpl:flex tpl:h-9 tpl:items-center tpl:gap-1.5 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3\" aria-hidden=\"true\" data-v-1d3e3f2d><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#ff5f57;\" data-v-1d3e3f2d></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#febc2e;\" data-v-1d3e3f2d></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#28c840;\" data-v-1d3e3f2d></span><div class=\"tpl:pointer-events-none tpl:absolute tpl:left-1/2 tpl:top-1/2 tpl:-translate-x-1/2 tpl:-translate-y-1/2 tpl:rounded-md tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:tracking-tight\" data-v-1d3e3f2d> yourstore.com </div></div>", 1), D(Ae, {
1108
- viewport: p(R).state.viewport,
1109
- content: p(R).content.value,
1110
- "selected-block-id": p(R).state.selectedBlockId,
1111
- "dark-mode": p(R).state.darkMode,
1112
- "preview-mode": p(R).state.previewMode,
1107
+ }, null, 8, ["preview-mode", "multi-page-canvas"]), Z.value ? (s(), E("div", Bt, [r[11] ||= O("<div class=\"tpl-popup-browser-bar tpl:relative tpl:flex tpl:h-9 tpl:items-center tpl:gap-1.5 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3\" aria-hidden=\"true\" data-v-1d3e3f2d><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#ff5f57;\" data-v-1d3e3f2d></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#febc2e;\" data-v-1d3e3f2d></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#28c840;\" data-v-1d3e3f2d></span><div class=\"tpl:pointer-events-none tpl:absolute tpl:left-1/2 tpl:top-1/2 tpl:-translate-x-1/2 tpl:-translate-y-1/2 tpl:rounded-md tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:tracking-tight\" data-v-1d3e3f2d> yourstore.com </div></div>", 1), D(Ae, {
1108
+ viewport: p(z).state.viewport,
1109
+ content: p(z).content.value,
1110
+ "selected-block-id": p(z).state.selectedBlockId,
1111
+ "dark-mode": p(z).state.darkMode,
1112
+ "preview-mode": p(z).state.previewMode,
1113
1113
  "multi-page-canvas": e.config.multiPageCanvas ?? !1,
1114
- "locked-blocks": p(I)?.lockedBlocks.value ?? void 0,
1115
- onSelectBlock: p(R).selectBlock,
1116
- onOpenAiChat: r[1] ||= (e) => p(H).aiChatOpen.value = !0,
1117
- onOpenDesignReference: r[2] ||= (e) => p(H).designReferenceOpen.value = !0
1114
+ "locked-blocks": p(L)?.lockedBlocks.value ?? void 0,
1115
+ onSelectBlock: p(z).selectBlock,
1116
+ onOpenAiChat: r[1] ||= (e) => p(W).aiChatOpen.value = !0,
1117
+ onOpenDesignReference: r[2] ||= (e) => p(W).designReferenceOpen.value = !0
1118
1118
  }, null, 8, [
1119
1119
  "viewport",
1120
1120
  "content",
@@ -1126,16 +1126,16 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1126
1126
  "onSelectBlock"
1127
1127
  ])])) : (s(), v(Ae, {
1128
1128
  key: 1,
1129
- viewport: p(R).state.viewport,
1130
- content: p(R).content.value,
1131
- "selected-block-id": p(R).state.selectedBlockId,
1132
- "dark-mode": p(R).state.darkMode,
1133
- "preview-mode": p(R).state.previewMode,
1129
+ viewport: p(z).state.viewport,
1130
+ content: p(z).content.value,
1131
+ "selected-block-id": p(z).state.selectedBlockId,
1132
+ "dark-mode": p(z).state.darkMode,
1133
+ "preview-mode": p(z).state.previewMode,
1134
1134
  "multi-page-canvas": e.config.multiPageCanvas ?? !1,
1135
- "locked-blocks": p(I)?.lockedBlocks.value ?? void 0,
1136
- onSelectBlock: p(R).selectBlock,
1137
- onOpenAiChat: r[3] ||= (e) => p(H).aiChatOpen.value = !0,
1138
- onOpenDesignReference: r[4] ||= (e) => p(H).designReferenceOpen.value = !0
1135
+ "locked-blocks": p(L)?.lockedBlocks.value ?? void 0,
1136
+ onSelectBlock: p(z).selectBlock,
1137
+ onOpenAiChat: r[3] ||= (e) => p(W).aiChatOpen.value = !0,
1138
+ onOpenDesignReference: r[4] ||= (e) => p(W).designReferenceOpen.value = !0
1139
1139
  }, null, 8, [
1140
1140
  "viewport",
1141
1141
  "content",
@@ -1146,7 +1146,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1146
1146
  "locked-blocks",
1147
1147
  "onSelectBlock"
1148
1148
  ]))], 2)], 64))], 6),
1149
- e.config.branding !== !1 && !p(B).isWhiteLabeled.value ? (s(), v(Le, {
1149
+ e.config.branding !== !1 && !p(V).isWhiteLabeled.value ? (s(), v(Le, {
1150
1150
  key: 0,
1151
1151
  "position-class": ge.value
1152
1152
  }, null, 8, ["position-class"])) : d("", !0),
@@ -1155,42 +1155,42 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1155
1155
  role: "status",
1156
1156
  "aria-live": "polite",
1157
1157
  "aria-atomic": "true",
1158
- "aria-label": p(z).t.landmarks.reorderAnnouncements
1159
- }, _(p(z).keyboardReorder.announcement.value), 9, Vt),
1158
+ "aria-label": p(B).t.landmarks.reorderAnnouncements
1159
+ }, _(p(B).keyboardReorder.announcement.value), 9, Vt),
1160
1160
  n(D(Oe, {
1161
- "selected-block": p(R).selectedBlock.value,
1162
- settings: p(R).content.value.settings,
1163
- "shifted-left": p(H).rightPanelOpen.value,
1164
- onUpdateBlock: r[5] ||= (e) => p(R).updateBlock(p(R).selectedBlock.value.id, e),
1165
- onDeleteBlock: r[6] ||= (e) => p(z).blockActions.deleteBlock(p(R).selectedBlock.value.id),
1166
- onDuplicateBlock: r[7] ||= (e) => p(z).blockActions.duplicateBlock(p(R).selectedBlock.value),
1167
- onUpdateSettings: p(R).updateSettings
1161
+ "selected-block": p(z).selectedBlock.value,
1162
+ settings: p(z).content.value.settings,
1163
+ "shifted-left": p(W).rightPanelOpen.value,
1164
+ onUpdateBlock: r[5] ||= (e) => p(z).updateBlock(p(z).selectedBlock.value.id, e),
1165
+ onDeleteBlock: r[6] ||= (e) => p(B).blockActions.deleteBlock(p(z).selectedBlock.value.id),
1166
+ onDuplicateBlock: r[7] ||= (e) => p(B).blockActions.duplicateBlock(p(z).selectedBlock.value),
1167
+ onUpdateSettings: p(z).updateSettings
1168
1168
  }, null, 8, [
1169
1169
  "selected-block",
1170
1170
  "settings",
1171
1171
  "shifted-left",
1172
1172
  "onUpdateSettings"
1173
- ]), [[b, !p(R).state.previewMode && !pe.value]]),
1173
+ ]), [[b, !p(z).state.previewMode && !de.value]]),
1174
1174
  !p(j) && p(M) ? (s(), v(xt, {
1175
1175
  key: 1,
1176
1176
  ref_key: "cloudPanelsRef",
1177
1177
  ref: C,
1178
1178
  config: l.config,
1179
- editor: p(R),
1180
- core: p(z),
1181
- "panel-state": p(H),
1179
+ editor: p(z),
1180
+ core: p(B),
1181
+ "panel-state": p(W),
1182
1182
  "plan-config-instance": p(P),
1183
- "test-email": p(V),
1184
- "media-lib": p(re),
1185
- "saved-modules-headless": p(se),
1186
- "show-save-module-dialog": p(G),
1187
- "save-module-pre-selected-block-id": p(q),
1188
- "show-module-browser-modal": p(K),
1189
- "onUpdate:showSaveModuleDialog": r[8] ||= (e) => G.value = e,
1190
- "onUpdate:saveModulePreSelectedBlockId": r[9] ||= (e) => q.value = e,
1191
- "onUpdate:showModuleBrowserModal": r[10] ||= (e) => K.value = e,
1192
- onSendTestEmail: he,
1193
- onModuleInsert: Z
1183
+ "test-email": p(U),
1184
+ "media-lib": p(te),
1185
+ "saved-modules-headless": p(ie),
1186
+ "show-save-module-dialog": p(q),
1187
+ "save-module-pre-selected-block-id": p(Y),
1188
+ "show-module-browser-modal": p(J),
1189
+ "onUpdate:showSaveModuleDialog": r[8] ||= (e) => q.value = e,
1190
+ "onUpdate:saveModulePreSelectedBlockId": r[9] ||= (e) => Y.value = e,
1191
+ "onUpdate:showModuleBrowserModal": r[10] ||= (e) => J.value = e,
1192
+ onSendTestEmail: me,
1193
+ onModuleInsert: he
1194
1194
  }, null, 8, [
1195
1195
  "config",
1196
1196
  "editor",
@@ -1209,7 +1209,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1209
1209
  ref_key: "editorTourRef",
1210
1210
  ref: k,
1211
1211
  "tour-config": e.config.tour,
1212
- "dark-mode": p(R).state.darkMode
1212
+ "dark-mode": p(z).state.darkMode
1213
1213
  }, null, 8, ["tour-config", "dark-mode"])) : d("", !0)
1214
1214
  ], 14, Rt));
1215
1215
  }
@@ -1217,4 +1217,4 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1217
1217
  //#endregion
1218
1218
  export { Ht as default };
1219
1219
 
1220
- //# sourceMappingURL=CloudEditor-56lVcdot.js.map
1220
+ //# sourceMappingURL=CloudEditor-D0TrKlva.js.map