@templatical/editor 0.0.6 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/LICENSE +56 -0
  2. package/README.md +69 -0
  3. package/dist/{AiChatSidebar-CNhSl_ty.js → AiChatSidebar-DgAjDWO1.js} +68 -68
  4. package/dist/{AiFeatureMenu-BFVsjUJY.js → AiFeatureMenu-j6oaiRVi.js} +25 -25
  5. package/dist/{CloudEditor-Bz5Xkxej.js → CloudEditor-yCOkIkZ-.js} +428 -437
  6. package/dist/{CollaboratorBar-D2Gu5Xj2.js → CollaboratorBar-CWVdp2Y6.js} +23 -23
  7. package/dist/CommentsSidebar-CSPHhbQH.js +439 -0
  8. package/dist/CountdownBlock-DK6P_RaQ.js +92 -0
  9. package/dist/CountdownToolbar-Dv-Sz4ui.js +210 -0
  10. package/dist/{DesignReferenceSidebar-u2tKSQK0.js → DesignReferenceSidebar-D7zfvux6.js} +58 -58
  11. package/dist/LoadingTrack-Cdz2SSq9.js +10 -0
  12. package/dist/ModuleBrowserModal-BLYuCZht.js +205 -0
  13. package/dist/ModulePreviewCanvas-CHYqP6K3.js +106 -0
  14. package/dist/NumberWithSuffix-D-5-AZc3.js +424 -0
  15. package/dist/{ParagraphEditor-CYrzYJO5.js → ParagraphEditor-DivLBNWv.js} +237 -236
  16. package/dist/{RichTextEditorContent-BeqlWlWB.js → RichTextEditorContent-G1lXgVJR.js} +42 -42
  17. package/dist/{SaveModuleDialog-Kde6X13X.js → SaveModuleDialog-DGVfiOmE.js} +29 -29
  18. package/dist/{SnapshotHistory-B3EfIcLW.js → SnapshotHistory-DM__MqSu.js} +38 -38
  19. package/dist/{TemplateScoringPanel-D2vCRGgx.js → TemplateScoringPanel-CW13Tlol.js} +80 -80
  20. package/dist/{TestEmailModal-Egk0DFDf.js → TestEmailModal-B8bYqWCY.js} +28 -28
  21. package/dist/TitleEditor-4Jrp3C4m.js +167 -0
  22. package/dist/{TplModal-BCruYWks.js → TplModal-BkoIz0oz.js} +14 -14
  23. package/dist/{_plugin-vue_export-helper-5TQrnOhO.js → _plugin-vue_export-helper-OO6pH1Dh.js} +11 -11
  24. package/dist/{blockTypeIcons-rW4BUUNC.js → blockTypeIcons-4AS3CvXn.js} +2 -2
  25. package/dist/cdn/chunks/{AiFeatureMenu-Dcbshcfu.js → AiFeatureMenu-BcHyzTQy.js} +4 -4
  26. package/dist/cdn/chunks/{AiFeatureMenu-Dcbshcfu.js.map → AiFeatureMenu-BcHyzTQy.js.map} +1 -1
  27. package/dist/cdn/chunks/{CloudEditor-Bca3RyBW.js → CloudEditor-TaEZq-YW.js} +179 -188
  28. package/dist/cdn/chunks/CloudEditor-TaEZq-YW.js.map +1 -0
  29. package/dist/cdn/chunks/{CollaboratorBar-sToKJfHi.js → CollaboratorBar-DbC5-3If.js} +4 -4
  30. package/dist/cdn/chunks/{CollaboratorBar-sToKJfHi.js.map → CollaboratorBar-DbC5-3If.js.map} +1 -1
  31. package/dist/cdn/chunks/CountdownBlock-CfPmCQ7j.js +93 -0
  32. package/dist/cdn/chunks/CountdownBlock-CfPmCQ7j.js.map +1 -0
  33. package/dist/cdn/chunks/CountdownToolbar-CB0EVxwN.js +212 -0
  34. package/dist/cdn/chunks/CountdownToolbar-CB0EVxwN.js.map +1 -0
  35. package/dist/cdn/chunks/{ModuleBrowserModal-BNhwXbWw.js → ModuleBrowserModal-Df2fp9dj.js} +7 -7
  36. package/dist/cdn/chunks/{ModuleBrowserModal-BNhwXbWw.js.map → ModuleBrowserModal-Df2fp9dj.js.map} +1 -1
  37. package/dist/cdn/chunks/{ModulePreviewCanvas-DylUylPU.js → ModulePreviewCanvas-Dw1OCpvV.js} +19 -19
  38. package/dist/cdn/chunks/{ModulePreviewCanvas-DylUylPU.js.map → ModulePreviewCanvas-Dw1OCpvV.js.map} +1 -1
  39. package/dist/cdn/chunks/NumberWithSuffix-BU6ycXyG.js +425 -0
  40. package/dist/cdn/chunks/NumberWithSuffix-BU6ycXyG.js.map +1 -0
  41. package/dist/cdn/chunks/{ParagraphEditor-BBw90y_p.js → ParagraphEditor-BMRNg_BX.js} +37 -37
  42. package/dist/cdn/chunks/{ParagraphEditor-BBw90y_p.js.map → ParagraphEditor-BMRNg_BX.js.map} +1 -1
  43. package/dist/cdn/chunks/{RichTextEditorContent-DvyIO3nR.js → RichTextEditorContent-BKYY1YMZ.js} +5 -5
  44. package/dist/cdn/chunks/{RichTextEditorContent-DvyIO3nR.js.map → RichTextEditorContent-BKYY1YMZ.js.map} +1 -1
  45. package/dist/cdn/chunks/{SaveModuleDialog-DvbSHvhF.js → SaveModuleDialog-D977Tg7t.js} +5 -5
  46. package/dist/cdn/chunks/{SaveModuleDialog-DvbSHvhF.js.map → SaveModuleDialog-D977Tg7t.js.map} +1 -1
  47. package/dist/cdn/chunks/{TitleEditor-tS3mgoVr.js → TitleEditor-q9IzNy38.js} +11 -11
  48. package/dist/cdn/chunks/{TitleEditor-tS3mgoVr.js.map → TitleEditor-q9IzNy38.js.map} +1 -1
  49. package/dist/cdn/chunks/{blockTypeIcons-DbnbyEQE.js → blockTypeIcons-L0fRc3qs.js} +3 -3
  50. package/dist/cdn/chunks/{blockTypeIcons-DbnbyEQE.js.map → blockTypeIcons-L0fRc3qs.js.map} +1 -1
  51. package/dist/cdn/chunks/{de-CgUR_S5I.js → de-3exf7MYE.js} +1 -1
  52. package/dist/cdn/chunks/{de-CgUR_S5I.js.map → de-3exf7MYE.js.map} +1 -1
  53. package/dist/cdn/chunks/{de-D8oDPhBD.js → de-C8LxVUsb.js} +1 -1
  54. package/dist/cdn/chunks/{de-D8oDPhBD.js.map → de-C8LxVUsb.js.map} +1 -1
  55. package/dist/cdn/chunks/{dist-BUmN5e4r.js → dist-D5g00M8N.js} +6 -2
  56. package/dist/cdn/chunks/dist-D5g00M8N.js.map +1 -0
  57. package/dist/cdn/chunks/{draggable-m78lz0gI.js → draggable-Bcb86AsV.js} +5 -5
  58. package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +1 -0
  59. package/dist/cdn/chunks/{emojiData-CNNgvDqx.js → emojiData-DUHzsh4j.js} +1 -1
  60. package/dist/cdn/chunks/{emojiData-CNNgvDqx.js.map → emojiData-DUHzsh4j.js.map} +1 -1
  61. package/dist/cdn/chunks/{en-HseRPPeK.js → en-BoEycuqw.js} +1 -1
  62. package/dist/cdn/chunks/{en-HseRPPeK.js.map → en-BoEycuqw.js.map} +1 -1
  63. package/dist/cdn/chunks/{en-BBmfBDqY.js → en-KNPUKxYp.js} +1 -1
  64. package/dist/cdn/chunks/{en-BBmfBDqY.js.map → en-KNPUKxYp.js.map} +1 -1
  65. package/dist/cdn/chunks/{extensions-ClpY3m0W.js → extensions-BZ1POyiv.js} +11 -11
  66. package/dist/cdn/chunks/{extensions-ClpY3m0W.js.map → extensions-BZ1POyiv.js.map} +1 -1
  67. package/dist/cdn/chunks/{features-B5dGxWLi.js → features-Ccqmm6-M.js} +549 -627
  68. package/dist/cdn/chunks/features-Ccqmm6-M.js.map +1 -0
  69. package/dist/cdn/chunks/{icons-hflTyPmb.js → icons-x53__2GC.js} +8 -8
  70. package/dist/cdn/chunks/icons-x53__2GC.js.map +1 -0
  71. package/dist/cdn/chunks/{liquid.browser-BxyRVCKv.js → liquid.browser-CEMn-ZqL.js} +2 -2
  72. package/dist/cdn/chunks/liquid.browser-CEMn-ZqL.js.map +1 -0
  73. package/dist/cdn/chunks/{media-library-Dgy-V-JA.js → media-library-DUoQk-w7.js} +97 -97
  74. package/dist/cdn/chunks/media-library-DUoQk-w7.js.map +1 -0
  75. package/dist/cdn/chunks/{pusher-D-m2WSdL.js → pusher-DwSQn6BA.js} +2 -2
  76. package/dist/cdn/chunks/pusher-DwSQn6BA.js.map +1 -0
  77. package/dist/cdn/chunks/{src-TDwMmqm0.js → src-DskCIAr8.js} +8 -8
  78. package/dist/cdn/chunks/{src-TDwMmqm0.js.map → src-DskCIAr8.js.map} +1 -1
  79. package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js → styleConstants-DP1VOca8.js} +1 -1
  80. package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js.map → styleConstants-DP1VOca8.js.map} +1 -1
  81. package/dist/cdn/chunks/{styles-hCOCOR6K.js → styles-BIlpNe52.js} +622 -1238
  82. package/dist/cdn/chunks/styles-BIlpNe52.js.map +1 -0
  83. package/dist/cdn/chunks/{tiptap-C28NLMX8.js → tiptap-hPC_BgDO.js} +850 -826
  84. package/dist/cdn/chunks/tiptap-hPC_BgDO.js.map +1 -0
  85. package/dist/cdn/editor.css +1 -1
  86. package/dist/cdn/editor.js +92 -97
  87. package/dist/cdn/editor.js.map +1 -1
  88. package/dist/{check-B5S-C0bz.js → check-Bff5NzCh.js} +1 -1
  89. package/dist/{chevron-down-CjsV1T0W.js → chevron-down-Bbv4SJwx.js} +1 -1
  90. package/dist/{circle-alert-CVTmJHKW.js → circle-alert-Dpr8MgkR.js} +1 -1
  91. package/dist/{clock-CAjdSHBy.js → clock-raVPKfl4.js} +1 -1
  92. package/dist/{dist-DJrDTuRr.js → dist-BHgEdO-M.js} +1001 -983
  93. package/dist/dist-BibwE8Y0.js +5 -0
  94. package/dist/{dist-DPM-DFvh.js → dist-BnlZ_HwX.js} +340 -340
  95. package/dist/{dist-BTtKPcd2.js → dist-C9yhcxsf.js} +2 -2
  96. package/dist/{dist-COguaIvm.js → dist-CGffNO8z.js} +2 -2
  97. package/dist/dist-CfGpCUSx.js +5 -0
  98. package/dist/{dist-COOFiBFV.js → dist-Chd-H2S3.js} +5 -5
  99. package/dist/{dist-DfqLGwSF.js → dist-Cq0OFLMj.js} +2 -2
  100. package/dist/{dist-B4LTlrAn.js → dist-D42og5Sc.js} +191 -185
  101. package/dist/{dist-CBr-qhie.js → dist-Owxo48fF.js} +2 -2
  102. package/dist/{dist-Crqkuf-w.js → dist-UZ8UzVZ-.js} +15 -15
  103. package/dist/dist-n0PkFNGl.js +314 -0
  104. package/dist/{dist-DHYuVJ_7.js → dist-skgH9dyo.js} +2 -2
  105. package/dist/{extensions-C6xp_B7K.js → extensions-DQKaICBH.js} +81 -81
  106. package/dist/{image-up-vZa1Txr-.js → image-up-B1AEiHCh.js} +1 -1
  107. package/dist/index.d.ts +17 -6
  108. package/dist/{keys-C0MQRs8d.js → keys-CIw9mUI2.js} +1 -1
  109. package/dist/{liquid.browser-C02owkex.js → liquid.browser-Bm53dnK1.js} +1 -1
  110. package/dist/{loader-circle-DilFjHSk.js → loader-circle-BYeKJ3to.js} +1 -1
  111. package/dist/{message-circle-Dpcnc2oa.js → message-circle-PhNlI7e7.js} +1 -1
  112. package/dist/{refresh-cw-4r7rkHHX.js → refresh-cw-DhDYRBDd.js} +1 -1
  113. package/dist/{rolldown-runtime-gEudmnaM.js → rolldown-runtime-BZGGJVDF.js} +2 -5
  114. package/dist/{scan-line-684IxPQ0.js → scan-line-Bw8bauvt.js} +1 -1
  115. package/dist/{send-ChDw64yL.js → send-CJPSzbLO.js} +1 -1
  116. package/dist/{shield-check-9dhLdyST.js → shield-check-DdEvVYMH.js} +1 -1
  117. package/dist/{sparkles-Co9fkDcv.js → sparkles-DT_27AYs.js} +1 -1
  118. package/dist/style.css +2 -0
  119. package/dist/{styleConstants-RV3eYwkD.js → styleConstants-Dqz9z3aa.js} +6 -45
  120. package/dist/styles-tcwlvlEB.js +2942 -0
  121. package/dist/templatical-editor.js +114 -119
  122. package/dist/text-align-start-4Hx15GUf.js +43 -0
  123. package/dist/{trash-2-CZkMtjeC.js → trash-2-BY-xp5hg.js} +1 -1
  124. package/dist/{triangle-alert-Dvt51agD.js → triangle-alert-DG72vdb2.js} +1 -1
  125. package/dist/useEditorCore-DMH2QpUL.js +8946 -0
  126. package/dist/{useI18n-D6m7ZUgY.js → useI18n-B8CN2iWs.js} +4 -4
  127. package/dist/{useMergeTag-CSXcnFBc.js → useMergeTag-Dz_Dx2Jz.js} +3 -3
  128. package/dist/vue.runtime.esm-bundler-DryoQb-v.js +5775 -0
  129. package/dist/{x-CU2XZOkQ.js → x-D-7GkO6Z.js} +1 -1
  130. package/package.json +31 -15
  131. package/dist/CommentsSidebar-CTeEAZTj.js +0 -439
  132. package/dist/LoadingTrack--aUassFH.js +0 -10
  133. package/dist/ModuleBrowserModal-DNxODPlX.js +0 -205
  134. package/dist/ModulePreviewCanvas-DnGe1Y-2.js +0 -106
  135. package/dist/TitleEditor-DwUpo4gF.js +0 -167
  136. package/dist/cdn/chunks/CloudEditor-Bca3RyBW.js.map +0 -1
  137. package/dist/cdn/chunks/dist-BUmN5e4r.js.map +0 -1
  138. package/dist/cdn/chunks/draggable-m78lz0gI.js.map +0 -1
  139. package/dist/cdn/chunks/features-B5dGxWLi.js.map +0 -1
  140. package/dist/cdn/chunks/icons-hflTyPmb.js.map +0 -1
  141. package/dist/cdn/chunks/liquid.browser-BxyRVCKv.js.map +0 -1
  142. package/dist/cdn/chunks/media-library-Dgy-V-JA.js.map +0 -1
  143. package/dist/cdn/chunks/pusher-D-m2WSdL.js.map +0 -1
  144. package/dist/cdn/chunks/styles-hCOCOR6K.js.map +0 -1
  145. package/dist/cdn/chunks/tiptap-C28NLMX8.js.map +0 -1
  146. package/dist/dist-Ac4o1O4a.js +0 -314
  147. package/dist/dist-DEJZ9iAU.js +0 -5
  148. package/dist/dist-DmVOCJjI.js +0 -5
  149. package/dist/styles-nvxFh6L6.js +0 -3557
  150. package/dist/templatical-editor.css +0 -2
  151. package/dist/templatical-editor.umd.cjs +0 -178
  152. package/dist/useEditorCore-ColJh1ST.js +0 -5695
  153. /package/dist/cdn/chunks/{_rolldown_dynamic_import_helper-DMEI4TQ3.js → _rolldown_dynamic_import_helper-BRcA6nWq.js} +0 -0
  154. /package/dist/{de-Dh8ON-dm.js → de-CN0xu_Tp.js} +0 -0
  155. /package/dist/{emojiData-Qc8mH_zW.js → emojiData-CwKEDxVf.js} +0 -0
  156. /package/dist/{en-C7IShRSD.js → en-DXvHkaUF.js} +0 -0
  157. /package/dist/{formatRelativeTime-D8f6NR7i.js → formatRelativeTime-BSpx5DHC.js} +0 -0
  158. /package/dist/{readableTextColor-B809bF5J.js → readableTextColor-CYCxm1jQ.js} +0 -0
  159. /package/dist/{timeouts-CmBrLeZA.js → timeouts-BSGxjuUF.js} +0 -0
@@ -1,13 +1,13 @@
1
- import { $ as e, B as t, F as n, H as r, M as i, N as a, P as o, S as s, U as c, X as l, _ as u, at as d, b as f, c as p, ct as m, d as h, g, h as _, j as v, lt as y, m as b, n as x, p as S, st as C, tt as w, u as T, v as E, x as D, y as O } from "./draggable-m78lz0gI.js";
2
- import { $ as k, An as A, C as j, D as M, Gt as N, Kt as P, Lt as F, Mt as I, Pt as L, Rt as R, S as ee, St as z, Tt as B, Y as V, Zt as H, _ as U, _n as W, at as G, b as te, c as ne, ct as K, d as re, f as q, fn as J, ft as Y, g as ie, h as ae, in as X, jt as Z, k as oe, kt as se, l as ce, m as le, p as ue, pt as Q, qt as de, u as fe, v as pe, x as me, xt as he, y as ge } from "./features-B5dGxWLi.js";
3
- import { S as _e, x as ve } from "./icons-hflTyPmb.js";
4
- import { a as ye, i as be, n as xe, o as Se, r as Ce, s as we, t as Te } from "./styles-hCOCOR6K.js";
5
- import { d as $ } from "./styleConstants-DFe3I4Op.js";
1
+ import { $ as e, B as t, F as n, H as r, M as i, N as a, P as o, S as s, U as c, X as l, _ as u, at as d, b as f, c as p, ct as m, d as h, g, h as _, j as v, lt as y, m as b, n as x, p as S, st as C, tt as w, u as T, v as E, x as D, y as O } from "./draggable-Bcb86AsV.js";
2
+ import { $ as k, An as A, At as j, C as M, D as N, Gt as P, It as F, Kt as I, Lt as L, Nt as R, Ot as z, S as B, St as V, Tt as H, Wt as U, Xt as W, Y as G, _ as ee, _n as K, at as q, b as te, c as J, ct as Y, d as ne, f as re, fn as X, ft as ie, g as ae, h as oe, in as Z, jt as se, k as ce, l as le, m as ue, p as de, pt as Q, u as fe, v as pe, x as me, xt as he, y as ge } from "./features-Ccqmm6-M.js";
3
+ import { S as _e, x as ve } from "./icons-x53__2GC.js";
4
+ import { a as ye, i as be, n as xe, o as Se, r as Ce, s as we, t as Te } from "./styles-BIlpNe52.js";
5
+ import { d as $ } from "./styleConstants-DP1VOca8.js";
6
6
  //#region src/cloud/composables/useSnapshotPreview.ts
7
7
  function Ee(t) {
8
8
  let { authManager: n, editor: r, history: i, conditionPreview: a, autoSave: o, onError: s } = t, c = w(null), l = e(null), u = e(null), d = S(() => l.value !== null), f = S(() => c.value?.snapshots.value ?? []), p = S(() => c.value?.isLoading.value ?? !1), m = S(() => c.value?.isRestoring.value ?? !1);
9
9
  function h() {
10
- r.state.template?.id && !c.value && (c.value = ue({
10
+ r.state.template?.id && !c.value && (c.value = de({
11
11
  authManager: n,
12
12
  templateId: r.state.template.id,
13
13
  onRestore: g,
@@ -78,7 +78,7 @@ function De() {
78
78
  function h(e) {
79
79
  l.value = !1, t.value = t.value === e ? null : e;
80
80
  }
81
- return H(u, () => {
81
+ return W(u, () => {
82
82
  l.value = !1;
83
83
  }), {
84
84
  activePanel: t,
@@ -101,7 +101,7 @@ function De() {
101
101
  //#endregion
102
102
  //#region src/cloud/composables/useCollabUndoWarning.ts
103
103
  function Oe(t) {
104
- let { isCollaborationEnabled: n, getCollaboratorCount: r, canUndo: i } = t, a = e(!1), o = e(!1), { start: s } = X(() => {
104
+ let { isCollaborationEnabled: n, getCollaboratorCount: r, canUndo: i } = t, a = e(!1), o = e(!1), { start: s } = Z(() => {
105
105
  o.value = !1;
106
106
  }, A, { immediate: !1 });
107
107
  function c() {
@@ -115,7 +115,7 @@ function Oe(t) {
115
115
  //#endregion
116
116
  //#region src/cloud/composables/useCloudFeatureFlags.ts
117
117
  function ke(t) {
118
- let { planConfigInstance: n, aiConfig: r, editor: i } = t, a = S(() => n.hasFeature("ai_generation") && r.hasAnyMenuFeature.value), o = S(() => n.hasFeature("test_email")), s = S(() => !!i.state.template?.id), c = S(() => n.hasFeature("white_label")), l = S(() => n.config.value?.limits.max_templates ?? null), u = S(() => n.config.value?.template_count ?? 0), d = e(!1), f = e("idle"), p = e(""), { start: m } = X(() => {
118
+ let { planConfigInstance: n, aiConfig: r, editor: i } = t, a = S(() => n.hasFeature("ai_generation") && r.hasAnyMenuFeature.value), o = S(() => n.hasFeature("test_email")), s = S(() => !!i.state.template?.id), c = S(() => n.hasFeature("white_label")), l = S(() => n.config.value?.limits.max_templates ?? null), u = S(() => n.config.value?.template_count ?? 0), d = e(!1), f = e("idle"), p = e(""), { start: m } = Z(() => {
119
119
  f.value = "idle";
120
120
  }, 3e3, { immediate: !1 });
121
121
  return {
@@ -169,29 +169,29 @@ function Ae(e) {
169
169
  //#endregion
170
170
  //#region src/cloud/composables/useCloudInitialization.ts
171
171
  function je(n) {
172
- let { config: r, translations: i, fontsManager: a, emit: s, getCommentsSidebar: c } = n, l = e(!0), u = e(!1), d = e(null), f = !1, p = { value: null }, m = null, h = null, g = new M({
172
+ let { config: r, translations: i, fontsManager: a, emit: s, getCommentsSidebar: c } = n, l = e(!0), u = e(!1), d = e(null), f = !1, p = { value: null }, m = null, h = null, g = new N({
173
173
  ...r.auth,
174
174
  onError: r.onError
175
175
  }), _ = fe({
176
176
  authManager: g,
177
177
  onError: r.onError
178
- }), v = e(/* @__PURE__ */ new Map()), y = ee({
178
+ }), v = e(/* @__PURE__ */ new Map()), y = B({
179
179
  authManager: g,
180
180
  defaultFontFamily: r.fonts?.defaultFont,
181
181
  templateDefaults: r.templateDefaults,
182
182
  onError: r.onError,
183
183
  lockedBlocks: v
184
- }), b = ae({
184
+ }), b = oe({
185
185
  authManager: g,
186
186
  onError: r.onError
187
187
  });
188
- r.mcp?.enabled && ne({
188
+ r.mcp?.enabled && J({
189
189
  editor: y,
190
190
  channel: b.channel,
191
191
  onOperation: r.mcp.onOperation
192
192
  });
193
193
  let x = null;
194
- r.collaboration?.enabled && (x = U({
194
+ r.collaboration?.enabled && (x = ee({
195
195
  authManager: g,
196
196
  editor: y,
197
197
  channel: b.channel,
@@ -202,8 +202,8 @@ function je(n) {
202
202
  onBlockUnlocked: r.collaboration.onBlockUnlocked
203
203
  }), t(() => x.lockedBlocks.value, (e) => {
204
204
  v.value = e;
205
- }, { immediate: !0 }), ie(y, x));
206
- let C = S(() => !!r.collaboration?.enabled && _.hasFeature("collaboration")), w = oe({
205
+ }, { immediate: !0 }), ae(y, x));
206
+ let C = S(() => !!r.collaboration?.enabled && _.hasFeature("collaboration")), w = ce({
207
207
  editor: y,
208
208
  config: {
209
209
  uiTheme: r.uiTheme,
@@ -255,15 +255,15 @@ function je(n) {
255
255
  mediaLibraryOpen: D.mediaLibraryOpen,
256
256
  mediaLibraryAccept: D.mediaLibraryAccept
257
257
  });
258
- V({
258
+ G({
259
259
  onBlockMove: y.moveBlock,
260
260
  onBlockAdd: y.addBlock
261
261
  });
262
- let j = re({
262
+ let j = ne({
263
263
  authManager: g,
264
264
  getFontsConfig: () => r.fonts,
265
265
  canUseCustomFonts: () => _.hasFeature("custom_fonts")
266
- }), z = q({
266
+ }), M = re({
267
267
  authManager: g,
268
268
  getTemplateId: () => y.state.template?.id ?? null,
269
269
  save: () => y.save(),
@@ -271,7 +271,7 @@ function je(n) {
271
271
  onError: r.onError,
272
272
  isAuthReady: u,
273
273
  onBeforeTestEmail: r.onBeforeTestEmail
274
- }), B = ge({
274
+ }), V = ge({
275
275
  authManager: g,
276
276
  getTemplateId: () => y.state.template?.id ?? null,
277
277
  getSocketId: () => b.getSocketId(),
@@ -281,54 +281,54 @@ function je(n) {
281
281
  hasCommentingFeature: () => r.commenting !== !1 && _.hasFeature("commenting")
282
282
  });
283
283
  pe({
284
- comments: B,
284
+ comments: V,
285
285
  channel: b.channel
286
286
  });
287
- let H = le({
287
+ let H = ue({
288
288
  authManager: g,
289
289
  onError: r.onError
290
- }), W = e(!1), G = e(null), K = e(!1), J = te({
290
+ }), W = e(!1), K = e(null), q = e(!1), Y = te({
291
291
  authManager: g,
292
292
  getTemplateId: () => y.state.template?.id ?? null
293
293
  });
294
- function Y(e) {
294
+ function X(e) {
295
295
  D.commentsOpen.value = !0, queueMicrotask(() => {
296
296
  c()?.filterByBlock(e);
297
297
  });
298
298
  }
299
- o(N, A.handleRequestMedia), o(L, g), o(I, O), o(R, B), o(P, H), o(de, J), o(F, {
299
+ o(U, A.handleRequestMedia), o(R, g), o(se, O), o(L, V), o(P, H), o(I, Y), o(F, {
300
300
  plan: _,
301
301
  ai: O,
302
302
  comments: {
303
- getBlockCount: (e) => B.commentCountByBlock.value.get(e) ?? 0,
304
- openForBlock: Y
303
+ getBlockCount: (e) => V.commentCountByBlock.value.get(e) ?? 0,
304
+ openForBlock: X
305
305
  },
306
306
  savedModules: {
307
307
  openSaveDialog: (e) => {
308
- G.value = e ?? null, W.value = !0;
308
+ K.value = e ?? null, W.value = !0;
309
309
  },
310
310
  openBrowser: () => {
311
- K.value = !0;
311
+ q.value = !0;
312
312
  },
313
313
  moduleCount: S(() => H.modules.value.length)
314
314
  }
315
315
  });
316
- function X(e) {
316
+ function ie(e) {
317
317
  _.hasFeature("theme_customization") && (w.themeOverrides.value = e);
318
318
  }
319
319
  function Z(e) {
320
320
  y.setUiTheme(e);
321
321
  }
322
- async function ue() {
322
+ async function de() {
323
323
  l.value = !0, d.value = null;
324
324
  try {
325
325
  if (await g.initialize(), f) return;
326
326
  u.value = !0;
327
- let e = await ce({ authManager: g });
327
+ let e = await le({ authManager: g });
328
328
  if (f) return;
329
329
  if (!e.api.ok) throw Error("Health check failed: API is not reachable");
330
330
  if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
331
- if (e.websocket.ok || se.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), f) return;
331
+ if (e.websocket.ok || z.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), f) return;
332
332
  a.setCustomFontsEnabled(_.hasFeature("custom_fonts")), r.customBlocks?.length && _.hasFeature("custom_blocks") && w.registerCustomBlocks(r.customBlocks), r.theme && _.hasFeature("theme_customization") && (w.themeOverrides.value = r.theme), r.modules !== !1 && _.hasFeature("saved_modules") && H.loadModules(), s("ready");
333
333
  } catch (e) {
334
334
  if (f) return;
@@ -357,29 +357,29 @@ function je(n) {
357
357
  featureFlags: k,
358
358
  mediaLib: A,
359
359
  exporter: j,
360
- testEmail: z,
361
- commentsInstance: B,
360
+ testEmail: M,
361
+ commentsInstance: V,
362
362
  savedModulesHeadless: H,
363
- scoringInstance: J,
363
+ scoringInstance: Y,
364
364
  panelState: D,
365
365
  snapshotPreview: E,
366
366
  collabWarning: T,
367
367
  showSaveModuleDialog: W,
368
- showModuleBrowserModal: K,
369
- saveModulePreSelectedBlockId: G,
368
+ showModuleBrowserModal: q,
369
+ saveModulePreSelectedBlockId: K,
370
370
  onSaveHook: p,
371
- initialize: ue,
371
+ initialize: de,
372
372
  destroy: Q,
373
- setThemeOverrides: X,
373
+ setThemeOverrides: ie,
374
374
  setUiTheme: Z,
375
- openCommentsForBlock: Y
375
+ openCommentsForBlock: X
376
376
  };
377
377
  }
378
378
  //#endregion
379
379
  //#region src/utils/preRenderCustomBlocks.ts
380
380
  async function Me(e, t) {
381
381
  let n = async (e) => {
382
- if (W(e)) {
382
+ if (K(e)) {
383
383
  let n = e;
384
384
  try {
385
385
  n.renderedHtml = await t.renderCustomBlock(n);
@@ -399,7 +399,7 @@ async function Me(e, t) {
399
399
  function Ne(e) {
400
400
  let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
401
401
  function u() {
402
- return j(i.config.value.websocket);
402
+ return M(i.config.value.websocket);
403
403
  }
404
404
  async function d(e) {
405
405
  let i = await n.create(e);
@@ -450,30 +450,26 @@ var Pe = {
450
450
  }
451
451
  }, Fe = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, Ie = {
452
452
  key: 0,
453
- class: "tpl-logo tpl:flex tpl:items-center tpl:gap-2.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
454
- }, Le = ["src"], Re = { style: { "letter-spacing": "-0.01em" } }, ze = {
455
- key: 1,
456
453
  class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
457
- }, Be = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, Ve = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, He = ["data-tooltip"], Ue = {
454
+ }, Le = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, Re = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, ze = ["data-tooltip"], Be = {
458
455
  key: 1,
459
456
  "aria-live": "polite",
460
457
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
461
- }, We = {
458
+ }, Ve = {
462
459
  key: 2,
463
460
  "aria-live": "polite",
464
461
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
465
- }, Ge = ["aria-label", "aria-expanded"], Ke = {
462
+ }, He = ["aria-label", "aria-expanded"], Ue = {
466
463
  key: 0,
467
464
  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)]"
468
- }, qe = ["aria-expanded"], Je = {
465
+ }, We = ["aria-expanded"], Ge = {
469
466
  key: 0,
470
467
  class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
471
- }, Ye = ["disabled"], Xe = ["disabled"], Ze = /* @__PURE__ */ s({
468
+ }, Ke = ["disabled"], qe = ["disabled"], Je = /* @__PURE__ */ s({
472
469
  __name: "CloudHeader",
473
470
  props: {
474
471
  editor: {},
475
472
  core: {},
476
- authManager: {},
477
473
  featureFlags: {},
478
474
  panelState: {},
479
475
  snapshotPreview: {},
@@ -487,19 +483,13 @@ var Pe = {
487
483
  },
488
484
  emits: ["save"],
489
485
  setup(e) {
490
- let t = D(() => import("./CollaboratorBar-sToKJfHi.js")), n = D(() => import("./features-B5dGxWLi.js").then((e) => e.r)), i = D(() => import("./AiFeatureMenu-Dcbshcfu.js"));
486
+ let t = D(() => import("./CollaboratorBar-DbC5-3If.js")), n = D(() => import("./features-Ccqmm6-M.js").then((e) => e.r)), i = D(() => import("./AiFeatureMenu-BcHyzTQy.js"));
491
487
  return (o, s) => (a(), u("header", Pe, [
492
- b("div", Fe, [e.featureFlags.isWhiteLabeled.value ? g("", !0) : (a(), u("div", Ie, [b("img", {
493
- src: e.authManager.resolveUrl("/logo.svg"),
494
- alt: "Templatical",
495
- width: "24",
496
- height: "24",
497
- class: "tpl:shrink-0"
498
- }, null, 8, Le), b("span", Re, y(e.core.t.header.title), 1)])), e.featureFlags.templateLimit.value === null ? g("", !0) : (a(), u("span", ze, y(e.core.format(e.core.t.header.templatesUsed, {
488
+ b("div", Fe, [e.featureFlags.templateLimit.value === null ? g("", !0) : (a(), u("span", Ie, y(e.core.format(e.core.t.header.templatesUsed, {
499
489
  used: e.featureFlags.templateCount.value,
500
490
  max: e.featureFlags.templateLimit.value
501
491
  })), 1))]),
502
- b("div", Be, [
492
+ b("div", Le, [
503
493
  f(be, {
504
494
  viewport: e.editor.state.viewport,
505
495
  onChange: e.editor.setViewport
@@ -532,19 +522,19 @@ var Pe = {
532
522
  "onNavigate"
533
523
  ])) : g("", !0)
534
524
  ]),
535
- b("div", Ve, [
525
+ b("div", Re, [
536
526
  e.featureFlags.saveStatus.value === "error" ? (a(), u("div", {
537
527
  key: 0,
538
528
  "aria-live": "assertive",
539
529
  class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
540
530
  "data-tooltip": e.featureFlags.saveErrorMessage.value
541
- }, [f(d(z), {
531
+ }, [f(d(V), {
542
532
  size: 12,
543
533
  "stroke-width": 2.5
544
- }), O(" " + y(e.core.t.header.saveFailed), 1)], 8, He)) : e.featureFlags.saveStatus.value === "saved" ? (a(), u("div", Ue, [f(d(B), {
534
+ }), O(" " + y(e.core.t.header.saveFailed), 1)], 8, ze)) : e.featureFlags.saveStatus.value === "saved" ? (a(), u("div", Be, [f(d(H), {
545
535
  size: 12,
546
536
  "stroke-width": 2.5
547
- }), O(" " + y(e.core.t.header.saved), 1)])) : e.editor.state.isDirty ? (a(), u("div", We, [s[4] ||= b("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), O(" " + y(e.core.t.header.unsaved), 1)])) : g("", !0),
537
+ }), O(" " + y(e.core.t.header.saved), 1)])) : e.editor.state.isDirty ? (a(), u("div", Ve, [s[4] ||= b("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), O(" " + y(e.core.t.header.unsaved), 1)])) : g("", !0),
548
538
  e.commentsInstance.isEnabled.value && e.featureFlags.hasTemplateSaved.value ? (a(), u("button", {
549
539
  key: 3,
550
540
  "aria-label": e.commentsInstance.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.commentsInstance.unresolvedCount.value})` : e.core.t.comments.button,
@@ -557,13 +547,13 @@ var Pe = {
557
547
  }),
558
548
  onClick: s[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
559
549
  }, [
560
- f(d(Y), {
550
+ f(d(ie), {
561
551
  size: 16,
562
552
  "stroke-width": 2
563
553
  }),
564
554
  O(" " + y(e.core.t.comments.button) + " ", 1),
565
- e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (a(), u("span", Ke, y(e.commentsInstance.unresolvedCount.value), 1)) : g("", !0)
566
- ], 14, Ge)) : g("", !0),
555
+ e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (a(), u("span", Ue, y(e.commentsInstance.unresolvedCount.value), 1)) : g("", !0)
556
+ ], 14, He)) : g("", !0),
567
557
  e.featureFlags.canUseAiGeneration.value && e.featureFlags.hasTemplateSaved.value ? (a(), u("div", {
568
558
  key: 4,
569
559
  ref: (t) => e.panelState.aiMenuRef.value = t,
@@ -572,11 +562,11 @@ var Pe = {
572
562
  "aria-expanded": e.panelState.aiMenuOpen.value,
573
563
  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", e.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
574
564
  onClick: s[1] ||= T((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
575
- }, [f(d(G), {
565
+ }, [f(d(q), {
576
566
  size: 16,
577
567
  "stroke-width": 2,
578
568
  class: "tpl-ai-btn-icon"
579
- }), O(" " + y(e.core.t.aiChat.button), 1)], 10, qe), f(x, {
569
+ }), O(" " + y(e.core.t.aiChat.button), 1)], 10, We), f(x, {
580
570
  "enter-active-class": "tpl:transition-all tpl:duration-150 tpl:ease-out",
581
571
  "enter-from-class": "tpl:scale-95 tpl:opacity-0",
582
572
  "enter-to-class": "tpl:scale-100 tpl:opacity-100",
@@ -584,7 +574,7 @@ var Pe = {
584
574
  "leave-from-class": "tpl:scale-100 tpl:opacity-100",
585
575
  "leave-to-class": "tpl:scale-95 tpl:opacity-0"
586
576
  }, {
587
- default: r(() => [e.panelState.aiMenuOpen.value ? (a(), u("div", Je, [f(d(i), {
577
+ default: r(() => [e.panelState.aiMenuOpen.value ? (a(), u("div", Ge, [f(d(i), {
588
578
  "active-feature": e.panelState.activeAiFeature.value,
589
579
  onSelect: e.panelState.handleAiFeatureSelect
590
580
  }, null, 8, ["active-feature", "onSelect"])])) : g("", !0)]),
@@ -605,11 +595,11 @@ var Pe = {
605
595
  class: "tpl-spinner",
606
596
  size: 16,
607
597
  "stroke-width": 2
608
- })) : (a(), _(d(K), {
598
+ })) : (a(), _(d(Y), {
609
599
  key: 0,
610
600
  size: 16,
611
601
  "stroke-width": 2
612
- })), O(" " + y(e.core.t.testEmail.button), 1)], 10, Ye)) : g("", !0),
602
+ })), O(" " + y(e.core.t.testEmail.button), 1)], 10, Ke)) : g("", !0),
613
603
  b("button", {
614
604
  class: C(d($)),
615
605
  style: {
@@ -628,11 +618,11 @@ var Pe = {
628
618
  key: 0,
629
619
  size: 16,
630
620
  "stroke-width": 2
631
- })), O(" " + y(e.isSaving ? e.core.t.header.saving : e.core.t.header.save), 1)], 10, Xe)
621
+ })), O(" " + y(e.isSaving ? e.core.t.header.saving : e.core.t.header.save), 1)], 10, qe)
632
622
  ])
633
623
  ]));
634
624
  }
635
- }), Qe = /* @__PURE__ */ s({
625
+ }), Ye = /* @__PURE__ */ s({
636
626
  __name: "CloudPanels",
637
627
  props: {
638
628
  config: {},
@@ -655,15 +645,18 @@ var Pe = {
655
645
  "module-insert"
656
646
  ],
657
647
  setup(t, { expose: n, emit: r }) {
658
- let i = D(() => import("./features-B5dGxWLi.js").then((e) => e.s)), o = D(() => import("./features-B5dGxWLi.js").then((e) => e.o)), s = D(() => import("./features-B5dGxWLi.js").then((e) => e.a)), c = D(() => import("./features-B5dGxWLi.js").then((e) => e.n)), l = D(() => import("./features-B5dGxWLi.js").then((e) => e.t)), p = D(() => import("./SaveModuleDialog-DvbSHvhF.js")), m = D(() => import("./ModuleBrowserModal-BNhwXbWw.js")), v = D(async () => (await import("./src-TDwMmqm0.js")).MediaLibraryModal), y = r;
648
+ let i = D(() => import("./features-Ccqmm6-M.js").then((e) => e.s)), o = D(() => import("./features-Ccqmm6-M.js").then((e) => e.o)), s = D(() => import("./features-Ccqmm6-M.js").then((e) => e.a)), c = D(() => import("./features-Ccqmm6-M.js").then((e) => e.n)), l = D(() => import("./features-Ccqmm6-M.js").then((e) => e.t)), p = D(() => import("./SaveModuleDialog-D977Tg7t.js")), m = D(() => import("./ModuleBrowserModal-Df2fp9dj.js")), v = D(async () => (await import("./src-DskCIAr8.js")).MediaLibraryModal), y = r;
659
649
  function b(e, t, n) {
660
650
  t.history.record(), n.setContent(e), t.conditionPreview.reset();
661
651
  }
662
- let x = e(null);
663
- function S(e) {
664
- x.value?.filterByBlock(e);
652
+ function x(e, t) {
653
+ y("module-insert", e, t);
654
+ }
655
+ let S = e(null);
656
+ function C(e) {
657
+ S.value?.filterByBlock(e);
665
658
  }
666
- return n({ filterCommentsByBlock: S }), (e, n) => (a(), u(h, null, [
659
+ return n({ filterCommentsByBlock: C }), (e, n) => (a(), u(h, null, [
667
660
  f(d(i), {
668
661
  visible: t.panelState.aiChatOpen.value,
669
662
  "on-apply": (e) => b(e, t.core, t.editor),
@@ -681,7 +674,7 @@ var Pe = {
681
674
  }, null, 8, ["visible", "has-existing-blocks"]),
682
675
  f(d(o), {
683
676
  ref_key: "commentsSidebar",
684
- ref: x,
677
+ ref: S,
685
678
  visible: t.panelState.commentsOpen.value,
686
679
  onClose: n[4] ||= (e) => t.panelState.commentsOpen.value = !1
687
680
  }, null, 8, ["visible"]),
@@ -711,7 +704,7 @@ var Pe = {
711
704
  key: 1,
712
705
  visible: t.showModuleBrowserModal,
713
706
  onClose: n[9] ||= (e) => y("update:showModuleBrowserModal", !1),
714
- onInsert: n[10] ||= (e, t) => y("module-insert", e, t)
707
+ onInsert: x
715
708
  }, null, 8, ["visible"])) : g("", !0),
716
709
  f(d(v), {
717
710
  visible: t.panelState.mediaLibraryOpen.value,
@@ -726,23 +719,23 @@ var Pe = {
726
719
  ])
727
720
  ], 64));
728
721
  }
729
- }), $e = {
722
+ }), Xe = {
730
723
  key: 0,
731
724
  class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
732
- }, et = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, tt = { 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)]" }, nt = /* @__PURE__ */ s({
725
+ }, Ze = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, Qe = { 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)]" }, $e = /* @__PURE__ */ s({
733
726
  __name: "CloudLoadingOverlay",
734
727
  props: { visible: { type: Boolean } },
735
728
  setup(e) {
736
- return (t, r) => e.visible ? (a(), u("div", $e, [r[1] ||= E("<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), b("div", et, [b("div", tt, [(a(), u(h, null, n(5, (e) => b("div", {
729
+ return (t, r) => e.visible ? (a(), u("div", Xe, [r[1] ||= E("<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), b("div", Ze, [b("div", Qe, [(a(), u(h, null, n(5, (e) => b("div", {
737
730
  key: e,
738
731
  class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
739
732
  })), 64))]), r[0] ||= E("<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)])])) : g("", !0);
740
733
  }
741
- }), rt = {
734
+ }), et = {
742
735
  key: 0,
743
736
  role: "alert",
744
737
  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)]"
745
- }, it = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, at = { 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)]" }, st = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ct = /* @__PURE__ */ s({
738
+ }, tt = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, nt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, rt = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, it = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, at = /* @__PURE__ */ s({
746
739
  __name: "CloudErrorOverlay",
747
740
  props: {
748
741
  error: {},
@@ -750,20 +743,20 @@ var Pe = {
750
743
  },
751
744
  emits: ["retry"],
752
745
  setup(e, { emit: t }) {
753
- let n = t, { t: r } = Z();
746
+ let n = t, { t: r } = j();
754
747
  function i(e) {
755
748
  return "isUnauthorized" in e && e.isUnauthorized ? r.error.authFailed : "isNotFound" in e && e.isNotFound ? r.error.templateNotFound : r.error.defaultMessage;
756
749
  }
757
750
  function o(e) {
758
751
  return "isNotFound" in e && !!e.isNotFound;
759
752
  }
760
- return (t, s) => e.visible && e.error ? (a(), u("div", rt, [
761
- b("div", it, [f(d(z), {
753
+ return (t, s) => e.visible && e.error ? (a(), u("div", et, [
754
+ b("div", tt, [f(d(V), {
762
755
  size: 32,
763
756
  "stroke-width": 1.5,
764
757
  class: "tpl:text-[var(--tpl-danger)]"
765
758
  })]),
766
- b("div", at, [b("h2", ot, y(d(r).error.title), 1), b("p", st, y(i(e.error)), 1)]),
759
+ b("div", nt, [b("h2", rt, y(d(r).error.title), 1), b("p", it, y(i(e.error)), 1)]),
767
760
  o(e.error) ? g("", !0) : (a(), u("button", {
768
761
  key: 0,
769
762
  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)]",
@@ -771,20 +764,20 @@ var Pe = {
771
764
  }, y(d(r).error.retry), 1))
772
765
  ])) : g("", !0);
773
766
  }
774
- }), lt = {
767
+ }), ot = {
775
768
  key: 0,
776
769
  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)]"
777
- }, ut = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, dt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ft = /* @__PURE__ */ s({
770
+ }, st = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, ct = { class: "tpl:flex tpl:items-center tpl:gap-2" }, lt = /* @__PURE__ */ s({
778
771
  __name: "SnapshotPreviewBanner",
779
772
  props: { visible: { type: Boolean } },
780
773
  emits: ["cancel", "confirm"],
781
774
  setup(e, { emit: t }) {
782
- let n = t, { t: r } = Z();
783
- return (t, i) => e.visible ? (a(), u("div", lt, [b("div", ut, [f(d(he), {
775
+ let n = t, { t: r } = j();
776
+ return (t, i) => e.visible ? (a(), u("div", ot, [b("div", st, [f(d(he), {
784
777
  size: 18,
785
778
  "stroke-width": 2,
786
779
  class: "tpl:text-[var(--tpl-primary)]"
787
- }), b("span", null, y(d(r).snapshotPreview.message), 1)]), b("div", dt, [b("button", {
780
+ }), b("span", null, y(d(r).snapshotPreview.message), 1)]), b("div", ct, [b("button", {
788
781
  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)]",
789
782
  style: { "background-color": "transparent" },
790
783
  onClick: i[0] ||= (e) => n("cancel")
@@ -793,7 +786,7 @@ var Pe = {
793
786
  onClick: i[1] ||= (e) => n("confirm")
794
787
  }, y(d(r).snapshotPreview.restore), 1)])])) : g("", !0);
795
788
  }
796
- }), pt = {
789
+ }), ut = {
797
790
  key: 0,
798
791
  role: "status",
799
792
  "aria-live": "polite",
@@ -803,14 +796,14 @@ var Pe = {
803
796
  color: "var(--tpl-text)",
804
797
  border: "1px solid var(--tpl-warning)"
805
798
  }
806
- }, mt = /* @__PURE__ */ s({
799
+ }, dt = /* @__PURE__ */ s({
807
800
  __name: "CollabUndoToast",
808
801
  props: { visible: { type: Boolean } },
809
802
  setup(e) {
810
- let { t } = Z();
811
- return (n, r) => e.visible ? (a(), u("div", pt, y(d(t).history.collabWarning), 1)) : g("", !0);
803
+ let { t } = j();
804
+ return (n, r) => e.visible ? (a(), u("div", ut, y(d(t).history.collabWarning), 1)) : g("", !0);
812
805
  }
813
- }), ht = ["data-tpl-theme"], gt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, _t = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, vt = ["aria-label"], yt = /* @__PURE__ */ k(/* @__PURE__ */ s({
806
+ }), ft = ["data-tpl-theme"], pt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, mt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, ht = ["aria-label"], gt = /* @__PURE__ */ k(/* @__PURE__ */ s({
814
807
  __name: "CloudEditor",
815
808
  props: {
816
809
  config: {},
@@ -825,47 +818,47 @@ var Pe = {
825
818
  fontsManager: s.fontsManager,
826
819
  emit: l,
827
820
  getCommentsSidebar: () => h.value ? { filterByBlock: h.value.filterCommentsByBlock } : null
828
- }), { isInitializing: w, isAuthReady: T, initError: E, authManager: D, planConfigInstance: k, websocket: A, collaboration: j, isCollaborationEnabled: M, editor: N, core: P, featureFlags: F, mediaLib: I, exporter: L, testEmail: R, commentsInstance: ee, savedModulesHeadless: z, panelState: B, snapshotPreview: V, collabWarning: H, showSaveModuleDialog: U, showModuleBrowserModal: W, saveModulePreSelectedBlockId: G, setThemeOverrides: te, setUiTheme: ne } = S;
829
- async function K(e) {
821
+ }), { isInitializing: w, isAuthReady: T, initError: E, planConfigInstance: D, websocket: k, collaboration: A, isCollaborationEnabled: j, editor: M, core: N, featureFlags: P, mediaLib: F, exporter: I, testEmail: L, commentsInstance: R, savedModulesHeadless: z, panelState: B, snapshotPreview: V, collabWarning: H, showSaveModuleDialog: U, showModuleBrowserModal: W, saveModulePreSelectedBlockId: G, setThemeOverrides: ee, setUiTheme: K } = S;
822
+ async function q(e) {
830
823
  try {
831
- await R.sendTestEmail(e), B.testEmailModalOpen.value = !1;
824
+ await L.sendTestEmail(e), B.testEmailModalOpen.value = !1;
832
825
  } catch {}
833
826
  }
834
- function re(e, t) {
827
+ function te(e, t) {
835
828
  for (let n = 0; n < e.content.length; n++) {
836
- let r = J(e.content[n]), i = t === void 0 ? void 0 : t + n;
837
- N.addBlock(r, void 0, void 0, i);
829
+ let r = X(e.content[n]), i = t === void 0 ? void 0 : t + n;
830
+ M.addBlock(r, void 0, void 0, i);
838
831
  }
839
832
  W.value = !1;
840
833
  }
841
- let q = Ne({
834
+ let J = Ne({
842
835
  config: s.config,
843
- editor: N,
844
- websocket: A,
845
- planConfigInstance: k,
836
+ editor: M,
837
+ websocket: k,
838
+ planConfigInstance: D,
846
839
  snapshotPreview: V,
847
- core: P,
848
- exporter: L,
849
- featureFlags: F,
840
+ core: N,
841
+ exporter: I,
842
+ featureFlags: P,
850
843
  isDestroyed: S.isDestroyed
851
844
  });
852
- return S.onSaveHook.value = q.saveTemplate, v(() => {
845
+ return S.onSaveHook.value = J.saveTemplate, v(() => {
853
846
  S.initialize();
854
847
  }), i(() => {
855
848
  S.destroy();
856
849
  }), n({
857
- getContent: () => N.content.value,
858
- setContent: (e) => N.setContent(e),
859
- setTheme: ne,
860
- setThemeOverrides: te,
861
- create: q.createTemplate,
862
- load: q.loadTemplate,
863
- save: q.saveTemplate,
864
- sendTestEmail: R.sendTestEmail
865
- }), (e, t) => (a(), u("div", {
866
- class: C(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": d(N).state.darkMode }]),
867
- "data-tpl-theme": d(P).resolvedTheme.value,
868
- style: m(d(P).themeStyles.value)
850
+ getContent: () => M.content.value,
851
+ setContent: (e) => M.setContent(e),
852
+ setTheme: K,
853
+ setThemeOverrides: ee,
854
+ create: J.createTemplate,
855
+ load: J.loadTemplate,
856
+ save: J.saveTemplate,
857
+ sendTestEmail: L.sendTestEmail
858
+ }), (e, n) => (a(), u("div", {
859
+ class: C(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": d(M).state.darkMode }]),
860
+ "data-tpl-theme": d(N).resolvedTheme.value,
861
+ style: m(d(N).themeStyles.value)
869
862
  }, [
870
863
  f(x, {
871
864
  "enter-active-class": "tpl:transition-opacity tpl:duration-200",
@@ -875,7 +868,7 @@ var Pe = {
875
868
  "leave-from-class": "tpl:opacity-100",
876
869
  "leave-to-class": "tpl:opacity-0"
877
870
  }, {
878
- default: r(() => [f(nt, { visible: d(w) || d(N).state.isLoading }, null, 8, ["visible"])]),
871
+ default: r(() => [f($e, { visible: d(w) || d(M).state.isLoading }, null, 8, ["visible"])]),
879
872
  _: 1
880
873
  }),
881
874
  f(x, {
@@ -886,7 +879,7 @@ var Pe = {
886
879
  "leave-from-class": "tpl:opacity-100",
887
880
  "leave-to-class": "tpl:opacity-0"
888
881
  }, {
889
- default: r(() => [f(ct, {
882
+ default: r(() => [f(at, {
890
883
  error: d(E),
891
884
  visible: !!d(E) && !d(w),
892
885
  onRetry: d(S).initialize
@@ -897,25 +890,23 @@ var Pe = {
897
890
  ])]),
898
891
  _: 1
899
892
  }),
900
- f(Ze, {
901
- editor: d(N),
902
- core: d(P),
903
- "auth-manager": d(D),
904
- "feature-flags": d(F),
893
+ f(Je, {
894
+ editor: d(M),
895
+ core: d(N),
896
+ "feature-flags": d(P),
905
897
  "panel-state": d(B),
906
898
  "snapshot-preview": d(V),
907
- "comments-instance": d(ee),
908
- "test-email": d(R),
909
- websocket: d(A),
910
- collaboration: d(j),
911
- "is-collaboration-enabled": d(M),
912
- "is-saving": d(N).state.isSaving || d(F).isSaveExporting.value,
913
- "is-save-disabled": d(N).state.isSaving || d(F).isSaveExporting.value || !d(N).state.isDirty,
914
- onSave: t[0] ||= (e) => d(q).saveTemplate().catch((e) => s.config.onError?.(e))
899
+ "comments-instance": d(R),
900
+ "test-email": d(L),
901
+ websocket: d(k),
902
+ collaboration: d(A),
903
+ "is-collaboration-enabled": d(j),
904
+ "is-saving": d(M).state.isSaving || d(P).isSaveExporting.value,
905
+ "is-save-disabled": d(M).state.isSaving || d(P).isSaveExporting.value || !d(M).state.isDirty,
906
+ onSave: n[0] ||= (e) => d(J).saveTemplate().catch((e) => s.config.onError?.(e))
915
907
  }, null, 8, [
916
908
  "editor",
917
909
  "core",
918
- "auth-manager",
919
910
  "feature-flags",
920
911
  "panel-state",
921
912
  "snapshot-preview",
@@ -927,7 +918,7 @@ var Pe = {
927
918
  "is-saving",
928
919
  "is-save-disabled"
929
920
  ]),
930
- f(ft, {
921
+ f(lt, {
931
922
  visible: d(V).isPreviewingSnapshot.value,
932
923
  onCancel: d(V).cancelPreview,
933
924
  onConfirm: d(V).confirmRestoreSnapshot
@@ -944,18 +935,18 @@ var Pe = {
944
935
  "leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
945
936
  "leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
946
937
  }, {
947
- default: r(() => [f(mt, { visible: d(H).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
938
+ default: r(() => [f(dt, { visible: d(H).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
948
939
  _: 1
949
940
  }),
950
- c(f(Se, null, null, 512), [[p, !d(N).state.previewMode]]),
941
+ c(f(Se, null, null, 512), [[p, !d(M).state.previewMode]]),
951
942
  b("div", {
952
- class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [d(N).state.previewMode ? "tpl:left-0 tpl:right-0" : d(B).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", d(V).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
943
+ class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [d(M).state.previewMode ? "tpl:left-0 tpl:right-0" : d(B).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", d(V).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
953
944
  style: {
954
945
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
955
946
  "background-color": "var(--tpl-canvas-bg)"
956
947
  }
957
- }, [b("div", gt, [f(x, { name: "tpl-restore-btn" }, {
958
- default: r(() => [d(P).conditionPreview.hasHiddenBlocks.value ? (a(), u("button", {
948
+ }, [b("div", pt, [f(x, { name: "tpl-restore-btn" }, {
949
+ default: r(() => [d(N).conditionPreview.hasHiddenBlocks.value ? (a(), u("button", {
959
950
  key: 0,
960
951
  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",
961
952
  style: {
@@ -964,22 +955,22 @@ var Pe = {
964
955
  "border-color": "var(--tpl-warning)",
965
956
  "backdrop-filter": "blur(8px)"
966
957
  },
967
- onClick: t[1] ||= (e) => d(P).conditionPreview.reset()
958
+ onClick: n[1] ||= (e) => d(N).conditionPreview.reset()
968
959
  }, [f(d(_e), {
969
960
  size: 13,
970
961
  "stroke-width": 2
971
- }), O(" " + y(d(P).t.blockSettings.restoreHiddenBlocks), 1)])) : g("", !0)]),
962
+ }), O(" " + y(d(N).t.blockSettings.restoreHiddenBlocks), 1)])) : g("", !0)]),
972
963
  _: 1
973
- })]), b("main", _t, [f(we, {
974
- viewport: d(N).state.viewport,
975
- content: d(N).content.value,
976
- "selected-block-id": d(N).state.selectedBlockId,
977
- "dark-mode": d(N).state.darkMode,
978
- "preview-mode": d(N).state.previewMode,
979
- "locked-blocks": d(j)?.lockedBlocks.value ?? void 0,
980
- onSelectBlock: d(N).selectBlock,
981
- onOpenAiChat: t[2] ||= (e) => d(B).aiChatOpen.value = !0,
982
- onOpenDesignReference: t[3] ||= (e) => d(B).designReferenceOpen.value = !0
964
+ })]), b("main", mt, [f(we, {
965
+ viewport: d(M).state.viewport,
966
+ content: d(M).content.value,
967
+ "selected-block-id": d(M).state.selectedBlockId,
968
+ "dark-mode": d(M).state.darkMode,
969
+ "preview-mode": d(M).state.previewMode,
970
+ "locked-blocks": d(A)?.lockedBlocks.value ?? void 0,
971
+ onSelectBlock: d(M).selectBlock,
972
+ onOpenAiChat: n[2] ||= (e) => d(B).aiChatOpen.value = !0,
973
+ onOpenDesignReference: n[3] ||= (e) => d(B).designReferenceOpen.value = !0
983
974
  }, null, 8, [
984
975
  "viewport",
985
976
  "content",
@@ -989,51 +980,51 @@ var Pe = {
989
980
  "locked-blocks",
990
981
  "onSelectBlock"
991
982
  ])])], 2),
992
- d(F).isWhiteLabeled.value ? g("", !0) : (a(), _(Te, {
983
+ t.config.branding !== !1 && !d(P).isWhiteLabeled.value ? (a(), _(Te, {
993
984
  key: 0,
994
- "position-class": [d(N).state.previewMode ? "tpl:left-0 tpl:right-0" : d(B).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
995
- }, null, 8, ["position-class"])),
985
+ "position-class": [d(M).state.previewMode ? "tpl:left-0 tpl:right-0" : d(B).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
986
+ }, null, 8, ["position-class"])) : g("", !0),
996
987
  b("div", {
997
988
  class: "tpl-sr-only",
998
989
  role: "status",
999
990
  "aria-live": "polite",
1000
991
  "aria-atomic": "true",
1001
- "aria-label": d(P).t.landmarks.reorderAnnouncements
1002
- }, y(d(P).keyboardReorder.announcement.value), 9, vt),
992
+ "aria-label": d(N).t.landmarks.reorderAnnouncements
993
+ }, y(d(N).keyboardReorder.announcement.value), 9, ht),
1003
994
  c(f(ye, {
1004
- "selected-block": d(N).selectedBlock.value,
1005
- settings: d(N).content.value.settings,
995
+ "selected-block": d(M).selectedBlock.value,
996
+ settings: d(M).content.value.settings,
1006
997
  "shifted-left": d(B).rightPanelOpen.value,
1007
- onUpdateBlock: t[4] ||= (e) => d(N).updateBlock(d(N).selectedBlock.value.id, e),
1008
- onDeleteBlock: t[5] ||= (e) => d(P).blockActions.deleteBlock(d(N).selectedBlock.value.id),
1009
- onDuplicateBlock: t[6] ||= (e) => d(P).blockActions.duplicateBlock(d(N).selectedBlock.value),
1010
- onUpdateSettings: d(N).updateSettings
998
+ onUpdateBlock: n[4] ||= (e) => d(M).updateBlock(d(M).selectedBlock.value.id, e),
999
+ onDeleteBlock: n[5] ||= (e) => d(N).blockActions.deleteBlock(d(M).selectedBlock.value.id),
1000
+ onDuplicateBlock: n[6] ||= (e) => d(N).blockActions.duplicateBlock(d(M).selectedBlock.value),
1001
+ onUpdateSettings: d(M).updateSettings
1011
1002
  }, null, 8, [
1012
1003
  "selected-block",
1013
1004
  "settings",
1014
1005
  "shifted-left",
1015
1006
  "onUpdateSettings"
1016
- ]), [[p, !d(N).state.previewMode]]),
1017
- !d(w) && d(T) ? (a(), _(Qe, {
1007
+ ]), [[p, !d(M).state.previewMode]]),
1008
+ !d(w) && d(T) ? (a(), _(Ye, {
1018
1009
  key: 1,
1019
1010
  ref_key: "cloudPanelsRef",
1020
1011
  ref: h,
1021
1012
  config: s.config,
1022
- editor: d(N),
1023
- core: d(P),
1013
+ editor: d(M),
1014
+ core: d(N),
1024
1015
  "panel-state": d(B),
1025
- "plan-config-instance": d(k),
1026
- "test-email": d(R),
1027
- "media-lib": d(I),
1016
+ "plan-config-instance": d(D),
1017
+ "test-email": d(L),
1018
+ "media-lib": d(F),
1028
1019
  "saved-modules-headless": d(z),
1029
1020
  "show-save-module-dialog": d(U),
1030
1021
  "save-module-pre-selected-block-id": d(G),
1031
1022
  "show-module-browser-modal": d(W),
1032
- "onUpdate:showSaveModuleDialog": t[7] ||= (e) => U.value = e,
1033
- "onUpdate:saveModulePreSelectedBlockId": t[8] ||= (e) => G.value = e,
1034
- "onUpdate:showModuleBrowserModal": t[9] ||= (e) => W.value = e,
1035
- onSendTestEmail: K,
1036
- onModuleInsert: re
1023
+ "onUpdate:showSaveModuleDialog": n[7] ||= (e) => U.value = e,
1024
+ "onUpdate:saveModulePreSelectedBlockId": n[8] ||= (e) => G.value = e,
1025
+ "onUpdate:showModuleBrowserModal": n[9] ||= (e) => W.value = e,
1026
+ onSendTestEmail: q,
1027
+ onModuleInsert: te
1037
1028
  }, null, 8, [
1038
1029
  "config",
1039
1030
  "editor",
@@ -1047,10 +1038,10 @@ var Pe = {
1047
1038
  "save-module-pre-selected-block-id",
1048
1039
  "show-module-browser-modal"
1049
1040
  ])) : g("", !0)
1050
- ], 14, ht));
1041
+ ], 14, ft));
1051
1042
  }
1052
- }), [["__scopeId", "data-v-45bdd3b1"]]);
1043
+ }), [["__scopeId", "data-v-48e2c2ee"]]);
1053
1044
  //#endregion
1054
- export { yt as default };
1045
+ export { gt as default };
1055
1046
 
1056
- //# sourceMappingURL=CloudEditor-Bca3RyBW.js.map
1047
+ //# sourceMappingURL=CloudEditor-TaEZq-YW.js.map