@templatical/editor 0.0.4 → 0.0.5

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 (108) hide show
  1. package/dist/{AiChatSidebar-CjfhTZwo.js → AiChatSidebar-DwME3f-a.js} +84 -70
  2. package/dist/{AiFeatureMenu-K44aZa_P.js → AiFeatureMenu-DJvWL1GZ.js} +23 -23
  3. package/dist/CloudEditor-Fe0ssRgi.js +1082 -0
  4. package/dist/{CollaboratorBar-BuCEcdbB.js → CollaboratorBar-DTT0EkZn.js} +1 -1
  5. package/dist/{CommentsSidebar-2lcqMfIP.js → CommentsSidebar-DrJhQRXK.js} +131 -131
  6. package/dist/{DesignReferenceSidebar-CNMu4Zrx.js → DesignReferenceSidebar-DdOht5zn.js} +49 -49
  7. package/dist/{ModuleBrowserModal-CvQ0xyQf.js → ModuleBrowserModal-CiV_jOEM.js} +58 -58
  8. package/dist/{ModulePreviewCanvas-Be2B3Y07.js → ModulePreviewCanvas-Bmy6Y1WE.js} +1 -1
  9. package/dist/ParagraphEditor-CoQ3NlS7.js +688 -0
  10. package/dist/{SaveModuleDialog-BaaeH5Xm.js → SaveModuleDialog-CD2ZYq1o.js} +25 -25
  11. package/dist/{SnapshotHistory-BPfjiuu1.js → SnapshotHistory-DltsKvhP.js} +1 -1
  12. package/dist/TemplateScoringPanel-DmnmUE3y.js +254 -0
  13. package/dist/{TestEmailModal-DIAlB3e_.js → TestEmailModal-Dl633j9o.js} +2 -2
  14. package/dist/{TitleEditor-D9DPjQkX.js → TitleEditor-C7fds2Nc.js} +3 -3
  15. package/dist/{TplModal-CmTSvCY-.js → TplModal-C5_CF-qn.js} +1 -1
  16. package/dist/{blockTypeIcons-D1RTWOkx.js → blockTypeIcons-BrKZB10B.js} +1 -1
  17. package/dist/cdn/chunks/AiChatSidebar-X_Bv3Qys.js +2 -0
  18. package/dist/cdn/chunks/{AiFeatureMenu-lxVm1RjH.js → AiFeatureMenu-C5UQmEgV.js} +16 -16
  19. package/dist/cdn/chunks/AiFeatureMenu-C5UQmEgV.js.map +1 -0
  20. package/dist/cdn/chunks/CloudEditor-DeTolKnf.js +1056 -0
  21. package/dist/cdn/chunks/CloudEditor-DeTolKnf.js.map +1 -0
  22. package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js → CollaboratorBar-DO1nxSrr.js} +3 -3
  23. package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js.map → CollaboratorBar-DO1nxSrr.js.map} +1 -1
  24. package/dist/cdn/chunks/CommentsSidebar-4MTw_hue.js +2 -0
  25. package/dist/cdn/chunks/DesignReferenceSidebar-Bswh4Yx4.js +2 -0
  26. package/dist/cdn/chunks/{ModuleBrowserModal-CxDXzkKS.js → ModuleBrowserModal-ChBr3aXj.js} +52 -52
  27. package/dist/cdn/chunks/ModuleBrowserModal-ChBr3aXj.js.map +1 -0
  28. package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js → ModulePreviewCanvas-DkSvri9H.js} +2 -2
  29. package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js.map → ModulePreviewCanvas-DkSvri9H.js.map} +1 -1
  30. package/dist/cdn/chunks/ParagraphEditor-DU3oUKA7.js +539 -0
  31. package/dist/cdn/chunks/ParagraphEditor-DU3oUKA7.js.map +1 -0
  32. package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js → RichTextEditorContent-BrsW1p9s.js} +4 -4
  33. package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js.map → RichTextEditorContent-BrsW1p9s.js.map} +1 -1
  34. package/dist/cdn/chunks/{SaveModuleDialog-DVna2xUl.js → SaveModuleDialog-CjqKkTEc.js} +24 -24
  35. package/dist/cdn/chunks/SaveModuleDialog-CjqKkTEc.js.map +1 -0
  36. package/dist/cdn/chunks/SnapshotHistory-KME4xmn_.js +2 -0
  37. package/dist/cdn/chunks/TemplateScoringPanel-DgB3xDN6.js +2 -0
  38. package/dist/cdn/chunks/TestEmailModal-DdpvRbYf.js +2 -0
  39. package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js → TitleEditor-C8FYbadT.js} +9 -9
  40. package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js.map → TitleEditor-C8FYbadT.js.map} +1 -1
  41. package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js → blockTypeIcons-5QwYklNq.js} +3 -3
  42. package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js.map → blockTypeIcons-5QwYklNq.js.map} +1 -1
  43. package/dist/cdn/chunks/{dist-CJcMnY7o.js → dist-BF5c3Dr-.js} +1 -1
  44. package/dist/cdn/chunks/dist-BGzvIxcJ.js +2 -0
  45. package/dist/cdn/chunks/dist-CFemF8rI.js +2 -0
  46. package/dist/cdn/chunks/dist-Co6uFhFK.js +2 -0
  47. package/dist/cdn/chunks/{dist-BkETaOfw.js → dist-DCikBY9K.js} +1 -1
  48. package/dist/cdn/chunks/dist-DUILafAC.js +2 -0
  49. package/dist/cdn/chunks/dist-DghiKH0A.js +2 -0
  50. package/dist/cdn/chunks/dist-Dw8ckvfK.js +2 -0
  51. package/dist/cdn/chunks/dist-H07p0KAw.js +2 -0
  52. package/dist/cdn/chunks/{dist-B878xb_62.js → dist-KYv9v_1z2.js} +11 -11
  53. package/dist/cdn/chunks/{dist-B878xb_62.js.map → dist-KYv9v_1z2.js.map} +1 -1
  54. package/dist/cdn/chunks/{dist-DLWHlekl.js → dist-MjnKIc0W.js} +1 -1
  55. package/dist/cdn/chunks/{dist-CllLxIMQ.js → dist-odp0vGRv.js} +1 -1
  56. package/dist/cdn/chunks/{extensions-B_kcV0tK.js → extensions-Bj7USRLr.js} +20 -20
  57. package/dist/cdn/chunks/{extensions-B_kcV0tK.js.map → extensions-Bj7USRLr.js.map} +1 -1
  58. package/dist/cdn/chunks/{features-ofOGnSC0.js → features-Ds0XUfte.js} +1235 -1198
  59. package/dist/cdn/chunks/features-Ds0XUfte.js.map +1 -0
  60. package/dist/cdn/chunks/{icons-bIb7PBOE.js → icons-fWsuSvgd.js} +2 -2
  61. package/dist/cdn/chunks/{icons-bIb7PBOE.js.map → icons-fWsuSvgd.js.map} +1 -1
  62. package/dist/cdn/chunks/{media-library-BIYzV2Y2.js → media-library-BGQm_OyC.js} +528 -528
  63. package/dist/cdn/chunks/{media-library-BIYzV2Y2.js.map → media-library-BGQm_OyC.js.map} +1 -1
  64. package/dist/cdn/chunks/{src-BuW9oYtm.js → src-3i8rPuqd.js} +4 -4
  65. package/dist/cdn/chunks/{src-BuW9oYtm.js.map → src-3i8rPuqd.js.map} +1 -1
  66. package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js → styleConstants-DFe3I4Op.js} +6 -6
  67. package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js.map → styleConstants-DFe3I4Op.js.map} +1 -1
  68. package/dist/cdn/chunks/{styles-DQFExz-T.js → styles-Dgijy53u.js} +1224 -1096
  69. package/dist/cdn/chunks/styles-Dgijy53u.js.map +1 -0
  70. package/dist/cdn/chunks/{tiptap-DplY-S-k.js → tiptap-BhxaWR8R.js} +2 -2
  71. package/dist/cdn/chunks/{tiptap-DplY-S-k.js.map → tiptap-BhxaWR8R.js.map} +1 -1
  72. package/dist/cdn/editor.css +1 -1
  73. package/dist/cdn/editor.js +110 -139
  74. package/dist/cdn/editor.js.map +1 -1
  75. package/dist/{dist-BkIys9zn.js → dist-Ci5lFuUy.js} +1 -1
  76. package/dist/{extensions-DEjfEFhD.js → extensions-DWx_jj8v.js} +1 -1
  77. package/dist/{styleConstants-D4SOZGBV.js → styleConstants-Cxw88naD.js} +5 -5
  78. package/dist/{styles-CgLaxDfu.js → styles-fdXNRqI3.js} +1341 -1213
  79. package/dist/templatical-editor.css +1 -1
  80. package/dist/templatical-editor.js +99 -129
  81. package/dist/templatical-editor.umd.cjs +55 -64
  82. package/dist/{useEditorCore-CjwRMl7K.js → useEditorCore-DUGD6pq_.js} +1054 -1033
  83. package/package.json +4 -2
  84. package/dist/CloudEditor-DFyuRxUV.js +0 -926
  85. package/dist/ParagraphEditor-CcMPnbDr.js +0 -652
  86. package/dist/TemplateScoringPanel-D58A23Vq.js +0 -249
  87. package/dist/cdn/chunks/AiChatSidebar-CmPTbTFG.js +0 -2
  88. package/dist/cdn/chunks/AiFeatureMenu-lxVm1RjH.js.map +0 -1
  89. package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js +0 -900
  90. package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js.map +0 -1
  91. package/dist/cdn/chunks/CommentsSidebar-BOelj4Ca.js +0 -2
  92. package/dist/cdn/chunks/DesignReferenceSidebar-Bf6rg0A7.js +0 -2
  93. package/dist/cdn/chunks/ModuleBrowserModal-CxDXzkKS.js.map +0 -1
  94. package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js +0 -503
  95. package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js.map +0 -1
  96. package/dist/cdn/chunks/SaveModuleDialog-DVna2xUl.js.map +0 -1
  97. package/dist/cdn/chunks/SnapshotHistory-BFF2SsTN.js +0 -2
  98. package/dist/cdn/chunks/TemplateScoringPanel-gi8wc_m7.js +0 -2
  99. package/dist/cdn/chunks/TestEmailModal-Qtd6aC-6.js +0 -2
  100. package/dist/cdn/chunks/dist-B6AUkMyh.js +0 -2
  101. package/dist/cdn/chunks/dist-Bf1Op9A1.js +0 -2
  102. package/dist/cdn/chunks/dist-CWsl6S1K.js +0 -2
  103. package/dist/cdn/chunks/dist-Cs0wFwdw.js +0 -2
  104. package/dist/cdn/chunks/dist-DS3_HVpX.js +0 -2
  105. package/dist/cdn/chunks/dist-DTXopj1a.js +0 -2
  106. package/dist/cdn/chunks/dist-DnwLoNLm.js +0 -2
  107. package/dist/cdn/chunks/features-ofOGnSC0.js.map +0 -1
  108. package/dist/cdn/chunks/styles-DQFExz-T.js.map +0 -1
@@ -0,0 +1,1082 @@
1
+ import { F as e, S as t, t as n } from "./useEditorCore-DUGD6pq_.js";
2
+ import { t as r } from "./timeouts-CmBrLeZA.js";
3
+ import { s as i, t as a } from "./dist-CG-vEqSU.js";
4
+ import { b as o, c as s, r as c, s as l, t as u, v as d, x as f } from "./keys-C0MQRs8d.js";
5
+ import { t as p } from "./useI18n-D6m7ZUgY.js";
6
+ import { n as m, t as h } from "./_plugin-vue_export-helper-B1-bu7yR.js";
7
+ import { t as g } from "./check-B7kDuZmP.js";
8
+ import { t as _ } from "./circle-alert-E2vYPs5r.js";
9
+ import { a as v, c as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./styles-fdXNRqI3.js";
10
+ import { t as E } from "./clock-lWIIQA3C.js";
11
+ import { t as D } from "./loader-circle-BTQQxC3l.js";
12
+ import { t as O } from "./message-circle-Blgm6V_h.js";
13
+ import { t as k } from "./send-C0ltAQrv.js";
14
+ import { t as A } from "./sparkles-KhBCGlqB.js";
15
+ import { d as j } from "./styleConstants-Cxw88naD.js";
16
+ import { Fragment as M, Transition as N, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createStaticVNode as z, createTextVNode as B, createVNode as V, defineAsyncComponent as H, defineComponent as U, normalizeClass as W, normalizeStyle as G, onMounted as K, onScopeDispose as q, onUnmounted as ee, openBlock as J, provide as Y, ref as X, renderList as te, shallowRef as ne, toDisplayString as Z, unref as Q, vShow as re, watch as ie, withCtx as $, withDirectives as ae, withModifiers as oe } from "vue";
17
+ import { cloneBlock as se, isCustomBlock as ce } from "@templatical/types";
18
+ import { AuthManager as le, performHealthCheck as ue, resolveWebSocketConfig as de, useAiConfig as fe, useCollaboration as pe, useCollaborationBroadcast as me, useCommentListener as he, useComments as ge, useEditor as _e, useExport as ve, useMcpListener as ye, usePlanConfig as be, useSavedModules as xe, useSnapshotHistory as Se, useTemplateScoring as Ce, useTestEmail as we, useWebSocket as Te } from "@templatical/core/cloud";
19
+ var Ee = m("save", [
20
+ ["path", {
21
+ d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
22
+ key: "1c8476"
23
+ }],
24
+ ["path", {
25
+ d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",
26
+ key: "1ydtos"
27
+ }],
28
+ ["path", {
29
+ d: "M7 3v4a1 1 0 0 0 1 1h7",
30
+ key: "t51u73"
31
+ }]
32
+ ]);
33
+ //#endregion
34
+ //#region src/cloud/composables/useSnapshotPreview.ts
35
+ function De(e) {
36
+ let { authManager: t, editor: n, history: r, conditionPreview: i, autoSave: a, onError: o } = e, s = ne(null), c = X(null), l = X(null), u = P(() => c.value !== null), d = P(() => s.value?.snapshots.value ?? []), f = P(() => s.value?.isLoading.value ?? !1), p = P(() => s.value?.isRestoring.value ?? !1);
37
+ function m() {
38
+ n.state.template?.id && !s.value && (s.value = Se({
39
+ authManager: t,
40
+ templateId: n.state.template.id,
41
+ onRestore: h,
42
+ onError: o
43
+ }), s.value.loadSnapshots());
44
+ }
45
+ function h(e) {
46
+ n.setContent(e.content, !1), r.clear(), i.reset();
47
+ }
48
+ async function g(e) {
49
+ if (c.value) {
50
+ c.value = e, n.setContent(e.content, !1);
51
+ return;
52
+ }
53
+ n.state.isDirty && n.hasTemplate() && await n.createSnapshot(), l.value = structuredClone(n.content.value), a?.pause(), c.value = e, n.setContent(e.content, !1);
54
+ }
55
+ async function _() {
56
+ if (!(!c.value || !s.value)) try {
57
+ await s.value.restoreSnapshot(c.value.id), await s.value.loadSnapshots();
58
+ } finally {
59
+ c.value = null, l.value = null, a?.resume();
60
+ }
61
+ }
62
+ function v() {
63
+ !c.value || !l.value || (n.setContent(l.value, !1), c.value = null, l.value = null, a?.resume());
64
+ }
65
+ async function y() {
66
+ s.value && await s.value.loadSnapshots();
67
+ }
68
+ return {
69
+ snapshotHistoryInstance: s,
70
+ previewingSnapshot: c,
71
+ contentBeforePreview: l,
72
+ isPreviewingSnapshot: u,
73
+ snapshotHistorySnapshots: d,
74
+ snapshotHistoryIsLoading: f,
75
+ snapshotHistoryIsRestoring: p,
76
+ initSnapshotHistory: m,
77
+ handleRestore: h,
78
+ handleSnapshotNavigate: g,
79
+ confirmRestoreSnapshot: _,
80
+ cancelPreview: v,
81
+ loadSnapshotHistory: y
82
+ };
83
+ }
84
+ //#endregion
85
+ //#region src/cloud/composables/useCloudPanelState.ts
86
+ function Oe() {
87
+ let e = X(null), t = P({
88
+ get: () => e.value === "ai-chat",
89
+ set: (t) => e.value = t ? "ai-chat" : null
90
+ }), n = P({
91
+ get: () => e.value === "scoring",
92
+ set: (t) => e.value = t ? "scoring" : null
93
+ }), r = P({
94
+ get: () => e.value === "design-reference",
95
+ set: (t) => e.value = t ? "design-reference" : null
96
+ }), i = P({
97
+ get: () => e.value === "comments",
98
+ set: (t) => e.value = t ? "comments" : null
99
+ }), o = X(!1), s = X(!1), c = X(void 0), l = X(!1), u = X(null), d = P(() => e.value !== null), f = P(() => {
100
+ let t = e.value;
101
+ return t === "ai-chat" || t === "design-reference" || t === "scoring" ? t : null;
102
+ }), p = P(() => l.value || e.value === "ai-chat" || e.value === "design-reference" || e.value === "scoring");
103
+ function m() {
104
+ l.value = !l.value;
105
+ }
106
+ function h(t) {
107
+ l.value = !1, e.value = e.value === t ? null : t;
108
+ }
109
+ return a(u, () => {
110
+ l.value = !1;
111
+ }), {
112
+ activePanel: e,
113
+ aiChatOpen: t,
114
+ scoringPanelOpen: n,
115
+ designReferenceOpen: r,
116
+ commentsOpen: i,
117
+ testEmailModalOpen: o,
118
+ mediaLibraryOpen: s,
119
+ mediaLibraryAccept: c,
120
+ aiMenuOpen: l,
121
+ aiMenuRef: u,
122
+ rightPanelOpen: d,
123
+ activeAiFeature: f,
124
+ aiButtonActive: p,
125
+ toggleAiMenu: m,
126
+ handleAiFeatureSelect: h
127
+ };
128
+ }
129
+ //#endregion
130
+ //#region src/cloud/composables/useCollabUndoWarning.ts
131
+ function ke(e) {
132
+ let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: a } = e, o = X(!1), s = X(!1), { start: c } = i(() => {
133
+ s.value = !1;
134
+ }, r, { immediate: !1 });
135
+ function l() {
136
+ o.value || !t.value || n() === 0 || !a.value || (o.value = !0, s.value = !0, c());
137
+ }
138
+ return {
139
+ collabUndoWarningVisible: s,
140
+ showCollabUndoWarning: l
141
+ };
142
+ }
143
+ //#endregion
144
+ //#region src/cloud/composables/useCloudFeatureFlags.ts
145
+ function Ae(e) {
146
+ let { planConfigInstance: t, aiConfig: n, editor: r } = e, a = P(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), o = P(() => t.hasFeature("test_email")), s = P(() => !!r.state.template?.id), c = P(() => t.hasFeature("white_label")), l = P(() => t.config.value?.limits.max_templates ?? null), u = P(() => t.config.value?.template_count ?? 0), d = X(!1), f = X("idle"), p = X(""), { start: m } = i(() => {
147
+ f.value = "idle";
148
+ }, 3e3, { immediate: !1 });
149
+ return {
150
+ canUseAiGeneration: a,
151
+ canSendTestEmail: o,
152
+ hasTemplateSaved: s,
153
+ isWhiteLabeled: c,
154
+ templateLimit: l,
155
+ templateCount: u,
156
+ isSaveExporting: d,
157
+ saveStatus: f,
158
+ saveErrorMessage: p,
159
+ startSaveStatusClear: m
160
+ };
161
+ }
162
+ //#endregion
163
+ //#region src/cloud/composables/useCloudMediaLibrary.ts
164
+ function je(e) {
165
+ let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: r } = e, i = null;
166
+ async function a() {
167
+ if (t) {
168
+ let e = await t({ accept: ["images"] });
169
+ return e ? {
170
+ url: e.url,
171
+ alt: e.alt_text || void 0
172
+ } : null;
173
+ }
174
+ return r.value = ["images"], n.value = !0, new Promise((e) => {
175
+ i = (t) => {
176
+ e(t);
177
+ };
178
+ });
179
+ }
180
+ function o(e) {
181
+ n.value = !1, i?.({
182
+ url: e.url,
183
+ alt: e.alt_text || void 0
184
+ }), i = null;
185
+ }
186
+ function s() {
187
+ n.value = !1, i?.(null), i = null;
188
+ }
189
+ return q(() => {
190
+ i &&= (i(null), null);
191
+ }), {
192
+ handleRequestMedia: a,
193
+ handleMediaSelect: o,
194
+ handleMediaLibraryClose: s
195
+ };
196
+ }
197
+ //#endregion
198
+ //#region src/cloud/composables/useCloudInitialization.ts
199
+ function Me(r) {
200
+ let { config: i, translations: a, fontsManager: p, emit: m, getCommentsSidebar: h } = r, g = X(!0), _ = X(!1), v = X(null), y = !1, b = { value: null }, x = null, S = null, C = new le({
201
+ ...i.auth,
202
+ onError: i.onError
203
+ }), w = be({
204
+ authManager: C,
205
+ onError: i.onError
206
+ }), T = X(/* @__PURE__ */ new Map()), E = _e({
207
+ authManager: C,
208
+ defaultFontFamily: i.fonts?.defaultFont,
209
+ templateDefaults: i.templateDefaults,
210
+ onError: i.onError,
211
+ lockedBlocks: T
212
+ }), D = Te({
213
+ authManager: C,
214
+ onError: i.onError
215
+ });
216
+ i.mcp?.enabled && ye({
217
+ editor: E,
218
+ channel: D.channel,
219
+ onOperation: i.mcp.onOperation
220
+ });
221
+ let O = null;
222
+ i.collaboration?.enabled && (O = pe({
223
+ authManager: C,
224
+ editor: E,
225
+ channel: D.channel,
226
+ onError: i.onError,
227
+ onCollaboratorJoined: i.collaboration.onCollaboratorJoined,
228
+ onCollaboratorLeft: i.collaboration.onCollaboratorLeft,
229
+ onBlockLocked: i.collaboration.onBlockLocked,
230
+ onBlockUnlocked: i.collaboration.onBlockUnlocked
231
+ }), ie(() => O.lockedBlocks.value, (e) => {
232
+ T.value = e;
233
+ }, { immediate: !0 }), me(E, O));
234
+ let k = P(() => !!i.collaboration?.enabled && w.hasFeature("collaboration")), A = n({
235
+ editor: E,
236
+ config: {
237
+ uiTheme: i.uiTheme,
238
+ theme: void 0,
239
+ blockDefaults: i.blockDefaults,
240
+ customBlocks: [],
241
+ mergeTags: i.mergeTags,
242
+ displayConditions: i.displayConditions,
243
+ onRequestMedia: null,
244
+ onSave: () => {
245
+ b.value?.().catch((e) => {
246
+ i.onError?.(e);
247
+ });
248
+ }
249
+ },
250
+ translations: a,
251
+ fontsManager: p,
252
+ historyOptions: O ? { isRemoteOperation: () => O._isProcessingRemoteOperation() } : void 0,
253
+ autoSaveOptions: {
254
+ onChange: async () => {
255
+ E.hasTemplate() && (await E.createSnapshot(), x?.snapshotHistoryInstance.value?.loadSnapshots());
256
+ },
257
+ debounce: i.autoSaveDebounce ?? 5e3,
258
+ enabled: () => i.autoSave !== !1 && w.hasFeature("auto_save")
259
+ },
260
+ themeExtraStyles: () => ({ "--tpl-drop-text": `"${a.canvas.dropHere}"` }),
261
+ keyboardOptions: { onBeforeUndo: () => S?.showCollabUndoWarning() }
262
+ }), j = ke({
263
+ isCollaborationEnabled: k,
264
+ getCollaboratorCount: () => O?.collaborators.value.length ?? 0,
265
+ canUndo: A.history.canUndo
266
+ });
267
+ S = j;
268
+ let M = De({
269
+ authManager: C,
270
+ editor: E,
271
+ history: A.history,
272
+ conditionPreview: A.conditionPreview,
273
+ autoSave: A.autoSave,
274
+ onError: i.onError
275
+ });
276
+ x = M;
277
+ let N = Oe(), F = fe(i.ai), I = Ae({
278
+ planConfigInstance: w,
279
+ aiConfig: F,
280
+ editor: E
281
+ }), L = je({
282
+ onRequestMedia: i.onRequestMedia,
283
+ mediaLibraryOpen: N.mediaLibraryOpen,
284
+ mediaLibraryAccept: N.mediaLibraryAccept
285
+ });
286
+ t({
287
+ onBlockMove: E.moveBlock,
288
+ onBlockAdd: E.addBlock
289
+ });
290
+ let R = ve({
291
+ authManager: C,
292
+ getFontsConfig: () => i.fonts,
293
+ canUseCustomFonts: () => w.hasFeature("custom_fonts")
294
+ }), z = we({
295
+ authManager: C,
296
+ getTemplateId: () => E.state.template?.id ?? null,
297
+ save: () => E.save(),
298
+ exportHtml: (e) => R.exportHtml(e),
299
+ onError: i.onError,
300
+ isAuthReady: _,
301
+ onBeforeTestEmail: i.onBeforeTestEmail
302
+ }), B = ge({
303
+ authManager: C,
304
+ getTemplateId: () => E.state.template?.id ?? null,
305
+ getSocketId: () => D.getSocketId(),
306
+ onComment: i.onComment,
307
+ onError: i.onError,
308
+ isAuthReady: _,
309
+ hasCommentingFeature: () => i.commenting !== !1 && w.hasFeature("commenting")
310
+ });
311
+ he({
312
+ comments: B,
313
+ channel: D.channel
314
+ });
315
+ let V = xe({
316
+ authManager: C,
317
+ onError: i.onError
318
+ }), H = X(!1), U = X(null), W = X(!1), G = Ce({
319
+ authManager: C,
320
+ getTemplateId: () => E.state.template?.id ?? null
321
+ });
322
+ function K(e) {
323
+ N.commentsOpen.value = !0, queueMicrotask(() => {
324
+ h()?.filterByBlock(e);
325
+ });
326
+ }
327
+ Y(d, L.handleRequestMedia), Y(c, C), Y(u, F), Y(s, B), Y(o, V), Y(f, G), Y(l, {
328
+ plan: w,
329
+ ai: F,
330
+ comments: {
331
+ getBlockCount: (e) => B.commentCountByBlock.value.get(e) ?? 0,
332
+ openForBlock: K
333
+ },
334
+ savedModules: {
335
+ openSaveDialog: (e) => {
336
+ U.value = e ?? null, H.value = !0;
337
+ },
338
+ openBrowser: () => {
339
+ W.value = !0;
340
+ },
341
+ moduleCount: P(() => V.modules.value.length)
342
+ }
343
+ });
344
+ function q(e) {
345
+ w.hasFeature("theme_customization") && (A.themeOverrides.value = e);
346
+ }
347
+ function ee(e) {
348
+ E.setUiTheme(e);
349
+ }
350
+ async function J() {
351
+ g.value = !0, v.value = null;
352
+ try {
353
+ if (await C.initialize(), y) return;
354
+ _.value = !0;
355
+ let t = await ue({ authManager: C });
356
+ if (y) return;
357
+ if (!t.api.ok) throw Error("Health check failed: API is not reachable");
358
+ if (!t.auth.ok) throw Error(`Health check failed: authentication error${t.auth.error ? ` - ${t.auth.error}` : ""}`);
359
+ if (t.websocket.ok || e.warn("WebSocket health check failed:", t.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await w.fetchConfig(), y) return;
360
+ p.setCustomFontsEnabled(w.hasFeature("custom_fonts")), i.customBlocks?.length && w.hasFeature("custom_blocks") && A.registerCustomBlocks(i.customBlocks), i.theme && w.hasFeature("theme_customization") && (A.themeOverrides.value = i.theme), i.modules !== !1 && w.hasFeature("saved_modules") && V.loadModules(), m("ready");
361
+ } catch (e) {
362
+ if (y) return;
363
+ let t = e instanceof Error ? e : Error("Initialization failed", { cause: e });
364
+ v.value = t, i.onError?.(t);
365
+ } finally {
366
+ y || (g.value = !1);
367
+ }
368
+ }
369
+ function te() {
370
+ y = !0, p.cleanupFontLinks(), D.disconnect(), A.destroy(), i.onUnmount?.();
371
+ }
372
+ return {
373
+ isInitializing: g,
374
+ isAuthReady: _,
375
+ initError: v,
376
+ isDestroyed: () => y,
377
+ authManager: C,
378
+ planConfigInstance: w,
379
+ websocket: D,
380
+ collaboration: O,
381
+ isCollaborationEnabled: k,
382
+ editor: E,
383
+ core: A,
384
+ aiConfig: F,
385
+ featureFlags: I,
386
+ mediaLib: L,
387
+ exporter: R,
388
+ testEmail: z,
389
+ commentsInstance: B,
390
+ savedModulesHeadless: V,
391
+ scoringInstance: G,
392
+ panelState: N,
393
+ snapshotPreview: M,
394
+ collabWarning: j,
395
+ showSaveModuleDialog: H,
396
+ showModuleBrowserModal: W,
397
+ saveModulePreSelectedBlockId: U,
398
+ onSaveHook: b,
399
+ initialize: J,
400
+ destroy: te,
401
+ setThemeOverrides: q,
402
+ setUiTheme: ee,
403
+ openCommentsForBlock: K
404
+ };
405
+ }
406
+ //#endregion
407
+ //#region src/utils/preRenderCustomBlocks.ts
408
+ async function Ne(e, t) {
409
+ let n = async (e) => {
410
+ if (ce(e)) {
411
+ let n = e;
412
+ try {
413
+ n.renderedHtml = await t.renderCustomBlock(n);
414
+ } catch {
415
+ n.renderedHtml = `<!-- Custom block render error: ${n.customType} -->`;
416
+ }
417
+ }
418
+ if (e.type === "section" && "children" in e) {
419
+ let t = e;
420
+ for (let e of t.children) for (let t of e) await n(t);
421
+ }
422
+ };
423
+ for (let t of e.blocks) await n(t);
424
+ }
425
+ //#endregion
426
+ //#region src/cloud/composables/useCloudLifecycle.ts
427
+ function Pe(e) {
428
+ let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
429
+ function u() {
430
+ return de(i.config.value.websocket);
431
+ }
432
+ async function d(e) {
433
+ let i = await n.create(e);
434
+ return l() ? i : (t.onCreate?.(i), a.initSnapshotHistory(), r.connect(i.id, u()), i);
435
+ }
436
+ async function f(e) {
437
+ let i = await n.load(e);
438
+ return l() ? i : (t.onLoad?.(i), a.initSnapshotHistory(), r.connect(i.id, u()), i);
439
+ }
440
+ async function p() {
441
+ c.isSaveExporting.value = !0, c.saveStatus.value = "idle";
442
+ try {
443
+ if (await Ne(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
444
+ let e = await n.save();
445
+ if (l()) throw Error("Component unmounted during save");
446
+ a.initSnapshotHistory(), a.snapshotHistoryInstance.value?.loadSnapshots();
447
+ let r = await s.exportHtml(e.id);
448
+ if (l()) throw Error("Component unmounted during save");
449
+ let i = {
450
+ templateId: e.id,
451
+ html: r.html,
452
+ mjml: r.mjml,
453
+ content: e.content
454
+ };
455
+ return t.onSave?.(i), c.saveStatus.value = "saved", c.startSaveStatusClear(), i;
456
+ } catch (e) {
457
+ throw l() || (c.saveStatus.value = "error", c.saveErrorMessage.value = e instanceof Error ? e.message : "Save failed"), e;
458
+ } finally {
459
+ l() || (c.isSaveExporting.value = !1);
460
+ }
461
+ }
462
+ return {
463
+ createTemplate: d,
464
+ loadTemplate: f,
465
+ saveTemplate: p
466
+ };
467
+ }
468
+ //#endregion
469
+ //#region src/cloud/components/CloudHeader.vue?vue&type=script&setup=true&lang.ts
470
+ var Fe = {
471
+ 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",
472
+ style: {
473
+ "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)",
474
+ "backdrop-filter": "blur(12px)",
475
+ "-webkit-backdrop-filter": "blur(12px)",
476
+ "box-shadow": "var(--tpl-shadow-md)",
477
+ "border-bottom": "1px solid var(--tpl-border)"
478
+ }
479
+ }, Ie = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, Le = {
480
+ key: 0,
481
+ class: "tpl-logo tpl:flex tpl:items-center tpl:gap-2.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
482
+ }, Re = ["src"], ze = { style: { "letter-spacing": "-0.01em" } }, Be = {
483
+ key: 1,
484
+ class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
485
+ }, Ve = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, He = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, Ue = ["data-tooltip"], We = {
486
+ key: 1,
487
+ "aria-live": "polite",
488
+ class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
489
+ }, Ge = {
490
+ key: 2,
491
+ "aria-live": "polite",
492
+ class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
493
+ }, Ke = ["aria-label", "aria-expanded"], qe = {
494
+ key: 0,
495
+ 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)]"
496
+ }, Je = ["aria-expanded"], Ye = {
497
+ key: 0,
498
+ class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
499
+ }, Xe = ["disabled"], Ze = ["disabled"], Qe = /* @__PURE__ */ U({
500
+ __name: "CloudHeader",
501
+ props: {
502
+ editor: {},
503
+ core: {},
504
+ authManager: {},
505
+ featureFlags: {},
506
+ panelState: {},
507
+ snapshotPreview: {},
508
+ commentsInstance: {},
509
+ testEmail: {},
510
+ websocket: {},
511
+ collaboration: {},
512
+ isCollaborationEnabled: { type: Boolean },
513
+ isSaveDisabled: { type: Boolean },
514
+ isSaving: { type: Boolean }
515
+ },
516
+ emits: ["save"],
517
+ setup(e) {
518
+ let t = H(() => import("./CollaboratorBar-DTT0EkZn.js")), n = H(() => import("./SnapshotHistory-DltsKvhP.js")), r = H(() => import("./AiFeatureMenu-DJvWL1GZ.js"));
519
+ return (i, a) => (J(), L("header", Fe, [
520
+ R("div", Ie, [e.featureFlags.isWhiteLabeled.value ? I("", !0) : (J(), L("div", Le, [R("img", {
521
+ src: e.authManager.resolveUrl("/logo.svg"),
522
+ alt: "Templatical",
523
+ width: "24",
524
+ height: "24",
525
+ class: "tpl:shrink-0"
526
+ }, null, 8, Re), R("span", ze, Z(e.core.t.header.title), 1)])), e.featureFlags.templateLimit.value === null ? I("", !0) : (J(), L("span", Be, Z(e.core.format(e.core.t.header.templatesUsed, {
527
+ used: e.featureFlags.templateCount.value,
528
+ max: e.featureFlags.templateLimit.value
529
+ })), 1))]),
530
+ R("div", Ve, [
531
+ V(b, {
532
+ viewport: e.editor.state.viewport,
533
+ onChange: e.editor.setViewport
534
+ }, null, 8, ["viewport", "onChange"]),
535
+ V(x, {
536
+ "dark-mode": e.editor.state.darkMode,
537
+ onChange: e.editor.setDarkMode
538
+ }, null, 8, ["dark-mode", "onChange"]),
539
+ V(C, {
540
+ "preview-mode": e.editor.state.previewMode,
541
+ onChange: e.editor.setPreviewMode
542
+ }, null, 8, ["preview-mode", "onChange"]),
543
+ e.collaboration && e.isCollaborationEnabled ? (J(), F(Q(t), {
544
+ key: 0,
545
+ collaborators: e.collaboration.collaborators.value,
546
+ "is-connected": e.websocket.isConnected.value
547
+ }, null, 8, ["collaborators", "is-connected"])) : I("", !0),
548
+ e.snapshotPreview.snapshotHistoryInstance.value ? (J(), F(Q(n), {
549
+ key: 1,
550
+ snapshots: e.snapshotPreview.snapshotHistorySnapshots.value,
551
+ "is-loading": e.snapshotPreview.snapshotHistoryIsLoading.value,
552
+ "is-restoring": e.snapshotPreview.snapshotHistoryIsRestoring.value,
553
+ onLoad: e.snapshotPreview.loadSnapshotHistory,
554
+ onNavigate: e.snapshotPreview.handleSnapshotNavigate
555
+ }, null, 8, [
556
+ "snapshots",
557
+ "is-loading",
558
+ "is-restoring",
559
+ "onLoad",
560
+ "onNavigate"
561
+ ])) : I("", !0)
562
+ ]),
563
+ R("div", He, [
564
+ e.featureFlags.saveStatus.value === "error" ? (J(), L("div", {
565
+ key: 0,
566
+ "aria-live": "assertive",
567
+ class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
568
+ "data-tooltip": e.featureFlags.saveErrorMessage.value
569
+ }, [V(Q(_), {
570
+ size: 12,
571
+ "stroke-width": 2.5
572
+ }), B(" " + Z(e.core.t.header.saveFailed), 1)], 8, Ue)) : e.featureFlags.saveStatus.value === "saved" ? (J(), L("div", We, [V(Q(g), {
573
+ size: 12,
574
+ "stroke-width": 2.5
575
+ }), B(" " + Z(e.core.t.header.saved), 1)])) : e.editor.state.isDirty ? (J(), L("div", Ge, [a[4] ||= R("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), B(" " + Z(e.core.t.header.unsaved), 1)])) : I("", !0),
576
+ e.commentsInstance.isEnabled.value && e.featureFlags.hasTemplateSaved.value ? (J(), L("button", {
577
+ key: 3,
578
+ "aria-label": e.commentsInstance.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.commentsInstance.unresolvedCount.value})` : e.core.t.comments.button,
579
+ "aria-expanded": e.panelState.commentsOpen.value,
580
+ class: W(Q(j)),
581
+ style: G({
582
+ backgroundColor: e.panelState.commentsOpen.value ? "var(--tpl-primary)" : "transparent",
583
+ color: e.panelState.commentsOpen.value ? "var(--tpl-bg)" : "var(--tpl-primary)",
584
+ borderColor: "var(--tpl-primary)"
585
+ }),
586
+ onClick: a[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
587
+ }, [
588
+ V(Q(O), {
589
+ size: 16,
590
+ "stroke-width": 2
591
+ }),
592
+ B(" " + Z(e.core.t.comments.button) + " ", 1),
593
+ e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (J(), L("span", qe, Z(e.commentsInstance.unresolvedCount.value), 1)) : I("", !0)
594
+ ], 14, Ke)) : I("", !0),
595
+ e.featureFlags.canUseAiGeneration.value && e.featureFlags.hasTemplateSaved.value ? (J(), L("div", {
596
+ key: 4,
597
+ ref: (t) => e.panelState.aiMenuRef.value = t,
598
+ class: "tpl:relative"
599
+ }, [R("button", {
600
+ "aria-expanded": e.panelState.aiMenuOpen.value,
601
+ class: W(["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"]),
602
+ onClick: a[1] ||= oe((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
603
+ }, [V(Q(A), {
604
+ size: 16,
605
+ "stroke-width": 2,
606
+ class: "tpl-ai-btn-icon"
607
+ }), B(" " + Z(e.core.t.aiChat.button), 1)], 10, Je), V(N, {
608
+ "enter-active-class": "tpl:transition-all tpl:duration-150 tpl:ease-out",
609
+ "enter-from-class": "tpl:scale-95 tpl:opacity-0",
610
+ "enter-to-class": "tpl:scale-100 tpl:opacity-100",
611
+ "leave-active-class": "tpl:transition-all tpl:duration-100 tpl:ease-in",
612
+ "leave-from-class": "tpl:scale-100 tpl:opacity-100",
613
+ "leave-to-class": "tpl:scale-95 tpl:opacity-0"
614
+ }, {
615
+ default: $(() => [e.panelState.aiMenuOpen.value ? (J(), L("div", Ye, [V(Q(r), {
616
+ "active-feature": e.panelState.activeAiFeature.value,
617
+ onSelect: e.panelState.handleAiFeatureSelect
618
+ }, null, 8, ["active-feature", "onSelect"])])) : I("", !0)]),
619
+ _: 1
620
+ })], 512)) : I("", !0),
621
+ e.testEmail.isEnabled.value && e.featureFlags.canSendTestEmail.value ? (J(), L("button", {
622
+ key: 5,
623
+ class: W(Q(j)),
624
+ style: {
625
+ "background-color": "transparent",
626
+ color: "var(--tpl-primary)",
627
+ "border-color": "var(--tpl-primary)"
628
+ },
629
+ disabled: e.testEmail.isSending.value || !e.featureFlags.hasTemplateSaved.value,
630
+ onClick: a[2] ||= (t) => e.panelState.testEmailModalOpen.value = !0
631
+ }, [e.testEmail.isSending.value ? (J(), F(Q(D), {
632
+ key: 1,
633
+ class: "tpl-spinner",
634
+ size: 16,
635
+ "stroke-width": 2
636
+ })) : (J(), F(Q(k), {
637
+ key: 0,
638
+ size: 16,
639
+ "stroke-width": 2
640
+ })), B(" " + Z(e.core.t.testEmail.button), 1)], 10, Xe)) : I("", !0),
641
+ R("button", {
642
+ class: W(Q(j)),
643
+ style: {
644
+ "background-color": "transparent",
645
+ color: "var(--tpl-primary)",
646
+ "border-color": "var(--tpl-primary)"
647
+ },
648
+ disabled: e.isSaveDisabled,
649
+ onClick: a[3] ||= (e) => i.$emit("save")
650
+ }, [e.isSaving ? (J(), F(Q(D), {
651
+ key: 1,
652
+ class: "tpl-spinner",
653
+ size: 16,
654
+ "stroke-width": 2
655
+ })) : (J(), F(Q(Ee), {
656
+ key: 0,
657
+ size: 16,
658
+ "stroke-width": 2
659
+ })), B(" " + Z(e.isSaving ? e.core.t.header.saving : e.core.t.header.save), 1)], 10, Ze)
660
+ ])
661
+ ]));
662
+ }
663
+ }), $e = /* @__PURE__ */ U({
664
+ __name: "CloudPanels",
665
+ props: {
666
+ config: {},
667
+ editor: {},
668
+ core: {},
669
+ panelState: {},
670
+ planConfigInstance: {},
671
+ testEmail: {},
672
+ mediaLib: {},
673
+ savedModulesHeadless: {},
674
+ showSaveModuleDialog: { type: Boolean },
675
+ saveModulePreSelectedBlockId: {},
676
+ showModuleBrowserModal: { type: Boolean }
677
+ },
678
+ emits: [
679
+ "update:showSaveModuleDialog",
680
+ "update:saveModulePreSelectedBlockId",
681
+ "update:showModuleBrowserModal",
682
+ "send-test-email",
683
+ "module-insert"
684
+ ],
685
+ setup(e, { expose: t, emit: n }) {
686
+ let r = H(() => import("./AiChatSidebar-DwME3f-a.js")), i = H(() => import("./CommentsSidebar-DrJhQRXK.js")), a = H(() => import("./DesignReferenceSidebar-DdOht5zn.js")), o = H(() => import("./TemplateScoringPanel-DmnmUE3y.js")), s = H(() => import("./TestEmailModal-Dl633j9o.js")), c = H(() => import("./SaveModuleDialog-CD2ZYq1o.js")), l = H(() => import("./ModuleBrowserModal-CiV_jOEM.js")), u = H(async () => (await import("@templatical/media-library")).MediaLibraryModal), d = n;
687
+ function f(e, t, n) {
688
+ t.history.record(), n.setContent(e), t.conditionPreview.reset();
689
+ }
690
+ let p = X(null);
691
+ function m(e) {
692
+ p.value?.filterByBlock(e);
693
+ }
694
+ return t({ filterCommentsByBlock: m }), (t, n) => (J(), L(M, null, [
695
+ V(Q(r), {
696
+ visible: e.panelState.aiChatOpen.value,
697
+ "on-apply": (t) => f(t, e.core, e.editor),
698
+ onClose: n[0] ||= (t) => e.panelState.aiChatOpen.value = !1
699
+ }, null, 8, ["visible", "on-apply"]),
700
+ V(Q(o), {
701
+ visible: e.panelState.scoringPanelOpen.value,
702
+ onClose: n[1] ||= (t) => e.panelState.scoringPanelOpen.value = !1
703
+ }, null, 8, ["visible"]),
704
+ V(Q(a), {
705
+ visible: e.panelState.designReferenceOpen.value,
706
+ "has-existing-blocks": e.editor.content.value.blocks.length > 0,
707
+ onClose: n[2] ||= (t) => e.panelState.designReferenceOpen.value = !1,
708
+ onApply: n[3] ||= (t) => f(t, e.core, e.editor)
709
+ }, null, 8, ["visible", "has-existing-blocks"]),
710
+ V(Q(i), {
711
+ ref_key: "commentsSidebar",
712
+ ref: p,
713
+ visible: e.panelState.commentsOpen.value,
714
+ onClose: n[4] ||= (t) => e.panelState.commentsOpen.value = !1
715
+ }, null, 8, ["visible"]),
716
+ V(Q(s), {
717
+ visible: e.panelState.testEmailModalOpen.value,
718
+ "allowed-emails": e.testEmail.allowedEmails.value,
719
+ "is-sending": e.testEmail.isSending.value,
720
+ error: e.testEmail.error.value,
721
+ onSend: n[5] ||= (e) => d("send-test-email", e),
722
+ onClose: n[6] ||= (t) => e.panelState.testEmailModalOpen.value = !1
723
+ }, null, 8, [
724
+ "visible",
725
+ "allowed-emails",
726
+ "is-sending",
727
+ "error"
728
+ ]),
729
+ e.planConfigInstance.hasFeature("saved_modules") && e.config.modules !== !1 ? (J(), F(Q(c), {
730
+ key: 0,
731
+ visible: e.showSaveModuleDialog,
732
+ "pre-selected-block-id": e.saveModulePreSelectedBlockId,
733
+ onClose: n[7] ||= (e) => {
734
+ d("update:showSaveModuleDialog", !1), d("update:saveModulePreSelectedBlockId", null);
735
+ },
736
+ onSaved: n[8] ||= (t) => e.savedModulesHeadless.loadModules()
737
+ }, null, 8, ["visible", "pre-selected-block-id"])) : I("", !0),
738
+ e.planConfigInstance.hasFeature("saved_modules") && e.config.modules !== !1 ? (J(), F(Q(l), {
739
+ key: 1,
740
+ visible: e.showModuleBrowserModal,
741
+ onClose: n[9] ||= (e) => d("update:showModuleBrowserModal", !1),
742
+ onInsert: n[10] ||= (e, t) => d("module-insert", e, t)
743
+ }, null, 8, ["visible"])) : I("", !0),
744
+ V(Q(u), {
745
+ visible: e.panelState.mediaLibraryOpen.value,
746
+ accept: e.panelState.mediaLibraryAccept.value,
747
+ onSelect: e.mediaLib.handleMediaSelect,
748
+ onClose: e.mediaLib.handleMediaLibraryClose
749
+ }, null, 8, [
750
+ "visible",
751
+ "accept",
752
+ "onSelect",
753
+ "onClose"
754
+ ])
755
+ ], 64));
756
+ }
757
+ }), et = {
758
+ key: 0,
759
+ class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
760
+ }, tt = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, nt = { 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)]" }, rt = /* @__PURE__ */ U({
761
+ __name: "CloudLoadingOverlay",
762
+ props: { visible: { type: Boolean } },
763
+ setup(e) {
764
+ return (t, n) => e.visible ? (J(), L("div", et, [n[1] ||= z("<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), R("div", tt, [R("div", nt, [(J(), L(M, null, te(5, (e) => R("div", {
765
+ key: e,
766
+ class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
767
+ })), 64))]), n[0] ||= z("<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)])])) : I("", !0);
768
+ }
769
+ }), it = {
770
+ key: 0,
771
+ role: "alert",
772
+ 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)]"
773
+ }, at = { 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" }, st = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ct = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, lt = /* @__PURE__ */ U({
774
+ __name: "CloudErrorOverlay",
775
+ props: {
776
+ error: {},
777
+ visible: { type: Boolean }
778
+ },
779
+ emits: ["retry"],
780
+ setup(e, { emit: t }) {
781
+ let n = t, { t: r } = p();
782
+ function i(e) {
783
+ return "isUnauthorized" in e && e.isUnauthorized ? r.error.authFailed : "isNotFound" in e && e.isNotFound ? r.error.templateNotFound : r.error.defaultMessage;
784
+ }
785
+ function a(e) {
786
+ return "isNotFound" in e && !!e.isNotFound;
787
+ }
788
+ return (t, o) => e.visible && e.error ? (J(), L("div", it, [
789
+ R("div", at, [V(Q(_), {
790
+ size: 32,
791
+ "stroke-width": 1.5,
792
+ class: "tpl:text-[var(--tpl-danger)]"
793
+ })]),
794
+ R("div", ot, [R("h2", st, Z(Q(r).error.title), 1), R("p", ct, Z(i(e.error)), 1)]),
795
+ a(e.error) ? I("", !0) : (J(), L("button", {
796
+ key: 0,
797
+ 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)]",
798
+ onClick: o[0] ||= (e) => n("retry")
799
+ }, Z(Q(r).error.retry), 1))
800
+ ])) : I("", !0);
801
+ }
802
+ }), ut = {
803
+ key: 0,
804
+ 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)]"
805
+ }, dt = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, ft = { class: "tpl:flex tpl:items-center tpl:gap-2" }, pt = /* @__PURE__ */ U({
806
+ __name: "SnapshotPreviewBanner",
807
+ props: { visible: { type: Boolean } },
808
+ emits: ["cancel", "confirm"],
809
+ setup(e, { emit: t }) {
810
+ let n = t, { t: r } = p();
811
+ return (t, i) => e.visible ? (J(), L("div", ut, [R("div", dt, [V(Q(E), {
812
+ size: 18,
813
+ "stroke-width": 2,
814
+ class: "tpl:text-[var(--tpl-primary)]"
815
+ }), R("span", null, Z(Q(r).snapshotPreview.message), 1)]), R("div", ft, [R("button", {
816
+ 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)]",
817
+ style: { "background-color": "transparent" },
818
+ onClick: i[0] ||= (e) => n("cancel")
819
+ }, Z(Q(r).snapshotPreview.cancel), 1), R("button", {
820
+ class: "tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
821
+ onClick: i[1] ||= (e) => n("confirm")
822
+ }, Z(Q(r).snapshotPreview.restore), 1)])])) : I("", !0);
823
+ }
824
+ }), mt = {
825
+ key: 0,
826
+ role: "status",
827
+ "aria-live": "polite",
828
+ class: "tpl:absolute tpl:top-16 tpl:left-1/2 tpl:z-toast tpl:-translate-x-1/2 tpl:rounded-[var(--tpl-radius)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:shadow-lg",
829
+ style: {
830
+ "background-color": "var(--tpl-warning-light)",
831
+ color: "var(--tpl-text)",
832
+ border: "1px solid var(--tpl-warning)"
833
+ }
834
+ }, ht = /* @__PURE__ */ U({
835
+ __name: "CollabUndoToast",
836
+ props: { visible: { type: Boolean } },
837
+ setup(e) {
838
+ let { t } = p();
839
+ return (n, r) => e.visible ? (J(), L("div", mt, Z(Q(t).history.collabWarning), 1)) : I("", !0);
840
+ }
841
+ }), gt = ["data-tpl-theme"], _t = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, vt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, yt = ["aria-label"], bt = /* @__PURE__ */ h(/* @__PURE__ */ U({
842
+ __name: "CloudEditor",
843
+ props: {
844
+ config: {},
845
+ translations: {},
846
+ fontsManager: {}
847
+ },
848
+ emits: ["ready"],
849
+ setup(e, { expose: t, emit: n }) {
850
+ let r = e, i = n, a = X(null), o = Me({
851
+ config: r.config,
852
+ translations: r.translations,
853
+ fontsManager: r.fontsManager,
854
+ emit: i,
855
+ getCommentsSidebar: () => a.value ? { filterByBlock: a.value.filterCommentsByBlock } : null
856
+ }), { isInitializing: s, isAuthReady: c, initError: l, authManager: u, planConfigInstance: d, websocket: f, collaboration: p, isCollaborationEnabled: m, editor: h, core: g, featureFlags: _, mediaLib: b, exporter: x, testEmail: C, commentsInstance: E, savedModulesHeadless: D, panelState: O, snapshotPreview: k, collabWarning: A, showSaveModuleDialog: j, showModuleBrowserModal: M, saveModulePreSelectedBlockId: P, setThemeOverrides: z, setUiTheme: H } = o;
857
+ async function U(e) {
858
+ try {
859
+ await C.sendTestEmail(e), O.testEmailModalOpen.value = !1;
860
+ } catch {}
861
+ }
862
+ function q(e, t) {
863
+ for (let n = 0; n < e.content.length; n++) {
864
+ let r = se(e.content[n]), i = t === void 0 ? void 0 : t + n;
865
+ h.addBlock(r, void 0, void 0, i);
866
+ }
867
+ M.value = !1;
868
+ }
869
+ let Y = Pe({
870
+ config: r.config,
871
+ editor: h,
872
+ websocket: f,
873
+ planConfigInstance: d,
874
+ snapshotPreview: k,
875
+ core: g,
876
+ exporter: x,
877
+ featureFlags: _,
878
+ isDestroyed: o.isDestroyed
879
+ });
880
+ return o.onSaveHook.value = Y.saveTemplate, K(() => {
881
+ o.initialize();
882
+ }), ee(() => {
883
+ o.destroy();
884
+ }), t({
885
+ getContent: () => h.content.value,
886
+ setContent: (e) => h.setContent(e),
887
+ setTheme: H,
888
+ setThemeOverrides: z,
889
+ create: Y.createTemplate,
890
+ load: Y.loadTemplate,
891
+ save: Y.saveTemplate,
892
+ sendTestEmail: C.sendTestEmail
893
+ }), (e, t) => (J(), L("div", {
894
+ class: W(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": Q(h).state.darkMode }]),
895
+ "data-tpl-theme": Q(g).resolvedTheme.value,
896
+ style: G(Q(g).themeStyles.value)
897
+ }, [
898
+ V(N, {
899
+ "enter-active-class": "tpl:transition-opacity tpl:duration-200",
900
+ "enter-from-class": "tpl:opacity-100",
901
+ "enter-to-class": "tpl:opacity-100",
902
+ "leave-active-class": "tpl:transition-opacity tpl:duration-300",
903
+ "leave-from-class": "tpl:opacity-100",
904
+ "leave-to-class": "tpl:opacity-0"
905
+ }, {
906
+ default: $(() => [V(rt, { visible: Q(s) || Q(h).state.isLoading }, null, 8, ["visible"])]),
907
+ _: 1
908
+ }),
909
+ V(N, {
910
+ "enter-active-class": "tpl:transition-opacity tpl:duration-200",
911
+ "enter-from-class": "tpl:opacity-0",
912
+ "enter-to-class": "tpl:opacity-100",
913
+ "leave-active-class": "tpl:transition-opacity tpl:duration-300",
914
+ "leave-from-class": "tpl:opacity-100",
915
+ "leave-to-class": "tpl:opacity-0"
916
+ }, {
917
+ default: $(() => [V(lt, {
918
+ error: Q(l),
919
+ visible: !!Q(l) && !Q(s),
920
+ onRetry: Q(o).initialize
921
+ }, null, 8, [
922
+ "error",
923
+ "visible",
924
+ "onRetry"
925
+ ])]),
926
+ _: 1
927
+ }),
928
+ V(Qe, {
929
+ editor: Q(h),
930
+ core: Q(g),
931
+ "auth-manager": Q(u),
932
+ "feature-flags": Q(_),
933
+ "panel-state": Q(O),
934
+ "snapshot-preview": Q(k),
935
+ "comments-instance": Q(E),
936
+ "test-email": Q(C),
937
+ websocket: Q(f),
938
+ collaboration: Q(p),
939
+ "is-collaboration-enabled": Q(m),
940
+ "is-saving": Q(h).state.isSaving || Q(_).isSaveExporting.value,
941
+ "is-save-disabled": Q(h).state.isSaving || Q(_).isSaveExporting.value || !Q(h).state.isDirty,
942
+ onSave: t[0] ||= (e) => Q(Y).saveTemplate().catch((e) => r.config.onError?.(e))
943
+ }, null, 8, [
944
+ "editor",
945
+ "core",
946
+ "auth-manager",
947
+ "feature-flags",
948
+ "panel-state",
949
+ "snapshot-preview",
950
+ "comments-instance",
951
+ "test-email",
952
+ "websocket",
953
+ "collaboration",
954
+ "is-collaboration-enabled",
955
+ "is-saving",
956
+ "is-save-disabled"
957
+ ]),
958
+ V(pt, {
959
+ visible: Q(k).isPreviewingSnapshot.value,
960
+ onCancel: Q(k).cancelPreview,
961
+ onConfirm: Q(k).confirmRestoreSnapshot
962
+ }, null, 8, [
963
+ "visible",
964
+ "onCancel",
965
+ "onConfirm"
966
+ ]),
967
+ V(N, {
968
+ "enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
969
+ "enter-from-class": "tpl:translate-y-[-8px] tpl:opacity-0",
970
+ "enter-to-class": "tpl:translate-y-0 tpl:opacity-100",
971
+ "leave-active-class": "tpl:transition-all tpl:duration-300 tpl:ease-in",
972
+ "leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
973
+ "leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
974
+ }, {
975
+ default: $(() => [V(ht, { visible: Q(A).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
976
+ _: 1
977
+ }),
978
+ ae(V(S, null, null, 512), [[re, !Q(h).state.previewMode]]),
979
+ R("div", {
980
+ class: W(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [Q(h).state.previewMode ? "tpl:left-0 tpl:right-0" : Q(O).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", Q(k).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
981
+ style: {
982
+ transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
983
+ "background-color": "var(--tpl-canvas-bg)"
984
+ }
985
+ }, [R("div", _t, [V(N, { name: "tpl-restore-btn" }, {
986
+ default: $(() => [Q(g).conditionPreview.hasHiddenBlocks.value ? (J(), L("button", {
987
+ key: 0,
988
+ 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",
989
+ style: {
990
+ "background-color": "var(--tpl-warning-light)",
991
+ color: "var(--tpl-warning)",
992
+ "border-color": "var(--tpl-warning)",
993
+ "backdrop-filter": "blur(8px)"
994
+ },
995
+ onClick: t[1] ||= (e) => Q(g).conditionPreview.reset()
996
+ }, [V(Q(y), {
997
+ size: 13,
998
+ "stroke-width": 2
999
+ }), B(" " + Z(Q(g).t.blockSettings.restoreHiddenBlocks), 1)])) : I("", !0)]),
1000
+ _: 1
1001
+ })]), R("main", vt, [V(w, {
1002
+ viewport: Q(h).state.viewport,
1003
+ content: Q(h).content.value,
1004
+ "selected-block-id": Q(h).state.selectedBlockId,
1005
+ "dark-mode": Q(h).state.darkMode,
1006
+ "preview-mode": Q(h).state.previewMode,
1007
+ "locked-blocks": Q(p)?.lockedBlocks.value ?? void 0,
1008
+ onSelectBlock: Q(h).selectBlock,
1009
+ onOpenAiChat: t[2] ||= (e) => Q(O).aiChatOpen.value = !0,
1010
+ onOpenDesignReference: t[3] ||= (e) => Q(O).designReferenceOpen.value = !0
1011
+ }, null, 8, [
1012
+ "viewport",
1013
+ "content",
1014
+ "selected-block-id",
1015
+ "dark-mode",
1016
+ "preview-mode",
1017
+ "locked-blocks",
1018
+ "onSelectBlock"
1019
+ ])])], 2),
1020
+ Q(_).isWhiteLabeled.value ? I("", !0) : (J(), F(T, {
1021
+ key: 0,
1022
+ "position-class": [Q(h).state.previewMode ? "tpl:left-0 tpl:right-0" : Q(O).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1023
+ }, null, 8, ["position-class"])),
1024
+ R("div", {
1025
+ class: "tpl-sr-only",
1026
+ role: "status",
1027
+ "aria-live": "polite",
1028
+ "aria-atomic": "true",
1029
+ "aria-label": Q(g).t.landmarks.reorderAnnouncements
1030
+ }, Z(Q(g).keyboardReorder.announcement.value), 9, yt),
1031
+ ae(V(v, {
1032
+ "selected-block": Q(h).selectedBlock.value,
1033
+ settings: Q(h).content.value.settings,
1034
+ "shifted-left": Q(O).rightPanelOpen.value,
1035
+ onUpdateBlock: t[4] ||= (e) => Q(h).updateBlock(Q(h).selectedBlock.value.id, e),
1036
+ onDeleteBlock: t[5] ||= (e) => Q(g).blockActions.deleteBlock(Q(h).selectedBlock.value.id),
1037
+ onDuplicateBlock: t[6] ||= (e) => Q(g).blockActions.duplicateBlock(Q(h).selectedBlock.value),
1038
+ onUpdateSettings: Q(h).updateSettings
1039
+ }, null, 8, [
1040
+ "selected-block",
1041
+ "settings",
1042
+ "shifted-left",
1043
+ "onUpdateSettings"
1044
+ ]), [[re, !Q(h).state.previewMode]]),
1045
+ !Q(s) && Q(c) ? (J(), F($e, {
1046
+ key: 1,
1047
+ ref_key: "cloudPanelsRef",
1048
+ ref: a,
1049
+ config: r.config,
1050
+ editor: Q(h),
1051
+ core: Q(g),
1052
+ "panel-state": Q(O),
1053
+ "plan-config-instance": Q(d),
1054
+ "test-email": Q(C),
1055
+ "media-lib": Q(b),
1056
+ "saved-modules-headless": Q(D),
1057
+ "show-save-module-dialog": Q(j),
1058
+ "save-module-pre-selected-block-id": Q(P),
1059
+ "show-module-browser-modal": Q(M),
1060
+ "onUpdate:showSaveModuleDialog": t[7] ||= (e) => j.value = e,
1061
+ "onUpdate:saveModulePreSelectedBlockId": t[8] ||= (e) => P.value = e,
1062
+ "onUpdate:showModuleBrowserModal": t[9] ||= (e) => M.value = e,
1063
+ onSendTestEmail: U,
1064
+ onModuleInsert: q
1065
+ }, null, 8, [
1066
+ "config",
1067
+ "editor",
1068
+ "core",
1069
+ "panel-state",
1070
+ "plan-config-instance",
1071
+ "test-email",
1072
+ "media-lib",
1073
+ "saved-modules-headless",
1074
+ "show-save-module-dialog",
1075
+ "save-module-pre-selected-block-id",
1076
+ "show-module-browser-modal"
1077
+ ])) : I("", !0)
1078
+ ], 14, gt));
1079
+ }
1080
+ }), [["__scopeId", "data-v-4bccdddc"]]);
1081
+ //#endregion
1082
+ export { bt as default };