@templatical/editor 0.11.0 → 0.11.1

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 (79) hide show
  1. package/dist/{AiFeatureMenu-D4D2Sqfk.js → AiFeatureMenu-DBWcfcWl.js} +1 -1
  2. package/dist/{CloudEditor-CLwyq3kf.js → CloudEditor-C6cSXtcP.js} +155 -154
  3. package/dist/{CollaboratorBar-DjX-o5Pi.js → CollaboratorBar-B8-AQfG2.js} +1 -1
  4. package/dist/{ModuleBrowserModal-CVS4Sf7H.js → ModuleBrowserModal-B_tLzFAk.js} +4 -4
  5. package/dist/{ModulePreviewCanvas-C10YXsL_.js → ModulePreviewCanvas-B7pNpAHM.js} +1 -1
  6. package/dist/{ParagraphEditor-BKoqcKIt.js → ParagraphEditor-DmA9K7dx.js} +6 -6
  7. package/dist/{SaveModuleDialog-BMuIjxVn.js → SaveModuleDialog-B8ypoxdj.js} +2 -2
  8. package/dist/{SnapshotHistory-DZ5_W7e4.js → SnapshotHistory-BTHd7CVP.js} +1 -1
  9. package/dist/{TestEmailModal-EjpH-F-W.js → TestEmailModal-CBIFMzK6.js} +2 -2
  10. package/dist/{TitleEditor-Rv1deuV7.js → TitleEditor-C9jDA5lI.js} +1 -1
  11. package/dist/{TplModal-DSmCQIm4.js → TplModal-ND4fiqOS.js} +1 -1
  12. package/dist/{blockTypeIcons-OhEkQhYj.js → blockTypeIcons-Bn-_Smlm.js} +4 -4
  13. package/dist/bundle-stats.json +6 -6
  14. package/dist/cdn/chunks/{AiFeatureMenu-Dm9CL3u0.js → AiFeatureMenu-BuSO0dXP.js} +8 -8
  15. package/dist/cdn/chunks/{AiFeatureMenu-Dm9CL3u0.js.map → AiFeatureMenu-BuSO0dXP.js.map} +1 -1
  16. package/dist/cdn/chunks/{BlockIssueBadge-DjnFAeWq.js → BlockIssueBadge-sv3IZ1Pb.js} +5 -5
  17. package/dist/cdn/chunks/{BlockIssueBadge-DjnFAeWq.js.map → BlockIssueBadge-sv3IZ1Pb.js.map} +1 -1
  18. package/dist/cdn/chunks/{CloudEditor-XSmLmdgp.js → CloudEditor-hxoqsTsq.js} +236 -235
  19. package/dist/cdn/chunks/{CloudEditor-XSmLmdgp.js.map → CloudEditor-hxoqsTsq.js.map} +1 -1
  20. package/dist/cdn/chunks/{CollaboratorBar-BfoGJhns.js → CollaboratorBar-DFqsaNX0.js} +3 -3
  21. package/dist/cdn/chunks/{CollaboratorBar-BfoGJhns.js.map → CollaboratorBar-DFqsaNX0.js.map} +1 -1
  22. package/dist/cdn/chunks/{CountdownBlock-GRio55a1.js → CountdownBlock-PpH3fxAX.js} +2 -2
  23. package/dist/cdn/chunks/{CountdownBlock-GRio55a1.js.map → CountdownBlock-PpH3fxAX.js.map} +1 -1
  24. package/dist/cdn/chunks/{CountdownToolbar-Cd1oEopw.js → CountdownToolbar-CZN92Bhz.js} +3 -3
  25. package/dist/cdn/chunks/{CountdownToolbar-Cd1oEopw.js.map → CountdownToolbar-CZN92Bhz.js.map} +1 -1
  26. package/dist/cdn/chunks/{IssuesPanel-C-BiFQDQ.js → IssuesPanel-wQjrnuyc.js} +6 -6
  27. package/dist/cdn/chunks/{IssuesPanel-C-BiFQDQ.js.map → IssuesPanel-wQjrnuyc.js.map} +1 -1
  28. package/dist/cdn/chunks/{ModuleBrowserModal-Dj7gRT4Q.js → ModuleBrowserModal-348wCgft.js} +8 -8
  29. package/dist/cdn/chunks/{ModuleBrowserModal-Dj7gRT4Q.js.map → ModuleBrowserModal-348wCgft.js.map} +1 -1
  30. package/dist/cdn/chunks/{ModulePreviewCanvas-hwdveKb0.js → ModulePreviewCanvas-Cf6DUHml.js} +22 -22
  31. package/dist/cdn/chunks/{ModulePreviewCanvas-hwdveKb0.js.map → ModulePreviewCanvas-Cf6DUHml.js.map} +1 -1
  32. package/dist/cdn/chunks/{NumberWithSuffix-bE_6cfiA.js → NumberWithSuffix-Deo8EOSz.js} +2 -2
  33. package/dist/cdn/chunks/{NumberWithSuffix-bE_6cfiA.js.map → NumberWithSuffix-Deo8EOSz.js.map} +1 -1
  34. package/dist/cdn/chunks/{ParagraphEditor-y1kGJRBX.js → ParagraphEditor-Cbl_gBYM.js} +40 -40
  35. package/dist/cdn/chunks/{ParagraphEditor-y1kGJRBX.js.map → ParagraphEditor-Cbl_gBYM.js.map} +1 -1
  36. package/dist/cdn/chunks/{RichTextEditorContent-DPy9D4hc.js → RichTextEditorContent-TBPzn3RC.js} +4 -4
  37. package/dist/cdn/chunks/{RichTextEditorContent-DPy9D4hc.js.map → RichTextEditorContent-TBPzn3RC.js.map} +1 -1
  38. package/dist/cdn/chunks/{SaveModuleDialog-CPu5e2VG.js → SaveModuleDialog-CxdYMutK.js} +4 -4
  39. package/dist/cdn/chunks/{SaveModuleDialog-CPu5e2VG.js.map → SaveModuleDialog-CxdYMutK.js.map} +1 -1
  40. package/dist/cdn/chunks/{TitleEditor-CMzzOPye.js → TitleEditor--XulEf7R.js} +6 -6
  41. package/dist/cdn/chunks/{TitleEditor-CMzzOPye.js.map → TitleEditor--XulEf7R.js.map} +1 -1
  42. package/dist/cdn/chunks/{blockTypeIcons-BC5qpvuV.js → blockTypeIcons-BJND4L-A.js} +6 -6
  43. package/dist/cdn/chunks/{blockTypeIcons-BC5qpvuV.js.map → blockTypeIcons-BJND4L-A.js.map} +1 -1
  44. package/dist/{de-DIAGP7yH.js → cdn/chunks/de-BJMLpg_p.js} +6 -0
  45. package/dist/cdn/chunks/{de-DIAGP7yH.js.map → de-BJMLpg_p.js.map} +1 -1
  46. package/dist/{en-nqIW8Q9W.js → cdn/chunks/en-DFMMw7SL.js} +6 -0
  47. package/dist/cdn/chunks/{en-nqIW8Q9W.js.map → en-DFMMw7SL.js.map} +1 -1
  48. package/dist/cdn/chunks/{extensions-DH7ESsaz.js → extensions-BtWoLy6E.js} +23 -23
  49. package/dist/cdn/chunks/{extensions-DH7ESsaz.js.map → extensions-BtWoLy6E.js.map} +1 -1
  50. package/dist/cdn/chunks/{features-DmUOSthI.js → features-mO5NzwnN.js} +442 -432
  51. package/dist/cdn/chunks/features-mO5NzwnN.js.map +1 -0
  52. package/dist/cdn/chunks/{icons-DguD4x_X.js → icons-CuXm6XAT.js} +2 -2
  53. package/dist/cdn/chunks/{icons-DguD4x_X.js.map → icons-CuXm6XAT.js.map} +1 -1
  54. package/dist/cdn/chunks/{media-library-ClQUPxRM.js → media-library-BtNzYUTi.js} +525 -525
  55. package/dist/cdn/chunks/{media-library-ClQUPxRM.js.map → media-library-BtNzYUTi.js.map} +1 -1
  56. package/dist/cdn/chunks/{pt-BR-DCNnLLx9.js → pt-BR-C-9aWLlR.js} +5 -1
  57. package/dist/cdn/chunks/{pt-BR-DCNnLLx9.js.map → pt-BR-C-9aWLlR.js.map} +1 -1
  58. package/dist/cdn/chunks/{quality-CIw_7cXv.js → quality-YKe19zp8.js} +83 -83
  59. package/dist/cdn/chunks/{quality-CIw_7cXv.js.map → quality-YKe19zp8.js.map} +1 -1
  60. package/dist/cdn/chunks/{renderer-Bx8I7_Rb.js → renderer-BcOaxCs6.js} +20 -20
  61. package/dist/cdn/chunks/{renderer-Bx8I7_Rb.js.map → renderer-BcOaxCs6.js.map} +1 -1
  62. package/dist/cdn/chunks/{src-C-GlM149.js → src-B_ZRmuit.js} +63 -63
  63. package/dist/cdn/chunks/{src-C-GlM149.js.map → src-B_ZRmuit.js.map} +1 -1
  64. package/dist/cdn/chunks/{styles-CfqCvq0Z.js → styles-DDBCCJ-l.js} +218 -200
  65. package/dist/cdn/chunks/styles-DDBCCJ-l.js.map +1 -0
  66. package/dist/cdn/editor.css +1 -1
  67. package/dist/cdn/editor.js +105 -104
  68. package/dist/cdn/editor.js.map +1 -1
  69. package/dist/{cdn/chunks/de-DIAGP7yH.js → de-BJMLpg_p.js} +4 -2
  70. package/dist/{cdn/chunks/en-nqIW8Q9W.js → en-DFMMw7SL.js} +4 -2
  71. package/dist/index.d.ts +32 -0
  72. package/dist/{pt-BR-DCNnLLx9.js → pt-BR-C-9aWLlR.js} +4 -0
  73. package/dist/style.css +1 -1
  74. package/dist/{styles-D_ztiOsh.js → styles-DZcQGzsN.js} +514 -496
  75. package/dist/templatical-editor.js +117 -116
  76. package/dist/{useEditorCore-tZGAVvNz.js → useEditorCore-D00QzW07.js} +731 -721
  77. package/package.json +8 -8
  78. package/dist/cdn/chunks/features-DmUOSthI.js.map +0 -1
  79. package/dist/cdn/chunks/styles-CfqCvq0Z.js.map +0 -1
@@ -1,25 +1,25 @@
1
1
  import { A as e, B as t, L as n, M as r, O as i, Q as a, X as o, _ as s, at as c, b as l, c as u, d, f, g as p, h as m, j as h, k as g, l as _, m as v, o as y, ot as b, p as x, q as S, rt as C, st as w, t as T, v as E, y as D, z as O } from "./vue.runtime.esm-bundler-mPytWZFh.js";
2
2
  import { t as k } from "./timeouts-Bmi_yePw.js";
3
3
  import { E as A, i as j } from "./dist-D6L_WdRL.js";
4
- import { P as M, S as N, t as ee } from "./useEditorCore-tZGAVvNz.js";
4
+ import { C as M, F as N, b as ee, t as te } from "./useEditorCore-D00QzW07.js";
5
5
  import { c as P, t as F } from "./dist-cT52Hh9L.js";
6
- import { C as I, D as L, O as R, c as z, l as B, r as te, s as ne, t as V } from "./keys-DsRdOmg3.js";
6
+ import { C as I, D as L, O as R, c as z, l as B, r as ne, s as re, t as V } from "./keys-DsRdOmg3.js";
7
7
  import { t as H } from "./useI18n-DNspT6uw.js";
8
8
  import { t as U } from "./createLucideIcon-C_fetdGM.js";
9
9
  import { t as W } from "./check-BsNM6BDs.js";
10
10
  import { t as G } from "./circle-alert-BZTbwc-B.js";
11
- import { a as K, c as re, d as ie, i as q, l as ae, n as oe, o as se, r as ce, s as le, t as ue, u as de } from "./styles-D_ztiOsh.js";
12
- import { t as fe } from "./clock-B7iQRubC.js";
11
+ import { a as K, c as ie, d as ae, f as oe, i as q, l as se, n as ce, o as le, r as ue, s as de, t as fe, u as pe } from "./styles-DZcQGzsN.js";
12
+ import { t as me } from "./clock-B7iQRubC.js";
13
13
  import { t as J } from "./loader-circle-BuxX338d.js";
14
- import { t as Y } from "./message-circle-nLwqegRi.js";
15
- import { t as X } from "./send-DCMgrNT4.js";
16
- import { t as Z } from "./sparkles-CeYIQ5RJ.js";
17
- import { t as pe } from "./triangle-alert-DMdedF6W.js";
18
- import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { t as he } from "./message-circle-nLwqegRi.js";
15
+ import { t as Y } from "./send-DCMgrNT4.js";
16
+ import { t as X } from "./sparkles-CeYIQ5RJ.js";
17
+ import { t as Z } from "./triangle-alert-DMdedF6W.js";
18
+ import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
19
19
  import { n as Q } from "./useCloudI18n-BEuiZdzs.js";
20
20
  import { d as $ } from "./styleConstants-lGobwiLH.js";
21
- import { _ as he, a as ge, c as _e, d as ve, f as ye, g as be, h as xe, l as Se, m as Ce, n as we, o as Te, p as Ee, r as De, s as Oe, t as ke, v as Ae, y as je } from "./cloud-Dom4EH5Z.js";
22
- var Me = U("save", [
21
+ import { _ as _e, a as ve, c as ye, d as be, f as xe, g as Se, h as Ce, l as we, m as Te, n as Ee, o as De, p as Oe, r as ke, s as Ae, t as je, v as Me, y as Ne } from "./cloud-Dom4EH5Z.js";
22
+ var Pe = U("save", [
23
23
  ["path", {
24
24
  d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
25
25
  key: "1c8476"
@@ -35,14 +35,14 @@ var Me = U("save", [
35
35
  ]);
36
36
  //#endregion
37
37
  //#region src/cloud/composables/useSnapshotPreview.ts
38
- function Ne(e) {
38
+ function Fe(e) {
39
39
  let { authManager: t, editor: n, history: r, conditionPreview: i, autoSave: s, onError: c } = e, l = a(null), u = o(null), f = o(null), p = !1;
40
40
  S(() => {
41
41
  p = !0;
42
42
  });
43
43
  let m = d(() => u.value !== null), h = d(() => l.value?.snapshots.value ?? []), g = d(() => l.value?.isLoading.value ?? !1), _ = d(() => l.value?.isRestoring.value ?? !1);
44
44
  function v() {
45
- n.state.template?.id && !l.value && (l.value = be({
45
+ n.state.template?.id && !l.value && (l.value = Se({
46
46
  authManager: t,
47
47
  templateId: n.state.template.id,
48
48
  onRestore: y,
@@ -94,7 +94,7 @@ function Ne(e) {
94
94
  }
95
95
  //#endregion
96
96
  //#region src/cloud/composables/useCloudPanelState.ts
97
- function Pe() {
97
+ function Ie() {
98
98
  let e = o(null), t = d({
99
99
  get: () => e.value === "ai-chat",
100
100
  set: (t) => e.value = t ? "ai-chat" : null
@@ -139,7 +139,7 @@ function Pe() {
139
139
  }
140
140
  //#endregion
141
141
  //#region src/cloud/composables/useCollabUndoWarning.ts
142
- function Fe(e) {
142
+ function Le(e) {
143
143
  let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = o(!1), a = o(!1), { start: s } = P(() => {
144
144
  a.value = !1;
145
145
  }, k, { immediate: !1 });
@@ -153,7 +153,7 @@ function Fe(e) {
153
153
  }
154
154
  //#endregion
155
155
  //#region src/cloud/composables/useCloudFeatureFlags.ts
156
- function Ie(e) {
156
+ function Re(e) {
157
157
  let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = d(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = d(() => t.hasFeature("test_email")), s = d(() => !!r.state.template?.id), c = d(() => t.hasFeature("white_label")), l = d(() => t.config.value?.limits.max_templates ?? null), u = d(() => t.config.value?.template_count ?? 0), f = o(!1), p = o("idle"), m = o(""), { start: h } = P(() => {
158
158
  p.value = "idle";
159
159
  }, 3e3, { immediate: !1 });
@@ -172,7 +172,7 @@ function Ie(e) {
172
172
  }
173
173
  //#endregion
174
174
  //#region src/cloud/composables/useCloudMediaLibrary.ts
175
- function Le(e) {
175
+ function ze(e) {
176
176
  let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: r } = e, i = null;
177
177
  async function a() {
178
178
  if (t) {
@@ -207,30 +207,30 @@ function Le(e) {
207
207
  }
208
208
  //#endregion
209
209
  //#region src/cloud/composables/useCloudInitialization.ts
210
- function Re(e) {
211
- let { config: t, translations: r, fontsManager: i, emit: a, getCommentsSidebar: s } = e, c = o(!0), l = o(!1), u = o(null), f = !1, p = { value: null }, m = null, g = null, _ = new ke({
210
+ function Be(e) {
211
+ let { config: t, translations: r, fontsManager: i, emit: a, getCommentsSidebar: s } = e, c = o(!0), l = o(!1), u = o(null), f = !1, p = { value: null }, m = null, g = null, _ = new je({
212
212
  ...t.auth,
213
213
  onError: t.onError
214
- }), v = Ce({
214
+ }), v = Te({
215
215
  authManager: _,
216
216
  onError: t.onError
217
- }), y = o(/* @__PURE__ */ new Map()), b = ve({
217
+ }), y = o(/* @__PURE__ */ new Map()), b = be({
218
218
  authManager: _,
219
219
  defaultFontFamily: t.fonts?.defaultFont,
220
220
  templateDefaults: t.templateDefaults,
221
221
  onError: t.onError,
222
222
  lockedBlocks: y
223
- }), x = je({
223
+ }), x = Ne({
224
224
  authManager: _,
225
225
  onError: t.onError
226
226
  });
227
- t.mcp?.enabled && Ee({
227
+ t.mcp?.enabled && Oe({
228
228
  editor: b,
229
229
  channel: x.channel,
230
230
  onOperation: t.mcp.onOperation
231
231
  });
232
232
  let S = null;
233
- t.collaboration?.enabled && (S = Te({
233
+ t.collaboration?.enabled && (S = De({
234
234
  authManager: _,
235
235
  editor: b,
236
236
  channel: x.channel,
@@ -241,8 +241,8 @@ function Re(e) {
241
241
  onBlockUnlocked: t.collaboration.onBlockUnlocked
242
242
  }), n(() => S.lockedBlocks.value, (e) => {
243
243
  y.value = e;
244
- }, { immediate: !0 }), Oe(b, S));
245
- let C = d(() => !!t.collaboration?.enabled && v.hasFeature("collaboration")), w = ee({
244
+ }, { immediate: !0 }), Ae(b, S));
245
+ let C = d(() => !!t.collaboration?.enabled && v.hasFeature("collaboration")), w = te({
246
246
  editor: b,
247
247
  config: {
248
248
  uiTheme: t.uiTheme,
@@ -253,7 +253,7 @@ function Re(e) {
253
253
  mergeTags: t.mergeTags,
254
254
  displayConditions: t.displayConditions,
255
255
  onRequestMedia: null,
256
- lint: de(t),
256
+ lint: ae(t),
257
257
  onSave: () => {
258
258
  p.value?.().catch((e) => {
259
259
  t.onError?.(e);
@@ -274,13 +274,13 @@ function Re(e) {
274
274
  keyboardOptions: { onBeforeUndo: () => g?.showCollabUndoWarning() },
275
275
  editorRoot: e.editorRoot,
276
276
  containerEl: e.containerEl
277
- }), T = Fe({
277
+ }), T = Le({
278
278
  isCollaborationEnabled: C,
279
279
  getCollaboratorCount: () => S?.collaborators.value.length ?? 0,
280
280
  canUndo: w.history.canUndo
281
281
  });
282
282
  g = T;
283
- let E = Ne({
283
+ let E = Fe({
284
284
  authManager: _,
285
285
  editor: b,
286
286
  history: w.history,
@@ -289,24 +289,24 @@ function Re(e) {
289
289
  onError: t.onError
290
290
  });
291
291
  m = E;
292
- let D = Pe(), O = ge(t.ai), k = Ie({
292
+ let D = Ie(), O = ve(t.ai), k = Re({
293
293
  planConfigInstance: v,
294
294
  aiConfig: O,
295
295
  editor: b
296
- }), A = Le({
296
+ }), A = ze({
297
297
  onRequestMedia: t.onRequestMedia,
298
298
  mediaLibraryOpen: D.mediaLibraryOpen,
299
299
  mediaLibraryAccept: D.mediaLibraryAccept
300
300
  });
301
- N({
301
+ M({
302
302
  onBlockMove: b.moveBlock,
303
303
  onBlockAdd: b.addBlock
304
304
  });
305
- let j = ye({
305
+ let j = xe({
306
306
  authManager: _,
307
307
  getFontsConfig: () => t.fonts,
308
308
  canUseCustomFonts: () => v.hasFeature("custom_fonts")
309
- }), P = Ae({
309
+ }), ee = Me({
310
310
  authManager: _,
311
311
  getTemplateId: () => b.state.template?.id ?? null,
312
312
  save: () => b.save(),
@@ -314,7 +314,7 @@ function Re(e) {
314
314
  onError: t.onError,
315
315
  isAuthReady: l,
316
316
  onBeforeTestEmail: t.onBeforeTestEmail
317
- }), F = Se({
317
+ }), P = we({
318
318
  authManager: _,
319
319
  getTemplateId: () => b.state.template?.id ?? null,
320
320
  getSocketId: () => x.getSocketId(),
@@ -323,56 +323,56 @@ function Re(e) {
323
323
  isAuthReady: l,
324
324
  hasCommentingFeature: () => t.commenting !== !1 && v.hasFeature("commenting")
325
325
  });
326
- _e({
327
- comments: F,
326
+ ye({
327
+ comments: P,
328
328
  channel: x.channel
329
329
  });
330
- let z = xe({
330
+ let F = Ce({
331
331
  authManager: _,
332
332
  onError: t.onError
333
- }), H = o(!1), U = o(null), W = o(!1), G = he({
333
+ }), z = o(!1), H = o(null), U = o(!1), W = _e({
334
334
  authManager: _,
335
335
  getTemplateId: () => b.state.template?.id ?? null
336
336
  });
337
- function K(e) {
337
+ function G(e) {
338
338
  D.commentsOpen.value = !0, queueMicrotask(() => {
339
339
  s()?.filterByBlock(e);
340
340
  });
341
341
  }
342
- h(I, A.handleRequestMedia), h(te, _), h(V, O), h(B, F), h(L, z), h(R, G), h(ne, {
342
+ h(I, A.handleRequestMedia), h(ne, _), h(V, O), h(B, P), h(L, F), h(R, W), h(re, {
343
343
  plan: v,
344
344
  ai: O,
345
345
  comments: {
346
- getBlockCount: (e) => F.commentCountByBlock.value.get(e) ?? 0,
347
- openForBlock: K
346
+ getBlockCount: (e) => P.commentCountByBlock.value.get(e) ?? 0,
347
+ openForBlock: G
348
348
  },
349
349
  savedModules: {
350
350
  openSaveDialog: (e) => {
351
- U.value = e ?? null, H.value = !0;
351
+ H.value = e ?? null, z.value = !0;
352
352
  },
353
353
  openBrowser: () => {
354
- W.value = !0;
354
+ U.value = !0;
355
355
  },
356
- moduleCount: d(() => z.modules.value.length)
356
+ moduleCount: d(() => F.modules.value.length)
357
357
  }
358
358
  });
359
- function re(e) {
359
+ function K(e) {
360
360
  v.hasFeature("theme_customization") && (w.themeOverrides.value = e);
361
361
  }
362
362
  function ie(e) {
363
363
  b.setUiTheme(e);
364
364
  }
365
- async function q() {
365
+ async function oe() {
366
366
  c.value = !0, u.value = null;
367
367
  try {
368
368
  if (await _.initialize(), f) return;
369
369
  l.value = !0;
370
- let e = await we({ authManager: _ });
370
+ let e = await Ee({ authManager: _ });
371
371
  if (f) return;
372
372
  if (!e.api.ok) throw Error("Health check failed: API is not reachable");
373
373
  if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
374
- if (e.websocket.ok || M.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await v.fetchConfig(), f) return;
375
- i.setCustomFontsEnabled(v.hasFeature("custom_fonts")), t.customBlocks?.length && v.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && v.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), t.modules !== !1 && v.hasFeature("saved_modules") && z.loadModules(), a("ready");
374
+ if (e.websocket.ok || N.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await v.fetchConfig(), f) return;
375
+ i.setCustomFontsEnabled(v.hasFeature("custom_fonts")), t.customBlocks?.length && v.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && v.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), t.modules !== !1 && v.hasFeature("saved_modules") && F.loadModules(), a("ready");
376
376
  } catch (e) {
377
377
  if (f) return;
378
378
  let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
@@ -381,7 +381,7 @@ function Re(e) {
381
381
  f || (c.value = !1);
382
382
  }
383
383
  }
384
- function ae() {
384
+ function q() {
385
385
  f = !0, i.cleanupFontLinks(), x.disconnect(), w.destroy(), t.onUnmount?.();
386
386
  }
387
387
  return {
@@ -400,27 +400,27 @@ function Re(e) {
400
400
  featureFlags: k,
401
401
  mediaLib: A,
402
402
  exporter: j,
403
- testEmail: P,
404
- commentsInstance: F,
405
- savedModulesHeadless: z,
406
- scoringInstance: G,
403
+ testEmail: ee,
404
+ commentsInstance: P,
405
+ savedModulesHeadless: F,
406
+ scoringInstance: W,
407
407
  panelState: D,
408
408
  snapshotPreview: E,
409
409
  collabWarning: T,
410
- showSaveModuleDialog: H,
411
- showModuleBrowserModal: W,
412
- saveModulePreSelectedBlockId: U,
410
+ showSaveModuleDialog: z,
411
+ showModuleBrowserModal: U,
412
+ saveModulePreSelectedBlockId: H,
413
413
  onSaveHook: p,
414
- initialize: q,
415
- destroy: ae,
416
- setThemeOverrides: re,
414
+ initialize: oe,
415
+ destroy: q,
416
+ setThemeOverrides: K,
417
417
  setUiTheme: ie,
418
- openCommentsForBlock: K
418
+ openCommentsForBlock: G
419
419
  };
420
420
  }
421
421
  //#endregion
422
422
  //#region src/utils/preRenderCustomBlocks.ts
423
- async function ze(e, t) {
423
+ async function Ve(e, t) {
424
424
  let n = async (e) => {
425
425
  if (A(e)) {
426
426
  let n = e;
@@ -439,10 +439,10 @@ async function ze(e, t) {
439
439
  }
440
440
  //#endregion
441
441
  //#region src/cloud/composables/useCloudLifecycle.ts
442
- function Be(e) {
442
+ function He(e) {
443
443
  let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
444
444
  function u() {
445
- return De(i.config.value.websocket);
445
+ return ke(i.config.value.websocket);
446
446
  }
447
447
  async function d(e) {
448
448
  let i = await n.create(e);
@@ -455,7 +455,7 @@ function Be(e) {
455
455
  async function p() {
456
456
  c.isSaveExporting.value = !0, c.saveStatus.value = "idle";
457
457
  try {
458
- if (await ze(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
458
+ if (await Ve(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
459
459
  let e = await n.save();
460
460
  if (l()) throw Error("Component unmounted during save");
461
461
  a.initSnapshotHistory(), a.snapshotHistoryInstance.value?.loadSnapshots();
@@ -482,7 +482,7 @@ function Be(e) {
482
482
  }
483
483
  //#endregion
484
484
  //#region src/cloud/composables/useCloudSaveGate.ts
485
- function Ve(e) {
485
+ function Ue(e) {
486
486
  let t = o(!1), n = null, r = d(() => e.planConfig.value?.accessibility?.blockOnError === !0), i = d(() => r.value ? e.issues.value.filter((e) => e.severity === "error") : []), a = d(() => i.value.length > 0);
487
487
  async function s(e) {
488
488
  return a.value ? (n = e, t.value = !0, !1) : (await e(), !0);
@@ -505,7 +505,7 @@ function Ve(e) {
505
505
  }
506
506
  //#endregion
507
507
  //#region src/cloud/components/CloudSaveGateModal.vue?vue&type=script&setup=true&lang.ts
508
- var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl:max-w-md tpl:flex-col tpl:gap-4 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-md)]" }, We = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ge = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ke = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, qe = { class: "tpl:m-0 tpl:flex tpl:max-h-64 tpl:list-none tpl:flex-col tpl:gap-1.5 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2" }, Je = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, Ye = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Xe = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, Ze = /* @__PURE__ */ l({
508
+ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl:max-w-md tpl:flex-col tpl:gap-4 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-md)]" }, Ke = { class: "tpl:flex tpl:items-center tpl:gap-2" }, qe = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Je = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ye = { class: "tpl:m-0 tpl:flex tpl:max-h-64 tpl:list-none tpl:flex-col tpl:gap-1.5 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2" }, Xe = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, Ze = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Qe = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, $e = /* @__PURE__ */ l({
509
509
  __name: "CloudSaveGateModal",
510
510
  props: {
511
511
  open: { type: Boolean },
@@ -527,18 +527,18 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
527
527
  "aria-label": C(a).saveGate.title,
528
528
  class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
529
529
  onClick: o[2] ||= u((e) => i("cancel"), ["self"])
530
- }, [f("div", Ue, [
531
- f("header", We, [E(C(pe), {
530
+ }, [f("div", Ge, [
531
+ f("header", Ke, [E(C(Z), {
532
532
  size: 18,
533
533
  "stroke-width": 2,
534
534
  class: "tpl:text-[var(--tpl-warning)]"
535
- }), f("h2", Ge, w(C(a).saveGate.title), 1)]),
536
- f("p", Ke, w(C(a).saveGate.body), 1),
537
- f("ul", qe, [(e(!0), m(_, null, r(t.issues, (t) => (e(), m("li", {
535
+ }), f("h2", qe, w(C(a).saveGate.title), 1)]),
536
+ f("p", Je, w(C(a).saveGate.body), 1),
537
+ f("ul", Ye, [(e(!0), m(_, null, r(t.issues, (t) => (e(), m("li", {
538
538
  key: `${t.ruleId}-${t.blockId ?? "template"}`,
539
539
  class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5"
540
- }, [f("span", Je, w(t.message), 1), f("span", Ye, w(t.ruleId), 1)]))), 128))]),
541
- f("footer", Xe, [f("button", {
540
+ }, [f("span", Xe, w(t.message), 1), f("span", Ze, w(t.ruleId), 1)]))), 128))]),
541
+ f("footer", Qe, [f("button", {
542
542
  type: "button",
543
543
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]",
544
544
  onClick: o[0] ||= (e) => i("cancel")
@@ -547,11 +547,11 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
547
547
  class: "tpl:rounded-md tpl:bg-[var(--tpl-danger)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-white",
548
548
  onClick: o[1] ||= (e) => i("confirm")
549
549
  }, w(C(a).saveGate.confirm), 1)])
550
- ])], 8, He)) : v("", !0)]),
550
+ ])], 8, We)) : v("", !0)]),
551
551
  _: 1
552
552
  }));
553
553
  }
554
- }), Qe = {
554
+ }), et = {
555
555
  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",
556
556
  style: {
557
557
  "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)",
@@ -560,24 +560,24 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
560
560
  "box-shadow": "var(--tpl-shadow-md)",
561
561
  "border-bottom": "1px solid var(--tpl-border)"
562
562
  }
563
- }, $e = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, et = {
563
+ }, tt = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, nt = {
564
564
  key: 0,
565
565
  class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
566
- }, tt = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, nt = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, rt = ["data-tooltip"], it = {
566
+ }, rt = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, it = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, at = ["data-tooltip"], ot = {
567
567
  key: 1,
568
568
  "aria-live": "polite",
569
569
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
570
- }, at = {
570
+ }, st = {
571
571
  key: 2,
572
572
  "aria-live": "polite",
573
573
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
574
- }, ot = ["aria-label", "aria-expanded"], st = {
574
+ }, ct = ["aria-label", "aria-expanded"], lt = {
575
575
  key: 0,
576
576
  class: "tpl:inline-flex tpl:size-4.5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]"
577
- }, ct = ["aria-expanded"], lt = {
577
+ }, ut = ["aria-expanded"], dt = {
578
578
  key: 0,
579
579
  class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
580
- }, ut = ["disabled"], dt = ["disabled"], ft = /* @__PURE__ */ l({
580
+ }, ft = ["disabled"], pt = ["disabled"], mt = /* @__PURE__ */ l({
581
581
  __name: "CloudHeader",
582
582
  props: {
583
583
  editor: {},
@@ -595,18 +595,18 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
595
595
  },
596
596
  emits: ["save"],
597
597
  setup(t) {
598
- let n = D(() => import("./CollaboratorBar-DjX-o5Pi.js")), r = D(() => import("./SnapshotHistory-DZ5_W7e4.js")), i = D(() => import("./AiFeatureMenu-D4D2Sqfk.js")), { t: a, format: o } = Q();
599
- return (l, d) => (e(), m("header", Qe, [
600
- f("div", $e, [t.featureFlags.templateLimit.value === null ? v("", !0) : (e(), m("span", et, w(C(o)(C(a).header.templatesUsed, {
598
+ let n = D(() => import("./CollaboratorBar-B8-AQfG2.js")), r = D(() => import("./SnapshotHistory-BTHd7CVP.js")), i = D(() => import("./AiFeatureMenu-DBWcfcWl.js")), { t: a, format: o } = Q();
599
+ return (l, d) => (e(), m("header", et, [
600
+ f("div", tt, [t.featureFlags.templateLimit.value === null ? v("", !0) : (e(), m("span", nt, w(C(o)(C(a).header.templatesUsed, {
601
601
  used: t.featureFlags.templateCount.value,
602
602
  max: t.featureFlags.templateLimit.value
603
603
  })), 1))]),
604
- f("div", tt, [
604
+ f("div", rt, [
605
605
  E(K, {
606
606
  viewport: t.editor.state.viewport,
607
607
  onChange: t.editor.setViewport
608
608
  }, null, 8, ["viewport", "onChange"]),
609
- E(ce, {
609
+ E(ue, {
610
610
  "dark-mode": t.editor.state.darkMode,
611
611
  onChange: t.editor.setDarkMode
612
612
  }, null, 8, ["dark-mode", "onChange"]),
@@ -634,7 +634,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
634
634
  "onNavigate"
635
635
  ])) : v("", !0)
636
636
  ]),
637
- f("div", nt, [
637
+ f("div", it, [
638
638
  t.featureFlags.saveStatus.value === "error" ? (e(), m("div", {
639
639
  key: 0,
640
640
  "aria-live": "assertive",
@@ -643,10 +643,10 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
643
643
  }, [E(C(G), {
644
644
  size: 12,
645
645
  "stroke-width": 2.5
646
- }), s(" " + w(C(a).header.saveFailed), 1)], 8, rt)) : t.featureFlags.saveStatus.value === "saved" ? (e(), m("div", it, [E(C(W), {
646
+ }), s(" " + w(C(a).header.saveFailed), 1)], 8, at)) : t.featureFlags.saveStatus.value === "saved" ? (e(), m("div", ot, [E(C(W), {
647
647
  size: 12,
648
648
  "stroke-width": 2.5
649
- }), s(" " + w(C(a).header.saved), 1)])) : t.editor.state.isDirty ? (e(), m("div", at, [d[4] ||= f("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), s(" " + w(C(a).header.unsaved), 1)])) : v("", !0),
649
+ }), s(" " + w(C(a).header.saved), 1)])) : t.editor.state.isDirty ? (e(), m("div", st, [d[4] ||= f("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), s(" " + w(C(a).header.unsaved), 1)])) : v("", !0),
650
650
  t.commentsInstance.isEnabled.value && t.featureFlags.hasTemplateSaved.value ? (e(), m("button", {
651
651
  key: 3,
652
652
  "aria-label": t.commentsInstance.unresolvedCount.value > 0 ? `${C(a).comments.button} (${t.commentsInstance.unresolvedCount.value})` : C(a).comments.button,
@@ -659,13 +659,13 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
659
659
  }),
660
660
  onClick: d[0] ||= (e) => t.panelState.commentsOpen.value = !t.panelState.commentsOpen.value
661
661
  }, [
662
- E(C(Y), {
662
+ E(C(he), {
663
663
  size: 16,
664
664
  "stroke-width": 2
665
665
  }),
666
666
  s(" " + w(C(a).comments.button) + " ", 1),
667
- t.commentsInstance.unresolvedCount.value > 0 && !t.panelState.commentsOpen.value ? (e(), m("span", st, w(t.commentsInstance.unresolvedCount.value), 1)) : v("", !0)
668
- ], 14, ot)) : v("", !0),
667
+ t.commentsInstance.unresolvedCount.value > 0 && !t.panelState.commentsOpen.value ? (e(), m("span", lt, w(t.commentsInstance.unresolvedCount.value), 1)) : v("", !0)
668
+ ], 14, ct)) : v("", !0),
669
669
  t.featureFlags.canUseAiGeneration.value && t.featureFlags.hasTemplateSaved.value ? (e(), m("div", {
670
670
  key: 4,
671
671
  ref: (e) => t.panelState.aiMenuRef.value = e,
@@ -674,11 +674,11 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
674
674
  "aria-expanded": t.panelState.aiMenuOpen.value,
675
675
  class: c(["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", t.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
676
676
  onClick: d[1] ||= u((...e) => t.panelState.toggleAiMenu && t.panelState.toggleAiMenu(...e), ["stop"])
677
- }, [E(C(Z), {
677
+ }, [E(C(X), {
678
678
  size: 16,
679
679
  "stroke-width": 2,
680
680
  class: "tpl-ai-btn-icon"
681
- }), s(" " + w(C(a).aiChat.button), 1)], 10, ct), E(T, {
681
+ }), s(" " + w(C(a).aiChat.button), 1)], 10, ut), E(T, {
682
682
  "enter-active-class": "tpl:transition-all tpl:duration-150 tpl:ease-out",
683
683
  "enter-from-class": "tpl:scale-95 tpl:opacity-0",
684
684
  "enter-to-class": "tpl:scale-100 tpl:opacity-100",
@@ -686,7 +686,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
686
686
  "leave-from-class": "tpl:scale-100 tpl:opacity-100",
687
687
  "leave-to-class": "tpl:scale-95 tpl:opacity-0"
688
688
  }, {
689
- default: O(() => [t.panelState.aiMenuOpen.value ? (e(), m("div", lt, [E(C(i), {
689
+ default: O(() => [t.panelState.aiMenuOpen.value ? (e(), m("div", dt, [E(C(i), {
690
690
  "active-feature": t.panelState.activeAiFeature.value,
691
691
  onSelect: t.panelState.handleAiFeatureSelect
692
692
  }, null, 8, ["active-feature", "onSelect"])])) : v("", !0)]),
@@ -707,11 +707,11 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
707
707
  class: "tpl-spinner",
708
708
  size: 16,
709
709
  "stroke-width": 2
710
- })) : (e(), x(C(X), {
710
+ })) : (e(), x(C(Y), {
711
711
  key: 0,
712
712
  size: 16,
713
713
  "stroke-width": 2
714
- })), s(" " + w(C(a).testEmail.button), 1)], 10, ut)) : v("", !0),
714
+ })), s(" " + w(C(a).testEmail.button), 1)], 10, ft)) : v("", !0),
715
715
  f("button", {
716
716
  class: c(C($)),
717
717
  style: {
@@ -726,15 +726,15 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
726
726
  class: "tpl-spinner",
727
727
  size: 16,
728
728
  "stroke-width": 2
729
- })) : (e(), x(C(Me), {
729
+ })) : (e(), x(C(Pe), {
730
730
  key: 0,
731
731
  size: 16,
732
732
  "stroke-width": 2
733
- })), s(" " + w(t.isSaving ? C(a).header.saving : C(a).header.save), 1)], 10, dt)
733
+ })), s(" " + w(t.isSaving ? C(a).header.saving : C(a).header.save), 1)], 10, pt)
734
734
  ])
735
735
  ]));
736
736
  }
737
- }), pt = /* @__PURE__ */ l({
737
+ }), ht = /* @__PURE__ */ l({
738
738
  __name: "CloudPanels",
739
739
  props: {
740
740
  config: {},
@@ -757,7 +757,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
757
757
  "module-insert"
758
758
  ],
759
759
  setup(t, { expose: n, emit: r }) {
760
- let i = D(() => import("./AiChatSidebar-Cm5RM5Qh.js")), a = D(() => import("./CommentsSidebar-BQJzyCc6.js")), s = D(() => import("./DesignReferenceSidebar-O3epZMXD.js")), c = D(() => import("./TemplateScoringPanel-Bt5Rsgen.js")), l = D(() => import("./TestEmailModal-EjpH-F-W.js")), u = D(() => import("./SaveModuleDialog-BMuIjxVn.js")), d = D(() => import("./ModuleBrowserModal-CVS4Sf7H.js")), f = D(async () => {
760
+ let i = D(() => import("./AiChatSidebar-Cm5RM5Qh.js")), a = D(() => import("./CommentsSidebar-BQJzyCc6.js")), s = D(() => import("./DesignReferenceSidebar-O3epZMXD.js")), c = D(() => import("./TemplateScoringPanel-Bt5Rsgen.js")), l = D(() => import("./TestEmailModal-CBIFMzK6.js")), u = D(() => import("./SaveModuleDialog-B8ypoxdj.js")), d = D(() => import("./ModuleBrowserModal-B_tLzFAk.js")), f = D(async () => {
761
761
  try {
762
762
  return (await import("@templatical/media-library")).MediaLibraryModal;
763
763
  } catch {
@@ -839,23 +839,23 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
839
839
  ])
840
840
  ], 64));
841
841
  }
842
- }), mt = {
842
+ }), gt = {
843
843
  key: 0,
844
844
  class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
845
- }, ht = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, gt = { class: "tpl:flex tpl:w-12 tpl:shrink-0 tpl:flex-col tpl:items-center tpl:gap-4 tpl:py-5 tpl:border-r tpl:border-[var(--tpl-border)]" }, _t = /* @__PURE__ */ l({
845
+ }, _t = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, vt = { class: "tpl:flex tpl:w-12 tpl:shrink-0 tpl:flex-col tpl:items-center tpl:gap-4 tpl:py-5 tpl:border-r tpl:border-[var(--tpl-border)]" }, yt = /* @__PURE__ */ l({
846
846
  __name: "CloudLoadingOverlay",
847
847
  props: { visible: { type: Boolean } },
848
848
  setup(t) {
849
- return (n, i) => t.visible ? (e(), m("div", mt, [i[1] ||= p("<div class=\"tpl:flex tpl:h-14 tpl:shrink-0 tpl:items-center tpl:justify-between tpl:px-4 tpl:border-b tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl:flex tpl:gap-3\"><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div></div>", 1), f("div", ht, [f("div", gt, [(e(), m(_, null, r(5, (e) => f("div", {
849
+ return (n, i) => t.visible ? (e(), m("div", gt, [i[1] ||= p("<div class=\"tpl:flex tpl:h-14 tpl:shrink-0 tpl:items-center tpl:justify-between tpl:px-4 tpl:border-b tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl:flex tpl:gap-3\"><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div></div>", 1), f("div", _t, [f("div", vt, [(e(), m(_, null, r(5, (e) => f("div", {
850
850
  key: e,
851
851
  class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
852
852
  })), 64))]), i[0] ||= p("<div class=\"tpl:flex tpl:flex-1 tpl:items-start tpl:justify-center tpl:overflow-auto tpl:p-8 tpl:bg-[var(--tpl-canvas-bg)]\"><div class=\"tpl:w-full tpl:max-w-[600px] tpl:rounded-[var(--tpl-radius)] tpl:p-6 tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)]\"><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-3/4 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-5/6 tpl:rounded\"></div></div><div class=\"tpl:py-4\"><div class=\"tpl-shimmer tpl:h-44 tpl:w-full tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-2/3 tpl:rounded\"></div></div><div class=\"tpl:flex tpl:justify-center tpl:py-4\"><div class=\"tpl-shimmer tpl:h-10 tpl:w-36 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/2 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/3 tpl:rounded\"></div></div></div></div><div class=\"tpl:flex tpl:w-[320px] tpl:shrink-0 tpl:flex-col tpl:gap-4 tpl:p-4 tpl:border-l tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-8 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div></div>", 2)])])) : v("", !0);
853
853
  }
854
- }), vt = {
854
+ }), bt = {
855
855
  key: 0,
856
856
  role: "alert",
857
857
  class: "tpl-error tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-6 tpl:px-8 tpl:bg-[var(--tpl-bg)]"
858
- }, yt = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, bt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, xt = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, St = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ct = /* @__PURE__ */ l({
858
+ }, xt = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, St = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, Ct = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wt = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Tt = /* @__PURE__ */ l({
859
859
  __name: "CloudErrorOverlay",
860
860
  props: {
861
861
  error: {},
@@ -870,13 +870,13 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
870
870
  function o(e) {
871
871
  return "isNotFound" in e && !!e.isNotFound;
872
872
  }
873
- return (n, s) => t.visible && t.error ? (e(), m("div", vt, [
874
- f("div", yt, [E(C(G), {
873
+ return (n, s) => t.visible && t.error ? (e(), m("div", bt, [
874
+ f("div", xt, [E(C(G), {
875
875
  size: 32,
876
876
  "stroke-width": 1.5,
877
877
  class: "tpl:text-[var(--tpl-danger)]"
878
878
  })]),
879
- f("div", bt, [f("h2", xt, w(C(i).error.title), 1), f("p", St, w(a(t.error)), 1)]),
879
+ f("div", St, [f("h2", Ct, w(C(i).error.title), 1), f("p", wt, w(a(t.error)), 1)]),
880
880
  o(t.error) ? v("", !0) : (e(), m("button", {
881
881
  key: 0,
882
882
  class: "tpl-btn tpl-btn-primary tpl:inline-flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
@@ -884,20 +884,20 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
884
884
  }, w(C(i).error.retry), 1))
885
885
  ])) : v("", !0);
886
886
  }
887
- }), wt = {
887
+ }), Et = {
888
888
  key: 0,
889
889
  class: "tpl-preview-banner tpl:absolute tpl:top-14 tpl:right-0 tpl:left-0 tpl:z-40 tpl:flex tpl:items-center tpl:justify-center tpl:gap-4 tpl:px-4 tpl:py-3 tpl:bg-[var(--tpl-primary-light)] tpl:border-b tpl:border-[var(--tpl-primary)]"
890
- }, Tt = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, Et = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Dt = /* @__PURE__ */ l({
890
+ }, Dt = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, Ot = { class: "tpl:flex tpl:items-center tpl:gap-2" }, kt = /* @__PURE__ */ l({
891
891
  __name: "SnapshotPreviewBanner",
892
892
  props: { visible: { type: Boolean } },
893
893
  emits: ["cancel", "confirm"],
894
894
  setup(t, { emit: n }) {
895
895
  let r = n, { t: i } = Q();
896
- return (n, a) => t.visible ? (e(), m("div", wt, [f("div", Tt, [E(C(fe), {
896
+ return (n, a) => t.visible ? (e(), m("div", Et, [f("div", Dt, [E(C(me), {
897
897
  size: 18,
898
898
  "stroke-width": 2,
899
899
  class: "tpl:text-[var(--tpl-primary)]"
900
- }), f("span", null, w(C(i).snapshotPreview.message), 1)]), f("div", Et, [f("button", {
900
+ }), f("span", null, w(C(i).snapshotPreview.message), 1)]), f("div", Ot, [f("button", {
901
901
  class: "tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-150 tpl:text-[var(--tpl-text-muted)] tpl:border tpl:border-[var(--tpl-border)]",
902
902
  style: { "background-color": "transparent" },
903
903
  onClick: a[0] ||= (e) => r("cancel")
@@ -906,7 +906,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
906
906
  onClick: a[1] ||= (e) => r("confirm")
907
907
  }, w(C(i).snapshotPreview.restore), 1)])])) : v("", !0);
908
908
  }
909
- }), Ot = {
909
+ }), At = {
910
910
  key: 0,
911
911
  role: "status",
912
912
  "aria-live": "polite",
@@ -916,14 +916,14 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
916
916
  color: "var(--tpl-text)",
917
917
  border: "1px solid var(--tpl-warning)"
918
918
  }
919
- }, kt = /* @__PURE__ */ l({
919
+ }, jt = /* @__PURE__ */ l({
920
920
  __name: "CollabUndoToast",
921
921
  props: { visible: { type: Boolean } },
922
922
  setup(t) {
923
923
  let { t: n } = H();
924
- return (r, i) => t.visible ? (e(), m("div", Ot, w(C(n).history.collabWarning), 1)) : v("", !0);
924
+ return (r, i) => t.visible ? (e(), m("div", At, w(C(n).history.collabWarning), 1)) : v("", !0);
925
925
  }
926
- }), At = ["data-tpl-theme"], jt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Mt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Nt = ["aria-label"], Pt = /*#__PURE__*/ me(/* @__PURE__ */ l({
926
+ }), Mt = ["data-tpl-theme"], Nt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Pt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Ft = ["aria-label"], It = /*#__PURE__*/ ge(/* @__PURE__ */ l({
927
927
  __name: "CloudEditor",
928
928
  props: {
929
929
  config: {},
@@ -936,7 +936,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
936
936
  setup(n, { expose: r, emit: a }) {
937
937
  let l = n;
938
938
  h(z, l.cloudTranslations);
939
- let u = a, d = o(null), p = o(null), _ = Re({
939
+ let u = a, d = o(null), p = o(null), _ = Be({
940
940
  config: l.config,
941
941
  translations: l.translations,
942
942
  fontsManager: l.fontsManager,
@@ -944,25 +944,25 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
944
944
  getCommentsSidebar: () => d.value ? { filterByBlock: d.value.filterCommentsByBlock } : null,
945
945
  editorRoot: l.shadowRoot,
946
946
  containerEl: p
947
- }), { isInitializing: S, isAuthReady: D, initError: k, planConfigInstance: A, websocket: M, collaboration: N, isCollaborationEnabled: ee, editor: P, core: F, featureFlags: I, mediaLib: L, exporter: R, testEmail: B, commentsInstance: te, savedModulesHeadless: ne, panelState: V, snapshotPreview: H, collabWarning: U, showSaveModuleDialog: W, showModuleBrowserModal: G, saveModulePreSelectedBlockId: K, setThemeOverrides: q, setUiTheme: ce } = _;
948
- async function de(e) {
947
+ }), { isInitializing: S, isAuthReady: D, initError: k, planConfigInstance: A, websocket: M, collaboration: N, isCollaborationEnabled: te, editor: P, core: F, featureFlags: I, mediaLib: L, exporter: R, testEmail: B, commentsInstance: ne, savedModulesHeadless: re, panelState: V, snapshotPreview: H, collabWarning: U, showSaveModuleDialog: W, showModuleBrowserModal: G, saveModulePreSelectedBlockId: K, setThemeOverrides: ae, setUiTheme: q } = _, { showNotice: ue } = ee(() => l.config.smallScreenNotice);
948
+ async function me(e) {
949
949
  try {
950
950
  await B.sendTestEmail(e), V.testEmailModalOpen.value = !1;
951
951
  } catch {}
952
952
  }
953
- async function fe() {
953
+ async function J() {
954
954
  try {
955
955
  await H.confirmRestoreSnapshot();
956
956
  } catch {}
957
957
  }
958
- function J(e, t) {
958
+ function he(e, t) {
959
959
  for (let n = 0; n < e.content.length; n++) {
960
960
  let r = j(e.content[n]), i = t === void 0 ? void 0 : t + n;
961
961
  P.addBlock(r, void 0, void 0, i);
962
962
  }
963
963
  G.value = !1;
964
964
  }
965
- let Y = Be({
965
+ let Y = He({
966
966
  config: l.config,
967
967
  editor: P,
968
968
  websocket: M,
@@ -972,7 +972,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
972
972
  exporter: R,
973
973
  featureFlags: I,
974
974
  isDestroyed: _.isDestroyed
975
- }), X = Ve({
975
+ }), X = Ue({
976
976
  issues: F.templateLint ? F.templateLint.issues : o([]),
977
977
  planConfig: A.config
978
978
  });
@@ -986,8 +986,8 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
986
986
  }), r({
987
987
  getContent: () => P.content.value,
988
988
  setContent: (e) => P.setContent(e),
989
- setTheme: ce,
990
- setThemeOverrides: q,
989
+ setTheme: q,
990
+ setThemeOverrides: ae,
991
991
  create: Y.createTemplate,
992
992
  load: Y.loadTemplate,
993
993
  save: Y.saveTemplate,
@@ -999,7 +999,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
999
999
  "data-tpl-theme": C(F).resolvedTheme.value,
1000
1000
  style: b(C(F).themeStyles.value)
1001
1001
  }, [
1002
- E(re),
1002
+ E(se),
1003
1003
  E(T, {
1004
1004
  "enter-active-class": "tpl:transition-opacity tpl:duration-200",
1005
1005
  "enter-from-class": "tpl:opacity-100",
@@ -1008,7 +1008,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1008
1008
  "leave-from-class": "tpl:opacity-100",
1009
1009
  "leave-to-class": "tpl:opacity-0"
1010
1010
  }, {
1011
- default: O(() => [E(_t, { visible: C(S) || C(P).state.isLoading }, null, 8, ["visible"])]),
1011
+ default: O(() => [E(yt, { visible: C(S) || C(P).state.isLoading }, null, 8, ["visible"])]),
1012
1012
  _: 1
1013
1013
  }),
1014
1014
  E(T, {
@@ -1019,7 +1019,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1019
1019
  "leave-from-class": "tpl:opacity-100",
1020
1020
  "leave-to-class": "tpl:opacity-0"
1021
1021
  }, {
1022
- default: O(() => [E(Ct, {
1022
+ default: O(() => [E(Tt, {
1023
1023
  error: C(k),
1024
1024
  visible: !!C(k) && !C(S),
1025
1025
  onRetry: C(_).initialize
@@ -1030,17 +1030,17 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1030
1030
  ])]),
1031
1031
  _: 1
1032
1032
  }),
1033
- E(ft, {
1033
+ E(mt, {
1034
1034
  editor: C(P),
1035
1035
  core: C(F),
1036
1036
  "feature-flags": C(I),
1037
1037
  "panel-state": C(V),
1038
1038
  "snapshot-preview": C(H),
1039
- "comments-instance": C(te),
1039
+ "comments-instance": C(ne),
1040
1040
  "test-email": C(B),
1041
1041
  websocket: C(M),
1042
1042
  collaboration: C(N),
1043
- "is-collaboration-enabled": C(ee),
1043
+ "is-collaboration-enabled": C(te),
1044
1044
  "is-saving": C(P).state.isSaving || C(I).isSaveExporting.value,
1045
1045
  "is-save-disabled": C(P).state.isSaving || C(I).isSaveExporting.value || !C(P).state.isDirty,
1046
1046
  onSave: Z
@@ -1058,7 +1058,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1058
1058
  "is-saving",
1059
1059
  "is-save-disabled"
1060
1060
  ]),
1061
- E(Ze, {
1061
+ E($e, {
1062
1062
  open: C(X).modalOpen.value,
1063
1063
  issues: C(X).blockingIssues.value,
1064
1064
  onCancel: C(X).cancel,
@@ -1069,10 +1069,10 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1069
1069
  "onCancel",
1070
1070
  "onConfirm"
1071
1071
  ]),
1072
- E(Dt, {
1072
+ E(kt, {
1073
1073
  visible: C(H).isPreviewingSnapshot.value,
1074
1074
  onCancel: C(H).cancelPreview,
1075
- onConfirm: fe
1075
+ onConfirm: J
1076
1076
  }, null, 8, ["visible", "onCancel"]),
1077
1077
  E(T, {
1078
1078
  "enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
@@ -1082,17 +1082,17 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1082
1082
  "leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
1083
1083
  "leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
1084
1084
  }, {
1085
- default: O(() => [E(kt, { visible: C(U).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1085
+ default: O(() => [E(jt, { visible: C(U).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1086
1086
  _: 1
1087
1087
  }),
1088
- t(E(le, null, null, 512), [[y, !C(P).state.previewMode]]),
1088
+ t(E(ie, null, null, 512), [[y, !C(P).state.previewMode]]),
1089
1089
  f("div", {
1090
1090
  class: c(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [C(P).state.previewMode ? "tpl:left-0 tpl:right-0" : C(V).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", C(H).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1091
1091
  style: {
1092
1092
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
1093
1093
  "background-color": "var(--tpl-canvas-bg)"
1094
1094
  }
1095
- }, [f("div", jt, [E(T, { name: "tpl-restore-btn" }, {
1095
+ }, [f("div", Nt, [E(T, { name: "tpl-restore-btn" }, {
1096
1096
  default: O(() => [C(F).conditionPreview.hasHiddenBlocks.value ? (e(), m("button", {
1097
1097
  key: 0,
1098
1098
  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",
@@ -1103,12 +1103,12 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1103
1103
  "backdrop-filter": "blur(8px)"
1104
1104
  },
1105
1105
  onClick: i[0] ||= (e) => C(F).conditionPreview.reset()
1106
- }, [E(C(ie), {
1106
+ }, [E(C(oe), {
1107
1107
  size: 13,
1108
1108
  "stroke-width": 2
1109
1109
  }), s(" " + w(C(F).t.blockSettings.restoreHiddenBlocks), 1)])) : v("", !0)]),
1110
1110
  _: 1
1111
- })]), f("main", Mt, [E(ae, {
1111
+ })]), f("main", Pt, [E(pe, {
1112
1112
  viewport: C(P).state.viewport,
1113
1113
  content: C(P).content.value,
1114
1114
  "selected-block-id": C(P).state.selectedBlockId,
@@ -1127,7 +1127,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1127
1127
  "locked-blocks",
1128
1128
  "onSelectBlock"
1129
1129
  ])])], 2),
1130
- n.config.branding !== !1 && !C(I).isWhiteLabeled.value ? (e(), x(oe, {
1130
+ n.config.branding !== !1 && !C(I).isWhiteLabeled.value ? (e(), x(ce, {
1131
1131
  key: 0,
1132
1132
  "position-class": [C(P).state.previewMode ? "tpl:left-0 tpl:right-0" : C(V).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1133
1133
  }, null, 8, ["position-class"])) : v("", !0),
@@ -1137,8 +1137,8 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1137
1137
  "aria-live": "polite",
1138
1138
  "aria-atomic": "true",
1139
1139
  "aria-label": C(F).t.landmarks.reorderAnnouncements
1140
- }, w(C(F).keyboardReorder.announcement.value), 9, Nt),
1141
- t(E(se, {
1140
+ }, w(C(F).keyboardReorder.announcement.value), 9, Ft),
1141
+ t(E(de, {
1142
1142
  "selected-block": C(P).selectedBlock.value,
1143
1143
  settings: C(P).content.value.settings,
1144
1144
  "shifted-left": C(V).rightPanelOpen.value,
@@ -1152,7 +1152,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1152
1152
  "shifted-left",
1153
1153
  "onUpdateSettings"
1154
1154
  ]), [[y, !C(P).state.previewMode]]),
1155
- !C(S) && C(D) ? (e(), x(pt, {
1155
+ !C(S) && C(D) ? (e(), x(ht, {
1156
1156
  key: 1,
1157
1157
  ref_key: "cloudPanelsRef",
1158
1158
  ref: d,
@@ -1163,15 +1163,15 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1163
1163
  "plan-config-instance": C(A),
1164
1164
  "test-email": C(B),
1165
1165
  "media-lib": C(L),
1166
- "saved-modules-headless": C(ne),
1166
+ "saved-modules-headless": C(re),
1167
1167
  "show-save-module-dialog": C(W),
1168
1168
  "save-module-pre-selected-block-id": C(K),
1169
1169
  "show-module-browser-modal": C(G),
1170
1170
  "onUpdate:showSaveModuleDialog": i[6] ||= (e) => W.value = e,
1171
1171
  "onUpdate:saveModulePreSelectedBlockId": i[7] ||= (e) => K.value = e,
1172
1172
  "onUpdate:showModuleBrowserModal": i[8] ||= (e) => G.value = e,
1173
- onSendTestEmail: de,
1174
- onModuleInsert: J
1173
+ onSendTestEmail: me,
1174
+ onModuleInsert: he
1175
1175
  }, null, 8, [
1176
1176
  "config",
1177
1177
  "editor",
@@ -1189,9 +1189,10 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1189
1189
  ref: (e) => C(F).popoverRoot.value = e,
1190
1190
  class: "tpl-popover-root"
1191
1191
  }, null, 512),
1192
- E(ue)
1193
- ], 14, At));
1192
+ E(fe),
1193
+ C(ue) ? (e(), x(le, { key: 2 })) : v("", !0)
1194
+ ], 14, Mt));
1194
1195
  }
1195
- }), [["__scopeId", "data-v-3a8bb0e8"]]);
1196
+ }), [["__scopeId", "data-v-df1ba3f4"]]);
1196
1197
  //#endregion
1197
- export { Pt as default };
1198
+ export { It as default };