@templatical/editor 0.22.0 → 0.23.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-K_AehWc-.js → AiChatSidebar-Bru6-ziQ.js} +1 -1
- package/dist/{SavedBlockPreviewCanvas-DXkGDYph.js → BlockPreviewCanvas-MD9BGuXV.js} +35 -29
- package/dist/{CloudEditor-BVH7D1Ka.js → CloudEditor-iK4vkpNm.js} +274 -278
- package/dist/{DesignReferenceSidebar-DNmK3dxp.js → DesignReferenceSidebar-BxPo0zyx.js} +1 -1
- package/dist/{SaveBlockDialog-B_5KBaXW.js → SaveBlockDialog-CFAJHP3v.js} +98 -97
- package/dist/{SavedBlocksBrowserModal-DoJBoYPk.js → SavedBlocksBrowserModal-C_-Xcm0Q.js} +1 -1
- package/dist/{SavedBlocksPanels-3Af5dMaf.js → SavedBlocksPanels-CRf7zzFn.js} +1 -1
- package/dist/TestEmailModal-D90-3Yex.js +162 -0
- package/dist/TestEmailPanel-B0u_Yd3X.js +33 -0
- package/dist/ViewportToggle-BjmbNoao.js +97 -0
- package/dist/bundle-stats.json +7 -7
- package/dist/{cdn/chunks/ca-BBgad6y5.js → ca-D47BxSGu.js} +14 -2
- package/dist/cdn/chunks/{AiChatSidebar-A1CuWGY0.js → AiChatSidebar-BMnsF8G6.js} +2 -2
- package/dist/cdn/chunks/{AiChatSidebar-A1CuWGY0.js.map → AiChatSidebar-BMnsF8G6.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlockPreviewCanvas-DgLOKtR_.js → BlockPreviewCanvas-eASrdFSN.js} +36 -30
- package/dist/cdn/chunks/BlockPreviewCanvas-eASrdFSN.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-FCS53UcZ.js → CloudEditor-S8zLHtKb.js} +253 -257
- package/dist/cdn/chunks/CloudEditor-S8zLHtKb.js.map +1 -0
- package/dist/cdn/chunks/{DesignReferenceSidebar-Dre99DTH.js → DesignReferenceSidebar-CM-k15pd.js} +2 -2
- package/dist/cdn/chunks/{DesignReferenceSidebar-Dre99DTH.js.map → DesignReferenceSidebar-CM-k15pd.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CSeD3gn9.js → SaveBlockDialog-Bi_Z3kuA.js} +100 -99
- package/dist/cdn/chunks/SaveBlockDialog-Bi_Z3kuA.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B2x5WRPN.js → SavedBlocksBrowserModal-CesYxFsH.js} +2 -2
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CesYxFsH.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-BzMTZxf2.js → SavedBlocksPanels-BsSpJwrW.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-BzMTZxf2.js.map → SavedBlocksPanels-BsSpJwrW.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js +162 -0
- package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js.map +1 -0
- package/dist/cdn/chunks/TestEmailPanel-048m0kxX.js +35 -0
- package/dist/cdn/chunks/TestEmailPanel-048m0kxX.js.map +1 -0
- package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js +66 -0
- package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js.map +1 -0
- package/dist/{ca-BBgad6y5.js → cdn/chunks/ca-D47BxSGu.js} +16 -0
- package/dist/cdn/chunks/{ca-BBgad6y5.js.map → ca-D47BxSGu.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-BJlbXGTJ.js → cloud-F-aVi9hj.js} +45 -41
- package/dist/cdn/chunks/cloud-F-aVi9hj.js.map +1 -0
- package/dist/{de-D7WbpFBR.js → cdn/chunks/de-CnnxBwh7.js} +16 -0
- package/dist/cdn/chunks/{de-D7WbpFBR.js.map → de-CnnxBwh7.js.map} +1 -1
- package/dist/{de-Bw6fB5JU.js → cdn/chunks/de-uVoSP1xF.js} +2 -9
- package/dist/cdn/chunks/de-uVoSP1xF.js.map +1 -0
- package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js +8 -0
- package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js.map +1 -0
- package/dist/cdn/chunks/{en-BrZ0uGK2.js → en-5gW-bYy2.js} +15 -1
- package/dist/cdn/chunks/{en-BrZ0uGK2.js.map → en-5gW-bYy2.js.map} +1 -1
- package/dist/{en-DAdHJz7h.js → cdn/chunks/en-CjhsJxb-.js} +2 -9
- package/dist/cdn/chunks/en-CjhsJxb-.js.map +1 -0
- package/dist/{es-tLSLysPs.js → cdn/chunks/es-sQ9SdI0l.js} +16 -0
- package/dist/cdn/chunks/{es-tLSLysPs.js.map → es-sQ9SdI0l.js.map} +1 -1
- package/dist/cdn/chunks/{fr-BMWOPztQ.js → fr-DBZ5w21C.js} +15 -1
- package/dist/cdn/chunks/{fr-BMWOPztQ.js.map → fr-DBZ5w21C.js.map} +1 -1
- package/dist/{nl-Dhctu7JL.js → cdn/chunks/nl-DOL7Fnfo.js} +16 -0
- package/dist/cdn/chunks/{nl-Dhctu7JL.js.map → nl-DOL7Fnfo.js.map} +1 -1
- package/dist/{pt-BR-w2sGzHNX.js → cdn/chunks/pt-BR-CTzHTqJD.js} +2 -9
- package/dist/cdn/chunks/pt-BR-CTzHTqJD.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-BWFokdTU.js → pt-BR-DRCdHX1d.js} +15 -1
- package/dist/cdn/chunks/{pt-BR-BWFokdTU.js.map → pt-BR-DRCdHX1d.js.map} +1 -1
- package/dist/cdn/chunks/{src-ByWL5K1f.js → src-CzoMNRq4.js} +17 -17
- package/dist/cdn/chunks/{src-ByWL5K1f.js.map → src-CzoMNRq4.js.map} +1 -1
- package/dist/cdn/chunks/{src-MA8DWI8O.js → src-SluTVSz_.js} +2 -2
- package/dist/cdn/chunks/{src-MA8DWI8O.js.map → src-SluTVSz_.js.map} +1 -1
- package/dist/cdn/chunks/{styles-BkXzQ4-n.js → styles-BbfU2w9R.js} +616 -584
- package/dist/cdn/chunks/styles-BbfU2w9R.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +164 -147
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-Du7mnkz2.js → cloud-CeZPgo1V.js} +41 -39
- package/dist/{cdn/chunks/de-D7WbpFBR.js → de-CnnxBwh7.js} +14 -2
- package/dist/{cdn/chunks/de-Bw6fB5JU.js → de-uVoSP1xF.js} +0 -11
- package/dist/emailFrameWidth-BmFCN2dp.js +6 -0
- package/dist/{en-BrZ0uGK2.js → en-5gW-bYy2.js} +14 -0
- package/dist/{cdn/chunks/en-DAdHJz7h.js → en-CjhsJxb-.js} +0 -11
- package/dist/{cdn/chunks/es-tLSLysPs.js → es-sQ9SdI0l.js} +14 -2
- package/dist/{fr-BMWOPztQ.js → fr-DBZ5w21C.js} +14 -0
- package/dist/index.d.ts +74 -0
- package/dist/{cdn/chunks/nl-Dhctu7JL.js → nl-DOL7Fnfo.js} +14 -2
- package/dist/{cdn/chunks/pt-BR-w2sGzHNX.js → pt-BR-CTzHTqJD.js} +0 -11
- package/dist/{pt-BR-BWFokdTU.js → pt-BR-DRCdHX1d.js} +14 -0
- package/dist/style.css +1 -1
- package/dist/{styles-AxBd7CgB.js → styles-BWTIgN5L.js} +670 -671
- package/dist/templatical-editor.js +127 -109
- package/package.json +7 -7
- package/dist/TestEmailModal-DComAFpR.js +0 -95
- package/dist/cdn/chunks/CloudEditor-FCS53UcZ.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-CSeD3gn9.js.map +0 -1
- package/dist/cdn/chunks/SavedBlockPreviewCanvas-DgLOKtR_.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B2x5WRPN.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-DT37w7i_.js +0 -96
- package/dist/cdn/chunks/TestEmailModal-DT37w7i_.js.map +0 -1
- package/dist/cdn/chunks/cloud-BJlbXGTJ.js.map +0 -1
- package/dist/cdn/chunks/de-Bw6fB5JU.js.map +0 -1
- package/dist/cdn/chunks/en-DAdHJz7h.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-w2sGzHNX.js.map +0 -1
- package/dist/cdn/chunks/styles-BkXzQ4-n.js.map +0 -1
|
@@ -17,25 +17,27 @@ import { t as gt } from "./image-up-CQdtq8ge.js";
|
|
|
17
17
|
import { t as _t } from "./info-BUJBXoE6.js";
|
|
18
18
|
import { t as vt } from "./list-checks-BGHaCSD5.js";
|
|
19
19
|
import { t as yt } from "./loader-circle-C-Z6kgI6.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { i as
|
|
32
|
-
import {
|
|
33
|
-
|
|
20
|
+
import { n as bt, r as xt } from "./ViewportToggle-BjmbNoao.js";
|
|
21
|
+
import { t as St } from "./sparkles-DVlm1Ipp.js";
|
|
22
|
+
import { n as Ct, r as wt, t as Tt } from "./text-align-start-Vay3Kvo2.js";
|
|
23
|
+
import { t as Et } from "./trash-2-DE8CmxAG.js";
|
|
24
|
+
import { t as Dt } from "./x-CkD6A1iB.js";
|
|
25
|
+
import { t as Ot } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
26
|
+
import { t as kt } from "./useCloudI18n-BmiygEM4.js";
|
|
27
|
+
import { t as At } from "./useMergeTag-BTdDq5DC.js";
|
|
28
|
+
import { t as jt } from "./useAliveFlag-C43EhZFY.js";
|
|
29
|
+
import { n as Mt, t as Nt } from "./emailFrameWidth-BmFCN2dp.js";
|
|
30
|
+
import { t as Pt } from "./readableTextColor-f8Kykfnh.js";
|
|
31
|
+
import { _ as Ft, f as G, g as It, h as K, i as Lt, l as Rt, m as q, n as zt, p as J, t as Y, u as Bt } from "./ColorPicker-s9GHXjZs.js";
|
|
32
|
+
import { n as Vt, r as Ht } from "./MergeTagSuggestion-D9eCryMC.js";
|
|
33
|
+
import { i as X, n as Z, r as Ut, t as Wt } from "./NumberWithSuffix-CCPN_oCh.js";
|
|
34
|
+
import { t as Gt } from "./TplModal-CykwWFhF.js";
|
|
35
|
+
var Kt = W("circle", [["circle", {
|
|
34
36
|
cx: "12",
|
|
35
37
|
cy: "12",
|
|
36
38
|
r: "10",
|
|
37
39
|
key: "1mglay"
|
|
38
|
-
}]]),
|
|
40
|
+
}]]), qt = W("globe", [
|
|
39
41
|
["circle", {
|
|
40
42
|
cx: "12",
|
|
41
43
|
cy: "12",
|
|
@@ -50,7 +52,7 @@ var Ht = W("circle", [["circle", {
|
|
|
50
52
|
d: "M2 12h20",
|
|
51
53
|
key: "9i4pu4"
|
|
52
54
|
}]
|
|
53
|
-
]),
|
|
55
|
+
]), Jt = W("layout-template", [
|
|
54
56
|
["rect", {
|
|
55
57
|
width: "18",
|
|
56
58
|
height: "7",
|
|
@@ -75,7 +77,7 @@ var Ht = W("circle", [["circle", {
|
|
|
75
77
|
rx: "1",
|
|
76
78
|
key: "q5h2i8"
|
|
77
79
|
}]
|
|
78
|
-
]),
|
|
80
|
+
]), Yt = W("lock-open", [["rect", {
|
|
79
81
|
width: "18",
|
|
80
82
|
height: "11",
|
|
81
83
|
x: "3",
|
|
@@ -86,7 +88,7 @@ var Ht = W("circle", [["circle", {
|
|
|
86
88
|
}], ["path", {
|
|
87
89
|
d: "M7 11V7a5 5 0 0 1 9.9-1",
|
|
88
90
|
key: "1mm8w8"
|
|
89
|
-
}]]),
|
|
91
|
+
}]]), Xt = W("lock", [["rect", {
|
|
90
92
|
width: "18",
|
|
91
93
|
height: "11",
|
|
92
94
|
x: "3",
|
|
@@ -97,33 +99,10 @@ var Ht = W("circle", [["circle", {
|
|
|
97
99
|
}], ["path", {
|
|
98
100
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
99
101
|
key: "fwvmzm"
|
|
100
|
-
}]]),
|
|
101
|
-
["rect", {
|
|
102
|
-
width: "20",
|
|
103
|
-
height: "14",
|
|
104
|
-
x: "2",
|
|
105
|
-
y: "3",
|
|
106
|
-
rx: "2",
|
|
107
|
-
key: "48i651"
|
|
108
|
-
}],
|
|
109
|
-
["line", {
|
|
110
|
-
x1: "8",
|
|
111
|
-
x2: "16",
|
|
112
|
-
y1: "21",
|
|
113
|
-
y2: "21",
|
|
114
|
-
key: "1svkeh"
|
|
115
|
-
}],
|
|
116
|
-
["line", {
|
|
117
|
-
x1: "12",
|
|
118
|
-
x2: "12",
|
|
119
|
-
y1: "17",
|
|
120
|
-
y2: "21",
|
|
121
|
-
key: "vw1qmm"
|
|
122
|
-
}]
|
|
123
|
-
]), Jt = W("moon", [["path", {
|
|
102
|
+
}]]), Zt = W("moon", [["path", {
|
|
124
103
|
d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
|
|
125
104
|
key: "kfwtm"
|
|
126
|
-
}]]),
|
|
105
|
+
}]]), Qt = W("panel-top", [["rect", {
|
|
127
106
|
width: "18",
|
|
128
107
|
height: "18",
|
|
129
108
|
x: "3",
|
|
@@ -139,13 +118,13 @@ var Ht = W("circle", [["circle", {
|
|
|
139
118
|
}], ["path", {
|
|
140
119
|
d: "M12 5v14",
|
|
141
120
|
key: "s699le"
|
|
142
|
-
}]]),
|
|
121
|
+
}]]), $t = W("rotate-ccw", [["path", {
|
|
143
122
|
d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
|
|
144
123
|
key: "1357e3"
|
|
145
124
|
}], ["path", {
|
|
146
125
|
d: "M3 3v5h5",
|
|
147
126
|
key: "1xhq8a"
|
|
148
|
-
}]]),
|
|
127
|
+
}]]), en = W("settings", [["path", {
|
|
149
128
|
d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
|
|
150
129
|
key: "1i5ecw"
|
|
151
130
|
}], ["circle", {
|
|
@@ -153,18 +132,7 @@ var Ht = W("circle", [["circle", {
|
|
|
153
132
|
cy: "12",
|
|
154
133
|
r: "3",
|
|
155
134
|
key: "1v7zrd"
|
|
156
|
-
}]]),
|
|
157
|
-
width: "14",
|
|
158
|
-
height: "20",
|
|
159
|
-
x: "5",
|
|
160
|
-
y: "2",
|
|
161
|
-
rx: "2",
|
|
162
|
-
ry: "2",
|
|
163
|
-
key: "1yt0o3"
|
|
164
|
-
}], ["path", {
|
|
165
|
-
d: "M12 18h.01",
|
|
166
|
-
key: "mhygvu"
|
|
167
|
-
}]]), $t = W("square-plus", [
|
|
135
|
+
}]]), tn = W("square-plus", [
|
|
168
136
|
["rect", {
|
|
169
137
|
width: "18",
|
|
170
138
|
height: "18",
|
|
@@ -181,14 +149,14 @@ var Ht = W("circle", [["circle", {
|
|
|
181
149
|
d: "M12 8v8",
|
|
182
150
|
key: "napkw2"
|
|
183
151
|
}]
|
|
184
|
-
]),
|
|
152
|
+
]), nn = W("square", [["rect", {
|
|
185
153
|
width: "18",
|
|
186
154
|
height: "18",
|
|
187
155
|
x: "3",
|
|
188
156
|
y: "3",
|
|
189
157
|
rx: "2",
|
|
190
158
|
key: "afitv7"
|
|
191
|
-
}]]),
|
|
159
|
+
}]]), rn = W("sun", [
|
|
192
160
|
["circle", {
|
|
193
161
|
cx: "12",
|
|
194
162
|
cy: "12",
|
|
@@ -230,7 +198,7 @@ var Ht = W("circle", [["circle", {
|
|
|
230
198
|
]);
|
|
231
199
|
//#endregion
|
|
232
200
|
//#region src/composables/useSavedBlocksFeature.ts
|
|
233
|
-
function
|
|
201
|
+
function an(e) {
|
|
234
202
|
let { provider: t, editor: n } = e, r = Ee({
|
|
235
203
|
provider: t,
|
|
236
204
|
onError: e.onError
|
|
@@ -311,8 +279,101 @@ function nn(e) {
|
|
|
311
279
|
};
|
|
312
280
|
}
|
|
313
281
|
//#endregion
|
|
282
|
+
//#region src/utils/toMjml.ts
|
|
283
|
+
async function on() {
|
|
284
|
+
try {
|
|
285
|
+
return await import("@templatical/renderer");
|
|
286
|
+
} catch {
|
|
287
|
+
return null;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
async function sn(e) {
|
|
291
|
+
let t = await on();
|
|
292
|
+
if (!t) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
|
|
293
|
+
let n = e.getCustomBlockStylesheet;
|
|
294
|
+
return t.renderToMjml(e.getContent(), {
|
|
295
|
+
renderCustomBlock: e.renderCustomBlock,
|
|
296
|
+
...n ? { getCustomBlockStylesheet: (e) => n(e) } : {}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region src/composables/useTestEmailFeature.ts
|
|
301
|
+
var cn = 1200;
|
|
302
|
+
function ln(e) {
|
|
303
|
+
let { provider: t } = e, n = d(!1), r = d(!1), i = d(!1), o = d(null), s = null, c = !1;
|
|
304
|
+
function l() {
|
|
305
|
+
s !== null && (clearTimeout(s), s = null);
|
|
306
|
+
}
|
|
307
|
+
a(l);
|
|
308
|
+
let u = w(() => t.allowedRecipients), f = w(() => {
|
|
309
|
+
let e = t.defaultRecipient;
|
|
310
|
+
if (e === void 0) return;
|
|
311
|
+
let n = u.value;
|
|
312
|
+
if (!(n && !n.includes(e))) return e;
|
|
313
|
+
}), p = w(() => u.value?.length === 0 ? !1 : e.isAvailable?.() ?? !0);
|
|
314
|
+
function m() {
|
|
315
|
+
p.value && (o.value = null, i.value = !1, l(), n.value = !0);
|
|
316
|
+
}
|
|
317
|
+
function h() {
|
|
318
|
+
l(), n.value = !1, i.value = !1;
|
|
319
|
+
}
|
|
320
|
+
async function g() {
|
|
321
|
+
if (!(!t.includeMjml || !e.renderMjml)) try {
|
|
322
|
+
return await e.renderMjml();
|
|
323
|
+
} catch (e) {
|
|
324
|
+
if (await on() === null) {
|
|
325
|
+
c || (c = !0, de.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
throw e;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
async function _(n) {
|
|
332
|
+
if (r.value) return;
|
|
333
|
+
let a = u.value;
|
|
334
|
+
if (a && !a.includes(n)) {
|
|
335
|
+
o.value = { kind: "recipientNotAllowed" };
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
r.value = !0, o.value = null;
|
|
339
|
+
try {
|
|
340
|
+
let r = await g();
|
|
341
|
+
await t.send({
|
|
342
|
+
recipient: n,
|
|
343
|
+
content: e.getContent(),
|
|
344
|
+
...r === void 0 ? {} : { mjml: r },
|
|
345
|
+
...a === void 0 ? {} : { allowedRecipients: a }
|
|
346
|
+
}), i.value = !0, s = setTimeout(h, cn);
|
|
347
|
+
} catch (t) {
|
|
348
|
+
let n = t instanceof Error ? t : Error(String(t));
|
|
349
|
+
o.value = {
|
|
350
|
+
kind: "provider",
|
|
351
|
+
message: n.message
|
|
352
|
+
}, e.onError?.(n);
|
|
353
|
+
} finally {
|
|
354
|
+
r.value = !1;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return {
|
|
358
|
+
isModalOpen: n,
|
|
359
|
+
open: m,
|
|
360
|
+
close: h,
|
|
361
|
+
isSending: r,
|
|
362
|
+
justSent: i,
|
|
363
|
+
error: o,
|
|
364
|
+
send: _,
|
|
365
|
+
allowedRecipients: u,
|
|
366
|
+
defaultRecipient: f,
|
|
367
|
+
isAvailable: p,
|
|
368
|
+
capability: {
|
|
369
|
+
open: m,
|
|
370
|
+
isAvailable: p
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
//#endregion
|
|
314
375
|
//#region src/utils/resolveLintOptions.ts
|
|
315
|
-
function
|
|
376
|
+
function un(e) {
|
|
316
377
|
return {
|
|
317
378
|
...e.lint,
|
|
318
379
|
locale: e.locale
|
|
@@ -320,19 +381,19 @@ function rn(e) {
|
|
|
320
381
|
}
|
|
321
382
|
//#endregion
|
|
322
383
|
//#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
323
|
-
var
|
|
384
|
+
var dn = ["aria-label"], fn = {
|
|
324
385
|
key: 0,
|
|
325
386
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
326
|
-
},
|
|
387
|
+
}, pn = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, mn = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, hn = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, gn = {
|
|
327
388
|
key: 0,
|
|
328
389
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
329
|
-
},
|
|
390
|
+
}, _n = {
|
|
330
391
|
key: 1,
|
|
331
392
|
class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
332
|
-
},
|
|
393
|
+
}, vn = { class: "tpl:relative" }, yn = {
|
|
333
394
|
class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
|
|
334
395
|
style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
|
|
335
|
-
},
|
|
396
|
+
}, bn = 96, xn = /*#__PURE__*/ Ot(/* @__PURE__ */ f({
|
|
336
397
|
__name: "Canvas",
|
|
337
398
|
props: {
|
|
338
399
|
viewport: {},
|
|
@@ -362,7 +423,7 @@ var an = ["aria-label"], on = {
|
|
|
362
423
|
table: De,
|
|
363
424
|
video: Ce,
|
|
364
425
|
custom: me
|
|
365
|
-
}, u = r, f = i, { t: h } = U(), { t: _ } =
|
|
426
|
+
}, u = r, f = i, { t: h } = U(), { t: _ } = kt(), v = ze(Ze, "Canvas"), S = D(Ye, null), E = D(tt, null), O = D(rt, {}), A = w(() => (O.plan?.hasFeature("ai_generation") ?? !1) && (O.ai?.isFeatureEnabled("chat") ?? !1)), j = w(() => (O.plan?.hasFeature("ai_generation") ?? !1) && (O.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = w({
|
|
366
427
|
get: () => u.content.blocks,
|
|
367
428
|
set: (e) => {
|
|
368
429
|
v.setContent({
|
|
@@ -370,12 +431,7 @@ var an = ["aria-label"], on = {
|
|
|
370
431
|
blocks: e
|
|
371
432
|
});
|
|
372
433
|
}
|
|
373
|
-
}), P = w(() =>
|
|
374
|
-
switch (u.viewport) {
|
|
375
|
-
case "mobile": return 375;
|
|
376
|
-
default: return u.content.settings.width;
|
|
377
|
-
}
|
|
378
|
-
}), F = w(() => P.value + mn * 2), I = w(() => ge(u.content.settings)), L = w(() => N.value.length === 0 && !u.previewMode), R = d(0), z = w(() => L.value && R.value > 0);
|
|
434
|
+
}), P = w(() => Mt(u.content.settings, u.viewport)), F = w(() => P.value + bn * 2), I = w(() => ge(u.content.settings)), L = w(() => N.value.length === 0 && !u.previewMode), R = d(0), z = w(() => L.value && R.value > 0);
|
|
379
435
|
function B() {
|
|
380
436
|
L.value && (R.value += 1);
|
|
381
437
|
}
|
|
@@ -418,7 +474,7 @@ var an = ["aria-label"], on = {
|
|
|
418
474
|
style: t({
|
|
419
475
|
width: `${F.value}px`,
|
|
420
476
|
boxShadow: r.darkMode ? "none" : "var(--tpl-shadow-xl)",
|
|
421
|
-
transition:
|
|
477
|
+
transition: x(Nt)
|
|
422
478
|
})
|
|
423
479
|
}, [p("div", {
|
|
424
480
|
class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
|
|
@@ -434,7 +490,7 @@ var an = ["aria-label"], on = {
|
|
|
434
490
|
class: "tpl-canvas-wrapper tpl:relative",
|
|
435
491
|
style: t({
|
|
436
492
|
width: `${P.value}px`,
|
|
437
|
-
transition:
|
|
493
|
+
transition: x(Nt)
|
|
438
494
|
})
|
|
439
495
|
}, [p("div", {
|
|
440
496
|
class: n(["tpl-canvas tpl:relative tpl:rounded-lg", {
|
|
@@ -466,25 +522,25 @@ var an = ["aria-label"], on = {
|
|
|
466
522
|
onDragleave: V,
|
|
467
523
|
onDrop: ee
|
|
468
524
|
}, {
|
|
469
|
-
default: l(() => [L.value ? (s(), m("div",
|
|
470
|
-
p("div",
|
|
525
|
+
default: l(() => [L.value ? (s(), m("div", fn, [
|
|
526
|
+
p("div", pn, [g(x(tn), {
|
|
471
527
|
size: 48,
|
|
472
528
|
"stroke-width": 1
|
|
473
529
|
})]),
|
|
474
|
-
p("p",
|
|
475
|
-
p("p",
|
|
476
|
-
A.value && x(_) ? (s(), m("p",
|
|
530
|
+
p("p", mn, c(x(h).canvas.noBlocks), 1),
|
|
531
|
+
p("p", hn, c(x(h).canvas.dragHint), 1),
|
|
532
|
+
A.value && x(_) ? (s(), m("p", gn, [
|
|
477
533
|
b(c(x(h).canvas.aiHintChat) + " ", 1),
|
|
478
534
|
p("button", {
|
|
479
535
|
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)]",
|
|
480
536
|
onClick: a[0] ||= (e) => f("open-ai-chat")
|
|
481
|
-
}, [g(x(
|
|
537
|
+
}, [g(x(St), {
|
|
482
538
|
size: 14,
|
|
483
539
|
"stroke-width": 2
|
|
484
540
|
}), b(" " + c(x(_).aiMenu.aiAssistant), 1)]),
|
|
485
541
|
b(" " + c(x(h).canvas.aiHintChatSuffix), 1)
|
|
486
542
|
])) : T("", !0),
|
|
487
|
-
j.value && x(_) ? (s(), m("p",
|
|
543
|
+
j.value && x(_) ? (s(), m("p", _n, [
|
|
488
544
|
b(c(x(h).canvas.aiHintDesign) + " ", 1),
|
|
489
545
|
p("button", {
|
|
490
546
|
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)]",
|
|
@@ -498,7 +554,7 @@ var an = ["aria-label"], on = {
|
|
|
498
554
|
])) : T("", !0), (s(!0), m(C, null, e(N.value, (e) => k((s(), m("div", {
|
|
499
555
|
key: e.id,
|
|
500
556
|
class: "tpl-block-item"
|
|
501
|
-
}, [p("div",
|
|
557
|
+
}, [p("div", vn, [H(e.id) ? (s(), m("div", {
|
|
502
558
|
key: 0,
|
|
503
559
|
class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
504
560
|
style: t({
|
|
@@ -509,9 +565,9 @@ var an = ["aria-label"], on = {
|
|
|
509
565
|
class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:flex tpl:-translate-x-1/2 tpl:-translate-y-full tpl:items-center tpl:gap-1 tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
|
|
510
566
|
style: t({
|
|
511
567
|
backgroundColor: H(e.id).color,
|
|
512
|
-
color: x(
|
|
568
|
+
color: x(Pt)(H(e.id).color)
|
|
513
569
|
})
|
|
514
|
-
}, [p("span",
|
|
570
|
+
}, [p("span", yn, c(H(e.id).name.charAt(0)), 1), b(" " + c(H(e.id).name), 1)], 4)], 4)) : T("", !0), g(ke, {
|
|
515
571
|
block: e,
|
|
516
572
|
"is-selected": !r.previewMode && !ae.value && r.selectedBlockId === e.id && !H(e.id),
|
|
517
573
|
picked: ie(e.id),
|
|
@@ -544,9 +600,9 @@ var an = ["aria-label"], on = {
|
|
|
544
600
|
"modelValue",
|
|
545
601
|
"disabled",
|
|
546
602
|
"class"
|
|
547
|
-
])], 6)], 12,
|
|
603
|
+
])], 6)], 12, dn)], 4));
|
|
548
604
|
}
|
|
549
|
-
}), [["__scopeId", "data-v-
|
|
605
|
+
}), [["__scopeId", "data-v-b0046c4c"]]), Sn = f({
|
|
550
606
|
name: "CustomBlockStylesheets",
|
|
551
607
|
setup() {
|
|
552
608
|
let e = D(nt, null);
|
|
@@ -559,7 +615,7 @@ var an = ["aria-label"], on = {
|
|
|
559
615
|
});
|
|
560
616
|
//#endregion
|
|
561
617
|
//#region src/utils/resolvePaletteBlocks.ts
|
|
562
|
-
function
|
|
618
|
+
function Cn(e, t) {
|
|
563
619
|
if (!t || t.length === 0) return {
|
|
564
620
|
items: e,
|
|
565
621
|
unknown: []
|
|
@@ -578,21 +634,21 @@ function _n(e, t) {
|
|
|
578
634
|
}
|
|
579
635
|
//#endregion
|
|
580
636
|
//#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
581
|
-
var
|
|
637
|
+
var wn = ["aria-label"], Tn = {
|
|
582
638
|
key: 0,
|
|
583
639
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
584
|
-
},
|
|
640
|
+
}, En = ["aria-label"], Dn = {
|
|
585
641
|
key: 0,
|
|
586
642
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
587
|
-
},
|
|
643
|
+
}, On = [
|
|
588
644
|
"data-palette-type",
|
|
589
645
|
"aria-label",
|
|
590
646
|
"onClick",
|
|
591
647
|
"onKeydown"
|
|
592
|
-
],
|
|
648
|
+
], kn = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:scale-105" }, An = {
|
|
593
649
|
key: 0,
|
|
594
650
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
595
|
-
},
|
|
651
|
+
}, jn = /* @__PURE__ */ f({
|
|
596
652
|
__name: "Sidebar",
|
|
597
653
|
setup(n) {
|
|
598
654
|
let { t: r, format: a } = U(), u = D(Xe, []), f = D(Ue, void 0), h = D(Je, void 0), _ = D(Ze, null), v = D(rt, {}), b = w(() => v.savedBlocks?.isAvailable.value === !0), S = d(!1), E = d(!1);
|
|
@@ -632,7 +688,7 @@ var vn = ["aria-label"], yn = {
|
|
|
632
688
|
label: e.name,
|
|
633
689
|
isCustom: !0,
|
|
634
690
|
icon: e.icon
|
|
635
|
-
}))), P = w(() => [...M.value, ...N.value]), F = w(() =>
|
|
691
|
+
}))), P = w(() => [...M.value, ...N.value]), F = w(() => Cn(P.value, f)), I = w(() => F.value.items), L = /* @__PURE__ */ new Set();
|
|
636
692
|
i(() => F.value.unknown, (e) => {
|
|
637
693
|
for (let t of e) L.has(t) || (L.add(t), de.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
|
|
638
694
|
}, { immediate: !0 });
|
|
@@ -665,7 +721,7 @@ var vn = ["aria-label"], yn = {
|
|
|
665
721
|
onMouseleave: O,
|
|
666
722
|
onFocusin: i[2] ||= (e) => S.value = !0,
|
|
667
723
|
onFocusout: i[3] ||= (e) => S.value = !1
|
|
668
|
-
}, [b.value ? (s(), m("div",
|
|
724
|
+
}, [b.value ? (s(), m("div", Tn, [p("button", {
|
|
669
725
|
type: "button",
|
|
670
726
|
"aria-label": x(r).sidebarNav.browseSavedBlocks,
|
|
671
727
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer 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] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)]",
|
|
@@ -675,7 +731,7 @@ var vn = ["aria-label"], yn = {
|
|
|
675
731
|
size: 20,
|
|
676
732
|
"stroke-width": 1.5,
|
|
677
733
|
class: "tpl:shrink-0"
|
|
678
|
-
}), S.value ? (s(), m("span",
|
|
734
|
+
}), S.value ? (s(), m("span", Dn, c(x(r).savedBlocks.title), 1)) : T("", !0)], 12, En)])) : T("", !0), g(x(he), {
|
|
679
735
|
"model-value": I.value,
|
|
680
736
|
group: {
|
|
681
737
|
name: "blocks",
|
|
@@ -699,7 +755,7 @@ var vn = ["aria-label"], yn = {
|
|
|
699
755
|
style: t({ justifyContent: S.value ? "flex-start" : "center" }),
|
|
700
756
|
onClick: (t) => z(e),
|
|
701
757
|
onKeydown: (t) => B(t, e)
|
|
702
|
-
}, [p("div",
|
|
758
|
+
}, [p("div", kn, [x(pt)[e.type] ? (s(), y(o(x(pt)[e.type]), {
|
|
703
759
|
key: 0,
|
|
704
760
|
size: 20,
|
|
705
761
|
"stroke-width": 1.5
|
|
@@ -707,14 +763,14 @@ var vn = ["aria-label"], yn = {
|
|
|
707
763
|
key: 1,
|
|
708
764
|
icon: e.icon,
|
|
709
765
|
size: 20
|
|
710
|
-
}, null, 8, ["icon"])) : T("", !0)]), S.value ? (s(), m("span",
|
|
766
|
+
}, null, 8, ["icon"])) : T("", !0)]), S.value ? (s(), m("span", An, c(e.label), 1)) : T("", !0)], 44, On))), 128))]),
|
|
711
767
|
_: 1
|
|
712
|
-
}, 8, ["model-value"])], 44,
|
|
768
|
+
}, 8, ["model-value"])], 44, wn));
|
|
713
769
|
}
|
|
714
770
|
});
|
|
715
771
|
//#endregion
|
|
716
772
|
//#region src/utils/mergeTagTrigger.ts
|
|
717
|
-
function
|
|
773
|
+
function Mn(e, t, n, r) {
|
|
718
774
|
if (!n) return null;
|
|
719
775
|
let i = e.slice(0, t), a = i.lastIndexOf(n);
|
|
720
776
|
if (a === -1) return null;
|
|
@@ -727,8 +783,8 @@ function En(e, t, n, r) {
|
|
|
727
783
|
}
|
|
728
784
|
//#endregion
|
|
729
785
|
//#region src/utils/textFieldCaret.ts
|
|
730
|
-
var
|
|
731
|
-
function
|
|
786
|
+
var Nn = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
|
|
787
|
+
function Pn(e, t, n) {
|
|
732
788
|
return {
|
|
733
789
|
left: e,
|
|
734
790
|
top: t,
|
|
@@ -741,7 +797,7 @@ function On(e, t, n) {
|
|
|
741
797
|
toJSON: () => ({})
|
|
742
798
|
};
|
|
743
799
|
}
|
|
744
|
-
function
|
|
800
|
+
function Fn(e, t) {
|
|
745
801
|
let n = e.ownerDocument, r = n.defaultView;
|
|
746
802
|
if (!r) return null;
|
|
747
803
|
let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
|
|
@@ -749,7 +805,7 @@ function kn(e, t) {
|
|
|
749
805
|
let s = o.style;
|
|
750
806
|
s.position = "absolute", s.visibility = "hidden", s.top = "0", s.left = "0", s.overflow = "hidden", s.whiteSpace = i ? "pre" : "pre-wrap", s.wordWrap = i ? "normal" : "break-word";
|
|
751
807
|
let c = s, l = a;
|
|
752
|
-
for (let e of
|
|
808
|
+
for (let e of Nn) c[e] = l[e];
|
|
753
809
|
i && (s.width = "auto", s.whiteSpace = "pre");
|
|
754
810
|
let u = e.value, d = u.slice(0, t);
|
|
755
811
|
i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
|
|
@@ -758,26 +814,26 @@ function kn(e, t) {
|
|
|
758
814
|
let p = f.offsetTop, m = f.offsetLeft;
|
|
759
815
|
n.body.removeChild(o);
|
|
760
816
|
let h = e.getBoundingClientRect(), g = parseFloat(a.borderTopWidth) || 0, _ = parseFloat(a.borderLeftWidth) || 0, v = parseFloat(a.lineHeight) || parseFloat(a.fontSize) || 0, y = h.left + m + _ - e.scrollLeft;
|
|
761
|
-
if (i) return
|
|
817
|
+
if (i) return Pn(y, h.top, h.bottom);
|
|
762
818
|
let b = h.top + p + g - e.scrollTop;
|
|
763
|
-
return
|
|
819
|
+
return Pn(y, b, b + v);
|
|
764
820
|
}
|
|
765
821
|
//#endregion
|
|
766
822
|
//#region src/composables/useMergeTagAutocomplete.ts
|
|
767
|
-
var
|
|
823
|
+
var In = /* @__PURE__ */ new Set([
|
|
768
824
|
"ArrowLeft",
|
|
769
825
|
"ArrowRight",
|
|
770
826
|
"Home",
|
|
771
827
|
"End"
|
|
772
828
|
]);
|
|
773
|
-
function
|
|
774
|
-
let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d = ne(s), f = R(s), p = c && d !== null && o.length > 0, m = D(Ke, null), h =
|
|
829
|
+
function Ln(e) {
|
|
830
|
+
let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d = ne(s), f = R(s), p = c && d !== null && o.length > 0, m = D(Ke, null), h = Vt((u(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", Le()), g = !1;
|
|
775
831
|
r() && a(() => {
|
|
776
832
|
g = !0, h.close();
|
|
777
833
|
});
|
|
778
834
|
function _(e) {
|
|
779
835
|
let t = e.value ?? "";
|
|
780
|
-
return
|
|
836
|
+
return Mn(t, e.selectionStart ?? t.length, d, f);
|
|
781
837
|
}
|
|
782
838
|
function v(e, r, a) {
|
|
783
839
|
let o = e.value ?? n(), s = o.slice(r.caret), c = f && s.startsWith(f) ? f.length : 0, u = o.slice(0, r.triggerStart), d = o.slice(r.caret + c), p = u + a.value + d, m = u.length + a.value.length;
|
|
@@ -799,7 +855,7 @@ function jn(e) {
|
|
|
799
855
|
h.close();
|
|
800
856
|
return;
|
|
801
857
|
}
|
|
802
|
-
let r =
|
|
858
|
+
let r = Ht(o, n.query), i = () => Fn(e, n.triggerStart), a = (t) => v(e, n, t);
|
|
803
859
|
h.isOpen() ? h.update({
|
|
804
860
|
items: r,
|
|
805
861
|
getRect: i,
|
|
@@ -812,7 +868,7 @@ function jn(e) {
|
|
|
812
868
|
});
|
|
813
869
|
}
|
|
814
870
|
function b(e) {
|
|
815
|
-
return h.isOpen() ? e.key === "Escape" ? (h.close(), !0) :
|
|
871
|
+
return h.isOpen() ? e.key === "Escape" ? (h.close(), !0) : In.has(e.key) ? (h.close(), !1) : h.handleKeyDown(e) : !1;
|
|
816
872
|
}
|
|
817
873
|
return {
|
|
818
874
|
available: p,
|
|
@@ -824,12 +880,12 @@ function jn(e) {
|
|
|
824
880
|
}
|
|
825
881
|
//#endregion
|
|
826
882
|
//#region src/composables/useMergeTagField.ts
|
|
827
|
-
function
|
|
828
|
-
let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p, autocomplete: m } =
|
|
883
|
+
function Rn(e) {
|
|
884
|
+
let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p, autocomplete: m } = At(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = je(), v = d(!1), y = !1, b = !1;
|
|
829
885
|
r() && a(() => {
|
|
830
886
|
b = !0;
|
|
831
887
|
});
|
|
832
|
-
let x =
|
|
888
|
+
let x = Ln({
|
|
833
889
|
elementRef: i,
|
|
834
890
|
modelValue: t,
|
|
835
891
|
emit: n,
|
|
@@ -951,10 +1007,10 @@ function Mn(e) {
|
|
|
951
1007
|
}
|
|
952
1008
|
//#endregion
|
|
953
1009
|
//#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
954
|
-
var
|
|
1010
|
+
var zn = ["aria-label", "onKeydown"], Bn = ["data-tooltip"], Vn = ["data-tooltip"], Hn = {
|
|
955
1011
|
key: 2,
|
|
956
1012
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
957
|
-
},
|
|
1013
|
+
}, Un = ["aria-label", "title"], Wn = /* @__PURE__ */ f({
|
|
958
1014
|
__name: "MergeTagSegments",
|
|
959
1015
|
props: {
|
|
960
1016
|
segments: {},
|
|
@@ -982,7 +1038,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
982
1038
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
983
1039
|
color: "var(--tpl-primary)"
|
|
984
1040
|
}
|
|
985
|
-
}, c(e.label), 9,
|
|
1041
|
+
}, c(e.label), 9, Bn)) : e.type === "logicMergeTag" ? (s(), m("span", {
|
|
986
1042
|
key: 1,
|
|
987
1043
|
class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
|
|
988
1044
|
"data-tooltip": e.value,
|
|
@@ -991,22 +1047,22 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
991
1047
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
992
1048
|
color: "var(--tpl-primary)"
|
|
993
1049
|
}
|
|
994
|
-
}, c(e.keyword), 9,
|
|
1050
|
+
}, c(e.keyword), 9, Vn)) : (s(), m("span", Hn, c(e.value), 1))], 64))), 128)), p("button", {
|
|
995
1051
|
type: "button",
|
|
996
1052
|
class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all hover:tpl:text-[var(--tpl-danger)] hover:tpl:opacity-100",
|
|
997
1053
|
"aria-label": x(a).mergeTag.remove,
|
|
998
1054
|
title: x(a).mergeTag.remove,
|
|
999
1055
|
onClick: l[0] ||= j((e) => i("clear"), ["stop"])
|
|
1000
|
-
}, [g(x(
|
|
1056
|
+
}, [g(x(Dt), {
|
|
1001
1057
|
size: 12,
|
|
1002
1058
|
"stroke-width": 2.5
|
|
1003
|
-
})], 8,
|
|
1059
|
+
})], 8, Un)], 42, zn));
|
|
1004
1060
|
}
|
|
1005
|
-
}),
|
|
1061
|
+
}), Gn = [
|
|
1006
1062
|
"aria-label",
|
|
1007
1063
|
"title",
|
|
1008
1064
|
"disabled"
|
|
1009
|
-
],
|
|
1065
|
+
], Kn = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", qn = /* @__PURE__ */ f({
|
|
1010
1066
|
__name: "MergeTagInsertButton",
|
|
1011
1067
|
props: { disabled: { type: Boolean } },
|
|
1012
1068
|
emits: ["insert"],
|
|
@@ -1014,7 +1070,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1014
1070
|
let { t } = U();
|
|
1015
1071
|
return (r, i) => (s(), m("button", {
|
|
1016
1072
|
type: "button",
|
|
1017
|
-
class: n([
|
|
1073
|
+
class: n([Kn, "tpl:mt-1.5"]),
|
|
1018
1074
|
"aria-label": x(t).mergeTag.insert,
|
|
1019
1075
|
title: x(t).mergeTag.insert,
|
|
1020
1076
|
disabled: e.disabled,
|
|
@@ -1023,13 +1079,13 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1023
1079
|
}, [g(x(st), {
|
|
1024
1080
|
size: 12,
|
|
1025
1081
|
"stroke-width": 2
|
|
1026
|
-
}), b(" " + c(x(t).mergeTag.insertShort), 1)], 42,
|
|
1082
|
+
}), b(" " + c(x(t).mergeTag.insertShort), 1)], 42, Gn));
|
|
1027
1083
|
}
|
|
1028
|
-
}),
|
|
1084
|
+
}), Jn = [
|
|
1029
1085
|
"aria-label",
|
|
1030
1086
|
"title",
|
|
1031
1087
|
"disabled"
|
|
1032
|
-
],
|
|
1088
|
+
], Yn = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", Xn = /* @__PURE__ */ f({
|
|
1033
1089
|
__name: "LogicTagInsertButton",
|
|
1034
1090
|
props: { disabled: { type: Boolean } },
|
|
1035
1091
|
emits: ["insert"],
|
|
@@ -1037,7 +1093,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1037
1093
|
let { t } = U();
|
|
1038
1094
|
return (r, i) => (s(), m("button", {
|
|
1039
1095
|
type: "button",
|
|
1040
|
-
class: n([
|
|
1096
|
+
class: n([Yn, "tpl:mt-1.5"]),
|
|
1041
1097
|
"aria-label": x(t).logicTag.insert,
|
|
1042
1098
|
title: x(t).logicTag.insert,
|
|
1043
1099
|
disabled: e.disabled,
|
|
@@ -1047,19 +1103,19 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1047
1103
|
}, [g(x(ot), {
|
|
1048
1104
|
size: 12,
|
|
1049
1105
|
"stroke-width": 2
|
|
1050
|
-
}), b(" " + c(x(t).logicTag.insertShort), 1)], 42,
|
|
1106
|
+
}), b(" " + c(x(t).logicTag.insertShort), 1)], 42, Jn));
|
|
1051
1107
|
}
|
|
1052
|
-
}),
|
|
1108
|
+
}), Zn = { key: 0 }, Qn = {
|
|
1053
1109
|
key: 0,
|
|
1054
1110
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1055
|
-
},
|
|
1111
|
+
}, $n = { key: 1 }, er = [
|
|
1056
1112
|
"value",
|
|
1057
1113
|
"placeholder",
|
|
1058
1114
|
"rows"
|
|
1059
|
-
],
|
|
1115
|
+
], tr = {
|
|
1060
1116
|
key: 0,
|
|
1061
1117
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1062
|
-
},
|
|
1118
|
+
}, nr = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", rr = "tpl:flex tpl:w-full tpl:min-h-20 tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", ir = /* @__PURE__ */ f({
|
|
1063
1119
|
__name: "MergeTagTextarea",
|
|
1064
1120
|
props: {
|
|
1065
1121
|
modelValue: {},
|
|
@@ -1068,32 +1124,32 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1068
1124
|
},
|
|
1069
1125
|
emits: ["update:modelValue"],
|
|
1070
1126
|
setup(e, { emit: t }) {
|
|
1071
|
-
let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: v, handleInput: b, handleKeydown: S, handleClick: C, handleBlur: w, clearValue: E, insertMergeTag: D, insertLogicTag: O } =
|
|
1127
|
+
let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: v, handleInput: b, handleKeydown: S, handleClick: C, handleBlur: w, clearValue: E, insertMergeTag: D, insertLogicTag: O } = Rn({
|
|
1072
1128
|
modelValue: () => r.modelValue,
|
|
1073
1129
|
emit: (e) => i("update:modelValue", e),
|
|
1074
1130
|
elementRef: a
|
|
1075
1131
|
});
|
|
1076
|
-
return (t, r) => x(c) && !x(_) ? (s(), m("div",
|
|
1132
|
+
return (t, r) => x(c) && !x(_) ? (s(), m("div", Zn, [g(Wn, {
|
|
1077
1133
|
segments: x(o),
|
|
1078
|
-
"display-class":
|
|
1134
|
+
"display-class": rr,
|
|
1079
1135
|
onEdit: x(v),
|
|
1080
1136
|
onClear: x(E)
|
|
1081
1137
|
}, null, 8, [
|
|
1082
1138
|
"segments",
|
|
1083
1139
|
"onEdit",
|
|
1084
1140
|
"onClear"
|
|
1085
|
-
]), x(l) || x(f) ? (s(), m("div",
|
|
1141
|
+
]), x(l) || x(f) ? (s(), m("div", Qn, [x(l) ? (s(), y(qn, {
|
|
1086
1142
|
key: 0,
|
|
1087
1143
|
disabled: x(u),
|
|
1088
1144
|
onInsert: x(D)
|
|
1089
|
-
}, null, 8, ["disabled", "onInsert"])) : T("", !0), x(f) ? (s(), y(
|
|
1145
|
+
}, null, 8, ["disabled", "onInsert"])) : T("", !0), x(f) ? (s(), y(Xn, {
|
|
1090
1146
|
key: 1,
|
|
1091
1147
|
disabled: x(h),
|
|
1092
1148
|
onInsert: x(O)
|
|
1093
|
-
}, null, 8, ["disabled", "onInsert"])) : T("", !0)])) : T("", !0)])) : (s(), m("div",
|
|
1149
|
+
}, null, 8, ["disabled", "onInsert"])) : T("", !0)])) : T("", !0)])) : (s(), m("div", $n, [p("textarea", {
|
|
1094
1150
|
ref_key: "textareaRef",
|
|
1095
1151
|
ref: a,
|
|
1096
|
-
class: n(
|
|
1152
|
+
class: n(nr),
|
|
1097
1153
|
value: e.modelValue,
|
|
1098
1154
|
placeholder: e.placeholder,
|
|
1099
1155
|
rows: e.rows,
|
|
@@ -1101,17 +1157,17 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1101
1157
|
onKeydown: r[1] ||= (...e) => x(S) && x(S)(...e),
|
|
1102
1158
|
onClick: r[2] ||= (...e) => x(C) && x(C)(...e),
|
|
1103
1159
|
onBlur: r[3] ||= (...e) => x(w) && x(w)(...e)
|
|
1104
|
-
}, null, 40,
|
|
1160
|
+
}, null, 40, er), x(l) || x(f) ? (s(), m("div", tr, [x(l) ? (s(), y(qn, {
|
|
1105
1161
|
key: 0,
|
|
1106
1162
|
disabled: x(u),
|
|
1107
1163
|
onInsert: x(D)
|
|
1108
|
-
}, null, 8, ["disabled", "onInsert"])) : T("", !0), x(f) ? (s(), y(
|
|
1164
|
+
}, null, 8, ["disabled", "onInsert"])) : T("", !0), x(f) ? (s(), y(Xn, {
|
|
1109
1165
|
key: 1,
|
|
1110
1166
|
disabled: x(h),
|
|
1111
1167
|
onInsert: x(O)
|
|
1112
1168
|
}, null, 8, ["disabled", "onInsert"])) : T("", !0)])) : T("", !0)]));
|
|
1113
1169
|
}
|
|
1114
|
-
}),
|
|
1170
|
+
}), ar = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, or = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, sr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, cr = { class: "tpl:mb-3.5" }, lr = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, ur = ["onClick"], dr = { class: "tpl:flex tpl:items-stretch" }, fr = ["value"], pr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, mr = { class: "tpl:mb-3.5" }, hr = { class: "tpl:mb-3.5" }, gr = { class: "tpl:mb-3.5" }, _r = { class: "tpl:mb-3.5" }, vr = ["value"], yr = ["value"], br = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, xr = ["value"], Sr = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Cr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Tr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Er = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, Dr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Or = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, kr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Ar = { class: "tpl:mb-1 tpl:last:mb-0" }, jr = { class: "tpl:mb-1 tpl:last:mb-0" }, Mr = { class: "tpl:mb-1 tpl:last:mb-0" }, Nr = 150, Pr = /* @__PURE__ */ f({
|
|
1115
1171
|
__name: "TemplateSettings",
|
|
1116
1172
|
props: { settings: {} },
|
|
1117
1173
|
emits: ["update"],
|
|
@@ -1134,14 +1190,14 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1134
1190
|
label: "800px"
|
|
1135
1191
|
}
|
|
1136
1192
|
];
|
|
1137
|
-
return (i, a) => (s(), m("aside",
|
|
1138
|
-
p("div", { class: n(x(
|
|
1139
|
-
p("div",
|
|
1193
|
+
return (i, a) => (s(), m("aside", ar, [p("div", or, [
|
|
1194
|
+
p("div", { class: n(x(Bt)) }, [
|
|
1195
|
+
p("div", sr, [g(x(nn), {
|
|
1140
1196
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1141
1197
|
size: 14,
|
|
1142
1198
|
"stroke-width": 2
|
|
1143
1199
|
}), p("span", null, c(x(l).templateSettings.layout), 1)]),
|
|
1144
|
-
p("div",
|
|
1200
|
+
p("div", cr, [p("label", { class: n(x(K)) }, c(x(l).templateSettings.widthPreset), 3), p("div", lr, [(s(), m(C, null, e(h, (e) => p("button", {
|
|
1145
1201
|
key: e.value,
|
|
1146
1202
|
class: "tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
1147
1203
|
style: t({
|
|
@@ -1150,38 +1206,38 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1150
1206
|
boxShadow: r.settings.width === e.value ? "var(--tpl-shadow)" : "none"
|
|
1151
1207
|
}),
|
|
1152
1208
|
onClick: (t) => o("update", { width: e.value })
|
|
1153
|
-
}, c(e.label), 13,
|
|
1154
|
-
p("div", null, [p("label", { class: n(x(K)) }, c(x(l).templateSettings.customWidth), 3), p("div",
|
|
1209
|
+
}, c(e.label), 13, ur)), 64))])]),
|
|
1210
|
+
p("div", null, [p("label", { class: n(x(K)) }, c(x(l).templateSettings.customWidth), 3), p("div", dr, [p("input", {
|
|
1155
1211
|
type: "number",
|
|
1156
1212
|
class: n(x(J)),
|
|
1157
1213
|
value: r.settings.width,
|
|
1158
1214
|
min: "300",
|
|
1159
1215
|
max: "900",
|
|
1160
1216
|
onInput: a[0] ||= (e) => o("update", { width: Number(e.target.value) })
|
|
1161
|
-
}, null, 42,
|
|
1217
|
+
}, null, 42, fr), p("span", { class: n(x(q)) }, "px", 2)])])
|
|
1162
1218
|
], 2),
|
|
1163
|
-
p("div", { class: n(x(
|
|
1164
|
-
p("div",
|
|
1219
|
+
p("div", { class: n(x(Bt)) }, [
|
|
1220
|
+
p("div", pr, [g(x(Kt), {
|
|
1165
1221
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1166
1222
|
size: 14,
|
|
1167
1223
|
"stroke-width": 2
|
|
1168
1224
|
}), p("span", null, c(x(l).templateSettings.appearance), 1)]),
|
|
1169
|
-
p("div",
|
|
1225
|
+
p("div", mr, [p("label", { class: n(x(K)) }, c(x(l).templateSettings.backgroundColor), 3), g(Y, {
|
|
1170
1226
|
"model-value": r.settings.backgroundColor,
|
|
1171
|
-
placeholder: x(
|
|
1227
|
+
placeholder: x(zt),
|
|
1172
1228
|
"onUpdate:modelValue": a[1] ||= (e) => o("update", { backgroundColor: e })
|
|
1173
1229
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
1174
|
-
p("div",
|
|
1230
|
+
p("div", hr, [p("label", { class: n(x(K)) }, c(x(l).templateSettings.textColor), 3), g(Y, {
|
|
1175
1231
|
"model-value": r.settings.textColor ?? "",
|
|
1176
1232
|
"seed-color": "#1a1a1a",
|
|
1177
1233
|
"onUpdate:modelValue": a[2] ||= (e) => o("update", { textColor: e })
|
|
1178
1234
|
}, null, 8, ["model-value"])]),
|
|
1179
|
-
p("div",
|
|
1235
|
+
p("div", gr, [p("label", { class: n(x(K)) }, c(x(l).templateSettings.linkColor), 3), g(Y, {
|
|
1180
1236
|
"model-value": r.settings.linkColor ?? "",
|
|
1181
1237
|
"seed-color": "#0066cc",
|
|
1182
1238
|
"onUpdate:modelValue": a[3] ||= (e) => o("update", { linkColor: e || void 0 })
|
|
1183
1239
|
}, null, 8, ["model-value"])]),
|
|
1184
|
-
p("div",
|
|
1240
|
+
p("div", _r, [g(X, {
|
|
1185
1241
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1186
1242
|
"model-value": r.settings.linkUnderline,
|
|
1187
1243
|
label: x(l).templateSettings.linkUnderline,
|
|
@@ -1194,9 +1250,9 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1194
1250
|
}, [(s(!0), m(C, null, e(d.value, (e) => (s(), m("option", {
|
|
1195
1251
|
key: e.value,
|
|
1196
1252
|
value: e.value
|
|
1197
|
-
}, c(e.label), 9,
|
|
1253
|
+
}, c(e.label), 9, yr))), 128))], 42, vr)])
|
|
1198
1254
|
], 2),
|
|
1199
|
-
p("div", { class: n(x(
|
|
1255
|
+
p("div", { class: n(x(Bt)) }, [p("div", br, [g(x(qt), {
|
|
1200
1256
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1201
1257
|
size: 14,
|
|
1202
1258
|
"stroke-width": 2
|
|
@@ -1211,40 +1267,40 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1211
1267
|
autocapitalize: "off",
|
|
1212
1268
|
autocomplete: "off",
|
|
1213
1269
|
onInput: a[6] ||= (e) => o("update", { locale: e.target.value.trim() || void 0 })
|
|
1214
|
-
}, null, 42,
|
|
1215
|
-
p("p",
|
|
1270
|
+
}, null, 42, xr),
|
|
1271
|
+
p("p", Sr, c(x(l).templateSettings.contentLocaleHint), 1)
|
|
1216
1272
|
])], 2),
|
|
1217
|
-
p("div", { class: n(x(
|
|
1273
|
+
p("div", { class: n(x(Bt)) }, [p("div", Cr, [g(x(mt), {
|
|
1218
1274
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1219
1275
|
size: 14,
|
|
1220
1276
|
"stroke-width": 2
|
|
1221
|
-
}), p("span", null, c(x(l).templateSettings.preheaderText), 1)]), p("div", null, [g(
|
|
1277
|
+
}), p("span", null, c(x(l).templateSettings.preheaderText), 1)]), p("div", null, [g(ir, {
|
|
1222
1278
|
"model-value": r.settings.preheaderText ?? "",
|
|
1223
1279
|
placeholder: x(l).templateSettings.preheaderTextPlaceholder,
|
|
1224
1280
|
rows: 2,
|
|
1225
1281
|
"onUpdate:modelValue": a[7] ||= (e) => o("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
1226
|
-
}, null, 8, ["model-value", "placeholder"]), p("div",
|
|
1227
|
-
p("div",
|
|
1282
|
+
}, null, 8, ["model-value", "placeholder"]), p("div", wr, [p("span", Tr, c(x(l).templateSettings.preheaderTextHint), 1), p("span", Er, c((r.settings.preheaderText ?? "").length) + "/" + c(Nr), 1)])])], 2),
|
|
1283
|
+
p("div", Dr, [p("div", Or, [g(x(_t), {
|
|
1228
1284
|
size: 14,
|
|
1229
1285
|
"stroke-width": 2
|
|
1230
|
-
}), p("span", null, c(x(l).templateSettings.tips), 1)]), p("ul",
|
|
1231
|
-
p("li",
|
|
1232
|
-
p("li",
|
|
1233
|
-
p("li",
|
|
1286
|
+
}), p("span", null, c(x(l).templateSettings.tips), 1)]), p("ul", kr, [
|
|
1287
|
+
p("li", Ar, c(x(l).templateSettings.tip1), 1),
|
|
1288
|
+
p("li", jr, c(x(l).templateSettings.tip2), 1),
|
|
1289
|
+
p("li", Mr, c(x(l).templateSettings.tip3), 1)
|
|
1234
1290
|
])])
|
|
1235
1291
|
])]));
|
|
1236
1292
|
}
|
|
1237
|
-
}),
|
|
1293
|
+
}), Fr = { key: 0 }, Ir = {
|
|
1238
1294
|
key: 0,
|
|
1239
1295
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1240
|
-
},
|
|
1296
|
+
}, Lr = { key: 1 }, Rr = [
|
|
1241
1297
|
"type",
|
|
1242
1298
|
"value",
|
|
1243
1299
|
"placeholder"
|
|
1244
|
-
],
|
|
1300
|
+
], zr = {
|
|
1245
1301
|
key: 0,
|
|
1246
1302
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1247
|
-
},
|
|
1303
|
+
}, Br = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", $ = /*#__PURE__*/ Ot(/* @__PURE__ */ f({
|
|
1248
1304
|
__name: "MergeTagInput",
|
|
1249
1305
|
props: {
|
|
1250
1306
|
modelValue: {},
|
|
@@ -1257,14 +1313,14 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1257
1313
|
},
|
|
1258
1314
|
emits: ["update:modelValue"],
|
|
1259
1315
|
setup(e, { emit: t }) {
|
|
1260
|
-
let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: v, handleInput: b, handleKeydown: S, handleClick: C, handleBlur: w, clearValue: E, insertMergeTag: D, insertLogicTag: O } =
|
|
1316
|
+
let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: v, handleInput: b, handleKeydown: S, handleClick: C, handleBlur: w, clearValue: E, insertMergeTag: D, insertLogicTag: O } = Rn({
|
|
1261
1317
|
modelValue: () => r.modelValue,
|
|
1262
1318
|
emit: (e) => i("update:modelValue", e),
|
|
1263
1319
|
elementRef: a
|
|
1264
1320
|
});
|
|
1265
|
-
return (t, r) => x(c) && !x(_) ? (s(), m("div",
|
|
1321
|
+
return (t, r) => x(c) && !x(_) ? (s(), m("div", Fr, [g(Wn, {
|
|
1266
1322
|
segments: x(o),
|
|
1267
|
-
"display-class":
|
|
1323
|
+
"display-class": Br,
|
|
1268
1324
|
pulse: e.pulse,
|
|
1269
1325
|
onEdit: x(v),
|
|
1270
1326
|
onClear: x(E)
|
|
@@ -1273,15 +1329,15 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1273
1329
|
"pulse",
|
|
1274
1330
|
"onEdit",
|
|
1275
1331
|
"onClear"
|
|
1276
|
-
]), x(l) || x(f) ? (s(), m("div",
|
|
1332
|
+
]), x(l) || x(f) ? (s(), m("div", Ir, [x(l) ? (s(), y(qn, {
|
|
1277
1333
|
key: 0,
|
|
1278
1334
|
disabled: x(u),
|
|
1279
1335
|
onInsert: x(D)
|
|
1280
|
-
}, null, 8, ["disabled", "onInsert"])) : T("", !0), x(f) ? (s(), y(
|
|
1336
|
+
}, null, 8, ["disabled", "onInsert"])) : T("", !0), x(f) ? (s(), y(Xn, {
|
|
1281
1337
|
key: 1,
|
|
1282
1338
|
disabled: x(h),
|
|
1283
1339
|
onInsert: x(O)
|
|
1284
|
-
}, null, 8, ["disabled", "onInsert"])) : T("", !0)])) : T("", !0)])) : (s(), m("div",
|
|
1340
|
+
}, null, 8, ["disabled", "onInsert"])) : T("", !0)])) : T("", !0)])) : (s(), m("div", Lr, [p("input", {
|
|
1285
1341
|
ref_key: "inputRef",
|
|
1286
1342
|
ref: a,
|
|
1287
1343
|
type: e.type,
|
|
@@ -1292,20 +1348,20 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1292
1348
|
onKeydown: r[1] ||= (...e) => x(S) && x(S)(...e),
|
|
1293
1349
|
onClick: r[2] ||= (...e) => x(C) && x(C)(...e),
|
|
1294
1350
|
onBlur: r[3] ||= (...e) => x(w) && x(w)(...e)
|
|
1295
|
-
}, null, 42,
|
|
1351
|
+
}, null, 42, Rr), x(l) || x(f) ? (s(), m("div", zr, [x(l) ? (s(), y(qn, {
|
|
1296
1352
|
key: 0,
|
|
1297
1353
|
disabled: x(u),
|
|
1298
1354
|
onInsert: x(D)
|
|
1299
|
-
}, null, 8, ["disabled", "onInsert"])) : T("", !0), x(f) ? (s(), y(
|
|
1355
|
+
}, null, 8, ["disabled", "onInsert"])) : T("", !0), x(f) ? (s(), y(Xn, {
|
|
1300
1356
|
key: 1,
|
|
1301
1357
|
disabled: x(h),
|
|
1302
1358
|
onInsert: x(O)
|
|
1303
1359
|
}, null, 8, ["disabled", "onInsert"])) : T("", !0)])) : T("", !0)]));
|
|
1304
1360
|
}
|
|
1305
|
-
}), [["__scopeId", "data-v-d6563be6"]]),
|
|
1361
|
+
}), [["__scopeId", "data-v-d6563be6"]]), Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = { value: "" }, Wr = ["value"], Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:mb-3.5" }, Jr = { class: "tpl:mb-3.5" }, Yr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Xr = { class: "tpl:mb-3.5" }, Zr = { class: "tpl:flex tpl:items-stretch" }, Qr = ["value"], $r = { class: "tpl:mb-3.5" }, ei = { class: "tpl:flex tpl:items-stretch" }, ti = ["value"], ni = { class: "tpl:mb-3.5" }, ri = ["value"], ii = { value: "auto" }, ai = { value: "full" }, oi = { value: "custom" }, si = {
|
|
1306
1362
|
key: 0,
|
|
1307
1363
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1308
|
-
},
|
|
1364
|
+
}, ci = ["value"], li = 200, ui = /* @__PURE__ */ f({
|
|
1309
1365
|
__name: "ButtonToolbar",
|
|
1310
1366
|
props: {
|
|
1311
1367
|
block: {},
|
|
@@ -1323,7 +1379,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1323
1379
|
return;
|
|
1324
1380
|
}
|
|
1325
1381
|
if (e === "custom") {
|
|
1326
|
-
u("width", typeof i.block.width == "number" ? i.block.width :
|
|
1382
|
+
u("width", typeof i.block.width == "number" ? i.block.width : li);
|
|
1327
1383
|
return;
|
|
1328
1384
|
}
|
|
1329
1385
|
u("width", void 0);
|
|
@@ -1333,20 +1389,20 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1333
1389
|
!Number.isFinite(t) || t <= 0 || u("width", t);
|
|
1334
1390
|
}
|
|
1335
1391
|
return (r, i) => (s(), m(C, null, [
|
|
1336
|
-
p("div",
|
|
1392
|
+
p("div", Vr, [p("label", { class: n(x(K)) }, c(x(o).button.fontFamily), 3), p("select", {
|
|
1337
1393
|
class: n(x(G)),
|
|
1338
1394
|
value: t.block.fontFamily || "",
|
|
1339
1395
|
onChange: i[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
1340
|
-
}, [p("option",
|
|
1396
|
+
}, [p("option", Ur, c(x(o).button.inheritFont), 1), (s(!0), m(C, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
1341
1397
|
key: e.value,
|
|
1342
1398
|
value: e.value
|
|
1343
|
-
}, c(e.label), 9,
|
|
1344
|
-
p("div",
|
|
1399
|
+
}, c(e.label), 9, Wr))), 128))], 42, Hr)]),
|
|
1400
|
+
p("div", Gr, [p("label", { class: n(x(K)) }, c(x(o).button.text), 3), g($, {
|
|
1345
1401
|
"model-value": t.block.text,
|
|
1346
1402
|
type: "text",
|
|
1347
1403
|
"onUpdate:modelValue": i[1] ||= (e) => u("text", e)
|
|
1348
1404
|
}, null, 8, ["model-value"])]),
|
|
1349
|
-
p("div",
|
|
1405
|
+
p("div", Kr, [
|
|
1350
1406
|
p("label", { class: n(x(K)) }, c(x(o).button.url), 3),
|
|
1351
1407
|
g($, {
|
|
1352
1408
|
"model-value": t.block.url,
|
|
@@ -1362,51 +1418,51 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1362
1418
|
"onUpdate:modelValue": i[3] ||= (e) => u("openInNewTab", e)
|
|
1363
1419
|
}, null, 8, ["model-value", "label"])) : T("", !0)
|
|
1364
1420
|
]),
|
|
1365
|
-
p("div",
|
|
1421
|
+
p("div", qr, [p("label", { class: n(x(K)) }, c(x(o).button.background), 3), g(Y, {
|
|
1366
1422
|
"model-value": t.block.backgroundColor,
|
|
1367
1423
|
"onUpdate:modelValue": i[4] ||= (e) => u("backgroundColor", e)
|
|
1368
1424
|
}, null, 8, ["model-value"])]),
|
|
1369
|
-
p("div",
|
|
1425
|
+
p("div", Jr, [p("label", { class: n(x(K)) }, c(x(o).button.textColor), 3), g(Y, {
|
|
1370
1426
|
"model-value": t.block.textColor,
|
|
1371
1427
|
"onUpdate:modelValue": i[5] ||= (e) => u("textColor", e)
|
|
1372
1428
|
}, null, 8, ["model-value"])]),
|
|
1373
|
-
p("div",
|
|
1429
|
+
p("div", Yr, [p("div", Xr, [p("label", { class: n(x(K)) }, c(x(o).button.borderRadius), 3), p("div", Zr, [p("input", {
|
|
1374
1430
|
type: "number",
|
|
1375
1431
|
class: n(x(J)),
|
|
1376
1432
|
value: t.block.borderRadius,
|
|
1377
1433
|
min: "0",
|
|
1378
1434
|
max: "50",
|
|
1379
1435
|
onInput: i[6] ||= (e) => u("borderRadius", Number(e.target.value))
|
|
1380
|
-
}, null, 42,
|
|
1436
|
+
}, null, 42, Qr), p("span", { class: n(x(q)) }, "px", 2)])]), p("div", $r, [p("label", { class: n(x(K)) }, c(x(o).button.fontSize), 3), p("div", ei, [p("input", {
|
|
1381
1437
|
type: "number",
|
|
1382
1438
|
class: n(x(J)),
|
|
1383
1439
|
value: t.block.fontSize,
|
|
1384
1440
|
min: "10",
|
|
1385
1441
|
max: "36",
|
|
1386
1442
|
onInput: i[7] ||= (e) => u("fontSize", Number(e.target.value))
|
|
1387
|
-
}, null, 42,
|
|
1388
|
-
p("div",
|
|
1443
|
+
}, null, 42, ti), p("span", { class: n(x(q)) }, "px", 2)])])]),
|
|
1444
|
+
p("div", ni, [
|
|
1389
1445
|
p("label", { class: n(x(K)) }, c(x(o).button.width), 3),
|
|
1390
1446
|
p("select", {
|
|
1391
1447
|
class: n(x(G)),
|
|
1392
1448
|
value: l.value,
|
|
1393
1449
|
onChange: i[8] ||= (e) => d(e.target.value)
|
|
1394
1450
|
}, [
|
|
1395
|
-
p("option",
|
|
1396
|
-
p("option",
|
|
1397
|
-
p("option",
|
|
1398
|
-
], 42,
|
|
1399
|
-
l.value === "custom" ? (s(), m("div",
|
|
1451
|
+
p("option", ii, c(x(o).button.widthAuto), 1),
|
|
1452
|
+
p("option", ai, c(x(o).button.fullWidth), 1),
|
|
1453
|
+
p("option", oi, c(x(o).button.widthCustom), 1)
|
|
1454
|
+
], 42, ri),
|
|
1455
|
+
l.value === "custom" ? (s(), m("div", si, [p("input", {
|
|
1400
1456
|
type: "number",
|
|
1401
1457
|
class: n(x(J)),
|
|
1402
|
-
value: typeof t.block.width == "number" ? t.block.width :
|
|
1458
|
+
value: typeof t.block.width == "number" ? t.block.width : li,
|
|
1403
1459
|
min: "20",
|
|
1404
1460
|
onInput: i[9] ||= (e) => f(e.target.value)
|
|
1405
|
-
}, null, 42,
|
|
1461
|
+
}, null, 42, ci), p("span", { class: n(x(q)) }, "px", 2)])) : T("", !0)
|
|
1406
1462
|
])
|
|
1407
1463
|
], 64));
|
|
1408
1464
|
}
|
|
1409
|
-
}),
|
|
1465
|
+
}), di = { class: "spacing-control" }, fi = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, pi = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, mi = { class: "tpl:flex tpl:items-center" }, hi = ["aria-label"], gi = ["value", "aria-label"], _i = ["aria-label"], vi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, yi = { class: "tpl:flex tpl:items-center" }, bi = ["aria-label"], xi = ["value", "aria-label"], Si = ["aria-label"], Ci = ["aria-label", "title"], wi = { class: "tpl:flex tpl:items-center" }, Ti = ["aria-label"], Ei = ["value", "aria-label"], Di = ["aria-label"], Oi = { class: "tpl:flex tpl:items-center" }, ki = ["aria-label"], Ai = ["value", "aria-label"], ji = ["aria-label"], Mi = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] active:tpl:bg-[var(--tpl-bg-active)]", Ni = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", Pi = /*#__PURE__*/ Ot(/* @__PURE__ */ f({
|
|
1410
1466
|
__name: "SpacingControl",
|
|
1411
1467
|
props: {
|
|
1412
1468
|
modelValue: {},
|
|
@@ -1453,130 +1509,130 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1453
1509
|
});
|
|
1454
1510
|
}
|
|
1455
1511
|
}
|
|
1456
|
-
return (t, r) => (s(), m("div",
|
|
1457
|
-
p("div",
|
|
1512
|
+
return (t, r) => (s(), m("div", di, [p("label", fi, c(e.label), 1), p("div", pi, [
|
|
1513
|
+
p("div", mi, [
|
|
1458
1514
|
p("button", {
|
|
1459
1515
|
"aria-label": x(o).spacingControl.decreaseTop,
|
|
1460
|
-
class: n([
|
|
1516
|
+
class: n([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1461
1517
|
onClick: r[0] ||= (e) => f("top", -1)
|
|
1462
1518
|
}, [g(x(ut), {
|
|
1463
1519
|
size: 12,
|
|
1464
1520
|
"stroke-width": 2
|
|
1465
|
-
})], 10,
|
|
1521
|
+
})], 10, hi),
|
|
1466
1522
|
p("input", {
|
|
1467
1523
|
type: "number",
|
|
1468
|
-
class: n(
|
|
1524
|
+
class: n(Ni),
|
|
1469
1525
|
value: e.modelValue.top,
|
|
1470
1526
|
"aria-label": x(o).spacingControl.top,
|
|
1471
1527
|
min: "0",
|
|
1472
1528
|
onInput: r[1] ||= (e) => h("top", Number(e.target.value))
|
|
1473
|
-
}, null, 40,
|
|
1529
|
+
}, null, 40, gi),
|
|
1474
1530
|
p("button", {
|
|
1475
1531
|
"aria-label": x(o).spacingControl.increaseTop,
|
|
1476
|
-
class: n([
|
|
1532
|
+
class: n([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1477
1533
|
onClick: r[2] ||= (e) => f("top", 1)
|
|
1478
1534
|
}, [g(x(Q), {
|
|
1479
1535
|
size: 12,
|
|
1480
1536
|
"stroke-width": 2
|
|
1481
|
-
})], 10,
|
|
1537
|
+
})], 10, _i)
|
|
1482
1538
|
]),
|
|
1483
|
-
p("div",
|
|
1484
|
-
p("div",
|
|
1539
|
+
p("div", vi, [
|
|
1540
|
+
p("div", yi, [
|
|
1485
1541
|
p("button", {
|
|
1486
1542
|
"aria-label": x(o).spacingControl.decreaseLeft,
|
|
1487
|
-
class: n([
|
|
1543
|
+
class: n([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1488
1544
|
onClick: r[3] ||= (e) => f("left", -1)
|
|
1489
1545
|
}, [g(x(ut), {
|
|
1490
1546
|
size: 12,
|
|
1491
1547
|
"stroke-width": 2
|
|
1492
|
-
})], 10,
|
|
1548
|
+
})], 10, bi),
|
|
1493
1549
|
p("input", {
|
|
1494
1550
|
type: "number",
|
|
1495
|
-
class: n(
|
|
1551
|
+
class: n(Ni),
|
|
1496
1552
|
value: e.modelValue.left,
|
|
1497
1553
|
"aria-label": x(o).spacingControl.left,
|
|
1498
1554
|
min: "0",
|
|
1499
1555
|
onInput: r[4] ||= (e) => h("left", Number(e.target.value))
|
|
1500
|
-
}, null, 40,
|
|
1556
|
+
}, null, 40, xi),
|
|
1501
1557
|
p("button", {
|
|
1502
1558
|
"aria-label": x(o).spacingControl.increaseLeft,
|
|
1503
|
-
class: n([
|
|
1559
|
+
class: n([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1504
1560
|
onClick: r[5] ||= (e) => f("left", 1)
|
|
1505
1561
|
}, [g(x(Q), {
|
|
1506
1562
|
size: 12,
|
|
1507
1563
|
"stroke-width": 2
|
|
1508
|
-
})], 10,
|
|
1564
|
+
})], 10, Si)
|
|
1509
1565
|
]),
|
|
1510
1566
|
p("button", {
|
|
1511
1567
|
class: n(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", u.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)]"]),
|
|
1512
1568
|
"aria-label": u.value ? x(o).spacingControl.unlock : x(o).spacingControl.lockAll,
|
|
1513
1569
|
title: u.value ? x(o).spacingControl.unlock : x(o).spacingControl.lockAll,
|
|
1514
1570
|
onClick: _
|
|
1515
|
-
}, [u.value ? (s(), y(x(
|
|
1571
|
+
}, [u.value ? (s(), y(x(Xt), {
|
|
1516
1572
|
key: 0,
|
|
1517
1573
|
size: 14,
|
|
1518
1574
|
"stroke-width": 2
|
|
1519
|
-
})) : (s(), y(x(
|
|
1575
|
+
})) : (s(), y(x(Yt), {
|
|
1520
1576
|
key: 1,
|
|
1521
1577
|
size: 14,
|
|
1522
1578
|
"stroke-width": 2
|
|
1523
|
-
}))], 10,
|
|
1524
|
-
p("div",
|
|
1579
|
+
}))], 10, Ci),
|
|
1580
|
+
p("div", wi, [
|
|
1525
1581
|
p("button", {
|
|
1526
1582
|
"aria-label": x(o).spacingControl.decreaseRight,
|
|
1527
|
-
class: n([
|
|
1583
|
+
class: n([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1528
1584
|
onClick: r[6] ||= (e) => f("right", -1)
|
|
1529
1585
|
}, [g(x(ut), {
|
|
1530
1586
|
size: 12,
|
|
1531
1587
|
"stroke-width": 2
|
|
1532
|
-
})], 10,
|
|
1588
|
+
})], 10, Ti),
|
|
1533
1589
|
p("input", {
|
|
1534
1590
|
type: "number",
|
|
1535
|
-
class: n(
|
|
1591
|
+
class: n(Ni),
|
|
1536
1592
|
value: e.modelValue.right,
|
|
1537
1593
|
"aria-label": x(o).spacingControl.right,
|
|
1538
1594
|
min: "0",
|
|
1539
1595
|
onInput: r[7] ||= (e) => h("right", Number(e.target.value))
|
|
1540
|
-
}, null, 40,
|
|
1596
|
+
}, null, 40, Ei),
|
|
1541
1597
|
p("button", {
|
|
1542
1598
|
"aria-label": x(o).spacingControl.increaseRight,
|
|
1543
|
-
class: n([
|
|
1599
|
+
class: n([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1544
1600
|
onClick: r[8] ||= (e) => f("right", 1)
|
|
1545
1601
|
}, [g(x(Q), {
|
|
1546
1602
|
size: 12,
|
|
1547
1603
|
"stroke-width": 2
|
|
1548
|
-
})], 10,
|
|
1604
|
+
})], 10, Di)
|
|
1549
1605
|
])
|
|
1550
1606
|
]),
|
|
1551
|
-
p("div",
|
|
1607
|
+
p("div", Oi, [
|
|
1552
1608
|
p("button", {
|
|
1553
1609
|
"aria-label": x(o).spacingControl.decreaseBottom,
|
|
1554
|
-
class: n([
|
|
1610
|
+
class: n([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1555
1611
|
onClick: r[9] ||= (e) => f("bottom", -1)
|
|
1556
1612
|
}, [g(x(ut), {
|
|
1557
1613
|
size: 12,
|
|
1558
1614
|
"stroke-width": 2
|
|
1559
|
-
})], 10,
|
|
1615
|
+
})], 10, ki),
|
|
1560
1616
|
p("input", {
|
|
1561
1617
|
type: "number",
|
|
1562
|
-
class: n(
|
|
1618
|
+
class: n(Ni),
|
|
1563
1619
|
value: e.modelValue.bottom,
|
|
1564
1620
|
"aria-label": x(o).spacingControl.bottom,
|
|
1565
1621
|
min: "0",
|
|
1566
1622
|
onInput: r[10] ||= (e) => h("bottom", Number(e.target.value))
|
|
1567
|
-
}, null, 40,
|
|
1623
|
+
}, null, 40, Ai),
|
|
1568
1624
|
p("button", {
|
|
1569
1625
|
"aria-label": x(o).spacingControl.increaseBottom,
|
|
1570
|
-
class: n([
|
|
1626
|
+
class: n([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1571
1627
|
onClick: r[11] ||= (e) => f("bottom", 1)
|
|
1572
1628
|
}, [g(x(Q), {
|
|
1573
1629
|
size: 12,
|
|
1574
1630
|
"stroke-width": 2
|
|
1575
|
-
})], 10,
|
|
1631
|
+
})], 10, ji)
|
|
1576
1632
|
])
|
|
1577
1633
|
])]));
|
|
1578
1634
|
}
|
|
1579
|
-
}), [["__scopeId", "data-v-9a9c8a07"]]),
|
|
1635
|
+
}), [["__scopeId", "data-v-9a9c8a07"]]), Fi = { class: "tpl:mt-3" }, Ii = /* @__PURE__ */ f({
|
|
1580
1636
|
__name: "CollapsibleSection",
|
|
1581
1637
|
props: {
|
|
1582
1638
|
title: {},
|
|
@@ -1593,21 +1649,21 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1593
1649
|
class: n(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1594
1650
|
size: 12,
|
|
1595
1651
|
"stroke-width": 2
|
|
1596
|
-
}, null, 8, ["class"]), p("span", null, c(e.title), 1)]), k(p("div",
|
|
1652
|
+
}, null, 8, ["class"]), p("span", null, c(e.title), 1)]), k(p("div", Fi, [_(t.$slots, "default")], 512), [[M, e.open]])], 2));
|
|
1597
1653
|
}
|
|
1598
|
-
}),
|
|
1654
|
+
}), Li = { class: "tpl:space-y-2" }, Ri = { class: "tpl:flex tpl:items-center tpl:gap-2" }, zi = { class: "tpl:space-y-2" }, Bi = ["value"], Vi = { value: "" }, Hi = ["label"], Ui = ["value"], Wi = ["value"], Gi = {
|
|
1599
1655
|
key: 0,
|
|
1600
1656
|
value: "__custom__"
|
|
1601
|
-
},
|
|
1657
|
+
}, Ki = {
|
|
1602
1658
|
key: 0,
|
|
1603
1659
|
class: "tpl:space-y-2"
|
|
1604
|
-
},
|
|
1660
|
+
}, qi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ji = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Yi = { class: "tpl:flex tpl:justify-end" }, Xi = ["disabled"], Zi = {
|
|
1605
1661
|
key: 0,
|
|
1606
1662
|
class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
|
|
1607
|
-
},
|
|
1663
|
+
}, Qi = { class: "tpl:space-y-1" }, $i = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, ea = {
|
|
1608
1664
|
key: 0,
|
|
1609
1665
|
class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1610
|
-
},
|
|
1666
|
+
}, ta = /* @__PURE__ */ f({
|
|
1611
1667
|
__name: "CommonBlockSettings",
|
|
1612
1668
|
props: {
|
|
1613
1669
|
block: {},
|
|
@@ -1617,11 +1673,11 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1617
1673
|
setup(t, { emit: r }) {
|
|
1618
1674
|
let a = t, u = r, { t: f } = U(), h = D($e, []), _ = D(et, !1), v = S(/* @__PURE__ */ new Set()), E = d(!1), O = d(""), j = d(""), M = [{
|
|
1619
1675
|
key: "desktop",
|
|
1620
|
-
icon:
|
|
1676
|
+
icon: xt,
|
|
1621
1677
|
labelKey: "showOnDesktop"
|
|
1622
1678
|
}, {
|
|
1623
1679
|
key: "mobile",
|
|
1624
|
-
icon:
|
|
1680
|
+
icon: bt,
|
|
1625
1681
|
labelKey: "showOnMobile"
|
|
1626
1682
|
}];
|
|
1627
1683
|
function N(e) {
|
|
@@ -1670,13 +1726,13 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1670
1726
|
t[e] = !t[e], u("update", { visibility: t });
|
|
1671
1727
|
}
|
|
1672
1728
|
return (r, i) => (s(), m("div", { class: n(["tpl:flex tpl:flex-col", t.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1673
|
-
g(
|
|
1729
|
+
g(Ii, {
|
|
1674
1730
|
title: x(f).blockSettings.spacing,
|
|
1675
1731
|
open: v.has("spacing"),
|
|
1676
1732
|
"no-border": t.isFirstSection,
|
|
1677
1733
|
onToggle: i[1] ||= (e) => N("spacing")
|
|
1678
1734
|
}, {
|
|
1679
|
-
default: l(() => [g(
|
|
1735
|
+
default: l(() => [g(Pi, {
|
|
1680
1736
|
label: x(f).blockSettings.padding,
|
|
1681
1737
|
"model-value": t.block.styles.padding,
|
|
1682
1738
|
"onUpdate:modelValue": i[0] ||= (e) => z("padding", e)
|
|
@@ -1687,7 +1743,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1687
1743
|
"open",
|
|
1688
1744
|
"no-border"
|
|
1689
1745
|
]),
|
|
1690
|
-
g(
|
|
1746
|
+
g(Ii, {
|
|
1691
1747
|
title: x(f).blockSettings.background,
|
|
1692
1748
|
open: v.has("bg"),
|
|
1693
1749
|
onToggle: i[3] ||= (e) => N("bg")
|
|
@@ -1698,19 +1754,19 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1698
1754
|
}, null, 8, ["model-value"])]),
|
|
1699
1755
|
_: 1
|
|
1700
1756
|
}, 8, ["title", "open"]),
|
|
1701
|
-
g(
|
|
1757
|
+
g(Ii, {
|
|
1702
1758
|
title: x(f).blockSettings.display,
|
|
1703
1759
|
open: v.has("display"),
|
|
1704
1760
|
onToggle: i[4] ||= (e) => N("display")
|
|
1705
1761
|
}, {
|
|
1706
|
-
default: l(() => [p("div",
|
|
1762
|
+
default: l(() => [p("div", Li, [(s(), m(C, null, e(M, (e) => g(X, {
|
|
1707
1763
|
key: e.key,
|
|
1708
1764
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1709
1765
|
"model-value": B(e.key),
|
|
1710
1766
|
label: x(f).blockSettings[e.labelKey],
|
|
1711
1767
|
"onUpdate:modelValue": (t) => V(e.key)
|
|
1712
1768
|
}, {
|
|
1713
|
-
default: l(() => [p("span",
|
|
1769
|
+
default: l(() => [p("span", Ri, [(s(), y(o(e.icon), {
|
|
1714
1770
|
size: 14,
|
|
1715
1771
|
"stroke-width": 1.5
|
|
1716
1772
|
})), b(" " + c(x(f).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -1722,13 +1778,13 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1722
1778
|
])), 64))])]),
|
|
1723
1779
|
_: 1
|
|
1724
1780
|
}, 8, ["title", "open"]),
|
|
1725
|
-
P.value ? (s(), y(
|
|
1781
|
+
P.value ? (s(), y(Ii, {
|
|
1726
1782
|
key: 0,
|
|
1727
1783
|
title: x(f).blockSettings.displayCondition,
|
|
1728
1784
|
open: v.has("condition"),
|
|
1729
1785
|
onToggle: i[8] ||= (e) => N("condition")
|
|
1730
1786
|
}, {
|
|
1731
|
-
default: l(() => [p("div",
|
|
1787
|
+
default: l(() => [p("div", zi, [p("select", {
|
|
1732
1788
|
class: n(["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)]", t.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)]"]),
|
|
1733
1789
|
value: E.value || F.value ? "__custom__" : t.block.displayCondition?.label ?? "",
|
|
1734
1790
|
onChange: i[5] ||= (e) => {
|
|
@@ -1745,41 +1801,41 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1745
1801
|
n && u("update", { displayCondition: n });
|
|
1746
1802
|
}
|
|
1747
1803
|
}, [
|
|
1748
|
-
p("option",
|
|
1804
|
+
p("option", Vi, c(x(f).blockSettings.noCondition), 1),
|
|
1749
1805
|
(s(!0), m(C, null, e(R.value, (t, n) => (s(), m(C, { key: n }, [n ? (s(), m("optgroup", {
|
|
1750
1806
|
key: 0,
|
|
1751
1807
|
label: String(n)
|
|
1752
1808
|
}, [(s(!0), m(C, null, e(t, (e) => (s(), m("option", {
|
|
1753
1809
|
key: e.label,
|
|
1754
1810
|
value: e.label
|
|
1755
|
-
}, c(e.label), 9,
|
|
1811
|
+
}, c(e.label), 9, Ui))), 128))], 8, Hi)) : (s(!0), m(C, { key: 1 }, e(t, (e) => (s(), m("option", {
|
|
1756
1812
|
key: e.label,
|
|
1757
1813
|
value: e.label
|
|
1758
|
-
}, c(e.label), 9,
|
|
1759
|
-
x(_) ? (s(), m("option",
|
|
1760
|
-
], 42,
|
|
1761
|
-
p("div", null, [p("label",
|
|
1814
|
+
}, c(e.label), 9, Wi))), 128))], 64))), 128)),
|
|
1815
|
+
x(_) ? (s(), m("option", Gi, c(x(f).blockSettings.customCondition), 1)) : T("", !0)
|
|
1816
|
+
], 42, Bi), E.value || F.value ? (s(), m("div", Ki, [
|
|
1817
|
+
p("div", null, [p("label", qi, c(x(f).blockSettings.customConditionBefore), 1), k(p("textarea", {
|
|
1762
1818
|
"onUpdate:modelValue": i[6] ||= (e) => O.value = e,
|
|
1763
1819
|
rows: "2",
|
|
1764
|
-
class: n(x(
|
|
1820
|
+
class: n(x(It))
|
|
1765
1821
|
}, null, 2), [[A, O.value]])]),
|
|
1766
|
-
p("div", null, [p("label",
|
|
1822
|
+
p("div", null, [p("label", Ji, c(x(f).blockSettings.customConditionAfter), 1), k(p("textarea", {
|
|
1767
1823
|
"onUpdate:modelValue": i[7] ||= (e) => j.value = e,
|
|
1768
1824
|
rows: "2",
|
|
1769
|
-
class: n(x(
|
|
1825
|
+
class: n(x(It))
|
|
1770
1826
|
}, null, 2), [[A, j.value]])]),
|
|
1771
|
-
p("div",
|
|
1827
|
+
p("div", Yi, [p("button", {
|
|
1772
1828
|
type: "button",
|
|
1773
1829
|
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",
|
|
1774
1830
|
disabled: !O.value.trim(),
|
|
1775
1831
|
onClick: L
|
|
1776
|
-
}, c(x(f).blockSettings.applyCondition), 9,
|
|
1777
|
-
])) : t.block.displayCondition && !F.value ? (s(), m(C, { key: 1 }, [t.block.displayCondition.description ? (s(), m("p",
|
|
1832
|
+
}, c(x(f).blockSettings.applyCondition), 9, Xi)])
|
|
1833
|
+
])) : t.block.displayCondition && !F.value ? (s(), m(C, { key: 1 }, [t.block.displayCondition.description ? (s(), m("p", Zi, c(t.block.displayCondition.description), 1)) : T("", !0), p("div", Qi, [p("pre", $i, c(t.block.displayCondition.before), 1), t.block.displayCondition.after ? (s(), m("pre", ea, c(t.block.displayCondition.after), 1)) : T("", !0)])], 64)) : T("", !0)])]),
|
|
1778
1834
|
_: 1
|
|
1779
1835
|
}, 8, ["title", "open"])) : T("", !0)
|
|
1780
1836
|
], 2));
|
|
1781
1837
|
}
|
|
1782
|
-
}),
|
|
1838
|
+
}), na = ["title"], ra = /* @__PURE__ */ f({
|
|
1783
1839
|
__name: "BooleanField",
|
|
1784
1840
|
props: {
|
|
1785
1841
|
field: {},
|
|
@@ -1800,7 +1856,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1800
1856
|
disabled: e.readOnly,
|
|
1801
1857
|
"onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
|
|
1802
1858
|
}, {
|
|
1803
|
-
default: l(() => [b(c(e.field.label) + " ", 1), e.readOnly ? (s(), y(x(
|
|
1859
|
+
default: l(() => [b(c(e.field.label) + " ", 1), e.readOnly ? (s(), y(x(Xt), {
|
|
1804
1860
|
key: 0,
|
|
1805
1861
|
size: 12,
|
|
1806
1862
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1811,12 +1867,12 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1811
1867
|
"label",
|
|
1812
1868
|
"required",
|
|
1813
1869
|
"disabled"
|
|
1814
|
-
])], 8,
|
|
1870
|
+
])], 8, na));
|
|
1815
1871
|
}
|
|
1816
|
-
}),
|
|
1872
|
+
}), ia = { class: "tpl:mb-3.5" }, aa = {
|
|
1817
1873
|
key: 1,
|
|
1818
1874
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1819
|
-
},
|
|
1875
|
+
}, oa = /* @__PURE__ */ f({
|
|
1820
1876
|
__name: "FieldWrapper",
|
|
1821
1877
|
props: {
|
|
1822
1878
|
label: {},
|
|
@@ -1824,17 +1880,17 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1824
1880
|
readOnly: { type: Boolean }
|
|
1825
1881
|
},
|
|
1826
1882
|
setup(e) {
|
|
1827
|
-
return (t, r) => (s(), m("div",
|
|
1883
|
+
return (t, r) => (s(), m("div", ia, [p("label", { class: n(x(K)) }, [
|
|
1828
1884
|
b(c(e.label) + " ", 1),
|
|
1829
|
-
e.readOnly ? (s(), y(x(
|
|
1885
|
+
e.readOnly ? (s(), y(x(Xt), {
|
|
1830
1886
|
key: 0,
|
|
1831
1887
|
size: 12,
|
|
1832
1888
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1833
1889
|
})) : T("", !0),
|
|
1834
|
-
e.required ? (s(), m("span",
|
|
1890
|
+
e.required ? (s(), m("span", aa, "*")) : T("", !0)
|
|
1835
1891
|
], 2), _(t.$slots, "default")]));
|
|
1836
1892
|
}
|
|
1837
|
-
}),
|
|
1893
|
+
}), sa = /* @__PURE__ */ f({
|
|
1838
1894
|
__name: "ColorField",
|
|
1839
1895
|
props: {
|
|
1840
1896
|
field: {},
|
|
@@ -1844,7 +1900,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1844
1900
|
emits: ["update:modelValue"],
|
|
1845
1901
|
setup(e, { emit: t }) {
|
|
1846
1902
|
let n = e, r = t, { t: i } = U(), a = D(Qe, Ie), o = w(() => ie(n.field, a));
|
|
1847
|
-
return (t, n) => (s(), y(
|
|
1903
|
+
return (t, n) => (s(), y(oa, {
|
|
1848
1904
|
label: e.field.label,
|
|
1849
1905
|
required: e.field.required,
|
|
1850
1906
|
"read-only": e.readOnly
|
|
@@ -1872,15 +1928,15 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1872
1928
|
"read-only"
|
|
1873
1929
|
]));
|
|
1874
1930
|
}
|
|
1875
|
-
}),
|
|
1931
|
+
}), ca = {
|
|
1876
1932
|
key: 0,
|
|
1877
1933
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1878
1934
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
1879
|
-
},
|
|
1935
|
+
}, la = [
|
|
1880
1936
|
"value",
|
|
1881
1937
|
"placeholder",
|
|
1882
1938
|
"title"
|
|
1883
|
-
],
|
|
1939
|
+
], ua = ["value", "placeholder"], da = /* @__PURE__ */ f({
|
|
1884
1940
|
__name: "ImageField",
|
|
1885
1941
|
props: {
|
|
1886
1942
|
field: {},
|
|
@@ -1889,7 +1945,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1889
1945
|
},
|
|
1890
1946
|
emits: ["update:modelValue"],
|
|
1891
1947
|
setup(e, { emit: t }) {
|
|
1892
|
-
let r = e, i = t, { t: a } = U(), o = D(Re, null), u =
|
|
1948
|
+
let r = e, i = t, { t: a } = U(), o = D(Re, null), u = jt(), f = w(() => !!o);
|
|
1893
1949
|
async function h() {
|
|
1894
1950
|
let e = await o?.({ accept: ["images"] });
|
|
1895
1951
|
u.alive && e && i("update:modelValue", e.url);
|
|
@@ -1915,7 +1971,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1915
1971
|
enabled: S,
|
|
1916
1972
|
onFiles: E
|
|
1917
1973
|
});
|
|
1918
|
-
return (t, r) => (s(), y(
|
|
1974
|
+
return (t, r) => (s(), y(oa, {
|
|
1919
1975
|
label: e.field.label,
|
|
1920
1976
|
required: e.field.required,
|
|
1921
1977
|
"read-only": e.readOnly
|
|
@@ -1925,7 +1981,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1925
1981
|
ref: _,
|
|
1926
1982
|
class: "tpl:relative"
|
|
1927
1983
|
}, [
|
|
1928
|
-
S.value && (x(O) || v.value) ? (s(), m("div",
|
|
1984
|
+
S.value && (x(O) || v.value) ? (s(), m("div", ca, [v.value ? (s(), m(C, { key: 0 }, [g(x(yt), {
|
|
1929
1985
|
class: "tpl-spinner",
|
|
1930
1986
|
size: 18,
|
|
1931
1987
|
"stroke-width": 2
|
|
@@ -1941,14 +1997,14 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1941
1997
|
placeholder: e.field.placeholder || "https://...",
|
|
1942
1998
|
disabled: "",
|
|
1943
1999
|
title: x(a).customBlocks.dataSource.readOnlyTooltip
|
|
1944
|
-
}, null, 10,
|
|
2000
|
+
}, null, 10, la)) : (s(), m("input", {
|
|
1945
2001
|
key: 2,
|
|
1946
2002
|
type: "url",
|
|
1947
2003
|
class: n(x(G)),
|
|
1948
2004
|
value: e.modelValue,
|
|
1949
2005
|
placeholder: e.field.placeholder || "https://...",
|
|
1950
2006
|
onInput: r[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
1951
|
-
}, null, 42,
|
|
2007
|
+
}, null, 42, ua)),
|
|
1952
2008
|
f.value && !e.readOnly ? (s(), m("button", {
|
|
1953
2009
|
key: 3,
|
|
1954
2010
|
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)]",
|
|
@@ -1965,7 +2021,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1965
2021
|
"read-only"
|
|
1966
2022
|
]));
|
|
1967
2023
|
}
|
|
1968
|
-
}),
|
|
2024
|
+
}), fa = [
|
|
1969
2025
|
"value",
|
|
1970
2026
|
"placeholder",
|
|
1971
2027
|
"min",
|
|
@@ -1973,7 +2029,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1973
2029
|
"step",
|
|
1974
2030
|
"disabled",
|
|
1975
2031
|
"title"
|
|
1976
|
-
],
|
|
2032
|
+
], pa = /* @__PURE__ */ f({
|
|
1977
2033
|
__name: "NumberField",
|
|
1978
2034
|
props: {
|
|
1979
2035
|
field: {},
|
|
@@ -1983,7 +2039,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1983
2039
|
emits: ["update:modelValue"],
|
|
1984
2040
|
setup(e, { emit: t }) {
|
|
1985
2041
|
let r = t, { t: i } = U();
|
|
1986
|
-
return (t, a) => (s(), y(
|
|
2042
|
+
return (t, a) => (s(), y(oa, {
|
|
1987
2043
|
label: e.field.label,
|
|
1988
2044
|
required: e.field.required,
|
|
1989
2045
|
"read-only": e.readOnly
|
|
@@ -1999,7 +2055,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
1999
2055
|
disabled: e.readOnly,
|
|
2000
2056
|
title: e.readOnly ? x(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
2001
2057
|
onInput: a[0] ||= (t) => !e.readOnly && r("update:modelValue", Number(t.target.value))
|
|
2002
|
-
}, null, 42,
|
|
2058
|
+
}, null, 42, fa)]),
|
|
2003
2059
|
_: 1
|
|
2004
2060
|
}, 8, [
|
|
2005
2061
|
"label",
|
|
@@ -2007,10 +2063,10 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2007
2063
|
"read-only"
|
|
2008
2064
|
]));
|
|
2009
2065
|
}
|
|
2010
|
-
}),
|
|
2066
|
+
}), ma = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ha = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ga = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, _a = ["title", "onClick"], va = {
|
|
2011
2067
|
key: 1,
|
|
2012
2068
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
2013
|
-
},
|
|
2069
|
+
}, ya = /* @__PURE__ */ f({
|
|
2014
2070
|
__name: "RepeatableField",
|
|
2015
2071
|
props: {
|
|
2016
2072
|
field: {},
|
|
@@ -2038,25 +2094,25 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2038
2094
|
} : r);
|
|
2039
2095
|
a("update:modelValue", r);
|
|
2040
2096
|
}
|
|
2041
|
-
return (r, i) => (s(), y(
|
|
2097
|
+
return (r, i) => (s(), y(oa, {
|
|
2042
2098
|
label: t.field.label,
|
|
2043
2099
|
required: t.field.required,
|
|
2044
2100
|
"read-only": t.readOnly
|
|
2045
2101
|
}, {
|
|
2046
|
-
default: l(() => [p("div",
|
|
2102
|
+
default: l(() => [p("div", ma, [
|
|
2047
2103
|
(s(!0), m(C, null, e(d.value, (n, r) => (s(), m("div", {
|
|
2048
2104
|
key: `${t.field.key}-${r}`,
|
|
2049
2105
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
2050
|
-
}, [p("div",
|
|
2106
|
+
}, [p("div", ha, [p("span", ga, " #" + c(r + 1), 1), h.value && !t.readOnly ? (s(), m("button", {
|
|
2051
2107
|
key: 0,
|
|
2052
2108
|
type: "button",
|
|
2053
2109
|
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)]",
|
|
2054
2110
|
title: x(u).customBlocks.fields.removeItem,
|
|
2055
2111
|
onClick: (e) => v(r)
|
|
2056
|
-
}, [g(x(
|
|
2112
|
+
}, [g(x(Et), {
|
|
2057
2113
|
size: 12,
|
|
2058
2114
|
"stroke-width": 2
|
|
2059
|
-
})], 8,
|
|
2115
|
+
})], 8, _a)) : T("", !0)]), (s(!0), m(C, null, e(t.field.fields, (e) => (s(), y(o(x(Oa)(e.type)), {
|
|
2060
2116
|
key: e.key,
|
|
2061
2117
|
field: e,
|
|
2062
2118
|
"model-value": n[e.key],
|
|
@@ -2071,13 +2127,13 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2071
2127
|
f.value && !t.readOnly ? (s(), m("button", {
|
|
2072
2128
|
key: 0,
|
|
2073
2129
|
type: "button",
|
|
2074
|
-
class: n(x(
|
|
2130
|
+
class: n(x(Rt)),
|
|
2075
2131
|
onClick: _
|
|
2076
2132
|
}, [g(x(Q), {
|
|
2077
2133
|
size: 14,
|
|
2078
2134
|
"stroke-width": 2
|
|
2079
2135
|
}), b(" " + c(x(u).customBlocks.fields.addItem), 1)], 2)) : T("", !0),
|
|
2080
|
-
!f.value && !t.readOnly ? (s(), m("p",
|
|
2136
|
+
!f.value && !t.readOnly ? (s(), m("p", va, c(x(u).customBlocks.fields.maxItemsReached), 1)) : T("", !0)
|
|
2081
2137
|
])]),
|
|
2082
2138
|
_: 1
|
|
2083
2139
|
}, 8, [
|
|
@@ -2086,11 +2142,11 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2086
2142
|
"read-only"
|
|
2087
2143
|
]));
|
|
2088
2144
|
}
|
|
2089
|
-
}),
|
|
2145
|
+
}), ba = [
|
|
2090
2146
|
"value",
|
|
2091
2147
|
"disabled",
|
|
2092
2148
|
"title"
|
|
2093
|
-
],
|
|
2149
|
+
], xa = ["value"], Sa = /* @__PURE__ */ f({
|
|
2094
2150
|
__name: "SelectField",
|
|
2095
2151
|
props: {
|
|
2096
2152
|
field: {},
|
|
@@ -2100,7 +2156,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2100
2156
|
emits: ["update:modelValue"],
|
|
2101
2157
|
setup(t, { emit: r }) {
|
|
2102
2158
|
let i = r, { t: a } = U();
|
|
2103
|
-
return (r, o) => (s(), y(
|
|
2159
|
+
return (r, o) => (s(), y(oa, {
|
|
2104
2160
|
label: t.field.label,
|
|
2105
2161
|
required: t.field.required,
|
|
2106
2162
|
"read-only": t.readOnly
|
|
@@ -2114,7 +2170,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2114
2170
|
}, [(s(!0), m(C, null, e(t.field.options, (e) => (s(), m("option", {
|
|
2115
2171
|
key: e.value,
|
|
2116
2172
|
value: e.value
|
|
2117
|
-
}, c(e.label), 9,
|
|
2173
|
+
}, c(e.label), 9, xa))), 128))], 42, ba)]),
|
|
2118
2174
|
_: 1
|
|
2119
2175
|
}, 8, [
|
|
2120
2176
|
"label",
|
|
@@ -2122,11 +2178,11 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2122
2178
|
"read-only"
|
|
2123
2179
|
]));
|
|
2124
2180
|
}
|
|
2125
|
-
}),
|
|
2181
|
+
}), Ca = [
|
|
2126
2182
|
"value",
|
|
2127
2183
|
"placeholder",
|
|
2128
2184
|
"title"
|
|
2129
|
-
],
|
|
2185
|
+
], wa = /* @__PURE__ */ f({
|
|
2130
2186
|
__name: "TextField",
|
|
2131
2187
|
props: {
|
|
2132
2188
|
field: {},
|
|
@@ -2136,7 +2192,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2136
2192
|
emits: ["update:modelValue"],
|
|
2137
2193
|
setup(e, { emit: t }) {
|
|
2138
2194
|
let r = t, { t: i } = U();
|
|
2139
|
-
return (t, a) => (s(), y(
|
|
2195
|
+
return (t, a) => (s(), y(oa, {
|
|
2140
2196
|
label: e.field.label,
|
|
2141
2197
|
required: e.field.required,
|
|
2142
2198
|
"read-only": e.readOnly
|
|
@@ -2149,7 +2205,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2149
2205
|
placeholder: e.field.placeholder,
|
|
2150
2206
|
disabled: "",
|
|
2151
2207
|
title: x(i).customBlocks.dataSource.readOnlyTooltip
|
|
2152
|
-
}, null, 10,
|
|
2208
|
+
}, null, 10, Ca)) : (s(), y($, {
|
|
2153
2209
|
key: 1,
|
|
2154
2210
|
"model-value": e.modelValue,
|
|
2155
2211
|
placeholder: e.field.placeholder,
|
|
@@ -2162,12 +2218,12 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2162
2218
|
"read-only"
|
|
2163
2219
|
]));
|
|
2164
2220
|
}
|
|
2165
|
-
}),
|
|
2221
|
+
}), Ta = [
|
|
2166
2222
|
"value",
|
|
2167
2223
|
"placeholder",
|
|
2168
2224
|
"title"
|
|
2169
|
-
],
|
|
2170
|
-
text:
|
|
2225
|
+
], Ea = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", Da = {
|
|
2226
|
+
text: wa,
|
|
2171
2227
|
textarea: /* @__PURE__ */ f({
|
|
2172
2228
|
__name: "TextareaField",
|
|
2173
2229
|
props: {
|
|
@@ -2178,7 +2234,7 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2178
2234
|
emits: ["update:modelValue"],
|
|
2179
2235
|
setup(e, { emit: t }) {
|
|
2180
2236
|
let r = t, { t: i } = U();
|
|
2181
|
-
return (t, a) => (s(), y(
|
|
2237
|
+
return (t, a) => (s(), y(oa, {
|
|
2182
2238
|
label: e.field.label,
|
|
2183
2239
|
required: e.field.required,
|
|
2184
2240
|
"read-only": e.readOnly
|
|
@@ -2190,8 +2246,8 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2190
2246
|
rows: "3",
|
|
2191
2247
|
disabled: "",
|
|
2192
2248
|
title: x(i).customBlocks.dataSource.readOnlyTooltip,
|
|
2193
|
-
class: n(
|
|
2194
|
-
}, null, 8,
|
|
2249
|
+
class: n(Ea)
|
|
2250
|
+
}, null, 8, Ta)) : (s(), y(ir, {
|
|
2195
2251
|
key: 1,
|
|
2196
2252
|
"model-value": e.modelValue,
|
|
2197
2253
|
placeholder: e.field.placeholder,
|
|
@@ -2205,37 +2261,37 @@ var Nn = ["aria-label", "onKeydown"], Pn = ["data-tooltip"], Fn = ["data-tooltip
|
|
|
2205
2261
|
]));
|
|
2206
2262
|
}
|
|
2207
2263
|
}),
|
|
2208
|
-
image:
|
|
2209
|
-
color:
|
|
2210
|
-
number:
|
|
2211
|
-
select:
|
|
2212
|
-
boolean:
|
|
2213
|
-
repeatable:
|
|
2264
|
+
image: da,
|
|
2265
|
+
color: sa,
|
|
2266
|
+
number: pa,
|
|
2267
|
+
select: Sa,
|
|
2268
|
+
boolean: ra,
|
|
2269
|
+
repeatable: ya
|
|
2214
2270
|
};
|
|
2215
|
-
function
|
|
2216
|
-
return
|
|
2271
|
+
function Oa(e) {
|
|
2272
|
+
return Da[e] ?? wa;
|
|
2217
2273
|
}
|
|
2218
2274
|
//#endregion
|
|
2219
2275
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2220
|
-
var
|
|
2276
|
+
var ka = {
|
|
2221
2277
|
key: 0,
|
|
2222
2278
|
class: "tpl:p-4"
|
|
2223
|
-
},
|
|
2279
|
+
}, Aa = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ja = { key: 1 }, Ma = {
|
|
2224
2280
|
key: 0,
|
|
2225
2281
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
2226
|
-
},
|
|
2282
|
+
}, Na = {
|
|
2227
2283
|
key: 1,
|
|
2228
2284
|
class: "tpl:mb-4"
|
|
2229
|
-
},
|
|
2285
|
+
}, Pa = {
|
|
2230
2286
|
key: 1,
|
|
2231
2287
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
2232
|
-
},
|
|
2288
|
+
}, Fa = {
|
|
2233
2289
|
key: 0,
|
|
2234
2290
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2235
|
-
},
|
|
2291
|
+
}, Ia = {
|
|
2236
2292
|
key: 2,
|
|
2237
2293
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
2238
|
-
},
|
|
2294
|
+
}, La = /* @__PURE__ */ f({
|
|
2239
2295
|
__name: "CustomBlockToolbar",
|
|
2240
2296
|
props: { block: {} },
|
|
2241
2297
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
@@ -2256,23 +2312,23 @@ var Ca = {
|
|
|
2256
2312
|
[e]: t
|
|
2257
2313
|
});
|
|
2258
2314
|
}
|
|
2259
|
-
return (n, r) => u.value ? (s(), m("div",
|
|
2260
|
-
u.value.description ? (s(), m("p",
|
|
2261
|
-
x(_) ? (s(), m("div",
|
|
2315
|
+
return (n, r) => u.value ? (s(), m("div", ja, [
|
|
2316
|
+
u.value.description ? (s(), m("p", Ma, c(u.value.description), 1)) : T("", !0),
|
|
2317
|
+
x(_) ? (s(), m("div", Na, [x(v) && !x(d) ? (s(), m("button", {
|
|
2262
2318
|
key: 0,
|
|
2263
2319
|
type: "button",
|
|
2264
2320
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-md tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:bg-[var(--tpl-primary)]",
|
|
2265
2321
|
onClick: r[0] ||= (...e) => x(h) && x(h)(...e)
|
|
2266
|
-
}, c(u.value?.dataSource?.label || x(a).customBlocks.dataSource.fetchButton), 1)) : (s(), m("div",
|
|
2322
|
+
}, c(u.value?.dataSource?.label || x(a).customBlocks.dataSource.fetchButton), 1)) : (s(), m("div", Pa, [x(d) ? (s(), m("div", Fa, c(x(a).customBlocks.dataSource.fetching), 1)) : (s(), m("button", {
|
|
2267
2323
|
key: 1,
|
|
2268
2324
|
type: "button",
|
|
2269
2325
|
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)]",
|
|
2270
2326
|
onClick: r[1] ||= (...e) => x(h) && x(h)(...e)
|
|
2271
|
-
}, [g(x(ht), { size: 12 }), b(" " + c(x(a).customBlocks.dataSource.changeButton), 1)]))])), x(f) ? (s(), m("p",
|
|
2327
|
+
}, [g(x(ht), { size: 12 }), b(" " + c(x(a).customBlocks.dataSource.changeButton), 1)]))])), x(f) ? (s(), m("p", Ia, [g(x(lt), {
|
|
2272
2328
|
size: 14,
|
|
2273
2329
|
class: "tpl:shrink-0"
|
|
2274
2330
|
}), b(" " + c(x(a).customBlocks.dataSource.fetchError), 1)])) : T("", !0)])) : T("", !0),
|
|
2275
|
-
(s(!0), m(C, null, e(u.value.fields, (e) => (s(), y(o(x(
|
|
2331
|
+
(s(!0), m(C, null, e(u.value.fields, (e) => (s(), y(o(x(Oa)(e.type)), {
|
|
2276
2332
|
key: e.key,
|
|
2277
2333
|
field: e,
|
|
2278
2334
|
"model-value": t.block.fieldValues[e.key],
|
|
@@ -2284,9 +2340,9 @@ var Ca = {
|
|
|
2284
2340
|
"read-only",
|
|
2285
2341
|
"onUpdate:modelValue"
|
|
2286
2342
|
]))), 128))
|
|
2287
|
-
])) : (s(), m("div",
|
|
2343
|
+
])) : (s(), m("div", ka, [p("p", Aa, c(x(a).customBlocks.toolbar.noDefinition), 1)]));
|
|
2288
2344
|
}
|
|
2289
|
-
}),
|
|
2345
|
+
}), Ra = { class: "tpl:mb-3.5" }, za = { class: "tpl:mb-3.5" }, Ba = { class: "tpl:mb-3.5" }, Va = { class: "tpl:flex tpl:items-stretch" }, Ha = ["value"], Ua = /* @__PURE__ */ f({
|
|
2290
2346
|
__name: "DividerToolbar",
|
|
2291
2347
|
props: { block: {} },
|
|
2292
2348
|
emits: ["update"],
|
|
@@ -2296,7 +2352,7 @@ var Ca = {
|
|
|
2296
2352
|
r("update", { [e]: t });
|
|
2297
2353
|
}
|
|
2298
2354
|
return (t, r) => (s(), m(C, null, [
|
|
2299
|
-
p("div",
|
|
2355
|
+
p("div", Ra, [p("label", { class: n(x(K)) }, c(x(i).divider.style), 3), g(Ut, {
|
|
2300
2356
|
options: [
|
|
2301
2357
|
{
|
|
2302
2358
|
value: "solid",
|
|
@@ -2314,57 +2370,57 @@ var Ca = {
|
|
|
2314
2370
|
"model-value": e.block.lineStyle,
|
|
2315
2371
|
"onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
|
|
2316
2372
|
}, null, 8, ["options", "model-value"])]),
|
|
2317
|
-
p("div",
|
|
2373
|
+
p("div", za, [p("label", { class: n(x(K)) }, c(x(i).divider.color), 3), g(Y, {
|
|
2318
2374
|
"model-value": e.block.color,
|
|
2319
2375
|
"onUpdate:modelValue": r[1] ||= (e) => a("color", e)
|
|
2320
2376
|
}, null, 8, ["model-value"])]),
|
|
2321
|
-
p("div",
|
|
2377
|
+
p("div", Ba, [p("label", { class: n(x(K)) }, c(x(i).divider.thickness), 3), p("div", Va, [p("input", {
|
|
2322
2378
|
type: "number",
|
|
2323
2379
|
class: n(x(J)),
|
|
2324
2380
|
value: e.block.thickness,
|
|
2325
2381
|
min: "1",
|
|
2326
2382
|
max: "10",
|
|
2327
2383
|
onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
|
|
2328
|
-
}, null, 42,
|
|
2384
|
+
}, null, 42, Ha), p("span", { class: n(x(q)) }, "px", 2)])])
|
|
2329
2385
|
], 64));
|
|
2330
2386
|
}
|
|
2331
|
-
}),
|
|
2387
|
+
}), Wa = { class: "tpl:mb-3.5" }, Ga = ["value"], Ka = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, qa = /* @__PURE__ */ f({
|
|
2332
2388
|
__name: "HtmlToolbar",
|
|
2333
2389
|
props: { block: {} },
|
|
2334
2390
|
emits: ["update"],
|
|
2335
2391
|
setup(e, { emit: t }) {
|
|
2336
2392
|
let r = t, { t: i } = U();
|
|
2337
|
-
return (t, a) => (s(), m("div",
|
|
2393
|
+
return (t, a) => (s(), m("div", Wa, [
|
|
2338
2394
|
p("label", { class: n(x(K)) }, c(x(i).html.content), 3),
|
|
2339
2395
|
p("textarea", {
|
|
2340
2396
|
value: e.block.content,
|
|
2341
2397
|
placeholder: "<div>...</div>",
|
|
2342
2398
|
rows: "10",
|
|
2343
|
-
class: n(x(
|
|
2399
|
+
class: n(x(It)),
|
|
2344
2400
|
onInput: a[0] ||= (e) => r("update", { content: e.target.value })
|
|
2345
|
-
}, null, 42,
|
|
2346
|
-
p("p",
|
|
2401
|
+
}, null, 42, Ga),
|
|
2402
|
+
p("p", Ka, [g(x(_t), {
|
|
2347
2403
|
size: 12,
|
|
2348
2404
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2349
2405
|
}), b(" " + c(x(i).html.sanitizationHint), 1)])
|
|
2350
2406
|
]));
|
|
2351
2407
|
}
|
|
2352
|
-
}),
|
|
2408
|
+
}), Ja = { class: "tpl:mb-3.5" }, Ya = {
|
|
2353
2409
|
key: 0,
|
|
2354
2410
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
2355
2411
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
2356
|
-
},
|
|
2412
|
+
}, Xa = {
|
|
2357
2413
|
key: 0,
|
|
2358
2414
|
class: "tpl:mb-3.5"
|
|
2359
|
-
},
|
|
2415
|
+
}, Za = ["value", "placeholder"], Qa = { class: "tpl:mb-3.5" }, $a = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, eo = { class: "tpl:mb-3.5" }, to = ["value"], no = { value: "full" }, ro = { value: "custom" }, io = {
|
|
2360
2416
|
key: 0,
|
|
2361
2417
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2362
|
-
},
|
|
2418
|
+
}, ao = ["value"], oo = { class: "tpl:mb-3.5" }, so = { class: "tpl:mb-3.5" }, co = 350, lo = /* @__PURE__ */ f({
|
|
2363
2419
|
__name: "ImageToolbar",
|
|
2364
2420
|
props: { block: {} },
|
|
2365
2421
|
emits: ["update"],
|
|
2366
2422
|
setup(e, { emit: t }) {
|
|
2367
|
-
let r = e, i = t, { t: a } = U(), o = D(Re, null), u = D(We, B.liquid), f =
|
|
2423
|
+
let r = e, i = t, { t: a } = U(), o = D(Re, null), u = D(We, B.liquid), f = jt(), h = w(() => !!o), _ = d(!1), v = d(!1), { start: S } = Fe(() => {
|
|
2368
2424
|
_.value = !1;
|
|
2369
2425
|
}, 1e3, { immediate: !1 }), E = [
|
|
2370
2426
|
300,
|
|
@@ -2380,7 +2436,7 @@ var Ca = {
|
|
|
2380
2436
|
function A(e) {
|
|
2381
2437
|
if (e === "custom") {
|
|
2382
2438
|
let e = r.block.width;
|
|
2383
|
-
(typeof e != "number" || E.includes(e)) && k("width",
|
|
2439
|
+
(typeof e != "number" || E.includes(e)) && k("width", co);
|
|
2384
2440
|
return;
|
|
2385
2441
|
}
|
|
2386
2442
|
k("width", e === "full" ? "full" : Number(e));
|
|
@@ -2415,12 +2471,12 @@ var Ca = {
|
|
|
2415
2471
|
onFiles: R
|
|
2416
2472
|
});
|
|
2417
2473
|
return (t, r) => (s(), m(C, null, [
|
|
2418
|
-
p("div",
|
|
2474
|
+
p("div", Ja, [p("label", { class: n(x(K)) }, c(x(a).image.imageUrl), 3), p("div", {
|
|
2419
2475
|
ref_key: "dropZoneRef",
|
|
2420
2476
|
ref: N,
|
|
2421
2477
|
class: "tpl:relative"
|
|
2422
2478
|
}, [
|
|
2423
|
-
L.value && (x(z) || P.value) ? (s(), m("div",
|
|
2479
|
+
L.value && (x(z) || P.value) ? (s(), m("div", Ya, [P.value ? (s(), m(C, { key: 0 }, [g(x(yt), {
|
|
2424
2480
|
class: "tpl-spinner",
|
|
2425
2481
|
size: 18,
|
|
2426
2482
|
"stroke-width": 2
|
|
@@ -2453,14 +2509,14 @@ var Ca = {
|
|
|
2453
2509
|
"stroke-width": 1.5
|
|
2454
2510
|
}), b(" " + c(x(a).image.browseMedia), 1)])) : T("", !0)
|
|
2455
2511
|
], 512)]),
|
|
2456
|
-
x(V)(e.block.src, x(u)) ? (s(), m("div",
|
|
2512
|
+
x(V)(e.block.src, x(u)) ? (s(), m("div", Xa, [p("label", { class: n(x(K)) }, [b(c(x(a).image.placeholderUrl) + " ", 1), r[9] ||= p("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, c("(optional)"), -1)], 2), p("input", {
|
|
2457
2513
|
type: "url",
|
|
2458
2514
|
class: n(x(G)),
|
|
2459
2515
|
value: e.block.placeholderUrl || "",
|
|
2460
2516
|
placeholder: x(a).image.placeholderUrlPlaceholder,
|
|
2461
2517
|
onInput: r[1] ||= (e) => k("placeholderUrl", e.target.value)
|
|
2462
|
-
}, null, 42,
|
|
2463
|
-
p("div",
|
|
2518
|
+
}, null, 42, Za)])) : T("", !0),
|
|
2519
|
+
p("div", Qa, [
|
|
2464
2520
|
p("label", { class: n(x(K)) }, c(x(a).image.altText), 3),
|
|
2465
2521
|
g($, {
|
|
2466
2522
|
"model-value": e.block.alt,
|
|
@@ -2481,32 +2537,32 @@ var Ca = {
|
|
|
2481
2537
|
label: x(a).image.decorative,
|
|
2482
2538
|
"onUpdate:modelValue": r[3] ||= (e) => k("decorative", e)
|
|
2483
2539
|
}, {
|
|
2484
|
-
default: l(() => [p("span", null, [b(c(x(a).image.decorative) + " ", 1), p("span",
|
|
2540
|
+
default: l(() => [p("span", null, [b(c(x(a).image.decorative) + " ", 1), p("span", $a, c(x(a).image.decorativeHint), 1)])]),
|
|
2485
2541
|
_: 1
|
|
2486
2542
|
}, 8, ["model-value", "label"])
|
|
2487
2543
|
]),
|
|
2488
|
-
p("div",
|
|
2544
|
+
p("div", eo, [
|
|
2489
2545
|
p("label", { class: n(x(K)) }, c(x(a).image.width), 3),
|
|
2490
2546
|
p("select", {
|
|
2491
2547
|
class: n(x(G)),
|
|
2492
2548
|
value: O.value,
|
|
2493
2549
|
onChange: r[4] ||= (e) => A(e.target.value)
|
|
2494
2550
|
}, [
|
|
2495
|
-
p("option",
|
|
2551
|
+
p("option", no, c(x(a).image.fullWidth), 1),
|
|
2496
2552
|
r[10] ||= p("option", { value: "300" }, "300px", -1),
|
|
2497
2553
|
r[11] ||= p("option", { value: "400" }, "400px", -1),
|
|
2498
2554
|
r[12] ||= p("option", { value: "500" }, "500px", -1),
|
|
2499
|
-
p("option",
|
|
2500
|
-
], 42,
|
|
2501
|
-
O.value === "custom" ? (s(), m("div",
|
|
2555
|
+
p("option", ro, c(x(a).image.widthCustom), 1)
|
|
2556
|
+
], 42, to),
|
|
2557
|
+
O.value === "custom" ? (s(), m("div", io, [p("input", {
|
|
2502
2558
|
type: "number",
|
|
2503
2559
|
class: n(x(J)),
|
|
2504
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2560
|
+
value: typeof e.block.width == "number" ? e.block.width : co,
|
|
2505
2561
|
min: "20",
|
|
2506
2562
|
onInput: r[5] ||= (e) => j(e.target.value)
|
|
2507
|
-
}, null, 42,
|
|
2563
|
+
}, null, 42, ao), p("span", { class: n(x(q)) }, "px", 2)])) : T("", !0)
|
|
2508
2564
|
]),
|
|
2509
|
-
p("div",
|
|
2565
|
+
p("div", oo, [p("label", { class: n(x(K)) }, c(x(a).title.align), 3), g(Ut, {
|
|
2510
2566
|
options: [
|
|
2511
2567
|
{
|
|
2512
2568
|
value: "left",
|
|
@@ -2524,7 +2580,7 @@ var Ca = {
|
|
|
2524
2580
|
"model-value": e.block.align,
|
|
2525
2581
|
"onUpdate:modelValue": r[6] ||= (e) => k("align", e)
|
|
2526
2582
|
}, null, 8, ["options", "model-value"])]),
|
|
2527
|
-
p("div",
|
|
2583
|
+
p("div", so, [
|
|
2528
2584
|
p("label", { class: n(x(K)) }, c(x(a).image.linkUrl), 3),
|
|
2529
2585
|
g($, {
|
|
2530
2586
|
"model-value": e.block.linkUrl || "",
|
|
@@ -2542,11 +2598,11 @@ var Ca = {
|
|
|
2542
2598
|
])
|
|
2543
2599
|
], 64));
|
|
2544
2600
|
}
|
|
2545
|
-
}),
|
|
2601
|
+
}), uo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, fo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, po = [
|
|
2546
2602
|
"value",
|
|
2547
2603
|
"placeholder",
|
|
2548
2604
|
"onInput"
|
|
2549
|
-
],
|
|
2605
|
+
], mo = ["title", "onClick"], ho = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, go = { class: "tpl:flex tpl:items-center tpl:gap-2" }, _o = ["value"], vo = { value: "" }, yo = ["value"], bo = ["value"], xo = /* @__PURE__ */ f({
|
|
2550
2606
|
__name: "MenuToolbar",
|
|
2551
2607
|
props: {
|
|
2552
2608
|
block: {},
|
|
@@ -2571,17 +2627,17 @@ var Ca = {
|
|
|
2571
2627
|
{
|
|
2572
2628
|
value: "left",
|
|
2573
2629
|
label: o.title.alignLeft,
|
|
2574
|
-
icon:
|
|
2630
|
+
icon: Tt
|
|
2575
2631
|
},
|
|
2576
2632
|
{
|
|
2577
2633
|
value: "center",
|
|
2578
2634
|
label: o.title.alignCenter,
|
|
2579
|
-
icon:
|
|
2635
|
+
icon: wt
|
|
2580
2636
|
},
|
|
2581
2637
|
{
|
|
2582
2638
|
value: "right",
|
|
2583
2639
|
label: o.title.alignRight,
|
|
2584
|
-
icon:
|
|
2640
|
+
icon: Ct
|
|
2585
2641
|
}
|
|
2586
2642
|
]);
|
|
2587
2643
|
function f(e, t) {
|
|
@@ -2610,24 +2666,24 @@ var Ca = {
|
|
|
2610
2666
|
}
|
|
2611
2667
|
return (r, i) => (s(), m(C, null, [
|
|
2612
2668
|
g(Z, { label: x(o).menu.items }, {
|
|
2613
|
-
default: l(() => [p("div",
|
|
2669
|
+
default: l(() => [p("div", uo, [(s(!0), m(C, null, e(t.block.items, (r) => (s(), m("div", {
|
|
2614
2670
|
key: r.id,
|
|
2615
2671
|
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"
|
|
2616
2672
|
}, [
|
|
2617
|
-
p("div",
|
|
2673
|
+
p("div", fo, [p("input", {
|
|
2618
2674
|
type: "text",
|
|
2619
2675
|
class: n([x(G), "tpl:flex-1"]),
|
|
2620
2676
|
value: r.text,
|
|
2621
2677
|
placeholder: x(o).menu.text,
|
|
2622
2678
|
onInput: (e) => _(r.id, "text", e.target.value)
|
|
2623
|
-
}, null, 42,
|
|
2624
|
-
class: n(x(
|
|
2679
|
+
}, null, 42, po), p("button", {
|
|
2680
|
+
class: n(x(Ft)),
|
|
2625
2681
|
title: x(o).menu.removeItem,
|
|
2626
2682
|
onClick: (e) => v(r.id)
|
|
2627
|
-
}, [g(x(
|
|
2683
|
+
}, [g(x(Dt), {
|
|
2628
2684
|
size: 14,
|
|
2629
2685
|
"stroke-width": 2
|
|
2630
|
-
})], 10,
|
|
2686
|
+
})], 10, mo)]),
|
|
2631
2687
|
g($, {
|
|
2632
2688
|
"model-value": r.url,
|
|
2633
2689
|
type: "url",
|
|
@@ -2638,7 +2694,7 @@ var Ca = {
|
|
|
2638
2694
|
"placeholder",
|
|
2639
2695
|
"onUpdate:modelValue"
|
|
2640
2696
|
]),
|
|
2641
|
-
p("div",
|
|
2697
|
+
p("div", ho, [(s(!0), m(C, null, e(u.value, (e) => (s(), y(X, {
|
|
2642
2698
|
key: e.key,
|
|
2643
2699
|
"model-value": r[e.key],
|
|
2644
2700
|
label: e.label,
|
|
@@ -2648,13 +2704,13 @@ var Ca = {
|
|
|
2648
2704
|
"label",
|
|
2649
2705
|
"onUpdate:modelValue"
|
|
2650
2706
|
]))), 128))]),
|
|
2651
|
-
p("div",
|
|
2707
|
+
p("div", go, [p("label", { class: n([x(K), "tpl:!mb-0"]) }, c(x(o).menu.color), 3), g(Y, {
|
|
2652
2708
|
"swatch-only": "",
|
|
2653
2709
|
"model-value": r.color || t.block.linkColor || t.block.color || "",
|
|
2654
2710
|
"onUpdate:modelValue": (e) => _(r.id, "color", e)
|
|
2655
2711
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2656
2712
|
]))), 128)), p("button", {
|
|
2657
|
-
class: n(x(
|
|
2713
|
+
class: n(x(Rt)),
|
|
2658
2714
|
onClick: h
|
|
2659
2715
|
}, [g(x(Q), {
|
|
2660
2716
|
size: 14,
|
|
@@ -2667,14 +2723,14 @@ var Ca = {
|
|
|
2667
2723
|
class: n(x(G)),
|
|
2668
2724
|
value: t.block.fontFamily || "",
|
|
2669
2725
|
onChange: i[0] ||= (e) => f("fontFamily", e.target.value || void 0)
|
|
2670
|
-
}, [p("option",
|
|
2726
|
+
}, [p("option", vo, c(x(o).title.inheritFont), 1), (s(!0), m(C, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
2671
2727
|
key: e.value,
|
|
2672
2728
|
value: e.value
|
|
2673
|
-
}, c(e.label), 9,
|
|
2729
|
+
}, c(e.label), 9, yo))), 128))], 42, _o)]),
|
|
2674
2730
|
_: 1
|
|
2675
2731
|
}, 8, ["label"]),
|
|
2676
2732
|
g(Z, { label: x(o).menu.fontSize }, {
|
|
2677
|
-
default: l(() => [g(
|
|
2733
|
+
default: l(() => [g(Wt, {
|
|
2678
2734
|
"model-value": t.block.fontSize,
|
|
2679
2735
|
min: 8,
|
|
2680
2736
|
max: 48,
|
|
@@ -2698,7 +2754,7 @@ var Ca = {
|
|
|
2698
2754
|
_: 1
|
|
2699
2755
|
}, 8, ["label"]),
|
|
2700
2756
|
g(Z, { label: x(o).menu.textAlign }, {
|
|
2701
|
-
default: l(() => [g(
|
|
2757
|
+
default: l(() => [g(Ut, {
|
|
2702
2758
|
options: d.value,
|
|
2703
2759
|
"model-value": t.block.textAlign,
|
|
2704
2760
|
"onUpdate:modelValue": i[4] ||= (e) => f("textAlign", e)
|
|
@@ -2711,7 +2767,7 @@ var Ca = {
|
|
|
2711
2767
|
class: n(x(G)),
|
|
2712
2768
|
value: t.block.separator,
|
|
2713
2769
|
onInput: i[5] ||= (e) => f("separator", e.target.value)
|
|
2714
|
-
}, null, 42,
|
|
2770
|
+
}, null, 42, bo)]),
|
|
2715
2771
|
_: 1
|
|
2716
2772
|
}, 8, ["label"]),
|
|
2717
2773
|
g(Z, { label: x(o).menu.separatorColor }, {
|
|
@@ -2722,7 +2778,7 @@ var Ca = {
|
|
|
2722
2778
|
_: 1
|
|
2723
2779
|
}, 8, ["label"]),
|
|
2724
2780
|
g(Z, { label: x(o).menu.spacing }, {
|
|
2725
|
-
default: l(() => [g(
|
|
2781
|
+
default: l(() => [g(Wt, {
|
|
2726
2782
|
"model-value": t.block.spacing,
|
|
2727
2783
|
min: 0,
|
|
2728
2784
|
max: 50,
|
|
@@ -2736,11 +2792,11 @@ var Ca = {
|
|
|
2736
2792
|
});
|
|
2737
2793
|
//#endregion
|
|
2738
2794
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
2739
|
-
function
|
|
2795
|
+
function So(e) {
|
|
2740
2796
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
2741
2797
|
}
|
|
2742
|
-
function
|
|
2743
|
-
let n =
|
|
2798
|
+
function Co(e, t) {
|
|
2799
|
+
let n = So(t);
|
|
2744
2800
|
if (e.length === n) return e;
|
|
2745
2801
|
if (e.length < n) {
|
|
2746
2802
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2751,13 +2807,13 @@ function _o(e, t) {
|
|
|
2751
2807
|
}
|
|
2752
2808
|
//#endregion
|
|
2753
2809
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2754
|
-
var
|
|
2810
|
+
var wo = { class: "tpl:mb-3.5" }, To = ["value"], Eo = ["value"], Do = {
|
|
2755
2811
|
key: 0,
|
|
2756
2812
|
class: "tpl:mb-3.5"
|
|
2757
|
-
},
|
|
2813
|
+
}, Oo = { class: "tpl:mb-3.5" }, ko = { class: "tpl:flex tpl:items-stretch" }, Ao = ["value"], jo = { class: "tpl:mb-3.5" }, Mo = {
|
|
2758
2814
|
key: 0,
|
|
2759
2815
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2760
|
-
},
|
|
2816
|
+
}, No = { class: "tpl:flex tpl:items-stretch" }, Po = ["value"], Fo = /* @__PURE__ */ f({
|
|
2761
2817
|
__name: "SectionToolbar",
|
|
2762
2818
|
props: { block: {} },
|
|
2763
2819
|
emits: ["update"],
|
|
@@ -2785,7 +2841,7 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
2785
2841
|
}
|
|
2786
2842
|
]);
|
|
2787
2843
|
function u(e) {
|
|
2788
|
-
let t = e.target.value, n =
|
|
2844
|
+
let t = e.target.value, n = Co(i.block.children, t);
|
|
2789
2845
|
a("update", {
|
|
2790
2846
|
columns: t,
|
|
2791
2847
|
children: n
|
|
@@ -2819,39 +2875,39 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
2819
2875
|
_({ borderRadius: Number(e.target.value) });
|
|
2820
2876
|
}
|
|
2821
2877
|
return (r, i) => (s(), m(C, null, [
|
|
2822
|
-
p("div",
|
|
2878
|
+
p("div", wo, [p("label", { class: n(x(K)) }, c(x(o).section.columns), 3), p("select", {
|
|
2823
2879
|
class: n(x(G)),
|
|
2824
2880
|
value: t.block.columns,
|
|
2825
2881
|
onChange: u
|
|
2826
2882
|
}, [(s(!0), m(C, null, e(l.value, (e) => (s(), m("option", {
|
|
2827
2883
|
key: e.value,
|
|
2828
2884
|
value: e.value
|
|
2829
|
-
}, c(e.label), 9,
|
|
2830
|
-
t.block.columns === "1" ? T("", !0) : (s(), m("div",
|
|
2885
|
+
}, c(e.label), 9, Eo))), 128))], 42, To)]),
|
|
2886
|
+
t.block.columns === "1" ? T("", !0) : (s(), m("div", Do, [g(X, {
|
|
2831
2887
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2832
2888
|
"model-value": t.block.stackOnMobile !== !1,
|
|
2833
2889
|
label: x(o).section.stackOnMobile,
|
|
2834
2890
|
"onUpdate:modelValue": i[0] ||= (e) => d(e)
|
|
2835
2891
|
}, null, 8, ["model-value", "label"])])),
|
|
2836
|
-
p("div",
|
|
2892
|
+
p("div", Oo, [p("label", { class: n(x(K)) }, c(x(o).section.borderRadius), 3), p("div", ko, [p("input", {
|
|
2837
2893
|
type: "number",
|
|
2838
2894
|
class: n(x(J)),
|
|
2839
2895
|
value: t.block.borderRadius ?? 0,
|
|
2840
2896
|
min: "0",
|
|
2841
2897
|
max: "50",
|
|
2842
2898
|
onInput: f
|
|
2843
|
-
}, null, 42,
|
|
2844
|
-
p("div",
|
|
2899
|
+
}, null, 42, Ao), p("span", { class: n(x(q)) }, "px", 2)])]),
|
|
2900
|
+
p("div", jo, [g(X, {
|
|
2845
2901
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2846
2902
|
"model-value": !!t.block.wrapper,
|
|
2847
2903
|
label: x(o).section.wrapperEnable,
|
|
2848
2904
|
"onUpdate:modelValue": i[1] ||= (e) => h(e)
|
|
2849
|
-
}, null, 8, ["model-value", "label"]), t.block.wrapper ? (s(), m("div",
|
|
2905
|
+
}, null, 8, ["model-value", "label"]), t.block.wrapper ? (s(), m("div", Mo, [
|
|
2850
2906
|
p("div", null, [p("label", { class: n(x(K)) }, c(x(o).blockSettings.color), 3), g(Y, {
|
|
2851
2907
|
"model-value": t.block.wrapper.backgroundColor ?? "",
|
|
2852
2908
|
"onUpdate:modelValue": i[2] ||= (e) => _({ backgroundColor: e })
|
|
2853
2909
|
}, null, 8, ["model-value"])]),
|
|
2854
|
-
g(
|
|
2910
|
+
g(Pi, {
|
|
2855
2911
|
label: x(o).blockSettings.padding,
|
|
2856
2912
|
"model-value": t.block.wrapper.padding ?? {
|
|
2857
2913
|
top: 0,
|
|
@@ -2861,18 +2917,18 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
2861
2917
|
},
|
|
2862
2918
|
"onUpdate:modelValue": v
|
|
2863
2919
|
}, null, 8, ["label", "model-value"]),
|
|
2864
|
-
p("div", null, [p("label", { class: n(x(K)) }, c(x(o).section.borderRadius), 3), p("div",
|
|
2920
|
+
p("div", null, [p("label", { class: n(x(K)) }, c(x(o).section.borderRadius), 3), p("div", No, [p("input", {
|
|
2865
2921
|
type: "number",
|
|
2866
2922
|
class: n(x(J)),
|
|
2867
2923
|
value: t.block.wrapper.borderRadius ?? 0,
|
|
2868
2924
|
min: "0",
|
|
2869
2925
|
max: "50",
|
|
2870
2926
|
onInput: y
|
|
2871
|
-
}, null, 42,
|
|
2927
|
+
}, null, 42, Po), p("span", { class: n(x(q)) }, "px", 2)])])
|
|
2872
2928
|
])) : T("", !0)])
|
|
2873
2929
|
], 64));
|
|
2874
2930
|
}
|
|
2875
|
-
}),
|
|
2931
|
+
}), Io = { class: "tpl:mb-3.5" }, Lo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ro = { class: "tpl:flex tpl:items-center tpl:gap-2" }, zo = ["value", "onChange"], Bo = ["value"], Vo = ["title", "onClick"], Ho = { class: "tpl:mb-3.5" }, Uo = ["value"], Wo = { value: "solid" }, Go = { value: "outlined" }, Ko = { value: "rounded" }, qo = { value: "square" }, Jo = { value: "circle" }, Yo = { class: "tpl:mb-3.5" }, Xo = { class: "tpl:mb-3.5" }, Zo = { class: "tpl:flex tpl:items-stretch" }, Qo = ["value"], $o = { class: "tpl:mb-3.5" }, es = /* @__PURE__ */ f({
|
|
2876
2932
|
__name: "SocialToolbar",
|
|
2877
2933
|
props: { block: {} },
|
|
2878
2934
|
emits: ["update"],
|
|
@@ -2900,10 +2956,10 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
2900
2956
|
a("update", { icons: i.block.icons.filter((t) => t.id !== e) });
|
|
2901
2957
|
}
|
|
2902
2958
|
return (r, i) => (s(), m(C, null, [
|
|
2903
|
-
p("div",
|
|
2959
|
+
p("div", Io, [p("label", { class: n(x(K)) }, c(x(o).social.icons), 3), p("div", Lo, [(s(!0), m(C, null, e(t.block.icons, (t) => (s(), m("div", {
|
|
2904
2960
|
key: t.id,
|
|
2905
2961
|
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"
|
|
2906
|
-
}, [p("div",
|
|
2962
|
+
}, [p("div", Ro, [p("select", {
|
|
2907
2963
|
"data-testid": "social-platform-select",
|
|
2908
2964
|
class: n([x(G), "tpl:flex-1"]),
|
|
2909
2965
|
value: t.platform,
|
|
@@ -2911,14 +2967,14 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
2911
2967
|
}, [(s(!0), m(C, null, e(x(we), (e) => (s(), m("option", {
|
|
2912
2968
|
key: e,
|
|
2913
2969
|
value: e
|
|
2914
|
-
}, c(x(o).social.platforms[e]), 9,
|
|
2915
|
-
class: n(x(
|
|
2970
|
+
}, c(x(o).social.platforms[e]), 9, Bo))), 128))], 42, zo), p("button", {
|
|
2971
|
+
class: n(x(Ft)),
|
|
2916
2972
|
title: x(o).social.removeIcon,
|
|
2917
2973
|
onClick: (e) => f(t.id)
|
|
2918
|
-
}, [g(x(
|
|
2974
|
+
}, [g(x(Dt), {
|
|
2919
2975
|
size: 14,
|
|
2920
2976
|
"stroke-width": 2
|
|
2921
|
-
})], 10,
|
|
2977
|
+
})], 10, Vo)]), g($, {
|
|
2922
2978
|
"model-value": t.url,
|
|
2923
2979
|
type: "url",
|
|
2924
2980
|
placeholder: x(o).social.urlPlaceholder,
|
|
@@ -2928,24 +2984,24 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
2928
2984
|
"placeholder",
|
|
2929
2985
|
"onUpdate:modelValue"
|
|
2930
2986
|
])]))), 128)), p("button", {
|
|
2931
|
-
class: n(x(
|
|
2987
|
+
class: n(x(Rt)),
|
|
2932
2988
|
onClick: u
|
|
2933
2989
|
}, [g(x(Q), {
|
|
2934
2990
|
size: 14,
|
|
2935
2991
|
"stroke-width": 2
|
|
2936
2992
|
}), b(" " + c(x(o).social.addIcon), 1)], 2)])]),
|
|
2937
|
-
p("div",
|
|
2993
|
+
p("div", Ho, [p("label", { class: n(x(K)) }, c(x(o).social.style), 3), p("select", {
|
|
2938
2994
|
class: n(x(G)),
|
|
2939
2995
|
value: t.block.iconStyle,
|
|
2940
2996
|
onChange: i[0] ||= (e) => l("iconStyle", e.target.value)
|
|
2941
2997
|
}, [
|
|
2942
|
-
p("option",
|
|
2943
|
-
p("option",
|
|
2944
|
-
p("option",
|
|
2945
|
-
p("option",
|
|
2946
|
-
p("option",
|
|
2947
|
-
], 42,
|
|
2948
|
-
p("div",
|
|
2998
|
+
p("option", Wo, c(x(o).social.styleSolid), 1),
|
|
2999
|
+
p("option", Go, c(x(o).social.styleOutlined), 1),
|
|
3000
|
+
p("option", Ko, c(x(o).social.styleRounded), 1),
|
|
3001
|
+
p("option", qo, c(x(o).social.styleSquare), 1),
|
|
3002
|
+
p("option", Jo, c(x(o).social.styleCircle), 1)
|
|
3003
|
+
], 42, Uo)]),
|
|
3004
|
+
p("div", Yo, [p("label", { class: n(x(K)) }, c(x(o).social.size), 3), g(Ut, {
|
|
2949
3005
|
options: [
|
|
2950
3006
|
{
|
|
2951
3007
|
value: "small",
|
|
@@ -2963,30 +3019,30 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
2963
3019
|
"model-value": t.block.iconSize,
|
|
2964
3020
|
"onUpdate:modelValue": i[1] ||= (e) => l("iconSize", e)
|
|
2965
3021
|
}, null, 8, ["options", "model-value"])]),
|
|
2966
|
-
p("div",
|
|
3022
|
+
p("div", Xo, [p("label", { class: n(x(K)) }, c(x(o).social.spacing), 3), p("div", Zo, [p("input", {
|
|
2967
3023
|
type: "number",
|
|
2968
3024
|
class: n(x(J)),
|
|
2969
3025
|
value: t.block.spacing,
|
|
2970
3026
|
min: "0",
|
|
2971
3027
|
max: "50",
|
|
2972
3028
|
onInput: i[2] ||= (e) => l("spacing", Number(e.target.value))
|
|
2973
|
-
}, null, 42,
|
|
2974
|
-
p("div",
|
|
3029
|
+
}, null, 42, Qo), p("span", { class: n(x(q)) }, "px", 2)])]),
|
|
3030
|
+
p("div", $o, [p("label", { class: n(x(K)) }, c(x(o).social.align), 3), g(Ut, {
|
|
2975
3031
|
options: [
|
|
2976
3032
|
{
|
|
2977
3033
|
value: "left",
|
|
2978
3034
|
label: x(o).title.alignLeft,
|
|
2979
|
-
icon: x(
|
|
3035
|
+
icon: x(Tt)
|
|
2980
3036
|
},
|
|
2981
3037
|
{
|
|
2982
3038
|
value: "center",
|
|
2983
3039
|
label: x(o).title.alignCenter,
|
|
2984
|
-
icon: x(
|
|
3040
|
+
icon: x(wt)
|
|
2985
3041
|
},
|
|
2986
3042
|
{
|
|
2987
3043
|
value: "right",
|
|
2988
3044
|
label: x(o).title.alignRight,
|
|
2989
|
-
icon: x(
|
|
3045
|
+
icon: x(Ct)
|
|
2990
3046
|
}
|
|
2991
3047
|
],
|
|
2992
3048
|
"model-value": t.block.align,
|
|
@@ -2994,22 +3050,22 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
2994
3050
|
}, null, 8, ["options", "model-value"])])
|
|
2995
3051
|
], 64));
|
|
2996
3052
|
}
|
|
2997
|
-
}),
|
|
3053
|
+
}), ts = { class: "tpl:mb-3.5" }, ns = { class: "tpl:flex tpl:items-stretch" }, rs = ["value"], is = ["value"], as = /* @__PURE__ */ f({
|
|
2998
3054
|
__name: "SpacerToolbar",
|
|
2999
3055
|
props: { block: {} },
|
|
3000
3056
|
emits: ["update"],
|
|
3001
3057
|
setup(e, { emit: t }) {
|
|
3002
3058
|
let r = t, { t: i } = U();
|
|
3003
|
-
return (t, a) => (s(), m("div",
|
|
3059
|
+
return (t, a) => (s(), m("div", ts, [
|
|
3004
3060
|
p("label", { class: n(x(K)) }, c(x(i).spacer.height), 3),
|
|
3005
|
-
p("div",
|
|
3061
|
+
p("div", ns, [p("input", {
|
|
3006
3062
|
type: "number",
|
|
3007
3063
|
class: n(x(J)),
|
|
3008
3064
|
value: e.block.height,
|
|
3009
3065
|
min: "10",
|
|
3010
3066
|
max: "100",
|
|
3011
3067
|
onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
3012
|
-
}, null, 42,
|
|
3068
|
+
}, null, 42, rs), p("span", { class: n(x(q)) }, "px", 2)]),
|
|
3013
3069
|
p("input", {
|
|
3014
3070
|
type: "range",
|
|
3015
3071
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -3017,13 +3073,13 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3017
3073
|
min: "10",
|
|
3018
3074
|
max: "100",
|
|
3019
3075
|
onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
3020
|
-
}, null, 40,
|
|
3076
|
+
}, null, 40, is)
|
|
3021
3077
|
]));
|
|
3022
3078
|
}
|
|
3023
|
-
}),
|
|
3079
|
+
}), os = { class: "tpl:mb-3.5" }, ss = { class: "tpl:flex tpl:items-center tpl:gap-3" }, cs = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ls = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, us = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ds = ["disabled"], fs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ps = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ms = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, hs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, gs = ["disabled"], _s = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, vs = { class: "tpl:mb-3.5" }, ys = {
|
|
3024
3080
|
key: 0,
|
|
3025
3081
|
class: "tpl:mb-3.5"
|
|
3026
|
-
},
|
|
3082
|
+
}, bs = { class: "tpl:mb-3.5" }, xs = { class: "tpl:mb-3.5" }, Ss = { class: "tpl:flex tpl:items-stretch" }, Cs = ["value"], ws = { class: "tpl:mb-3.5" }, Ts = { class: "tpl:flex tpl:items-stretch" }, Es = ["value"], Ds = { class: "tpl:mb-3.5" }, Os = ["value"], ks = { value: "" }, As = ["value"], js = { class: "tpl:mb-3.5" }, Ms = { class: "tpl:flex tpl:items-stretch" }, Ns = ["value"], Ps = { class: "tpl:mb-3.5" }, Fs = { class: "tpl:mb-3.5" }, Is = /* @__PURE__ */ f({
|
|
3027
3083
|
__name: "TableToolbar",
|
|
3028
3084
|
props: {
|
|
3029
3085
|
block: {},
|
|
@@ -3066,7 +3122,7 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3066
3122
|
a("update", { rows: t });
|
|
3067
3123
|
}
|
|
3068
3124
|
return (r, i) => (s(), m(C, null, [
|
|
3069
|
-
p("div",
|
|
3125
|
+
p("div", os, [p("label", { class: n(x(K)) }, c(x(o).table.dimensions), 3), p("div", ss, [p("div", cs, [p("span", ls, c(x(o).table.rows), 1), p("div", us, [
|
|
3070
3126
|
p("button", {
|
|
3071
3127
|
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",
|
|
3072
3128
|
disabled: t.block.rows.length <= 1,
|
|
@@ -3074,8 +3130,8 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3074
3130
|
}, [g(x(ut), {
|
|
3075
3131
|
size: 12,
|
|
3076
3132
|
"stroke-width": 2
|
|
3077
|
-
})], 8,
|
|
3078
|
-
p("span",
|
|
3133
|
+
})], 8, ds),
|
|
3134
|
+
p("span", fs, c(t.block.rows.length), 1),
|
|
3079
3135
|
p("button", {
|
|
3080
3136
|
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)]",
|
|
3081
3137
|
onClick: d
|
|
@@ -3083,7 +3139,7 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3083
3139
|
size: 12,
|
|
3084
3140
|
"stroke-width": 2
|
|
3085
3141
|
})])
|
|
3086
|
-
])]), p("div",
|
|
3142
|
+
])]), p("div", ps, [p("span", ms, c(x(o).table.columns), 1), p("div", hs, [
|
|
3087
3143
|
p("button", {
|
|
3088
3144
|
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",
|
|
3089
3145
|
disabled: l.value <= 1,
|
|
@@ -3091,8 +3147,8 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3091
3147
|
}, [g(x(ut), {
|
|
3092
3148
|
size: 12,
|
|
3093
3149
|
"stroke-width": 2
|
|
3094
|
-
})], 8,
|
|
3095
|
-
p("span",
|
|
3150
|
+
})], 8, gs),
|
|
3151
|
+
p("span", _s, c(l.value), 1),
|
|
3096
3152
|
p("button", {
|
|
3097
3153
|
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)]",
|
|
3098
3154
|
onClick: h
|
|
@@ -3101,15 +3157,15 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3101
3157
|
"stroke-width": 2
|
|
3102
3158
|
})])
|
|
3103
3159
|
])])])]),
|
|
3104
|
-
p("div",
|
|
3160
|
+
p("div", vs, [g(X, {
|
|
3105
3161
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
3106
3162
|
"model-value": t.block.hasHeaderRow,
|
|
3107
3163
|
label: x(o).table.hasHeaderRow,
|
|
3108
3164
|
"onUpdate:modelValue": i[2] ||= (e) => u("hasHeaderRow", e)
|
|
3109
3165
|
}, null, 8, ["model-value", "label"])]),
|
|
3110
|
-
t.block.hasHeaderRow ? (s(), m("div",
|
|
3166
|
+
t.block.hasHeaderRow ? (s(), m("div", ys, [p("label", { class: n(x(K)) }, c(x(o).table.headerBackgroundColor), 3), g(Y, {
|
|
3111
3167
|
"model-value": t.block.headerBackgroundColor ?? "",
|
|
3112
|
-
"seed-color": x(
|
|
3168
|
+
"seed-color": x(Lt),
|
|
3113
3169
|
placeholder: x(o).table.noHeaderBg,
|
|
3114
3170
|
"onUpdate:modelValue": i[3] ||= (e) => u("headerBackgroundColor", e || null)
|
|
3115
3171
|
}, null, 8, [
|
|
@@ -3117,62 +3173,62 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3117
3173
|
"seed-color",
|
|
3118
3174
|
"placeholder"
|
|
3119
3175
|
])])) : T("", !0),
|
|
3120
|
-
p("div",
|
|
3176
|
+
p("div", bs, [p("label", { class: n(x(K)) }, c(x(o).table.borderColor), 3), g(Y, {
|
|
3121
3177
|
"model-value": t.block.borderColor,
|
|
3122
3178
|
"onUpdate:modelValue": i[4] ||= (e) => u("borderColor", e)
|
|
3123
3179
|
}, null, 8, ["model-value"])]),
|
|
3124
|
-
p("div",
|
|
3180
|
+
p("div", xs, [p("label", { class: n(x(K)) }, c(x(o).table.borderWidth), 3), p("div", Ss, [p("input", {
|
|
3125
3181
|
type: "number",
|
|
3126
3182
|
class: n(x(J)),
|
|
3127
3183
|
value: t.block.borderWidth,
|
|
3128
3184
|
min: "0",
|
|
3129
3185
|
max: "10",
|
|
3130
3186
|
onInput: i[5] ||= (e) => u("borderWidth", Number(e.target.value))
|
|
3131
|
-
}, null, 42,
|
|
3132
|
-
p("div",
|
|
3187
|
+
}, null, 42, Cs), p("span", { class: n(x(q)) }, "px", 2)])]),
|
|
3188
|
+
p("div", ws, [p("label", { class: n(x(K)) }, c(x(o).table.cellPadding), 3), p("div", Ts, [p("input", {
|
|
3133
3189
|
type: "number",
|
|
3134
3190
|
class: n(x(J)),
|
|
3135
3191
|
value: t.block.cellPadding,
|
|
3136
3192
|
min: "0",
|
|
3137
3193
|
max: "30",
|
|
3138
3194
|
onInput: i[6] ||= (e) => u("cellPadding", Number(e.target.value))
|
|
3139
|
-
}, null, 42,
|
|
3140
|
-
p("div",
|
|
3195
|
+
}, null, 42, Es), p("span", { class: n(x(q)) }, "px", 2)])]),
|
|
3196
|
+
p("div", Ds, [p("label", { class: n(x(K)) }, c(x(o).table.fontFamily), 3), p("select", {
|
|
3141
3197
|
class: n(x(G)),
|
|
3142
3198
|
value: t.block.fontFamily || "",
|
|
3143
3199
|
onChange: i[7] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
3144
|
-
}, [p("option",
|
|
3200
|
+
}, [p("option", ks, c(x(o).title.inheritFont), 1), (s(!0), m(C, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
3145
3201
|
key: e.value,
|
|
3146
3202
|
value: e.value
|
|
3147
|
-
}, c(e.label), 9,
|
|
3148
|
-
p("div",
|
|
3203
|
+
}, c(e.label), 9, As))), 128))], 42, Os)]),
|
|
3204
|
+
p("div", js, [p("label", { class: n(x(K)) }, c(x(o).table.fontSize), 3), p("div", Ms, [p("input", {
|
|
3149
3205
|
type: "number",
|
|
3150
3206
|
class: n(x(J)),
|
|
3151
3207
|
value: t.block.fontSize,
|
|
3152
3208
|
min: "10",
|
|
3153
3209
|
max: "32",
|
|
3154
3210
|
onInput: i[8] ||= (e) => u("fontSize", Number(e.target.value))
|
|
3155
|
-
}, null, 42,
|
|
3156
|
-
p("div",
|
|
3211
|
+
}, null, 42, Ns), p("span", { class: n(x(q)) }, "px", 2)])]),
|
|
3212
|
+
p("div", Ps, [p("label", { class: n(x(K)) }, c(x(o).table.color), 3), g(Y, {
|
|
3157
3213
|
"model-value": t.block.color ?? "",
|
|
3158
3214
|
"onUpdate:modelValue": i[9] ||= (e) => u("color", e || void 0)
|
|
3159
3215
|
}, null, 8, ["model-value"])]),
|
|
3160
|
-
p("div",
|
|
3216
|
+
p("div", Fs, [p("label", { class: n(x(K)) }, c(x(o).table.textAlign), 3), g(Ut, {
|
|
3161
3217
|
options: [
|
|
3162
3218
|
{
|
|
3163
3219
|
value: "left",
|
|
3164
3220
|
label: x(o).title.alignLeft,
|
|
3165
|
-
icon: x(
|
|
3221
|
+
icon: x(Tt)
|
|
3166
3222
|
},
|
|
3167
3223
|
{
|
|
3168
3224
|
value: "center",
|
|
3169
3225
|
label: x(o).title.alignCenter,
|
|
3170
|
-
icon: x(
|
|
3226
|
+
icon: x(wt)
|
|
3171
3227
|
},
|
|
3172
3228
|
{
|
|
3173
3229
|
value: "right",
|
|
3174
3230
|
label: x(o).title.alignRight,
|
|
3175
|
-
icon: x(
|
|
3231
|
+
icon: x(Ct)
|
|
3176
3232
|
}
|
|
3177
3233
|
],
|
|
3178
3234
|
"model-value": t.block.textAlign,
|
|
@@ -3180,7 +3236,7 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3180
3236
|
}, null, 8, ["options", "model-value"])])
|
|
3181
3237
|
], 64));
|
|
3182
3238
|
}
|
|
3183
|
-
}),
|
|
3239
|
+
}), Ls = { class: "tpl:mb-3.5" }, Rs = ["value"], zs = { value: 1 }, Bs = { value: 2 }, Vs = { value: 3 }, Hs = { value: 4 }, Us = { class: "tpl:mb-3.5" }, Ws = ["value"], Gs = { value: "" }, Ks = ["value"], qs = { class: "tpl:mb-3.5" }, Js = { class: "tpl:mb-3.5" }, Ys = /* @__PURE__ */ f({
|
|
3184
3240
|
__name: "TitleToolbar",
|
|
3185
3241
|
props: {
|
|
3186
3242
|
block: {},
|
|
@@ -3193,44 +3249,44 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3193
3249
|
i("update", { [e]: t });
|
|
3194
3250
|
}
|
|
3195
3251
|
return (r, i) => (s(), m(C, null, [
|
|
3196
|
-
p("div",
|
|
3252
|
+
p("div", Ls, [p("label", { class: n(x(K)) }, c(x(a).title.level), 3), p("select", {
|
|
3197
3253
|
class: n(x(G)),
|
|
3198
3254
|
value: t.block.level,
|
|
3199
3255
|
onChange: i[0] ||= (e) => o("level", Number(e.target.value))
|
|
3200
3256
|
}, [
|
|
3201
|
-
p("option",
|
|
3202
|
-
p("option",
|
|
3203
|
-
p("option",
|
|
3204
|
-
p("option",
|
|
3205
|
-
], 42,
|
|
3206
|
-
p("div",
|
|
3257
|
+
p("option", zs, c(x(a).title.heading1), 1),
|
|
3258
|
+
p("option", Bs, c(x(a).title.heading2), 1),
|
|
3259
|
+
p("option", Vs, c(x(a).title.heading3), 1),
|
|
3260
|
+
p("option", Hs, c(x(a).title.heading4), 1)
|
|
3261
|
+
], 42, Rs)]),
|
|
3262
|
+
p("div", Us, [p("label", { class: n(x(K)) }, c(x(a).title.fontFamily), 3), p("select", {
|
|
3207
3263
|
class: n(x(G)),
|
|
3208
3264
|
value: t.block.fontFamily || "",
|
|
3209
3265
|
onChange: i[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3210
|
-
}, [p("option",
|
|
3266
|
+
}, [p("option", Gs, c(x(a).title.inheritFont), 1), (s(!0), m(C, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
3211
3267
|
key: e.value,
|
|
3212
3268
|
value: e.value
|
|
3213
|
-
}, c(e.label), 9,
|
|
3214
|
-
p("div",
|
|
3269
|
+
}, c(e.label), 9, Ks))), 128))], 42, Ws)]),
|
|
3270
|
+
p("div", qs, [p("label", { class: n(x(K)) }, c(x(a).title.color), 3), g(Y, {
|
|
3215
3271
|
"model-value": t.block.color ?? "",
|
|
3216
3272
|
"onUpdate:modelValue": i[2] ||= (e) => o("color", e || void 0)
|
|
3217
3273
|
}, null, 8, ["model-value"])]),
|
|
3218
|
-
p("div",
|
|
3274
|
+
p("div", Js, [p("label", { class: n(x(K)) }, c(x(a).title.align), 3), g(Ut, {
|
|
3219
3275
|
options: [
|
|
3220
3276
|
{
|
|
3221
3277
|
value: "left",
|
|
3222
3278
|
label: x(a).title.alignLeft,
|
|
3223
|
-
icon: x(
|
|
3279
|
+
icon: x(Tt)
|
|
3224
3280
|
},
|
|
3225
3281
|
{
|
|
3226
3282
|
value: "center",
|
|
3227
3283
|
label: x(a).title.alignCenter,
|
|
3228
|
-
icon: x(
|
|
3284
|
+
icon: x(wt)
|
|
3229
3285
|
},
|
|
3230
3286
|
{
|
|
3231
3287
|
value: "right",
|
|
3232
3288
|
label: x(a).title.alignRight,
|
|
3233
|
-
icon: x(
|
|
3289
|
+
icon: x(Ct)
|
|
3234
3290
|
}
|
|
3235
3291
|
],
|
|
3236
3292
|
"model-value": t.block.textAlign,
|
|
@@ -3238,19 +3294,19 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3238
3294
|
}, null, 8, ["options", "model-value"])])
|
|
3239
3295
|
], 64));
|
|
3240
3296
|
}
|
|
3241
|
-
}),
|
|
3297
|
+
}), Xs = { class: "tpl:mb-3.5" }, Zs = {
|
|
3242
3298
|
key: 0,
|
|
3243
3299
|
class: "tpl:mb-3.5"
|
|
3244
|
-
},
|
|
3300
|
+
}, Qs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, $s = [
|
|
3245
3301
|
"value",
|
|
3246
3302
|
"placeholder",
|
|
3247
3303
|
"title"
|
|
3248
|
-
],
|
|
3304
|
+
], ec = { class: "tpl:mb-3.5" }, tc = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, nc = { class: "tpl:mb-3.5" }, rc = { class: "tpl:mb-3.5" }, ic = ["value"], ac = { value: "full" }, oc = { class: "tpl:mb-3.5" }, sc = /* @__PURE__ */ f({
|
|
3249
3305
|
__name: "VideoToolbar",
|
|
3250
3306
|
props: { block: {} },
|
|
3251
3307
|
emits: ["update"],
|
|
3252
3308
|
setup(e, { emit: t }) {
|
|
3253
|
-
let r = e, i = t, { t: a } = U(), o = D(Re, null), l = D(We, B.liquid), u =
|
|
3309
|
+
let r = e, i = t, { t: a } = U(), o = D(Re, null), l = D(We, B.liquid), u = jt(), f = w(() => !!o), h = w(() => V(r.block.url, l)), _ = d(!1), { start: v } = Fe(() => {
|
|
3254
3310
|
_.value = !1;
|
|
3255
3311
|
}, 1e3, { immediate: !1 });
|
|
3256
3312
|
function S(e, t) {
|
|
@@ -3261,7 +3317,7 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3261
3317
|
u.alive && e && (S("thumbnailUrl", e.url), _.value = !0, v());
|
|
3262
3318
|
}
|
|
3263
3319
|
return (t, r) => (s(), m(C, null, [
|
|
3264
|
-
p("div",
|
|
3320
|
+
p("div", Xs, [
|
|
3265
3321
|
p("label", { class: n(x(K)) }, c(x(a).video.videoUrl), 3),
|
|
3266
3322
|
g($, {
|
|
3267
3323
|
"model-value": e.block.url,
|
|
@@ -3277,16 +3333,16 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3277
3333
|
"onUpdate:modelValue": r[1] ||= (e) => S("openInNewTab", e)
|
|
3278
3334
|
}, null, 8, ["model-value", "label"])) : T("", !0)
|
|
3279
3335
|
]),
|
|
3280
|
-
h.value ? (s(), m("div",
|
|
3336
|
+
h.value ? (s(), m("div", Zs, [p("label", { class: n(x(K)) }, [b(c(x(a).video.placeholderUrl) + " ", 1), p("span", Qs, c(x(a).video.optional), 1)], 2), p("input", {
|
|
3281
3337
|
type: "url",
|
|
3282
3338
|
class: n(x(G)),
|
|
3283
3339
|
value: e.block.placeholderUrl || "",
|
|
3284
3340
|
placeholder: x(a).video.placeholderUrlPlaceholder,
|
|
3285
3341
|
title: x(a).video.placeholderUrlTooltip,
|
|
3286
3342
|
onInput: r[2] ||= (e) => S("placeholderUrl", e.target.value)
|
|
3287
|
-
}, null, 42,
|
|
3288
|
-
p("div",
|
|
3289
|
-
p("label", { class: n(x(K)) }, [b(c(x(a).video.customThumbnail) + " ", 1), p("span",
|
|
3343
|
+
}, null, 42, $s)])) : T("", !0),
|
|
3344
|
+
p("div", ec, [
|
|
3345
|
+
p("label", { class: n(x(K)) }, [b(c(x(a).video.customThumbnail) + " ", 1), p("span", tc, c(x(a).video.optional), 1)], 2),
|
|
3290
3346
|
g($, {
|
|
3291
3347
|
"model-value": e.block.thumbnailUrl,
|
|
3292
3348
|
type: "url",
|
|
@@ -3312,23 +3368,23 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3312
3368
|
"stroke-width": 1.5
|
|
3313
3369
|
}), b(" " + c(x(a).image.browseMedia), 1)])) : T("", !0)
|
|
3314
3370
|
]),
|
|
3315
|
-
p("div",
|
|
3371
|
+
p("div", nc, [p("label", { class: n(x(K)) }, c(x(a).video.altText), 3), g($, {
|
|
3316
3372
|
"model-value": e.block.alt,
|
|
3317
3373
|
type: "text",
|
|
3318
3374
|
placeholder: x(a).video.altTextPlaceholder,
|
|
3319
3375
|
"onUpdate:modelValue": r[4] ||= (e) => S("alt", e)
|
|
3320
3376
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
3321
|
-
p("div",
|
|
3377
|
+
p("div", rc, [p("label", { class: n(x(K)) }, c(x(a).video.width), 3), p("select", {
|
|
3322
3378
|
class: n(x(G)),
|
|
3323
3379
|
value: e.block.width,
|
|
3324
3380
|
onChange: r[5] ||= (e) => S("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
3325
3381
|
}, [
|
|
3326
|
-
p("option",
|
|
3382
|
+
p("option", ac, c(x(a).video.fullWidth), 1),
|
|
3327
3383
|
r[7] ||= p("option", { value: "300" }, "300px", -1),
|
|
3328
3384
|
r[8] ||= p("option", { value: "400" }, "400px", -1),
|
|
3329
3385
|
r[9] ||= p("option", { value: "500" }, "500px", -1)
|
|
3330
|
-
], 42,
|
|
3331
|
-
p("div",
|
|
3386
|
+
], 42, ic)]),
|
|
3387
|
+
p("div", oc, [p("label", { class: n(x(K)) }, c(x(a).title.align), 3), g(Ut, {
|
|
3332
3388
|
options: [
|
|
3333
3389
|
{
|
|
3334
3390
|
value: "left",
|
|
@@ -3348,7 +3404,7 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3348
3404
|
}, null, 8, ["options", "model-value"])])
|
|
3349
3405
|
], 64));
|
|
3350
3406
|
}
|
|
3351
|
-
}),
|
|
3407
|
+
}), cc = ["aria-label"], lc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, uc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, dc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, fc = { class: "tpl:flex tpl:gap-1" }, pc = ["title"], mc = ["title"], hc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, gc = /*#__PURE__*/ Ot(/* @__PURE__ */ f({
|
|
3352
3408
|
__name: "Toolbar",
|
|
3353
3409
|
props: { block: {} },
|
|
3354
3410
|
emits: [
|
|
@@ -3366,7 +3422,7 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3366
3422
|
return (t, r) => (s(), m("aside", {
|
|
3367
3423
|
"aria-label": x(a).landmarks.blockToolbar,
|
|
3368
3424
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
3369
|
-
}, [p("div",
|
|
3425
|
+
}, [p("div", lc, [p("div", uc, [x(pt)[d.value] ? (s(), y(o(x(pt)[d.value]), {
|
|
3370
3426
|
key: 0,
|
|
3371
3427
|
size: 16,
|
|
3372
3428
|
"stroke-width": 1.5
|
|
@@ -3374,70 +3430,70 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3374
3430
|
key: 1,
|
|
3375
3431
|
size: 16,
|
|
3376
3432
|
"stroke-width": 1.5
|
|
3377
|
-
})) : T("", !0), p("h3",
|
|
3433
|
+
})) : T("", !0), p("h3", dc, c(v.value), 1)]), p("div", fc, [p("button", {
|
|
3378
3434
|
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)]",
|
|
3379
3435
|
title: x(a).toolbar.duplicate,
|
|
3380
3436
|
onClick: r[0] ||= (e) => i("duplicate")
|
|
3381
3437
|
}, [g(x(se), {
|
|
3382
3438
|
size: 14,
|
|
3383
3439
|
"stroke-width": 2
|
|
3384
|
-
})], 8,
|
|
3440
|
+
})], 8, pc), p("button", {
|
|
3385
3441
|
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)]",
|
|
3386
3442
|
title: x(a).toolbar.delete,
|
|
3387
3443
|
onClick: r[1] ||= (e) => i("delete")
|
|
3388
|
-
}, [g(x(
|
|
3444
|
+
}, [g(x(Et), {
|
|
3389
3445
|
size: 14,
|
|
3390
3446
|
"stroke-width": 2
|
|
3391
|
-
})], 8,
|
|
3447
|
+
})], 8, mc)])]), p("div", hc, [f.value ? (s(), y(La, {
|
|
3392
3448
|
key: 0,
|
|
3393
3449
|
block: e.block,
|
|
3394
3450
|
onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
|
|
3395
3451
|
onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
|
|
3396
|
-
}, null, 8, ["block"])) : d.value === "section" ? (s(), y(
|
|
3452
|
+
}, null, 8, ["block"])) : d.value === "section" ? (s(), y(Fo, {
|
|
3397
3453
|
key: 1,
|
|
3398
3454
|
block: e.block,
|
|
3399
3455
|
onUpdate: S
|
|
3400
|
-
}, null, 8, ["block"])) : d.value === "title" ? (s(), y(
|
|
3456
|
+
}, null, 8, ["block"])) : d.value === "title" ? (s(), y(Ys, {
|
|
3401
3457
|
key: 2,
|
|
3402
3458
|
block: e.block,
|
|
3403
3459
|
"font-families": x(b),
|
|
3404
3460
|
onUpdate: S
|
|
3405
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), m(C, { key: 3 }, [], 64)) : d.value === "image" ? (s(), y(
|
|
3461
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), m(C, { key: 3 }, [], 64)) : d.value === "image" ? (s(), y(lo, {
|
|
3406
3462
|
key: 4,
|
|
3407
3463
|
block: e.block,
|
|
3408
3464
|
onUpdate: S
|
|
3409
|
-
}, null, 8, ["block"])) : d.value === "video" ? (s(), y(
|
|
3465
|
+
}, null, 8, ["block"])) : d.value === "video" ? (s(), y(sc, {
|
|
3410
3466
|
key: 5,
|
|
3411
3467
|
block: e.block,
|
|
3412
3468
|
onUpdate: S
|
|
3413
|
-
}, null, 8, ["block"])) : d.value === "button" ? (s(), y(
|
|
3469
|
+
}, null, 8, ["block"])) : d.value === "button" ? (s(), y(ui, {
|
|
3414
3470
|
key: 6,
|
|
3415
3471
|
block: e.block,
|
|
3416
3472
|
"font-families": x(b),
|
|
3417
3473
|
onUpdate: S
|
|
3418
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), y(
|
|
3474
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), y(Ua, {
|
|
3419
3475
|
key: 7,
|
|
3420
3476
|
block: e.block,
|
|
3421
3477
|
onUpdate: S
|
|
3422
|
-
}, null, 8, ["block"])) : d.value === "social" ? (s(), y(
|
|
3478
|
+
}, null, 8, ["block"])) : d.value === "social" ? (s(), y(es, {
|
|
3423
3479
|
key: 8,
|
|
3424
3480
|
block: e.block,
|
|
3425
3481
|
onUpdate: S
|
|
3426
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (s(), y(
|
|
3482
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (s(), y(xo, {
|
|
3427
3483
|
key: 9,
|
|
3428
3484
|
block: e.block,
|
|
3429
3485
|
"font-families": x(b),
|
|
3430
3486
|
onUpdate: S
|
|
3431
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), y(
|
|
3487
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), y(Is, {
|
|
3432
3488
|
key: 10,
|
|
3433
3489
|
block: e.block,
|
|
3434
3490
|
"font-families": x(b),
|
|
3435
3491
|
onUpdate: S
|
|
3436
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), y(
|
|
3492
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), y(as, {
|
|
3437
3493
|
key: 11,
|
|
3438
3494
|
block: e.block,
|
|
3439
3495
|
onUpdate: S
|
|
3440
|
-
}, null, 8, ["block"])) : d.value === "html" ? (s(), y(
|
|
3496
|
+
}, null, 8, ["block"])) : d.value === "html" ? (s(), y(qa, {
|
|
3441
3497
|
key: 12,
|
|
3442
3498
|
block: e.block,
|
|
3443
3499
|
onUpdate: S
|
|
@@ -3446,52 +3502,52 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3446
3502
|
block: e.block,
|
|
3447
3503
|
"font-families": x(b),
|
|
3448
3504
|
onUpdate: S
|
|
3449
|
-
}, null, 8, ["block", "font-families"])) : T("", !0), g(
|
|
3505
|
+
}, null, 8, ["block", "font-families"])) : T("", !0), g(ta, {
|
|
3450
3506
|
block: e.block,
|
|
3451
3507
|
"is-first-section": d.value === "paragraph",
|
|
3452
3508
|
onUpdate: S
|
|
3453
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
3509
|
+
}, null, 8, ["block", "is-first-section"])])], 8, cc));
|
|
3454
3510
|
}
|
|
3455
|
-
}), [["__scopeId", "data-v-2ac88283"]]),
|
|
3511
|
+
}), [["__scopeId", "data-v-2ac88283"]]), _c = ["aria-label"], vc = {
|
|
3456
3512
|
role: "tablist",
|
|
3457
3513
|
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"
|
|
3458
|
-
},
|
|
3514
|
+
}, yc = [
|
|
3459
3515
|
"aria-selected",
|
|
3460
3516
|
"aria-label",
|
|
3461
3517
|
"title"
|
|
3462
|
-
],
|
|
3518
|
+
], bc = { key: 0 }, xc = [
|
|
3463
3519
|
"aria-selected",
|
|
3464
3520
|
"aria-label",
|
|
3465
3521
|
"title"
|
|
3466
|
-
],
|
|
3522
|
+
], Sc = { key: 0 }, Cc = [
|
|
3467
3523
|
"aria-selected",
|
|
3468
3524
|
"aria-label",
|
|
3469
3525
|
"title"
|
|
3470
|
-
],
|
|
3526
|
+
], wc = { key: 0 }, Tc = {
|
|
3471
3527
|
key: 1,
|
|
3472
3528
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
3473
|
-
},
|
|
3529
|
+
}, Ec = {
|
|
3474
3530
|
key: 0,
|
|
3475
3531
|
id: "tpl-tabpanel-content",
|
|
3476
3532
|
role: "tabpanel",
|
|
3477
3533
|
"aria-labelledby": "tpl-tab-content",
|
|
3478
3534
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3479
|
-
},
|
|
3535
|
+
}, Dc = {
|
|
3480
3536
|
key: 1,
|
|
3481
3537
|
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)]"
|
|
3482
|
-
},
|
|
3538
|
+
}, Oc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, kc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ac = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, jc = {
|
|
3483
3539
|
key: 1,
|
|
3484
3540
|
id: "tpl-tabpanel-settings",
|
|
3485
3541
|
role: "tabpanel",
|
|
3486
3542
|
"aria-labelledby": "tpl-tab-settings",
|
|
3487
3543
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3488
|
-
},
|
|
3544
|
+
}, Mc = {
|
|
3489
3545
|
key: 2,
|
|
3490
3546
|
id: "tpl-tabpanel-issues",
|
|
3491
3547
|
role: "tabpanel",
|
|
3492
3548
|
"aria-labelledby": "tpl-tab-issues",
|
|
3493
3549
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3494
|
-
},
|
|
3550
|
+
}, Nc = /* @__PURE__ */ f({
|
|
3495
3551
|
__name: "RightSidebar",
|
|
3496
3552
|
props: {
|
|
3497
3553
|
selectedBlock: {},
|
|
@@ -3521,7 +3577,7 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3521
3577
|
"aria-label": x(u).landmarks.rightSidebar,
|
|
3522
3578
|
class: n(["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"])
|
|
3523
3579
|
}, [
|
|
3524
|
-
p("div",
|
|
3580
|
+
p("div", vc, [
|
|
3525
3581
|
p("button", {
|
|
3526
3582
|
id: "tpl-tab-content",
|
|
3527
3583
|
role: "tab",
|
|
@@ -3532,10 +3588,10 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3532
3588
|
class: n(["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)]", S("content")]),
|
|
3533
3589
|
style: t(C("content")),
|
|
3534
3590
|
onClick: i[0] ||= (e) => f.value = "content"
|
|
3535
|
-
}, [g(x(
|
|
3591
|
+
}, [g(x(Qt), {
|
|
3536
3592
|
size: 14,
|
|
3537
3593
|
"stroke-width": 2
|
|
3538
|
-
}), f.value === "content" ? (s(), m("span",
|
|
3594
|
+
}), f.value === "content" ? (s(), m("span", bc, c(x(u).sidebar.content), 1)) : T("", !0)], 14, yc),
|
|
3539
3595
|
p("button", {
|
|
3540
3596
|
id: "tpl-tab-settings",
|
|
3541
3597
|
role: "tab",
|
|
@@ -3546,10 +3602,10 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3546
3602
|
class: n(["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)]", S("settings")]),
|
|
3547
3603
|
style: t(C("settings")),
|
|
3548
3604
|
onClick: i[1] ||= (e) => f.value = "settings"
|
|
3549
|
-
}, [g(x(
|
|
3605
|
+
}, [g(x(en), {
|
|
3550
3606
|
size: 14,
|
|
3551
3607
|
"stroke-width": 1.5
|
|
3552
|
-
}), f.value === "settings" ? (s(), m("span",
|
|
3608
|
+
}), f.value === "settings" ? (s(), m("span", Sc, c(x(u).sidebar.settings), 1)) : T("", !0)], 14, xc),
|
|
3553
3609
|
v.value ? (s(), m("button", {
|
|
3554
3610
|
key: 0,
|
|
3555
3611
|
id: "tpl-tab-issues",
|
|
@@ -3566,111 +3622,54 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3566
3622
|
size: 14,
|
|
3567
3623
|
"stroke-width": 1.5
|
|
3568
3624
|
}),
|
|
3569
|
-
f.value === "issues" ? (s(), m("span",
|
|
3570
|
-
b.value > 0 ? (s(), m("span",
|
|
3571
|
-
], 14,
|
|
3625
|
+
f.value === "issues" ? (s(), m("span", wc, c(x(u).issues.panelTabLabel), 1)) : T("", !0),
|
|
3626
|
+
b.value > 0 ? (s(), m("span", Tc, c(b.value), 1)) : T("", !0)
|
|
3627
|
+
], 14, Cc)) : T("", !0)
|
|
3572
3628
|
]),
|
|
3573
|
-
f.value === "content" ? (s(), m("div",
|
|
3629
|
+
f.value === "content" ? (s(), m("div", Ec, [e.selectedBlock ? (s(), y(gc, {
|
|
3574
3630
|
key: 0,
|
|
3575
3631
|
block: e.selectedBlock,
|
|
3576
3632
|
onUpdate: i[3] ||= (e) => l("update-block", e),
|
|
3577
3633
|
onDelete: i[4] ||= (e) => l("delete-block"),
|
|
3578
3634
|
onDuplicate: i[5] ||= (e) => l("duplicate-block")
|
|
3579
|
-
}, null, 8, ["block"])) : (s(), m("div",
|
|
3580
|
-
p("div",
|
|
3635
|
+
}, null, 8, ["block"])) : (s(), m("div", Dc, [
|
|
3636
|
+
p("div", Oc, [g(x(Jt), {
|
|
3581
3637
|
size: 40,
|
|
3582
3638
|
"stroke-width": 1.5
|
|
3583
3639
|
})]),
|
|
3584
|
-
p("h3",
|
|
3585
|
-
p("p",
|
|
3640
|
+
p("h3", kc, c(x(u).sidebar.noSelection), 1),
|
|
3641
|
+
p("p", Ac, c(x(u).sidebar.noSelectionHint), 1)
|
|
3586
3642
|
]))])) : T("", !0),
|
|
3587
|
-
f.value === "settings" ? (s(), m("div",
|
|
3643
|
+
f.value === "settings" ? (s(), m("div", jc, [g(Pr, {
|
|
3588
3644
|
settings: e.settings,
|
|
3589
3645
|
onUpdate: i[6] ||= (e) => l("update-settings", e)
|
|
3590
3646
|
}, null, 8, ["settings"])])) : T("", !0),
|
|
3591
|
-
f.value === "issues" && v.value ? (s(), m("div",
|
|
3592
|
-
], 10,
|
|
3647
|
+
f.value === "issues" && v.value ? (s(), m("div", Mc, [g(x(a))])) : T("", !0)
|
|
3648
|
+
], 10, _c));
|
|
3593
3649
|
}
|
|
3594
|
-
}),
|
|
3650
|
+
}), Pc = {
|
|
3595
3651
|
class: "tpl-small-screen-notice tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-4 tpl:px-6 tpl:py-10 tpl:text-center tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)]",
|
|
3596
3652
|
style: { "z-index": "10001" },
|
|
3597
3653
|
role: "status",
|
|
3598
3654
|
"data-testid": "small-screen-notice"
|
|
3599
|
-
},
|
|
3655
|
+
}, Fc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Ic = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Lc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Rc = /* @__PURE__ */ f({
|
|
3600
3656
|
__name: "SmallScreenNotice",
|
|
3601
3657
|
setup(e) {
|
|
3602
3658
|
let { t } = U();
|
|
3603
|
-
return (e, n) => (s(), m("div",
|
|
3604
|
-
p("div",
|
|
3659
|
+
return (e, n) => (s(), m("div", Pc, [
|
|
3660
|
+
p("div", Fc, [g(x(xt), {
|
|
3605
3661
|
size: 48,
|
|
3606
3662
|
"stroke-width": 1.5
|
|
3607
3663
|
})]),
|
|
3608
|
-
p("h2",
|
|
3609
|
-
p("p",
|
|
3664
|
+
p("h2", Ic, c(x(t).smallScreen.title), 1),
|
|
3665
|
+
p("p", Lc, c(x(t).smallScreen.message), 1)
|
|
3610
3666
|
]));
|
|
3611
3667
|
}
|
|
3612
|
-
}),
|
|
3613
|
-
"aria-checked",
|
|
3614
|
-
"aria-label",
|
|
3615
|
-
"title",
|
|
3616
|
-
"onClick"
|
|
3617
|
-
], Fc = /* @__PURE__ */ f({
|
|
3618
|
-
__name: "ViewportToggle",
|
|
3619
|
-
props: { viewport: {} },
|
|
3620
|
-
emits: ["change"],
|
|
3621
|
-
setup(n, { emit: r }) {
|
|
3622
|
-
let i = n, a = r, { t: o } = U(), l = w(() => [{
|
|
3623
|
-
value: "desktop",
|
|
3624
|
-
label: o.viewport.desktop
|
|
3625
|
-
}, {
|
|
3626
|
-
value: "mobile",
|
|
3627
|
-
label: o.viewport.mobile
|
|
3628
|
-
}]), u = w(() => `translateX(${l.value.findIndex((e) => e.value === i.viewport) * 100}%)`);
|
|
3629
|
-
return (r, i) => (s(), m("div", {
|
|
3630
|
-
role: "radiogroup",
|
|
3631
|
-
"aria-label": x(o).viewport.label,
|
|
3632
|
-
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
3633
|
-
style: t({
|
|
3634
|
-
gridTemplateColumns: `repeat(${l.value.length}, 1fr)`,
|
|
3635
|
-
backgroundColor: "var(--tpl-bg-hover)"
|
|
3636
|
-
})
|
|
3637
|
-
}, [p("div", {
|
|
3638
|
-
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
3639
|
-
style: t({
|
|
3640
|
-
left: "4px",
|
|
3641
|
-
width: `calc((100% - 8px) / ${l.value.length})`,
|
|
3642
|
-
transform: u.value,
|
|
3643
|
-
backgroundColor: "var(--tpl-bg)",
|
|
3644
|
-
boxShadow: "var(--tpl-shadow)",
|
|
3645
|
-
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
3646
|
-
})
|
|
3647
|
-
}, null, 4), (s(!0), m(C, null, e(l.value, (e) => (s(), m("button", {
|
|
3648
|
-
key: e.value,
|
|
3649
|
-
role: "radio",
|
|
3650
|
-
"aria-checked": n.viewport === e.value,
|
|
3651
|
-
"aria-label": e.label,
|
|
3652
|
-
class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium",
|
|
3653
|
-
style: t({
|
|
3654
|
-
color: n.viewport === e.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
3655
|
-
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
3656
|
-
}),
|
|
3657
|
-
title: e.label,
|
|
3658
|
-
onClick: (t) => a("change", e.value)
|
|
3659
|
-
}, [e.value === "desktop" ? (s(), y(x(qt), {
|
|
3660
|
-
key: 0,
|
|
3661
|
-
size: 18,
|
|
3662
|
-
"stroke-width": 1.5
|
|
3663
|
-
})) : (s(), y(x(Qt), {
|
|
3664
|
-
key: 1,
|
|
3665
|
-
size: 18,
|
|
3666
|
-
"stroke-width": 1.5
|
|
3667
|
-
})), p("span", null, c(e.label), 1)], 12, Pc))), 128))], 12, Nc));
|
|
3668
|
-
}
|
|
3669
|
-
}), Ic = [
|
|
3668
|
+
}), zc = [
|
|
3670
3669
|
"aria-label",
|
|
3671
3670
|
"title",
|
|
3672
3671
|
"aria-pressed"
|
|
3673
|
-
],
|
|
3672
|
+
], Bc = /*#__PURE__*/ Ot(/* @__PURE__ */ f({
|
|
3674
3673
|
__name: "PreviewToggle",
|
|
3675
3674
|
props: { previewMode: { type: Boolean } },
|
|
3676
3675
|
emits: ["change"],
|
|
@@ -3703,13 +3702,13 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3703
3702
|
"stroke-width": 1.5
|
|
3704
3703
|
}))]),
|
|
3705
3704
|
_: 1
|
|
3706
|
-
})], 12,
|
|
3705
|
+
})], 12, zc));
|
|
3707
3706
|
}
|
|
3708
|
-
}), [["__scopeId", "data-v-af87d02a"]]),
|
|
3707
|
+
}), [["__scopeId", "data-v-af87d02a"]]), Vc = [
|
|
3709
3708
|
"aria-label",
|
|
3710
3709
|
"title",
|
|
3711
3710
|
"aria-pressed"
|
|
3712
|
-
],
|
|
3711
|
+
], Hc = /*#__PURE__*/ Ot(/* @__PURE__ */ f({
|
|
3713
3712
|
__name: "DarkModeToggle",
|
|
3714
3713
|
props: { darkMode: { type: Boolean } },
|
|
3715
3714
|
emits: ["change"],
|
|
@@ -3732,37 +3731,37 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3732
3731
|
"leave-to-class": "tpl-icon-leave-to",
|
|
3733
3732
|
mode: "out-in"
|
|
3734
3733
|
}, {
|
|
3735
|
-
default: l(() => [e.darkMode ? (s(), y(x(
|
|
3734
|
+
default: l(() => [e.darkMode ? (s(), y(x(Zt), {
|
|
3736
3735
|
key: "moon",
|
|
3737
3736
|
size: 18,
|
|
3738
3737
|
"stroke-width": 1.5
|
|
3739
|
-
})) : (s(), y(x(
|
|
3738
|
+
})) : (s(), y(x(rn), {
|
|
3740
3739
|
key: "sun",
|
|
3741
3740
|
size: 18,
|
|
3742
3741
|
"stroke-width": 1.5
|
|
3743
3742
|
}))]),
|
|
3744
3743
|
_: 1
|
|
3745
|
-
})], 12,
|
|
3744
|
+
})], 12, Vc));
|
|
3746
3745
|
}
|
|
3747
|
-
}), [["__scopeId", "data-v-f8694f76"]]),
|
|
3746
|
+
}), [["__scopeId", "data-v-f8694f76"]]), Uc = {
|
|
3748
3747
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
3749
3748
|
style: {
|
|
3750
3749
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
3751
3750
|
"backdrop-filter": "blur(8px)",
|
|
3752
3751
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
3753
3752
|
}
|
|
3754
|
-
},
|
|
3753
|
+
}, Wc = {
|
|
3755
3754
|
href: "https://github.com/templatical/sdk",
|
|
3756
3755
|
target: "_blank",
|
|
3757
3756
|
rel: "noopener noreferrer",
|
|
3758
3757
|
class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
|
|
3759
3758
|
style: { "text-decoration": "none" }
|
|
3760
|
-
},
|
|
3759
|
+
}, Gc = /* @__PURE__ */ f({
|
|
3761
3760
|
__name: "EditorFooter",
|
|
3762
3761
|
props: { positionClass: {} },
|
|
3763
3762
|
setup(e) {
|
|
3764
3763
|
let { t } = U();
|
|
3765
|
-
return (r, i) => (s(), m("footer", { class: n(["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]) }, [p("div",
|
|
3764
|
+
return (r, i) => (s(), m("footer", { class: n(["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]) }, [p("div", Uc, [
|
|
3766
3765
|
p("span", null, c(x(t).footer.poweredBy), 1),
|
|
3767
3766
|
i[0] ||= p("a", {
|
|
3768
3767
|
href: "https://templatical.com",
|
|
@@ -3777,32 +3776,32 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3777
3776
|
alt: ""
|
|
3778
3777
|
}), b(" Templatical ")], -1),
|
|
3779
3778
|
i[1] ||= p("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
|
|
3780
|
-
p("a",
|
|
3779
|
+
p("a", Wc, c(x(t).footer.openSource), 1)
|
|
3781
3780
|
])], 2));
|
|
3782
3781
|
}
|
|
3783
|
-
}),
|
|
3782
|
+
}), Kc = ["aria-labelledby", "data-tpl-theme"], qc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Jc = ["id"], Yc = ["aria-label"], Xc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Zc = [
|
|
3784
3783
|
"id",
|
|
3785
3784
|
"placeholder",
|
|
3786
3785
|
"aria-label",
|
|
3787
3786
|
"aria-activedescendant"
|
|
3788
|
-
],
|
|
3787
|
+
], Qc = {
|
|
3789
3788
|
key: 0,
|
|
3790
3789
|
class: "tpl:flex tpl:gap-1.5 tpl:overflow-x-auto tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2",
|
|
3791
3790
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3792
|
-
},
|
|
3791
|
+
}, $c = ["data-group-name", "onClick"], el = ["aria-label"], tl = {
|
|
3793
3792
|
key: 0,
|
|
3794
3793
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3795
3794
|
"data-testid": "merge-tag-picker-empty"
|
|
3796
|
-
},
|
|
3795
|
+
}, nl = {
|
|
3797
3796
|
key: 1,
|
|
3798
3797
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3799
3798
|
"data-testid": "merge-tag-picker-empty"
|
|
3800
|
-
},
|
|
3799
|
+
}, rl = [
|
|
3801
3800
|
"aria-expanded",
|
|
3802
3801
|
"data-group-name",
|
|
3803
3802
|
"data-group-collapsed",
|
|
3804
3803
|
"onClick"
|
|
3805
|
-
],
|
|
3804
|
+
], il = { class: "tpl:ml-1 tpl:font-normal" }, al = [
|
|
3806
3805
|
"id",
|
|
3807
3806
|
"aria-selected",
|
|
3808
3807
|
"data-selected",
|
|
@@ -3811,10 +3810,10 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3811
3810
|
"title",
|
|
3812
3811
|
"onMousemove",
|
|
3813
3812
|
"onClick"
|
|
3814
|
-
],
|
|
3813
|
+
], ol = { class: "tpl:text-sm tpl:font-medium" }, sl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, cl = {
|
|
3815
3814
|
key: 0,
|
|
3816
3815
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3817
|
-
},
|
|
3816
|
+
}, ll = "tpl-merge-tag-picker-list", ul = /* @__PURE__ */ f({
|
|
3818
3817
|
__name: "MergeTagPickerModal",
|
|
3819
3818
|
setup(r) {
|
|
3820
3819
|
let a = ze(Be, "MergeTagPickerModal"), { t: o, format: u } = U(), f = D(He, null), h = D(at, null), _ = d(""), v = Pe(_, 200), b = d(null), S = w(() => v.value.trim().length > 0), O = d(0), M = w(() => a.tags.value.some((e) => !!e.group)), P = d(/* @__PURE__ */ new Set());
|
|
@@ -3927,13 +3926,13 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3927
3926
|
}
|
|
3928
3927
|
}
|
|
3929
3928
|
function se() {
|
|
3930
|
-
if (B.value.length !== 0) return `${
|
|
3929
|
+
if (B.value.length !== 0) return `${ll}-opt-${O.value}`;
|
|
3931
3930
|
}
|
|
3932
3931
|
function ce(e) {
|
|
3933
|
-
return `${
|
|
3932
|
+
return `${ll}-opt-${e}`;
|
|
3934
3933
|
}
|
|
3935
3934
|
let le = w(() => a.tags.value.length === 0), ue = w(() => !le.value && L.value.length === 0), de = w(() => M.value && R.value.length > 1 && !S.value);
|
|
3936
|
-
return (r, i) => (s(), y(
|
|
3935
|
+
return (r, i) => (s(), y(Gt, {
|
|
3937
3936
|
visible: x(a).isOpen.value,
|
|
3938
3937
|
onClose: ee,
|
|
3939
3938
|
onKeydown: oe
|
|
@@ -3941,31 +3940,31 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3941
3940
|
default: l(() => [p("div", {
|
|
3942
3941
|
role: "dialog",
|
|
3943
3942
|
"aria-modal": "true",
|
|
3944
|
-
"aria-labelledby": `${
|
|
3943
|
+
"aria-labelledby": `${ll}-title`,
|
|
3945
3944
|
"data-tpl-theme": x(h),
|
|
3946
3945
|
"data-testid": "merge-tag-picker-modal",
|
|
3947
3946
|
class: "tpl tpl:flex tpl:max-h-[80vh] tpl:w-[min(420px,92vw)] tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
3948
3947
|
style: t(x(f))
|
|
3949
3948
|
}, [
|
|
3950
|
-
p("header",
|
|
3951
|
-
id: `${
|
|
3949
|
+
p("header", qc, [p("h2", {
|
|
3950
|
+
id: `${ll}-title`,
|
|
3952
3951
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3953
|
-
}, c(x(o).mergeTag.picker.title), 9,
|
|
3952
|
+
}, c(x(o).mergeTag.picker.title), 9, Jc), p("button", {
|
|
3954
3953
|
type: "button",
|
|
3955
3954
|
class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
3956
3955
|
"aria-label": x(o).mergeTag.picker.close,
|
|
3957
3956
|
"data-testid": "merge-tag-picker-close",
|
|
3958
3957
|
onClick: ee
|
|
3959
|
-
}, [g(x(
|
|
3958
|
+
}, [g(x(Dt), {
|
|
3960
3959
|
size: 16,
|
|
3961
3960
|
"stroke-width": 2
|
|
3962
|
-
})], 8,
|
|
3963
|
-
p("div",
|
|
3961
|
+
})], 8, Yc)]),
|
|
3962
|
+
p("div", Xc, [g(x(dt), {
|
|
3964
3963
|
class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
|
|
3965
3964
|
size: 14,
|
|
3966
3965
|
"stroke-width": 2
|
|
3967
3966
|
}), k(p("input", {
|
|
3968
|
-
id: `${
|
|
3967
|
+
id: `${ll}-search`,
|
|
3969
3968
|
ref_key: "searchInputRef",
|
|
3970
3969
|
ref: b,
|
|
3971
3970
|
"onUpdate:modelValue": i[0] ||= (e) => _.value = e,
|
|
@@ -3973,34 +3972,34 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
3973
3972
|
class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)]",
|
|
3974
3973
|
placeholder: x(o).mergeTag.picker.searchPlaceholder,
|
|
3975
3974
|
"aria-label": x(o).mergeTag.picker.searchAriaLabel,
|
|
3976
|
-
"aria-controls":
|
|
3975
|
+
"aria-controls": ll,
|
|
3977
3976
|
"aria-activedescendant": se(),
|
|
3978
3977
|
"data-testid": "merge-tag-picker-search",
|
|
3979
3978
|
onKeydown: i[1] ||= N(j(() => {}, ["prevent"]), ["enter"])
|
|
3980
|
-
}, null, 40,
|
|
3981
|
-
de.value ? (s(), m("div",
|
|
3979
|
+
}, null, 40, Zc), [[A, _.value]])]),
|
|
3980
|
+
de.value ? (s(), m("div", Qc, [(s(!0), m(C, null, e(R.value, (e) => (s(), m("button", {
|
|
3982
3981
|
key: e,
|
|
3983
3982
|
type: "button",
|
|
3984
3983
|
class: "tpl:flex tpl:flex-shrink-0 tpl:cursor-pointer tpl:items-center tpl:rounded-full tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2.5 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
3985
3984
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3986
3985
|
"data-group-name": e,
|
|
3987
3986
|
onClick: (t) => ae(e)
|
|
3988
|
-
}, c(e), 9,
|
|
3987
|
+
}, c(e), 9, $c))), 128))])) : T("", !0),
|
|
3989
3988
|
p("div", {
|
|
3990
|
-
id:
|
|
3989
|
+
id: ll,
|
|
3991
3990
|
ref_key: "listRef",
|
|
3992
3991
|
ref: ne,
|
|
3993
3992
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3994
3993
|
role: "listbox",
|
|
3995
3994
|
"aria-label": x(o).mergeTag.picker.title,
|
|
3996
3995
|
"data-testid": "merge-tag-picker-list"
|
|
3997
|
-
}, [le.value ? (s(), m("div",
|
|
3996
|
+
}, [le.value ? (s(), m("div", tl, c(x(o).mergeTag.picker.empty), 1)) : ue.value ? (s(), m("div", nl, c(x(o).mergeTag.picker.noResults), 1)) : (s(!0), m(C, { key: 2 }, e(z.value, (e, t) => (s(), m(C, { key: t }, [e.kind === "header" ? (s(), m("button", {
|
|
3998
3997
|
key: 0,
|
|
3999
3998
|
ref_for: !0,
|
|
4000
3999
|
ref: (t) => re(e.group, t),
|
|
4001
4000
|
type: "button",
|
|
4002
4001
|
"aria-expanded": !F(e.group),
|
|
4003
|
-
"aria-controls":
|
|
4002
|
+
"aria-controls": ll,
|
|
4004
4003
|
class: "tpl:sticky tpl:top-0 tpl:z-10 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-left tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)]",
|
|
4005
4004
|
"data-testid": "merge-tag-picker-group-header",
|
|
4006
4005
|
"data-group-name": e.group,
|
|
@@ -4013,8 +4012,8 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
4013
4012
|
class: n(["tpl:transition-transform", F(e.group) ? "tpl:-rotate-90" : ""])
|
|
4014
4013
|
}, null, 8, ["class"]),
|
|
4015
4014
|
p("span", null, c(e.group), 1),
|
|
4016
|
-
p("span",
|
|
4017
|
-
], 8,
|
|
4015
|
+
p("span", il, " (" + c(x(u)(x(o).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
4016
|
+
], 8, rl)) : (s(), m("button", {
|
|
4018
4017
|
key: 1,
|
|
4019
4018
|
id: ce(e.index),
|
|
4020
4019
|
type: "button",
|
|
@@ -4029,15 +4028,15 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
4029
4028
|
onMousemove: (t) => O.value = e.index,
|
|
4030
4029
|
onClick: (t) => V(e.tag)
|
|
4031
4030
|
}, [
|
|
4032
|
-
p("span",
|
|
4033
|
-
p("span",
|
|
4034
|
-
e.tag.description ? (s(), m("span",
|
|
4035
|
-
], 42,
|
|
4036
|
-
], 12,
|
|
4031
|
+
p("span", ol, c(e.tag.label), 1),
|
|
4032
|
+
p("span", sl, c(e.tag.value), 1),
|
|
4033
|
+
e.tag.description ? (s(), m("span", cl, c(e.tag.description), 1)) : T("", !0)
|
|
4034
|
+
], 42, al))], 64))), 128))], 8, el)
|
|
4035
|
+
], 12, Kc)]),
|
|
4037
4036
|
_: 1
|
|
4038
4037
|
}, 8, ["visible"]));
|
|
4039
4038
|
}
|
|
4040
|
-
}),
|
|
4039
|
+
}), dl = ["data-logic-keyword"], fl = /* @__PURE__ */ f({
|
|
4041
4040
|
__name: "LogicTagBadge",
|
|
4042
4041
|
props: {
|
|
4043
4042
|
value: {},
|
|
@@ -4054,22 +4053,22 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
4054
4053
|
},
|
|
4055
4054
|
"data-testid": "merge-tag-logic-badge",
|
|
4056
4055
|
"data-logic-keyword": r.value
|
|
4057
|
-
}, c(r.value), 9,
|
|
4056
|
+
}, c(r.value), 9, dl)) : T("", !0);
|
|
4058
4057
|
}
|
|
4059
|
-
}),
|
|
4058
|
+
}), pl = ["aria-labelledby", "data-tpl-theme"], ml = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, hl = ["id"], gl = ["aria-label"], _l = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, vl = [
|
|
4060
4059
|
"id",
|
|
4061
4060
|
"placeholder",
|
|
4062
4061
|
"aria-label",
|
|
4063
4062
|
"aria-activedescendant"
|
|
4064
|
-
],
|
|
4063
|
+
], yl = ["aria-label"], bl = {
|
|
4065
4064
|
key: 0,
|
|
4066
4065
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
4067
4066
|
"data-testid": "logic-picker-empty"
|
|
4068
|
-
},
|
|
4067
|
+
}, xl = {
|
|
4069
4068
|
key: 1,
|
|
4070
4069
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
4071
4070
|
"data-testid": "logic-picker-empty"
|
|
4072
|
-
},
|
|
4071
|
+
}, Sl = ["data-group-name"], Cl = [
|
|
4073
4072
|
"id",
|
|
4074
4073
|
"aria-selected",
|
|
4075
4074
|
"data-selected",
|
|
@@ -4077,16 +4076,16 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
4077
4076
|
"data-logic-kind",
|
|
4078
4077
|
"onMousemove",
|
|
4079
4078
|
"onClick"
|
|
4080
|
-
],
|
|
4079
|
+
], wl = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Tl = { class: "tpl:text-sm tpl:font-medium" }, El = {
|
|
4081
4080
|
key: 0,
|
|
4082
4081
|
class: "tpl:flex tpl:items-center"
|
|
4083
|
-
},
|
|
4082
|
+
}, Dl = {
|
|
4084
4083
|
key: 1,
|
|
4085
4084
|
class: "tpl:flex tpl:items-center tpl:gap-1"
|
|
4086
|
-
},
|
|
4085
|
+
}, Ol = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, kl = {
|
|
4087
4086
|
key: 0,
|
|
4088
4087
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
4089
|
-
},
|
|
4088
|
+
}, Al = "tpl-logic-picker-list", jl = /* @__PURE__ */ f({
|
|
4090
4089
|
__name: "LogicTagPickerModal",
|
|
4091
4090
|
setup(r) {
|
|
4092
4091
|
let a = ze(it, "LogicTagPickerModal"), { t: o } = U(), u = D(We, B.liquid), f = D(He, null), h = D(at, null), _ = d(""), v = Pe(_, 200), b = d(null), S = w(() => v.value.trim().length > 0), O = d(0);
|
|
@@ -4172,12 +4171,12 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
4172
4171
|
}
|
|
4173
4172
|
}
|
|
4174
4173
|
function oe(e) {
|
|
4175
|
-
return `${
|
|
4174
|
+
return `${Al}-opt-${e}`;
|
|
4176
4175
|
}
|
|
4177
4176
|
function se() {
|
|
4178
|
-
return V.value.length === 0 ? void 0 : `${
|
|
4177
|
+
return V.value.length === 0 ? void 0 : `${Al}-opt-${O.value}`;
|
|
4179
4178
|
}
|
|
4180
|
-
return (r, i) => (s(), y(
|
|
4179
|
+
return (r, i) => (s(), y(Gt, {
|
|
4181
4180
|
visible: x(a).isOpen.value,
|
|
4182
4181
|
onClose: re,
|
|
4183
4182
|
onKeydown: ae
|
|
@@ -4185,31 +4184,31 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
4185
4184
|
default: l(() => [p("div", {
|
|
4186
4185
|
role: "dialog",
|
|
4187
4186
|
"aria-modal": "true",
|
|
4188
|
-
"aria-labelledby": `${
|
|
4187
|
+
"aria-labelledby": `${Al}-title`,
|
|
4189
4188
|
"data-tpl-theme": x(h),
|
|
4190
4189
|
"data-testid": "logic-picker-modal",
|
|
4191
4190
|
class: "tpl tpl:flex tpl:max-h-[80vh] tpl:w-[min(420px,92vw)] tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
4192
4191
|
style: t(x(f))
|
|
4193
4192
|
}, [
|
|
4194
|
-
p("header",
|
|
4195
|
-
id: `${
|
|
4193
|
+
p("header", ml, [p("h2", {
|
|
4194
|
+
id: `${Al}-title`,
|
|
4196
4195
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
4197
|
-
}, c(x(o).logicTag.picker.title), 9,
|
|
4196
|
+
}, c(x(o).logicTag.picker.title), 9, hl), p("button", {
|
|
4198
4197
|
type: "button",
|
|
4199
4198
|
class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
4200
4199
|
"aria-label": x(o).logicTag.picker.close,
|
|
4201
4200
|
"data-testid": "logic-picker-close",
|
|
4202
4201
|
onClick: re
|
|
4203
|
-
}, [g(x(
|
|
4202
|
+
}, [g(x(Dt), {
|
|
4204
4203
|
size: 16,
|
|
4205
4204
|
"stroke-width": 2
|
|
4206
|
-
})], 8,
|
|
4207
|
-
p("div",
|
|
4205
|
+
})], 8, gl)]),
|
|
4206
|
+
p("div", _l, [g(x(dt), {
|
|
4208
4207
|
class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
|
|
4209
4208
|
size: 14,
|
|
4210
4209
|
"stroke-width": 2
|
|
4211
4210
|
}), k(p("input", {
|
|
4212
|
-
id: `${
|
|
4211
|
+
id: `${Al}-search`,
|
|
4213
4212
|
ref_key: "searchInputRef",
|
|
4214
4213
|
ref: b,
|
|
4215
4214
|
"onUpdate:modelValue": i[0] ||= (e) => _.value = e,
|
|
@@ -4217,25 +4216,25 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
4217
4216
|
class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)]",
|
|
4218
4217
|
placeholder: x(o).logicTag.picker.searchPlaceholder,
|
|
4219
4218
|
"aria-label": x(o).logicTag.picker.searchAriaLabel,
|
|
4220
|
-
"aria-controls":
|
|
4219
|
+
"aria-controls": Al,
|
|
4221
4220
|
"aria-activedescendant": se(),
|
|
4222
4221
|
"data-testid": "logic-picker-search",
|
|
4223
4222
|
onKeydown: i[1] ||= N(j(() => {}, ["prevent"]), ["enter"])
|
|
4224
|
-
}, null, 40,
|
|
4223
|
+
}, null, 40, vl), [[A, _.value]])]),
|
|
4225
4224
|
p("div", {
|
|
4226
|
-
id:
|
|
4225
|
+
id: Al,
|
|
4227
4226
|
ref_key: "listRef",
|
|
4228
4227
|
ref: ne,
|
|
4229
4228
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
4230
4229
|
role: "listbox",
|
|
4231
4230
|
"aria-label": x(o).logicTag.picker.title,
|
|
4232
4231
|
"data-testid": "logic-picker-list"
|
|
4233
|
-
}, [ee.value ? (s(), m("div",
|
|
4232
|
+
}, [ee.value ? (s(), m("div", bl, c(x(o).logicTag.picker.empty), 1)) : te.value ? (s(), m("div", xl, c(x(o).logicTag.picker.noResults), 1)) : (s(!0), m(C, { key: 2 }, e(z.value.rows, (e, t) => (s(), m(C, { key: t }, [e.kind === "header" ? (s(), m("div", {
|
|
4234
4233
|
key: 0,
|
|
4235
4234
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
4236
4235
|
"data-testid": "logic-picker-header",
|
|
4237
4236
|
"data-group-name": e.label
|
|
4238
|
-
}, c(e.label), 9,
|
|
4237
|
+
}, c(e.label), 9, Sl)) : (s(), m("button", {
|
|
4239
4238
|
key: 1,
|
|
4240
4239
|
id: oe(e.index),
|
|
4241
4240
|
type: "button",
|
|
@@ -4249,27 +4248,27 @@ var vo = { class: "tpl:mb-3.5" }, yo = ["value"], bo = ["value"], xo = {
|
|
|
4249
4248
|
onMousemove: (t) => O.value = e.index,
|
|
4250
4249
|
onClick: (t) => H(e.kind === "tag" ? e.tag : e.pair)
|
|
4251
4250
|
}, [
|
|
4252
|
-
p("span",
|
|
4251
|
+
p("span", wl, [p("span", Tl, c(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), m("span", El, [g(fl, {
|
|
4253
4252
|
value: e.tag.value,
|
|
4254
4253
|
syntax: x(u)
|
|
4255
|
-
}, null, 8, ["value", "syntax"])])) : (s(), m("span",
|
|
4256
|
-
g(
|
|
4254
|
+
}, null, 8, ["value", "syntax"])])) : (s(), m("span", Dl, [
|
|
4255
|
+
g(fl, {
|
|
4257
4256
|
value: e.pair.before,
|
|
4258
4257
|
syntax: x(u)
|
|
4259
4258
|
}, null, 8, ["value", "syntax"]),
|
|
4260
4259
|
i[2] ||= p("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
4261
|
-
g(
|
|
4260
|
+
g(fl, {
|
|
4262
4261
|
value: e.pair.after,
|
|
4263
4262
|
syntax: x(u)
|
|
4264
4263
|
}, null, 8, ["value", "syntax"])
|
|
4265
4264
|
]))]),
|
|
4266
|
-
p("span",
|
|
4267
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), m("span",
|
|
4268
|
-
], 42,
|
|
4269
|
-
], 12,
|
|
4265
|
+
p("span", Ol, c(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
4266
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), m("span", kl, c(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : T("", !0)
|
|
4267
|
+
], 42, Cl))], 64))), 128))], 8, yl)
|
|
4268
|
+
], 12, pl)]),
|
|
4270
4269
|
_: 1
|
|
4271
4270
|
}, 8, ["visible"]));
|
|
4272
4271
|
}
|
|
4273
4272
|
});
|
|
4274
4273
|
//#endregion
|
|
4275
|
-
export {
|
|
4274
|
+
export { Bc as a, jn as c, un as d, ln as f, $t as h, Hc as i, Sn as l, an as m, ul as n, Rc as o, sn as p, Gc as r, Nc as s, jl as t, xn as u };
|