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