@aswin.dev/editor 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/{AccessibilityPanel-EmQ19wiS.js → AccessibilityPanel-COL6Wm7p.js} +1 -1
  2. package/dist/{AiChatSidebar-DeB0w_32.js → AiChatSidebar-Dt5pvG5t.js} +9 -9
  3. package/dist/{AiFeatureMenu-DoLD5Cde.js → AiFeatureMenu-BipxcGap.js} +5 -5
  4. package/dist/{BlockA11yBadge-DkNbDvJA.js → BlockA11yBadge-Qs6HtXid.js} +1 -1
  5. package/dist/{CloudEditor-zo9PjjvY.js → CloudEditor-CnUX0IOW.js} +327 -290
  6. package/dist/{CollaboratorBar-BsXMY-8e.js → CollaboratorBar-NaaZTjbs.js} +2 -2
  7. package/dist/{CommentsSidebar-DIWIa4rS.js → CommentsSidebar-DE6ZsM4D.js} +15 -16
  8. package/dist/CountdownBlock-Ba3T-i2X.js +1536 -0
  9. package/dist/{CountdownToolbar-BuS8p5ju.js → CountdownToolbar-CbhSp_uq.js} +2 -2
  10. package/dist/{DesignReferenceSidebar-RDlnhL-6.js → DesignReferenceSidebar-CZg97bbj.js} +5 -5
  11. package/dist/{LoadingTrack-BJ59h9ok.js → LoadingTrack-Ba2pfF57.js} +1 -1
  12. package/dist/{ModuleBrowserModal-b7HbpByz.js → ModuleBrowserModal-D2EVdexc.js} +7 -7
  13. package/dist/{ModulePreviewCanvas-D__YlOLS.js → ModulePreviewCanvas-P3N-nxkU.js} +52 -47
  14. package/dist/{NumberWithSuffix-Ca3vNY84.js → NumberWithSuffix-CihczoAd.js} +2 -2
  15. package/dist/{ParagraphEditor-B1aYPO-6.js → ParagraphEditor-BbRuKhWv.js} +23 -23
  16. package/dist/{RichTextEditorContent-BmEVMrkJ.js → RichTextEditorContent-CrqPQdnk.js} +1 -1
  17. package/dist/{SaveModuleDialog-ClovqI6h.js → SaveModuleDialog-DLZa3m3O.js} +3 -3
  18. package/dist/{SnapshotHistory-DoqtH0cw.js → SnapshotHistory-Csg1_jXi.js} +5 -5
  19. package/dist/{TemplateScoringPanel-DQv2ZAiL.js → TemplateScoringPanel-CS7o62zS.js} +7 -7
  20. package/dist/{TestEmailModal-iIeYJYsj.js → TestEmailModal-m3okLbJz.js} +3 -3
  21. package/dist/{TitleEditor-CTDIwRF_.js → TitleEditor-CtJIS5ER.js} +7 -7
  22. package/dist/{TplModal-CBq1J1pG.js → TplModal-CQCrKeKP.js} +1 -1
  23. package/dist/{blockTypeIcons-QkC6f5UE.js → blockTypeIcons-Dah0pgt-.js} +50 -19
  24. package/dist/bundle-stats.json +7 -7
  25. package/dist/cdn/chunks/{AccessibilityPanel-BeU8nz7A.js → AccessibilityPanel-Bt_fD7QT.js} +8 -8
  26. package/dist/cdn/chunks/{AccessibilityPanel-BeU8nz7A.js.map → AccessibilityPanel-Bt_fD7QT.js.map} +1 -1
  27. package/dist/cdn/chunks/{AiFeatureMenu-B2mhscyP.js → AiFeatureMenu-Bn-0rgfr.js} +8 -8
  28. package/dist/cdn/chunks/{AiFeatureMenu-B2mhscyP.js.map → AiFeatureMenu-Bn-0rgfr.js.map} +1 -1
  29. package/dist/cdn/chunks/{BlockA11yBadge-C4g77gF0.js → BlockA11yBadge-Cj18Iw0p.js} +4 -4
  30. package/dist/cdn/chunks/{BlockA11yBadge-C4g77gF0.js.map → BlockA11yBadge-Cj18Iw0p.js.map} +1 -1
  31. package/dist/cdn/chunks/{CloudEditor-Btyr0b0_.js → CloudEditor-56lVcdot.js} +312 -275
  32. package/dist/cdn/chunks/CloudEditor-56lVcdot.js.map +1 -0
  33. package/dist/cdn/chunks/{CollaboratorBar-YBiIjiRh.js → CollaboratorBar-B7DCV3xp.js} +3 -3
  34. package/dist/cdn/chunks/{CollaboratorBar-YBiIjiRh.js.map → CollaboratorBar-B7DCV3xp.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-C9XZr33O.js → CountdownToolbar-BtaD3d3-.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-C9XZr33O.js.map → CountdownToolbar-BtaD3d3-.js.map} +1 -1
  37. package/dist/cdn/chunks/{ModuleBrowserModal-C2CDWKW6.js → ModuleBrowserModal-CiIY7ZGv.js} +7 -7
  38. package/dist/cdn/chunks/{ModuleBrowserModal-C2CDWKW6.js.map → ModuleBrowserModal-CiIY7ZGv.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModulePreviewCanvas-Drt8Evai.js → ModulePreviewCanvas-M7_OGV2m.js} +55 -51
  40. package/dist/cdn/chunks/ModulePreviewCanvas-M7_OGV2m.js.map +1 -0
  41. package/dist/cdn/chunks/{NumberWithSuffix-Ty1bp9vB.js → NumberWithSuffix-DfVBnsgc.js} +3 -3
  42. package/dist/cdn/chunks/{NumberWithSuffix-Ty1bp9vB.js.map → NumberWithSuffix-DfVBnsgc.js.map} +1 -1
  43. package/dist/cdn/chunks/{ParagraphEditor-BA1WbHI7.js → ParagraphEditor-1XJOpiLX.js} +45 -45
  44. package/dist/cdn/chunks/{ParagraphEditor-BA1WbHI7.js.map → ParagraphEditor-1XJOpiLX.js.map} +1 -1
  45. package/dist/cdn/chunks/{RichTextEditorContent-BtWCA_Oc.js → RichTextEditorContent-C2q8sbp2.js} +4 -4
  46. package/dist/cdn/chunks/{RichTextEditorContent-BtWCA_Oc.js.map → RichTextEditorContent-C2q8sbp2.js.map} +1 -1
  47. package/dist/cdn/chunks/{SaveModuleDialog-AwL0tkCV.js → SaveModuleDialog-BNxh1jPT.js} +4 -4
  48. package/dist/cdn/chunks/{SaveModuleDialog-AwL0tkCV.js.map → SaveModuleDialog-BNxh1jPT.js.map} +1 -1
  49. package/dist/cdn/chunks/{TitleEditor-DbSyeixS.js → TitleEditor-IF7VzLTk.js} +13 -13
  50. package/dist/cdn/chunks/{TitleEditor-DbSyeixS.js.map → TitleEditor-IF7VzLTk.js.map} +1 -1
  51. package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js +24 -0
  52. package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js.map +1 -0
  53. package/dist/{de-2LEvILeZ.js → cdn/chunks/de-B05yW8Gi.js} +74 -3
  54. package/dist/cdn/chunks/de-B05yW8Gi.js.map +1 -0
  55. package/dist/cdn/chunks/{de-RQrZR56a.js → de-BPHtelu7.js} +1 -1
  56. package/dist/cdn/chunks/{de-RQrZR56a.js.map → de-BPHtelu7.js.map} +1 -1
  57. package/dist/cdn/chunks/{de-Ce-LbJ2J.js → de-BRDqJwJe.js} +1 -1
  58. package/dist/cdn/chunks/{de-Ce-LbJ2J.js.map → de-BRDqJwJe.js.map} +1 -1
  59. package/dist/cdn/chunks/{emojiData-EMFlj6FJ.js → emojiData-DUHzsh4j.js} +1 -1
  60. package/dist/cdn/chunks/{emojiData-EMFlj6FJ.js.map → emojiData-DUHzsh4j.js.map} +1 -1
  61. package/dist/cdn/chunks/{en-CNqLoIm9.js → en-BII7695P.js} +73 -4
  62. package/dist/cdn/chunks/en-BII7695P.js.map +1 -0
  63. package/dist/cdn/chunks/{en-DiCWK5fG.js → en-Cdj_Ikl1.js} +1 -1
  64. package/dist/cdn/chunks/{en-DiCWK5fG.js.map → en-Cdj_Ikl1.js.map} +1 -1
  65. package/dist/cdn/chunks/{en-Bl1ecfRF.js → en-DejwuJhw.js} +1 -1
  66. package/dist/cdn/chunks/{en-Bl1ecfRF.js.map → en-DejwuJhw.js.map} +1 -1
  67. package/dist/cdn/chunks/{extensions-BVKQw_sp.js → extensions-B0eT-yjf.js} +22 -22
  68. package/dist/cdn/chunks/{extensions-BVKQw_sp.js.map → extensions-B0eT-yjf.js.map} +1 -1
  69. package/dist/cdn/chunks/{features-DIBEo4xl.js → features-BrvE2Fzv.js} +2934 -1170
  70. package/dist/cdn/chunks/features-BrvE2Fzv.js.map +1 -0
  71. package/dist/cdn/chunks/{icons-C1Gg-ov-.js → icons-C7wtAD8p.js} +111 -60
  72. package/dist/cdn/chunks/icons-C7wtAD8p.js.map +1 -0
  73. package/dist/cdn/chunks/{liquid.browser-lQbkge2E.js → liquid.browser-CllF-us3.js} +1 -1
  74. package/dist/cdn/chunks/{liquid.browser-lQbkge2E.js.map → liquid.browser-CllF-us3.js.map} +1 -1
  75. package/dist/cdn/chunks/{media-library-BTF_Ko70.js → media-library-Cl5XuaKy.js} +676 -660
  76. package/dist/cdn/chunks/media-library-Cl5XuaKy.js.map +1 -0
  77. package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-i7-OBujc.js} +1 -1
  78. package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-i7-OBujc.js.map} +1 -1
  79. package/dist/cdn/chunks/{quality-C5AmotmP.js → quality-Va91a3N8.js} +40 -40
  80. package/dist/cdn/chunks/{quality-C5AmotmP.js.map → quality-Va91a3N8.js.map} +1 -1
  81. package/dist/cdn/chunks/{renderer-D0L44Vlp.js → renderer-si0Zgxeb.js} +17 -17
  82. package/dist/cdn/chunks/{renderer-D0L44Vlp.js.map → renderer-si0Zgxeb.js.map} +1 -1
  83. package/dist/cdn/chunks/{src-RKexlYjA.js → src-BLyYIbdZ.js} +10 -10
  84. package/dist/cdn/chunks/{src-RKexlYjA.js.map → src-BLyYIbdZ.js.map} +1 -1
  85. package/dist/cdn/chunks/{styleConstants-PgmvNBzQ.js → styleConstants-DfcU8u_r.js} +1 -1
  86. package/dist/cdn/chunks/{styleConstants-PgmvNBzQ.js.map → styleConstants-DfcU8u_r.js.map} +1 -1
  87. package/dist/cdn/chunks/{styles-CQR6ed13.js → styles-C6BQLT9F.js} +2174 -1343
  88. package/dist/cdn/chunks/styles-C6BQLT9F.js.map +1 -0
  89. package/dist/cdn/chunks/{tiptap-CDzAbF2j.js → tiptap-D8whBv5F.js} +2 -2
  90. package/dist/cdn/chunks/{tiptap-CDzAbF2j.js.map → tiptap-D8whBv5F.js.map} +1 -1
  91. package/dist/cdn/editor.css +1 -1
  92. package/dist/cdn/editor.js +146 -117
  93. package/dist/cdn/editor.js.map +1 -1
  94. package/dist/{cloud-DJG4tb4_.js → cloud-BoS0J0vs.js} +1 -1
  95. package/dist/{cdn/chunks/de-_tooy3Q8.js → de-C74F9xK3.js} +72 -5
  96. package/dist/{dist-BSJvAvH3.js → dist-BUzw1buG.js} +1 -1
  97. package/dist/{dist-b-XUqAoF.js → dist-BZyY-SS4.js} +1 -1
  98. package/dist/{dist-Df4ie7vZ.js → dist-BadNx4qo.js} +1 -1
  99. package/dist/{dist-wfAedlzi.js → dist-BesOh2mk.js} +1 -1
  100. package/dist/{dist-kZfaVUpW.js → dist-Bz3M4RXG.js} +3 -3
  101. package/dist/{dist-Bmir0gYb.js → dist-C2grMquk.js} +233 -139
  102. package/dist/{dist-BvPgo-UK.js → dist-C3T2AKtB.js} +1 -1
  103. package/dist/{dist-CPVBKMmd.js → dist-C9ckKEZL.js} +1 -1
  104. package/dist/{dist-DxOoemkW.js → dist-CBItRG-Z.js} +1 -1
  105. package/dist/{dist-BeFnymxK.js → dist-COSzWQUs.js} +1 -1
  106. package/dist/{dist-CivF9P8b.js → dist-Djgi0A6k.js} +92 -77
  107. package/dist/{dist-BHAeXaUY.js → dist-DtiDUrX-.js} +1 -1
  108. package/dist/{dist-HEQ52gTJ.js → dist-Dzt5foyL.js} +1 -1
  109. package/dist/{en-D2RU2Poj.js → en-B24jVTeO.js} +72 -3
  110. package/dist/{extensions-BQ1xXx3d.js → extensions-DsmjHqBF.js} +21 -21
  111. package/dist/index.d.ts +8 -8
  112. package/dist/{pencil-BZJPNYWR.js → pencil-Bpimrzzw.js} +5 -2
  113. package/dist/style.css +1 -1
  114. package/dist/{styles-CavWjvol.js → styles-BMFMtR9R.js} +2121 -1267
  115. package/dist/templatical-editor.js +149 -120
  116. package/dist/{useEditorCore-BGnzcT7p.js → useEditorCore-CtNAo0uy.js} +2331 -2202
  117. package/dist/useMergeTag-2vTcVpNo.js +34 -0
  118. package/package.json +7 -7
  119. package/dist/CountdownBlock-BCi7-DAM.js +0 -92
  120. package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js.map +0 -1
  121. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js +0 -93
  122. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js.map +0 -1
  123. package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js.map +0 -1
  124. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js +0 -23
  125. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js.map +0 -1
  126. package/dist/cdn/chunks/de-_tooy3Q8.js.map +0 -1
  127. package/dist/cdn/chunks/en-CNqLoIm9.js.map +0 -1
  128. package/dist/cdn/chunks/features-DIBEo4xl.js.map +0 -1
  129. package/dist/cdn/chunks/icons-C1Gg-ov-.js.map +0 -1
  130. package/dist/cdn/chunks/media-library-BTF_Ko70.js.map +0 -1
  131. package/dist/cdn/chunks/styles-CQR6ed13.js.map +0 -1
  132. package/dist/check-DJrpDKO_.js +0 -7
  133. package/dist/useMergeTag-CfuZq2fF.js +0 -34
  134. /package/dist/{_plugin-vue_export-helper-Bwh4ceeO.js → _plugin-vue_export-helper-BVAJ4lgT.js} +0 -0
  135. /package/dist/{clock-ik2pRJKG.js → clock-Ba4p3rJM.js} +0 -0
  136. /package/dist/{de-D2npYjrZ.js → de-GOtR9DwW.js} +0 -0
  137. /package/dist/{dist-DvHLtWVP.js → dist-DXa1uAMh.js} +0 -0
  138. /package/dist/{emojiData-DvQBBzmO.js → emojiData-DrBuvEoP.js} +0 -0
  139. /package/dist/{en-ib-4h3_o.js → en-dFFQVzNn.js} +0 -0
  140. /package/dist/{formatRelativeTime-CFDZnEIs.js → formatRelativeTime-BhhO8yCl.js} +0 -0
  141. /package/dist/{liquid.browser-7Rv0QDiO.js → liquid.browser-BvCyLQII.js} +0 -0
  142. /package/dist/{scan-line-DlghmhNf.js → scan-line-CzfFJO1o.js} +0 -0
  143. /package/dist/{send-DDdhIRj8.js → send-D2eSo4GH.js} +0 -0
  144. /package/dist/{shield-check-OSQ-JVTX.js → shield-check-jkpgcC0-.js} +0 -0
  145. /package/dist/{sparkles-BN4a-CoF.js → sparkles-Chm5CZfb.js} +0 -0
  146. /package/dist/{styleConstants-wWRbcuEK.js → styleConstants-34eUKPOZ.js} +0 -0
  147. /package/dist/{text-align-start-D1weisjS.js → text-align-start-CzBnJsW8.js} +0 -0
  148. /package/dist/{trash-2-CMWvQ5KX.js → trash-2-CtK2apEH.js} +0 -0
  149. /package/dist/{triangle-alert-DyidRNX_.js → triangle-alert-KpDVNbpn.js} +0 -0
  150. /package/dist/{undo-2-Cg8I7obC.js → undo-2-m1EUDbUg.js} +0 -0
  151. /package/dist/{useCloudI18n-BTTNBk5i.js → useCloudI18n-DOKSZql1.js} +0 -0
  152. /package/dist/{x-CgIhNcT9.js → x-BkaOMosX.js} +0 -0
@@ -1,17 +1,17 @@
1
1
  import { C as e, F as t, G as n, H as r, I as i, M as a, N as o, P as s, Q as c, S as l, W as u, _ as d, b as f, ct as p, d as m, dt as h, f as g, ft as _, g as v, h as y, l as b, m as x, n as S, rt as C, tt as w, ut as T, v as E, x as D, y as O } from "./draggable-C-1_gch3.js";
2
- import { C as k, D as A, Dt as j, Ft as ee, Gt as M, Kt as N, Lt as P, Mt as F, Nn as I, On as L, Ot as R, Pn as te, S as z, Vn as B, Vt as V, Wt as ne, X as re, _ as H, b as ie, bn as U, c as W, cn as ae, d as G, et as K, f as q, g as J, h as Y, in as oe, k as se, l as X, ln as Z, m as ce, nn as le, nt as ue, p as de, pt as fe, rn as pe, st as me, tn as he, tr as Q, u as ge, ut as $, v as _e, vt as ve, x as ye, y as be, yt as xe, zt as Se } from "./features-DIBEo4xl.js";
3
- import { T as Ce, w as we } from "./icons-C1Gg-ov-.js";
4
- import { a as Te, c as Ee, d as De, f as Oe, h as ke, i as Ae, l as je, m as Me, n as Ne, p as Pe, r as Fe, s as Ie, t as Le, u as Re } from "./styles-CQR6ed13.js";
5
- import { d as ze } from "./styleConstants-PgmvNBzQ.js";
2
+ import { $ as k, At as A, Bt as j, C as M, D as N, Ft as P, Ht as ee, Jt as F, Kn as I, Mn as te, Rn as L, Rt as ne, S as R, St as z, Wt as B, Yt as re, _ as ie, an as ae, at as V, b as oe, c as se, d as H, dn as ce, f as U, fn as W, g as G, gt as K, h as q, in as le, jt as J, k as Y, l as X, m as ue, on as de, or as fe, p as pe, pt as me, qt as he, rt as Z, sn as Q, u as ge, ut as $, v as _e, wn as ve, x as ye, xt as be, y as xe, zn as Se } from "./features-BrvE2Fzv.js";
3
+ import { E as Ce, T as we } from "./icons-C7wtAD8p.js";
4
+ import { a as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, l as Me, m as Ne, n as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze } from "./styles-C6BQLT9F.js";
5
+ import { d as Be } from "./styleConstants-DfcU8u_r.js";
6
6
  //#region src/cloud/composables/useSnapshotPreview.ts
7
- function Be(e) {
7
+ function Ve(e) {
8
8
  let { authManager: t, editor: n, history: r, conditionPreview: i, autoSave: a, onError: o } = e, s = C(null), l = w(null), u = w(null), d = !1;
9
9
  c(() => {
10
10
  d = !0;
11
11
  });
12
12
  let f = x(() => l.value !== null), p = x(() => s.value?.snapshots.value ?? []), m = x(() => s.value?.isLoading.value ?? !1), h = x(() => s.value?.isRestoring.value ?? !1);
13
13
  function g() {
14
- n.state.template?.id && !s.value && (s.value = de({
14
+ n.state.template?.id && !s.value && (s.value = pe({
15
15
  authManager: t,
16
16
  templateId: n.state.template.id,
17
17
  onRestore: _,
@@ -61,7 +61,7 @@ function Be(e) {
61
61
  }
62
62
  //#endregion
63
63
  //#region src/cloud/composables/useCloudPanelState.ts
64
- function Ve() {
64
+ function He() {
65
65
  let e = w(null), t = x({
66
66
  get: () => e.value === "ai-chat",
67
67
  set: (t) => e.value = t ? "ai-chat" : null
@@ -84,7 +84,7 @@ function Ve() {
84
84
  function m(t) {
85
85
  c.value = !1, e.value = e.value === t ? null : t;
86
86
  }
87
- return Z(l, () => {
87
+ return W(l, () => {
88
88
  c.value = !1;
89
89
  }), {
90
90
  activePanel: e,
@@ -106,10 +106,10 @@ function Ve() {
106
106
  }
107
107
  //#endregion
108
108
  //#region src/cloud/composables/useCollabUndoWarning.ts
109
- function He(e) {
110
- let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = w(!1), a = w(!1), { start: o } = U(() => {
109
+ function Ue(e) {
110
+ let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = w(!1), a = w(!1), { start: o } = ve(() => {
111
111
  a.value = !1;
112
- }, Q, { immediate: !1 });
112
+ }, fe, { immediate: !1 });
113
113
  function s() {
114
114
  i.value || !t.value || n() === 0 || !r.value || (i.value = !0, a.value = !0, o());
115
115
  }
@@ -120,8 +120,8 @@ function He(e) {
120
120
  }
121
121
  //#endregion
122
122
  //#region src/cloud/composables/useCloudFeatureFlags.ts
123
- function Ue(e) {
124
- let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = x(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = x(() => t.hasFeature("test_email")), o = x(() => !!r.state.template?.id), s = x(() => t.hasFeature("white_label")), c = x(() => t.config.value?.limits.max_templates ?? null), l = x(() => t.config.value?.template_count ?? 0), u = w(!1), d = w("idle"), f = w(""), { start: p } = U(() => {
123
+ function We(e) {
124
+ let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = x(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = x(() => t.hasFeature("test_email")), o = x(() => !!r.state.template?.id), s = x(() => t.hasFeature("white_label")), c = x(() => t.config.value?.limits.max_templates ?? null), l = x(() => t.config.value?.template_count ?? 0), u = w(!1), d = w("idle"), f = w(""), { start: p } = ve(() => {
125
125
  d.value = "idle";
126
126
  }, 3e3, { immediate: !1 });
127
127
  return {
@@ -139,9 +139,9 @@ function Ue(e) {
139
139
  }
140
140
  //#endregion
141
141
  //#region src/cloud/composables/useCloudMediaLibrary.ts
142
- function We(e) {
143
- let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: r } = e, i = null;
144
- async function a() {
142
+ function Ge(e) {
143
+ let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: r, onTemplateWidthPreview: i } = e, a = null;
144
+ async function o() {
145
145
  if (t) {
146
146
  let e = await t({ accept: ["images"] });
147
147
  return e ? {
@@ -149,55 +149,60 @@ function We(e) {
149
149
  alt: e.alt_text || void 0
150
150
  } : null;
151
151
  }
152
- return i &&= (i(null), null), r.value = ["images"], n.value = !0, new Promise((e) => {
153
- i = (t) => {
152
+ return a &&= (a(null), null), r.value = ["images"], n.value = !0, new Promise((e) => {
153
+ a = (t) => {
154
154
  e(t);
155
155
  };
156
156
  });
157
157
  }
158
- function o(e) {
159
- n.value = !1, i?.({
158
+ function s(e, t) {
159
+ n.value = !1, a?.({
160
160
  url: e.url,
161
- alt: e.alt_text || void 0
162
- }), i = null;
161
+ alt: e.alt_text || void 0,
162
+ templateWidth: t
163
+ }), a = null;
163
164
  }
164
- function s() {
165
- n.value = !1, i?.(null), i = null;
165
+ function l(e) {
166
+ i?.(e);
167
+ }
168
+ function u() {
169
+ n.value = !1, a?.(null), a = null;
166
170
  }
167
171
  return c(() => {
168
- i &&= (i(null), null);
172
+ a &&= (a(null), null);
169
173
  }), {
170
- handleRequestMedia: a,
171
- handleMediaSelect: o,
172
- handleMediaLibraryClose: s
174
+ handleRequestMedia: o,
175
+ handleMediaSelect: s,
176
+ handleMediaLibraryClose: u,
177
+ handleMediaTemplateWidthPreview: l
173
178
  };
174
179
  }
175
180
  //#endregion
176
181
  //#region src/cloud/composables/useCloudInitialization.ts
177
- function Ge(e) {
178
- let { config: n, translations: i, fontsManager: a, emit: o, getCommentsSidebar: s } = e, c = w(!0), l = w(!1), u = w(null), d = !1, f = { value: null }, p = null, m = null, h = new A({
182
+ function Ke(e) {
183
+ let { config: n, translations: i, fontsManager: a, emit: o, getCommentsSidebar: s } = e, c = w(!0), l = w(!1), u = w(null), d = !1, f = { value: null }, p = null, m = null, h = new N({
179
184
  ...n.auth,
180
185
  onError: n.onError
181
186
  }), g = ge({
182
187
  authManager: h,
183
188
  onError: n.onError
184
- }), _ = w(/* @__PURE__ */ new Map()), v = z({
189
+ }), _ = w(/* @__PURE__ */ new Map()), v = R({
185
190
  authManager: h,
186
191
  defaultFontFamily: n.fonts?.defaultFont,
187
192
  templateDefaults: n.templateDefaults,
188
193
  onError: n.onError,
189
194
  lockedBlocks: _
190
- }), y = Y({
195
+ }), y = q({
191
196
  authManager: h,
192
197
  onError: n.onError
193
198
  });
194
- n.mcp?.enabled && W({
199
+ n.mcp?.enabled && se({
195
200
  editor: v,
196
201
  channel: y.channel,
197
202
  onOperation: n.mcp.onOperation
198
203
  });
199
204
  let b = null;
200
- n.collaboration?.enabled && (b = H({
205
+ n.collaboration?.enabled && (b = ie({
201
206
  authManager: h,
202
207
  editor: v,
203
208
  channel: y.channel,
@@ -208,8 +213,8 @@ function Ge(e) {
208
213
  onBlockUnlocked: n.collaboration.onBlockUnlocked
209
214
  }), r(() => b.lockedBlocks.value, (e) => {
210
215
  _.value = e;
211
- }, { immediate: !0 }), J(v, b));
212
- let S = x(() => !!n.collaboration?.enabled && g.hasFeature("collaboration")), C = se({
216
+ }, { immediate: !0 }), G(v, b));
217
+ let S = x(() => !!n.collaboration?.enabled && g.hasFeature("collaboration")), C = Y({
213
218
  editor: v,
214
219
  config: {
215
220
  uiTheme: n.uiTheme,
@@ -239,13 +244,13 @@ function Ge(e) {
239
244
  },
240
245
  themeExtraStyles: () => ({ "--tpl-drop-text": `"${i.canvas.dropHere}"` }),
241
246
  keyboardOptions: { onBeforeUndo: () => m?.showCollabUndoWarning() }
242
- }), T = He({
247
+ }), T = Ue({
243
248
  isCollaborationEnabled: S,
244
249
  getCollaboratorCount: () => b?.collaborators.value.length ?? 0,
245
250
  canUndo: C.history.canUndo
246
251
  });
247
252
  m = T;
248
- let E = Be({
253
+ let E = Ve({
249
254
  authManager: h,
250
255
  editor: v,
251
256
  history: C.history,
@@ -254,24 +259,24 @@ function Ge(e) {
254
259
  onError: n.onError
255
260
  });
256
261
  p = E;
257
- let D = Ve(), O = ye(n.ai), k = Ue({
262
+ let D = He(), O = ye(n.ai), A = We({
258
263
  planConfigInstance: g,
259
264
  aiConfig: O,
260
265
  editor: v
261
- }), j = We({
266
+ }), j = Ge({
262
267
  onRequestMedia: n.onRequestMedia,
263
268
  mediaLibraryOpen: D.mediaLibraryOpen,
264
269
  mediaLibraryAccept: D.mediaLibraryAccept
265
270
  });
266
- re({
271
+ k({
267
272
  onBlockMove: v.moveBlock,
268
273
  onBlockAdd: v.addBlock
269
274
  });
270
- let M = G({
275
+ let M = H({
271
276
  authManager: h,
272
277
  getFontsConfig: () => n.fonts,
273
278
  canUseCustomFonts: () => g.hasFeature("custom_fonts")
274
- }), P = q({
279
+ }), P = U({
275
280
  authManager: h,
276
281
  getTemplateId: () => v.state.template?.id ?? null,
277
282
  save: () => v.save(),
@@ -279,7 +284,7 @@ function Ge(e) {
279
284
  onError: n.onError,
280
285
  isAuthReady: l,
281
286
  onBeforeTestEmail: n.onBeforeTestEmail
282
- }), F = be({
287
+ }), F = xe({
283
288
  authManager: h,
284
289
  getTemplateId: () => v.state.template?.id ?? null,
285
290
  getSocketId: () => y.getSocketId(),
@@ -292,42 +297,42 @@ function Ge(e) {
292
297
  comments: F,
293
298
  channel: y.channel
294
299
  });
295
- let I = ce({
300
+ let I = ue({
296
301
  authManager: h,
297
302
  onError: n.onError
298
- }), L = w(!1), R = w(null), te = w(!1), B = ie({
303
+ }), te = w(!1), L = w(null), z = w(!1), ae = oe({
299
304
  authManager: h,
300
305
  getTemplateId: () => v.state.template?.id ?? null
301
306
  });
302
- function U(e) {
307
+ function V(e) {
303
308
  D.commentsOpen.value = !0, queueMicrotask(() => {
304
309
  s()?.filterByBlock(e);
305
310
  });
306
311
  }
307
- t(he, j.handleRequestMedia), t(V, h), t(Se, O), t(N, F), t(pe, I), t(oe, B), t(ne, {
312
+ t(le, j.handleRequestMedia), t(B, h), t(ee, O), t(re, F), t(de, I), t(Q, ae), t(he, {
308
313
  plan: g,
309
314
  ai: O,
310
315
  comments: {
311
316
  getBlockCount: (e) => F.commentCountByBlock.value.get(e) ?? 0,
312
- openForBlock: U
317
+ openForBlock: V
313
318
  },
314
319
  savedModules: {
315
320
  openSaveDialog: (e) => {
316
- R.value = e ?? null, L.value = !0;
321
+ L.value = e ?? null, te.value = !0;
317
322
  },
318
323
  openBrowser: () => {
319
- te.value = !0;
324
+ z.value = !0;
320
325
  },
321
326
  moduleCount: x(() => I.modules.value.length)
322
327
  }
323
328
  });
324
- function ae(e) {
329
+ function ce(e) {
325
330
  g.hasFeature("theme_customization") && (C.themeOverrides.value = e);
326
331
  }
327
- function K(e) {
332
+ function W(e) {
328
333
  v.setUiTheme(e);
329
334
  }
330
- async function Z() {
335
+ async function K() {
331
336
  c.value = !0, u.value = null;
332
337
  try {
333
338
  if (await h.initialize(), d) return;
@@ -336,7 +341,7 @@ function Ge(e) {
336
341
  if (d) return;
337
342
  if (!e.api.ok) throw Error("Health check failed: API is not reachable");
338
343
  if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
339
- if (e.websocket.ok || ee.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await g.fetchConfig(), d) return;
344
+ if (e.websocket.ok || ne.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await g.fetchConfig(), d) return;
340
345
  a.setCustomFontsEnabled(g.hasFeature("custom_fonts")), n.customBlocks?.length && g.hasFeature("custom_blocks") && C.registerCustomBlocks(n.customBlocks), n.theme && g.hasFeature("theme_customization") && (C.themeOverrides.value = n.theme), n.modules !== !1 && g.hasFeature("saved_modules") && I.loadModules(), o("ready");
341
346
  } catch (e) {
342
347
  if (d) return;
@@ -346,7 +351,7 @@ function Ge(e) {
346
351
  d || (c.value = !1);
347
352
  }
348
353
  }
349
- function le() {
354
+ function J() {
350
355
  d = !0, a.cleanupFontLinks(), y.disconnect(), C.destroy(), n.onUnmount?.();
351
356
  }
352
357
  return {
@@ -362,32 +367,32 @@ function Ge(e) {
362
367
  editor: v,
363
368
  core: C,
364
369
  aiConfig: O,
365
- featureFlags: k,
370
+ featureFlags: A,
366
371
  mediaLib: j,
367
372
  exporter: M,
368
373
  testEmail: P,
369
374
  commentsInstance: F,
370
375
  savedModulesHeadless: I,
371
- scoringInstance: B,
376
+ scoringInstance: ae,
372
377
  panelState: D,
373
378
  snapshotPreview: E,
374
379
  collabWarning: T,
375
- showSaveModuleDialog: L,
376
- showModuleBrowserModal: te,
377
- saveModulePreSelectedBlockId: R,
380
+ showSaveModuleDialog: te,
381
+ showModuleBrowserModal: z,
382
+ saveModulePreSelectedBlockId: L,
378
383
  onSaveHook: f,
379
- initialize: Z,
380
- destroy: le,
381
- setThemeOverrides: ae,
382
- setUiTheme: K,
383
- openCommentsForBlock: U
384
+ initialize: K,
385
+ destroy: J,
386
+ setThemeOverrides: ce,
387
+ setUiTheme: W,
388
+ openCommentsForBlock: V
384
389
  };
385
390
  }
386
391
  //#endregion
387
392
  //#region src/utils/preRenderCustomBlocks.ts
388
- async function Ke(e, t) {
393
+ async function qe(e, t) {
389
394
  let n = async (e) => {
390
- if (B(e)) {
395
+ if (I(e)) {
391
396
  let n = e;
392
397
  try {
393
398
  n.renderedHtml = await t.renderCustomBlock(n);
@@ -404,10 +409,10 @@ async function Ke(e, t) {
404
409
  }
405
410
  //#endregion
406
411
  //#region src/cloud/composables/useCloudLifecycle.ts
407
- function qe(e) {
412
+ function Je(e) {
408
413
  let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
409
414
  function u() {
410
- return k(i.config.value.websocket);
415
+ return M(i.config.value.websocket);
411
416
  }
412
417
  async function d(e) {
413
418
  let i = await n.create(e);
@@ -420,7 +425,7 @@ function qe(e) {
420
425
  async function p() {
421
426
  c.isSaveExporting.value = !0, c.saveStatus.value = "idle";
422
427
  try {
423
- if (await Ke(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
428
+ if (await qe(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
424
429
  let e = await n.save();
425
430
  if (l()) throw Error("Component unmounted during save");
426
431
  a.initSnapshotHistory(), a.snapshotHistoryInstance.value?.loadSnapshots();
@@ -447,7 +452,7 @@ function qe(e) {
447
452
  }
448
453
  //#endregion
449
454
  //#region src/cloud/composables/useCloudSaveGate.ts
450
- function Je(e) {
455
+ function Ye(e) {
451
456
  let t = w(!1), n = null, r = x(() => e.planConfig.value?.accessibility?.blockOnError === !0), i = x(() => r.value ? e.issues.value.filter((e) => e.severity === "error") : []), a = x(() => i.value.length > 0);
452
457
  async function o(e) {
453
458
  return a.value ? (n = e, t.value = !0, !1) : (await e(), !0);
@@ -470,7 +475,7 @@ function Je(e) {
470
475
  }
471
476
  //#endregion
472
477
  //#region src/cloud/components/CloudSaveGateModal.vue?vue&type=script&setup=true&lang.ts
473
- var Ye = ["aria-label"], Xe = { 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)]" }, Ze = { 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)]" }, $e = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, et = { 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" }, tt = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, nt = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, rt = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, it = /* @__PURE__ */ e({
478
+ var Xe = ["aria-label"], Ze = { 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)]" }, Qe = { class: "tpl:flex tpl:items-center tpl:gap-2" }, $e = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, et = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, tt = { 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" }, nt = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, rt = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, it = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, at = /* @__PURE__ */ e({
474
479
  __name: "CloudSaveGateModal",
475
480
  props: {
476
481
  open: { type: Boolean },
@@ -478,7 +483,7 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
478
483
  },
479
484
  emits: ["cancel", "confirm"],
480
485
  setup(e, { emit: t }) {
481
- let n = t, { t: r } = K();
486
+ let n = t, { t: r } = Z();
482
487
  return (t, a) => (s(), v(S, {
483
488
  "enter-active-class": "tpl:transition-opacity tpl:duration-150",
484
489
  "leave-active-class": "tpl:transition-opacity tpl:duration-150",
@@ -492,18 +497,18 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
492
497
  "aria-label": p(r).saveGate.title,
493
498
  class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
494
499
  onClick: a[2] ||= m((e) => n("cancel"), ["self"])
495
- }, [y("div", Xe, [
496
- y("header", Ze, [D(p(me), {
500
+ }, [y("div", Ze, [
501
+ y("header", Qe, [D(p($), {
497
502
  size: 18,
498
503
  "stroke-width": 2,
499
504
  class: "tpl:text-[var(--tpl-warning)]"
500
- }), y("h2", Qe, _(p(r).saveGate.title), 1)]),
501
- y("p", $e, _(p(r).saveGate.body), 1),
502
- y("ul", et, [(s(!0), E(g, null, i(e.issues, (e) => (s(), E("li", {
505
+ }), y("h2", $e, _(p(r).saveGate.title), 1)]),
506
+ y("p", et, _(p(r).saveGate.body), 1),
507
+ y("ul", tt, [(s(!0), E(g, null, i(e.issues, (e) => (s(), E("li", {
503
508
  key: `${e.ruleId}-${e.blockId ?? "template"}`,
504
509
  class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5"
505
- }, [y("span", tt, _(e.message), 1), y("span", nt, _(e.ruleId), 1)]))), 128))]),
506
- y("footer", rt, [y("button", {
510
+ }, [y("span", nt, _(e.message), 1), y("span", rt, _(e.ruleId), 1)]))), 128))]),
511
+ y("footer", it, [y("button", {
507
512
  type: "button",
508
513
  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)]",
509
514
  onClick: a[0] ||= (e) => n("cancel")
@@ -512,11 +517,11 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
512
517
  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",
513
518
  onClick: a[1] ||= (e) => n("confirm")
514
519
  }, _(p(r).saveGate.confirm), 1)])
515
- ])], 8, Ye)) : d("", !0)]),
520
+ ])], 8, Xe)) : d("", !0)]),
516
521
  _: 1
517
522
  }));
518
523
  }
519
- }), at = {
524
+ }), ot = {
520
525
  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",
521
526
  style: {
522
527
  "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)",
@@ -525,24 +530,24 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
525
530
  "box-shadow": "var(--tpl-shadow-md)",
526
531
  "border-bottom": "1px solid var(--tpl-border)"
527
532
  }
528
- }, ot = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, st = {
533
+ }, st = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, ct = {
529
534
  key: 0,
530
535
  class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
531
- }, ct = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, lt = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, ut = ["data-tooltip"], dt = {
536
+ }, lt = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, ut = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, dt = ["data-tooltip"], ft = {
532
537
  key: 1,
533
538
  "aria-live": "polite",
534
539
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
535
- }, ft = {
540
+ }, pt = {
536
541
  key: 2,
537
542
  "aria-live": "polite",
538
543
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
539
- }, pt = ["aria-label", "aria-expanded"], mt = {
544
+ }, mt = ["aria-label", "aria-expanded"], ht = {
540
545
  key: 0,
541
546
  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)]"
542
- }, ht = ["aria-expanded"], gt = {
547
+ }, gt = ["aria-expanded"], _t = {
543
548
  key: 0,
544
549
  class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
545
- }, _t = ["disabled"], vt = ["disabled"], yt = /* @__PURE__ */ e({
550
+ }, vt = ["disabled"], yt = ["disabled"], bt = /* @__PURE__ */ e({
546
551
  __name: "CloudHeader",
547
552
  props: {
548
553
  editor: {},
@@ -560,15 +565,15 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
560
565
  },
561
566
  emits: ["save"],
562
567
  setup(e) {
563
- let t = l(() => import("./CollaboratorBar-YBiIjiRh.js")), n = l(() => import("./features-DIBEo4xl.js").then((e) => e.r)), r = l(() => import("./AiFeatureMenu-B2mhscyP.js")), { t: i, format: a } = K();
564
- return (o, c) => (s(), E("header", at, [
565
- y("div", ot, [e.featureFlags.templateLimit.value === null ? d("", !0) : (s(), E("span", st, _(p(a)(p(i).header.templatesUsed, {
568
+ let t = l(() => import("./CollaboratorBar-B7DCV3xp.js")), n = l(() => import("./features-BrvE2Fzv.js").then((e) => e.r)), r = l(() => import("./AiFeatureMenu-Bn-0rgfr.js")), { t: i, format: a } = Z();
569
+ return (o, c) => (s(), E("header", ot, [
570
+ y("div", st, [e.featureFlags.templateLimit.value === null ? d("", !0) : (s(), E("span", ct, _(p(a)(p(i).header.templatesUsed, {
566
571
  used: e.featureFlags.templateCount.value,
567
572
  max: e.featureFlags.templateLimit.value
568
573
  })), 1))]),
569
- y("div", ct, [
574
+ y("div", lt, [
570
575
  D(De, { "on-before-undo": e.onBeforeHistoryUndo }, null, 8, ["on-before-undo"]),
571
- D(Re, {
576
+ D(ze, {
572
577
  viewport: e.editor.state.viewport,
573
578
  onChange: e.editor.setViewport
574
579
  }, null, 8, ["viewport", "onChange"]),
@@ -576,7 +581,7 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
576
581
  "dark-mode": e.editor.state.darkMode,
577
582
  onChange: e.editor.setDarkMode
578
583
  }, null, 8, ["dark-mode", "onChange"]),
579
- D(je, {
584
+ D(Me, {
580
585
  "preview-mode": e.editor.state.previewMode,
581
586
  onChange: e.editor.setPreviewMode
582
587
  }, null, 8, ["preview-mode", "onChange"]),
@@ -600,24 +605,24 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
600
605
  "onNavigate"
601
606
  ])) : d("", !0)
602
607
  ]),
603
- y("div", lt, [
608
+ y("div", ut, [
604
609
  e.featureFlags.saveStatus.value === "error" ? (s(), E("div", {
605
610
  key: 0,
606
611
  "aria-live": "assertive",
607
612
  class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
608
613
  "data-tooltip": e.featureFlags.saveErrorMessage.value
609
- }, [D(p(R), {
614
+ }, [D(p(J), {
610
615
  size: 12,
611
616
  "stroke-width": 2.5
612
- }), f(" " + _(p(i).header.saveFailed), 1)], 8, ut)) : e.featureFlags.saveStatus.value === "saved" ? (s(), E("div", dt, [D(p(F), {
617
+ }), f(" " + _(p(i).header.saveFailed), 1)], 8, dt)) : e.featureFlags.saveStatus.value === "saved" ? (s(), E("div", ft, [D(p(P), {
613
618
  size: 12,
614
619
  "stroke-width": 2.5
615
- }), f(" " + _(p(i).header.saved), 1)])) : e.editor.state.isDirty ? (s(), E("div", ft, [c[4] ||= y("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), f(" " + _(p(i).header.unsaved), 1)])) : d("", !0),
620
+ }), f(" " + _(p(i).header.saved), 1)])) : e.editor.state.isDirty ? (s(), E("div", pt, [c[4] ||= y("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), f(" " + _(p(i).header.unsaved), 1)])) : d("", !0),
616
621
  e.commentsInstance.isEnabled.value && e.featureFlags.hasTemplateSaved.value ? (s(), E("button", {
617
622
  key: 3,
618
623
  "aria-label": e.commentsInstance.unresolvedCount.value > 0 ? `${p(i).comments.button} (${e.commentsInstance.unresolvedCount.value})` : p(i).comments.button,
619
624
  "aria-expanded": e.panelState.commentsOpen.value,
620
- class: T(p(ze)),
625
+ class: T(p(Be)),
621
626
  style: h({
622
627
  backgroundColor: e.panelState.commentsOpen.value ? "var(--tpl-primary)" : "transparent",
623
628
  color: e.panelState.commentsOpen.value ? "var(--tpl-bg)" : "var(--tpl-primary)",
@@ -625,13 +630,13 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
625
630
  }),
626
631
  onClick: c[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
627
632
  }, [
628
- D(p(ve), {
633
+ D(p(be), {
629
634
  size: 16,
630
635
  "stroke-width": 2
631
636
  }),
632
637
  f(" " + _(p(i).comments.button) + " ", 1),
633
- e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (s(), E("span", mt, _(e.commentsInstance.unresolvedCount.value), 1)) : d("", !0)
634
- ], 14, pt)) : d("", !0),
638
+ e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (s(), E("span", ht, _(e.commentsInstance.unresolvedCount.value), 1)) : d("", !0)
639
+ ], 14, mt)) : d("", !0),
635
640
  e.featureFlags.canUseAiGeneration.value && e.featureFlags.hasTemplateSaved.value ? (s(), E("div", {
636
641
  key: 4,
637
642
  ref: (t) => e.panelState.aiMenuRef.value = t,
@@ -640,11 +645,11 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
640
645
  "aria-expanded": e.panelState.aiMenuOpen.value,
641
646
  class: T(["tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200", e.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
642
647
  onClick: c[1] ||= m((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
643
- }, [D(p($), {
648
+ }, [D(p(me), {
644
649
  size: 16,
645
650
  "stroke-width": 2,
646
651
  class: "tpl-ai-btn-icon"
647
- }), f(" " + _(p(i).aiChat.button), 1)], 10, ht), D(S, {
652
+ }), f(" " + _(p(i).aiChat.button), 1)], 10, gt), D(S, {
648
653
  "enter-active-class": "tpl:transition-all tpl:duration-150 tpl:ease-out",
649
654
  "enter-from-class": "tpl:scale-95 tpl:opacity-0",
650
655
  "enter-to-class": "tpl:scale-100 tpl:opacity-100",
@@ -652,7 +657,7 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
652
657
  "leave-from-class": "tpl:scale-100 tpl:opacity-100",
653
658
  "leave-to-class": "tpl:scale-95 tpl:opacity-0"
654
659
  }, {
655
- default: u(() => [e.panelState.aiMenuOpen.value ? (s(), E("div", gt, [D(p(r), {
660
+ default: u(() => [e.panelState.aiMenuOpen.value ? (s(), E("div", _t, [D(p(r), {
656
661
  "active-feature": e.panelState.activeAiFeature.value,
657
662
  onSelect: e.panelState.handleAiFeatureSelect
658
663
  }, null, 8, ["active-feature", "onSelect"])])) : d("", !0)]),
@@ -660,7 +665,7 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
660
665
  })], 512)) : d("", !0),
661
666
  e.testEmail.isEnabled.value && e.featureFlags.canSendTestEmail.value ? (s(), E("button", {
662
667
  key: 5,
663
- class: T(p(ze)),
668
+ class: T(p(Be)),
664
669
  style: {
665
670
  "background-color": "transparent",
666
671
  color: "var(--tpl-primary)",
@@ -668,18 +673,18 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
668
673
  },
669
674
  disabled: e.testEmail.isSending.value || !e.featureFlags.hasTemplateSaved.value,
670
675
  onClick: c[2] ||= (t) => e.panelState.testEmailModalOpen.value = !0
671
- }, [e.testEmail.isSending.value ? (s(), v(p(xe), {
676
+ }, [e.testEmail.isSending.value ? (s(), v(p(z), {
672
677
  key: 1,
673
678
  class: "tpl-spinner",
674
679
  size: 16,
675
680
  "stroke-width": 2
676
- })) : (s(), v(p(fe), {
681
+ })) : (s(), v(p(K), {
677
682
  key: 0,
678
683
  size: 16,
679
684
  "stroke-width": 2
680
- })), f(" " + _(p(i).testEmail.button), 1)], 10, _t)) : d("", !0),
685
+ })), f(" " + _(p(i).testEmail.button), 1)], 10, vt)) : d("", !0),
681
686
  y("button", {
682
- class: T(p(ze)),
687
+ class: T(p(Be)),
683
688
  style: {
684
689
  "background-color": "transparent",
685
690
  color: "var(--tpl-primary)",
@@ -687,7 +692,7 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
687
692
  },
688
693
  disabled: e.isSaveDisabled,
689
694
  onClick: c[3] ||= (e) => o.$emit("save")
690
- }, [e.isSaving ? (s(), v(p(xe), {
695
+ }, [e.isSaving ? (s(), v(p(z), {
691
696
  key: 1,
692
697
  class: "tpl-spinner",
693
698
  size: 16,
@@ -696,11 +701,11 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
696
701
  key: 0,
697
702
  size: 16,
698
703
  "stroke-width": 2
699
- })), f(" " + _(e.isSaving ? p(i).header.saving : p(i).header.save), 1)], 10, vt)
704
+ })), f(" " + _(e.isSaving ? p(i).header.saving : p(i).header.save), 1)], 10, yt)
700
705
  ])
701
706
  ]));
702
707
  }
703
- }), bt = /* @__PURE__ */ e({
708
+ }), xt = /* @__PURE__ */ e({
704
709
  __name: "CloudPanels",
705
710
  props: {
706
711
  config: {},
@@ -723,21 +728,25 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
723
728
  "module-insert"
724
729
  ],
725
730
  setup(e, { expose: t, emit: n }) {
726
- let r = l(() => import("./features-DIBEo4xl.js").then((e) => e.s)), i = l(() => import("./features-DIBEo4xl.js").then((e) => e.o)), a = l(() => import("./features-DIBEo4xl.js").then((e) => e.a)), o = l(() => import("./features-DIBEo4xl.js").then((e) => e.n)), c = l(() => import("./features-DIBEo4xl.js").then((e) => e.t)), u = l(() => import("./SaveModuleDialog-AwL0tkCV.js")), f = l(() => import("./ModuleBrowserModal-C2CDWKW6.js")), m = l(async () => (await import("./src-RKexlYjA.js")).MediaLibraryModal), h = n;
727
- function _(e, t, n) {
731
+ let r = l(() => import("./features-BrvE2Fzv.js").then((e) => e.s)), i = l(() => import("./features-BrvE2Fzv.js").then((e) => e.o)), a = l(() => import("./features-BrvE2Fzv.js").then((e) => e.a)), o = l(() => import("./features-BrvE2Fzv.js").then((e) => e.n)), c = l(() => import("./features-BrvE2Fzv.js").then((e) => e.t)), u = l(() => import("./SaveModuleDialog-BNxh1jPT.js")), f = l(() => import("./ModuleBrowserModal-CiIY7ZGv.js")), m = l(async () => (await import("./src-BLyYIbdZ.js")).MediaLibraryModal), h = e;
732
+ function _(e) {
733
+ e === void 0 || !h.editor.content.value.settings.popup || h.editor.updateSettings({ width: e });
734
+ }
735
+ let y = n;
736
+ function b(e, t, n) {
728
737
  t.history.record(), n.setContent(e), t.conditionPreview.reset();
729
738
  }
730
- function y(e, t) {
731
- h("module-insert", e, t);
739
+ function x(e, t) {
740
+ y("module-insert", e, t);
732
741
  }
733
- let b = w(null);
734
- function x(e) {
735
- b.value?.filterByBlock(e);
742
+ let S = w(null);
743
+ function C(e) {
744
+ S.value?.filterByBlock(e);
736
745
  }
737
- return t({ filterCommentsByBlock: x }), (t, n) => (s(), E(g, null, [
746
+ return t({ filterCommentsByBlock: C }), (t, n) => (s(), E(g, null, [
738
747
  D(p(r), {
739
748
  visible: e.panelState.aiChatOpen.value,
740
- "on-apply": (t) => _(t, e.core, e.editor),
749
+ "on-apply": (t) => b(t, e.core, e.editor),
741
750
  onClose: n[0] ||= (t) => e.panelState.aiChatOpen.value = !1
742
751
  }, null, 8, ["visible", "on-apply"]),
743
752
  D(p(o), {
@@ -748,11 +757,11 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
748
757
  visible: e.panelState.designReferenceOpen.value,
749
758
  "has-existing-blocks": e.editor.content.value.blocks.length > 0,
750
759
  onClose: n[2] ||= (t) => e.panelState.designReferenceOpen.value = !1,
751
- onApply: n[3] ||= (t) => _(t, e.core, e.editor)
760
+ onApply: n[3] ||= (t) => b(t, e.core, e.editor)
752
761
  }, null, 8, ["visible", "has-existing-blocks"]),
753
762
  D(p(i), {
754
763
  ref_key: "commentsSidebar",
755
- ref: b,
764
+ ref: S,
756
765
  visible: e.panelState.commentsOpen.value,
757
766
  onClose: n[4] ||= (t) => e.panelState.commentsOpen.value = !1
758
767
  }, null, 8, ["visible"]),
@@ -761,7 +770,7 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
761
770
  "allowed-emails": e.testEmail.allowedEmails.value,
762
771
  "is-sending": e.testEmail.isSending.value,
763
772
  error: e.testEmail.error.value,
764
- onSend: n[5] ||= (e) => h("send-test-email", e),
773
+ onSend: n[5] ||= (e) => y("send-test-email", e),
765
774
  onClose: n[6] ||= (t) => e.panelState.testEmailModalOpen.value = !1
766
775
  }, null, 8, [
767
776
  "visible",
@@ -774,20 +783,21 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
774
783
  visible: e.showSaveModuleDialog,
775
784
  "pre-selected-block-id": e.saveModulePreSelectedBlockId,
776
785
  onClose: n[7] ||= (e) => {
777
- h("update:showSaveModuleDialog", !1), h("update:saveModulePreSelectedBlockId", null);
786
+ y("update:showSaveModuleDialog", !1), y("update:saveModulePreSelectedBlockId", null);
778
787
  },
779
788
  onSaved: n[8] ||= (t) => e.savedModulesHeadless.loadModules()
780
789
  }, null, 8, ["visible", "pre-selected-block-id"])) : d("", !0),
781
790
  e.planConfigInstance.hasFeature("saved_modules") && e.config.modules !== !1 ? (s(), v(p(f), {
782
791
  key: 1,
783
792
  visible: e.showModuleBrowserModal,
784
- onClose: n[9] ||= (e) => h("update:showModuleBrowserModal", !1),
785
- onInsert: y
793
+ onClose: n[9] ||= (e) => y("update:showModuleBrowserModal", !1),
794
+ onInsert: x
786
795
  }, null, 8, ["visible"])) : d("", !0),
787
796
  D(p(m), {
788
797
  visible: e.panelState.mediaLibraryOpen.value,
789
798
  accept: e.panelState.mediaLibraryAccept.value,
790
799
  onSelect: e.mediaLib.handleMediaSelect,
800
+ onTemplateWidthPreview: _,
791
801
  onClose: e.mediaLib.handleMediaLibraryClose
792
802
  }, null, 8, [
793
803
  "visible",
@@ -797,23 +807,23 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
797
807
  ])
798
808
  ], 64));
799
809
  }
800
- }), xt = {
810
+ }), St = {
801
811
  key: 0,
802
812
  class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
803
- }, St = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, Ct = { 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)]" }, wt = /* @__PURE__ */ e({
813
+ }, Ct = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, wt = { 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)]" }, Tt = /* @__PURE__ */ e({
804
814
  __name: "CloudLoadingOverlay",
805
815
  props: { visible: { type: Boolean } },
806
816
  setup(e) {
807
- return (t, n) => e.visible ? (s(), E("div", xt, [n[1] ||= O("<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), y("div", St, [y("div", Ct, [(s(), E(g, null, i(5, (e) => y("div", {
817
+ return (t, n) => e.visible ? (s(), E("div", St, [n[1] ||= O("<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), y("div", Ct, [y("div", wt, [(s(), E(g, null, i(5, (e) => y("div", {
808
818
  key: e,
809
819
  class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
810
820
  })), 64))]), n[0] ||= O("<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)])])) : d("", !0);
811
821
  }
812
- }), Tt = {
822
+ }), Et = {
813
823
  key: 0,
814
824
  role: "alert",
815
825
  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)]"
816
- }, Et = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, Dt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, Ot = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, kt = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, At = /* @__PURE__ */ e({
826
+ }, Dt = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, Ot = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, kt = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, At = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, jt = /* @__PURE__ */ e({
817
827
  __name: "CloudErrorOverlay",
818
828
  props: {
819
829
  error: {},
@@ -821,20 +831,20 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
821
831
  },
822
832
  emits: ["retry"],
823
833
  setup(e, { emit: t }) {
824
- let n = t, { t: r } = K();
834
+ let n = t, { t: r } = Z();
825
835
  function i(e) {
826
836
  return "isUnauthorized" in e && e.isUnauthorized ? r.error.authFailed : "isNotFound" in e && e.isNotFound ? r.error.templateNotFound : r.error.defaultMessage;
827
837
  }
828
838
  function a(e) {
829
839
  return "isNotFound" in e && !!e.isNotFound;
830
840
  }
831
- return (t, o) => e.visible && e.error ? (s(), E("div", Tt, [
832
- y("div", Et, [D(p(R), {
841
+ return (t, o) => e.visible && e.error ? (s(), E("div", Et, [
842
+ y("div", Dt, [D(p(J), {
833
843
  size: 32,
834
844
  "stroke-width": 1.5,
835
845
  class: "tpl:text-[var(--tpl-danger)]"
836
846
  })]),
837
- y("div", Dt, [y("h2", Ot, _(p(r).error.title), 1), y("p", kt, _(i(e.error)), 1)]),
847
+ y("div", Ot, [y("h2", kt, _(p(r).error.title), 1), y("p", At, _(i(e.error)), 1)]),
838
848
  a(e.error) ? d("", !0) : (s(), E("button", {
839
849
  key: 0,
840
850
  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)]",
@@ -842,20 +852,20 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
842
852
  }, _(p(r).error.retry), 1))
843
853
  ])) : d("", !0);
844
854
  }
845
- }), jt = {
855
+ }), Mt = {
846
856
  key: 0,
847
857
  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)]"
848
- }, Mt = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, Nt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Pt = /* @__PURE__ */ e({
858
+ }, Nt = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, Pt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ft = /* @__PURE__ */ e({
849
859
  __name: "SnapshotPreviewBanner",
850
860
  props: { visible: { type: Boolean } },
851
861
  emits: ["cancel", "confirm"],
852
862
  setup(e, { emit: t }) {
853
- let n = t, { t: r } = K();
854
- return (t, i) => e.visible ? (s(), E("div", jt, [y("div", Mt, [D(p(j), {
863
+ let n = t, { t: r } = Z();
864
+ return (t, i) => e.visible ? (s(), E("div", Mt, [y("div", Nt, [D(p(A), {
855
865
  size: 18,
856
866
  "stroke-width": 2,
857
867
  class: "tpl:text-[var(--tpl-primary)]"
858
- }), y("span", null, _(p(r).snapshotPreview.message), 1)]), y("div", Nt, [y("button", {
868
+ }), y("span", null, _(p(r).snapshotPreview.message), 1)]), y("div", Pt, [y("button", {
859
869
  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)]",
860
870
  style: { "background-color": "transparent" },
861
871
  onClick: i[0] ||= (e) => n("cancel")
@@ -864,7 +874,7 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
864
874
  onClick: i[1] ||= (e) => n("confirm")
865
875
  }, _(p(r).snapshotPreview.restore), 1)])])) : d("", !0);
866
876
  }
867
- }), Ft = {
877
+ }), It = {
868
878
  key: 0,
869
879
  role: "status",
870
880
  "aria-live": "polite",
@@ -874,14 +884,17 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
874
884
  color: "var(--tpl-text)",
875
885
  border: "1px solid var(--tpl-warning)"
876
886
  }
877
- }, It = /* @__PURE__ */ e({
887
+ }, Lt = /* @__PURE__ */ e({
878
888
  __name: "CollabUndoToast",
879
889
  props: { visible: { type: Boolean } },
880
890
  setup(e) {
881
- let { t } = P();
882
- return (n, r) => e.visible ? (s(), E("div", Ft, _(p(t).history.collabWarning), 1)) : d("", !0);
891
+ let { t } = j();
892
+ return (n, r) => e.visible ? (s(), E("div", It, _(p(t).history.collabWarning), 1)) : d("", !0);
883
893
  }
884
- }), Lt = ["data-tpl-theme"], Rt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, zt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Bt = ["aria-label"], Vt = /* @__PURE__ */ ue(/* @__PURE__ */ e({
894
+ }), Rt = ["data-tpl-theme"], zt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Bt = {
895
+ key: 0,
896
+ class: "tpl-popup-browser-frame tpl:flex tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-xl tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-xl)]"
897
+ }, Vt = ["aria-label"], Ht = /* @__PURE__ */ V(/* @__PURE__ */ e({
885
898
  __name: "CloudEditor",
886
899
  props: {
887
900
  config: {},
@@ -892,86 +905,86 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
892
905
  emits: ["ready"],
893
906
  setup(e, { expose: i, emit: c }) {
894
907
  let l = e;
895
- t(M, l.cloudTranslations);
896
- let m = c, C = w(null), O = w(null), k = Ge({
908
+ t(F, l.cloudTranslations);
909
+ let m = c, C = w(null), k = w(null), A = Ke({
897
910
  config: l.config,
898
911
  translations: l.translations,
899
912
  fontsManager: l.fontsManager,
900
913
  emit: m,
901
914
  getCommentsSidebar: () => C.value ? { filterByBlock: C.value.filterCommentsByBlock } : null
902
- }), { isInitializing: A, isAuthReady: j, initError: ee, planConfigInstance: N, websocket: P, collaboration: F, isCollaborationEnabled: R, editor: z, core: B, featureFlags: V, mediaLib: ne, exporter: re, testEmail: H, commentsInstance: ie, savedModulesHeadless: U, panelState: W, snapshotPreview: G, collabWarning: K, showSaveModuleDialog: q, showModuleBrowserModal: J, saveModulePreSelectedBlockId: Y, setThemeOverrides: oe, setUiTheme: se } = k, X = w("blocks");
903
- t(le, X);
904
- let Z = x(() => ae(l.config.editorType) === "popup"), ce = x(() => Z.value && X.value === "displayRules"), ue = x(() => Z.value && X.value === "schedule"), de = x(() => X.value === "design"), fe = x(() => Z.value && (ce.value || ue.value || de.value)), pe = x(() => ce.value || ue.value);
905
- r(() => [j.value, z.content.value.settings.popup], ([e]) => {
906
- if (!e || !Z.value || z.content.value.settings.popup) return;
907
- let t = te();
908
- z.updateSettings({
915
+ }), { isInitializing: j, isAuthReady: M, initError: N, planConfigInstance: P, websocket: ee, collaboration: I, isCollaborationEnabled: ne, editor: R, core: z, featureFlags: B, mediaLib: re, exporter: ie, testEmail: V, commentsInstance: oe, savedModulesHeadless: se, panelState: H, snapshotPreview: U, collabWarning: W, showSaveModuleDialog: G, showModuleBrowserModal: K, saveModulePreSelectedBlockId: q, setThemeOverrides: le, setUiTheme: J } = A, Y = w("blocks");
916
+ t(ae, Y);
917
+ let X = x(() => ce(l.config.editorType) === "popup"), ue = x(() => X.value && Y.value === "displayRules"), de = x(() => X.value && Y.value === "schedule"), fe = x(() => Y.value === "design"), pe = x(() => X.value && (ue.value || de.value || fe.value)), me = x(() => ue.value || de.value);
918
+ r(() => [M.value, R.content.value.settings.popup], ([e]) => {
919
+ if (!e || !X.value || R.content.value.settings.popup) return;
920
+ let t = Se();
921
+ R.updateSettings({
909
922
  popup: t,
910
- width: I[t.design.sizePreset]
923
+ width: L[t.design.sizePreset]
911
924
  });
912
925
  }, { immediate: !0 });
913
- async function me(e) {
926
+ async function he(e) {
914
927
  try {
915
- await H.sendTestEmail(e), W.testEmailModalOpen.value = !1;
928
+ await V.sendTestEmail(e), H.testEmailModalOpen.value = !1;
916
929
  } catch {}
917
930
  }
918
- function he(e, t) {
931
+ function Z(e, t) {
919
932
  for (let n = 0; n < e.content.length; n++) {
920
- let r = L(e.content[n]), i = t === void 0 ? void 0 : t + n;
921
- z.addBlock(r, void 0, void 0, i);
933
+ let r = te(e.content[n]), i = t === void 0 ? void 0 : t + n;
934
+ R.addBlock(r, void 0, void 0, i);
922
935
  }
923
- J.value = !1;
936
+ K.value = !1;
924
937
  }
925
- let Q = qe({
938
+ let Q = Je({
926
939
  config: l.config,
927
- editor: z,
928
- websocket: P,
929
- planConfigInstance: N,
930
- snapshotPreview: G,
931
- core: B,
932
- exporter: re,
933
- featureFlags: V,
934
- isDestroyed: k.isDestroyed
940
+ editor: R,
941
+ websocket: ee,
942
+ planConfigInstance: P,
943
+ snapshotPreview: U,
944
+ core: z,
945
+ exporter: ie,
946
+ featureFlags: B,
947
+ isDestroyed: A.isDestroyed
935
948
  }), ge = x(() => {
936
- if (z.state.previewMode) return ["tpl:left-0", "tpl:right-0"];
937
- let e = W.rightPanelOpen.value ? "tpl:right-[680px]" : "tpl:right-[320px]";
938
- if (!Z.value) return ["tpl:left-12", e];
949
+ if (R.state.previewMode) return ["tpl:left-0", "tpl:right-0"];
950
+ let e = H.rightPanelOpen.value ? "tpl:right-[680px]" : "tpl:right-[320px]";
951
+ if (!X.value) return ["tpl:left-12", e];
939
952
  let t;
940
- return t = X.value === "blocks" ? "tpl:left-[272px]" : de.value ? "tpl:left-[392px]" : "tpl:left-[72px]", [t, fe.value ? "tpl:right-0" : e];
941
- }), $ = Je({
942
- issues: B.accessibilityLint ? B.accessibilityLint.issues : w([]),
943
- planConfig: N.config
953
+ return t = Y.value === "blocks" ? "tpl:left-[272px]" : fe.value ? "tpl:left-[392px]" : "tpl:left-[72px]", [t, pe.value ? "tpl:right-0" : e];
954
+ }), $ = Ye({
955
+ issues: z.accessibilityLint ? z.accessibilityLint.issues : w([]),
956
+ planConfig: P.config
944
957
  });
945
958
  async function _e() {
946
959
  await $.tryRunSave(() => Q.saveTemplate().catch((e) => l.config.onError?.(e)));
947
960
  }
948
- return k.onSaveHook.value = _e, a(() => {
949
- k.initialize();
961
+ return A.onSaveHook.value = _e, a(() => {
962
+ A.initialize();
950
963
  }), o(() => {
951
- k.destroy();
964
+ A.destroy();
952
965
  }), i({
953
- getContent: () => z.content.value,
954
- setContent: (e) => z.setContent(e),
955
- setTheme: se,
956
- setThemeOverrides: oe,
966
+ getContent: () => R.content.value,
967
+ setContent: (e) => R.setContent(e),
968
+ setTheme: J,
969
+ setThemeOverrides: le,
957
970
  undo: () => {
958
- K.showCollabUndoWarning(), B.history.undo();
971
+ W.showCollabUndoWarning(), z.history.undo();
959
972
  },
960
- redo: () => B.history.redo(),
961
- canUndo: () => B.history.canUndo.value,
962
- canRedo: () => B.history.canRedo.value,
973
+ redo: () => z.history.redo(),
974
+ canUndo: () => z.history.canUndo.value,
975
+ canRedo: () => z.history.canRedo.value,
963
976
  create: Q.createTemplate,
964
977
  load: Q.loadTemplate,
965
978
  save: Q.saveTemplate,
966
- sendTestEmail: H.sendTestEmail,
967
- startTour: (e) => O.value?.start(e),
968
- dismissTour: () => O.value?.dismiss(),
969
- resetTourDismissed: () => Ae(l.config.tour),
979
+ sendTestEmail: V.sendTestEmail,
980
+ startTour: (e) => k.value?.start(e),
981
+ dismissTour: () => k.value?.dismiss(),
982
+ resetTourDismissed: () => je(l.config.tour),
970
983
  isTourDismissed: () => l.config.tour ? Te(l.config.tour) : !0
971
984
  }), (t, r) => (s(), E("div", {
972
- class: T(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": p(z).state.darkMode }]),
973
- "data-tpl-theme": p(B).resolvedTheme.value,
974
- style: h(p(B).themeStyles.value)
985
+ class: T(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": p(R).state.darkMode }]),
986
+ "data-tpl-theme": p(z).resolvedTheme.value,
987
+ style: h(p(z).themeStyles.value)
975
988
  }, [
976
989
  D(S, {
977
990
  "enter-active-class": "tpl:transition-opacity tpl:duration-200",
@@ -981,7 +994,7 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
981
994
  "leave-from-class": "tpl:opacity-100",
982
995
  "leave-to-class": "tpl:opacity-0"
983
996
  }, {
984
- default: u(() => [D(wt, { visible: p(A) || p(z).state.isLoading }, null, 8, ["visible"])]),
997
+ default: u(() => [D(Tt, { visible: p(j) || p(R).state.isLoading }, null, 8, ["visible"])]),
985
998
  _: 1
986
999
  }),
987
1000
  D(S, {
@@ -992,10 +1005,10 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
992
1005
  "leave-from-class": "tpl:opacity-100",
993
1006
  "leave-to-class": "tpl:opacity-0"
994
1007
  }, {
995
- default: u(() => [D(At, {
996
- error: p(ee),
997
- visible: !!p(ee) && !p(A),
998
- onRetry: p(k).initialize
1008
+ default: u(() => [D(jt, {
1009
+ error: p(N),
1010
+ visible: !!p(N) && !p(j),
1011
+ onRetry: p(A).initialize
999
1012
  }, null, 8, [
1000
1013
  "error",
1001
1014
  "visible",
@@ -1003,19 +1016,19 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1003
1016
  ])]),
1004
1017
  _: 1
1005
1018
  }),
1006
- D(yt, {
1007
- editor: p(z),
1008
- "on-before-history-undo": p(K).showCollabUndoWarning,
1009
- "feature-flags": p(V),
1010
- "panel-state": p(W),
1011
- "snapshot-preview": p(G),
1012
- "comments-instance": p(ie),
1013
- "test-email": p(H),
1014
- websocket: p(P),
1015
- collaboration: p(F),
1016
- "is-collaboration-enabled": p(R),
1017
- "is-saving": p(z).state.isSaving || p(V).isSaveExporting.value,
1018
- "is-save-disabled": p(z).state.isSaving || p(V).isSaveExporting.value || !p(z).state.isDirty,
1019
+ D(bt, {
1020
+ editor: p(R),
1021
+ "on-before-history-undo": p(W).showCollabUndoWarning,
1022
+ "feature-flags": p(B),
1023
+ "panel-state": p(H),
1024
+ "snapshot-preview": p(U),
1025
+ "comments-instance": p(oe),
1026
+ "test-email": p(V),
1027
+ websocket: p(ee),
1028
+ collaboration: p(I),
1029
+ "is-collaboration-enabled": p(ne),
1030
+ "is-saving": p(R).state.isSaving || p(B).isSaveExporting.value,
1031
+ "is-save-disabled": p(R).state.isSaving || p(B).isSaveExporting.value || !p(R).state.isDirty,
1019
1032
  onSave: _e
1020
1033
  }, null, 8, [
1021
1034
  "editor",
@@ -1031,7 +1044,7 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1031
1044
  "is-saving",
1032
1045
  "is-save-disabled"
1033
1046
  ]),
1034
- D(it, {
1047
+ D(at, {
1035
1048
  open: p($).modalOpen.value,
1036
1049
  issues: p($).blockingIssues.value,
1037
1050
  onCancel: p($).cancel,
@@ -1042,10 +1055,10 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1042
1055
  "onCancel",
1043
1056
  "onConfirm"
1044
1057
  ]),
1045
- D(Pt, {
1046
- visible: p(G).isPreviewingSnapshot.value,
1047
- onCancel: p(G).cancelPreview,
1048
- onConfirm: p(G).confirmRestoreSnapshot
1058
+ D(Ft, {
1059
+ visible: p(U).isPreviewingSnapshot.value,
1060
+ onCancel: p(U).cancelPreview,
1061
+ onConfirm: p(U).confirmRestoreSnapshot
1049
1062
  }, null, 8, [
1050
1063
  "visible",
1051
1064
  "onCancel",
@@ -1059,21 +1072,21 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1059
1072
  "leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
1060
1073
  "leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
1061
1074
  }, {
1062
- default: u(() => [D(It, { visible: p(K).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1075
+ default: u(() => [D(Lt, { visible: p(W).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1063
1076
  _: 1
1064
1077
  }),
1065
- n(D(Pe, null, null, 512), [[b, !p(z).state.previewMode]]),
1078
+ n(D(Fe, null, null, 512), [[b, !p(R).state.previewMode]]),
1066
1079
  y("div", {
1067
- class: T(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [...ge.value, p(G).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1080
+ class: T(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [...ge.value, p(U).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1068
1081
  style: h({
1069
1082
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
1070
- backgroundColor: pe.value ? "var(--tpl-bg)" : "var(--tpl-canvas-bg)"
1083
+ backgroundColor: me.value ? "var(--tpl-bg)" : "var(--tpl-canvas-bg)"
1071
1084
  })
1072
- }, [Z.value && X.value === "displayRules" ? (s(), v(Ne, { key: 0 })) : Z.value && X.value === "schedule" ? (s(), v(Le, {
1085
+ }, [X.value && Y.value === "displayRules" ? (s(), v(Pe, { key: 0 })) : X.value && Y.value === "schedule" ? (s(), v(Re, {
1073
1086
  key: 1,
1074
1087
  layout: "standalone"
1075
- })) : (s(), E(g, { key: 2 }, [y("div", Rt, [D(S, { name: "tpl-restore-btn" }, {
1076
- default: u(() => [p(B).conditionPreview.hasHiddenBlocks.value ? (s(), E("button", {
1088
+ })) : (s(), E(g, { key: 2 }, [y("div", zt, [D(S, { name: "tpl-restore-btn" }, {
1089
+ default: u(() => [p(z).conditionPreview.hasHiddenBlocks.value ? (s(), E("button", {
1077
1090
  key: 0,
1078
1091
  class: "tpl:absolute tpl:left-1/2 tpl:top-2 tpl:-translate-x-1/2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-full tpl:border tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:whitespace-nowrap tpl:shadow-md tpl:hover:opacity-80",
1079
1092
  style: {
@@ -1082,23 +1095,47 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1082
1095
  "border-color": "var(--tpl-warning)",
1083
1096
  "backdrop-filter": "blur(8px)"
1084
1097
  },
1085
- onClick: r[0] ||= (e) => p(B).conditionPreview.reset()
1098
+ onClick: r[0] ||= (e) => p(z).conditionPreview.reset()
1086
1099
  }, [D(p(Ce), {
1087
1100
  size: 13,
1088
1101
  "stroke-width": 2
1089
- }), f(" " + _(p(B).t.blockSettings.restoreHiddenBlocks), 1)])) : d("", !0)]),
1102
+ }), f(" " + _(p(z).t.blockSettings.restoreHiddenBlocks), 1)])) : d("", !0)]),
1090
1103
  _: 1
1091
- })]), y("main", zt, [D(Me, {
1092
- viewport: p(z).state.viewport,
1093
- content: p(z).content.value,
1094
- "selected-block-id": p(z).state.selectedBlockId,
1095
- "dark-mode": p(z).state.darkMode,
1096
- "preview-mode": p(z).state.previewMode,
1104
+ })]), y("main", { class: T(["tpl-main tpl:flex tpl:w-full tpl:flex-col", X.value ? "tpl:gap-3 tpl:px-4 tpl:pt-4 tpl:pb-6" : "tpl:items-center tpl:gap-3 tpl:p-8"]) }, [D(Ne, {
1105
+ "preview-mode": p(R).state.previewMode,
1106
+ "multi-page-canvas": e.config.multiPageCanvas ?? !1
1107
+ }, null, 8, ["preview-mode", "multi-page-canvas"]), X.value ? (s(), E("div", Bt, [r[11] ||= O("<div class=\"tpl-popup-browser-bar tpl:relative tpl:flex tpl:h-9 tpl:items-center tpl:gap-1.5 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3\" aria-hidden=\"true\" data-v-1d3e3f2d><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#ff5f57;\" data-v-1d3e3f2d></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#febc2e;\" data-v-1d3e3f2d></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#28c840;\" data-v-1d3e3f2d></span><div class=\"tpl:pointer-events-none tpl:absolute tpl:left-1/2 tpl:top-1/2 tpl:-translate-x-1/2 tpl:-translate-y-1/2 tpl:rounded-md tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:tracking-tight\" data-v-1d3e3f2d> yourstore.com </div></div>", 1), D(Ae, {
1108
+ viewport: p(R).state.viewport,
1109
+ content: p(R).content.value,
1110
+ "selected-block-id": p(R).state.selectedBlockId,
1111
+ "dark-mode": p(R).state.darkMode,
1112
+ "preview-mode": p(R).state.previewMode,
1113
+ "multi-page-canvas": e.config.multiPageCanvas ?? !1,
1114
+ "locked-blocks": p(I)?.lockedBlocks.value ?? void 0,
1115
+ onSelectBlock: p(R).selectBlock,
1116
+ onOpenAiChat: r[1] ||= (e) => p(H).aiChatOpen.value = !0,
1117
+ onOpenDesignReference: r[2] ||= (e) => p(H).designReferenceOpen.value = !0
1118
+ }, null, 8, [
1119
+ "viewport",
1120
+ "content",
1121
+ "selected-block-id",
1122
+ "dark-mode",
1123
+ "preview-mode",
1124
+ "multi-page-canvas",
1125
+ "locked-blocks",
1126
+ "onSelectBlock"
1127
+ ])])) : (s(), v(Ae, {
1128
+ key: 1,
1129
+ viewport: p(R).state.viewport,
1130
+ content: p(R).content.value,
1131
+ "selected-block-id": p(R).state.selectedBlockId,
1132
+ "dark-mode": p(R).state.darkMode,
1133
+ "preview-mode": p(R).state.previewMode,
1097
1134
  "multi-page-canvas": e.config.multiPageCanvas ?? !1,
1098
- "locked-blocks": p(F)?.lockedBlocks.value ?? void 0,
1099
- onSelectBlock: p(z).selectBlock,
1100
- onOpenAiChat: r[1] ||= (e) => p(W).aiChatOpen.value = !0,
1101
- onOpenDesignReference: r[2] ||= (e) => p(W).designReferenceOpen.value = !0
1135
+ "locked-blocks": p(I)?.lockedBlocks.value ?? void 0,
1136
+ onSelectBlock: p(R).selectBlock,
1137
+ onOpenAiChat: r[3] ||= (e) => p(H).aiChatOpen.value = !0,
1138
+ onOpenDesignReference: r[4] ||= (e) => p(H).designReferenceOpen.value = !0
1102
1139
  }, null, 8, [
1103
1140
  "viewport",
1104
1141
  "content",
@@ -1108,8 +1145,8 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1108
1145
  "multi-page-canvas",
1109
1146
  "locked-blocks",
1110
1147
  "onSelectBlock"
1111
- ])])], 64))], 6),
1112
- e.config.branding !== !1 && !p(V).isWhiteLabeled.value ? (s(), v(Ie, {
1148
+ ]))], 2)], 64))], 6),
1149
+ e.config.branding !== !1 && !p(B).isWhiteLabeled.value ? (s(), v(Le, {
1113
1150
  key: 0,
1114
1151
  "position-class": ge.value
1115
1152
  }, null, 8, ["position-class"])) : d("", !0),
@@ -1118,42 +1155,42 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1118
1155
  role: "status",
1119
1156
  "aria-live": "polite",
1120
1157
  "aria-atomic": "true",
1121
- "aria-label": p(B).t.landmarks.reorderAnnouncements
1122
- }, _(p(B).keyboardReorder.announcement.value), 9, Bt),
1158
+ "aria-label": p(z).t.landmarks.reorderAnnouncements
1159
+ }, _(p(z).keyboardReorder.announcement.value), 9, Vt),
1123
1160
  n(D(Oe, {
1124
- "selected-block": p(z).selectedBlock.value,
1125
- settings: p(z).content.value.settings,
1126
- "shifted-left": p(W).rightPanelOpen.value,
1127
- onUpdateBlock: r[3] ||= (e) => p(z).updateBlock(p(z).selectedBlock.value.id, e),
1128
- onDeleteBlock: r[4] ||= (e) => p(B).blockActions.deleteBlock(p(z).selectedBlock.value.id),
1129
- onDuplicateBlock: r[5] ||= (e) => p(B).blockActions.duplicateBlock(p(z).selectedBlock.value),
1130
- onUpdateSettings: p(z).updateSettings
1161
+ "selected-block": p(R).selectedBlock.value,
1162
+ settings: p(R).content.value.settings,
1163
+ "shifted-left": p(H).rightPanelOpen.value,
1164
+ onUpdateBlock: r[5] ||= (e) => p(R).updateBlock(p(R).selectedBlock.value.id, e),
1165
+ onDeleteBlock: r[6] ||= (e) => p(z).blockActions.deleteBlock(p(R).selectedBlock.value.id),
1166
+ onDuplicateBlock: r[7] ||= (e) => p(z).blockActions.duplicateBlock(p(R).selectedBlock.value),
1167
+ onUpdateSettings: p(R).updateSettings
1131
1168
  }, null, 8, [
1132
1169
  "selected-block",
1133
1170
  "settings",
1134
1171
  "shifted-left",
1135
1172
  "onUpdateSettings"
1136
- ]), [[b, !p(z).state.previewMode && !fe.value]]),
1137
- !p(A) && p(j) ? (s(), v(bt, {
1173
+ ]), [[b, !p(R).state.previewMode && !pe.value]]),
1174
+ !p(j) && p(M) ? (s(), v(xt, {
1138
1175
  key: 1,
1139
1176
  ref_key: "cloudPanelsRef",
1140
1177
  ref: C,
1141
1178
  config: l.config,
1142
- editor: p(z),
1143
- core: p(B),
1144
- "panel-state": p(W),
1145
- "plan-config-instance": p(N),
1146
- "test-email": p(H),
1147
- "media-lib": p(ne),
1148
- "saved-modules-headless": p(U),
1149
- "show-save-module-dialog": p(q),
1150
- "save-module-pre-selected-block-id": p(Y),
1151
- "show-module-browser-modal": p(J),
1152
- "onUpdate:showSaveModuleDialog": r[6] ||= (e) => q.value = e,
1153
- "onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) => Y.value = e,
1154
- "onUpdate:showModuleBrowserModal": r[8] ||= (e) => J.value = e,
1155
- onSendTestEmail: me,
1156
- onModuleInsert: he
1179
+ editor: p(R),
1180
+ core: p(z),
1181
+ "panel-state": p(H),
1182
+ "plan-config-instance": p(P),
1183
+ "test-email": p(V),
1184
+ "media-lib": p(re),
1185
+ "saved-modules-headless": p(se),
1186
+ "show-save-module-dialog": p(G),
1187
+ "save-module-pre-selected-block-id": p(q),
1188
+ "show-module-browser-modal": p(K),
1189
+ "onUpdate:showSaveModuleDialog": r[8] ||= (e) => G.value = e,
1190
+ "onUpdate:saveModulePreSelectedBlockId": r[9] ||= (e) => q.value = e,
1191
+ "onUpdate:showModuleBrowserModal": r[10] ||= (e) => K.value = e,
1192
+ onSendTestEmail: he,
1193
+ onModuleInsert: Z
1157
1194
  }, null, 8, [
1158
1195
  "config",
1159
1196
  "editor",
@@ -1167,17 +1204,17 @@ var Ye = ["aria-label"], Xe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1167
1204
  "save-module-pre-selected-block-id",
1168
1205
  "show-module-browser-modal"
1169
1206
  ])) : d("", !0),
1170
- e.config.tour ? (s(), v(Fe, {
1207
+ e.config.tour ? (s(), v(Ie, {
1171
1208
  key: 2,
1172
1209
  ref_key: "editorTourRef",
1173
- ref: O,
1210
+ ref: k,
1174
1211
  "tour-config": e.config.tour,
1175
- "dark-mode": p(z).state.darkMode
1212
+ "dark-mode": p(R).state.darkMode
1176
1213
  }, null, 8, ["tour-config", "dark-mode"])) : d("", !0)
1177
- ], 14, Lt));
1214
+ ], 14, Rt));
1178
1215
  }
1179
- }), [["__scopeId", "data-v-6985a9ad"]]);
1216
+ }), [["__scopeId", "data-v-1d3e3f2d"]]);
1180
1217
  //#endregion
1181
- export { Vt as default };
1218
+ export { Ht as default };
1182
1219
 
1183
- //# sourceMappingURL=CloudEditor-Btyr0b0_.js.map
1220
+ //# sourceMappingURL=CloudEditor-56lVcdot.js.map