@templatical/editor 0.7.3 → 0.8.0
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/{AiChatSidebar-H7SIsxeC.js → AiChatSidebar-B74X6tIx.js} +3 -3
- package/dist/{AiFeatureMenu-CJGX-fP5.js → AiFeatureMenu-BOxQqkn9.js} +4 -4
- package/dist/{BlockA11yBadge-BhyoMZJ9.js → BlockIssueBadge-DJTiT1eF.js} +6 -6
- package/dist/{CloudEditor-BBs3p-mW.js → CloudEditor-BzCVDD6e.js} +24 -24
- package/dist/{CollaboratorBar-CiEo25lb.js → CollaboratorBar-Cb-c1IkS.js} +2 -2
- package/dist/{CommentsSidebar-DikjSLtH.js → CommentsSidebar-Qvppl-DR.js} +6 -6
- package/dist/{CountdownBlock-ByJ0_8Pk.js → CountdownBlock-D0IiMliC.js} +1 -1
- package/dist/{CountdownToolbar-Bn4RwJVN.js → CountdownToolbar-BVVT8U5C.js} +2 -2
- package/dist/{DesignReferenceSidebar-D08CLZPA.js → DesignReferenceSidebar-ucgtoDll.js} +6 -6
- package/dist/{AccessibilityPanel-BeUibrUb.js → IssuesPanel-XVdvrgmq.js} +18 -18
- package/dist/{ModuleBrowserModal-D6637s8j.js → ModuleBrowserModal-BotDsZ0R.js} +7 -7
- package/dist/{ModulePreviewCanvas-DBFmwq-y.js → ModulePreviewCanvas-CDg4MnJP.js} +2 -2
- package/dist/{NumberWithSuffix-CyFX9w1e.js → NumberWithSuffix-n-cr7lpU.js} +1 -1
- package/dist/{ParagraphEditor-DC2jOjNh.js → ParagraphEditor-CfzIUFQ_.js} +6 -6
- package/dist/{RichTextEditorContent-8NkjTIua.js → RichTextEditorContent-Cu9NEkKd.js} +3 -3
- package/dist/{SaveModuleDialog-NKT7bWWs.js → SaveModuleDialog-DuzfCamG.js} +6 -6
- package/dist/{SnapshotHistory-XNqYxPBj.js → SnapshotHistory-DiAPOSDM.js} +5 -5
- package/dist/{TemplateScoringPanel-kYOGtac3.js → TemplateScoringPanel-BzDVdfOx.js} +6 -6
- package/dist/{TestEmailModal-B_-Qo5Us.js → TestEmailModal-D5I5Mgtb.js} +3 -3
- package/dist/{TitleEditor-DnH3yyTr.js → TitleEditor-CZUkhtDo.js} +6 -6
- package/dist/{TplModal-BoEZFe3U.js → TplModal-CVq2BAIW.js} +3 -3
- package/dist/{blockTypeIcons-CUcYuWAO.js → blockTypeIcons-CJNuGjLX.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-SxIqfqA0.js → AiFeatureMenu-DtrT-aFR.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-SxIqfqA0.js.map → AiFeatureMenu-DtrT-aFR.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-QqW6nomn.js → BlockIssueBadge-w7n4orSd.js} +6 -6
- package/dist/cdn/chunks/BlockIssueBadge-w7n4orSd.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-ChWUIMw7.js → CloudEditor-CwG0DhG1.js} +101 -101
- package/dist/cdn/chunks/CloudEditor-CwG0DhG1.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-73LfbzqF.js → CollaboratorBar-DYjZaz7H.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-73LfbzqF.js.map → CollaboratorBar-DYjZaz7H.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-WYz9b9Ex.js → CountdownBlock-CFR8VJCU.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-WYz9b9Ex.js.map → CountdownBlock-CFR8VJCU.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-B9fPfFqp.js → CountdownToolbar-DOrQCH57.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-B9fPfFqp.js.map → CountdownToolbar-DOrQCH57.js.map} +1 -1
- package/dist/cdn/chunks/{AccessibilityPanel-CQt87OMk.js → IssuesPanel-C54PhBgc.js} +15 -15
- package/dist/cdn/chunks/IssuesPanel-C54PhBgc.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-DfnJQBkM.js → ModuleBrowserModal-4V6um-AC.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-DfnJQBkM.js.map → ModuleBrowserModal-4V6um-AC.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DE4_oHA_.js → ModulePreviewCanvas-DL8zI6VX.js} +24 -24
- package/dist/cdn/chunks/{ModulePreviewCanvas-DE4_oHA_.js.map → ModulePreviewCanvas-DL8zI6VX.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BST0yRor.js → NumberWithSuffix-avXrYDo6.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-BST0yRor.js.map → NumberWithSuffix-avXrYDo6.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CQfijF3i.js → ParagraphEditor-Cpmy85zL.js} +15 -15
- package/dist/cdn/chunks/{ParagraphEditor-CQfijF3i.js.map → ParagraphEditor-Cpmy85zL.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CBds8dnm.js → RichTextEditorContent-CFL-Lrv5.js} +2 -2
- package/dist/cdn/chunks/{RichTextEditorContent-CBds8dnm.js.map → RichTextEditorContent-CFL-Lrv5.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DXhuZgZ4.js → SaveModuleDialog-D6szy5vX.js} +4 -4
- package/dist/cdn/chunks/{SaveModuleDialog-DXhuZgZ4.js.map → SaveModuleDialog-D6szy5vX.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BdQvH7eK.js → TitleEditor-CSDdss38.js} +7 -7
- package/dist/cdn/chunks/{TitleEditor-BdQvH7eK.js.map → TitleEditor-CSDdss38.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-D3CGFW5P.js → blockTypeIcons-BEdpG8xl.js} +8 -8
- package/dist/cdn/chunks/{blockTypeIcons-D3CGFW5P.js.map → blockTypeIcons-BEdpG8xl.js.map} +1 -1
- package/dist/{de-C9hp3n_a.js → cdn/chunks/de-BBEGQDsd.js} +9 -7
- package/dist/cdn/chunks/{de-B_6zGPbx.js.map → de-BBEGQDsd.js.map} +1 -1
- package/dist/{en-Dv776AqL.js → cdn/chunks/en-CHha-_ta.js} +9 -7
- package/dist/cdn/chunks/{en-pYt1-lm4.js.map → en-CHha-_ta.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BE81zpqP.js → extensions-DgvvgeJU.js} +2 -2
- package/dist/cdn/chunks/{extensions-BE81zpqP.js.map → extensions-DgvvgeJU.js.map} +1 -1
- package/dist/cdn/chunks/{features-CXF_YKlL.js → features-CgTy87Ni.js} +29 -17
- package/dist/cdn/chunks/features-CgTy87Ni.js.map +1 -0
- package/dist/cdn/chunks/{icons-KbmhF7rg.js → icons-DxJ--AJb.js} +36 -38
- package/dist/cdn/chunks/icons-DxJ--AJb.js.map +1 -0
- package/dist/cdn/chunks/{media-library-BERe10wA.js → media-library-Byh_BbTm.js} +13 -13
- package/dist/cdn/chunks/{media-library-BERe10wA.js.map → media-library-Byh_BbTm.js.map} +1 -1
- package/dist/{pt-BR-6n58Fl_q.js → cdn/chunks/pt-BR-CFomv2R8.js} +9 -7
- package/dist/cdn/chunks/{pt-BR-CtDwVsN-.js.map → pt-BR-CFomv2R8.js.map} +1 -1
- package/dist/cdn/chunks/quality-CHCEMG8e.js +1846 -0
- package/dist/cdn/chunks/quality-CHCEMG8e.js.map +1 -0
- package/dist/cdn/chunks/{renderer-OttGEYkY.js → renderer-DttVILgu.js} +3 -3
- package/dist/cdn/chunks/{renderer-OttGEYkY.js.map → renderer-DttVILgu.js.map} +1 -1
- package/dist/cdn/chunks/{src-C21GI0p6.js → src-a8fYhBi5.js} +6 -6
- package/dist/cdn/chunks/{src-C21GI0p6.js.map → src-a8fYhBi5.js.map} +1 -1
- package/dist/cdn/chunks/{styles-Cy-My9zK.js → styles-8qDRQ-6n.js} +310 -285
- package/dist/cdn/chunks/styles-8qDRQ-6n.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +11 -11
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cdn/chunks/de-B_6zGPbx.js → de-KFqjrxG3.js} +7 -9
- package/dist/{cdn/chunks/en-pYt1-lm4.js → en-CNm94YYD.js} +7 -9
- package/dist/{extensions-p6UBqXfg.js → extensions-C-FpnfJn.js} +2 -2
- package/dist/index.d.ts +14 -12
- package/dist/{keys-B5SJtPWf.js → keys-CY3tkCsv.js} +2 -2
- package/dist/list-checks-CMtEXe9l.js +25 -0
- package/dist/{cdn/chunks/pt-BR-CtDwVsN-.js → pt-BR-gxZZAUWp.js} +7 -9
- package/dist/style.css +1 -1
- package/dist/{styles-BP15QmP3.js → styles-Ci7RdimQ.js} +204 -179
- package/dist/templatical-editor.js +9 -9
- package/dist/{useCloudI18n-ByEMykjO.js → useCloudI18n-BPUHj2CZ.js} +1 -1
- package/dist/{useEditorCore-_rbu6iMu.js → useEditorCore-DT3VrvZS.js} +41 -29
- package/dist/{useI18n-PEB8ioi_.js → useI18n-CWX9ZTCW.js} +1 -1
- package/dist/{useMergeTag-C47xwU7X.js → useMergeTag-B3F9VR04.js} +2 -2
- package/dist/{usePopoverRoot-BwzFSPLy.js → usePopoverRoot-BKJcxsst.js} +1 -1
- package/package.json +7 -7
- package/dist/accessibility-BgUEA-Ai.js +0 -27
- package/dist/cdn/chunks/AccessibilityPanel-CQt87OMk.js.map +0 -1
- package/dist/cdn/chunks/BlockA11yBadge-QqW6nomn.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-ChWUIMw7.js.map +0 -1
- package/dist/cdn/chunks/features-CXF_YKlL.js.map +0 -1
- package/dist/cdn/chunks/icons-KbmhF7rg.js.map +0 -1
- package/dist/cdn/chunks/quality-CmkY1kMU.js +0 -1456
- package/dist/cdn/chunks/quality-CmkY1kMU.js.map +0 -1
- package/dist/cdn/chunks/styles-Cy-My9zK.js.map +0 -1
- /package/dist/{check-Bg5yrRmX.js → check-BF4bEbCU.js} +0 -0
- /package/dist/{chevron-down-tee-ghFi.js → chevron-down-4NzWtv6Y.js} +0 -0
- /package/dist/{circle-alert-C0L9pUQ4.js → circle-alert-CPIth9bC.js} +0 -0
- /package/dist/{clock-CDlEdqiP.js → clock-B9-ct9r_.js} +0 -0
- /package/dist/{image-up-1D_3XDdO.js → image-up-CubAveUO.js} +0 -0
- /package/dist/{info-DTGrc0Bx.js → info-DiINxXfZ.js} +0 -0
- /package/dist/{refresh-cw-BNAhAmtL.js → refresh-cw-C9_M6yB3.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { F as e, G as t, H as n, J as r, L as i, M as a, O as o, P as s, T as c, V as l, Y as u, Z as d, b as f, c as p, ct as m, f as h, g, h as _, it as v, l as y, m as b, n as x, o as S, ot as C, p as w, s as T, st as E, t as D, u as O, v as k, x as A, y as j, z as
|
|
2
|
-
import { $ as
|
|
3
|
-
import {
|
|
1
|
+
import { F as e, G as t, H as n, J as r, L as i, M as a, O as o, P as s, T as c, V as l, Y as u, Z as d, b as f, c as p, ct as m, f as h, g, h as _, it as v, l as y, m as b, n as x, o as S, ot as C, p as w, s as T, st as E, t as D, u as O, v as k, x as A, y as j, z as M } from "./draggable-P6QWzy4g.js";
|
|
2
|
+
import { $ as N, $t as P, Bt as F, Ct as ee, Dt as te, F as I, Ft as L, G as R, Gt as z, H as ne, I as re, J as ie, Jt as ae, K as oe, Kt as se, L as ce, Lt as le, M as ue, Mt as de, N as fe, P as pe, Pt as me, R as he, Sn as B, St as ge, Tt as _e, U as ve, V as ye, Vt as be, W as xe, Wt as Se, Xt as Ce, Yt as we, at as Te, bn as Ee, bt as De, ct as Oe, dn as ke, et as Ae, fn as je, gn as Me, hn as Ne, it as Pe, j as Fe, kt as Ie, mn as Le, mt as Re, nn as ze, q as Be, qt as Ve, rt as V, ut as He, vn as Ue, wn as We, wt as Ge, xn as Ke, xt as qe, yt as Je, z as Ye, zt as Xe } from "./features-CgTy87Ni.js";
|
|
3
|
+
import { B as Ze, E as H, F as U, H as Qe, I as $e, K as et, L as tt, N as nt, P as rt, X as it, c as at, d as ot, g as st, h as ct, j as lt, k as ut, l as dt, o as ft, s as pt, v as mt, x as ht, y as gt } from "./icons-DxJ--AJb.js";
|
|
4
4
|
import { t as _t } from "./readableTextColor-DhoK4XiZ.js";
|
|
5
|
-
import { t as vt } from "./CountdownBlock-
|
|
6
|
-
import { t as yt } from "./blockTypeIcons-
|
|
5
|
+
import { t as vt } from "./CountdownBlock-CFR8VJCU.js";
|
|
6
|
+
import { t as yt } from "./blockTypeIcons-BEdpG8xl.js";
|
|
7
7
|
import { _ as bt, c as xt, f as W, g as St, h as G, l as Ct, m as K, p as q, t as wt } from "./styleConstants-DP1VOca8.js";
|
|
8
|
-
import { i as J, n as Y, r as X, t as Tt } from "./NumberWithSuffix-
|
|
9
|
-
//#region src/utils/
|
|
8
|
+
import { i as J, n as Y, r as X, t as Tt } from "./NumberWithSuffix-avXrYDo6.js";
|
|
9
|
+
//#region src/utils/resolveLintOptions.ts
|
|
10
10
|
function Et(e) {
|
|
11
11
|
return {
|
|
12
|
-
...e.
|
|
12
|
+
...e.lint,
|
|
13
13
|
locale: e.locale
|
|
14
14
|
};
|
|
15
15
|
}
|
|
@@ -44,21 +44,21 @@ var Dt = ["aria-label"], Ot = {
|
|
|
44
44
|
],
|
|
45
45
|
setup(e, { emit: t }) {
|
|
46
46
|
let r = {
|
|
47
|
-
section:
|
|
48
|
-
title:
|
|
47
|
+
section: ce,
|
|
48
|
+
title: he,
|
|
49
49
|
paragraph: ne,
|
|
50
|
-
image:
|
|
51
|
-
button:
|
|
52
|
-
divider:
|
|
53
|
-
spacer:
|
|
54
|
-
html:
|
|
55
|
-
social:
|
|
56
|
-
menu:
|
|
57
|
-
table:
|
|
58
|
-
video:
|
|
50
|
+
image: xe,
|
|
51
|
+
button: de,
|
|
52
|
+
divider: Be,
|
|
53
|
+
spacer: fe,
|
|
54
|
+
html: oe,
|
|
55
|
+
social: pe,
|
|
56
|
+
menu: ve,
|
|
57
|
+
table: ue,
|
|
58
|
+
video: Fe,
|
|
59
59
|
countdown: vt,
|
|
60
|
-
custom:
|
|
61
|
-
}, o = e, u = t, { t: f } = L(), { t: p } =
|
|
60
|
+
custom: ie
|
|
61
|
+
}, o = e, u = t, { t: f } = L(), { t: p } = Ae(), y = ze(Ve, "Canvas"), x = c(Se, null), S = c(F, null), A = c(be, {}), M = h(() => (A.plan?.hasFeature("ai_generation") ?? !1) && (A.ai?.isFeatureEnabled("chat") ?? !1)), N = h(() => (A.plan?.hasFeature("ai_generation") ?? !1) && (A.ai?.isFeatureEnabled("designToTemplate") ?? !1)), P = h({
|
|
62
62
|
get: () => o.content.blocks,
|
|
63
63
|
set: (e) => {
|
|
64
64
|
y.setContent({
|
|
@@ -66,32 +66,32 @@ var Dt = ["aria-label"], Ot = {
|
|
|
66
66
|
blocks: e
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
}),
|
|
69
|
+
}), ee = h(() => {
|
|
70
70
|
switch (o.viewport) {
|
|
71
71
|
case "mobile": return 375;
|
|
72
72
|
case "tablet": return 768;
|
|
73
73
|
default: return o.content.settings.width;
|
|
74
74
|
}
|
|
75
|
-
}),
|
|
76
|
-
function
|
|
75
|
+
}), te = h(() => ({ fontFamily: o.content.settings.fontFamily })), I = h(() => P.value.length === 0 && !o.previewMode), R = d(0), z = h(() => I.value && R.value > 0);
|
|
76
|
+
function re() {
|
|
77
77
|
I.value && (R.value += 1);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function ae() {
|
|
80
80
|
I.value && (R.value = Math.max(0, R.value - 1));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function se() {
|
|
83
83
|
R.value = 0;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function le(e) {
|
|
86
86
|
o.previewMode || e.target === e.currentTarget && u("select-block", null);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function me(e) {
|
|
89
|
+
return ye(e, S, r);
|
|
90
90
|
}
|
|
91
91
|
function B(e) {
|
|
92
92
|
return o.lockedBlocks?.get(e) ?? null;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ge(e, t) {
|
|
95
95
|
e.type === "custom" && y.updateBlock(e.id, {
|
|
96
96
|
fieldValues: t.fieldValues,
|
|
97
97
|
dataSourceFetched: t.dataSourceFetched
|
|
@@ -103,7 +103,7 @@ var Dt = ["aria-label"], Ot = {
|
|
|
103
103
|
"aria-label": v(f).landmarks.canvas,
|
|
104
104
|
class: "tpl-canvas-wrapper tpl:relative tpl:rounded-lg",
|
|
105
105
|
style: E({
|
|
106
|
-
width: `${
|
|
106
|
+
width: `${ee.value}px`,
|
|
107
107
|
boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
|
|
108
108
|
transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)"
|
|
109
109
|
})
|
|
@@ -119,11 +119,11 @@ var Dt = ["aria-label"], Ot = {
|
|
|
119
119
|
"tpl-canvas--dark-mode": e.darkMode,
|
|
120
120
|
"tpl-preview-mode": e.previewMode
|
|
121
121
|
}]),
|
|
122
|
-
style: E(
|
|
123
|
-
onClick:
|
|
122
|
+
style: E(te.value),
|
|
123
|
+
onClick: le
|
|
124
124
|
}, [j(v(D), {
|
|
125
|
-
modelValue:
|
|
126
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
125
|
+
modelValue: P.value,
|
|
126
|
+
"onUpdate:modelValue": r[2] ||= (e) => P.value = e,
|
|
127
127
|
group: "blocks",
|
|
128
128
|
animation: 150,
|
|
129
129
|
"ghost-class": "tpl-ghost",
|
|
@@ -137,12 +137,12 @@ var Dt = ["aria-label"], Ot = {
|
|
|
137
137
|
class: C([
|
|
138
138
|
"tpl-canvas-blocks",
|
|
139
139
|
I.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors tpl:duration-150" : "",
|
|
140
|
-
I.value &&
|
|
141
|
-
I.value && !
|
|
140
|
+
I.value && z.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
|
|
141
|
+
I.value && !z.value ? "tpl:border-[var(--tpl-primary)]" : ""
|
|
142
142
|
]),
|
|
143
|
-
onDragenter:
|
|
144
|
-
onDragleave:
|
|
145
|
-
onDrop:
|
|
143
|
+
onDragenter: re,
|
|
144
|
+
onDragleave: ae,
|
|
145
|
+
onDrop: se
|
|
146
146
|
}, {
|
|
147
147
|
default: l(() => [I.value ? (a(), g("div", Ot, [
|
|
148
148
|
w("div", kt, [j(v(st), {
|
|
@@ -151,29 +151,29 @@ var Dt = ["aria-label"], Ot = {
|
|
|
151
151
|
})]),
|
|
152
152
|
w("p", At, m(v(f).canvas.noBlocks), 1),
|
|
153
153
|
w("p", jt, m(v(f).canvas.dragHint), 1),
|
|
154
|
-
|
|
154
|
+
M.value && v(p) ? (a(), g("p", Mt, [
|
|
155
155
|
k(m(v(f).canvas.aiHintChat) + " ", 1),
|
|
156
156
|
w("button", {
|
|
157
157
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
158
158
|
onClick: r[0] ||= (e) => u("open-ai-chat")
|
|
159
|
-
}, [j(v(
|
|
159
|
+
}, [j(v(He), {
|
|
160
160
|
size: 14,
|
|
161
161
|
"stroke-width": 2
|
|
162
162
|
}), k(" " + m(v(p).aiMenu.aiAssistant), 1)]),
|
|
163
163
|
k(" " + m(v(f).canvas.aiHintChatSuffix), 1)
|
|
164
164
|
])) : _("", !0),
|
|
165
|
-
|
|
165
|
+
N.value && v(p) ? (a(), g("p", Nt, [
|
|
166
166
|
k(m(v(f).canvas.aiHintDesign) + " ", 1),
|
|
167
167
|
w("button", {
|
|
168
168
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
169
169
|
onClick: r[1] ||= (e) => u("open-design-reference")
|
|
170
|
-
}, [j(v(
|
|
170
|
+
}, [j(v(qe), {
|
|
171
171
|
size: 14,
|
|
172
172
|
"stroke-width": 2
|
|
173
173
|
}), k(" " + m(v(p).aiMenu.designToTemplate), 1)]),
|
|
174
174
|
k(" " + m(v(f).canvas.aiHintDesignSuffix), 1)
|
|
175
175
|
])) : _("", !0)
|
|
176
|
-
])) : _("", !0), (a(!0), g(O, null, s(
|
|
176
|
+
])) : _("", !0), (a(!0), g(O, null, s(P.value, (t) => n((a(), g("div", {
|
|
177
177
|
key: t.id,
|
|
178
178
|
class: "tpl-block-item"
|
|
179
179
|
}, [w("div", Pt, [B(t.id) ? (a(), g("div", {
|
|
@@ -189,17 +189,17 @@ var Dt = ["aria-label"], Ot = {
|
|
|
189
189
|
backgroundColor: B(t.id).color,
|
|
190
190
|
color: v(_t)(B(t.id).color)
|
|
191
191
|
})
|
|
192
|
-
}, [w("span", Ft, m(B(t.id).name.charAt(0)), 1), k(" " + m(B(t.id).name), 1)], 4)], 4)) : _("", !0), j(
|
|
192
|
+
}, [w("span", Ft, m(B(t.id).name.charAt(0)), 1), k(" " + m(B(t.id).name), 1)], 4)], 4)) : _("", !0), j(Ye, {
|
|
193
193
|
block: t,
|
|
194
194
|
"is-selected": !e.previewMode && e.selectedBlockId === t.id && !B(t.id),
|
|
195
195
|
viewport: e.viewport,
|
|
196
196
|
"preview-mode": e.previewMode,
|
|
197
197
|
onSelect: (n) => e.previewMode || B(t.id) ? void 0 : u("select-block", t.id)
|
|
198
198
|
}, {
|
|
199
|
-
default: l(() => [(a(), b(i(
|
|
199
|
+
default: l(() => [(a(), b(i(me(t)), {
|
|
200
200
|
block: t,
|
|
201
201
|
viewport: e.viewport,
|
|
202
|
-
onFetchData: (e) =>
|
|
202
|
+
onFetchData: (e) => ge(t, e),
|
|
203
203
|
onUpdate: (e) => v(y).updateBlock(t.id, e)
|
|
204
204
|
}, null, 40, [
|
|
205
205
|
"block",
|
|
@@ -242,7 +242,7 @@ var Dt = ["aria-label"], Ot = {
|
|
|
242
242
|
}, Gt = /* @__PURE__ */ A({
|
|
243
243
|
__name: "Sidebar",
|
|
244
244
|
setup(e) {
|
|
245
|
-
let { t, format: n } = L(), { t: r } =
|
|
245
|
+
let { t, format: n } = L(), { t: r } = Ae(), o = c(z, []), u = c(Xe, void 0), f = c(Ve, null), p = c(be, {}), y = h(() => (p.savedModules?.moduleCount.value ?? 0) > 0), x = d(!1), S = d(!1);
|
|
246
246
|
function C() {
|
|
247
247
|
S.value || (x.value = !1);
|
|
248
248
|
}
|
|
@@ -265,35 +265,35 @@ var Dt = ["aria-label"], Ot = {
|
|
|
265
265
|
"table",
|
|
266
266
|
"spacer",
|
|
267
267
|
"html"
|
|
268
|
-
],
|
|
268
|
+
], M = h(() => {
|
|
269
269
|
let e = A.map((e) => ({
|
|
270
270
|
type: e,
|
|
271
|
-
label:
|
|
271
|
+
label: me(e, t)
|
|
272
272
|
}));
|
|
273
273
|
return p.plan && e.splice(-1, 0, {
|
|
274
274
|
type: "countdown",
|
|
275
|
-
label:
|
|
275
|
+
label: me("countdown", t)
|
|
276
276
|
}), e;
|
|
277
|
-
}),
|
|
277
|
+
}), N = h(() => o.map((e) => ({
|
|
278
278
|
type: `custom:${e.type}`,
|
|
279
279
|
label: e.name,
|
|
280
280
|
isCustom: !0,
|
|
281
281
|
icon: e.icon
|
|
282
|
-
}))), P = h(() => [...
|
|
282
|
+
}))), P = h(() => [...M.value, ...N.value]);
|
|
283
283
|
function F(e) {
|
|
284
284
|
if (e.isCustom) {
|
|
285
285
|
let t = e.type.replace("custom:", ""), n = o.find((e) => e.type === t);
|
|
286
|
-
if (n) return
|
|
286
|
+
if (n) return Ke(n);
|
|
287
287
|
}
|
|
288
|
-
return
|
|
288
|
+
return Ee(e.type, u);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function ee(e) {
|
|
291
291
|
if (!f) return;
|
|
292
292
|
let t = F(e);
|
|
293
293
|
f.addBlock(t), f.selectBlock(t.id);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
295
|
+
function te(e, t) {
|
|
296
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), ee(t));
|
|
297
297
|
}
|
|
298
298
|
return (e, o) => (a(), g("aside", {
|
|
299
299
|
"aria-label": v(t).sidebarNav.palette,
|
|
@@ -346,13 +346,13 @@ var Dt = ["aria-label"], Ot = {
|
|
|
346
346
|
"aria-label": v(n)(v(t).sidebarNav.insertBlock, { block: e.label }),
|
|
347
347
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] active:tpl:cursor-grabbing",
|
|
348
348
|
style: E({ justifyContent: x.value ? "flex-start" : "center" }),
|
|
349
|
-
onClick: (t) =>
|
|
350
|
-
onKeydown: (t) =>
|
|
349
|
+
onClick: (t) => ee(e),
|
|
350
|
+
onKeydown: (t) => te(t, e)
|
|
351
351
|
}, [w("div", Ut, [v(yt)[e.type] ? (a(), b(i(v(yt)[e.type]), {
|
|
352
352
|
key: 0,
|
|
353
353
|
size: 20,
|
|
354
354
|
"stroke-width": 1.5
|
|
355
|
-
})) : e.isCustom ? (a(), b(
|
|
355
|
+
})) : e.isCustom ? (a(), b(Pe, {
|
|
356
356
|
key: 1,
|
|
357
357
|
icon: e.icon,
|
|
358
358
|
size: 20
|
|
@@ -364,7 +364,7 @@ var Dt = ["aria-label"], Ot = {
|
|
|
364
364
|
//#endregion
|
|
365
365
|
//#region src/composables/useMergeTagField.ts
|
|
366
366
|
function Kt(e) {
|
|
367
|
-
let { modelValue: n, emit: i, elementRef: a } = e, { canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p } =
|
|
367
|
+
let { modelValue: n, emit: i, elementRef: a } = e, { canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p } = N(), m = d(!1), g = !1, _ = !1;
|
|
368
368
|
t() && r(() => {
|
|
369
369
|
_ = !0;
|
|
370
370
|
});
|
|
@@ -382,10 +382,10 @@ function Kt(e) {
|
|
|
382
382
|
type: "mergeTag",
|
|
383
383
|
value: n,
|
|
384
384
|
label: u(n)
|
|
385
|
-
}) :
|
|
385
|
+
}) : Ue(n, p) ? t.push({
|
|
386
386
|
type: "logicMergeTag",
|
|
387
387
|
value: n,
|
|
388
|
-
keyword:
|
|
388
|
+
keyword: Me(n, p)
|
|
389
389
|
}) : t.push({
|
|
390
390
|
type: "text",
|
|
391
391
|
value: n
|
|
@@ -491,7 +491,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
491
491
|
"aria-label": v(r).mergeTag.remove,
|
|
492
492
|
title: v(r).mergeTag.remove,
|
|
493
493
|
onClick: o[0] ||= y((e) => n("clear"), ["stop"])
|
|
494
|
-
}, [j(v(
|
|
494
|
+
}, [j(v(Te), {
|
|
495
495
|
size: 12,
|
|
496
496
|
"stroke-width": 2.5
|
|
497
497
|
})], 8, Zt)], 42, qt));
|
|
@@ -570,7 +570,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
570
570
|
props: { settings: {} },
|
|
571
571
|
emits: ["update"],
|
|
572
572
|
setup(e, { emit: t }) {
|
|
573
|
-
let n = e, r = t, { t: i } = L(), o =
|
|
573
|
+
let n = e, r = t, { t: i } = L(), o = ze(ae, "TemplateSettings"), c = h(() => o.fonts.value), l = h(() => c.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : o.defaultFont.value), u = [
|
|
574
574
|
{
|
|
575
575
|
value: 480,
|
|
576
576
|
label: "480px"
|
|
@@ -634,7 +634,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
634
634
|
value: e.value
|
|
635
635
|
}, m(e.label), 9, bn))), 128))], 42, yn)])
|
|
636
636
|
], 2),
|
|
637
|
-
w("div", { class: C(v(Ct)) }, [w("div", xn, [j(v(
|
|
637
|
+
w("div", { class: C(v(Ct)) }, [w("div", xn, [j(v(et), {
|
|
638
638
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
639
639
|
size: 14,
|
|
640
640
|
"stroke-width": 2
|
|
@@ -652,7 +652,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
652
652
|
}, null, 42, Sn),
|
|
653
653
|
w("p", Cn, m(v(i).templateSettings.contentLocaleHint), 1)
|
|
654
654
|
])], 2),
|
|
655
|
-
w("div", { class: C(v(Ct)) }, [w("div", wn, [j(v(
|
|
655
|
+
w("div", { class: C(v(Ct)) }, [w("div", wn, [j(v(ge), {
|
|
656
656
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
657
657
|
size: 14,
|
|
658
658
|
"stroke-width": 2
|
|
@@ -662,7 +662,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
662
662
|
rows: 2,
|
|
663
663
|
"onUpdate:modelValue": n[4] ||= (e) => r("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
664
664
|
}, null, 8, ["model-value", "placeholder"]), w("div", Tn, [w("span", En, m(v(i).templateSettings.preheaderTextHint), 1), w("span", Dn, m((e.settings.preheaderText ?? "").length) + "/" + m(Pn), 1)])])], 2),
|
|
665
|
-
w("div", On, [w("div", kn, [j(v(
|
|
665
|
+
w("div", On, [w("div", kn, [j(v(Je), {
|
|
666
666
|
size: 14,
|
|
667
667
|
"stroke-width": 2
|
|
668
668
|
}), w("span", null, m(v(i).templateSettings.tips), 1)]), w("ul", An, [
|
|
@@ -802,7 +802,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
802
802
|
emits: ["update:modelValue"],
|
|
803
803
|
setup(e, { emit: t }) {
|
|
804
804
|
let n = e, r = t, { t: i } = L(), o = h(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), s = d(o.value);
|
|
805
|
-
|
|
805
|
+
M(o, (e) => {
|
|
806
806
|
!e && s.value && (s.value = !1);
|
|
807
807
|
});
|
|
808
808
|
function c(e, t) {
|
|
@@ -899,11 +899,11 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
899
899
|
"aria-label": s.value ? v(i).spacingControl.unlock : v(i).spacingControl.lockAll,
|
|
900
900
|
title: s.value ? v(i).spacingControl.unlock : v(i).spacingControl.lockAll,
|
|
901
901
|
onClick: u
|
|
902
|
-
}, [s.value ? (a(), b(v(
|
|
902
|
+
}, [s.value ? (a(), b(v($e), {
|
|
903
903
|
key: 0,
|
|
904
904
|
size: 14,
|
|
905
905
|
"stroke-width": 2
|
|
906
|
-
})) : (a(), b(v(
|
|
906
|
+
})) : (a(), b(v(tt), {
|
|
907
907
|
key: 1,
|
|
908
908
|
size: 14,
|
|
909
909
|
"stroke-width": 2
|
|
@@ -976,7 +976,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
976
976
|
type: "button",
|
|
977
977
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
978
978
|
onClick: i[0] ||= (e) => r.$emit("toggle")
|
|
979
|
-
}, [j(v(
|
|
979
|
+
}, [j(v(Ie), {
|
|
980
980
|
class: C(["tpl:transition-transform tpl:duration-200", t.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
981
981
|
size: 12,
|
|
982
982
|
"stroke-width": 2
|
|
@@ -1002,10 +1002,10 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1002
1002
|
},
|
|
1003
1003
|
emits: ["update"],
|
|
1004
1004
|
setup(e, { emit: t }) {
|
|
1005
|
-
let r = e, o = t, { t: f } = L(), p = c(
|
|
1005
|
+
let r = e, o = t, { t: f } = L(), p = c(se, []), y = c(le, !1), x = u(/* @__PURE__ */ new Set()), T = d(!1), E = d(""), D = d(""), A = [
|
|
1006
1006
|
{
|
|
1007
1007
|
key: "desktop",
|
|
1008
|
-
icon:
|
|
1008
|
+
icon: rt,
|
|
1009
1009
|
labelKey: "showOnDesktop"
|
|
1010
1010
|
},
|
|
1011
1011
|
{
|
|
@@ -1019,28 +1019,28 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1019
1019
|
labelKey: "showOnMobile"
|
|
1020
1020
|
}
|
|
1021
1021
|
];
|
|
1022
|
-
function
|
|
1022
|
+
function N(e) {
|
|
1023
1023
|
x.has(e) ? x.delete(e) : x.add(e);
|
|
1024
1024
|
}
|
|
1025
|
-
let
|
|
1026
|
-
function
|
|
1027
|
-
T.value = !0,
|
|
1025
|
+
let P = h(() => p.length > 0 || y), F = h(() => r.block.displayCondition ? !p.some((e) => e.label === r.block.displayCondition?.label) : !1);
|
|
1026
|
+
function ee() {
|
|
1027
|
+
T.value = !0, F.value && r.block.displayCondition ? (E.value = r.block.displayCondition.before, D.value = r.block.displayCondition.after ?? "") : (E.value = "", D.value = "");
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function te() {
|
|
1030
1030
|
E.value.trim() && (o("update", { displayCondition: {
|
|
1031
1031
|
label: f.blockSettings.customCondition,
|
|
1032
1032
|
before: E.value.trim(),
|
|
1033
1033
|
after: D.value.trim()
|
|
1034
1034
|
} }), T.value = !1, E.value = "", D.value = "");
|
|
1035
1035
|
}
|
|
1036
|
-
|
|
1036
|
+
M(() => r.block.displayCondition, (e) => {
|
|
1037
1037
|
if (!e) {
|
|
1038
1038
|
T.value = !1, E.value = "", D.value = "";
|
|
1039
1039
|
return;
|
|
1040
1040
|
}
|
|
1041
|
-
|
|
1041
|
+
F.value && (E.value = e.before, D.value = e.after ?? "");
|
|
1042
1042
|
}, { immediate: !0 });
|
|
1043
|
-
let
|
|
1043
|
+
let I = h(() => {
|
|
1044
1044
|
let e = {};
|
|
1045
1045
|
for (let t of p) {
|
|
1046
1046
|
let n = t.group ?? "";
|
|
@@ -1048,20 +1048,20 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1048
1048
|
}
|
|
1049
1049
|
return e;
|
|
1050
1050
|
});
|
|
1051
|
-
function
|
|
1051
|
+
function R(e, t) {
|
|
1052
1052
|
o("update", { styles: {
|
|
1053
1053
|
...r.block.styles,
|
|
1054
1054
|
[e]: t
|
|
1055
1055
|
} });
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function z(e) {
|
|
1058
1058
|
return r.block.visibility?.[e] !== !1;
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function ne(e) {
|
|
1061
1061
|
let t = {
|
|
1062
|
-
desktop:
|
|
1063
|
-
tablet:
|
|
1064
|
-
mobile:
|
|
1062
|
+
desktop: z("desktop"),
|
|
1063
|
+
tablet: z("tablet"),
|
|
1064
|
+
mobile: z("mobile")
|
|
1065
1065
|
};
|
|
1066
1066
|
t[e] = !t[e], o("update", { visibility: t });
|
|
1067
1067
|
}
|
|
@@ -1070,16 +1070,16 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1070
1070
|
title: v(f).blockSettings.spacing,
|
|
1071
1071
|
open: x.has("spacing"),
|
|
1072
1072
|
"no-border": e.isFirstSection,
|
|
1073
|
-
onToggle: r[2] ||= (e) =>
|
|
1073
|
+
onToggle: r[2] ||= (e) => N("spacing")
|
|
1074
1074
|
}, {
|
|
1075
1075
|
default: l(() => [j(Dr, {
|
|
1076
1076
|
label: v(f).blockSettings.padding,
|
|
1077
1077
|
"model-value": e.block.styles.padding,
|
|
1078
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
1078
|
+
"onUpdate:modelValue": r[0] ||= (e) => R("padding", e)
|
|
1079
1079
|
}, null, 8, ["label", "model-value"]), w("div", Ar, [j(Dr, {
|
|
1080
1080
|
label: v(f).blockSettings.margin,
|
|
1081
1081
|
"model-value": e.block.styles.margin,
|
|
1082
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
1082
|
+
"onUpdate:modelValue": r[1] ||= (e) => R("margin", e)
|
|
1083
1083
|
}, null, 8, ["label", "model-value"])])]),
|
|
1084
1084
|
_: 1
|
|
1085
1085
|
}, 8, [
|
|
@@ -1090,19 +1090,19 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1090
1090
|
j(kr, {
|
|
1091
1091
|
title: v(f).blockSettings.background,
|
|
1092
1092
|
open: x.has("bg"),
|
|
1093
|
-
onToggle: r[4] ||= (e) =>
|
|
1093
|
+
onToggle: r[4] ||= (e) => N("bg")
|
|
1094
1094
|
}, {
|
|
1095
1095
|
default: l(() => [w("label", { class: C(v(G)) }, m(v(f).blockSettings.color), 3), j(J, {
|
|
1096
1096
|
size: "large",
|
|
1097
1097
|
"model-value": e.block.styles.backgroundColor || v("#ffffff"),
|
|
1098
|
-
"onUpdate:modelValue": r[3] ||= (e) =>
|
|
1098
|
+
"onUpdate:modelValue": r[3] ||= (e) => R("backgroundColor", e)
|
|
1099
1099
|
}, null, 8, ["model-value"])]),
|
|
1100
1100
|
_: 1
|
|
1101
1101
|
}, 8, ["title", "open"]),
|
|
1102
1102
|
j(kr, {
|
|
1103
1103
|
title: v(f).blockSettings.display,
|
|
1104
1104
|
open: x.has("display"),
|
|
1105
|
-
onToggle: r[5] ||= (e) =>
|
|
1105
|
+
onToggle: r[5] ||= (e) => N("display")
|
|
1106
1106
|
}, {
|
|
1107
1107
|
default: l(() => [w("div", jr, [(a(), g(O, null, s(A, (e) => w("label", {
|
|
1108
1108
|
key: e.key,
|
|
@@ -1111,8 +1111,8 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1111
1111
|
w("input", {
|
|
1112
1112
|
type: "checkbox",
|
|
1113
1113
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
1114
|
-
checked:
|
|
1115
|
-
onChange: (t) =>
|
|
1114
|
+
checked: z(e.key),
|
|
1115
|
+
onChange: (t) => ne(e.key)
|
|
1116
1116
|
}, null, 40, Mr),
|
|
1117
1117
|
(a(), b(i(e.icon), {
|
|
1118
1118
|
size: 14,
|
|
@@ -1125,7 +1125,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1125
1125
|
j(kr, {
|
|
1126
1126
|
title: v(f).blockSettings.customCss,
|
|
1127
1127
|
open: x.has("css"),
|
|
1128
|
-
onToggle: r[7] ||= (e) =>
|
|
1128
|
+
onToggle: r[7] ||= (e) => N("css")
|
|
1129
1129
|
}, {
|
|
1130
1130
|
default: l(() => [w("label", { class: C(v(G)) }, m(v(f).blockSettings.css), 3), w("textarea", {
|
|
1131
1131
|
value: e.block.customCss || "",
|
|
@@ -1136,19 +1136,19 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1136
1136
|
}, null, 42, Nr)]),
|
|
1137
1137
|
_: 1
|
|
1138
1138
|
}, 8, ["title", "open"]),
|
|
1139
|
-
|
|
1139
|
+
P.value ? (a(), b(kr, {
|
|
1140
1140
|
key: 0,
|
|
1141
1141
|
title: v(f).blockSettings.displayCondition,
|
|
1142
1142
|
open: x.has("condition"),
|
|
1143
|
-
onToggle: r[11] ||= (e) =>
|
|
1143
|
+
onToggle: r[11] ||= (e) => N("condition")
|
|
1144
1144
|
}, {
|
|
1145
1145
|
default: l(() => [w("div", Pr, [w("select", {
|
|
1146
1146
|
class: C(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:duration-150 tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1147
|
-
value: T.value ||
|
|
1147
|
+
value: T.value || F.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1148
1148
|
onChange: r[8] ||= (e) => {
|
|
1149
1149
|
let t = e.target.value;
|
|
1150
1150
|
if (t === "__custom__") {
|
|
1151
|
-
|
|
1151
|
+
ee();
|
|
1152
1152
|
return;
|
|
1153
1153
|
}
|
|
1154
1154
|
if (T.value = !1, !t) {
|
|
@@ -1160,7 +1160,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1160
1160
|
}
|
|
1161
1161
|
}, [
|
|
1162
1162
|
w("option", Ir, m(v(f).blockSettings.noCondition), 1),
|
|
1163
|
-
(a(!0), g(O, null, s(
|
|
1163
|
+
(a(!0), g(O, null, s(I.value, (e, t) => (a(), g(O, { key: t }, [t ? (a(), g("optgroup", {
|
|
1164
1164
|
key: 0,
|
|
1165
1165
|
label: String(t)
|
|
1166
1166
|
}, [(a(!0), g(O, null, s(e, (e) => (a(), g("option", {
|
|
@@ -1171,7 +1171,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1171
1171
|
value: e.label
|
|
1172
1172
|
}, m(e.label), 9, zr))), 128))], 64))), 128)),
|
|
1173
1173
|
v(y) ? (a(), g("option", Br, m(v(f).blockSettings.customCondition), 1)) : _("", !0)
|
|
1174
|
-
], 42, Fr), T.value ||
|
|
1174
|
+
], 42, Fr), T.value || F.value ? (a(), g("div", Vr, [
|
|
1175
1175
|
w("div", null, [w("label", Hr, m(v(f).blockSettings.customConditionBefore), 1), n(w("textarea", {
|
|
1176
1176
|
"onUpdate:modelValue": r[9] ||= (e) => E.value = e,
|
|
1177
1177
|
rows: "2",
|
|
@@ -1186,9 +1186,9 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1186
1186
|
type: "button",
|
|
1187
1187
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:opacity-50",
|
|
1188
1188
|
disabled: !E.value.trim(),
|
|
1189
|
-
onClick:
|
|
1189
|
+
onClick: te
|
|
1190
1190
|
}, m(v(f).blockSettings.applyCondition), 9, Gr)])
|
|
1191
|
-
])) : e.block.displayCondition && !
|
|
1191
|
+
])) : e.block.displayCondition && !F.value ? (a(), g(O, { key: 1 }, [e.block.displayCondition.description ? (a(), g("p", Kr, m(e.block.displayCondition.description), 1)) : _("", !0), w("div", qr, [w("pre", Jr, m(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (a(), g("pre", Yr, m(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
|
|
1192
1192
|
_: 1
|
|
1193
1193
|
}, 8, ["title", "open"])) : _("", !0)
|
|
1194
1194
|
], 2));
|
|
@@ -1215,7 +1215,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1215
1215
|
title: e.readOnly ? v(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1216
1216
|
}, [w("label", { class: C(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [w("span", Qr, [
|
|
1217
1217
|
k(m(e.field.label) + " ", 1),
|
|
1218
|
-
e.readOnly ? (a(), b(v(
|
|
1218
|
+
e.readOnly ? (a(), b(v($e), {
|
|
1219
1219
|
key: 0,
|
|
1220
1220
|
size: 12,
|
|
1221
1221
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1248,7 +1248,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1248
1248
|
setup(t) {
|
|
1249
1249
|
return (n, r) => (a(), g("div", ni, [w("label", { class: C(v(G)) }, [
|
|
1250
1250
|
k(m(t.label) + " ", 1),
|
|
1251
|
-
t.readOnly ? (a(), b(v(
|
|
1251
|
+
t.readOnly ? (a(), b(v($e), {
|
|
1252
1252
|
key: 0,
|
|
1253
1253
|
size: 12,
|
|
1254
1254
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1303,7 +1303,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1303
1303
|
},
|
|
1304
1304
|
emits: ["update:modelValue"],
|
|
1305
1305
|
setup(e, { emit: t }) {
|
|
1306
|
-
let n = t, { t: r } = L(), i = c(
|
|
1306
|
+
let n = t, { t: r } = L(), i = c(Ce, null), o = R(), s = h(() => !!i);
|
|
1307
1307
|
async function u() {
|
|
1308
1308
|
let e = await i?.({ accept: ["images"] });
|
|
1309
1309
|
o.alive && e && n("update:modelValue", e.url);
|
|
@@ -1332,7 +1332,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1332
1332
|
key: 2,
|
|
1333
1333
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1334
1334
|
onClick: i[1] ||= (e) => u()
|
|
1335
|
-
}, [j(v(
|
|
1335
|
+
}, [j(v(De), {
|
|
1336
1336
|
size: 14,
|
|
1337
1337
|
"stroke-width": 1.5
|
|
1338
1338
|
}), k(" " + m(v(r).image.browseMedia), 1)])) : _("", !0)]),
|
|
@@ -1430,7 +1430,7 @@ var qt = ["aria-label", "onKeydown"], Jt = ["data-tooltip"], Yt = ["data-tooltip
|
|
|
1430
1430
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
1431
1431
|
title: v(o).customBlocks.fields.removeItem,
|
|
1432
1432
|
onClick: (e) => p(n)
|
|
1433
|
-
}, [j(v(
|
|
1433
|
+
}, [j(v(Oe), {
|
|
1434
1434
|
size: 12,
|
|
1435
1435
|
"stroke-width": 2
|
|
1436
1436
|
})], 8, pi)) : _("", !0)]), (a(!0), g(O, null, s(e.field.fields, (r) => (a(), b(i(v(wi)(r.type)), {
|
|
@@ -1617,7 +1617,7 @@ var Ti = {
|
|
|
1617
1617
|
props: { block: {} },
|
|
1618
1618
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1619
1619
|
setup(e, { emit: t }) {
|
|
1620
|
-
let n = e, r = t, { t: o } = L(), l = c(
|
|
1620
|
+
let n = e, r = t, { t: o } = L(), l = c(z, []), u = h(() => l.find((e) => e.type === n.block.customType)), { isFetching: d, fetchError: f, fetch: p, hasDataSource: y, needsFetch: x } = je({
|
|
1621
1621
|
definition: u,
|
|
1622
1622
|
block: h(() => n.block),
|
|
1623
1623
|
onUpdate: (e, t) => {
|
|
@@ -1645,7 +1645,7 @@ var Ti = {
|
|
|
1645
1645
|
type: "button",
|
|
1646
1646
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 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-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
|
|
1647
1647
|
onClick: n[1] ||= (...e) => v(p) && v(p)(...e)
|
|
1648
|
-
}, [j(v(
|
|
1648
|
+
}, [j(v(Re), { size: 12 }), k(" " + m(v(o).customBlocks.dataSource.changeButton), 1)]))])), v(f) ? (a(), g("p", Mi, [j(v(te), {
|
|
1649
1649
|
size: 14,
|
|
1650
1650
|
class: "tpl:shrink-0"
|
|
1651
1651
|
}), k(" " + m(v(o).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
@@ -1720,7 +1720,7 @@ var Ti = {
|
|
|
1720
1720
|
class: C(v(St)),
|
|
1721
1721
|
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
1722
1722
|
}, null, 42, Vi),
|
|
1723
|
-
w("p", Hi, [j(v(
|
|
1723
|
+
w("p", Hi, [j(v(Je), {
|
|
1724
1724
|
size: 12,
|
|
1725
1725
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1726
1726
|
}), k(" " + m(v(r).html.sanitizationHint), 1)])
|
|
@@ -1737,7 +1737,7 @@ var Ti = {
|
|
|
1737
1737
|
props: { block: {} },
|
|
1738
1738
|
emits: ["update"],
|
|
1739
1739
|
setup(e, { emit: t }) {
|
|
1740
|
-
let n = t, { t: r } = L(), i = c(
|
|
1740
|
+
let n = t, { t: r } = L(), i = c(Ce, null), o = c(we, Le.liquid), s = R(), l = h(() => !!i), u = d(!1), f = d(!1), { start: p } = ke(() => {
|
|
1741
1741
|
u.value = !1;
|
|
1742
1742
|
}, 1e3, { immediate: !1 });
|
|
1743
1743
|
function y(e, t) {
|
|
@@ -1770,12 +1770,12 @@ var Ti = {
|
|
|
1770
1770
|
"background-color": "var(--tpl-bg)"
|
|
1771
1771
|
},
|
|
1772
1772
|
onClick: b
|
|
1773
|
-
}, [j(v(
|
|
1773
|
+
}, [j(v(De), {
|
|
1774
1774
|
size: 14,
|
|
1775
1775
|
"stroke-width": 1.5
|
|
1776
1776
|
}), k(" " + m(v(r).image.browseMedia), 1)])) : _("", !0)
|
|
1777
1777
|
]),
|
|
1778
|
-
v(
|
|
1778
|
+
v(Ne)(e.block.src, v(o)) ? (a(), g("div", Gi, [w("label", { class: C(v(G)) }, [k(m(v(r).image.placeholderUrl) + " ", 1), n[8] ||= w("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, m("(optional)"), -1)], 2), w("input", {
|
|
1779
1779
|
type: "url",
|
|
1780
1780
|
class: C(v(W)),
|
|
1781
1781
|
value: e.block.placeholderUrl || "",
|
|
@@ -1896,7 +1896,7 @@ var Ti = {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
function d() {
|
|
1898
1898
|
let e = {
|
|
1899
|
-
id:
|
|
1899
|
+
id: B(),
|
|
1900
1900
|
text: "",
|
|
1901
1901
|
url: "",
|
|
1902
1902
|
openInNewTab: !1,
|
|
@@ -1930,7 +1930,7 @@ var Ti = {
|
|
|
1930
1930
|
class: C(v(bt)),
|
|
1931
1931
|
title: v(i).menu.removeItem,
|
|
1932
1932
|
onClick: (e) => p(t.id)
|
|
1933
|
-
}, [j(v(
|
|
1933
|
+
}, [j(v(Te), {
|
|
1934
1934
|
size: 14,
|
|
1935
1935
|
"stroke-width": 2
|
|
1936
1936
|
})], 10, ca)]),
|
|
@@ -2038,43 +2038,68 @@ var Ti = {
|
|
|
2038
2038
|
}, 8, ["label"])
|
|
2039
2039
|
], 64));
|
|
2040
2040
|
}
|
|
2041
|
-
})
|
|
2041
|
+
});
|
|
2042
|
+
//#endregion
|
|
2043
|
+
//#region src/utils/rebalanceColumnChildren.ts
|
|
2044
|
+
function _a(e) {
|
|
2045
|
+
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
2046
|
+
}
|
|
2047
|
+
function va(e, t) {
|
|
2048
|
+
let n = _a(t);
|
|
2049
|
+
if (e.length === n) return e;
|
|
2050
|
+
if (e.length < n) {
|
|
2051
|
+
let t = Array.from({ length: n - e.length }, () => []);
|
|
2052
|
+
return [...e, ...t];
|
|
2053
|
+
}
|
|
2054
|
+
let r = e.slice(0, n), i = e.slice(n).flat(), a = [...r[n - 1], ...i];
|
|
2055
|
+
return [...r.slice(0, n - 1), a];
|
|
2056
|
+
}
|
|
2057
|
+
//#endregion
|
|
2058
|
+
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2059
|
+
var ya = { class: "tpl:mb-3.5" }, ba = ["value"], xa = ["value"], Sa = /* @__PURE__ */ A({
|
|
2042
2060
|
__name: "SectionToolbar",
|
|
2043
2061
|
props: { block: {} },
|
|
2044
2062
|
emits: ["update"],
|
|
2045
2063
|
setup(e, { emit: t }) {
|
|
2046
|
-
let n = t, { t:
|
|
2064
|
+
let n = e, r = t, { t: i } = L(), o = h(() => [
|
|
2047
2065
|
{
|
|
2048
2066
|
value: "1",
|
|
2049
|
-
label:
|
|
2067
|
+
label: i.section.column1
|
|
2050
2068
|
},
|
|
2051
2069
|
{
|
|
2052
2070
|
value: "2",
|
|
2053
|
-
label:
|
|
2071
|
+
label: i.section.column2
|
|
2054
2072
|
},
|
|
2055
2073
|
{
|
|
2056
2074
|
value: "3",
|
|
2057
|
-
label:
|
|
2075
|
+
label: i.section.column3
|
|
2058
2076
|
},
|
|
2059
2077
|
{
|
|
2060
2078
|
value: "1-2",
|
|
2061
|
-
label:
|
|
2079
|
+
label: i.section.ratio12
|
|
2062
2080
|
},
|
|
2063
2081
|
{
|
|
2064
2082
|
value: "2-1",
|
|
2065
|
-
label:
|
|
2083
|
+
label: i.section.ratio21
|
|
2066
2084
|
}
|
|
2067
2085
|
]);
|
|
2068
|
-
|
|
2086
|
+
function c(e) {
|
|
2087
|
+
let t = e.target.value;
|
|
2088
|
+
r("update", {
|
|
2089
|
+
columns: t,
|
|
2090
|
+
children: va(n.block.children, t)
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
2093
|
+
return (t, n) => (a(), g("div", ya, [w("label", { class: C(v(G)) }, m(v(i).section.columns), 3), w("select", {
|
|
2069
2094
|
class: C(v(W)),
|
|
2070
2095
|
value: e.block.columns,
|
|
2071
|
-
onChange:
|
|
2072
|
-
}, [(a(!0), g(O, null, s(
|
|
2096
|
+
onChange: c
|
|
2097
|
+
}, [(a(!0), g(O, null, s(o.value, (e) => (a(), g("option", {
|
|
2073
2098
|
key: e.value,
|
|
2074
2099
|
value: e.value
|
|
2075
|
-
}, m(e.label), 9,
|
|
2100
|
+
}, m(e.label), 9, xa))), 128))], 42, ba)]));
|
|
2076
2101
|
}
|
|
2077
|
-
}),
|
|
2102
|
+
}), Ca = { class: "tpl:mb-3.5" }, wa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ta = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ea = ["value", "onChange"], Da = ["value"], Oa = ["title", "onClick"], ka = { class: "tpl:mb-3.5" }, Aa = ["value"], ja = { value: "solid" }, Ma = { value: "outlined" }, Na = { value: "rounded" }, Pa = { value: "square" }, Fa = { value: "circle" }, Ia = { class: "tpl:mb-3.5" }, La = { class: "tpl:mb-3.5" }, Ra = { class: "tpl:flex tpl:items-stretch" }, za = ["value"], Ba = { class: "tpl:mb-3.5" }, Va = /* @__PURE__ */ A({
|
|
2078
2103
|
__name: "SocialToolbar",
|
|
2079
2104
|
props: { block: {} },
|
|
2080
2105
|
emits: ["update"],
|
|
@@ -2085,7 +2110,7 @@ var Ti = {
|
|
|
2085
2110
|
}
|
|
2086
2111
|
function c() {
|
|
2087
2112
|
let e = {
|
|
2088
|
-
id:
|
|
2113
|
+
id: B(),
|
|
2089
2114
|
platform: "facebook",
|
|
2090
2115
|
url: ""
|
|
2091
2116
|
};
|
|
@@ -2101,25 +2126,25 @@ var Ti = {
|
|
|
2101
2126
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2102
2127
|
}
|
|
2103
2128
|
return (t, n) => (a(), g(O, null, [
|
|
2104
|
-
w("div",
|
|
2129
|
+
w("div", Ca, [w("label", { class: C(v(G)) }, m(v(i).social.icons), 3), w("div", wa, [(a(!0), g(O, null, s(e.block.icons, (e) => (a(), g("div", {
|
|
2105
2130
|
key: e.id,
|
|
2106
2131
|
class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
|
|
2107
|
-
}, [w("div",
|
|
2132
|
+
}, [w("div", Ta, [w("select", {
|
|
2108
2133
|
"data-testid": "social-platform-select",
|
|
2109
2134
|
class: C([v(W), "tpl:flex-1"]),
|
|
2110
2135
|
value: e.platform,
|
|
2111
2136
|
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2112
|
-
}, [(a(!0), g(O, null, s(v(
|
|
2137
|
+
}, [(a(!0), g(O, null, s(v(re), (e) => (a(), g("option", {
|
|
2113
2138
|
key: e,
|
|
2114
2139
|
value: e
|
|
2115
|
-
}, m(v(I)[e].name), 9,
|
|
2140
|
+
}, m(v(I)[e].name), 9, Da))), 128))], 42, Ea), w("button", {
|
|
2116
2141
|
class: C(v(bt)),
|
|
2117
2142
|
title: v(i).social.removeIcon,
|
|
2118
2143
|
onClick: (t) => u(e.id)
|
|
2119
|
-
}, [j(v(
|
|
2144
|
+
}, [j(v(Te), {
|
|
2120
2145
|
size: 14,
|
|
2121
2146
|
"stroke-width": 2
|
|
2122
|
-
})], 10,
|
|
2147
|
+
})], 10, Oa)]), j(Z, {
|
|
2123
2148
|
"model-value": e.url,
|
|
2124
2149
|
type: "url",
|
|
2125
2150
|
placeholder: v(i).social.urlPlaceholder,
|
|
@@ -2135,18 +2160,18 @@ var Ti = {
|
|
|
2135
2160
|
size: 14,
|
|
2136
2161
|
"stroke-width": 2
|
|
2137
2162
|
}), k(" " + m(v(i).social.addIcon), 1)], 2)])]),
|
|
2138
|
-
w("div",
|
|
2163
|
+
w("div", ka, [w("label", { class: C(v(G)) }, m(v(i).social.style), 3), w("select", {
|
|
2139
2164
|
class: C(v(W)),
|
|
2140
2165
|
value: e.block.iconStyle,
|
|
2141
2166
|
onChange: n[0] ||= (e) => o("iconStyle", e.target.value)
|
|
2142
2167
|
}, [
|
|
2143
|
-
w("option",
|
|
2144
|
-
w("option",
|
|
2145
|
-
w("option",
|
|
2146
|
-
w("option",
|
|
2147
|
-
w("option",
|
|
2148
|
-
], 42,
|
|
2149
|
-
w("div",
|
|
2168
|
+
w("option", ja, m(v(i).social.styleSolid), 1),
|
|
2169
|
+
w("option", Ma, m(v(i).social.styleOutlined), 1),
|
|
2170
|
+
w("option", Na, m(v(i).social.styleRounded), 1),
|
|
2171
|
+
w("option", Pa, m(v(i).social.styleSquare), 1),
|
|
2172
|
+
w("option", Fa, m(v(i).social.styleCircle), 1)
|
|
2173
|
+
], 42, Aa)]),
|
|
2174
|
+
w("div", Ia, [w("label", { class: C(v(G)) }, m(v(i).social.size), 3), j(X, {
|
|
2150
2175
|
options: [
|
|
2151
2176
|
{
|
|
2152
2177
|
value: "small",
|
|
@@ -2164,15 +2189,15 @@ var Ti = {
|
|
|
2164
2189
|
"model-value": e.block.iconSize,
|
|
2165
2190
|
"onUpdate:modelValue": n[1] ||= (e) => o("iconSize", e)
|
|
2166
2191
|
}, null, 8, ["options", "model-value"])]),
|
|
2167
|
-
w("div",
|
|
2192
|
+
w("div", La, [w("label", { class: C(v(G)) }, m(v(i).social.spacing), 3), w("div", Ra, [w("input", {
|
|
2168
2193
|
type: "number",
|
|
2169
2194
|
class: C(v(q)),
|
|
2170
2195
|
value: e.block.spacing,
|
|
2171
2196
|
min: "0",
|
|
2172
2197
|
max: "50",
|
|
2173
2198
|
onInput: n[2] ||= (e) => o("spacing", Number(e.target.value))
|
|
2174
|
-
}, null, 42,
|
|
2175
|
-
w("div",
|
|
2199
|
+
}, null, 42, za), w("span", { class: C(v(K)) }, "px", 2)])]),
|
|
2200
|
+
w("div", Ba, [w("label", { class: C(v(G)) }, m(v(i).social.align), 3), j(X, {
|
|
2176
2201
|
options: [
|
|
2177
2202
|
{
|
|
2178
2203
|
value: "left",
|
|
@@ -2195,22 +2220,22 @@ var Ti = {
|
|
|
2195
2220
|
}, null, 8, ["options", "model-value"])])
|
|
2196
2221
|
], 64));
|
|
2197
2222
|
}
|
|
2198
|
-
}),
|
|
2223
|
+
}), Ha = { class: "tpl:mb-3.5" }, Ua = { class: "tpl:flex tpl:items-stretch" }, Wa = ["value"], Ga = ["value"], Ka = /* @__PURE__ */ A({
|
|
2199
2224
|
__name: "SpacerToolbar",
|
|
2200
2225
|
props: { block: {} },
|
|
2201
2226
|
emits: ["update"],
|
|
2202
2227
|
setup(e, { emit: t }) {
|
|
2203
2228
|
let n = t, { t: r } = L();
|
|
2204
|
-
return (t, i) => (a(), g("div",
|
|
2229
|
+
return (t, i) => (a(), g("div", Ha, [
|
|
2205
2230
|
w("label", { class: C(v(G)) }, m(v(r).spacer.height), 3),
|
|
2206
|
-
w("div",
|
|
2231
|
+
w("div", Ua, [w("input", {
|
|
2207
2232
|
type: "number",
|
|
2208
2233
|
class: C(v(q)),
|
|
2209
2234
|
value: e.block.height,
|
|
2210
2235
|
min: "10",
|
|
2211
2236
|
max: "100",
|
|
2212
2237
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2213
|
-
}, null, 42,
|
|
2238
|
+
}, null, 42, Wa), w("span", { class: C(v(K)) }, "px", 2)]),
|
|
2214
2239
|
w("input", {
|
|
2215
2240
|
type: "range",
|
|
2216
2241
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2218,13 +2243,13 @@ var Ti = {
|
|
|
2218
2243
|
min: "10",
|
|
2219
2244
|
max: "100",
|
|
2220
2245
|
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2221
|
-
}, null, 40,
|
|
2246
|
+
}, null, 40, Ga)
|
|
2222
2247
|
]));
|
|
2223
2248
|
}
|
|
2224
|
-
}),
|
|
2249
|
+
}), qa = { class: "tpl:mb-3.5" }, Ja = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ya = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Xa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Za = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Qa = ["disabled"], $a = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, eo = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, to = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, no = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ro = ["disabled"], io = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ao = { class: "tpl:mb-3.5" }, oo = { class: "tpl:mb-1.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, so = ["checked"], co = {
|
|
2225
2250
|
key: 0,
|
|
2226
2251
|
class: "tpl:mb-3.5"
|
|
2227
|
-
},
|
|
2252
|
+
}, lo = { class: "tpl:mb-3.5" }, uo = { class: "tpl:mb-3.5" }, fo = { class: "tpl:flex tpl:items-stretch" }, po = ["value"], mo = { class: "tpl:mb-3.5" }, ho = { class: "tpl:flex tpl:items-stretch" }, go = ["value"], _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = { value: "" }, bo = ["value"], xo = { class: "tpl:mb-3.5" }, So = { class: "tpl:flex tpl:items-stretch" }, Co = ["value"], wo = { class: "tpl:mb-3.5" }, To = { class: "tpl:mb-3.5" }, Eo = /* @__PURE__ */ A({
|
|
2228
2253
|
__name: "TableToolbar",
|
|
2229
2254
|
props: {
|
|
2230
2255
|
block: {},
|
|
@@ -2238,9 +2263,9 @@ var Ti = {
|
|
|
2238
2263
|
}
|
|
2239
2264
|
function l() {
|
|
2240
2265
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
2241
|
-
id:
|
|
2266
|
+
id: B(),
|
|
2242
2267
|
cells: Array.from({ length: e }, () => ({
|
|
2243
|
-
id:
|
|
2268
|
+
id: B(),
|
|
2244
2269
|
content: ""
|
|
2245
2270
|
}))
|
|
2246
2271
|
};
|
|
@@ -2253,7 +2278,7 @@ var Ti = {
|
|
|
2253
2278
|
r("update", { rows: n.block.rows.map((e) => ({
|
|
2254
2279
|
...e,
|
|
2255
2280
|
cells: [...e.cells, {
|
|
2256
|
-
id:
|
|
2281
|
+
id: B(),
|
|
2257
2282
|
content: ""
|
|
2258
2283
|
}]
|
|
2259
2284
|
})) });
|
|
@@ -2265,7 +2290,7 @@ var Ti = {
|
|
|
2265
2290
|
})) });
|
|
2266
2291
|
}
|
|
2267
2292
|
return (t, n) => (a(), g(O, null, [
|
|
2268
|
-
w("div",
|
|
2293
|
+
w("div", qa, [w("label", { class: C(v(G)) }, m(v(i).table.dimensions), 3), w("div", Ja, [w("div", Ya, [w("span", Xa, m(v(i).table.rows), 1), w("div", Za, [
|
|
2269
2294
|
w("button", {
|
|
2270
2295
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
2271
2296
|
disabled: e.block.rows.length <= 1,
|
|
@@ -2273,8 +2298,8 @@ var Ti = {
|
|
|
2273
2298
|
}, [j(v(U), {
|
|
2274
2299
|
size: 12,
|
|
2275
2300
|
"stroke-width": 2
|
|
2276
|
-
})], 8,
|
|
2277
|
-
w("span",
|
|
2301
|
+
})], 8, Qa),
|
|
2302
|
+
w("span", $a, m(e.block.rows.length), 1),
|
|
2278
2303
|
w("button", {
|
|
2279
2304
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)]",
|
|
2280
2305
|
onClick: l
|
|
@@ -2282,7 +2307,7 @@ var Ti = {
|
|
|
2282
2307
|
size: 12,
|
|
2283
2308
|
"stroke-width": 2
|
|
2284
2309
|
})])
|
|
2285
|
-
])]), w("div",
|
|
2310
|
+
])]), w("div", eo, [w("span", to, m(v(i).table.columns), 1), w("div", no, [
|
|
2286
2311
|
w("button", {
|
|
2287
2312
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
2288
2313
|
disabled: o.value <= 1,
|
|
@@ -2290,8 +2315,8 @@ var Ti = {
|
|
|
2290
2315
|
}, [j(v(U), {
|
|
2291
2316
|
size: 12,
|
|
2292
2317
|
"stroke-width": 2
|
|
2293
|
-
})], 8,
|
|
2294
|
-
w("span",
|
|
2318
|
+
})], 8, ro),
|
|
2319
|
+
w("span", io, m(o.value), 1),
|
|
2295
2320
|
w("button", {
|
|
2296
2321
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)]",
|
|
2297
2322
|
onClick: d
|
|
@@ -2300,58 +2325,58 @@ var Ti = {
|
|
|
2300
2325
|
"stroke-width": 2
|
|
2301
2326
|
})])
|
|
2302
2327
|
])])])]),
|
|
2303
|
-
w("div",
|
|
2328
|
+
w("div", ao, [w("label", oo, [w("input", {
|
|
2304
2329
|
type: "checkbox",
|
|
2305
2330
|
checked: e.block.hasHeaderRow,
|
|
2306
2331
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2307
2332
|
onChange: n[2] ||= (e) => c("hasHeaderRow", e.target.checked)
|
|
2308
|
-
}, null, 40,
|
|
2309
|
-
e.block.hasHeaderRow ? (a(), g("div",
|
|
2333
|
+
}, null, 40, so), k(" " + m(v(i).table.hasHeaderRow), 1)])]),
|
|
2334
|
+
e.block.hasHeaderRow ? (a(), g("div", co, [w("label", { class: C(v(G)) }, m(v(i).table.headerBackgroundColor), 3), j(J, {
|
|
2310
2335
|
"model-value": e.block.headerBackgroundColor || v("#f2f2f2"),
|
|
2311
2336
|
placeholder: v(i).table.noHeaderBg,
|
|
2312
2337
|
"onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2313
2338
|
}, null, 8, ["model-value", "placeholder"])])) : _("", !0),
|
|
2314
|
-
w("div",
|
|
2339
|
+
w("div", lo, [w("label", { class: C(v(G)) }, m(v(i).table.borderColor), 3), j(J, {
|
|
2315
2340
|
"model-value": e.block.borderColor,
|
|
2316
2341
|
"onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
|
|
2317
2342
|
}, null, 8, ["model-value"])]),
|
|
2318
|
-
w("div",
|
|
2343
|
+
w("div", uo, [w("label", { class: C(v(G)) }, m(v(i).table.borderWidth), 3), w("div", fo, [w("input", {
|
|
2319
2344
|
type: "number",
|
|
2320
2345
|
class: C(v(q)),
|
|
2321
2346
|
value: e.block.borderWidth,
|
|
2322
2347
|
min: "0",
|
|
2323
2348
|
max: "10",
|
|
2324
2349
|
onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2325
|
-
}, null, 42,
|
|
2326
|
-
w("div",
|
|
2350
|
+
}, null, 42, po), w("span", { class: C(v(K)) }, "px", 2)])]),
|
|
2351
|
+
w("div", mo, [w("label", { class: C(v(G)) }, m(v(i).table.cellPadding), 3), w("div", ho, [w("input", {
|
|
2327
2352
|
type: "number",
|
|
2328
2353
|
class: C(v(q)),
|
|
2329
2354
|
value: e.block.cellPadding,
|
|
2330
2355
|
min: "0",
|
|
2331
2356
|
max: "30",
|
|
2332
2357
|
onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2333
|
-
}, null, 42,
|
|
2334
|
-
w("div",
|
|
2358
|
+
}, null, 42, go), w("span", { class: C(v(K)) }, "px", 2)])]),
|
|
2359
|
+
w("div", _o, [w("label", { class: C(v(G)) }, m(v(i).table.fontFamily), 3), w("select", {
|
|
2335
2360
|
class: C(v(W)),
|
|
2336
2361
|
value: e.block.fontFamily || "",
|
|
2337
2362
|
onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2338
|
-
}, [w("option",
|
|
2363
|
+
}, [w("option", yo, m(v(i).title.inheritFont), 1), (a(!0), g(O, null, s(e.fontFamilies, (e) => (a(), g("option", {
|
|
2339
2364
|
key: e.value,
|
|
2340
2365
|
value: e.value
|
|
2341
|
-
}, m(e.label), 9,
|
|
2342
|
-
w("div",
|
|
2366
|
+
}, m(e.label), 9, bo))), 128))], 42, vo)]),
|
|
2367
|
+
w("div", xo, [w("label", { class: C(v(G)) }, m(v(i).table.fontSize), 3), w("div", So, [w("input", {
|
|
2343
2368
|
type: "number",
|
|
2344
2369
|
class: C(v(q)),
|
|
2345
2370
|
value: e.block.fontSize,
|
|
2346
2371
|
min: "10",
|
|
2347
2372
|
max: "32",
|
|
2348
2373
|
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2349
|
-
}, null, 42,
|
|
2350
|
-
w("div",
|
|
2374
|
+
}, null, 42, Co), w("span", { class: C(v(K)) }, "px", 2)])]),
|
|
2375
|
+
w("div", wo, [w("label", { class: C(v(G)) }, m(v(i).table.color), 3), j(J, {
|
|
2351
2376
|
"model-value": e.block.color,
|
|
2352
2377
|
"onUpdate:modelValue": n[9] ||= (e) => c("color", e)
|
|
2353
2378
|
}, null, 8, ["model-value"])]),
|
|
2354
|
-
w("div",
|
|
2379
|
+
w("div", To, [w("label", { class: C(v(G)) }, m(v(i).table.textAlign), 3), j(X, {
|
|
2355
2380
|
options: [
|
|
2356
2381
|
{
|
|
2357
2382
|
value: "left",
|
|
@@ -2374,7 +2399,7 @@ var Ti = {
|
|
|
2374
2399
|
}, null, 8, ["options", "model-value"])])
|
|
2375
2400
|
], 64));
|
|
2376
2401
|
}
|
|
2377
|
-
}),
|
|
2402
|
+
}), Do = { class: "tpl:mb-3.5" }, Oo = ["value"], ko = { value: 1 }, Ao = { value: 2 }, jo = { value: 3 }, Mo = { value: 4 }, No = { class: "tpl:mb-3.5" }, Po = ["value"], Fo = { value: "" }, Io = ["value"], Lo = { class: "tpl:mb-3.5" }, Ro = { class: "tpl:mb-3.5" }, zo = /* @__PURE__ */ A({
|
|
2378
2403
|
__name: "TitleToolbar",
|
|
2379
2404
|
props: {
|
|
2380
2405
|
block: {},
|
|
@@ -2387,29 +2412,29 @@ var Ti = {
|
|
|
2387
2412
|
n("update", { [e]: t });
|
|
2388
2413
|
}
|
|
2389
2414
|
return (t, n) => (a(), g(O, null, [
|
|
2390
|
-
w("div",
|
|
2415
|
+
w("div", Do, [w("label", { class: C(v(G)) }, m(v(r).title.level), 3), w("select", {
|
|
2391
2416
|
class: C(v(W)),
|
|
2392
2417
|
value: e.block.level,
|
|
2393
2418
|
onChange: n[0] ||= (e) => i("level", Number(e.target.value))
|
|
2394
2419
|
}, [
|
|
2395
|
-
w("option",
|
|
2396
|
-
w("option",
|
|
2397
|
-
w("option",
|
|
2398
|
-
w("option",
|
|
2399
|
-
], 42,
|
|
2400
|
-
w("div",
|
|
2420
|
+
w("option", ko, m(v(r).title.heading1), 1),
|
|
2421
|
+
w("option", Ao, m(v(r).title.heading2), 1),
|
|
2422
|
+
w("option", jo, m(v(r).title.heading3), 1),
|
|
2423
|
+
w("option", Mo, m(v(r).title.heading4), 1)
|
|
2424
|
+
], 42, Oo)]),
|
|
2425
|
+
w("div", No, [w("label", { class: C(v(G)) }, m(v(r).title.fontFamily), 3), w("select", {
|
|
2401
2426
|
class: C(v(W)),
|
|
2402
2427
|
value: e.block.fontFamily || "",
|
|
2403
2428
|
onChange: n[1] ||= (e) => i("fontFamily", e.target.value || void 0)
|
|
2404
|
-
}, [w("option",
|
|
2429
|
+
}, [w("option", Fo, m(v(r).title.inheritFont), 1), (a(!0), g(O, null, s(e.fontFamilies, (e) => (a(), g("option", {
|
|
2405
2430
|
key: e.value,
|
|
2406
2431
|
value: e.value
|
|
2407
|
-
}, m(e.label), 9,
|
|
2408
|
-
w("div",
|
|
2432
|
+
}, m(e.label), 9, Io))), 128))], 42, Po)]),
|
|
2433
|
+
w("div", Lo, [w("label", { class: C(v(G)) }, m(v(r).title.color), 3), j(J, {
|
|
2409
2434
|
"model-value": e.block.color,
|
|
2410
2435
|
"onUpdate:modelValue": n[2] ||= (e) => i("color", e)
|
|
2411
2436
|
}, null, 8, ["model-value"])]),
|
|
2412
|
-
w("div",
|
|
2437
|
+
w("div", Ro, [w("label", { class: C(v(G)) }, m(v(r).title.align), 3), j(X, {
|
|
2413
2438
|
options: [
|
|
2414
2439
|
{
|
|
2415
2440
|
value: "left",
|
|
@@ -2432,22 +2457,22 @@ var Ti = {
|
|
|
2432
2457
|
}, null, 8, ["options", "model-value"])])
|
|
2433
2458
|
], 64));
|
|
2434
2459
|
}
|
|
2435
|
-
}),
|
|
2460
|
+
}), Bo = { class: "tpl:mb-3.5" }, Vo = {
|
|
2436
2461
|
key: 0,
|
|
2437
2462
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
2438
|
-
},
|
|
2463
|
+
}, Ho = ["checked"], Uo = {
|
|
2439
2464
|
key: 0,
|
|
2440
2465
|
class: "tpl:mb-3.5"
|
|
2441
|
-
},
|
|
2466
|
+
}, Wo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Go = [
|
|
2442
2467
|
"value",
|
|
2443
2468
|
"placeholder",
|
|
2444
2469
|
"title"
|
|
2445
|
-
],
|
|
2470
|
+
], Ko = { class: "tpl:mb-3.5" }, qo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Jo = { class: "tpl:mb-3.5" }, Yo = { class: "tpl:mb-3.5" }, Xo = ["value"], Zo = { value: "full" }, Qo = { class: "tpl:mb-3.5" }, $o = /* @__PURE__ */ A({
|
|
2446
2471
|
__name: "VideoToolbar",
|
|
2447
2472
|
props: { block: {} },
|
|
2448
2473
|
emits: ["update"],
|
|
2449
2474
|
setup(e, { emit: t }) {
|
|
2450
|
-
let n = e, r = t, { t: i } = L(), o = c(
|
|
2475
|
+
let n = e, r = t, { t: i } = L(), o = c(Ce, null), s = c(we, Le.liquid), l = R(), u = h(() => !!o), f = h(() => Ne(n.block.url, s)), p = d(!1), { start: y } = ke(() => {
|
|
2451
2476
|
p.value = !1;
|
|
2452
2477
|
}, 1e3, { immediate: !1 });
|
|
2453
2478
|
function b(e, t) {
|
|
@@ -2458,7 +2483,7 @@ var Ti = {
|
|
|
2458
2483
|
l.alive && e && (b("thumbnailUrl", e.url), p.value = !0, y());
|
|
2459
2484
|
}
|
|
2460
2485
|
return (t, n) => (a(), g(O, null, [
|
|
2461
|
-
w("div",
|
|
2486
|
+
w("div", Bo, [
|
|
2462
2487
|
w("label", { class: C(v(G)) }, m(v(i).video.videoUrl), 3),
|
|
2463
2488
|
j(Z, {
|
|
2464
2489
|
"model-value": e.block.url,
|
|
@@ -2466,23 +2491,23 @@ var Ti = {
|
|
|
2466
2491
|
placeholder: v(i).video.videoUrlPlaceholder,
|
|
2467
2492
|
"onUpdate:modelValue": n[0] ||= (e) => b("url", e)
|
|
2468
2493
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2469
|
-
e.block.url ? (a(), g("label",
|
|
2494
|
+
e.block.url ? (a(), g("label", Vo, [w("input", {
|
|
2470
2495
|
type: "checkbox",
|
|
2471
2496
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2472
2497
|
checked: e.block.openInNewTab ?? !1,
|
|
2473
2498
|
onChange: n[1] ||= (e) => b("openInNewTab", e.target.checked)
|
|
2474
|
-
}, null, 40,
|
|
2499
|
+
}, null, 40, Ho), k(" " + m(v(i).video.openInNewTab), 1)])) : _("", !0)
|
|
2475
2500
|
]),
|
|
2476
|
-
f.value ? (a(), g("div",
|
|
2501
|
+
f.value ? (a(), g("div", Uo, [w("label", { class: C(v(G)) }, [k(m(v(i).video.placeholderUrl) + " ", 1), w("span", Wo, m(v(i).video.optional), 1)], 2), w("input", {
|
|
2477
2502
|
type: "url",
|
|
2478
2503
|
class: C(v(W)),
|
|
2479
2504
|
value: e.block.placeholderUrl || "",
|
|
2480
2505
|
placeholder: v(i).video.placeholderUrlPlaceholder,
|
|
2481
2506
|
title: v(i).video.placeholderUrlTooltip,
|
|
2482
2507
|
onInput: n[2] ||= (e) => b("placeholderUrl", e.target.value)
|
|
2483
|
-
}, null, 42,
|
|
2484
|
-
w("div",
|
|
2485
|
-
w("label", { class: C(v(G)) }, [k(m(v(i).video.customThumbnail) + " ", 1), w("span",
|
|
2508
|
+
}, null, 42, Go)])) : _("", !0),
|
|
2509
|
+
w("div", Ko, [
|
|
2510
|
+
w("label", { class: C(v(G)) }, [k(m(v(i).video.customThumbnail) + " ", 1), w("span", qo, m(v(i).video.optional), 1)], 2),
|
|
2486
2511
|
j(Z, {
|
|
2487
2512
|
"model-value": e.block.thumbnailUrl,
|
|
2488
2513
|
type: "url",
|
|
@@ -2503,28 +2528,28 @@ var Ti = {
|
|
|
2503
2528
|
"background-color": "var(--tpl-bg)"
|
|
2504
2529
|
},
|
|
2505
2530
|
onClick: x
|
|
2506
|
-
}, [j(v(
|
|
2531
|
+
}, [j(v(De), {
|
|
2507
2532
|
size: 14,
|
|
2508
2533
|
"stroke-width": 1.5
|
|
2509
2534
|
}), k(" " + m(v(i).image.browseMedia), 1)])) : _("", !0)
|
|
2510
2535
|
]),
|
|
2511
|
-
w("div",
|
|
2536
|
+
w("div", Jo, [w("label", { class: C(v(G)) }, m(v(i).video.altText), 3), j(Z, {
|
|
2512
2537
|
"model-value": e.block.alt,
|
|
2513
2538
|
type: "text",
|
|
2514
2539
|
placeholder: v(i).video.altTextPlaceholder,
|
|
2515
2540
|
"onUpdate:modelValue": n[4] ||= (e) => b("alt", e)
|
|
2516
2541
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2517
|
-
w("div",
|
|
2542
|
+
w("div", Yo, [w("label", { class: C(v(G)) }, m(v(i).video.width), 3), w("select", {
|
|
2518
2543
|
class: C(v(W)),
|
|
2519
2544
|
value: e.block.width,
|
|
2520
2545
|
onChange: n[5] ||= (e) => b("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
2521
2546
|
}, [
|
|
2522
|
-
w("option",
|
|
2547
|
+
w("option", Zo, m(v(i).video.fullWidth), 1),
|
|
2523
2548
|
n[7] ||= w("option", { value: "300" }, "300px", -1),
|
|
2524
2549
|
n[8] ||= w("option", { value: "400" }, "400px", -1),
|
|
2525
2550
|
n[9] ||= w("option", { value: "500" }, "500px", -1)
|
|
2526
|
-
], 42,
|
|
2527
|
-
w("div",
|
|
2551
|
+
], 42, Xo)]),
|
|
2552
|
+
w("div", Qo, [w("label", { class: C(v(G)) }, m(v(i).title.align), 3), j(X, {
|
|
2528
2553
|
options: [
|
|
2529
2554
|
{
|
|
2530
2555
|
value: "left",
|
|
@@ -2544,7 +2569,7 @@ var Ti = {
|
|
|
2544
2569
|
}, null, 8, ["options", "model-value"])])
|
|
2545
2570
|
], 64));
|
|
2546
2571
|
}
|
|
2547
|
-
}),
|
|
2572
|
+
}), es = ["aria-label"], ts = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, ns = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, rs = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, is = { class: "tpl:flex tpl:gap-1" }, as = ["title"], os = ["title"], ss = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, cs = /* @__PURE__ */ V(/* @__PURE__ */ A({
|
|
2548
2573
|
__name: "Toolbar",
|
|
2549
2574
|
props: { block: {} },
|
|
2550
2575
|
emits: [
|
|
@@ -2553,47 +2578,47 @@ var Ti = {
|
|
|
2553
2578
|
"duplicate"
|
|
2554
2579
|
],
|
|
2555
2580
|
setup(e, { emit: t }) {
|
|
2556
|
-
let n = f(() => import("./CountdownToolbar-
|
|
2581
|
+
let n = f(() => import("./CountdownToolbar-DOrQCH57.js")), r = e, o = t, { t: s } = L(), l = ze(ae, "Toolbar"), u = c(z, []), d = h(() => r.block.type), p = h(() => We(r.block)), y = h(() => {
|
|
2557
2582
|
if (p.value) return u.find((e) => e.type === r.block.customType);
|
|
2558
|
-
}), x = h(() => p.value ? y.value?.name ?? r.block.customType :
|
|
2583
|
+
}), x = h(() => p.value ? y.value?.name ?? r.block.customType : me(d.value, s)), S = l.fonts;
|
|
2559
2584
|
function C(e) {
|
|
2560
2585
|
o("update", e);
|
|
2561
2586
|
}
|
|
2562
2587
|
return (t, r) => (a(), g("aside", {
|
|
2563
2588
|
"aria-label": v(s).landmarks.blockToolbar,
|
|
2564
2589
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2565
|
-
}, [w("div",
|
|
2590
|
+
}, [w("div", ts, [w("div", ns, [v(yt)[d.value] ? (a(), b(i(v(yt)[d.value]), {
|
|
2566
2591
|
key: 0,
|
|
2567
2592
|
size: 16,
|
|
2568
2593
|
"stroke-width": 1.5
|
|
2569
|
-
})) : p.value ? (a(), b(v(
|
|
2594
|
+
})) : p.value ? (a(), b(v(_e), {
|
|
2570
2595
|
key: 1,
|
|
2571
2596
|
size: 16,
|
|
2572
2597
|
"stroke-width": 1.5
|
|
2573
|
-
})) : _("", !0), w("h3",
|
|
2598
|
+
})) : _("", !0), w("h3", rs, m(x.value), 1)]), w("div", is, [w("button", {
|
|
2574
2599
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
|
|
2575
2600
|
title: v(s).toolbar.duplicate,
|
|
2576
2601
|
onClick: r[0] ||= (e) => o("duplicate")
|
|
2577
|
-
}, [j(v(
|
|
2602
|
+
}, [j(v(Ge), {
|
|
2578
2603
|
size: 14,
|
|
2579
2604
|
"stroke-width": 2
|
|
2580
|
-
})], 8,
|
|
2605
|
+
})], 8, as), w("button", {
|
|
2581
2606
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
2582
2607
|
title: v(s).toolbar.delete,
|
|
2583
2608
|
onClick: r[1] ||= (e) => o("delete")
|
|
2584
|
-
}, [j(v(
|
|
2609
|
+
}, [j(v(Oe), {
|
|
2585
2610
|
size: 14,
|
|
2586
2611
|
"stroke-width": 2
|
|
2587
|
-
})], 8,
|
|
2612
|
+
})], 8, os)])]), w("div", ss, [p.value ? (a(), b(Ni, {
|
|
2588
2613
|
key: 0,
|
|
2589
2614
|
block: e.block,
|
|
2590
2615
|
onUpdateFieldValues: r[2] ||= (e) => o("update", { fieldValues: e }),
|
|
2591
2616
|
onUpdateDataSourceFetched: r[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
2592
|
-
}, null, 8, ["block"])) : d.value === "section" ? (a(), b(
|
|
2617
|
+
}, null, 8, ["block"])) : d.value === "section" ? (a(), b(Sa, {
|
|
2593
2618
|
key: 1,
|
|
2594
2619
|
block: e.block,
|
|
2595
2620
|
onUpdate: C
|
|
2596
|
-
}, null, 8, ["block"])) : d.value === "title" ? (a(), b(
|
|
2621
|
+
}, null, 8, ["block"])) : d.value === "title" ? (a(), b(zo, {
|
|
2597
2622
|
key: 2,
|
|
2598
2623
|
block: e.block,
|
|
2599
2624
|
"font-families": v(S),
|
|
@@ -2602,7 +2627,7 @@ var Ti = {
|
|
|
2602
2627
|
key: 4,
|
|
2603
2628
|
block: e.block,
|
|
2604
2629
|
onUpdate: C
|
|
2605
|
-
}, null, 8, ["block"])) : d.value === "video" ? (a(), b(
|
|
2630
|
+
}, null, 8, ["block"])) : d.value === "video" ? (a(), b($o, {
|
|
2606
2631
|
key: 5,
|
|
2607
2632
|
block: e.block,
|
|
2608
2633
|
onUpdate: C
|
|
@@ -2615,7 +2640,7 @@ var Ti = {
|
|
|
2615
2640
|
key: 7,
|
|
2616
2641
|
block: e.block,
|
|
2617
2642
|
onUpdate: C
|
|
2618
|
-
}, null, 8, ["block"])) : d.value === "social" ? (a(), b(
|
|
2643
|
+
}, null, 8, ["block"])) : d.value === "social" ? (a(), b(Va, {
|
|
2619
2644
|
key: 8,
|
|
2620
2645
|
block: e.block,
|
|
2621
2646
|
onUpdate: C
|
|
@@ -2624,12 +2649,12 @@ var Ti = {
|
|
|
2624
2649
|
block: e.block,
|
|
2625
2650
|
"font-families": v(S),
|
|
2626
2651
|
onUpdate: C
|
|
2627
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (a(), b(
|
|
2652
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (a(), b(Eo, {
|
|
2628
2653
|
key: 10,
|
|
2629
2654
|
block: e.block,
|
|
2630
2655
|
"font-families": v(S),
|
|
2631
2656
|
onUpdate: C
|
|
2632
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (a(), b(
|
|
2657
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (a(), b(Ka, {
|
|
2633
2658
|
key: 11,
|
|
2634
2659
|
block: e.block,
|
|
2635
2660
|
onUpdate: C
|
|
@@ -2646,48 +2671,48 @@ var Ti = {
|
|
|
2646
2671
|
block: e.block,
|
|
2647
2672
|
"is-first-section": d.value === "paragraph",
|
|
2648
2673
|
onUpdate: C
|
|
2649
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
2674
|
+
}, null, 8, ["block", "is-first-section"])])], 8, es));
|
|
2650
2675
|
}
|
|
2651
|
-
}), [["__scopeId", "data-v-2ac88283"]]),
|
|
2676
|
+
}), [["__scopeId", "data-v-2ac88283"]]), ls = ["aria-label"], us = {
|
|
2652
2677
|
role: "tablist",
|
|
2653
2678
|
class: "tpl:relative tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-active)] tpl:p-1.5"
|
|
2654
|
-
},
|
|
2679
|
+
}, ds = [
|
|
2655
2680
|
"aria-selected",
|
|
2656
2681
|
"aria-label",
|
|
2657
2682
|
"title"
|
|
2658
|
-
],
|
|
2683
|
+
], fs = { key: 0 }, ps = [
|
|
2659
2684
|
"aria-selected",
|
|
2660
2685
|
"aria-label",
|
|
2661
2686
|
"title"
|
|
2662
|
-
],
|
|
2687
|
+
], ms = { key: 0 }, hs = [
|
|
2663
2688
|
"aria-selected",
|
|
2664
2689
|
"aria-label",
|
|
2665
2690
|
"title"
|
|
2666
|
-
],
|
|
2691
|
+
], gs = { key: 0 }, _s = {
|
|
2667
2692
|
key: 1,
|
|
2668
2693
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
2669
|
-
},
|
|
2694
|
+
}, vs = {
|
|
2670
2695
|
key: 0,
|
|
2671
2696
|
id: "tpl-tabpanel-content",
|
|
2672
2697
|
role: "tabpanel",
|
|
2673
2698
|
"aria-labelledby": "tpl-tab-content",
|
|
2674
2699
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2675
|
-
},
|
|
2700
|
+
}, ys = {
|
|
2676
2701
|
key: 1,
|
|
2677
2702
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:px-6 tpl:py-10 tpl:text-center tpl:text-[var(--tpl-text-muted)]"
|
|
2678
|
-
},
|
|
2703
|
+
}, bs = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, xs = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ss = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Cs = {
|
|
2679
2704
|
key: 1,
|
|
2680
2705
|
id: "tpl-tabpanel-settings",
|
|
2681
2706
|
role: "tabpanel",
|
|
2682
2707
|
"aria-labelledby": "tpl-tab-settings",
|
|
2683
2708
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2684
|
-
},
|
|
2709
|
+
}, ws = {
|
|
2685
2710
|
key: 2,
|
|
2686
|
-
id: "tpl-tabpanel-
|
|
2711
|
+
id: "tpl-tabpanel-issues",
|
|
2687
2712
|
role: "tabpanel",
|
|
2688
|
-
"aria-labelledby": "tpl-tab-
|
|
2713
|
+
"aria-labelledby": "tpl-tab-issues",
|
|
2689
2714
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2690
|
-
},
|
|
2715
|
+
}, Ts = /* @__PURE__ */ A({
|
|
2691
2716
|
__name: "RightSidebar",
|
|
2692
2717
|
props: {
|
|
2693
2718
|
selectedBlock: {},
|
|
@@ -2701,7 +2726,7 @@ var Ti = {
|
|
|
2701
2726
|
"update-settings"
|
|
2702
2727
|
],
|
|
2703
2728
|
setup(e, { emit: t }) {
|
|
2704
|
-
let n = f(() => import("./
|
|
2729
|
+
let n = f(() => import("./IssuesPanel-C54PhBgc.js")), r = e, i = t, { t: o } = L(), s = d("content"), l = c(P, null), u = h(() => l !== null), p = h(() => l?.issues.value.length ?? 0);
|
|
2705
2730
|
function y(e) {
|
|
2706
2731
|
return s.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
|
|
2707
2732
|
}
|
|
@@ -2711,13 +2736,13 @@ var Ti = {
|
|
|
2711
2736
|
boxShadow: "var(--tpl-shadow-md)"
|
|
2712
2737
|
} : { backgroundColor: "transparent" };
|
|
2713
2738
|
}
|
|
2714
|
-
return
|
|
2739
|
+
return M(() => r.selectedBlock, (e) => {
|
|
2715
2740
|
e && (s.value = "content");
|
|
2716
2741
|
}), (t, r) => (a(), g("aside", {
|
|
2717
2742
|
"aria-label": v(o).landmarks.rightSidebar,
|
|
2718
2743
|
class: C(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
2719
2744
|
}, [
|
|
2720
|
-
w("div",
|
|
2745
|
+
w("div", us, [
|
|
2721
2746
|
w("button", {
|
|
2722
2747
|
id: "tpl-tab-content",
|
|
2723
2748
|
role: "tab",
|
|
@@ -2731,7 +2756,7 @@ var Ti = {
|
|
|
2731
2756
|
}, [j(v(ut), {
|
|
2732
2757
|
size: 14,
|
|
2733
2758
|
"stroke-width": 2
|
|
2734
|
-
}), s.value === "content" ? (a(), g("span",
|
|
2759
|
+
}), s.value === "content" ? (a(), g("span", fs, m(v(o).sidebar.content), 1)) : _("", !0)], 14, ds),
|
|
2735
2760
|
w("button", {
|
|
2736
2761
|
id: "tpl-tab-settings",
|
|
2737
2762
|
role: "tab",
|
|
@@ -2745,54 +2770,54 @@ var Ti = {
|
|
|
2745
2770
|
}, [j(v(gt), {
|
|
2746
2771
|
size: 14,
|
|
2747
2772
|
"stroke-width": 1.5
|
|
2748
|
-
}), s.value === "settings" ? (a(), g("span",
|
|
2773
|
+
}), s.value === "settings" ? (a(), g("span", ms, m(v(o).sidebar.settings), 1)) : _("", !0)], 14, ps),
|
|
2749
2774
|
u.value ? (a(), g("button", {
|
|
2750
2775
|
key: 0,
|
|
2751
|
-
id: "tpl-tab-
|
|
2776
|
+
id: "tpl-tab-issues",
|
|
2752
2777
|
role: "tab",
|
|
2753
|
-
"aria-selected": s.value === "
|
|
2754
|
-
"aria-controls": "tpl-tabpanel-
|
|
2755
|
-
"aria-label": v(o).
|
|
2756
|
-
title: v(o).
|
|
2757
|
-
class: C(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", y("
|
|
2758
|
-
style: E(x("
|
|
2759
|
-
onClick: r[2] ||= (e) => s.value = "
|
|
2778
|
+
"aria-selected": s.value === "issues",
|
|
2779
|
+
"aria-controls": "tpl-tabpanel-issues",
|
|
2780
|
+
"aria-label": v(o).issues.panelTabLabel,
|
|
2781
|
+
title: v(o).issues.panelTabLabel,
|
|
2782
|
+
class: C(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", y("issues")]),
|
|
2783
|
+
style: E(x("issues")),
|
|
2784
|
+
onClick: r[2] ||= (e) => s.value = "issues"
|
|
2760
2785
|
}, [
|
|
2761
|
-
j(v(
|
|
2786
|
+
j(v(Ze), {
|
|
2762
2787
|
size: 14,
|
|
2763
2788
|
"stroke-width": 1.5
|
|
2764
2789
|
}),
|
|
2765
|
-
s.value === "
|
|
2766
|
-
p.value > 0 ? (a(), g("span",
|
|
2767
|
-
], 14,
|
|
2790
|
+
s.value === "issues" ? (a(), g("span", gs, m(v(o).issues.panelTabLabel), 1)) : _("", !0),
|
|
2791
|
+
p.value > 0 ? (a(), g("span", _s, m(p.value), 1)) : _("", !0)
|
|
2792
|
+
], 14, hs)) : _("", !0)
|
|
2768
2793
|
]),
|
|
2769
|
-
s.value === "content" ? (a(), g("div",
|
|
2794
|
+
s.value === "content" ? (a(), g("div", vs, [e.selectedBlock ? (a(), b(cs, {
|
|
2770
2795
|
key: 0,
|
|
2771
2796
|
block: e.selectedBlock,
|
|
2772
2797
|
onUpdate: r[3] ||= (e) => i("update-block", e),
|
|
2773
2798
|
onDelete: r[4] ||= (e) => i("delete-block"),
|
|
2774
2799
|
onDuplicate: r[5] ||= (e) => i("duplicate-block")
|
|
2775
|
-
}, null, 8, ["block"])) : (a(), g("div",
|
|
2776
|
-
w("div",
|
|
2800
|
+
}, null, 8, ["block"])) : (a(), g("div", ys, [
|
|
2801
|
+
w("div", bs, [j(v(Qe), {
|
|
2777
2802
|
size: 40,
|
|
2778
2803
|
"stroke-width": 1.5
|
|
2779
2804
|
})]),
|
|
2780
|
-
w("h3",
|
|
2781
|
-
w("p",
|
|
2805
|
+
w("h3", xs, m(v(o).sidebar.noSelection), 1),
|
|
2806
|
+
w("p", Ss, m(v(o).sidebar.noSelectionHint), 1)
|
|
2782
2807
|
]))])) : _("", !0),
|
|
2783
|
-
s.value === "settings" ? (a(), g("div",
|
|
2808
|
+
s.value === "settings" ? (a(), g("div", Cs, [j(Fn, {
|
|
2784
2809
|
settings: e.settings,
|
|
2785
2810
|
onUpdate: r[6] ||= (e) => i("update-settings", e)
|
|
2786
2811
|
}, null, 8, ["settings"])])) : _("", !0),
|
|
2787
|
-
s.value === "
|
|
2788
|
-
], 10,
|
|
2812
|
+
s.value === "issues" && u.value ? (a(), g("div", ws, [j(v(n))])) : _("", !0)
|
|
2813
|
+
], 10, ls));
|
|
2789
2814
|
}
|
|
2790
|
-
}),
|
|
2815
|
+
}), Es = ["aria-label"], Ds = [
|
|
2791
2816
|
"aria-checked",
|
|
2792
2817
|
"aria-label",
|
|
2793
2818
|
"title",
|
|
2794
2819
|
"onClick"
|
|
2795
|
-
],
|
|
2820
|
+
], Os = /* @__PURE__ */ A({
|
|
2796
2821
|
__name: "ViewportToggle",
|
|
2797
2822
|
props: { viewport: {} },
|
|
2798
2823
|
emits: ["change"],
|
|
@@ -2841,7 +2866,7 @@ var Ti = {
|
|
|
2841
2866
|
}),
|
|
2842
2867
|
title: t.label,
|
|
2843
2868
|
onClick: (e) => r("change", t.value)
|
|
2844
|
-
}, [t.value === "desktop" ? (a(), b(v(
|
|
2869
|
+
}, [t.value === "desktop" ? (a(), b(v(rt), {
|
|
2845
2870
|
key: 0,
|
|
2846
2871
|
size: 18,
|
|
2847
2872
|
"stroke-width": 1.5
|
|
@@ -2853,13 +2878,13 @@ var Ti = {
|
|
|
2853
2878
|
key: 2,
|
|
2854
2879
|
size: 18,
|
|
2855
2880
|
"stroke-width": 1.5
|
|
2856
|
-
})), w("span", null, m(t.label), 1)], 12,
|
|
2881
|
+
})), w("span", null, m(t.label), 1)], 12, Ds))), 128))], 12, Es));
|
|
2857
2882
|
}
|
|
2858
|
-
}),
|
|
2883
|
+
}), ks = [
|
|
2859
2884
|
"aria-label",
|
|
2860
2885
|
"title",
|
|
2861
2886
|
"aria-pressed"
|
|
2862
|
-
],
|
|
2887
|
+
], As = /* @__PURE__ */ V(/* @__PURE__ */ A({
|
|
2863
2888
|
__name: "PreviewToggle",
|
|
2864
2889
|
props: { previewMode: { type: Boolean } },
|
|
2865
2890
|
emits: ["change"],
|
|
@@ -2882,23 +2907,23 @@ var Ti = {
|
|
|
2882
2907
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2883
2908
|
mode: "out-in"
|
|
2884
2909
|
}, {
|
|
2885
|
-
default: l(() => [e.previewMode ? (a(), b(v(
|
|
2910
|
+
default: l(() => [e.previewMode ? (a(), b(v(ge), {
|
|
2886
2911
|
key: "eye",
|
|
2887
2912
|
size: 18,
|
|
2888
2913
|
"stroke-width": 1.5
|
|
2889
|
-
})) : (a(), b(v(
|
|
2914
|
+
})) : (a(), b(v(ee), {
|
|
2890
2915
|
key: "eye-off",
|
|
2891
2916
|
size: 18,
|
|
2892
2917
|
"stroke-width": 1.5
|
|
2893
2918
|
}))]),
|
|
2894
2919
|
_: 1
|
|
2895
|
-
})], 12,
|
|
2920
|
+
})], 12, ks));
|
|
2896
2921
|
}
|
|
2897
|
-
}), [["__scopeId", "data-v-af87d02a"]]),
|
|
2922
|
+
}), [["__scopeId", "data-v-af87d02a"]]), js = [
|
|
2898
2923
|
"aria-label",
|
|
2899
2924
|
"title",
|
|
2900
2925
|
"aria-pressed"
|
|
2901
|
-
],
|
|
2926
|
+
], Ms = /* @__PURE__ */ V(/* @__PURE__ */ A({
|
|
2902
2927
|
__name: "DarkModeToggle",
|
|
2903
2928
|
props: { darkMode: { type: Boolean } },
|
|
2904
2929
|
emits: ["change"],
|
|
@@ -2921,7 +2946,7 @@ var Ti = {
|
|
|
2921
2946
|
"leave-to-class": "tpl-icon-leave-to",
|
|
2922
2947
|
mode: "out-in"
|
|
2923
2948
|
}, {
|
|
2924
|
-
default: l(() => [e.darkMode ? (a(), b(v(
|
|
2949
|
+
default: l(() => [e.darkMode ? (a(), b(v(nt), {
|
|
2925
2950
|
key: "moon",
|
|
2926
2951
|
size: 18,
|
|
2927
2952
|
"stroke-width": 1.5
|
|
@@ -2931,27 +2956,27 @@ var Ti = {
|
|
|
2931
2956
|
"stroke-width": 1.5
|
|
2932
2957
|
}))]),
|
|
2933
2958
|
_: 1
|
|
2934
|
-
})], 12,
|
|
2959
|
+
})], 12, js));
|
|
2935
2960
|
}
|
|
2936
|
-
}), [["__scopeId", "data-v-f8694f76"]]),
|
|
2961
|
+
}), [["__scopeId", "data-v-f8694f76"]]), Ns = {
|
|
2937
2962
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
2938
2963
|
style: {
|
|
2939
2964
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
2940
2965
|
"backdrop-filter": "blur(8px)",
|
|
2941
2966
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
2942
2967
|
}
|
|
2943
|
-
},
|
|
2968
|
+
}, Ps = {
|
|
2944
2969
|
href: "https://github.com/templatical/sdk",
|
|
2945
2970
|
target: "_blank",
|
|
2946
2971
|
rel: "noopener noreferrer",
|
|
2947
2972
|
class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
|
|
2948
2973
|
style: { "text-decoration": "none" }
|
|
2949
|
-
},
|
|
2974
|
+
}, Fs = /* @__PURE__ */ A({
|
|
2950
2975
|
__name: "EditorFooter",
|
|
2951
2976
|
props: { positionClass: {} },
|
|
2952
2977
|
setup(e) {
|
|
2953
2978
|
let { t } = L();
|
|
2954
|
-
return (n, r) => (a(), g("footer", { class: C(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [w("div",
|
|
2979
|
+
return (n, r) => (a(), g("footer", { class: C(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [w("div", Ns, [
|
|
2955
2980
|
w("span", null, m(v(t).footer.poweredBy), 1),
|
|
2956
2981
|
r[0] ||= w("a", {
|
|
2957
2982
|
href: "https://templatical.com",
|
|
@@ -2966,11 +2991,11 @@ var Ti = {
|
|
|
2966
2991
|
alt: ""
|
|
2967
2992
|
}), k(" Templatical ")], -1),
|
|
2968
2993
|
r[1] ||= w("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
|
|
2969
|
-
w("a",
|
|
2994
|
+
w("a", Ps, m(v(t).footer.openSource), 1)
|
|
2970
2995
|
])], 2));
|
|
2971
2996
|
}
|
|
2972
2997
|
});
|
|
2973
2998
|
//#endregion
|
|
2974
|
-
export {
|
|
2999
|
+
export { Ts as a, Et as c, Os as i, Ms as n, Gt as o, As as r, It as s, Fs as t };
|
|
2975
3000
|
|
|
2976
|
-
//# sourceMappingURL=styles-
|
|
3001
|
+
//# sourceMappingURL=styles-8qDRQ-6n.js.map
|