@templatical/editor 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/dist/{AiChatSidebar-BMwpZx-6.js → AiChatSidebar-Cm5RM5Qh.js} +13 -13
  2. package/dist/{AiFeatureMenu-BqLi9Kh7.js → AiFeatureMenu-D4D2Sqfk.js} +7 -7
  3. package/dist/{BlockIssueBadge-3kNs6WoD.js → BlockIssueBadge-BF4sdsr4.js} +5 -5
  4. package/dist/{CloudEditor-DbyKnqbS.js → CloudEditor-CLwyq3kf.js} +21 -20
  5. package/dist/{CollaboratorBar-BXLwod21.js → CollaboratorBar-DjX-o5Pi.js} +4 -4
  6. package/dist/{CommentsSidebar-jFZj_CTo.js → CommentsSidebar-BQJzyCc6.js} +12 -12
  7. package/dist/{CountdownBlock-S-SCyVye.js → CountdownBlock-D_AsF4F3.js} +3 -3
  8. package/dist/{CountdownToolbar-Ckdo-3P-.js → CountdownToolbar-BGTkFky9.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-B9QNPZNV.js → DesignReferenceSidebar-O3epZMXD.js} +9 -9
  10. package/dist/{IssuesPanel-_E_fbSM8.js → IssuesPanel-CPBbR8yp.js} +8 -8
  11. package/dist/{LoadingTrack-BZ5KJyZ_.js → LoadingTrack-e67FA0NP.js} +1 -1
  12. package/dist/{ModuleBrowserModal-Dy3fU2UD.js → ModuleBrowserModal-CVS4Sf7H.js} +10 -10
  13. package/dist/{ModulePreviewCanvas-Cutg3m7U.js → ModulePreviewCanvas-C10YXsL_.js} +3 -3
  14. package/dist/{NumberWithSuffix-BHDXHMpo.js → NumberWithSuffix-eI9pPDWT.js} +3 -3
  15. package/dist/{ParagraphEditor-DkLmn3Nf.js → ParagraphEditor-BKoqcKIt.js} +24 -24
  16. package/dist/{RichTextEditorContent-COijbaWp.js → RichTextEditorContent-Dvn4woIt.js} +7 -7
  17. package/dist/{SaveModuleDialog-C6cmHTRI.js → SaveModuleDialog-BMuIjxVn.js} +7 -7
  18. package/dist/{SnapshotHistory-DcLZlAhz.js → SnapshotHistory-DZ5_W7e4.js} +9 -9
  19. package/dist/{TemplateScoringPanel-Dhf_Qgr7.js → TemplateScoringPanel-Bt5Rsgen.js} +14 -14
  20. package/dist/{TestEmailModal-iRqNzKLT.js → TestEmailModal-EjpH-F-W.js} +5 -5
  21. package/dist/{TitleEditor-B-Adnssr.js → TitleEditor-Rv1deuV7.js} +13 -13
  22. package/dist/{TplModal-BlqH7CdL.js → TplModal-DSmCQIm4.js} +4 -4
  23. package/dist/{blockTypeIcons-upTll6yr.js → blockTypeIcons-OhEkQhYj.js} +2 -2
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/cdn/chunks/{AiFeatureMenu-DwZWx_da.js → AiFeatureMenu-Dm9CL3u0.js} +5 -5
  26. package/dist/cdn/chunks/{AiFeatureMenu-DwZWx_da.js.map → AiFeatureMenu-Dm9CL3u0.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-ClwC6oSs.js → BlockIssueBadge-DjnFAeWq.js} +5 -5
  28. package/dist/cdn/chunks/{BlockIssueBadge-ClwC6oSs.js.map → BlockIssueBadge-DjnFAeWq.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-BCfQOcnm.js → CloudEditor-XSmLmdgp.js} +158 -157
  30. package/dist/cdn/chunks/CloudEditor-XSmLmdgp.js.map +1 -0
  31. package/dist/cdn/chunks/{CollaboratorBar-yz1eW4cW.js → CollaboratorBar-BfoGJhns.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-yz1eW4cW.js.map → CollaboratorBar-BfoGJhns.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-CXQnTPVs.js → CountdownBlock-GRio55a1.js} +3 -3
  34. package/dist/cdn/chunks/{CountdownBlock-CXQnTPVs.js.map → CountdownBlock-GRio55a1.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-TQGPjSz_.js → CountdownToolbar-Cd1oEopw.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-TQGPjSz_.js.map → CountdownToolbar-Cd1oEopw.js.map} +1 -1
  37. package/dist/cdn/chunks/{IssuesPanel-CTCK-R67.js → IssuesPanel-C-BiFQDQ.js} +6 -6
  38. package/dist/cdn/chunks/{IssuesPanel-CTCK-R67.js.map → IssuesPanel-C-BiFQDQ.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-CFpBtFiA.js → ModuleBrowserModal-Dj7gRT4Q.js} +9 -9
  40. package/dist/cdn/chunks/{ModuleBrowserModal-CFpBtFiA.js.map → ModuleBrowserModal-Dj7gRT4Q.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-DhAubE2o.js → ModulePreviewCanvas-hwdveKb0.js} +3 -3
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-DhAubE2o.js.map → ModulePreviewCanvas-hwdveKb0.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-DUwFMc_M.js → NumberWithSuffix-bE_6cfiA.js} +3 -3
  44. package/dist/cdn/chunks/{NumberWithSuffix-DUwFMc_M.js.map → NumberWithSuffix-bE_6cfiA.js.map} +1 -1
  45. package/dist/cdn/chunks/{ParagraphEditor-B3az9xuj.js → ParagraphEditor-y1kGJRBX.js} +49 -49
  46. package/dist/cdn/chunks/{ParagraphEditor-B3az9xuj.js.map → ParagraphEditor-y1kGJRBX.js.map} +1 -1
  47. package/dist/cdn/chunks/{RichTextEditorContent-DtcHHUSO.js → RichTextEditorContent-DPy9D4hc.js} +4 -4
  48. package/dist/cdn/chunks/{RichTextEditorContent-DtcHHUSO.js.map → RichTextEditorContent-DPy9D4hc.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-Da8g2aeD.js → SaveModuleDialog-CPu5e2VG.js} +5 -5
  50. package/dist/cdn/chunks/{SaveModuleDialog-Da8g2aeD.js.map → SaveModuleDialog-CPu5e2VG.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor-jxOFe6Q6.js → TitleEditor-CMzzOPye.js} +10 -10
  52. package/dist/cdn/chunks/{TitleEditor-jxOFe6Q6.js.map → TitleEditor-CMzzOPye.js.map} +1 -1
  53. package/dist/cdn/chunks/{blockTypeIcons-Cxjz4oHg.js → blockTypeIcons-BC5qpvuV.js} +3 -3
  54. package/dist/cdn/chunks/{blockTypeIcons-Cxjz4oHg.js.map → blockTypeIcons-BC5qpvuV.js.map} +1 -1
  55. package/dist/cdn/chunks/{draggable-BTGr7_-X.js → draggable-iAb7QVJo.js} +30 -23
  56. package/dist/cdn/chunks/draggable-iAb7QVJo.js.map +1 -0
  57. package/dist/cdn/chunks/{extensions-2tEgrD-f.js → extensions-DH7ESsaz.js} +23 -23
  58. package/dist/cdn/chunks/{extensions-2tEgrD-f.js.map → extensions-DH7ESsaz.js.map} +1 -1
  59. package/dist/cdn/chunks/{features-C3H2u-FV.js → features-DmUOSthI.js} +654 -683
  60. package/dist/cdn/chunks/features-DmUOSthI.js.map +1 -0
  61. package/dist/cdn/chunks/{icons-DClusKFv.js → icons-DguD4x_X.js} +2 -2
  62. package/dist/cdn/chunks/{icons-DClusKFv.js.map → icons-DguD4x_X.js.map} +1 -1
  63. package/dist/cdn/chunks/{media-library-8bD3x0mc.js → media-library-ClQUPxRM.js} +73 -73
  64. package/dist/cdn/chunks/{media-library-8bD3x0mc.js.map → media-library-ClQUPxRM.js.map} +1 -1
  65. package/dist/cdn/chunks/{quality-Dqwx7TdN.js → quality-CIw_7cXv.js} +479 -479
  66. package/dist/cdn/chunks/{quality-Dqwx7TdN.js.map → quality-CIw_7cXv.js.map} +1 -1
  67. package/dist/cdn/chunks/{renderer-DwmyVTa2.js → renderer-Bx8I7_Rb.js} +19 -19
  68. package/dist/cdn/chunks/{renderer-DwmyVTa2.js.map → renderer-Bx8I7_Rb.js.map} +1 -1
  69. package/dist/cdn/chunks/{src-C2v-Zix_.js → src-C-GlM149.js} +5 -5
  70. package/dist/cdn/chunks/{src-C2v-Zix_.js.map → src-C-GlM149.js.map} +1 -1
  71. package/dist/cdn/chunks/{styles-CwetU6QM.js → styles-CfqCvq0Z.js} +667 -636
  72. package/dist/cdn/chunks/styles-CfqCvq0Z.js.map +1 -0
  73. package/dist/cdn/chunks/{tiptap-P5abGB13.js → tiptap-BAwu9VcJ.js} +4913 -3752
  74. package/dist/cdn/chunks/tiptap-BAwu9VcJ.js.map +1 -0
  75. package/dist/cdn/editor.css +1 -1
  76. package/dist/cdn/editor.js +12 -11
  77. package/dist/cdn/editor.js.map +1 -1
  78. package/dist/{check-KooI2jyS.js → check-BsNM6BDs.js} +1 -1
  79. package/dist/{chevron-down-mnlFgueW.js → chevron-down-fcsZ5DU7.js} +1 -1
  80. package/dist/{circle-alert-D89_hB8j.js → circle-alert-BZTbwc-B.js} +1 -1
  81. package/dist/{clock-BaadyUrg.js → clock-B7iQRubC.js} +1 -1
  82. package/dist/{cloud-D-FScaHx.js → cloud-Dom4EH5Z.js} +1 -1
  83. package/dist/{createLucideIcon-D-6fpD2L.js → createLucideIcon-C_fetdGM.js} +3 -3
  84. package/dist/{dist-DaajG7Fo.js → dist-B4NkMBYc.js} +2 -2
  85. package/dist/{dist-b52vYHb5.js → dist-BLcYl_de.js} +2 -2
  86. package/dist/{dist-XA2i70J5.js → dist-BOHAk4zI.js} +2 -2
  87. package/dist/dist-BsB4nPJD.js +5 -0
  88. package/dist/{dist-Drp5bNAu.js → dist-ByBVNmRN.js} +2 -2
  89. package/dist/dist-CD3wbUoR.js +5 -0
  90. package/dist/{dist-CjULgTep.js → dist-Cwl7XXr4.js} +806 -601
  91. package/dist/{dist-zInT3Lf6.js → dist-Dem8ODLh.js} +2783 -2737
  92. package/dist/{dist-C1WcikEF.js → dist-Dhs3W2WW.js} +2 -2
  93. package/dist/{dist-sqf7pq5q.js → dist-XdF11ZkX.js} +2 -2
  94. package/dist/{dist-Dnqx5UF3.js → dist-c2sj5PQ5.js} +3 -3
  95. package/dist/{dist-cl33Ip6W.js → dist-cT52Hh9L.js} +3 -3
  96. package/dist/{dist-BttO3Zdx.js → dist-eVlXvuKI.js} +3 -3
  97. package/dist/extensions-B2lSGCA8.js +1720 -0
  98. package/dist/{image-up-DjwfAom6.js → image-up-1xrPPJYH.js} +1 -1
  99. package/dist/index.d.ts +29 -0
  100. package/dist/{info-Db3HlTr8.js → info-ByAFxArD.js} +1 -1
  101. package/dist/keys-DsRdOmg3.js +10 -0
  102. package/dist/{list-checks-BlAB0X8a.js → list-checks-CKUP4UZU.js} +1 -1
  103. package/dist/{loader-circle-EVqyIxjU.js → loader-circle-BuxX338d.js} +1 -1
  104. package/dist/{message-circle-BuI5pBVG.js → message-circle-nLwqegRi.js} +1 -1
  105. package/dist/{refresh-cw-C2vM_6zQ.js → refresh-cw-DAkD6iDI.js} +1 -1
  106. package/dist/{scan-line-AUIh_SHI.js → scan-line-DEELRJJ5.js} +1 -1
  107. package/dist/{send-nrbwF7xg.js → send-DCMgrNT4.js} +1 -1
  108. package/dist/{shield-check-B55Ozmva.js → shield-check-BFtVr_ov.js} +1 -1
  109. package/dist/{sparkles-oh1NUSFq.js → sparkles-CeYIQ5RJ.js} +1 -1
  110. package/dist/style.css +1 -1
  111. package/dist/{styles-DMh_bHK0.js → styles-D_ztiOsh.js} +770 -739
  112. package/dist/templatical-editor.js +7 -6
  113. package/dist/{text-align-start-B2MqzZwU.js → text-align-start-BsmIoqLS.js} +1 -1
  114. package/dist/{trash-2-DH8RBwAx.js → trash-2-C2S4-CIH.js} +1 -1
  115. package/dist/{triangle-alert-BQHjCt3B.js → triangle-alert-DMdedF6W.js} +1 -1
  116. package/dist/{useAliveFlag-B_b9ubwD.js → useAliveFlag-DlVvpZxc.js} +1 -1
  117. package/dist/{useCloudI18n-BHCrmQgj.js → useCloudI18n-BEuiZdzs.js} +2 -2
  118. package/dist/{useEditorCore-wBmdLj66.js → useEditorCore-tZGAVvNz.js} +655 -684
  119. package/dist/{useI18n-Bb9-ha9X.js → useI18n-DNspT6uw.js} +2 -2
  120. package/dist/{useMergeTag-HykzEtBn.js → useMergeTag-abutjUud.js} +2 -2
  121. package/dist/usePopoverRoot-DG3mlvd1.js +8 -0
  122. package/dist/{vue.runtime.esm-bundler-MzYCkFSH.js → vue.runtime.esm-bundler-mPytWZFh.js} +32 -25
  123. package/dist/{x-DgCCENgP.js → x-_9jw816B.js} +1 -1
  124. package/package.json +25 -25
  125. package/dist/cdn/chunks/CloudEditor-BCfQOcnm.js.map +0 -1
  126. package/dist/cdn/chunks/draggable-BTGr7_-X.js.map +0 -1
  127. package/dist/cdn/chunks/features-C3H2u-FV.js.map +0 -1
  128. package/dist/cdn/chunks/styles-CwetU6QM.js.map +0 -1
  129. package/dist/cdn/chunks/tiptap-P5abGB13.js.map +0 -1
  130. package/dist/dist-Df4eV6Zi.js +0 -5
  131. package/dist/dist-WJ1fVd5b.js +0 -5
  132. package/dist/extensions-DA-w1gVg.js +0 -806
  133. package/dist/keys-BjmL5YCT.js +0 -10
  134. package/dist/usePopoverRoot-BZDkRRry.js +0 -8
@@ -1,7 +1,7 @@
1
- import { $ as e, A as t, H as n, J as r, M as i, N as a, P as o, V as s, Z as c, _ as l, b as u, ct as d, f, g as p, h as m, it as h, j as g, l as _, m as v, n as y, ot as b, p as x, s as S, st as C, u as w, v as T, x as E, y as D, z as O } from "./draggable-BTGr7_-X.js";
2
- import { $t as k, A, At as j, Cn as M, Dt as N, E as P, Et as F, Ft as I, Hn as L, Ht as R, It as z, Nt as ee, Qt as B, Rt as te, S as V, Ut as H, Vt as U, Z as ne, _ as W, _t as G, an as K, b as re, c as ie, d as ae, en as oe, f as q, g as J, h as Y, kn as X, l as se, m as ce, mn as Z, p as le, pt as ue, rt as de, s as fe, st as pe, tt as Q, u as me, ut as he, v as ge, vt as _e, x as ve, y as ye } from "./features-C3H2u-FV.js";
3
- import { S as be, x as xe } from "./icons-DClusKFv.js";
4
- import { a as Se, c as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as ke, t as Ae, u as je } from "./styles-CwetU6QM.js";
1
+ import { $ as e, A as t, H as n, J as r, M as i, N as a, P as o, V as s, Z as c, _ as l, b as u, ct as d, f, g as p, h as m, it as h, j as g, l as _, m as v, n as y, ot as b, p as x, s as S, st as C, u as w, v as T, x as E, y as D, z as O } from "./draggable-iAb7QVJo.js";
2
+ import { A as k, An as A, At as j, Dt as M, E as N, Et as P, Ft as F, Ht as I, It as L, Nt as R, Qt as z, Rt as B, S as V, Un as H, Ut as U, Vt as W, Z as ee, _ as G, _t as K, b as q, c as te, d as ne, en as re, f as J, g as ie, h as Y, hn as X, l as Z, m as ae, on as oe, p as se, pt as ce, rt as le, s as ue, st as de, tn as fe, tt as Q, u as pe, ut as me, v as he, vt as ge, wn as _e, x as ve, y as ye } from "./features-DmUOSthI.js";
3
+ import { S as be, x as xe } from "./icons-DguD4x_X.js";
4
+ import { a as Se, c as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as ke, t as Ae, u as je } from "./styles-CfqCvq0Z.js";
5
5
  import { d as $ } from "./styleConstants-lGobwiLH.js";
6
6
  //#region src/cloud/composables/useSnapshotPreview.ts
7
7
  function Me(t) {
@@ -11,7 +11,7 @@ function Me(t) {
11
11
  });
12
12
  let h = f(() => d.value !== null), g = f(() => u.value?.snapshots.value ?? []), _ = f(() => u.value?.isLoading.value ?? !1), v = f(() => u.value?.isRestoring.value ?? !1);
13
13
  function y() {
14
- i.state.template?.id && !u.value && (u.value = q({
14
+ i.state.template?.id && !u.value && (u.value = J({
15
15
  authManager: n,
16
16
  templateId: i.state.template.id,
17
17
  onRestore: b,
@@ -86,7 +86,7 @@ function Ne() {
86
86
  function g(t) {
87
87
  l.value = !1, e.value = e.value === t ? null : t;
88
88
  }
89
- return K(u, () => {
89
+ return oe(u, () => {
90
90
  l.value = !1;
91
91
  }), {
92
92
  activePanel: e,
@@ -109,9 +109,9 @@ function Ne() {
109
109
  //#endregion
110
110
  //#region src/cloud/composables/useCollabUndoWarning.ts
111
111
  function Pe(e) {
112
- let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = c(!1), a = c(!1), { start: o } = Z(() => {
112
+ let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = c(!1), a = c(!1), { start: o } = X(() => {
113
113
  a.value = !1;
114
- }, L, { immediate: !1 });
114
+ }, H, { immediate: !1 });
115
115
  function s() {
116
116
  i.value || !t.value || n() === 0 || !r.value || (i.value = !0, a.value = !0, o());
117
117
  }
@@ -123,7 +123,7 @@ function Pe(e) {
123
123
  //#endregion
124
124
  //#region src/cloud/composables/useCloudFeatureFlags.ts
125
125
  function Fe(e) {
126
- let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = f(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = f(() => t.hasFeature("test_email")), o = f(() => !!r.state.template?.id), s = f(() => t.hasFeature("white_label")), l = f(() => t.config.value?.limits.max_templates ?? null), u = f(() => t.config.value?.template_count ?? 0), d = c(!1), p = c("idle"), m = c(""), { start: h } = Z(() => {
126
+ let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = f(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = f(() => t.hasFeature("test_email")), o = f(() => !!r.state.template?.id), s = f(() => t.hasFeature("white_label")), l = f(() => t.config.value?.limits.max_templates ?? null), u = f(() => t.config.value?.template_count ?? 0), d = c(!1), p = c("idle"), m = c(""), { start: h } = X(() => {
127
127
  p.value = "idle";
128
128
  }, 3e3, { immediate: !1 });
129
129
  return {
@@ -177,10 +177,10 @@ function Ie(e) {
177
177
  //#endregion
178
178
  //#region src/cloud/composables/useCloudInitialization.ts
179
179
  function Le(e) {
180
- let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: o } = e, s = c(!0), l = c(!1), u = c(null), d = !1, p = { value: null }, m = null, h = null, g = new P({
180
+ let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: o } = e, s = c(!0), l = c(!1), u = c(null), d = !1, p = { value: null }, m = null, h = null, g = new N({
181
181
  ...t.auth,
182
182
  onError: t.onError
183
- }), _ = se({
183
+ }), _ = Z({
184
184
  authManager: g,
185
185
  onError: t.onError
186
186
  }), v = c(/* @__PURE__ */ new Map()), y = ve({
@@ -189,17 +189,17 @@ function Le(e) {
189
189
  templateDefaults: t.templateDefaults,
190
190
  onError: t.onError,
191
191
  lockedBlocks: v
192
- }), b = ce({
192
+ }), b = ae({
193
193
  authManager: g,
194
194
  onError: t.onError
195
195
  });
196
- t.mcp?.enabled && fe({
196
+ t.mcp?.enabled && ue({
197
197
  editor: y,
198
198
  channel: b.channel,
199
199
  onOperation: t.mcp.onOperation
200
200
  });
201
201
  let x = null;
202
- t.collaboration?.enabled && (x = J({
202
+ t.collaboration?.enabled && (x = ie({
203
203
  authManager: g,
204
204
  editor: y,
205
205
  channel: b.channel,
@@ -211,13 +211,14 @@ function Le(e) {
211
211
  }), O(() => x.lockedBlocks.value, (e) => {
212
212
  v.value = e;
213
213
  }, { immediate: !0 }), Y(y, x));
214
- let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C = A({
214
+ let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C = k({
215
215
  editor: y,
216
216
  config: {
217
217
  uiTheme: t.uiTheme,
218
218
  theme: void 0,
219
219
  blockDefaults: t.blockDefaults,
220
220
  customBlocks: [],
221
+ paletteBlocks: t.paletteBlocks,
221
222
  mergeTags: t.mergeTags,
222
223
  displayConditions: t.displayConditions,
223
224
  onRequestMedia: null,
@@ -257,32 +258,32 @@ function Le(e) {
257
258
  onError: t.onError
258
259
  });
259
260
  m = T;
260
- let E = Ne(), D = re(t.ai), j = Fe({
261
+ let E = Ne(), D = q(t.ai), A = Fe({
261
262
  planConfigInstance: _,
262
263
  aiConfig: D,
263
264
  editor: y
264
- }), M = Ie({
265
+ }), j = Ie({
265
266
  onRequestMedia: t.onRequestMedia,
266
267
  mediaLibraryOpen: E.mediaLibraryOpen,
267
268
  mediaLibraryAccept: E.mediaLibraryAccept
268
269
  });
269
- ne({
270
+ ee({
270
271
  onBlockMove: y.moveBlock,
271
272
  onBlockAdd: y.addBlock
272
273
  });
273
- let N = me({
274
+ let M = pe({
274
275
  authManager: g,
275
276
  getFontsConfig: () => t.fonts,
276
277
  canUseCustomFonts: () => _.hasFeature("custom_fonts")
277
- }), F = ae({
278
+ }), P = ne({
278
279
  authManager: g,
279
280
  getTemplateId: () => y.state.template?.id ?? null,
280
281
  save: () => y.save(),
281
- exportHtml: (e) => N.exportHtml(e),
282
+ exportHtml: (e) => M.exportHtml(e),
282
283
  onError: t.onError,
283
284
  isAuthReady: l,
284
285
  onBeforeTestEmail: t.onBeforeTestEmail
285
- }), I = ge({
286
+ }), F = he({
286
287
  authManager: g,
287
288
  getTemplateId: () => y.state.template?.id ?? null,
288
289
  getSocketId: () => b.getSocketId(),
@@ -291,56 +292,56 @@ function Le(e) {
291
292
  isAuthReady: l,
292
293
  hasCommentingFeature: () => t.commenting !== !1 && _.hasFeature("commenting")
293
294
  });
294
- W({
295
- comments: I,
295
+ G({
296
+ comments: F,
296
297
  channel: b.channel
297
298
  });
298
- let L = le({
299
+ let I = se({
299
300
  authManager: g,
300
301
  onError: t.onError
301
- }), R = c(!1), V = c(null), G = c(!1), K = ye({
302
+ }), V = c(!1), H = c(null), K = c(!1), J = ye({
302
303
  authManager: g,
303
304
  getTemplateId: () => y.state.template?.id ?? null
304
305
  });
305
- function q(e) {
306
+ function X(e) {
306
307
  E.commentsOpen.value = !0, queueMicrotask(() => {
307
308
  o()?.filterByBlock(e);
308
309
  });
309
310
  }
310
- a(B, M.handleRequestMedia), a(te, g), a(z, D), a(H, I), a(k, L), a(oe, K), a(U, {
311
+ a(z, j.handleRequestMedia), a(B, g), a(L, D), a(U, F), a(re, I), a(fe, J), a(W, {
311
312
  plan: _,
312
313
  ai: D,
313
314
  comments: {
314
- getBlockCount: (e) => I.commentCountByBlock.value.get(e) ?? 0,
315
- openForBlock: q
315
+ getBlockCount: (e) => F.commentCountByBlock.value.get(e) ?? 0,
316
+ openForBlock: X
316
317
  },
317
318
  savedModules: {
318
319
  openSaveDialog: (e) => {
319
- V.value = e ?? null, R.value = !0;
320
+ H.value = e ?? null, V.value = !0;
320
321
  },
321
322
  openBrowser: () => {
322
- G.value = !0;
323
+ K.value = !0;
323
324
  },
324
- moduleCount: f(() => L.modules.value.length)
325
+ moduleCount: f(() => I.modules.value.length)
325
326
  }
326
327
  });
327
- function X(e) {
328
+ function oe(e) {
328
329
  _.hasFeature("theme_customization") && (C.themeOverrides.value = e);
329
330
  }
330
- function Z(e) {
331
+ function ce(e) {
331
332
  y.setUiTheme(e);
332
333
  }
333
- async function ue() {
334
+ async function le() {
334
335
  s.value = !0, u.value = null;
335
336
  try {
336
337
  if (await g.initialize(), d) return;
337
338
  l.value = !0;
338
- let e = await ie({ authManager: g });
339
+ let e = await te({ authManager: g });
339
340
  if (d) return;
340
341
  if (!e.api.ok) throw Error("Health check failed: API is not reachable");
341
342
  if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
342
- if (e.websocket.ok || ee.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), d) return;
343
- r.setCustomFontsEnabled(_.hasFeature("custom_fonts")), t.customBlocks?.length && _.hasFeature("custom_blocks") && C.registerCustomBlocks(t.customBlocks), t.theme && _.hasFeature("theme_customization") && (C.themeOverrides.value = t.theme), t.modules !== !1 && _.hasFeature("saved_modules") && L.loadModules(), i("ready");
343
+ if (e.websocket.ok || R.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), d) return;
344
+ r.setCustomFontsEnabled(_.hasFeature("custom_fonts")), t.customBlocks?.length && _.hasFeature("custom_blocks") && C.registerCustomBlocks(t.customBlocks), t.theme && _.hasFeature("theme_customization") && (C.themeOverrides.value = t.theme), t.modules !== !1 && _.hasFeature("saved_modules") && I.loadModules(), i("ready");
344
345
  } catch (e) {
345
346
  if (d) return;
346
347
  let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
@@ -365,32 +366,32 @@ function Le(e) {
365
366
  editor: y,
366
367
  core: C,
367
368
  aiConfig: D,
368
- featureFlags: j,
369
- mediaLib: M,
370
- exporter: N,
371
- testEmail: F,
372
- commentsInstance: I,
373
- savedModulesHeadless: L,
374
- scoringInstance: K,
369
+ featureFlags: A,
370
+ mediaLib: j,
371
+ exporter: M,
372
+ testEmail: P,
373
+ commentsInstance: F,
374
+ savedModulesHeadless: I,
375
+ scoringInstance: J,
375
376
  panelState: E,
376
377
  snapshotPreview: T,
377
378
  collabWarning: w,
378
- showSaveModuleDialog: R,
379
- showModuleBrowserModal: G,
380
- saveModulePreSelectedBlockId: V,
379
+ showSaveModuleDialog: V,
380
+ showModuleBrowserModal: K,
381
+ saveModulePreSelectedBlockId: H,
381
382
  onSaveHook: p,
382
- initialize: ue,
383
+ initialize: le,
383
384
  destroy: de,
384
- setThemeOverrides: X,
385
- setUiTheme: Z,
386
- openCommentsForBlock: q
385
+ setThemeOverrides: oe,
386
+ setUiTheme: ce,
387
+ openCommentsForBlock: X
387
388
  };
388
389
  }
389
390
  //#endregion
390
391
  //#region src/utils/preRenderCustomBlocks.ts
391
392
  async function Re(e, t) {
392
393
  let n = async (e) => {
393
- if (X(e)) {
394
+ if (A(e)) {
394
395
  let n = e;
395
396
  try {
396
397
  n.renderedHtml = await t.renderCustomBlock(n);
@@ -496,7 +497,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
496
497
  class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
497
498
  onClick: a[2] ||= _((e) => n("cancel"), ["self"])
498
499
  }, [x("div", He, [
499
- x("header", Ue, [D(h(pe), {
500
+ x("header", Ue, [D(h(de), {
500
501
  size: 18,
501
502
  "stroke-width": 2,
502
503
  class: "tpl:text-[var(--tpl-warning)]"
@@ -563,7 +564,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
563
564
  },
564
565
  emits: ["save"],
565
566
  setup(e) {
566
- let t = u(() => import("./CollaboratorBar-yz1eW4cW.js")), n = u(() => import("./features-C3H2u-FV.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-DwZWx_da.js")), { t: a, format: o } = Q();
567
+ let t = u(() => import("./CollaboratorBar-BfoGJhns.js")), n = u(() => import("./features-DmUOSthI.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-Dm9CL3u0.js")), { t: a, format: o } = Q();
567
568
  return (c, l) => (i(), p("header", Ze, [
568
569
  x("div", Qe, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", $e, d(h(o)(h(a).header.templatesUsed, {
569
570
  used: e.featureFlags.templateCount.value,
@@ -608,7 +609,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
608
609
  "aria-live": "assertive",
609
610
  class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
610
611
  "data-tooltip": e.featureFlags.saveErrorMessage.value
611
- }, [D(h(N), {
612
+ }, [D(h(M), {
612
613
  size: 12,
613
614
  "stroke-width": 2.5
614
615
  }), T(" " + d(h(a).header.saveFailed), 1)], 8, nt)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", rt, [D(h(j), {
@@ -627,7 +628,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
627
628
  }),
628
629
  onClick: l[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
629
630
  }, [
630
- D(h(G), {
631
+ D(h(K), {
631
632
  size: 16,
632
633
  "stroke-width": 2
633
634
  }),
@@ -642,7 +643,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
642
643
  "aria-expanded": e.panelState.aiMenuOpen.value,
643
644
  class: b(["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"]),
644
645
  onClick: l[1] ||= _((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
645
- }, [D(h(he), {
646
+ }, [D(h(me), {
646
647
  size: 16,
647
648
  "stroke-width": 2,
648
649
  class: "tpl-ai-btn-icon"
@@ -670,12 +671,12 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
670
671
  },
671
672
  disabled: e.testEmail.isSending.value || !e.featureFlags.hasTemplateSaved.value,
672
673
  onClick: l[2] ||= (t) => e.panelState.testEmailModalOpen.value = !0
673
- }, [e.testEmail.isSending.value ? (i(), v(h(_e), {
674
+ }, [e.testEmail.isSending.value ? (i(), v(h(ge), {
674
675
  key: 1,
675
676
  class: "tpl-spinner",
676
677
  size: 16,
677
678
  "stroke-width": 2
678
- })) : (i(), v(h(ue), {
679
+ })) : (i(), v(h(ce), {
679
680
  key: 0,
680
681
  size: 16,
681
682
  "stroke-width": 2
@@ -689,7 +690,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
689
690
  },
690
691
  disabled: e.isSaveDisabled,
691
692
  onClick: l[3] ||= (e) => c.$emit("save")
692
- }, [e.isSaving ? (i(), v(h(_e), {
693
+ }, [e.isSaving ? (i(), v(h(ge), {
693
694
  key: 1,
694
695
  class: "tpl-spinner",
695
696
  size: 16,
@@ -725,9 +726,9 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
725
726
  "module-insert"
726
727
  ],
727
728
  setup(e, { expose: t, emit: n }) {
728
- let r = u(() => import("./features-C3H2u-FV.js").then((e) => e.o)), a = u(() => import("./features-C3H2u-FV.js").then((e) => e.a)), o = u(() => import("./features-C3H2u-FV.js").then((e) => e.i)), s = u(() => import("./features-C3H2u-FV.js").then((e) => e.n)), l = u(() => import("./features-C3H2u-FV.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-Da8g2aeD.js")), f = u(() => import("./ModuleBrowserModal-CFpBtFiA.js")), g = u(async () => {
729
+ let r = u(() => import("./features-DmUOSthI.js").then((e) => e.o)), a = u(() => import("./features-DmUOSthI.js").then((e) => e.a)), o = u(() => import("./features-DmUOSthI.js").then((e) => e.i)), s = u(() => import("./features-DmUOSthI.js").then((e) => e.n)), l = u(() => import("./features-DmUOSthI.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-CPu5e2VG.js")), f = u(() => import("./ModuleBrowserModal-Dj7gRT4Q.js")), g = u(async () => {
729
730
  try {
730
- return (await import("./src-C2v-Zix_.js")).MediaLibraryModal;
731
+ return (await import("./src-C-GlM149.js")).MediaLibraryModal;
731
732
  } catch {
732
733
  throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
733
734
  }
@@ -839,7 +840,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
839
840
  return "isNotFound" in e && !!e.isNotFound;
840
841
  }
841
842
  return (t, s) => e.visible && e.error ? (i(), p("div", _t, [
842
- x("div", vt, [D(h(N), {
843
+ x("div", vt, [D(h(M), {
843
844
  size: 32,
844
845
  "stroke-width": 1.5,
845
846
  class: "tpl:text-[var(--tpl-danger)]"
@@ -861,7 +862,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
861
862
  emits: ["cancel", "confirm"],
862
863
  setup(e, { emit: t }) {
863
864
  let n = t, { t: r } = Q();
864
- return (t, a) => e.visible ? (i(), p("div", Ct, [x("div", wt, [D(h(F), {
865
+ return (t, a) => e.visible ? (i(), p("div", Ct, [x("div", wt, [D(h(P), {
865
866
  size: 18,
866
867
  "stroke-width": 2,
867
868
  class: "tpl:text-[var(--tpl-primary)]"
@@ -888,10 +889,10 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
888
889
  __name: "CollabUndoToast",
889
890
  props: { visible: { type: Boolean } },
890
891
  setup(e) {
891
- let { t } = I();
892
+ let { t } = F();
892
893
  return (n, r) => e.visible ? (i(), p("div", Dt, d(h(t).history.collabWarning), 1)) : m("", !0);
893
894
  }
894
- }), kt = ["data-tpl-theme"], At = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, jt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Mt = ["aria-label"], Nt = /*#__PURE__*/ de(/* @__PURE__ */ E({
895
+ }), kt = ["data-tpl-theme"], At = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, jt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Mt = ["aria-label"], Nt = /*#__PURE__*/ le(/* @__PURE__ */ E({
895
896
  __name: "CloudEditor",
896
897
  props: {
897
898
  config: {},
@@ -903,7 +904,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
903
904
  emits: ["ready"],
904
905
  setup(e, { expose: r, emit: o }) {
905
906
  let l = e;
906
- a(R, l.cloudTranslations);
907
+ a(I, l.cloudTranslations);
907
908
  let u = o, f = c(null), _ = c(null), w = Le({
908
909
  config: l.config,
909
910
  translations: l.translations,
@@ -912,60 +913,60 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
912
913
  getCommentsSidebar: () => f.value ? { filterByBlock: f.value.filterCommentsByBlock } : null,
913
914
  editorRoot: l.shadowRoot,
914
915
  containerEl: _
915
- }), { isInitializing: E, isAuthReady: O, initError: k, planConfigInstance: A, websocket: j, collaboration: N, isCollaborationEnabled: P, editor: F, core: I, featureFlags: L, mediaLib: z, exporter: ee, testEmail: B, commentsInstance: te, savedModulesHeadless: V, panelState: H, snapshotPreview: U, collabWarning: ne, showSaveModuleDialog: W, showModuleBrowserModal: G, saveModulePreSelectedBlockId: K, setThemeOverrides: re, setUiTheme: ie } = w;
916
- async function ae(e) {
916
+ }), { isInitializing: E, isAuthReady: O, initError: k, planConfigInstance: A, websocket: j, collaboration: M, isCollaborationEnabled: N, editor: P, core: F, featureFlags: L, mediaLib: R, exporter: z, testEmail: B, commentsInstance: V, savedModulesHeadless: H, panelState: U, snapshotPreview: W, collabWarning: ee, showSaveModuleDialog: G, showModuleBrowserModal: K, saveModulePreSelectedBlockId: q, setThemeOverrides: te, setUiTheme: ne } = w;
917
+ async function re(e) {
917
918
  try {
918
- await B.sendTestEmail(e), H.testEmailModalOpen.value = !1;
919
+ await B.sendTestEmail(e), U.testEmailModalOpen.value = !1;
919
920
  } catch {}
920
921
  }
921
- async function oe() {
922
+ async function J() {
922
923
  try {
923
- await U.confirmRestoreSnapshot();
924
+ await W.confirmRestoreSnapshot();
924
925
  } catch {}
925
926
  }
926
- function q(e, t) {
927
+ function ie(e, t) {
927
928
  for (let n = 0; n < e.content.length; n++) {
928
- let r = M(e.content[n]), i = t === void 0 ? void 0 : t + n;
929
- F.addBlock(r, void 0, void 0, i);
929
+ let r = _e(e.content[n]), i = t === void 0 ? void 0 : t + n;
930
+ P.addBlock(r, void 0, void 0, i);
930
931
  }
931
- G.value = !1;
932
+ K.value = !1;
932
933
  }
933
- let J = ze({
934
+ let Y = ze({
934
935
  config: l.config,
935
- editor: F,
936
+ editor: P,
936
937
  websocket: j,
937
938
  planConfigInstance: A,
938
- snapshotPreview: U,
939
- core: I,
940
- exporter: ee,
939
+ snapshotPreview: W,
940
+ core: F,
941
+ exporter: z,
941
942
  featureFlags: L,
942
943
  isDestroyed: w.isDestroyed
943
- }), Y = Be({
944
- issues: I.templateLint ? I.templateLint.issues : c([]),
944
+ }), X = Be({
945
+ issues: F.templateLint ? F.templateLint.issues : c([]),
945
946
  planConfig: A.config
946
947
  });
947
- async function X() {
948
- await Y.tryRunSave(() => J.saveTemplate().catch((e) => l.config.onError?.(e)));
948
+ async function Z() {
949
+ await X.tryRunSave(() => Y.saveTemplate().catch((e) => l.config.onError?.(e)));
949
950
  }
950
- return w.onSaveHook.value = X, t(() => {
951
+ return w.onSaveHook.value = Z, t(() => {
951
952
  w.initialize();
952
953
  }), g(() => {
953
954
  w.destroy();
954
955
  }), r({
955
- getContent: () => F.content.value,
956
- setContent: (e) => F.setContent(e),
957
- setTheme: ie,
958
- setThemeOverrides: re,
959
- create: J.createTemplate,
960
- load: J.loadTemplate,
961
- save: J.saveTemplate,
956
+ getContent: () => P.content.value,
957
+ setContent: (e) => P.setContent(e),
958
+ setTheme: ne,
959
+ setThemeOverrides: te,
960
+ create: Y.createTemplate,
961
+ load: Y.loadTemplate,
962
+ save: Y.saveTemplate,
962
963
  sendTestEmail: B.sendTestEmail
963
964
  }), (t, r) => (i(), p("div", {
964
965
  ref_key: "rootEl",
965
966
  ref: _,
966
- class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(F).state.darkMode }]),
967
- "data-tpl-theme": h(I).resolvedTheme.value,
968
- style: C(h(I).themeStyles.value)
967
+ class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(P).state.darkMode }]),
968
+ "data-tpl-theme": h(F).resolvedTheme.value,
969
+ style: C(h(F).themeStyles.value)
969
970
  }, [
970
971
  D(Ce),
971
972
  D(y, {
@@ -976,7 +977,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
976
977
  "leave-from-class": "tpl:opacity-100",
977
978
  "leave-to-class": "tpl:opacity-0"
978
979
  }, {
979
- default: s(() => [D(gt, { visible: h(E) || h(F).state.isLoading }, null, 8, ["visible"])]),
980
+ default: s(() => [D(gt, { visible: h(E) || h(P).state.isLoading }, null, 8, ["visible"])]),
980
981
  _: 1
981
982
  }),
982
983
  D(y, {
@@ -999,19 +1000,19 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
999
1000
  _: 1
1000
1001
  }),
1001
1002
  D(dt, {
1002
- editor: h(F),
1003
- core: h(I),
1003
+ editor: h(P),
1004
+ core: h(F),
1004
1005
  "feature-flags": h(L),
1005
- "panel-state": h(H),
1006
- "snapshot-preview": h(U),
1007
- "comments-instance": h(te),
1006
+ "panel-state": h(U),
1007
+ "snapshot-preview": h(W),
1008
+ "comments-instance": h(V),
1008
1009
  "test-email": h(B),
1009
1010
  websocket: h(j),
1010
- collaboration: h(N),
1011
- "is-collaboration-enabled": h(P),
1012
- "is-saving": h(F).state.isSaving || h(L).isSaveExporting.value,
1013
- "is-save-disabled": h(F).state.isSaving || h(L).isSaveExporting.value || !h(F).state.isDirty,
1014
- onSave: X
1011
+ collaboration: h(M),
1012
+ "is-collaboration-enabled": h(N),
1013
+ "is-saving": h(P).state.isSaving || h(L).isSaveExporting.value,
1014
+ "is-save-disabled": h(P).state.isSaving || h(L).isSaveExporting.value || !h(P).state.isDirty,
1015
+ onSave: Z
1015
1016
  }, null, 8, [
1016
1017
  "editor",
1017
1018
  "core",
@@ -1027,10 +1028,10 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1027
1028
  "is-save-disabled"
1028
1029
  ]),
1029
1030
  D(Xe, {
1030
- open: h(Y).modalOpen.value,
1031
- issues: h(Y).blockingIssues.value,
1032
- onCancel: h(Y).cancel,
1033
- onConfirm: h(Y).confirmAndSave
1031
+ open: h(X).modalOpen.value,
1032
+ issues: h(X).blockingIssues.value,
1033
+ onCancel: h(X).cancel,
1034
+ onConfirm: h(X).confirmAndSave
1034
1035
  }, null, 8, [
1035
1036
  "open",
1036
1037
  "issues",
@@ -1038,9 +1039,9 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1038
1039
  "onConfirm"
1039
1040
  ]),
1040
1041
  D(Et, {
1041
- visible: h(U).isPreviewingSnapshot.value,
1042
- onCancel: h(U).cancelPreview,
1043
- onConfirm: oe
1042
+ visible: h(W).isPreviewingSnapshot.value,
1043
+ onCancel: h(W).cancelPreview,
1044
+ onConfirm: J
1044
1045
  }, null, 8, ["visible", "onCancel"]),
1045
1046
  D(y, {
1046
1047
  "enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
@@ -1050,18 +1051,18 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1050
1051
  "leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
1051
1052
  "leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
1052
1053
  }, {
1053
- default: s(() => [D(Ot, { visible: h(ne).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1054
+ default: s(() => [D(Ot, { visible: h(ee).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1054
1055
  _: 1
1055
1056
  }),
1056
- n(D(ke, null, null, 512), [[S, !h(F).state.previewMode]]),
1057
+ n(D(ke, null, null, 512), [[S, !h(P).state.previewMode]]),
1057
1058
  x("div", {
1058
- class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(F).state.previewMode ? "tpl:left-0 tpl:right-0" : h(H).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", h(U).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1059
+ class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(P).state.previewMode ? "tpl:left-0 tpl:right-0" : h(U).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", h(W).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1059
1060
  style: {
1060
1061
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
1061
1062
  "background-color": "var(--tpl-canvas-bg)"
1062
1063
  }
1063
1064
  }, [x("div", At, [D(y, { name: "tpl-restore-btn" }, {
1064
- default: s(() => [h(I).conditionPreview.hasHiddenBlocks.value ? (i(), p("button", {
1065
+ default: s(() => [h(F).conditionPreview.hasHiddenBlocks.value ? (i(), p("button", {
1065
1066
  key: 0,
1066
1067
  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",
1067
1068
  style: {
@@ -1070,22 +1071,22 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1070
1071
  "border-color": "var(--tpl-warning)",
1071
1072
  "backdrop-filter": "blur(8px)"
1072
1073
  },
1073
- onClick: r[0] ||= (e) => h(I).conditionPreview.reset()
1074
+ onClick: r[0] ||= (e) => h(F).conditionPreview.reset()
1074
1075
  }, [D(h(be), {
1075
1076
  size: 13,
1076
1077
  "stroke-width": 2
1077
- }), T(" " + d(h(I).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
1078
+ }), T(" " + d(h(F).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
1078
1079
  _: 1
1079
1080
  })]), x("main", jt, [D(Te, {
1080
- viewport: h(F).state.viewport,
1081
- content: h(F).content.value,
1082
- "selected-block-id": h(F).state.selectedBlockId,
1083
- "dark-mode": h(F).state.darkMode,
1084
- "preview-mode": h(F).state.previewMode,
1085
- "locked-blocks": h(N)?.lockedBlocks.value ?? void 0,
1086
- onSelectBlock: h(F).selectBlock,
1087
- onOpenAiChat: r[1] ||= (e) => h(H).aiChatOpen.value = !0,
1088
- onOpenDesignReference: r[2] ||= (e) => h(H).designReferenceOpen.value = !0
1081
+ viewport: h(P).state.viewport,
1082
+ content: h(P).content.value,
1083
+ "selected-block-id": h(P).state.selectedBlockId,
1084
+ "dark-mode": h(P).state.darkMode,
1085
+ "preview-mode": h(P).state.previewMode,
1086
+ "locked-blocks": h(M)?.lockedBlocks.value ?? void 0,
1087
+ onSelectBlock: h(P).selectBlock,
1088
+ onOpenAiChat: r[1] ||= (e) => h(U).aiChatOpen.value = !0,
1089
+ onOpenDesignReference: r[2] ||= (e) => h(U).designReferenceOpen.value = !0
1089
1090
  }, null, 8, [
1090
1091
  "viewport",
1091
1092
  "content",
@@ -1097,49 +1098,49 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1097
1098
  ])])], 2),
1098
1099
  e.config.branding !== !1 && !h(L).isWhiteLabeled.value ? (i(), v(Ee, {
1099
1100
  key: 0,
1100
- "position-class": [h(F).state.previewMode ? "tpl:left-0 tpl:right-0" : h(H).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1101
+ "position-class": [h(P).state.previewMode ? "tpl:left-0 tpl:right-0" : h(U).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1101
1102
  }, null, 8, ["position-class"])) : m("", !0),
1102
1103
  x("div", {
1103
1104
  class: "tpl-sr-only",
1104
1105
  role: "status",
1105
1106
  "aria-live": "polite",
1106
1107
  "aria-atomic": "true",
1107
- "aria-label": h(I).t.landmarks.reorderAnnouncements
1108
- }, d(h(I).keyboardReorder.announcement.value), 9, Mt),
1108
+ "aria-label": h(F).t.landmarks.reorderAnnouncements
1109
+ }, d(h(F).keyboardReorder.announcement.value), 9, Mt),
1109
1110
  n(D(De, {
1110
- "selected-block": h(F).selectedBlock.value,
1111
- settings: h(F).content.value.settings,
1112
- "shifted-left": h(H).rightPanelOpen.value,
1113
- onUpdateBlock: r[3] ||= (e) => h(F).updateBlock(h(F).selectedBlock.value.id, e),
1114
- onDeleteBlock: r[4] ||= (e) => h(I).blockActions.deleteBlock(h(F).selectedBlock.value.id),
1115
- onDuplicateBlock: r[5] ||= (e) => h(I).blockActions.duplicateBlock(h(F).selectedBlock.value),
1116
- onUpdateSettings: h(F).updateSettings
1111
+ "selected-block": h(P).selectedBlock.value,
1112
+ settings: h(P).content.value.settings,
1113
+ "shifted-left": h(U).rightPanelOpen.value,
1114
+ onUpdateBlock: r[3] ||= (e) => h(P).updateBlock(h(P).selectedBlock.value.id, e),
1115
+ onDeleteBlock: r[4] ||= (e) => h(F).blockActions.deleteBlock(h(P).selectedBlock.value.id),
1116
+ onDuplicateBlock: r[5] ||= (e) => h(F).blockActions.duplicateBlock(h(P).selectedBlock.value),
1117
+ onUpdateSettings: h(P).updateSettings
1117
1118
  }, null, 8, [
1118
1119
  "selected-block",
1119
1120
  "settings",
1120
1121
  "shifted-left",
1121
1122
  "onUpdateSettings"
1122
- ]), [[S, !h(F).state.previewMode]]),
1123
+ ]), [[S, !h(P).state.previewMode]]),
1123
1124
  !h(E) && h(O) ? (i(), v(ft, {
1124
1125
  key: 1,
1125
1126
  ref_key: "cloudPanelsRef",
1126
1127
  ref: f,
1127
1128
  config: l.config,
1128
- editor: h(F),
1129
- core: h(I),
1130
- "panel-state": h(H),
1129
+ editor: h(P),
1130
+ core: h(F),
1131
+ "panel-state": h(U),
1131
1132
  "plan-config-instance": h(A),
1132
1133
  "test-email": h(B),
1133
- "media-lib": h(z),
1134
- "saved-modules-headless": h(V),
1135
- "show-save-module-dialog": h(W),
1136
- "save-module-pre-selected-block-id": h(K),
1137
- "show-module-browser-modal": h(G),
1138
- "onUpdate:showSaveModuleDialog": r[6] ||= (e) => W.value = e,
1139
- "onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) => K.value = e,
1140
- "onUpdate:showModuleBrowserModal": r[8] ||= (e) => G.value = e,
1141
- onSendTestEmail: ae,
1142
- onModuleInsert: q
1134
+ "media-lib": h(R),
1135
+ "saved-modules-headless": h(H),
1136
+ "show-save-module-dialog": h(G),
1137
+ "save-module-pre-selected-block-id": h(q),
1138
+ "show-module-browser-modal": h(K),
1139
+ "onUpdate:showSaveModuleDialog": r[6] ||= (e) => G.value = e,
1140
+ "onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) => q.value = e,
1141
+ "onUpdate:showModuleBrowserModal": r[8] ||= (e) => K.value = e,
1142
+ onSendTestEmail: re,
1143
+ onModuleInsert: ie
1143
1144
  }, null, 8, [
1144
1145
  "config",
1145
1146
  "editor",
@@ -1154,7 +1155,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1154
1155
  "show-module-browser-modal"
1155
1156
  ])) : m("", !0),
1156
1157
  x("div", {
1157
- ref: (e) => h(I).popoverRoot.value = e,
1158
+ ref: (e) => h(F).popoverRoot.value = e,
1158
1159
  class: "tpl-popover-root"
1159
1160
  }, null, 512),
1160
1161
  D(Ae)
@@ -1164,4 +1165,4 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1164
1165
  //#endregion
1165
1166
  export { Nt as default };
1166
1167
 
1167
- //# sourceMappingURL=CloudEditor-BCfQOcnm.js.map
1168
+ //# sourceMappingURL=CloudEditor-XSmLmdgp.js.map