@templatical/editor 0.10.0 → 0.10.2

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 (138) hide show
  1. package/dist/{AiChatSidebar-D30WPhbv.js → AiChatSidebar-BMwpZx-6.js} +14 -14
  2. package/dist/{AiFeatureMenu-B5CJX5zr.js → AiFeatureMenu-xgaIGUCo.js} +8 -8
  3. package/dist/{BlockIssueBadge-CkB4Yyz2.js → BlockIssueBadge-3kNs6WoD.js} +5 -5
  4. package/dist/{CloudEditor-nT-R769W.js → CloudEditor-Dm9hiaui.js} +159 -156
  5. package/dist/{CollaboratorBar-CwhlXODK.js → CollaboratorBar-Cz_evoU4.js} +4 -4
  6. package/dist/{CommentsSidebar-gpZMMI5w.js → CommentsSidebar-jFZj_CTo.js} +13 -13
  7. package/dist/{CountdownBlock-BNvuXucv.js → CountdownBlock-S-SCyVye.js} +4 -4
  8. package/dist/{CountdownToolbar-Dl82DAmI.js → CountdownToolbar-Ckdo-3P-.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-Bs5AMxVd.js → DesignReferenceSidebar-B9QNPZNV.js} +10 -10
  10. package/dist/{IssuesPanel-CqQa2BtU.js → IssuesPanel-_E_fbSM8.js} +8 -8
  11. package/dist/{LoadingTrack-xCOLUR3o.js → LoadingTrack-BZ5KJyZ_.js} +2 -2
  12. package/dist/{ModuleBrowserModal-BWWgF0LC.js → ModuleBrowserModal-BB22urqi.js} +10 -10
  13. package/dist/{ModulePreviewCanvas-D7Tk5HOt.js → ModulePreviewCanvas-CH5OdXv8.js} +3 -3
  14. package/dist/{NumberWithSuffix-DVy5HxMi.js → NumberWithSuffix-BHDXHMpo.js} +3 -3
  15. package/dist/{ParagraphEditor-DVSGdMOo.js → ParagraphEditor-BmY7LLgN.js} +26 -26
  16. package/dist/{RichTextEditorContent-DN-fRjMa.js → RichTextEditorContent-COijbaWp.js} +8 -8
  17. package/dist/{SaveModuleDialog-CkEYkyVD.js → SaveModuleDialog-D5WN-je_.js} +7 -7
  18. package/dist/{SnapshotHistory-Nx9wrlbF.js → SnapshotHistory-BQ55Rhri.js} +9 -9
  19. package/dist/{TemplateScoringPanel-BG9M-29t.js → TemplateScoringPanel-Dhf_Qgr7.js} +15 -15
  20. package/dist/{TestEmailModal-CRjtEs6S.js → TestEmailModal-DH_Viz_m.js} +5 -5
  21. package/dist/{TitleEditor-CvtV4pCA.js → TitleEditor-Dn613K8o.js} +12 -12
  22. package/dist/{TplModal-BudEYVcJ.js → TplModal-Dxa3rhHI.js} +4 -4
  23. package/dist/{blockTypeIcons-Dd-UvfnC.js → blockTypeIcons-CrcSCTD6.js} +2 -2
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/cdn/chunks/{AiFeatureMenu-DKOv8VnB.js → AiFeatureMenu-CCsgxyN9.js} +4 -4
  26. package/dist/cdn/chunks/{AiFeatureMenu-DKOv8VnB.js.map → AiFeatureMenu-CCsgxyN9.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-DpiSTwM7.js → BlockIssueBadge-Lc3NWFV8.js} +3 -3
  28. package/dist/cdn/chunks/{BlockIssueBadge-DpiSTwM7.js.map → BlockIssueBadge-Lc3NWFV8.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-xc_uOEgn.js → CloudEditor-KkwvBhyt.js} +131 -128
  30. package/dist/cdn/chunks/CloudEditor-KkwvBhyt.js.map +1 -0
  31. package/dist/cdn/chunks/{CollaboratorBar-VWfPri_h.js → CollaboratorBar-BGIGiFSm.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-VWfPri_h.js.map → CollaboratorBar-BGIGiFSm.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-BKsCWboK.js → CountdownBlock-gqnpxKp_.js} +4 -4
  34. package/dist/cdn/chunks/{CountdownBlock-BKsCWboK.js.map → CountdownBlock-gqnpxKp_.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-BLtECDNb.js → CountdownToolbar-xHpaWQE2.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-BLtECDNb.js.map → CountdownToolbar-xHpaWQE2.js.map} +1 -1
  37. package/dist/cdn/chunks/{IssuesPanel-BW2piyvs.js → IssuesPanel-DHTTHu65.js} +4 -4
  38. package/dist/cdn/chunks/{IssuesPanel-BW2piyvs.js.map → IssuesPanel-DHTTHu65.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-TLlKpvjX.js → ModuleBrowserModal-DDTjrKph.js} +6 -6
  40. package/dist/cdn/chunks/{ModuleBrowserModal-TLlKpvjX.js.map → ModuleBrowserModal-DDTjrKph.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-wu7y-vrh.js → ModulePreviewCanvas-DeFq0hVi.js} +3 -3
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-wu7y-vrh.js.map → ModulePreviewCanvas-DeFq0hVi.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-DxoUtTMr.js → NumberWithSuffix-D4wtmU9O.js} +3 -3
  44. package/dist/cdn/chunks/{NumberWithSuffix-DxoUtTMr.js.map → NumberWithSuffix-D4wtmU9O.js.map} +1 -1
  45. package/dist/cdn/chunks/{ParagraphEditor-DvxIO2LN.js → ParagraphEditor-CwY8GeWa.js} +20 -20
  46. package/dist/cdn/chunks/{ParagraphEditor-DvxIO2LN.js.map → ParagraphEditor-CwY8GeWa.js.map} +1 -1
  47. package/dist/cdn/chunks/{RichTextEditorContent-Dm9GXJmo.js → RichTextEditorContent-C_bMURGF.js} +5 -5
  48. package/dist/cdn/chunks/{RichTextEditorContent-Dm9GXJmo.js.map → RichTextEditorContent-C_bMURGF.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-BRAdVcYM.js → SaveModuleDialog-DEi8PSP6.js} +3 -3
  50. package/dist/cdn/chunks/{SaveModuleDialog-BRAdVcYM.js.map → SaveModuleDialog-DEi8PSP6.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor-D3gPRd0x.js → TitleEditor-Betpo8AZ.js} +9 -9
  52. package/dist/cdn/chunks/{TitleEditor-D3gPRd0x.js.map → TitleEditor-Betpo8AZ.js.map} +1 -1
  53. package/dist/cdn/chunks/{blockTypeIcons-C2cm4RjU.js → blockTypeIcons-Xz6OBq3U.js} +3 -3
  54. package/dist/cdn/chunks/{blockTypeIcons-C2cm4RjU.js.map → blockTypeIcons-Xz6OBq3U.js.map} +1 -1
  55. package/dist/cdn/chunks/{draggable-BwWMFq33.js → draggable-BTGr7_-X.js} +1271 -1270
  56. package/dist/cdn/chunks/draggable-BTGr7_-X.js.map +1 -0
  57. package/dist/cdn/chunks/{extensions-SS1ywPUR.js → extensions-D_j4UWxi.js} +108 -105
  58. package/dist/cdn/chunks/{extensions-SS1ywPUR.js.map → extensions-D_j4UWxi.js.map} +1 -1
  59. package/dist/cdn/chunks/{features-CwZTdcbt.js → features-A28DQtjE.js} +831 -820
  60. package/dist/cdn/chunks/features-A28DQtjE.js.map +1 -0
  61. package/dist/cdn/chunks/{icons-CbNEr1kc.js → icons-C9D3N0-J.js} +12 -12
  62. package/dist/cdn/chunks/{icons-CbNEr1kc.js.map → icons-C9D3N0-J.js.map} +1 -1
  63. package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js → liquid.browser-DUDc3U21.js} +10 -10
  64. package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js.map → liquid.browser-DUDc3U21.js.map} +1 -1
  65. package/dist/cdn/chunks/{media-library-BRpHZOl7.js → media-library-CH1Wx5wP.js} +13 -9
  66. package/dist/cdn/chunks/media-library-CH1Wx5wP.js.map +1 -0
  67. package/dist/cdn/chunks/pusher-CHo5Cua0.js.map +1 -1
  68. package/dist/cdn/chunks/{quality-BqJqIPRU.js → quality-D4NeyFej.js} +530 -530
  69. package/dist/cdn/chunks/{quality-BqJqIPRU.js.map → quality-D4NeyFej.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-CGVYkdUi.js → renderer-BQnGfLhL.js} +62 -61
  71. package/dist/cdn/chunks/renderer-BQnGfLhL.js.map +1 -0
  72. package/dist/cdn/chunks/{src-CvzfrFlT.js → src-BkKEyLw1.js} +6 -6
  73. package/dist/cdn/chunks/{src-CvzfrFlT.js.map → src-BkKEyLw1.js.map} +1 -1
  74. package/dist/cdn/chunks/{styles-2P5yvfsS.js → styles-BDVaiw3K.js} +150 -150
  75. package/dist/cdn/chunks/{styles-2P5yvfsS.js.map → styles-BDVaiw3K.js.map} +1 -1
  76. package/dist/cdn/chunks/{tiptap-BBbH3IT9.js → tiptap-P5abGB13.js} +4437 -2580
  77. package/dist/cdn/chunks/tiptap-P5abGB13.js.map +1 -0
  78. package/dist/cdn/editor.css +1 -1
  79. package/dist/cdn/editor.js +100 -100
  80. package/dist/cdn/editor.js.map +1 -1
  81. package/dist/{check-ChQyfxJ3.js → check-KooI2jyS.js} +1 -1
  82. package/dist/{chevron-down-DJjo0jSV.js → chevron-down-mnlFgueW.js} +1 -1
  83. package/dist/{circle-alert-CPH6l3Lc.js → circle-alert-D89_hB8j.js} +1 -1
  84. package/dist/{clock-DHl_BIkU.js → clock-BaadyUrg.js} +1 -1
  85. package/dist/{cloud-BBC7bv8q.js → cloud-D-FScaHx.js} +80 -74
  86. package/dist/{createLucideIcon-XgXOJ05E.js → createLucideIcon-D-6fpD2L.js} +3 -3
  87. package/dist/{dist-DXaxGLsw.js → dist-BttO3Zdx.js} +44 -44
  88. package/dist/{dist-C8wMh_gi.js → dist-C1WcikEF.js} +5 -5
  89. package/dist/dist-CjULgTep.js +4072 -0
  90. package/dist/{dist-GAmhYvUK.js → dist-D6L_WdRL.js} +96 -86
  91. package/dist/{dist-DYO-w_Jf.js → dist-DaajG7Fo.js} +5 -5
  92. package/dist/dist-Df4eV6Zi.js +5 -0
  93. package/dist/{dist-D8C6jIXM.js → dist-Dnqx5UF3.js} +171 -158
  94. package/dist/{dist-CUpJmrjt.js → dist-Drp5bNAu.js} +5 -5
  95. package/dist/dist-WJ1fVd5b.js +5 -0
  96. package/dist/{dist-BxP6TB0l.js → dist-XA2i70J5.js} +8 -8
  97. package/dist/{dist-UK-lbEBc.js → dist-b52vYHb5.js} +2 -2
  98. package/dist/{dist-CNLAS2v2.js → dist-cl33Ip6W.js} +3 -3
  99. package/dist/{dist-C0jo8wtG.js → dist-sqf7pq5q.js} +16 -16
  100. package/dist/{dist-BzuC8o3y.js → dist-zInT3Lf6.js} +78 -60
  101. package/dist/{extensions-C87ZSllQ.js → extensions-DA-w1gVg.js} +128 -125
  102. package/dist/{image-up-CPBCOMit.js → image-up-DjwfAom6.js} +1 -1
  103. package/dist/{info-DIY9mguM.js → info-Db3HlTr8.js} +1 -1
  104. package/dist/{keys-Vt3XipJl.js → keys-BjmL5YCT.js} +1 -1
  105. package/dist/{liquid.browser-IgQrXHPQ.js → liquid.browser--qtl1Fqy.js} +9 -9
  106. package/dist/{list-checks-CSCyu3fH.js → list-checks-BlAB0X8a.js} +1 -1
  107. package/dist/{loader-circle-Rz_4vJLH.js → loader-circle-EVqyIxjU.js} +1 -1
  108. package/dist/{message-circle-D-umK_MU.js → message-circle-BuI5pBVG.js} +1 -1
  109. package/dist/{refresh-cw-CvWF4jfR.js → refresh-cw-C2vM_6zQ.js} +1 -1
  110. package/dist/{scan-line-wanvAFDr.js → scan-line-AUIh_SHI.js} +1 -1
  111. package/dist/{send-BhbhbIFT.js → send-nrbwF7xg.js} +1 -1
  112. package/dist/{shield-check-CXPPMWth.js → shield-check-B55Ozmva.js} +1 -1
  113. package/dist/{sparkles-CrUN0KWY.js → sparkles-oh1NUSFq.js} +1 -1
  114. package/dist/style.css +1 -1
  115. package/dist/{styles-DOjWbqA9.js → styles-Byhh107n.js} +41 -41
  116. package/dist/templatical-editor.js +81 -80
  117. package/dist/{text-align-end-Bkq8oBrD.js → text-align-start-B2MqzZwU.js} +11 -11
  118. package/dist/{trash-2-BpY5BCLT.js → trash-2-DH8RBwAx.js} +1 -1
  119. package/dist/{triangle-alert-MwJBKR2e.js → triangle-alert-BQHjCt3B.js} +1 -1
  120. package/dist/{useAliveFlag-BLyG8L4d.js → useAliveFlag-B_b9ubwD.js} +1 -1
  121. package/dist/{useCloudI18n-sRfoQCZY.js → useCloudI18n-BHCrmQgj.js} +2 -2
  122. package/dist/{useEditorCore-DxApq2hZ.js → useEditorCore-BEgc3KFu.js} +370 -377
  123. package/dist/{useI18n-lF6hYgZu.js → useI18n-Bb9-ha9X.js} +2 -2
  124. package/dist/{useMergeTag-CZVI7Xe5.js → useMergeTag-HykzEtBn.js} +3 -3
  125. package/dist/usePopoverRoot-BZDkRRry.js +8 -0
  126. package/dist/{vue.runtime.esm-bundler-BDSGA5hA.js → vue.runtime.esm-bundler-MzYCkFSH.js} +1306 -1305
  127. package/dist/{x-rcnxRG8Y.js → x-DgCCENgP.js} +1 -1
  128. package/package.json +27 -27
  129. package/dist/cdn/chunks/CloudEditor-xc_uOEgn.js.map +0 -1
  130. package/dist/cdn/chunks/draggable-BwWMFq33.js.map +0 -1
  131. package/dist/cdn/chunks/features-CwZTdcbt.js.map +0 -1
  132. package/dist/cdn/chunks/media-library-BRpHZOl7.js.map +0 -1
  133. package/dist/cdn/chunks/renderer-CGVYkdUi.js.map +0 -1
  134. package/dist/cdn/chunks/tiptap-BBbH3IT9.js.map +0 -1
  135. package/dist/dist-BDgf2G-V.js +0 -2243
  136. package/dist/dist-D5lmdi1F.js +0 -5
  137. package/dist/dist-DILjuzSv.js +0 -5
  138. package/dist/usePopoverRoot-p2BanBI7.js +0 -8
@@ -1,25 +1,25 @@
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-BDSGA5hA.js";
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-MzYCkFSH.js";
2
2
  import { t as k } from "./timeouts-Bmi_yePw.js";
3
- import { E as A, i as j } from "./dist-GAmhYvUK.js";
4
- import { P as M, S as N, t as P } from "./useEditorCore-DxApq2hZ.js";
5
- import { c as F, t as I } from "./dist-CNLAS2v2.js";
6
- import { C as L, D as R, E as z, c as B, l as V, r as ee, s as te, t as H } from "./keys-Vt3XipJl.js";
7
- import { t as U } from "./useI18n-lF6hYgZu.js";
8
- import { t as W } from "./createLucideIcon-XgXOJ05E.js";
9
- import { t as G } from "./check-ChQyfxJ3.js";
10
- import { t as K } from "./circle-alert-CPH6l3Lc.js";
11
- import { a as q, c as ne, d as re, i as J, l as ie, n as ae, o as oe, r as se, s as ce, t as le, u as ue } from "./styles-DOjWbqA9.js";
12
- import { t as de } from "./clock-DHl_BIkU.js";
13
- import { t as Y } from "./loader-circle-Rz_4vJLH.js";
14
- import { t as X } from "./message-circle-D-umK_MU.js";
15
- import { t as Z } from "./send-BhbhbIFT.js";
16
- import { t as fe } from "./sparkles-CrUN0KWY.js";
17
- import { t as pe } from "./triangle-alert-MwJBKR2e.js";
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-BEgc3KFu.js";
5
+ import { c as P, t as F } from "./dist-cl33Ip6W.js";
6
+ import { C as I, D as L, E as R, c as z, l as B, r as te, s as ne, t as V } from "./keys-BjmL5YCT.js";
7
+ import { t as H } from "./useI18n-Bb9-ha9X.js";
8
+ import { t as U } from "./createLucideIcon-D-6fpD2L.js";
9
+ import { t as W } from "./check-KooI2jyS.js";
10
+ import { t as G } from "./circle-alert-D89_hB8j.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-Byhh107n.js";
12
+ import { t as fe } from "./clock-BaadyUrg.js";
13
+ import { t as J } from "./loader-circle-EVqyIxjU.js";
14
+ import { t as Y } from "./message-circle-BuI5pBVG.js";
15
+ import { t as X } from "./send-nrbwF7xg.js";
16
+ import { t as Z } from "./sparkles-oh1NUSFq.js";
17
+ import { t as pe } from "./triangle-alert-BQHjCt3B.js";
18
18
  import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
19
- import { n as Q } from "./useCloudI18n-sRfoQCZY.js";
19
+ import { n as Q } from "./useCloudI18n-BHCrmQgj.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-BBC7bv8q.js";
22
- var Me = W("save", [
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-D-FScaHx.js";
22
+ var Me = 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"
@@ -64,6 +64,8 @@ function Ne(e) {
64
64
  async function x() {
65
65
  if (!(!u.value || !l.value)) try {
66
66
  if (await l.value.restoreSnapshot(u.value.id), p || (await l.value.loadSnapshots(), p)) return;
67
+ } catch (e) {
68
+ throw !p && f.value && n.setContent(f.value, !1), e;
67
69
  } finally {
68
70
  p || (u.value = null, f.value = null, s?.resume());
69
71
  }
@@ -115,7 +117,7 @@ function Pe() {
115
117
  function g(t) {
116
118
  l.value = !1, e.value = e.value === t ? null : t;
117
119
  }
118
- return I(u, () => {
120
+ return F(u, () => {
119
121
  l.value = !1;
120
122
  }), {
121
123
  activePanel: e,
@@ -138,7 +140,7 @@ function Pe() {
138
140
  //#endregion
139
141
  //#region src/cloud/composables/useCollabUndoWarning.ts
140
142
  function Fe(e) {
141
- let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = o(!1), a = o(!1), { start: s } = F(() => {
143
+ let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = o(!1), a = o(!1), { start: s } = P(() => {
142
144
  a.value = !1;
143
145
  }, k, { immediate: !1 });
144
146
  function c() {
@@ -152,7 +154,7 @@ function Fe(e) {
152
154
  //#endregion
153
155
  //#region src/cloud/composables/useCloudFeatureFlags.ts
154
156
  function Ie(e) {
155
- 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 } = F(() => {
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(() => {
156
158
  p.value = "idle";
157
159
  }, 3e3, { immediate: !1 });
158
160
  return {
@@ -240,7 +242,7 @@ function Re(e) {
240
242
  }), n(() => S.lockedBlocks.value, (e) => {
241
243
  y.value = e;
242
244
  }, { immediate: !0 }), Oe(b, S));
243
- let C = d(() => !!t.collaboration?.enabled && v.hasFeature("collaboration")), w = P({
245
+ let C = d(() => !!t.collaboration?.enabled && v.hasFeature("collaboration")), w = ee({
244
246
  editor: b,
245
247
  config: {
246
248
  uiTheme: t.uiTheme,
@@ -250,7 +252,7 @@ function Re(e) {
250
252
  mergeTags: t.mergeTags,
251
253
  displayConditions: t.displayConditions,
252
254
  onRequestMedia: null,
253
- lint: ue(t),
255
+ lint: de(t),
254
256
  onSave: () => {
255
257
  p.value?.().catch((e) => {
256
258
  t.onError?.(e);
@@ -303,7 +305,7 @@ function Re(e) {
303
305
  authManager: _,
304
306
  getFontsConfig: () => t.fonts,
305
307
  canUseCustomFonts: () => v.hasFeature("custom_fonts")
306
- }), F = Ae({
308
+ }), P = Ae({
307
309
  authManager: _,
308
310
  getTemplateId: () => b.state.template?.id ?? null,
309
311
  save: () => b.save(),
@@ -311,7 +313,7 @@ function Re(e) {
311
313
  onError: t.onError,
312
314
  isAuthReady: l,
313
315
  onBeforeTestEmail: t.onBeforeTestEmail
314
- }), I = Se({
316
+ }), F = Se({
315
317
  authManager: _,
316
318
  getTemplateId: () => b.state.template?.id ?? null,
317
319
  getSocketId: () => x.getSocketId(),
@@ -321,45 +323,45 @@ function Re(e) {
321
323
  hasCommentingFeature: () => t.commenting !== !1 && v.hasFeature("commenting")
322
324
  });
323
325
  _e({
324
- comments: I,
326
+ comments: F,
325
327
  channel: x.channel
326
328
  });
327
- let B = xe({
329
+ let z = xe({
328
330
  authManager: _,
329
331
  onError: t.onError
330
- }), U = o(!1), W = o(null), G = o(!1), K = he({
332
+ }), H = o(!1), U = o(null), W = o(!1), G = he({
331
333
  authManager: _,
332
334
  getTemplateId: () => b.state.template?.id ?? null
333
335
  });
334
- function q(e) {
336
+ function K(e) {
335
337
  D.commentsOpen.value = !0, queueMicrotask(() => {
336
338
  s()?.filterByBlock(e);
337
339
  });
338
340
  }
339
- h(L, A.handleRequestMedia), h(ee, _), h(H, O), h(V, I), h(z, B), h(R, K), h(te, {
341
+ h(I, A.handleRequestMedia), h(te, _), h(V, O), h(B, F), h(R, z), h(L, G), h(ne, {
340
342
  plan: v,
341
343
  ai: O,
342
344
  comments: {
343
- getBlockCount: (e) => I.commentCountByBlock.value.get(e) ?? 0,
344
- openForBlock: q
345
+ getBlockCount: (e) => F.commentCountByBlock.value.get(e) ?? 0,
346
+ openForBlock: K
345
347
  },
346
348
  savedModules: {
347
349
  openSaveDialog: (e) => {
348
- W.value = e ?? null, U.value = !0;
350
+ U.value = e ?? null, H.value = !0;
349
351
  },
350
352
  openBrowser: () => {
351
- G.value = !0;
353
+ W.value = !0;
352
354
  },
353
- moduleCount: d(() => B.modules.value.length)
355
+ moduleCount: d(() => z.modules.value.length)
354
356
  }
355
357
  });
356
- function ne(e) {
358
+ function re(e) {
357
359
  v.hasFeature("theme_customization") && (w.themeOverrides.value = e);
358
360
  }
359
- function re(e) {
361
+ function ie(e) {
360
362
  b.setUiTheme(e);
361
363
  }
362
- async function J() {
364
+ async function q() {
363
365
  c.value = !0, u.value = null;
364
366
  try {
365
367
  if (await _.initialize(), f) return;
@@ -369,7 +371,7 @@ function Re(e) {
369
371
  if (!e.api.ok) throw Error("Health check failed: API is not reachable");
370
372
  if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
371
373
  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;
372
- 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") && B.loadModules(), a("ready");
374
+ 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");
373
375
  } catch (e) {
374
376
  if (f) return;
375
377
  let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
@@ -378,7 +380,7 @@ function Re(e) {
378
380
  f || (c.value = !1);
379
381
  }
380
382
  }
381
- function ie() {
383
+ function ae() {
382
384
  f = !0, i.cleanupFontLinks(), x.disconnect(), w.destroy(), t.onUnmount?.();
383
385
  }
384
386
  return {
@@ -397,22 +399,22 @@ function Re(e) {
397
399
  featureFlags: k,
398
400
  mediaLib: A,
399
401
  exporter: j,
400
- testEmail: F,
401
- commentsInstance: I,
402
- savedModulesHeadless: B,
403
- scoringInstance: K,
402
+ testEmail: P,
403
+ commentsInstance: F,
404
+ savedModulesHeadless: z,
405
+ scoringInstance: G,
404
406
  panelState: D,
405
407
  snapshotPreview: E,
406
408
  collabWarning: T,
407
- showSaveModuleDialog: U,
408
- showModuleBrowserModal: G,
409
- saveModulePreSelectedBlockId: W,
409
+ showSaveModuleDialog: H,
410
+ showModuleBrowserModal: W,
411
+ saveModulePreSelectedBlockId: U,
410
412
  onSaveHook: p,
411
- initialize: J,
412
- destroy: ie,
413
- setThemeOverrides: ne,
414
- setUiTheme: re,
415
- openCommentsForBlock: q
413
+ initialize: q,
414
+ destroy: ae,
415
+ setThemeOverrides: re,
416
+ setUiTheme: ie,
417
+ openCommentsForBlock: K
416
418
  };
417
419
  }
418
420
  //#endregion
@@ -592,22 +594,22 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
592
594
  },
593
595
  emits: ["save"],
594
596
  setup(t) {
595
- let n = D(() => import("./CollaboratorBar-CwhlXODK.js")), r = D(() => import("./SnapshotHistory-Nx9wrlbF.js")), i = D(() => import("./AiFeatureMenu-B5CJX5zr.js")), { t: a, format: o } = Q();
597
+ let n = D(() => import("./CollaboratorBar-Cz_evoU4.js")), r = D(() => import("./SnapshotHistory-BQ55Rhri.js")), i = D(() => import("./AiFeatureMenu-xgaIGUCo.js")), { t: a, format: o } = Q();
596
598
  return (l, d) => (e(), m("header", Qe, [
597
599
  f("div", $e, [t.featureFlags.templateLimit.value === null ? v("", !0) : (e(), m("span", et, w(C(o)(C(a).header.templatesUsed, {
598
600
  used: t.featureFlags.templateCount.value,
599
601
  max: t.featureFlags.templateLimit.value
600
602
  })), 1))]),
601
603
  f("div", tt, [
602
- E(q, {
604
+ E(K, {
603
605
  viewport: t.editor.state.viewport,
604
606
  onChange: t.editor.setViewport
605
607
  }, null, 8, ["viewport", "onChange"]),
606
- E(se, {
608
+ E(ce, {
607
609
  "dark-mode": t.editor.state.darkMode,
608
610
  onChange: t.editor.setDarkMode
609
611
  }, null, 8, ["dark-mode", "onChange"]),
610
- E(J, {
612
+ E(q, {
611
613
  "preview-mode": t.editor.state.previewMode,
612
614
  onChange: t.editor.setPreviewMode
613
615
  }, null, 8, ["preview-mode", "onChange"]),
@@ -637,10 +639,10 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
637
639
  "aria-live": "assertive",
638
640
  class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
639
641
  "data-tooltip": t.featureFlags.saveErrorMessage.value
640
- }, [E(C(K), {
642
+ }, [E(C(G), {
641
643
  size: 12,
642
644
  "stroke-width": 2.5
643
- }), s(" " + w(C(a).header.saveFailed), 1)], 8, rt)) : t.featureFlags.saveStatus.value === "saved" ? (e(), m("div", it, [E(C(G), {
645
+ }), s(" " + w(C(a).header.saveFailed), 1)], 8, rt)) : t.featureFlags.saveStatus.value === "saved" ? (e(), m("div", it, [E(C(W), {
644
646
  size: 12,
645
647
  "stroke-width": 2.5
646
648
  }), 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),
@@ -656,7 +658,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
656
658
  }),
657
659
  onClick: d[0] ||= (e) => t.panelState.commentsOpen.value = !t.panelState.commentsOpen.value
658
660
  }, [
659
- E(C(X), {
661
+ E(C(Y), {
660
662
  size: 16,
661
663
  "stroke-width": 2
662
664
  }),
@@ -671,7 +673,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
671
673
  "aria-expanded": t.panelState.aiMenuOpen.value,
672
674
  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"]),
673
675
  onClick: d[1] ||= u((...e) => t.panelState.toggleAiMenu && t.panelState.toggleAiMenu(...e), ["stop"])
674
- }, [E(C(fe), {
676
+ }, [E(C(Z), {
675
677
  size: 16,
676
678
  "stroke-width": 2,
677
679
  class: "tpl-ai-btn-icon"
@@ -699,12 +701,12 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
699
701
  },
700
702
  disabled: t.testEmail.isSending.value || !t.featureFlags.hasTemplateSaved.value,
701
703
  onClick: d[2] ||= (e) => t.panelState.testEmailModalOpen.value = !0
702
- }, [t.testEmail.isSending.value ? (e(), x(C(Y), {
704
+ }, [t.testEmail.isSending.value ? (e(), x(C(J), {
703
705
  key: 1,
704
706
  class: "tpl-spinner",
705
707
  size: 16,
706
708
  "stroke-width": 2
707
- })) : (e(), x(C(Z), {
709
+ })) : (e(), x(C(X), {
708
710
  key: 0,
709
711
  size: 16,
710
712
  "stroke-width": 2
@@ -718,7 +720,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
718
720
  },
719
721
  disabled: t.isSaveDisabled,
720
722
  onClick: d[3] ||= (e) => l.$emit("save")
721
- }, [t.isSaving ? (e(), x(C(Y), {
723
+ }, [t.isSaving ? (e(), x(C(J), {
722
724
  key: 1,
723
725
  class: "tpl-spinner",
724
726
  size: 16,
@@ -754,7 +756,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
754
756
  "module-insert"
755
757
  ],
756
758
  setup(t, { expose: n, emit: r }) {
757
- let i = D(() => import("./AiChatSidebar-D30WPhbv.js")), a = D(() => import("./CommentsSidebar-gpZMMI5w.js")), s = D(() => import("./DesignReferenceSidebar-Bs5AMxVd.js")), c = D(() => import("./TemplateScoringPanel-BG9M-29t.js")), l = D(() => import("./TestEmailModal-CRjtEs6S.js")), u = D(() => import("./SaveModuleDialog-CkEYkyVD.js")), d = D(() => import("./ModuleBrowserModal-BWWgF0LC.js")), f = D(async () => {
759
+ let i = D(() => import("./AiChatSidebar-BMwpZx-6.js")), a = D(() => import("./CommentsSidebar-jFZj_CTo.js")), s = D(() => import("./DesignReferenceSidebar-B9QNPZNV.js")), c = D(() => import("./TemplateScoringPanel-Dhf_Qgr7.js")), l = D(() => import("./TestEmailModal-DH_Viz_m.js")), u = D(() => import("./SaveModuleDialog-D5WN-je_.js")), d = D(() => import("./ModuleBrowserModal-BB22urqi.js")), f = D(async () => {
758
760
  try {
759
761
  return (await import("@templatical/media-library")).MediaLibraryModal;
760
762
  } catch {
@@ -868,7 +870,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
868
870
  return "isNotFound" in e && !!e.isNotFound;
869
871
  }
870
872
  return (n, s) => t.visible && t.error ? (e(), m("div", vt, [
871
- f("div", yt, [E(C(K), {
873
+ f("div", yt, [E(C(G), {
872
874
  size: 32,
873
875
  "stroke-width": 1.5,
874
876
  class: "tpl:text-[var(--tpl-danger)]"
@@ -890,7 +892,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
890
892
  emits: ["cancel", "confirm"],
891
893
  setup(t, { emit: n }) {
892
894
  let r = n, { t: i } = Q();
893
- return (n, a) => t.visible ? (e(), m("div", wt, [f("div", Tt, [E(C(de), {
895
+ return (n, a) => t.visible ? (e(), m("div", wt, [f("div", Tt, [E(C(fe), {
894
896
  size: 18,
895
897
  "stroke-width": 2,
896
898
  class: "tpl:text-[var(--tpl-primary)]"
@@ -917,10 +919,10 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
917
919
  __name: "CollabUndoToast",
918
920
  props: { visible: { type: Boolean } },
919
921
  setup(t) {
920
- let { t: n } = U();
922
+ let { t: n } = H();
921
923
  return (r, i) => t.visible ? (e(), m("div", Ot, w(C(n).history.collabWarning), 1)) : v("", !0);
922
924
  }
923
- }), 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({
925
+ }), 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({
924
926
  __name: "CloudEditor",
925
927
  props: {
926
928
  config: {},
@@ -932,7 +934,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
932
934
  emits: ["ready"],
933
935
  setup(n, { expose: r, emit: a }) {
934
936
  let l = n;
935
- h(B, l.cloudTranslations);
937
+ h(z, l.cloudTranslations);
936
938
  let u = a, d = o(null), p = o(null), _ = Re({
937
939
  config: l.config,
938
940
  translations: l.translations,
@@ -941,31 +943,36 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
941
943
  getCommentsSidebar: () => d.value ? { filterByBlock: d.value.filterCommentsByBlock } : null,
942
944
  editorRoot: l.shadowRoot,
943
945
  containerEl: p
944
- }), { isInitializing: S, isAuthReady: D, initError: k, planConfigInstance: A, websocket: M, collaboration: N, isCollaborationEnabled: P, editor: F, core: I, featureFlags: L, mediaLib: R, exporter: z, testEmail: V, commentsInstance: ee, savedModulesHeadless: te, panelState: H, snapshotPreview: U, collabWarning: W, showSaveModuleDialog: G, showModuleBrowserModal: K, saveModulePreSelectedBlockId: q, setThemeOverrides: J, setUiTheme: se } = _;
945
- async function ue(e) {
946
+ }), { 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 } = _;
947
+ async function de(e) {
946
948
  try {
947
- await V.sendTestEmail(e), H.testEmailModalOpen.value = !1;
949
+ await B.sendTestEmail(e), V.testEmailModalOpen.value = !1;
948
950
  } catch {}
949
951
  }
950
- function de(e, t) {
952
+ async function fe() {
953
+ try {
954
+ await H.confirmRestoreSnapshot();
955
+ } catch {}
956
+ }
957
+ function J(e, t) {
951
958
  for (let n = 0; n < e.content.length; n++) {
952
959
  let r = j(e.content[n]), i = t === void 0 ? void 0 : t + n;
953
- F.addBlock(r, void 0, void 0, i);
960
+ P.addBlock(r, void 0, void 0, i);
954
961
  }
955
- K.value = !1;
962
+ G.value = !1;
956
963
  }
957
964
  let Y = Be({
958
965
  config: l.config,
959
- editor: F,
966
+ editor: P,
960
967
  websocket: M,
961
968
  planConfigInstance: A,
962
- snapshotPreview: U,
963
- core: I,
964
- exporter: z,
965
- featureFlags: L,
969
+ snapshotPreview: H,
970
+ core: F,
971
+ exporter: R,
972
+ featureFlags: I,
966
973
  isDestroyed: _.isDestroyed
967
974
  }), X = Ve({
968
- issues: I.templateLint ? I.templateLint.issues : o([]),
975
+ issues: F.templateLint ? F.templateLint.issues : o([]),
969
976
  planConfig: A.config
970
977
  });
971
978
  async function Z() {
@@ -976,22 +983,22 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
976
983
  }), g(() => {
977
984
  _.destroy();
978
985
  }), r({
979
- getContent: () => F.content.value,
980
- setContent: (e) => F.setContent(e),
981
- setTheme: se,
982
- setThemeOverrides: J,
986
+ getContent: () => P.content.value,
987
+ setContent: (e) => P.setContent(e),
988
+ setTheme: ce,
989
+ setThemeOverrides: q,
983
990
  create: Y.createTemplate,
984
991
  load: Y.loadTemplate,
985
992
  save: Y.saveTemplate,
986
- sendTestEmail: V.sendTestEmail
993
+ sendTestEmail: B.sendTestEmail
987
994
  }), (r, i) => (e(), m("div", {
988
995
  ref_key: "rootEl",
989
996
  ref: p,
990
- class: c(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": C(F).state.darkMode }]),
991
- "data-tpl-theme": C(I).resolvedTheme.value,
992
- style: b(C(I).themeStyles.value)
997
+ class: c(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": C(P).state.darkMode }]),
998
+ "data-tpl-theme": C(F).resolvedTheme.value,
999
+ style: b(C(F).themeStyles.value)
993
1000
  }, [
994
- E(ne),
1001
+ E(re),
995
1002
  E(T, {
996
1003
  "enter-active-class": "tpl:transition-opacity tpl:duration-200",
997
1004
  "enter-from-class": "tpl:opacity-100",
@@ -1000,7 +1007,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1000
1007
  "leave-from-class": "tpl:opacity-100",
1001
1008
  "leave-to-class": "tpl:opacity-0"
1002
1009
  }, {
1003
- default: O(() => [E(_t, { visible: C(S) || C(F).state.isLoading }, null, 8, ["visible"])]),
1010
+ default: O(() => [E(_t, { visible: C(S) || C(P).state.isLoading }, null, 8, ["visible"])]),
1004
1011
  _: 1
1005
1012
  }),
1006
1013
  E(T, {
@@ -1023,18 +1030,18 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1023
1030
  _: 1
1024
1031
  }),
1025
1032
  E(ft, {
1026
- editor: C(F),
1027
- core: C(I),
1028
- "feature-flags": C(L),
1029
- "panel-state": C(H),
1030
- "snapshot-preview": C(U),
1031
- "comments-instance": C(ee),
1032
- "test-email": C(V),
1033
+ editor: C(P),
1034
+ core: C(F),
1035
+ "feature-flags": C(I),
1036
+ "panel-state": C(V),
1037
+ "snapshot-preview": C(H),
1038
+ "comments-instance": C(te),
1039
+ "test-email": C(B),
1033
1040
  websocket: C(M),
1034
1041
  collaboration: C(N),
1035
- "is-collaboration-enabled": C(P),
1036
- "is-saving": C(F).state.isSaving || C(L).isSaveExporting.value,
1037
- "is-save-disabled": C(F).state.isSaving || C(L).isSaveExporting.value || !C(F).state.isDirty,
1042
+ "is-collaboration-enabled": C(ee),
1043
+ "is-saving": C(P).state.isSaving || C(I).isSaveExporting.value,
1044
+ "is-save-disabled": C(P).state.isSaving || C(I).isSaveExporting.value || !C(P).state.isDirty,
1038
1045
  onSave: Z
1039
1046
  }, null, 8, [
1040
1047
  "editor",
@@ -1062,14 +1069,10 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1062
1069
  "onConfirm"
1063
1070
  ]),
1064
1071
  E(Dt, {
1065
- visible: C(U).isPreviewingSnapshot.value,
1066
- onCancel: C(U).cancelPreview,
1067
- onConfirm: C(U).confirmRestoreSnapshot
1068
- }, null, 8, [
1069
- "visible",
1070
- "onCancel",
1071
- "onConfirm"
1072
- ]),
1072
+ visible: C(H).isPreviewingSnapshot.value,
1073
+ onCancel: C(H).cancelPreview,
1074
+ onConfirm: fe
1075
+ }, null, 8, ["visible", "onCancel"]),
1073
1076
  E(T, {
1074
1077
  "enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
1075
1078
  "enter-from-class": "tpl:translate-y-[-8px] tpl:opacity-0",
@@ -1078,18 +1081,18 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1078
1081
  "leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
1079
1082
  "leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
1080
1083
  }, {
1081
- default: O(() => [E(kt, { visible: C(W).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1084
+ default: O(() => [E(kt, { visible: C(U).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1082
1085
  _: 1
1083
1086
  }),
1084
- t(E(ce, null, null, 512), [[y, !C(F).state.previewMode]]),
1087
+ t(E(le, null, null, 512), [[y, !C(P).state.previewMode]]),
1085
1088
  f("div", {
1086
- class: c(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [C(F).state.previewMode ? "tpl:left-0 tpl:right-0" : C(H).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", C(U).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1089
+ 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"]]),
1087
1090
  style: {
1088
1091
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
1089
1092
  "background-color": "var(--tpl-canvas-bg)"
1090
1093
  }
1091
1094
  }, [f("div", jt, [E(T, { name: "tpl-restore-btn" }, {
1092
- default: O(() => [C(I).conditionPreview.hasHiddenBlocks.value ? (e(), m("button", {
1095
+ default: O(() => [C(F).conditionPreview.hasHiddenBlocks.value ? (e(), m("button", {
1093
1096
  key: 0,
1094
1097
  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",
1095
1098
  style: {
@@ -1098,22 +1101,22 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1098
1101
  "border-color": "var(--tpl-warning)",
1099
1102
  "backdrop-filter": "blur(8px)"
1100
1103
  },
1101
- onClick: i[0] ||= (e) => C(I).conditionPreview.reset()
1102
- }, [E(C(re), {
1104
+ onClick: i[0] ||= (e) => C(F).conditionPreview.reset()
1105
+ }, [E(C(ie), {
1103
1106
  size: 13,
1104
1107
  "stroke-width": 2
1105
- }), s(" " + w(C(I).t.blockSettings.restoreHiddenBlocks), 1)])) : v("", !0)]),
1108
+ }), s(" " + w(C(F).t.blockSettings.restoreHiddenBlocks), 1)])) : v("", !0)]),
1106
1109
  _: 1
1107
- })]), f("main", Mt, [E(ie, {
1108
- viewport: C(F).state.viewport,
1109
- content: C(F).content.value,
1110
- "selected-block-id": C(F).state.selectedBlockId,
1111
- "dark-mode": C(F).state.darkMode,
1112
- "preview-mode": C(F).state.previewMode,
1110
+ })]), f("main", Mt, [E(ae, {
1111
+ viewport: C(P).state.viewport,
1112
+ content: C(P).content.value,
1113
+ "selected-block-id": C(P).state.selectedBlockId,
1114
+ "dark-mode": C(P).state.darkMode,
1115
+ "preview-mode": C(P).state.previewMode,
1113
1116
  "locked-blocks": C(N)?.lockedBlocks.value ?? void 0,
1114
- onSelectBlock: C(F).selectBlock,
1115
- onOpenAiChat: i[1] ||= (e) => C(H).aiChatOpen.value = !0,
1116
- onOpenDesignReference: i[2] ||= (e) => C(H).designReferenceOpen.value = !0
1117
+ onSelectBlock: C(P).selectBlock,
1118
+ onOpenAiChat: i[1] ||= (e) => C(V).aiChatOpen.value = !0,
1119
+ onOpenDesignReference: i[2] ||= (e) => C(V).designReferenceOpen.value = !0
1117
1120
  }, null, 8, [
1118
1121
  "viewport",
1119
1122
  "content",
@@ -1123,51 +1126,51 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1123
1126
  "locked-blocks",
1124
1127
  "onSelectBlock"
1125
1128
  ])])], 2),
1126
- n.config.branding !== !1 && !C(L).isWhiteLabeled.value ? (e(), x(ae, {
1129
+ n.config.branding !== !1 && !C(I).isWhiteLabeled.value ? (e(), x(oe, {
1127
1130
  key: 0,
1128
- "position-class": [C(F).state.previewMode ? "tpl:left-0 tpl:right-0" : C(H).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1131
+ "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]"]
1129
1132
  }, null, 8, ["position-class"])) : v("", !0),
1130
1133
  f("div", {
1131
1134
  class: "tpl-sr-only",
1132
1135
  role: "status",
1133
1136
  "aria-live": "polite",
1134
1137
  "aria-atomic": "true",
1135
- "aria-label": C(I).t.landmarks.reorderAnnouncements
1136
- }, w(C(I).keyboardReorder.announcement.value), 9, Nt),
1137
- t(E(oe, {
1138
- "selected-block": C(F).selectedBlock.value,
1139
- settings: C(F).content.value.settings,
1140
- "shifted-left": C(H).rightPanelOpen.value,
1141
- onUpdateBlock: i[3] ||= (e) => C(F).updateBlock(C(F).selectedBlock.value.id, e),
1142
- onDeleteBlock: i[4] ||= (e) => C(I).blockActions.deleteBlock(C(F).selectedBlock.value.id),
1143
- onDuplicateBlock: i[5] ||= (e) => C(I).blockActions.duplicateBlock(C(F).selectedBlock.value),
1144
- onUpdateSettings: C(F).updateSettings
1138
+ "aria-label": C(F).t.landmarks.reorderAnnouncements
1139
+ }, w(C(F).keyboardReorder.announcement.value), 9, Nt),
1140
+ t(E(se, {
1141
+ "selected-block": C(P).selectedBlock.value,
1142
+ settings: C(P).content.value.settings,
1143
+ "shifted-left": C(V).rightPanelOpen.value,
1144
+ onUpdateBlock: i[3] ||= (e) => C(P).updateBlock(C(P).selectedBlock.value.id, e),
1145
+ onDeleteBlock: i[4] ||= (e) => C(F).blockActions.deleteBlock(C(P).selectedBlock.value.id),
1146
+ onDuplicateBlock: i[5] ||= (e) => C(F).blockActions.duplicateBlock(C(P).selectedBlock.value),
1147
+ onUpdateSettings: C(P).updateSettings
1145
1148
  }, null, 8, [
1146
1149
  "selected-block",
1147
1150
  "settings",
1148
1151
  "shifted-left",
1149
1152
  "onUpdateSettings"
1150
- ]), [[y, !C(F).state.previewMode]]),
1153
+ ]), [[y, !C(P).state.previewMode]]),
1151
1154
  !C(S) && C(D) ? (e(), x(pt, {
1152
1155
  key: 1,
1153
1156
  ref_key: "cloudPanelsRef",
1154
1157
  ref: d,
1155
1158
  config: l.config,
1156
- editor: C(F),
1157
- core: C(I),
1158
- "panel-state": C(H),
1159
+ editor: C(P),
1160
+ core: C(F),
1161
+ "panel-state": C(V),
1159
1162
  "plan-config-instance": C(A),
1160
- "test-email": C(V),
1161
- "media-lib": C(R),
1162
- "saved-modules-headless": C(te),
1163
- "show-save-module-dialog": C(G),
1164
- "save-module-pre-selected-block-id": C(q),
1165
- "show-module-browser-modal": C(K),
1166
- "onUpdate:showSaveModuleDialog": i[6] ||= (e) => G.value = e,
1167
- "onUpdate:saveModulePreSelectedBlockId": i[7] ||= (e) => q.value = e,
1168
- "onUpdate:showModuleBrowserModal": i[8] ||= (e) => K.value = e,
1169
- onSendTestEmail: ue,
1170
- onModuleInsert: de
1163
+ "test-email": C(B),
1164
+ "media-lib": C(L),
1165
+ "saved-modules-headless": C(ne),
1166
+ "show-save-module-dialog": C(W),
1167
+ "save-module-pre-selected-block-id": C(K),
1168
+ "show-module-browser-modal": C(G),
1169
+ "onUpdate:showSaveModuleDialog": i[6] ||= (e) => W.value = e,
1170
+ "onUpdate:saveModulePreSelectedBlockId": i[7] ||= (e) => K.value = e,
1171
+ "onUpdate:showModuleBrowserModal": i[8] ||= (e) => G.value = e,
1172
+ onSendTestEmail: de,
1173
+ onModuleInsert: J
1171
1174
  }, null, 8, [
1172
1175
  "config",
1173
1176
  "editor",
@@ -1182,12 +1185,12 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1182
1185
  "show-module-browser-modal"
1183
1186
  ])) : v("", !0),
1184
1187
  f("div", {
1185
- ref: (e) => C(I).popoverRoot.value = e,
1188
+ ref: (e) => C(F).popoverRoot.value = e,
1186
1189
  class: "tpl-popover-root"
1187
1190
  }, null, 512),
1188
- E(le)
1191
+ E(ue)
1189
1192
  ], 14, At));
1190
1193
  }
1191
- }), [["__scopeId", "data-v-ae54dc42"]]);
1194
+ }), [["__scopeId", "data-v-3a8bb0e8"]]);
1192
1195
  //#endregion
1193
1196
  export { Pt as default };